OSDN Git Service

Fix PR45229: gcc.c-torture/execute/20000412-4.c ICEs with -fgraphite-identity.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2
3         PR middle-end/45229
4         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5         handle GIMPLE_CALLs with no LHS.
6
7 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
8
9         * graphite-poly.c (init_graphite_out_file): New.
10         (init_graphite_in_file): New.
11         (apply_poly_transforms): Updated to enable reading and writing of
12         multiple scop files.
13
14 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
15
16         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
17         redundant checks.
18
19 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
20
21         * graphite-clast-to-gimple.c (precision_for_value): Adjust
22         computation of precision by 1.
23
24 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
25
26         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
27         (openscop_read_polyhedron_matrix): New.
28         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
29         (openscop_read_N_int): Same.
30         * graphite-poly.c (openscop_read_N_int): New.
31         (openscop_read_one_int): New.
32         (openscop_read_N_string): New.
33         (openscop_read_one_string): New.
34         (openscop_read_powerset_matrix): New.
35         (graphite_read_transforms): Remove.
36         (graphite_read_scatt): New.
37         (graphite_read_scop_file): New.
38         (apply_poly_transforms): Updated to call graphite_read_scop_file.
39
40 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
41
42         * graphite-poly.c: Change include order.
43
44 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
45
46         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
47         (cloog_matrix_nrows): New.
48
49 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
50
51         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
52         from matrix lines.
53         * graphite-poly.c (openscop_print_scattering_function_1): Same.
54         (print_scattering_function_1): Same.
55         (openscop_print_pbb_domain): Same.
56         (openscop_print_scop_context): Same.
57         (print_scop_context): Same.
58
59 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
60
61         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
62         (openscop_print_pdr_polyhedron): Print pph.
63
64 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
65
66         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
67         priority signed types.
68
69 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
70
71         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
72         to lang_hooks.types.type_for_size.  Call build_nonstandard_integer_type.
73
74 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
75
76         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
77         (openscop_print_polyhedron_matrix): New.
78         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
79         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
80         (openscop_print_pdr_powerset): New.
81         (openscop_print_powerset_matrix): New.
82         (openscop_print_scattering_function_1): New.
83         (print_scattering_function): Add support for scattering names and
84         OpenScop format.
85         (graphite_write_transforms): Remove.
86         (print_pdr_access_layout): Updated to support OpenScop format.
87         (print_pdr): Same.
88         (openscop_print_pbb_domain): New.
89         (print_pbb_body): Added a parameter to allow indicating that pbb_body is
90         not provided.
91         (print_pbb): Updated to call the new print_pbb_body.
92         (openscop_print_scop_context): New.
93         (print_scop_header): New.
94         (print_scop): Updated to call print_scop_header.
95         * graphite-poly.h: Document OpenScop format.
96
97 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
98
99         * config/cris/m32c.c (cris_memory_move_cost): New.
100         (cris_register_move_cost): Make static. Change arguments type from
101         enum reg_class to reg_class_t.
102         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
103         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
104         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
105
106 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
107
108         PR target/45843
109         * config/i386/i386.c (ix86_gimplify_va_arg): Use
110         INTVAL (XEXP (slot, 1)) as prev_size.
111
112 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
113
114         PR target/45837
115         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
116         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
117         defined.
118         * config/rs6000/option-defaults.h (toplevel): Change #if
119         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
120         global option changes.
121
122 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
123
124         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
125
126         PR tree-optimization/31261
127         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
128         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
129
130 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
131
132         PR bootstrap/45796
133         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
134         special-casing for generators and turn into ...
135         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
136         rule, for better error messages in case of toplevel dependency
137         errors.
138         (genprog): Add hooks, rename to ...
139         (genprogerr): ... this, and let genprog also contain check,
140         checksum, condmd.
141         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
142         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
143         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
144
145 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
146             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
147
148         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
149         for GMP, MPFR and MPC.
150
151 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
152
153         * config/sparc/sparc.opt (mimpure-text): Move ...
154         * config/sol2.opt: ... here.
155         Correct description.
156         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
157         * doc/invoke.texi (Option Summary, SPARC Options): Move
158         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
159         (Option Summary, Solaris 2 Options): ... here.
160         (Submodel Options, Solaris 2 Options): New menu entry.
161         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
162         (Solaris 2 Options): ... here.
163
164 2010-09-30  Michael Eager  <eager@eagercon.com>
165
166         * extend.texi (interrupt_handler): Add MicroBlaze to list.
167         (save_volatiles): Describe option for MicroBlaze.
168         * invoke.texi: Add MicroBlaze Options.
169         * contrib.texi: Add acknowledgment. 
170         * md.texi: Add MicroBlaze d and z constraints.
171         * install.texi: Add microblaze-*-elf.
172         * configure.ac: Add microblaze-*-* to target list.
173         * configure: Regenerate.
174         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
175         * config/microblaze/microblaze-protos.h: New.
176         * config/microblaze/crti.s: New.
177         * config/microblaze/predicates.md: New.
178         * config/microblaze/linux.h: New.
179         * config/microblaze/microblaze.md: New.
180         * config/microblaze/constraints.md: New.
181         * config/microblaze/crtn.s: New.
182         * config/microblaze/microblaze.opt: New.
183         * config/microblaze/microblaze-c.c: New.
184         * config/microblaze/t-microblaze: New.
185         * config/microblaze/microblaze.c: New.
186         * config/microblaze/microblaze.h: New.
187
188 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
189
190         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
191         parse @optional/@required and set the flags as appropriate.
192
193 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
194
195         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
196
197 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
198
199         * opt-functions.awk (static_var): Update comment.
200         (var_ref): Return offsetof expression or -1, not variable address.
201         * optc-gen.awk: Generate structure field initializers instead of
202         static variables.  Expect -1 for missing variables instead of null
203         pointer.  Add gcc_options parameters to generated functions.
204         * opth-gen.awk: Generate structure fields for static variables.
205         Add gcc_options parameters to generated functions.
206         * common.opt (optimize, optimize_size): Add variables.
207         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
208         &global_options to cl_target_option_restore.
209         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
210         &global_options to cl_optimization_restore, cl_target_option_save
211         and cl_target_option_restore.
212         (ix86_set_current_function): Pass &global_options to
213         cl_target_option_restore.
214         * config/pdp11/pdp11.h (optimize): Remove.
215         * config/rs6000/rs6000.h (optimize): Remove.
216         * config/sh/sh.h (optimize): Remove.
217         * config/xtensa/xtensa.h (optimize): Remove.
218         * coretypes.h (struct gcc_options): Declare.
219         * diagnostic.c (diagnostic_initialize): Initialize
220         context->option_state.
221         (diagnostic_report_diagnostic): Pass option_state to
222         option_enabled hook.
223         * diagnostic.h (diagnostic_context.option_enabled): Add void *
224         parameter.
225         (diagnostic_context.option_state): New field.
226         * final.c (final_start_function, final, final_scan_insn): Rename
227         optimize parameter to optimize_p.
228         * flags.h (optimize, optimize_size): Remove.
229         * function.c (invoke_set_current_function_hook): Pass
230         &global_options to cl_optimization_restore.
231         * gcc.c (driver_handle_option): Take gcc_options parameter.
232         Assert that it is &global_options.
233         (process_command): Pass &global_options to read_cmdline_option.
234         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
235         option_enabled.
236         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
237         &global_options to set_option.
238         * opts-common.c (handle_option, handle_generated_option,
239         read_cmdline_option, set_option): Take explicit gcc_options
240         parameters.  Use option_flag_var.
241         (option_flag_var): New.
242         * opts.c (common_handle_option, lang_handle_option,
243         target_handle_option): Take gcc_options parameter.  Assert that it
244         is &global_options.
245         (read_cmdline_options): Pass &global_options to
246         read_cmdline_option.
247         (print_filtered_help): Use option_flag_var.  Pass &global_options
248         to option_enabled.
249         (common_handle_option): Use option_flag_var.
250         (option_enabled): Take opts parameter.  Use option_flag_var.
251         (get_option_state): Take gcc_options parameter.  Use
252         option_flag_var.  Pass gcc_options parameter to option_enabled.
253         (enable_warning_as_error): Pass &global_options to
254         handle_generated_option.
255         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
256         (cl_option_handler_func.handler): Take gcc_options parameter.
257         (option_enabled, get_option_state, set_option, handle_option,
258         handle_generated_option, read_cmdline_option): Take gcc_options
259         parameters.
260         * toplev.c (optimize, optimize_size): Remove.
261         (print_switch_values): Pass &global_options to option_enabled.
262         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
263         to get_option_state.
264         (general_init): Initialize global_dc->option_state.
265         * tree.c (build_optimization_node): Pass &global_options to
266         cl_optimization_save.
267         (build_target_option_node): Pass &global_options to
268         cl_target_option_save.
269
270 2010-09-30  Martin Jambor  <mjambor@suse.cz>
271
272         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
273         zero sized bit-fields.
274
275 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
276
277         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
278         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
279         (c_parser_external_declaration): Use RID_AT_CLASS
280         instead of RID_CLASS.
281         (c_parser_objc_class_declaration): Same change.
282         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
283         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
284         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
285         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
286         and RID_AT_PUBLIC instead of RID_PUBLIC.
287         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
288         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
289         
290 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
291
292         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
293         Add links to current providers of packages for Solaris and IRIX.
294
295 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
296
297         Merge from 'apple/trunk' branch on FSF servers.
298         * c-parser.c: Applied change originally in c-parse.in.
299         
300         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
301
302         Radar 4281748
303         * c-decl.c (start_decl): Check for redeclaration of class name.
304         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
305
306 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
307
308         * config/ia64/ia64.c (ia64_builtin_decl): New.
309         (TARGET_BUILTIN_DECL): Define.
310         (ia64_builtins): New.
311         (ia64_init_builtins): Save decls in ia64_builtins.
312
313 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
314
315         PR target/40457
316         * postreload.c (move2add_use_add2_insn): Use full_costs for
317         comparison.
318         (move2add_use_add3_insn): Likewise.
319         (reload_cse_move2add): Likewise.
320         * rtlanal.c (get_full_rtx_cost): New function.
321         * rtl.h (struct full_rtx_costs): New.
322         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
323         costs_add_n_insns): New inline functions.
324         (get_full_rtx_cost): Declare.
325
326         PR c/45054
327         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
328         invariants.  Check for reg_equiv_invariant.
329         (reload): Assert that spilled_pseudos is empty when returning.
330
331 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
332
333         * config/i386/mingw32.h (TARGET_64BIT): replaced by
334         TARGET_64BIT_DEFAULT in #if check.
335
336 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
337
338         * varasm.c (assemble_alias): Add error message for
339         unsupported ifunc.
340
341 2010-09-29  Mike Stump  <mikestump@comcast.net>
342
343         * config/darwin.h (flag_mkernel): Remove.
344         (flag_apple_kext): Likewise.
345
346 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
347             Jack Howarth <howarth@bromo.med.uc.edu>
348
349         * config/darwin.opt (undefined): Add.
350
351 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
352
353         * configure.ac: Add --enable-indirect-function option.
354         * config.gcc: Add default_gnu_indirect_function.
355         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
356         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
357         * varasm.c (do_assemble_alias): Adjust for macto name change.
358         * configure: Rebuilt.
359         * doc/install.texi: Document --enable-indirect-function.
360
361 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
362
363         * doc/options.texi (Variable, Var, Init): Update documentation
364         without reference to VarExists.
365         (VarExists): Remove.
366         * common.opt, config/i386/i386.opt, config/linux.opt,
367         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
368         Don't use VarExists.
369
370 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
371
372         * optc-gen.awk: Generate global_options initializer instead of
373         individual variables.  Add x_ prefix to names of structure
374         members.
375         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
376         names of structure members.
377         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
378         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
379         * doc/tm.texi: Regenerate.
380         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
381         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
382         * c-parser.c (disable_extension_diagnostics,
383         restore_extension_diagnostics): Update names of cpp_options
384         members.
385         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
386         * common.opt (fcompare-debug-second): Don't use Var.
387         * config/alpha/alpha.h (target_flags): Remove.
388         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
389         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
390         * config/bfin/bfin.h (target_flags): Remove.
391         * config/cris/cris.h (target_flags): Remove.
392         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
393         cl_target_option members.
394         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
395         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
396         ix86_can_inline_p): Update names of cl_target_option members.
397         * config/i386/i386.h (ix86_isa_flags): Remove.
398         * config/lm32/lm32.h (target_flags): Remove.
399         * config/mcore/mcore.h (mcore_stack_increment): Remove.
400         * config/mcore/mcore.md (addsi3): Remove extern declaration of
401         flag_omit_frame_pointer.
402         * config/mep/mep.h (target_flags): Remove.
403         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
404         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
405         * config/mmix/mmix.h (target_flags): Remove.
406         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
407         flag_expensive_optimizations): Remove.
408         * config/s390/s390.h (flag_pic): Remove.
409         * config/score/score-conv.h (target_flags): Remove.
410         * config/sh/sh.h (sh_fixed_range_str): Remove.
411         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
412         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
413         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
414         * diagnostic.c (diagnostic_initialize): Update names of
415         diagnostic_context members.
416         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
417         warn_system_headers.
418         (diagnostic_report_warnings_p): Update for new names.
419         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
420         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
421         HARD_FRAME_POINTER_IS_ARG_POINTER.
422         * flags.h (flag_compare_debug): Declare.
423         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
424         * opts.c (flag_compare_debug): Define.
425         (common_handle_option): Update names of diagnostic_context
426         members.  Handle -fcompare-debug-second.
427         (fast_math_flags_struct_set_p): Update names of cl_optimization
428         members.
429         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
430         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
431         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
432         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
433         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
434         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
435         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
436         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
437         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
438
439 2010-09-29  Hariharan Sandanagobalane <hariharan@picochip.com>
440
441         * config/picochip/picochip.c (picochip_output_internal_label):
442           This function can now be called for debug CFI labels, which can come in
443           the middle of a vliw instruction. Postpone until end of vliw.
444
445 2010-09-29  Richard Guenther  <rguenther@suse.de>
446
447         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
448         (DECL_FILE_SCOPE_P): Use it.
449         (TYPE_FILE_SCOPE_P): New macro.
450
451 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
452
453         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
454         a CPP_NAME which is a reserved word, clearly separate cases for
455         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
456
457 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
458
459         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
460         token->value with the canonical spelling.  Do exactly like C and
461         C++ and leave it as it is.
462
463 2010-09-28  Richard Henderson  <rth@redhat.com>
464
465         * config/alpha/alpha.c (alpha_builtins): New.
466         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
467         (alpha_builtin_function): New.
468         (alpha_add_builtins, alpha_init_builtins): Use it.
469
470 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
471
472         * doc/standards.texi (Standards): Expanded the section on
473         Objective-C and Objective-C++.
474
475 2010-09-28  DJ Delorie  <dj@redhat.com>
476
477         PR target/45800
478         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
479         volatile MEMs.
480
481 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
482
483         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
484         attributes on methods.
485          (c_parser_objc_method_definition): Handle attributes.
486         (c_parser_objc_methodproto): Likewise.
487         (c_parser_objc_maybe_method_attributes): New.
488         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
489         missing definition, similar to that in ObjC++.
490
491 2010-09-28  Richard Henderson  <rth@redhat.com>
492
493         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
494         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
495         (CONFIG_SJLJ_EXCEPTIONS): Remove.
496         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
497         (STACK_CHECK_PROTECT): Likewise.
498         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
499         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
500         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
501         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
502         (dwarf2out_assembly_start): Likewise.
503         * except.c (init_eh): Use targetm.except_unwind_info.
504         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
505         (output_one_function_exception_table): Likewise.
506         * final.c: Unconditionally include dwarf2out.h.
507         (final_start_function): Unconditionally call dwarf2out routines.
508         (final_end_function, final_scan_insn): Likewise.
509         * function.c (expand_function_end): Use targetm.except_unwind_info.
510         * opts.c (decode_options): Use targetm.except_unwind_info.
511         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
512         * target.def (debug_unwind_info, except_unwind_info): New.
513         * target.h (enum unwind_info_type): New.
514         * targhooks.c (default_debug_unwind_info): New.
515         (default_except_unwind_info): New.
516         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
517         * targhooks.h: Declare them.
518         * tree-tailcall.c: Include "target.h"
519         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
520         * Makefile.in (tree-tailcall.o): Update.
521         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
522         (lhd_gcc_personality): Likewise.
523
524         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
525         (TARGET_EXCEPT_UNWIND_INFO): New.
526         (DWARF2_UNWIND_INFO): Update.
527         (TARGET_DEBUG_UNWIND_INFO): New.
528         * doc/tm.texi: Rebuild.
529
530         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
531         targetm.except_unwind_info.
532
533         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
534         (arm_except_unwind_info): New.
535         (arm_compute_func_type): Use it.
536         (arm_expand_prologue, thumb_pushpop): Likewise.
537         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
538         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
539         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
540         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
541         (DWARF2_UNWIND_INFO): Remove.
542         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
543         (ARM_EABI_UNWIND_TABLES): Remove.
544
545         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
546         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
547         (ia64_except_unwind_info): New.
548         (ia64_output_function_prologue): Use it.
549         (ia64_add_bundle_selector_before): Likewise.
550         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
551         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
552         (TARGET_UNWIND_INFO): Remove.
553
554         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
555         
556 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
557
558         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
559         (c_parser_objc_protocol_definition): Likewise.
560         (c_parser_external_declaration): Provide dummy attribute arguments.
561         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
562         (c_parser_objc_class_definition): Handle attributes.
563         (c_parser_objc_protocol_definition): Likewise.
564
565 2010-09-28  Tobias Burnus  <burnus@net-b.de>
566
567         PR fortran/40569
568         PR fortran/40568
569         * toplev.h (save_decoded_options, save_decoded_options_count):
570         New global variables.
571         * toplev.c (save_decoded_options, save_decoded_options_count):
572         export variables.
573
574 2010-09-28  Ian Lance Taylor  <iant@google.com>
575
576         * config/i386/i386.c (ix86_supports_split_stack): Test
577         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than
578         dwarf2out_do_cfi_asm.
579
580 2010-09-28  Ian Lance Taylor  <iant@google.com>
581
582         PR target/45815
583         * opts.c (decode_options): Don't test whether the target supports
584         split stack if flag_split_stack == 0.
585
586 2010-09-28  Jan Hubicka  <jh@suse.cz>
587
588         * builtin-attrs.def (ATTR_LEAF): New attribute.
589         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
590         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
591         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
592         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
593         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
594         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
595         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
596         * sync-builtins.def: Annotate all builtins by leaf.
597         * omp-builtins.def: Annotate all builtins by leaf.
598         * builtins.def: Annotate relevant builtins with leaf attribute.
599         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
600         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
601         leaf.
602
603 2010-09-28  Jan Hubicka  <jh@suse.cz>
604
605         * tree-ssa-ccp.c (fold_ctor_reference): New function.
606         (fold_const_aggregate_ref): Use it.
607         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
608         into external static.
609
610 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
611
612         PR target/44452
613         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
614         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
615         (ix86_solaris_return_in_memory): Remove.
616         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
617         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
618         (TARGET_SUBTARGET_DEFAULT): Redefine.
619         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
620         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
621         (TARGET_SUBTARGET_DEFAULT): Redefine.
622         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
623         -mvect8-ret-in-mem.
624         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
625
626 2010-09-29  Alan Modra  <amodra@gmail.com>
627
628         PR target/45807
629         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
630         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
631         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
632         Delete.
633         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
634         (rs6000_emit_prologue): Don't just create frame save info for r2,
635         actually save r2.
636
637 2010-09-28  Richard Henderson  <rth@redhat.com>
638
639         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
640         when 8 bytes are requested.
641
642 2010-09-28  Tristan Gingold  <gingold@adacore.com>
643
644         * config/avr/avr.c (expand_prologue): Set
645         current_function_static_stack_size.
646
647 2010-09-28  Tristan Gingold  <gingold@adacore.com>
648
649         * config/alpha/alpha.md: Change the initial condition of the
650         probing loop.
651
652 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
653
654         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
655         Split from *avx_<maxmin:code><mode>3.
656         (*avx_<smaxmin:code><mode>3): Ditto.
657         * config/i386/i386.md (maxmin): Remove code iterator.
658
659 2010-09-27  Ian Lance Taylor  <iant@google.com>
660
661         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
662         requires assembler support for CFI directives.
663
664 2010-09-27  Richard Henderson  <rth@redhat.com>
665
666         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
667
668 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
669
670         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
671         that AFTER is not in the range FROM..TO, inclusive.
672
673 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
674             Bernd Schmidt  <bernds@codesourcery.com>
675
676         PR rtl-optimization/45792
677         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
678         If not all insns are to be merged, for each edge, stash the
679         next candidate after the to-be-merged insns before doing the
680         merge, and use them for the retry at the new insertion point.
681         Handle CC0 targets when retrying.
682
683 2010-09-27  Ian Lance Taylor  <iant@google.com>
684
685         * common.opt (fsplit-stack): New option.
686         * opts.c (decode_options): Set flag_split_stack to final value.
687         * target.def (supports_split_stack): New hook.
688         * gcc.c (STACK_SPLIT_SPEC): Define.
689         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
690         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
691         (Code Gen Options): Document -fsplit-stack.
692         * doc/extend.texi (Function Attributes): Mention no_split_stack.
693         (Function Attributes): Document no_split_stack.
694         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
695         TARGET_SUPPORTS_SPLIT_STACK.
696         * doc/tm.texi: Rebuild.
697         * function.c (thread_prologue_and_epilogue_insns): If
698         flag_split_stack, add split stack prologue.
699         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
700         * varasm.c (saw_no_split_stack): New static variable.
701         (assemble_start_function): Set saw_no_split_stack if the function
702         has the no_split_stack attribute.
703         (file_end_indicate_split_stack): New function.
704         * output.h (file_end_indicate_split_stack): Declare.
705         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
706         and function.
707         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
708         routines.
709         * config/i386/i386.c (ix86_option_override_internal): Don't set
710         expand_builtin_va_start to NULL if -fsplit-stack.
711         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
712         -fsplit-stack.
713         (ix86_va_start): If -fsplit-stack, get overflow pointer from
714         scratch register set by prologue.
715         (ix86_code_end): If -fsplit-stack, call
716         file_end_indicate_split_stack.
717         (ix86_supports_split_stack): New static function.
718         (SPLIT_STACK_AVAILABLE): Define.
719         (split_stack_prologue_scratch_regno): New static function.
720         (split_stack_fn): New static variable.
721         (ix86_expand_split_stack_prologue): New function.
722         (ix86_live_on_entry): New static function.
723         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
724         (output_pic_addr_const): Likewise.
725         (i386_asm_output_addr_const_extra): Likewise.
726         (ix86_expand_call): Change return type to rtx.  Return the new
727         call instruction.
728         (TARGET_SUPPORTS_SPLIT_STACK): Define.
729         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
730         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
731         (split_stack_prologue, split_stack_return): New insns.
732         (split_stack_space_check): New insn.
733         * config/i386/i386.h (struct machine_function): Add
734         split_stack_varargs_pointer field.
735         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
736         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
737         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
738         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
739         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
740         Declare.
741         (ix86_expand_call): Update declaration.
742
743 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
744
745         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
746         code.  Added byref, which was missing in the list of codes.
747         Explain that enumeration values are encoded as the integer type
748         that the compiler uses to store them.  Explain and make examples
749         of how 'const' interacts with pointers, and the complication of
750         the encoding of 'const char *'.
751         (Legacy type encoding): New subsection, explaining that GCC emits
752         incorrect type encodings for the NeXT runtime for compatibility
753         reasons.
754         (@@encode): New subsection, explaining @encode and particularly
755         that protocol qualifiers are not recognized inside an @encode()
756         expression.
757         (Method signatures): New subsection, explaining how method
758         signatures are encoded.
759
760 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
761
762         Merge from 'apple/trunk' branch on FSF servers.  Removed small
763         change in build_conditional_expr that had been added when fixing
764         PR objc/27377 and which did the same check in a less complete way.
765
766         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
767
768         Radar 4229905
769         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
770         looking for objective-c common pointer types.
771         
772         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
773
774         Radar 4154928
775         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
776         use their ObjC common type.
777
778 2010-09-27  Richard Guenther  <rguenther@suse.de>
779
780         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
781
782 2010-09-27  Jie Zhang  <jie@codesourcery.com>
783
784         * print-tree.c (print_node): Print in-constant-pool.
785
786 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
787
788         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
789         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
790         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
791         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
792
793 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
794
795         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
796         from pro_epilogue_adjust_stack_<mode>_{1,2}.
797         (pro_epilogue_adjust_stack_<mode>_add): Rename from
798         pro_epilogue_adjust_stack_<mode>_3.
799         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
800         renamed pro_epilogue_adjust_stack_{si,di}_add.
801         (ix86_expand_prologue): Use indirect functions.  Update for renamed
802         pro_epilogue_adjust_stack_{si,di}_sub.
803
804 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
805
806         * config/i386/i386.md (movmsk_df): New insn.
807         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
808         sequence for TARGET_SSE_MATH.
809
810 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
811
812         * config/mips/mips.c (mips_builtin_decls): Declare.
813         (mips_init_builtins): Store function declarations in
814         mips_builtin_decls.
815         (mips_builtin_decl): New function.
816         (TARGET_BUILTIN_DECL): Define.
817
818 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
819             Richard Henderson  <rth@redhat.com>
820
821         * config/i386/cygwin.asm: Include auto-host.h.
822         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
823         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
824         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
825         alignment code from the 64-bit path.  Use gas local labels.
826         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
827         from _di_2.  Remove the useless constant integer argument.
828         (pro_epilogue_adjust_stack_<mode>_3): New.
829         (allocate_stack_worker_probe_<mode>): Macroize from
830         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
831         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
832         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
833         (__chkstk_ms): New function.
834         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
835         * gcc/config/i386/t-interix: Likewise.
836         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
837         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
838         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
839         * configure, config.in: Rebuild.
840
841 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
842
843         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
844         statements because of the return slot optimization.
845
846 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
847
848         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
849         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
850         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
851         (class_likely_spilled_p): Rename to...
852         (avr_class_likely_spilled_p): ...this. Make static. Change argument
853         type to reg_class_t.
854
855 2010-09-24  Jan Hubicka  <jh@suse.cz>
856
857         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
858         (lto_symtab_resolve_symbols): Set it.
859         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
860         store resolution field in cgraph/varpool.
861         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
862         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
863         (cgraph_dump_node): Drop used_from_object_file.
864         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
865         (cgraph_function_body_availability): Use decl_replaceable_p.
866         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
867         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
868         cgraph_used_from_object_file_p.
869         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
870         cgraph_used_from_object_file_p.
871         (resolution_used_from_other_file_p): New functoin.
872         (cgraph_used_from_object_file_p): New predicate.
873         * cgraph.h: Include plugin-api.h
874         (struct cgraph_local_info): Remove used_from_object_file.
875         (struct cgraph_node): Add resolution field.
876         (struct varpool_node): Likewise; remove used_from_object_file;
877         reove const_value_known.
878         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
879         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
880         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
881         varpool_used_from_object_file_p): Declare.
882         (varpool_get_node, varpool_extra_name_alias): Update prototype.
883         * tree.h (DECL_REPLACEABLE_P): Remove.
884         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
885         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
886         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
887         input_overwrite_node, input_node, input_varpool_node): Stream
888         resolution.
889         * expr.c (expand_expr_real_1): Use const_value_known_p
890         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
891         const_value_known.
892         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
893         (function_and_variable_visibility): Set resolution for local vars
894         and functions; use varpool_used_from_object_file_p.
895         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
896         static functions.
897         (default_binds_local_p_1): Use resolutoin info.
898         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
899         * varpool.c (varpool_get_node): Constify.
900         (const_value_known_p): Do not use vnode->const_value_known;
901         use decl_replaceable_p.
902         (varpool_finalize_decl): Do not set const_value_known.
903         (cgraph_variable_initializer_availability): Use decl_replaceable_p
904         (varpool_extra_name_alias): Return new node.
905         (varpool_used_from_object_file_p): New function.
906
907 2010-09-24  Richard Henderson  <rth@redhat.com>
908
909         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
910         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
911         (do_spill): Use REG_CFA_OFFSET.
912         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
913         as appropriate.
914         (ia64_expand_epilogue): Likewise.
915         (process_set): Split into ...
916         (process_cfa_adjust_cfa): this,
917         (process_cfa_register): this,
918         (process_cfa_offset): and this new function.
919         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
920         instead of REG_FRAME_RELATED_EXPR.
921
922 2010-09-24  Olivier Hainque  <hainque@adacore.com>
923
924         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
925
926 2010-09-24  Jan Hubicka  <jh@suse.cz>
927
928         * doc/extend.texi: (attribute leaf): Document.
929         * tree.c (local_define_builtin): Handle ECF_LEAF.
930         (build_common_builtin_nodes): Set ECF_LEAF where needed.
931         * tree.h (ECF_LEAF): New.
932         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
933         overwrittable and unavailable functions.
934         (ipa_init): Put all_module_statics into optimization_summary_obstack.
935         (copy_global_bitmap): Do not copy all_module_statics.
936         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
937         (propagate): Handle overwritable and unavailable leaf functions;
938         initialize global info for overwritable and unavailable leaf functions;
939         do not free all module statics.
940         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
941         local statics.
942         * calls.c (flags_from_decl_or_type): Handle leaf.
943         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
944         abnormal gotos.
945
946 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
947
948         * gengtype.c: Reindented.
949         * gengtype.h: Reindented.
950         * gengtype-parse.c: Reindented.
951
952 2010-09-24  Jan Hubicka  <jh@suse.cz>
953
954         PR tree-optimization/45738
955         PR tree-optimization/45741
956         * expr.c (string_constant): Allow CONST_DECL too;
957         check that DECL_INITIAL is set.
958         * varpool.c (const_value_known_p): Only look into VAR_DECL
959         and CONST_DECL.
960
961 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
962
963         * common.opt (undef): New.
964
965 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
966
967         PR middle-end/45234
968         * rtl.h (enum global_rtl_index): Add
969         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
970         (LAST_VIRTUAL_POINTER_REGISTER): Define.
971         (virtual_preferred_stack_boundary_rtx,
972         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
973         (LAST_VIRTUAL_REGISTER): Increase by one.
974         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
975         instead of LAST_VIRTUAL_REGISTER.
976         * function.c (instantiate_new_reg): Handle
977         virtual_preferred_stack_boundary_rtx.
978         * emit-rtl.c (init_virtual_regs): Handle
979         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
980         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
981         * explow.c (round_push): If crtl->preferred_stack_boundary
982         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
983         virtual_preferred_stack_boundary_rtx alignment instead of
984         crtl->preferred_stack_boundary alignment.
985         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
986         macros.  Never decrease crtl->preferred_stack_boundary,
987         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
988         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
989         stack_pointer_delta in dynamic allocation, even when size
990         is constant.
991         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
992         macro.
993         * print-rtl.c (print_rtx): Handle
994         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
995         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
996         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
997         * config/frv/frv.c (frv_emit_movsi): Likewise.
998         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
999         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1000         Likewise.
1001
1002         Revert:
1003         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1004
1005         PR middle-end/45234
1006         * calls.c (expand_call): Make sure that all variable sized
1007         adjustments are multiple of preferred stack boundary after
1008         stack alignment.
1009
1010 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1011             Dominique Dhumieres  <dominiq@lps.ens.fr>
1012
1013         PR bootstrap/45751
1014         * gcc/config/darwin-driver.c (darwin_default_min_version):
1015         Adjust size passed to memcpy in two places.
1016
1017 2010-09-24  Richard Guenther  <rguenther@suse.de>
1018
1019         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1020         Make sure to not call set_type_context with error_mark_node.
1021         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1022
1023 2010-09-24  Richard Guenther  <rguenther@suse.de>
1024
1025         * Makefile.in (OBJS-onestep): Remove.
1026         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1027         (libbackend.a): Remove onestep support.
1028         (libbackend.o): Remove.
1029         * configure.ac (--enable-intermodule): Remove.
1030         * configure: Regenerate.
1031
1032 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1033
1034         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1035         reaching the end of a block if it occurs at a DEBUG_INSN.
1036
1037 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1038
1039         PR target/44242
1040         * config/vms/vms-crt0-64.c: Removed.
1041         * config/vms/vms-crt0.c: Removed.
1042         * config/vms/vms-psxcrt0-64.c: Removed.
1043         * config/vms/vms-psxcrt0.c: Removed.
1044         * config/vms/vms-ucrt0.c: New file.
1045         * config/vms/t-vms64: Removed.
1046         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1047         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1048         * config.gcc (alpha-dec-vms): Use t-vms.
1049
1050 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1051
1052         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1053         underfull hbox in DVI output.
1054         (-fobjc-class-cxx-cdtors): Same change.
1055         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1056         option does, but moved the (lenghty) description of the exception
1057         syntax into objc.texi.
1058         (-fobjc-gc): Explain that the option is not useful with the GNU
1059         runtime.
1060         (-fzero-link): Explain that the GNU runtime always works in
1061         "zero-link" mode.
1062         * doc/objc.texi: All sections: simplified @node declarations
1063         removing specification of next, previous, up node.
1064         (Objective-C): Updated introduction.
1065         (Garbage Collection): Updated.  The bohem-gc library is now
1066         included in gcc itself.  Mention that this section only applies to
1067         the GNU Objective-C runtime.
1068         (compatibility_alias): Small tidy up.
1069         (Exceptions): New section mostly containing text previously in the
1070         description of the -fobjc-exception command-line option.
1071         (Synchronization): Same.
1072
1073 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         * config/i386/i386.md (ix86_code_end): Move the initialization of
1076         xops array near the consumer.  Use AX_REG and SP_REG instead of
1077         numerical constants.
1078
1079 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1080
1081         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1082         method [methodname]' for an Objective-C method instead of the less
1083         satisfactory 'too many arguments to function' (with no method name).
1084
1085 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1086
1087         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1088         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1089         (execute_update_addresses_taken): Remove parameter.  Execute the
1090         optimization unconditionally.
1091         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1092         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1093         if TODO_update_address_taken is set.
1094
1095 >>>>>>> .r164755
1096 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1097
1098         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1099         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1100         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1101         (arm_output_addr_const_extra): Make static.
1102
1103 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1104
1105         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1106         define as unspec_volatile.
1107         ("nops"): Define as unspec_volatile. Use fputs to write to
1108         asm_out_file directly.  Output NOPs on separate lines using while loop.
1109         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1110         asm_out_file directly.  Output NOPs on separate lines using while loop.
1111
1112 2010-09-23  Richard Guenther  <rguenther@suse.de>
1113
1114         PR tree-optimization/45565
1115         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1116         Make sure to adjust the fndecl before replacing the stmt.
1117
1118 2010-09-23  Richard Guenther  <rguenther@suse.de>
1119
1120         PR middle-end/45750
1121         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1122         gimplifying MEM_REF.
1123
1124 2010-09-23  Alan Modra  <amodra@gmail.com>
1125
1126         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1127         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1128
1129 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1130
1131         PR rtl-optimization/44374
1132         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1133         * df-core.c (df_set_bb_dirty): Set it.
1134         * ifcvt.c (find_memory): Remove function.
1135         (dead_or_predicable): Use can_move_insns_across.
1136         * df.h (can_move_insns_across): Declare function.
1137         * cfgcleanup.c (block_was_dirty): New static variable.
1138         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1139         than df_get_bb_dirty.
1140         (try_head_merge_bb): New static function.
1141         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1142         is set.
1143         * df-problems.c: Include "target.h"
1144         (df_simulate_find_uses): New static function.
1145         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1146         (find_memory, find_memory_store): New static functions.
1147         (can_move_insns_across): New function.
1148         * Makefile.in (df-problems.o): Update dependencies.
1149
1150 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1151
1152         PR java/44095
1153         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1154         is specified and the suffix of the file isn't ".c".
1155         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1156
1157 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1158
1159         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1160         * doc/cppopts.texi: Fix markup of index entry.
1161         * doc/extend.texi (Constructing Calls): Fix markup of
1162         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1163         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1164         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1165         keywords.
1166         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1167         avoid long lines.
1168         (C Dialect Options, C++ Dialect Options, Warning Options)
1169         (Debugging Options, Spec Files, Darwin Options)
1170         (i386 and x86-64 Options, MIPS Options)
1171         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1172         index entries, avoid abbreviations, allow URLs to wrap, avoid
1173         long lines, avoid overlong pages from long @itemx lists.
1174         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1175         * doc/standards.texi (Standards): Likewise.
1176         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1177
1178 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1179
1180         * opts-common.c (prune_options): Make static.  Work with decoded
1181         options.
1182         (decode_cmdline_options_to_array): Call prune_options.  Don't
1183         resize option array here.
1184         * opts.h (prune_options): Remove prototype.
1185         * gcc.c (process_command): Take decoded options; don't call
1186         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
1187         (main): Call decode_cmdline_options_to_array here instead of
1188         prune_options.  Update call to process_command.
1189         * config/darwin-driver.c: Include opts.h.
1190         (darwin_default_min_version): Work with decoded options.  Don't
1191         handle -b or -V here.
1192         * config/darwin.h (darwin_default_min_version): Update prototype.
1193         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
1194         darwin_default_min_version.
1195         * config/i386/cygwin.h (mingw_scan): Update prototype.
1196         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
1197         * config/i386/cygwin1.c: Include opts.h.
1198         (mingw_scan): Work with decoded options.
1199         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
1200         * config/t-darwin (darwin-driver.o): Update dependencies.
1201
1202 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1203
1204         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
1205         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
1206         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
1207         -force-link, -force-link=, -language, -language=,
1208         -library-directory, -library-directory=, -no-canonical-prefixes,
1209         -no-standard-libraries, -no-warnings, -optimize, -output,
1210         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
1211         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
1212         -print-file-name=, -print-libgcc-file-name,
1213         -print-multi-directory, -print-multi-lib,
1214         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
1215         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
1216         -profile, -save-temps, -shared, -specs, -specs=, -static,
1217         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
1218         symbolic): New.
1219         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
1220         * gcc.c (A Short Introduction to Adding a Command-Line Option):
1221         Remove comment.
1222         (cc1_options): Correct specs for passing down --help,
1223         --target-help and --help=*.  Add spec for passing down --version.
1224         (struct option_map, option_map, target_option_translations,
1225         translate_options): Remove.
1226         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
1227         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
1228         OPT_fhelp_ and OPT_ftarget_help.
1229         (process_command): Don't call translate_options.  Call
1230         decode_cmdline_options_to_array before checking for
1231         -no-canonical-prefixes using decoded options.
1232         * opts-common.c (tm.h): Update comment on #include.
1233         (find_opt): Allow abbreviations of long options.
1234         (struct option_map, option_map): New.
1235         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
1236         and -mno handling.
1237         (target_option_translations): New.
1238         (decode_cmdline_options_to_array): Handle
1239         TARGET_OPTION_TRANSLATE_TABLE in driver.
1240         * opts.c (common_handle_option): Don't handle OPT_fhelp,
1241         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
1242
1243 2010-09-22  Richard Guenther  <rguenther@suse.de>
1244
1245         * tree-inline.c (optimize_inline_calls): Schedule cleanups
1246         only if we inlined something.  Block compaction and conditional
1247         folding are done by cfg cleanup.  Schedule update-address-taken.
1248         (tree_function_versioning): Remove redundant call to number_blocks.
1249         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
1250         folding is done by cfg cleanup.
1251         * passes.c (init_optimization_passes): Remove update-address-taken
1252         pass after IPA inlining.
1253
1254 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
1255
1256         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
1257         to update conditions. Fix reg_mode[] check.
1258
1259 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
1260
1261         * config/picochip/picochip.md (movhicc): Use expand to check whether
1262         movhicc is available and split it after reload.
1263
1264 2010-09-22  Richard Guenther  <rguenther@suse.de>
1265
1266         * tree-ssanames.c (release_dead_ssa_names): Do not remove
1267         callee edges here.
1268         * passes.c (init_optimization_passes): Remove early CFG cleanup.
1269         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
1270         (pass_cleanup_cfg): Likewise.
1271         (execute_fixup_cfg): Cleanup.
1272         * tree-pass.h (pass_cleanup_cfg): Remove.
1273
1274 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1275
1276         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
1277         builtins if it is true.
1278         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
1279         parameter.
1280
1281 2010-09-22  Martin Jambor  <mjambor@suse.cz>
1282
1283         * tree-sra.c (struct access): New field grp_no_warning.
1284         (create_access_replacement): Set TREE_NO_WARNING according to
1285          grp_no_warning.
1286         (create_artificial_child_access): Use build_ref_for_model and set
1287         grp_no_warning if build_user_friendly_ref_for_offset fails.
1288         (propagate_subaccesses_across_link): Likewise.
1289
1290 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1291
1292         PR target/35664
1293         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
1294         ('f'): Likewise.
1295
1296 2010-09-22  Tristan Gingold  <gingold@adacore.com>
1297
1298         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
1299
1300 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
1301
1302         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
1303         * config/i386/i386.c (decide_alg): Update for rename.
1304
1305 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
1306
1307         PR rtl-optimization/45739
1308         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
1309         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
1310
1311 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
1312
1313         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
1314         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
1315         Remove.
1316         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
1317         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1318
1319 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1320
1321         PR objc/23710
1322         * c-parser.c (c_parser_objc_method_definition): Check the return
1323         value of objc_start_method_definition and if false is returned,
1324         parse the method definition but emit no code.
1325
1326 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1327
1328         PR objc/25965
1329         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
1330         call objc_get_interface_ivars ().
1331
1332 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
1333
1334         PR target/45694
1335         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
1336         static chain-register is used for 64-bit.
1337
1338 2010-09-21  Richard Guenther  <rguenther@suse.de>
1339
1340         * dwarf2out.c (is_cu_die): New function.
1341         (add_pubtype): Use it.
1342         (gen_subprogram_die): Likewise.
1343         (gen_struct_or_union_type_die): Likewise.
1344         (dwarf2out_finish): Likewise.
1345         (comp_unit_die): Rename to ...
1346         (single_comp_unit_die): ... this.
1347         (comp_unit_die): New function lazily constructing and
1348         returning single_comp_unit_die.
1349         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
1350         base_type_die, subrange_type_die, modified_type_die,
1351         lower_bound_default, add_bound_info, add_prototyped_attribute,
1352         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
1353         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
1354         force_decl_die, gen_namespace_die, dwarf2out_decl,
1355         dwarf2out_start_source_file, dwarf2out_end_source_file,
1356         prune_unused_types, dwarf2out_finish): Use it.
1357         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
1358         the global list of translation-unit decls.
1359         (dwarf2out_init): Do not create single_comp_unit_die here.
1360         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
1361
1362 2010-09-21  Richard Guenther  <rguenther@suse.de>
1363
1364         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
1365         for bool for C++.
1366
1367 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
1368
1369         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
1370         (qhs_extenddi_cstr): Likewise.
1371         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
1372         them for the source operand.
1373
1374 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
1375
1376         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
1377         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
1378         (ix86_split_ashr): Ditto.
1379         (ix86_split_lshr): Ditto.
1380
1381 2010-09-21  Richard Guenther  <rguenther@suse.de>
1382
1383         PR tree-optimization/45580
1384         * tree-ssa-propagate.c (substitute_and_fold): Always replace
1385         regular uses.
1386         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
1387         virtuals fold the call into a regular indirect one.
1388
1389 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1390
1391         PR rtl-optimization/42775
1392         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
1393         scheduling is enabled.
1394
1395 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1396
1397         PR rtl-optimization/45728
1398         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
1399         gen_lowpart_common first and if that fails, force_reg first
1400         before calling gen_lowpart.
1401
1402         PR middle-end/45678
1403         * cfgexpand.c (expand_one_stack_var_at): Use
1404         crtl->max_used_stack_slot_alignment as max_align, instead
1405         of maximum of that and PREFERRED_STACK_BOUNDARY.
1406         Don't call update_stack_alignment.
1407
1408 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1409
1410         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
1411         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
1412         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
1413         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
1414         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
1415         (build_nonstandard_integer_type): Likewise.
1416         (build_range_type_1): New function, built from...
1417         (build_range_type): ...this.  Call build_range_type_1.
1418         (build_nonshared_range_type): New function.
1419         (build_array_type_1): New function, built from...
1420         (build_array_type: ...this.  Call build_array_type_1.
1421         (build_nonshared_array_type): New function.
1422         * tree.h (build_nonshared_range_type): Declare.
1423         (build_nonshared_array_type): Likewise.
1424
1425 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
1426
1427         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
1428         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1429         (arm_class_likely_spilled_p): New function.
1430
1431 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
1432
1433         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
1434         indirect functions.
1435         (ix86_split_ashl): Ditto.
1436         (ix86_split_ashr): Ditto.
1437         (ix86_split_lshr): Ditto.
1438         (ix86_adjust_counter): Ditto.
1439
1440 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
1441
1442         * c-family/c-common.h (constant_string_class): Documented with
1443         comment identical to the one already in c-common.c.
1444
1445 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1446
1447         * dwarf2out.c (any_cfis_emitted): New static variable.
1448         (add_fde_cfi): Set it.
1449         (dwarf2out_frame_debug): Clear it before processing,
1450         if it is set afterwards, flush any queued reg saves.
1451
1452         PR debug/45124
1453         * dwarf2out.c (add_accessibility_attribute): Assume
1454         DW_ACCESS_private as the default for dwarf_version > 2
1455         and DW_TAG_class_type parent.
1456         (gen_inheritance_die): Assume DW_ACCESS_public as the default
1457         for dwarf_version > 2 and parent other than DW_TAG_class_type.
1458
1459 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1460
1461         PR target/45726
1462         * arm.md (arm_movt): Only enable on machines with MOVT.
1463
1464 2010-09-20  Jie Zhang  <jie@codesourcery.com>
1465
1466         * config/arm/arm.c (arm_address_offset_is_imm): New.
1467         (arm_early_store_addr_dep): New.
1468         (arm_early_load_addr_dep): New.
1469         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
1470         (arm_early_load_addr_dep): Declare.
1471         (arm_address_offset_is_imm): Declare.
1472         * config/arm/cortex-m4.md: New file.
1473         * config/arm/cortex-m4-fpu.md: New file.
1474         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
1475         (attr generic_sched): Exclude cortexm4.
1476         (attr generic_vfp): Exclude cortexm4.
1477
1478 2010-09-20  Richard Guenther  <rguenther@suse.de>
1479
1480         PR middle-end/45704
1481         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
1482
1483 2010-09-20  Jan Hubicka  <jh@suse.cz>
1484
1485         PR tree-optimize/45605
1486         * cgraph.h (const_value_known_p): Declare.
1487         (varpool_decide_const_value_known): Remove.
1488         * tree-ssa-ccp.c (get_base_constructor): Use it.
1489         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
1490         * expr.c (string_constant): Likewise.
1491         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1492         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1493         function_and_variable_visibility): Likewise.
1494         * gimplify.c (gimplify_call_expr): Likewise.
1495         * gimple-fold.c (get_symbol_constant_value): Likewise.
1496         * varpool.c (varpool_decide_const_value_known): Replace by...
1497         (const_value_known_p): ... this one; handle other kinds of DECLs
1498         too and work for automatic vars.
1499         (varpool_finalize_decl): Use const_value_known_p.
1500
1501 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
1502
1503         PR target/45726
1504         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
1505
1506 2010-09-20  Richard Guenther  <rguenther@suse.de>
1507
1508         PR tree-optimization/45705
1509         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
1510
1511 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
1512
1513         PR rtl-optimization/45695
1514         * combine.c (try_combine): When splitting a two set pattern,
1515         make sure the pattern which will be put into i2 doesn't use REGs
1516         or MEMs set by insns in between i2 and i3.
1517
1518 2010-09-19  Jan Hubicka  <jh@suse.cz>
1519
1520         PR lto/44246
1521         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
1522         processing same node twice.
1523
1524 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
1525
1526         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
1527         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1528         (bfin_class_likely_spilled_p): New function
1529
1530 2010-09-19  Ira Rosen  <irar@il.ibm.com>
1531
1532         PR tree-optimization/45714
1533         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
1534         created in vectorizable_call instead of the original statement in
1535         def stmt updates.
1536
1537 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
1538
1539         * config/i386/i386-protos.h (split_double_mode): New prototype.
1540         (split_di, split_ti): Remove prototypes.
1541         * config/i386/i386.c (split_double_mode): New function.
1542         (split_di, split_ti): Remove.
1543         (ix86_expand_branch): Use split_double_mode.
1544         (ix86_split_to_parts): Ditto.
1545         (ix86_split_ashl): Ditto.
1546         (ix86_split_ashr): Ditto.
1547         (ix86_split_lshr): Ditto.
1548         (ix86_force_to_memory): Ditto.
1549         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
1550
1551 2010-09-18  Jan Hubicka  <jh@suse.cz>
1552
1553         PR tree-optimization/45453
1554         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
1555         virtual functions are reachable.
1556         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
1557         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1558         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
1559         when modifying function.
1560
1561 2010-09-18  Jan Hubicka  <jh@suse.cz>
1562
1563         PR tree-optimization/45605
1564         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
1565         * gimple-fold.c (static_object_in_other_unit_p): New function.
1566         (canonicalize_constructor_val): Use it.
1567         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
1568         returning NULL.
1569         (gimple_fold_obj_type_ref_known_binfo): Use
1570         static_object_in_other_unit_p.
1571
1572 2010-09-18  Richard Guenther  <rguenther@suse.de>
1573
1574         PR tree-optimization/45709
1575         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
1576         insertions until after all PHI nodes of the block are processed.
1577
1578 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
1579
1580         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
1581
1582 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
1583
1584         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
1585
1586 2010-09-18  Richard Guenther  <rguenther@suse.de>
1587
1588         PR tree-optimization/45709
1589         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
1590
1591 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1592
1593         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
1594         (dot_deps_stmt): Same.
1595         * graphite-poly.c (dot_lst): Same.
1596         * graphite-scop-detection.c (dot_all_scops): Same.
1597         (dot_scop): Same.
1598
1599 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1600
1601         Revert:
1602         2009-12-16  Ben Elliston  <bje@au.ibm.com>
1603
1604         * tree-data-ref.c (dot_rdg_1): Added back.
1605         (dot_rdg): Same.  Added "#if 0" around system call.
1606
1607 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1608             Richard Henderson  <rth@redhat.com>
1609
1610         * config/i386/i386.c (initial_ix86_tune_features): Add
1611         X86_TUNE_PAD_SHORT_FUNCTION.
1612         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
1613         (ix86_count_insn): New.
1614         (ix86_pad_short_function): Likewise.
1615         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
1616
1617         * config/i386/i386.h (ix86_tune_indices): Add
1618         X86_TUNE_PAD_SHORT_FUNCTION.
1619         (TARGET_PAD_SHORT_FUNCTION): New.
1620
1621         * config/i386/i386.md (UNSPEC_NOPS): New.
1622         (nops): Likewise.
1623
1624 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1625
1626         PR middle-end/45234
1627         * calls.c (expand_call): Make sure that all variable sized
1628         adjustments are multiple of preferred stack boundary after
1629         stack alignment.
1630
1631 2010-09-17  DJ Delorie  <dj@redhat.com>
1632
1633         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
1634         passed an invalid value, print an error instead of ICEing.
1635         (valid_psw_flag): New.
1636         (rx_expand_builtin): Call it for setpsw/clrpsw.
1637         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
1638
1639         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
1640         (bitclr_in_memory): Likewise.
1641         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
1642
1643 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1644
1645         PR middle-end/45678
1646         * cfgexpand.c (update_stack_alignment): New.
1647         (get_decl_align_unit): Use it.
1648         (expand_one_stack_var_at): Call update_stack_alignment.
1649
1650 2010-09-17  Richard Guenther  <rguenther@suse.de>
1651
1652         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
1653         Properly copy the read string.
1654
1655 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
1656
1657         * doc/options.texi (Variable): Document.
1658         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
1659         generate target_flags declarations explicitly.  Don't define
1660         VarExists variables for the driver.
1661         * common.opt (target_flags): New Variable record.
1662         (flag_dump_unnumbered, flag_dump_unnumbered_links,
1663         flag_var_tracking, flag_var_tracking_assignments,
1664         flag_var_tracking_assignments_toggle): Don't mark variables with
1665         VarExists.
1666         * config/i386/i386.c (ix86_isa_flags): Don't define here.
1667         * config/i386/i386.opt (ix86_isa_flags): Define here.
1668         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
1669         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
1670         VarExists.
1671         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
1672         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
1673         Only define for generator programs.
1674         * rtlanal.c (target_flags): Remove.
1675         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
1676         flag_var_tracking_assignments_toggle): Remove.
1677
1678 2010-09-17  Michael Matz  <matz@suse.de>
1679
1680         PR tree-optimization/43432
1681         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1682         Accept backwards consecutive accesses.
1683         (vect_create_data_ref_ptr): If step is negative generate
1684         decreasing IVs.
1685         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
1686         (perm_mask_for_reverse, reverse_vec_elements): New functions.
1687         (vectorizable_load): Handle loads with negative steps when easily
1688         possible.
1689
1690 2010-09-03  Jan Hubicka  <jh@suse.cz>
1691
1692         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
1693
1694 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
1695
1696         * config/v850/v850.c (v850_function_value_regno_p): Make static.
1697         Adjust comments. Declare.
1698         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1699         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
1700
1701 2010-09-17  Richard Guenther  <rguenther@suse.de>
1702
1703         * common.opt (combine): Remove.
1704         * gcc.c (default_compilers): Remove specs testing combine.
1705         The C compilers no longer can combine.
1706         (option_map): Remove -combine.
1707         (display_help): Remove -combine.
1708         (driver_handle_option): Remove OPT_combine handling.
1709         (compile_input_file_p): Remove.
1710         (do_spec): Remove code concerning combine.
1711         (main): Likewise.
1712         * doc/invoke.texi: Remove traces of -combine.
1713         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
1714
1715 2010-09-17  Richard Guenther  <rguenther@suse.de>
1716
1717         PR middle-end/45678
1718         * builtins.c (fold_builtin_memory_op): Always properly adjust
1719         alignment of memory accesses.
1720
1721 2010-09-16  Jan Hubicka  <jh@suse.cz>
1722
1723         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
1724         processing clone.
1725
1726 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
1727
1728         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
1729
1730         * config/i386/i386.c (predict_jump): Add prototype.
1731         (flag_opts): Add -m8bit-idiv.
1732         (ix86_split_idivmod): New.
1733
1734         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
1735         Add 2 splitters for SI/DI mode divide.
1736         (divmod<mode>4_1): New pattern.
1737         (udivmod<mode>4_1): Likewise.
1738         (testdi_ccno_1): Likewise.
1739
1740         * config/i386/i386.opt (m8bit-idiv): New.
1741
1742         * doc/invoke.texi: Document -m8bit-idiv.
1743
1744 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
1745
1746         PR bootstrap/45680
1747         * config/i386/i386.c (min_insn_size): Moved out of the
1748         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
1749
1750 2010-09-16  Jan Hubicka  <jh@suse.cz>
1751
1752         * lto-cgraph.c (lto_output_node): Fix handling of clones.
1753         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
1754         unreachable clones with reachable clones.
1755         * tree-inline.c (copy_bb): Fix sanity checking when producing
1756         unreachable clone.
1757
1758 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
1759
1760         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
1761         (TARGET_MEMORY_MOVE_COST): Define.
1762         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
1763
1764 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
1765
1766         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
1767         maybe_tidy_empty_bb.
1768
1769         Revert:
1770         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
1771         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1772
1773 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
1774
1775         * target.def (target_option.optimization): New hook.
1776         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
1777         TARGET_OPTION_OPTIMIZATION hook.
1778         * doc/tm.texi: Regenerate.
1779         * hooks.c (hook_void_int_int): New.
1780         * hooks.h (hook_void_int_int): Declare.
1781         * opts.c: Don't include tm_p.h.
1782         (decode_options): Use targetm.target_option.optimization instead
1783         of OPTIMIZATION_OPTIONS.
1784         * system.h (OPTIMIZATION_OPTIONS): Poison.
1785         * config/arm/arm-protos.h (arm_optimization_options): Remove.
1786         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
1787         (arm_optimization_options): Rename to arm_option_optimization.
1788         Make static.
1789         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
1790         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
1791         (cris_option_optimization): New.
1792         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
1793         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
1794         (crx_option_optimization): New.
1795         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
1796         * config/frv/frv-protos.h (frv_optimization_options): Remove.
1797         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
1798         (frv_optimization_options): Rename to frv_option_optimization.
1799         Make static.
1800         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
1801         * config/h8300/h8300.c (h8300_option_optimization): New.
1802         (TARGET_OPTION_OPTIMIZATION): Define.
1803         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
1804         * config/i386/i386-protos.h (optimization_options): Remove.
1805         * config/i386/i386.c (optimization_options): Rename to
1806         ix86_option_optimization.  Make static.
1807         (TARGET_OPTION_OPTIMIZATION): Define.
1808         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
1809         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
1810         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
1811         (ia64_optimization_options): Rename to ia64_option_optimization.
1812         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
1813         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
1814         commented-out definition.
1815         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1816         instead of OPTIMIZATION_OPTIONS.
1817         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
1818         (m32r_option_optimization): New.
1819         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
1820         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1821         Remove.
1822         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
1823         (mcore_option_optimization): New.
1824         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
1825         * config/mep/mep-protos.h (mep_optimization_options): Remove.
1826         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
1827         (mep_optimization_options): Rename to mep_option_optimization.
1828         Make static.  Take unused level and size parameters.
1829         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
1830         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
1831         (mmix_option_optimization): New.
1832         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
1833         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
1834         (pdp11_option_optimization): New.
1835         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
1836         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
1837         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
1838         (optimization_options): Rename to rs6000_option_optimization.
1839         Make static.
1840         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
1841         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
1842         * config/rx/rx.c (rx_set_optimization_options): Rename to
1843         rx_option_optimization.  Make static.  Take unused level and size
1844         parameters.
1845         (TARGET_OPTION_OPTIMIZATION): Define.
1846         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
1847         * config/s390/s390-protos.h (optimization_options): Remove.
1848         * config/s390/s390.c (optimization_options): Rename to
1849         s390_option_optimization.  Make static.  Don't mark size parameter
1850         unused.
1851         (TARGET_OPTION_OPTIMIZATION): Define.
1852         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
1853         * config/sh/sh-protos.h (sh_optimization_options): Remove.
1854         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
1855         (sh_optimization_options): Rename to sh_option_optimization.  Make
1856         static.  Don't mark parameters unused.
1857         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
1858         * config/spu/spu-protos.h (spu_optimization_options): Remove.
1859         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
1860         (spu_optimization_options): Rename to spu_option_optimization.
1861         Make static.
1862         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
1863         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
1864         (v850_option_optimization): New.
1865         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
1866         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
1867         (xtensa_option_optimization): New.
1868         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
1869
1870 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
1871
1872         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
1873         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
1874         * doc/tm.texi: Regenerate.
1875         * system.h (OVERRIDE_OPTIONS): Poison.
1876         * target.def (override): Default to hook_void_void.
1877         * targhooks.c (default_target_option_override): Remove.
1878         * genmodes.c, machmode.def: Update comments mentioning
1879         OVERRIDE_OPTIONS.
1880         * config/alpha/alpha-modes.def: Update comment mentioning
1881         alpha_override_options.
1882         * config/alpha/alpha-protos.h (override_options): Remove.
1883         * config/alpha/alpha.c (override_options): Rename to
1884         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
1885         (TARGET_OPTION_OVERRIDE): Define.
1886         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
1887         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
1888         of OVERRIDE_OPTIONS.
1889         * config/arc/arc-protos.h (arc_init): Remove.
1890         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
1891         (arc_init): Rename to arc_option_override.  Make static.
1892         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
1893         (OVERRIDE_OPTIONS): Remove.
1894         * config/arm/arm-protos.h (arm_override_options): Remove.
1895         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
1896         (arm_override_options): Rename to arm_option_override.  Make
1897         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
1898         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
1899         * config/arm/arm.md: Update comment referring to arm_override_options.
1900         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
1901         instead of OVERRIDE_OPTIONS.
1902         * config/avr/avr-protos.h (avr_override_options): Remove.
1903         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
1904         (avr_override_options): Rename to avr_option_override.  Make static.
1905         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
1906         * config/bfin/bfin-protos.h (override_options): Remove (twice).
1907         * config/bfin/bfin.c (override_options): Rename to
1908         bfin_option_override.  Make static.
1909         (TARGET_OPTION_OVERRIDE): Define.
1910         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
1911         * config/cris/cris-protos.h (cris_override_options): Remove.
1912         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
1913         (cris_override_options): Rename to cris_option_override.  Make static.
1914         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
1915         * config/frv/frv-protos.h (frv_override_options): Remove.
1916         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
1917         (frv_override_options): Rename to frv_option_override.  Make static.
1918         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
1919         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
1920         * config/h8300/h8300.c (h8300_init_once): Rename to
1921         h8300_option_override.  Make static.
1922         (TARGET_OPTION_OVERRIDE): Define.
1923         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
1924         * config/i386/i386-protos.h (override_options): Remove.
1925         * config/i386/i386.c (override_options): Rename to
1926         ix86_option_override_internal.  Make static.  Comments referring
1927         to this function and callers changed.
1928         (ix86_option_override): New.
1929         (TARGET_OPTION_OVERRIDE): Define.
1930         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
1931         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
1932         * config/ia64/ia64.c (ia64_file_start): Update comment referring
1933         to ia64_override_options.
1934         * config/iq2000/iq2000-protos.h (override_options): Remove.
1935         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
1936         (override_options): Rename to iq2000_option_override.  Make static.
1937         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
1938         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
1939         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
1940         (lm32_override_options): Rename to lm32_option_override.  Make static.
1941         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
1942         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
1943         (m32r_option_override): New.
1944         (m32r_init): Update comment.
1945         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
1946         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
1947         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
1948         (m68hc11_override_options): Rename to m68hc11_option_override.
1949         Make static.  Return void.
1950         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
1951         * config/m68k/m68k-protos.h (override_options): Remove.
1952         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
1953         (override_options): Rename to m68k_option_override.  Make static.
1954         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
1955         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
1956         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
1957         (mcore_override_options): Rename to mcore_option_override.  Make
1958         static.
1959         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
1960         * config/mep/mep-protos.h (mep_override_options): Remove.
1961         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
1962         (mep_override_options): Rename to mep_option_override.  Make static.
1963         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
1964         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
1965         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
1966         (mmix_override_options): Rename to mmix_option_override.  Make static.
1967         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
1968         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
1969         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
1970         (mn10300_override_options): Rename to mn10300_option_override.
1971         Make static.
1972         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
1973         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
1974         * config/moxie/moxie.c (moxie_override_options): Rename to
1975         moxie_option_override.  Make static.
1976         (TARGET_OPTION_OVERRIDE): Define.
1977         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
1978         * config/picochip/picochip-protos.h (picochip_override_options):
1979         Remove.  Update comment referring to picochip_override_options.
1980         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
1981         (picochip_override_options): Rename to picochip_option_override.
1982         Make static.  Update comment and definition of
1983         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
1984         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
1985         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1986         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1987         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1988         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1989         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
1990         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
1991         instead of OVERRIDE_OPTIONS.
1992         * config/rs6000/rs6000-modes.def: Update comment referring to
1993         rs6000_override_options.
1994         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
1995         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
1996         (rs6000_override_options): Rename to
1997         rs6000_option_override_internal.  Make static.  Commented
1998         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
1999         (rs6000_option_override): New.
2000         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2001         instead of OVERRIDE_OPTIONS.
2002         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2003         * config/s390/s390-protos.h (override_options): Remove.
2004         * config/s390/s390.c (override_options): Rename to
2005         s390_option_override.  Make static.
2006         (TARGET_OPTION_OVERRIDE): Define.
2007         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2008         * config/score/score-protos.h (score_override_options): Remove.
2009         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2010         (score_override_options): Rename to score_option_override.  Make
2011         static.
2012         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2013         Update comment referring to override_options.
2014         * config/score/score3.c (score3_override_options): Rename to
2015         score3_option_override.
2016         * config/score/score3.h (score3_override_options): Rename to
2017         score3_option_override.
2018         * config/score/score7.c (score7_override_options): Rename to
2019         score7_option_override.
2020         * config/score/score7.h (score7_override_options): Rename to
2021         score7_option_override.
2022         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2023         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2024         (sparc_override_options): Rename to sparc_option_override.  Make
2025         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2026         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2027         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2028         instead of OVERRIDE_OPTIONS.
2029         * config/spu/spu-protos.h (spu_override_options): Remove.
2030         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2031         (spu_override_options): Rename to spu_option_override.  Make
2032         static.
2033         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2034         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2035         OVERRIDE_OPTIONS.
2036         * config/vax/vax-protos.h (override_options): Remove.
2037         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2038         (override_options): Rename to vax_option_override.  Make static.
2039         Call SUBTARGET_OVERRIDE_OPTIONS.
2040         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2041         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2042         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2043         * config/xtensa/xtensa-protos.h (override_options): Remove.
2044         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2045         (override_options): Rename to xtensa_option_override.  Make static.
2046         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2047
2048 2010-09-16  Richard Guenther  <rguenther@suse.de>
2049
2050         PR tree-optimization/45623
2051         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2052         (get_constraint_for_component_ref): If computing a constraint
2053         for the rhs handle type punning through unions.
2054         (get_constraint_for_address_of): Adjust.
2055         (get_constraint_for_1): Likewise.
2056         (get_constraint_for): Likewise.
2057         (get_constraint_for_rhs): New function.
2058         (do_structure_copy): Adjust.
2059         (make_constraint_to): Likewise.
2060         (handle_const_call): Likewise.
2061         (find_func_aliases): Likewise.
2062         (process_ipa_clobber): Likewise.
2063         (create_variable_info_for): Likewise.
2064
2065 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2066
2067         * tree-vectorizer.c: Fix documentation.
2068         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2069         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2070         is_pattern_stmt_p, is_loop_header_bb_p,
2071         stmt_vinfo_set_inside_of_loop_cost,
2072         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2073         known_alignment_for_access_p): Likewise.
2074         * tree-vect-loop.c: Fix documentation.
2075         (vect_get_cost): Start function name from new line.
2076         * tree-vect-data-refs.c: Fix documentation.
2077         * tree-vect_stmts.c: Likewise.
2078         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2079         (vectorizable_store): Free vec_oprnds if allocated.
2080         (vectorizable_condition): Initialize several variables to avoid
2081         warnings.
2082         * tree-vect-slp.c: Fix documentation.
2083
2084 2010-09-16  Richard Guenther  <rguenther@suse.de>
2085
2086         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2087         is TS_TRANSLATION_UNIT_DECL.
2088         (initialize_tree_contains_struct): Adjust.
2089         (all_translation_units): New global vector.
2090         (build_translation_unit_decl): New function.
2091         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2092         (struct tree_translation_unit_decl): New.
2093         (all_translation_units): Declare.
2094         (union tree_node): Add translation_unit_decl member.
2095         (build_translation_unit_decl): Declare.
2096         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2097         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2098         New function.
2099         (pack_value_fields): Call it.
2100         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2101         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2102         (lto_output_tree_pointers): Call it.
2103         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2104         to TRANSLATION_UNIT_DECL.
2105         (unpack_ts_translation_unit_decl_value_fields): New function.
2106         (unpack_value_fields): Call it.
2107         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2108         (lto_input_tree_pointers): Call it.
2109         * lto-streamer.c (check_handled_ts_structures): Adjust.
2110         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2111         * c-decl.c (all_translation_units): Remove.
2112         (pop_scope): Use build_translation_unit_decl.
2113         (collect_all_refs): Adjust.
2114         (for_each_global_decl): Likewise.
2115         (c_write_global_declarations): Likewise.
2116
2117 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2118
2119         PR bootstrap/45686
2120         * fold-const.c (fold_checksum_tree): Change slot from const void **
2121         to void **, use CONST_CAST_TREE to store into *slot.
2122
2123 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2124
2125         * config/i386/i386.md: Remove unneeded empty conditions and
2126         preparation statements from expanders.
2127         * config/i386/mmx.md: Ditto.
2128         * config/i386/sse.md: Ditto.
2129
2130 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2131
2132         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2133
2134 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2135
2136         PR rtl-optimization/45593
2137         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2138         insns that were in delay slots as stand-alone insns.
2139
2140 2010-09-15  Ian Lance Taylor  <iant@google.com>
2141
2142         * incpath.c (remove_duplicates): If name is not a directory, issue
2143         a warning rather than an error.
2144
2145 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2146
2147         PR middle-end/45644
2148         * tree-sra.c (create_access): Check for bit-fields directly.
2149
2150 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2151
2152         PR tree-optimization/45633
2153         * tree-cfg.c (verify_gimple_assign_binary): Allow
2154         MINUS_EXPR with lhs and rhs1 pointer vector and
2155         rhs2 sizetype vector.
2156         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2157         or vector pointer use TER to optimize pointer subtraction.
2158
2159 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2160
2161         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2162         fcmpd to fcmps.
2163
2164 2010-09-15  Ian Lance Taylor  <iant@google.com>
2165
2166         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2167
2168 2010-09-15  Ian Lance Taylor  <iant@google.com>
2169
2170         * function.c (get_arg_pointer_save_area): Set
2171         arg_pointer_save_area_init to true.
2172
2173 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2174
2175         * tree-sra.c (generate_subtree_copies): Updated comment.
2176         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2177         obtained from the statement iterator instead.
2178         (load_assign_lhs_subreplacements): Removed parameters lhs and
2179         right_offset, which is obtained from top_racc instead.  Parameter lacc
2180         is now expected to be the root of the processed tree rather than root's
2181         first child.  Updated all callers.
2182
2183 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
2184
2185         * config/pdp11/pdp11.c (register_move_cost): Rename to
2186         pdp11_register_move_cost.
2187         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2188         pdp11_register_move_cost.
2189         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2190         pdp11_register_move_cost instead of register_move_cost.
2191
2192 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
2193
2194         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
2195         pattern for vmovn. Expansion in case of non
2196         -mvectorize-with-neon-quad.
2197         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
2198         non- -mvectorize-with-neon-quad case.
2199         (move_lo_quad_<mode>): New expansion to vmov into low part.
2200         (move_hi_quad_<mode>): New expansion to vmov into high part.
2201         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
2202         (move_lo_quad_v4sf): Likewise.
2203         (move_lo_quad_v8hi): Likewise.
2204         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
2205         low part.
2206         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
2207         high part.
2208         * config/arm/iterators.md (ANY128): New mode iterator.
2209         (V_narrow_pack): New mode attribute.
2210         (V_HALF): Add attribute.
2211         (V_DOUBLE): Add attribute.
2212         (V_mode_nunits): Add attribute.
2213
2214 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2215
2216         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
2217         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
2218
2219 2010-09-15  Olivier Hainque  <hainque@adacore.com>
2220             Jose Ruiz  <ruiz@adacore.com>
2221
2222         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
2223         * config/alpha/osf5-unwind.h: New file.
2224
2225 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2226
2227         PR bootstrap/45672
2228         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
2229         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2230         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2231
2232 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2233
2234         * c-lang.h (struct lang_type): Add variable_size GTY option.
2235
2236 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2237
2238         PR bootstrap/45672
2239         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2240
2241 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2242
2243         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
2244         result isn't used in memory address.
2245
2246 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2247
2248         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
2249         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
2250         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2251         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2252         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2253         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2254
2255         * target.def: Add units_per_simd_word to vectorize.
2256
2257         * targhooks.c (default_units_per_simd_word): New.
2258         * targhooks.h (default_units_per_simd_word): Likewise.
2259         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
2260         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2261         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
2262         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2263         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
2264         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2265         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
2266         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
2267
2268         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
2269         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
2270
2271         * tree-vect-stmts.c: Don't include "tm_p.h".
2272         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
2273         with targetm.vectorize.units_per_simd_word.
2274
2275         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
2276
2277         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
2278
2279         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
2280         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
2281
2282         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
2283         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
2284
2285         * doc/tm.texi: Regenerated.
2286
2287 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
2288
2289         * tree-vect-stmts.c: Include "tm_p.h".
2290
2291         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
2292         out of RTX_CODE.
2293
2294 2010-09-14  Martin Jambor  <mjambor@suse.cz>
2295
2296         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
2297         location of generated statement.  Changed all callers.
2298         (build_ref_for_model): New parameter loc which used to set location of
2299         all generated expressions.  Changed all callers.
2300         (generate_subtree_copies): Likewise.
2301         (init_subtree_with_zero): Likewise.
2302         (sra_modify_expr): Set locations of all generated statements and
2303         expressions to the location the original statement.
2304         (handle_unscalarized_data_in_subtree): Likewise.
2305         (load_assign_lhs_subreplacements): Likewise.
2306         (sra_modify_constructor_assign): Likewise.
2307         (sra_modify_assign): Likewise.
2308
2309 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
2310
2311         PR target/45277
2312         PR target/45363
2313         PR target/45407
2314         * doc/install.texi (sparc*-*-*): New section.
2315         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
2316
2317 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2318
2319         PR middle-end/45567
2320         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
2321         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
2322         (expand_builtin): Adjust caller.
2323         (expand_builtin_unop): Only use subtarget if it has the right mode.
2324
2325 2010-09-14  Tristan Gingold  <gingold@adacore.com>
2326
2327         * configure.ac (plugins): Fix typos.
2328         * configure: Regenerate.
2329
2330 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
2331
2332         PR debug/45660
2333         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
2334         gen_type_die for function/method return type.
2335
2336 2010-09-14  Ira Rosen  <irar@il.ibm.com>
2337
2338         PR tree-optimization/45470
2339         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2340         can throw an exception.
2341         * tree-vect-stmts.c (vectorizable_call): Likewise.
2342
2343 2010-09-14  DJ Delorie  <dj@redhat.com>
2344
2345         PR target/44749
2346         * config/mep/mep-protos.h (mep_save_register_info,
2347         mep_reinit_regs, mep_init_regs): Declare.
2348
2349         * config/mep/mep.c: Move all target definitions to the end of the
2350         file to avoid the need for duplicate declarations.
2351         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
2352         (mep_reorg_erepeat): Remove unused variables.
2353         (mep_expand_builtin): Likewise.
2354
2355         * config/mep/mep-pragma.c: Don't include rtl.h.
2356         (INVALID_REGNUM): New.
2357         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
2358         functions.
2359         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
2360         Avoid enum/integer math.
2361
2362 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
2363
2364         PR target/44749
2365         * config/mep/t-mep (GTM_H): Add insn-constants.h.
2366         * config/mep/mep.c (mep_conditional_register_usage): Take no
2367         parameters.
2368         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
2369         prototype.
2370         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
2371         call to mep_conditional_register_usage.
2372
2373 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
2374
2375         PR debug/43937
2376         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
2377         the DECL as well.
2378
2379 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
2380
2381         PR rtl-optimization/45617
2382         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
2383         even if low N bits of X aren't known to be zero.
2384
2385 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2386
2387         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
2388
2389         * config/i386/i386.c (initial_ix86_tune_features): Add
2390         X86_TUNE_VECTORIZE_DOUBLE.
2391         (ix86_units_per_simd_word): New.
2392
2393         * config/i386/i386.h (ix86_tune_indices): Add
2394         X86_TUNE_VECTORIZE_DOUBLE.
2395         (TARGET_VECTORIZE_DOUBLE): New.
2396         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
2397
2398 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2399
2400         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
2401         (new_temp_expr_table): Allocate call_cnt vector.
2402         (free_temp_expr_table): Free it.
2403         (process_replaceable): Add call_cnt parm and set in vector.
2404         (find_replaceable_in_bb): Skip replacement if def/use span a call.
2405         (debug_ter): Dump call_cnt value, remove stderr uses.
2406
2407 2010-09-13  Jan Hubicka  <jh@suse.cz>
2408
2409         * tree.c (build_zero_cst): New.
2410         * tree.h (build_zero_cst): Declare.
2411         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
2412         (get_base_constructor): Break out from ...
2413         (fold_const_aggregate_ref): Here; handle empty constructors.
2414
2415 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2416
2417         * config/arm/arm.md: (define_attr "conds"): Update comment.
2418         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
2419         conds attribute to clob.
2420         (arm_sync_compare_and_swapsi): Likewise.
2421         (arm_sync_compare_and_swap<mode>): Likewise.
2422         (arm_sync_lock_test_and_setsi): Likewise.
2423         (arm_sync_lock_test_and_set<mode>): Likewise.
2424         (arm_sync_new_<sync_optab>si): Likewise.
2425         (arm_sync_new_nandsi): Likewise.
2426         (arm_sync_new_<sync_optab><mode>): Likewise.
2427         (arm_sync_new_nand<mode>): Likewise.
2428         (arm_sync_old_<sync_optab>si): Likewise.
2429         (arm_sync_old_nandsi): Likewise.
2430         (arm_sync_old_<sync_optab><mode>): Likewise.
2431         (arm_sync_old_nand<mode>): Likewise.
2432
2433 2010-09-13  Olivier Hainque  <hainque@adacore.com>
2434
2435         * fwprop.c (forward_propagate_and_simplify): Only attach a
2436         REG_EQUAL note to an insn if the destination is a register.
2437         * gcse.c (try_replace_reg): Likewise.
2438
2439 2010-09-13  Richard Guenther  <rguenther@suse.de>
2440
2441         PR tree-optimization/45611
2442         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
2443         (copy_ref_info): Likewise.
2444
2445 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
2446
2447         PR debug/45604
2448         PR debug/45419
2449         PR debug/45408
2450         * tree-pretty-print.c (dump_generic_node): Disregard top-level
2451         types of MEM_REF pointer types to the same type.
2452
2453 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
2454
2455         PR rtl-optimization/41087
2456         * ifcvt.c (noce_get_condition): Don't allow conditions with
2457         side-effects.
2458
2459 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
2460
2461         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2462         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
2463         * config/frv/frv.c (frv_register_move_cost): Make static. Change
2464         arguments type to reg_class_t. Add mode argument.
2465         (frv_memory_move_cost): New.
2466         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
2467
2468 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
2469
2470         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
2471         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
2472
2473 2010-09-10  Jan Hubicka  <jh@suse.cz>
2474
2475         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
2476
2477 2010-09-10  Richard Guenther  <rguenther@suse.de>
2478
2479         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
2480         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
2481         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
2482         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
2483         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
2484
2485 2010-09-10  Richard Guenther  <rguenther@suse.de>
2486
2487         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
2488         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
2489         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
2490         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
2491
2492 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2493
2494         PR middle-end/45634
2495         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
2496         of string folding is of integral type.
2497
2498 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
2499
2500         * doc/invoke.texi (-x): Fix typo.
2501
2502 2010-09-10  Richard Guenther  <rguenther@suse.de>
2503
2504         PR debug/44115
2505         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
2506         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2507         Output DECL_DEBUG_EXPR.
2508         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2509         Input DECL_DEBUG_EXPR.
2510
2511 2010-09-10  Richard Guenther  <rguenther@suse.de>
2512
2513         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
2514         (build_index_type): Implement in terms of build_range_type.
2515         (build_range_type): Do not allow NULL_TREE type, improve
2516         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
2517         if we didn't hash.
2518         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
2519         create a distinct copy of the type.
2520
2521 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
2522
2523         * configure: Regenerated.
2524         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
2525
2526 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2527
2528         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
2529         * config/arm/cortex-a9-neon.md: New and partially generated.
2530         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
2531
2532 2010-09-10  Richard Guenther  <rguenther@suse.de>
2533
2534         * tree.h (build_index_2_type): Remove.
2535         * tree.c (build_index_2_type): Remove.
2536
2537 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
2538
2539         PR bootstrap/45630
2540         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
2541         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
2542         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
2543
2544 2010-09-10  Martin Jambor  <mjambor@suse.cz>
2545
2546         PR tree-optimization/44972
2547         * tree-sra.c: Include toplev.h.
2548         (build_ref_for_offset): Entirely reimplemented.
2549         (build_ref_for_model): New function.
2550         (build_user_friendly_ref_for_offset): New function.
2551         (analyze_access_subtree): Removed build_ref_for_offset check.
2552         (propagate_subaccesses_across_link): Likewise.
2553         (create_artificial_child_access): Use
2554         build_user_friendly_ref_for_offset.
2555         (propagate_subaccesses_across_link): Likewise.
2556         (ref_expr_for_all_replacements_p): Removed.
2557         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
2558         (sra_modify_expr): Use build_ref_for_model.
2559         (load_assign_lhs_subreplacements): Likewise.
2560         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
2561         checks for return values of build_ref_for_offset.
2562         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
2563         build_ref_for_offset.
2564         * ipa-prop.h: Include gimple.h
2565         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
2566         (ipa_analyze_indirect_call_uses): Update comment.
2567         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
2568         (IPA_PROP_H): Likewise.
2569
2570 2010-09-10  Martin Jambor  <mjambor@suse.cz>
2571
2572         PR tree-optimization/44972
2573         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
2574         calling build_ref_for_offset.
2575
2576 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2577
2578         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
2579         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
2580         * config/arm/arm-tune.md: Regenerate.
2581         * doc/invoke.texi (ARM Options): Document it.
2582
2583 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
2584
2585         * config/i386/i386.c: Include sched-int.h.
2586         (TARGET_SCHED_DISPATCH): Defined.
2587         (TARGET_SCHED_DISPATCH_DO): Defined.
2588         (DISPATCH_WINDOW_SIZE): Defined.
2589         (MAX_DISPATCH_WINDOWS): Defined.
2590         (MAX_INSN): Defined.
2591         (MAX_IMM): Defined.
2592         (MAX_IMM_SIZE): Defined.
2593         (MAX_IMM_32): Defined.
2594         (MAX_IMM_64): Defined.
2595         (MAX_LOAD): Defined.
2596         (MAX_STORE): Defined.
2597         (BIG): Defined.
2598         (dispatch_group): New.
2599         (num_allowable_groups): New.
2600         (group_name): New.
2601         (sched_insn_info_s): New.
2602         (dispatch_windows_s): New.
2603         (imm_info_s): New.
2604         (dispatch_window_list): New.
2605         (dispatch_window_list1): New.
2606         (get_mem_group): New.
2607         (is_cmp): New.
2608         (dispatch_violation): New.
2609         (is_branch): New.
2610         (is_prefetch): New.
2611         (init_window): New.
2612         (allocate_window): New.
2613         (init_dispatch_sched): New.
2614         (is_end_basic_block): New.
2615         (process_end_window): New.
2616         (allocate_next_window): New.
2617         (find_constant_1): New.
2618         (find_constant): New.
2619         (get_num_immediates): New.
2620         (has_immediate): New.
2621         (get_insn_path): New.
2622         (get_insn_group): New.
2623         (count_num_restricted): New.
2624         (fits_dispatch_window): New.
2625         (add_insn_window): New.
2626         (add_to_dispatch_window): New.
2627         (debug_dispatch_window_file): New.
2628         (debug_dispatch_window): New.
2629         (debug_insn_dispatch_info_file): New.
2630         (debug_ready_dispatch): New.
2631         (do_dispatch): New.
2632         (has_dispatch): New.
2633         * config/i386/i386.h (debug_ready_dispatch): Declared.
2634         (debug_dispatch_window): Declared.
2635         * config/i386/i386.opt (mdispatch-scheduler): New flag.
2636         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
2637         (TARGET_SCHED_DISPATCH_DO): New.
2638         * doc/tm.texi: Regererated.
2639         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
2640         ready_remove_first_dispatch
2641         (schedule_block): Call targetm.sched.dispatch and
2642         targetm.sched.dispatch_do.
2643         (sched_init): Call targetm.sched.dispatch and
2644         targetm.sched.dispatch_do.
2645         (ready_remove_first_dispatch): New.
2646         (number_in_ready): New.
2647         (get_ready_element): New.
2648         * hooks.c (hook_bool_rtx_int_false): New.
2649         (hook_void_rtx_int): New.
2650         * hooks.h (hook_bool_rtx_int_false): Declared.
2651         (hook_void_rtx_int): Declared.
2652         * sched-int.h (IS_DISPATCH_ON): Defined.
2653         (IS_CMP): Defined.
2654         (DISPATCH_VIOLATION): Defined.
2655         (FITS_DISPATCH_WINDOW): Defined.
2656         (DISPATCH_INIT): Defined.
2657         (ADD_TO_DISPATCH_WINDOW): Defined.
2658         (get_ready_element): Declared.
2659         (number_in_ready): Declared.
2660         * target.def (dispatch): Defined.
2661         (dispatch_do): Defined.
2662
2663 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2664
2665         PR middle-end/45312
2666         * reload1.c (merge_assigned_reloads): Remove.
2667         (reload_as_needed): Don't call it.
2668
2669 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
2670
2671         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
2672         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2673         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2674
2675 2010-09-09  Matthias Klose  <doko@ubuntu.com>
2676
2677         PR bootstrap/43847
2678         * configure.ac (--enable-plugin): Enhance for cross builds.
2679         * configure: Regenerate.
2680
2681 2010-09-09  Jan Hubicka  <jh@suse.cz>
2682
2683         PR tree-optimization/45598
2684         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
2685         string folding is of integral type.
2686
2687 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2688
2689         * configure.ac (gnu_indirect_function): New test.
2690         * configure: Rebuilt.
2691         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
2692         * defaults.h (IFUNC_ASM_TYPE): Provide default.
2693
2694         * doc/extend.texi (Function Attributes): Document ifunc.
2695         * varasm.c (do_assemble_alias): Deal with ifuncs too.
2696
2697 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2698
2699         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
2700         epilogue instruction move.
2701
2702 2010-09-09  Jan Hubicka  <jh@suse.cz>
2703
2704         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
2705         command line to allow more partitions than input files.
2706
2707 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2708
2709         PR middle-end/44554
2710         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
2711
2712 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2713
2714         PR middle-end/40386
2715         * ira.c (pseudo_for_reload_consideration_p): Don't use
2716         flag_ira_share_spill_slots.
2717
2718 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2719
2720         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
2721         point zero operands that fit into a single GPR.
2722         (s390_preferred_reload_class): Ensure we only return general-purpose
2723         register classes.
2724         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
2725         floating-point zero operands into GPRs.
2726         ("*mov<mode>_64"): Likewise.
2727         ("mov<mode>"): Likewise using lhi.
2728
2729 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2730
2731         * config/s390/s390.c (s390_symref_operand_p): Return false for
2732         literal pool references.
2733         (s390_check_qrst_address): Update caller.
2734
2735 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
2736
2737         * config/i386/predicates.md (ext_register_operand): Check that
2738         SUBREG_REG is really a register before looking for REGNO.
2739         (reg_not_xmm0_operand): Handle SUBREGs correctly.
2740         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
2741
2742 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
2743
2744         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
2745         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
2746         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
2747         * print-rtl.c (print_rtx): Likewise.
2748         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
2749         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
2750         for ADDR_EXPR with non-addressable object.
2751         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
2752         (struct dw_val_struct): Add v.val_decl_ref.
2753         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
2754         Handle DW_OP_GNU_implicit_pointer.
2755         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
2756         (get_ref_die_offset_label): New function.
2757         (implicit_ptr_descriptor): New function.
2758         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
2759         (loc_descriptor): Likewise.
2760         (gen_variable_die): Put even definitions into decl_die_table.
2761         (resolve_addr_in_expr): Resolve still unresolved
2762         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
2763         return false.
2764         (dwarf2out_finish): Call output_location_lists after outputting
2765         .debug_info and .debug_abbrev instead of before.
2766
2767 2010-09-09  Roland McGrath  <roland@redhat.com>
2768
2769         * dwarf2out.c (DWARF_REF_SIZE): Define.
2770         (size_of_loc_descr): Use it for DW_OP_call_ref.
2771
2772 2010-09-09  Alan Modra  <amodra@gmail.com>
2773
2774         * doc/invoke.text: Reinstate mcmodel=medium.
2775         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2776         CMODEL_MEDIUM as default.
2777         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
2778         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
2779         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
2780         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
2781
2782 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2783
2784         PR target/45250
2785         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
2786         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
2787         (builtin_longjmp): Likewise.
2788         (allocate_stack): Use hard_frame_pointer_rtx instead of
2789         frame_pointer_rtx.
2790         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
2791         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
2792         (pa_can_eliminate): Likewise.
2793         (TARGET_INTERNAL_ARG_POINTER): Define.
2794         (TARGET_CAN_ELIMINATE): Define.
2795         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
2796         pointer.
2797         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
2798         (pa_internal_arg_pointer, pa_can_eliminate,
2799         pa_initial_elimination_offset): New.
2800         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
2801         (HARD_FRAME_POINTER_REGNUM): Set to register three.
2802         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2803         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
2804         Define.
2805         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
2806         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
2807         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
2808         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
2809         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
2810         new soft frame pointer.
2811         * config/pa/pa64-regs.h: Likewise.
2812
2813 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
2814
2815         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
2816         numerical constant.
2817         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
2818
2819 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
2820
2821         PR debug/45531
2822         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
2823
2824 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
2825
2826         PR debug/45419
2827         PR debug/45408
2828         * tree-pretty-print.c (dump_generic_node): Disregard top-level
2829         qualifiers in otherwise equal MEM_REF pointer types.
2830         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
2831         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
2832
2833 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2834
2835         PR target/44392
2836         * config/arm/arm.md (bswapsi2): Handle condition correctly
2837         for armv6 and optimize_size.
2838
2839 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2840
2841         PR other/18555
2842         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
2843
2844 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
2845
2846         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
2847         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
2848         ix86_expand_strlen, legitimate_pic_address_disp_p,
2849         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
2850         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
2851         ix86_check_movabs, ix86_secondary_memory_needed): Change function
2852         prototype to bool.
2853         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
2854         return_in_memory_ms_64, ix86_check_movabs,
2855         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
2856         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
2857         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
2858         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
2859         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
2860         ix86_secondary_memory_needed): Change to bool.  Return
2861         "true" and "false" values.
2862         * config/i386/i386.md: Return "true" and "false" values.
2863
2864 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2865
2866         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2867         run_expensive_tests.
2868
2869 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2870
2871         * toplev.c (output_stack_usage): Use lbasename instead of basename.
2872
2873 2010-09-08  Martin Jambor  <mjambor@suse.cz>
2874
2875         PR other/45443
2876         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
2877         at -O3.
2878
2879 2010-09-08  Richard Guenther  <rguenther@suse.de>
2880
2881         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
2882         (visit): Adjust.
2883         (iterative_hash_gimple_type): Likewise.
2884         (gimple_type_hash): Likewise.
2885         (gimple_register_type): Likewise.
2886         (print_gimple_types_stats): Likewise.
2887         (free_gimple_type_tables): Likewise.
2888
2889 2010-09-08  Michael Matz  <matz@suse.de>
2890
2891         PR tree-optimization/43430
2892         * tree-vect-stmts.c (vectorizable_condition): Support multiple
2893         copies for conditional statements if it's not part of a reduction.
2894
2895 2010-09-08  Michael Matz  <matz@suse.de>
2896
2897         PR tree-optimization/33244
2898         * tree-ssa-sink.c (statement_sink_location): Don't sink into
2899         empty loop latches.
2900
2901 2010-09-08  Richard Guenther  <rguenther@suse.de>
2902
2903         PR tree-optimization/45578
2904         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
2905         Be more careful when transfering alignment information to
2906         the new induction variable.
2907         (copy_ref_info): Likewise.
2908
2909 2010-09-08  Richard Guenther  <rguenther@suse.de>
2910
2911         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
2912         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
2913
2914 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
2915
2916         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
2917         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
2918
2919 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
2920
2921         PR doc/45587
2922         * doc/md.texi: Fixed modes on several standard pattern names.
2923
2924 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
2925
2926         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
2927         (ashl<mode>3): ...this.
2928         (loongson_psra<V_suffix>): Rename to...
2929         (ashr<mode>3): ...this.
2930         (loongson_psrl<V_suffix>): Rename to...
2931         (lshr<mode>3): ...this.
2932         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
2933         (CODE_FOR_loongson_psllw): Define.
2934         (CODE_FOR_loongson_psrlh): Define.
2935         (CODE_FOR_loongson_psrlw): Define.
2936         (CODE_FOR_loongson_psrah): Define.
2937         (CODE_FOR_loongson_psraw): Define.
2938
2939 2010-09-07  Richard Henderson  <rth@redhat.com>
2940
2941         * tree-vect-data-refs.c: Include tm_p.h.
2942         * Makefile.in (tree-vect-data-refs.o): Update deps.
2943         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
2944         Move delarations outside #ifdef RTX_CODE.
2945
2946 2010-09-07  Richard Henderson  <rth@redhat.com>
2947
2948         * final.c (rest_of_handle_final): Unconditionally do
2949         output_function_exception_table before assemble_end_function.
2950
2951 2010-09-07  Jan Hubicka  <jh@suse.cz>
2952
2953         * tree-inline.c (tree_inlinable_function_p): Do not test
2954         DECL_REPLACEABLE_P.
2955         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
2956         update_callee_keys, cgraph_decide_inlining): Test function availability.
2957         * cif-code.def (OVERWRITABLE): New code.
2958
2959 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
2960             Jack Howarth  <howarth@bromo.med.uc.edu>
2961
2962         PR target/36502
2963         PR target/42313
2964         PR target/44651
2965         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
2966         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
2967         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
2968         MAX macro.
2969
2970 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2971
2972         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
2973         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
2974
2975 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2976
2977         * config.gcc: Don't append t-android for Android targets.
2978
2979         * config/t-android: Removed.
2980
2981 2010-09-07  Richard Henderson  <rth@redhat.com>
2982
2983         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
2984         * doc/tm.texi.in: Add doc marker.
2985         * doc/tm.texi: Rebuild.
2986         * except.c (switch_to_exception_section): Always build.
2987         (output_one_function_exception_table): Move section switch,
2988         personality output, and label output ...
2989         (output_function_exception_table): ... here.  Use the new
2990         personality hook.
2991
2992         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
2993         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
2994         TARGET_ASM_INIT_SECTIONS): New.
2995         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
2996         make static.
2997         (TARGET_ASM_UNWIND_EMIT): Update to match.
2998         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
2999
3000         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3001         (arm_asm_init_sections): New.
3002         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3003
3004 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3005
3006         * config/arm/arm.md: Remove unused variable.
3007
3008 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3009
3010         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3011         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3012         (m32r_memory_move_cost): New function.
3013
3014 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3015
3016         * config.gcc: Append t-android for Android targets.
3017
3018         * config/t-android: New.
3019
3020 2010-09-07  Richard Henderson  <rth@redhat.com>
3021
3022         * target.def (unwind_emit_before_insn): New hook.
3023         * doc/tm.texi.in: Add @hook marker for it.
3024         * doc/tm.texi: Rebuild.
3025         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3026
3027 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3028
3029         PR fortran/43665
3030         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3031         are any type attributes.
3032
3033 2010-09-07  Jan Hubicka  <jh@suse.cz>
3034
3035         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3036         array_ref_low_bound in string access folding.
3037
3038 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3039
3040         PR target/45206
3041         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3042         eh_return fixup sequence.
3043
3044 2010-09-07  Jan Hubicka  <jh@suse.cz>
3045
3046         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3047         gimple_min_invariant.
3048
3049 2010-09-07  Richard Guenther  <rguenther@suse.de>
3050
3051         PR middle-end/45569
3052         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3053         nor CONSTRUCTOR can trap.
3054         * tree-complex.c (update_complex_assignment): Update EH info.
3055
3056 2010-09-07  Richard Guenther  <rguenther@suse.de>
3057
3058         PR middle-end/45569
3059         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3060         * passes.c (execute_function_todo): Do not verify anything if
3061         we saw errors.
3062
3063 2010-09-07  Richard Guenther  <rguenther@suse.de>
3064
3065         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3066
3067 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3068
3069         PR target/43137
3070         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3071         New define_mode_attrs.
3072         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3073         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3074         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3075         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3076         Remove pool_range attribute.
3077         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3078         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3079         pool_range and neg_pool_range attributes.
3080         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3081         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3082         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3083
3084 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3085
3086         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3087         check glibc.
3088
3089 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3090
3091         PR target/22152
3092         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3093         *mov<mode>_internal_avx, *mov<mode>_internal,
3094         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3095         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3096
3097 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3098
3099         * c-typeck.c (do_warn_double_promotion): Remove.
3100         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3101         Objective-C++ too.
3102
3103 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3104
3105         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3106         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3107         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3108         argument type to reg_class_t. Change result type to bool.
3109         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3110
3111 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3112
3113         PR libobjc/19850
3114         * gthr-posix.h (__gthread_objc_thread_detach): Use
3115         _objc_thread_attribs when detaching a thread.
3116         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3117
3118 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3119
3120         PR target/45524
3121         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3122         * configure: Regenerated.
3123
3124 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3125
3126         * combine.c (try_combine): Set subst_low_luid to i0.
3127
3128 2010-09-06  Richard Guenther  <rguenther@suse.de>
3129
3130         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3131         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3132         (build_aligned_type): Declare.
3133         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3134         (check_aligned_type): New function.
3135         (build_aligned_type): Likewise.
3136         * expr.c (expand_assignment): Handle misaligned stores via
3137         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3138         (expand_expr_real_1): Likewise.
3139         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3140         * tree-vect-stmts.c (vectorizable_store): Do not build
3141         MISALIGNED_INDIRECT_REF but initialize alignment information.
3142         (vectorizable_load): Likewise.
3143         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3144         handling.
3145         * cfgexpand.c (expand_debug_expr): Likewise.
3146         * dwarf2out.c (loc_list_from_tree): Likewise.
3147         * fold-const.c (maybe_lvalue_p): Likewise.
3148         (operand_equal_p): Likewise.
3149         (build_fold_addr_expr_with_type_loc): Likewise.
3150         * gimplify.c (gimplify_addr_expr): Likewise.
3151         (gimplify_expr): Likewise.
3152         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3153         (verify_gimple_assign_single): Likewise.
3154         * tree-dump.c (dequeue_and_dump): Likewise.
3155         (tree_could_trap_p): Likewise.
3156         * tree-predcom.c (ref_at_iteration): Likewise.
3157         * tree-pretty-print.c (dump_generic_node): Likewise.
3158         (op_code_prio): Likewise.
3159         (op_symbol_code): Likewise.
3160         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3161         * tree-ssa-loop-im.c (for_each_index): Likewise.
3162         (gen_lsm_tmp_name): Likewise.
3163         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3164         (find_interesting_uses_address): Likewise.
3165         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3166         * tree-ssa-operands.c (get_expr_operands): Likewise.
3167         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3168         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3169         (ao_ref_init_from_vn_reference): Likewise.
3170         * tree.c (staticp): Likewise.
3171         (build1_stat): Likewise.
3172         (reference_alias_ptr_type): Likewise.
3173         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3174         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3175         MISALIGNED_INDIRECT_REF handling.
3176
3177 2010-09-06  Richard Guenther  <rguenther@suse.de>
3178
3179         PR tree-optimization/45534
3180         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3181         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3182         on the target.
3183         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3184         valid on the target.
3185
3186 2010-09-06  Andreas Schwab  <schwab@redhat.com>
3187
3188         * configure.ac: Quote argument of AC_MSG_WARN.
3189         * configure: Regenerate.
3190
3191 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
3192
3193         * sel-sched.c (move_cond_jump): Correct arguments to
3194         maybe_tidy_empty_bb.
3195         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3196
3197 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
3198
3199         PR rtl-optimization/44919
3200         * sel-sched.c (move_cond_jump): Remove assert, check that
3201         the several blocks case can only happen with mutually exclusive
3202         insns instead.  Rewrite the movement code to support moving through
3203         several basic blocks.
3204
3205 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3206
3207         * config/i386/i386.md (iptrsize): New mode attribute.
3208         (tp_seg): Ditto.
3209         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
3210         mode iterator.
3211         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
3212         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
3213         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
3214         (stack_tls_protect_set_<mode>): Ditto from
3215         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
3216         of thread base pointer load.
3217         (stack_tls_protect_test_<mode>): Ditto from
3218         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
3219         of thread base pointer load.
3220         (stack_protect_set): Rewrite using indirect functions.
3221         (stack_protect_test): Ditto.
3222         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
3223         (ix86_print_operand): Handle '@'.
3224
3225 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
3226
3227         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
3228         MINUS_EXPR.
3229
3230 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3231
3232         * doc/invoke.texi: Document -Wdouble-promotion.
3233         * c-typeck.c (convert_arguments): Check for implicit conversions
3234         from float to double.
3235         (do_warn_double_promotion): New function.
3236         (build_conditional_expr): Use it.
3237         (build_binary_op): Likewise.
3238
3239 2010-09-05  Richard Guenther  <rguenther@suse.de>
3240
3241         PR tree-optimization/45535
3242         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
3243         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
3244         dereferencing it.
3245         (indirect_refs_may_alias_p): Likewise.
3246
3247 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
3248
3249         * config/sh/sh.c (sh_option_override): Make static.
3250         Adjust comments.  Declare.
3251         (sh_function_value_regno_p): Likewise.
3252         (sh_register_move_cost): Modify the arguments, make static.
3253         Adjust comments.  Declare.
3254         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
3255         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3256         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
3257         REGISTER_MOVE_COST): Delete.
3258         * config/sh/sh-protos.h (sh_override_options): Delete.
3259         (sh_register_move_cost): Delete.
3260         (sh_function_value_regno_p): Delete.
3261
3262 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
3263
3264         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
3265         m32r_function_value_regno_p): New functions.
3266         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3267         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
3268         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
3269         FUNCTION_VALUE_REGNO_P): Remove.
3270
3271 2010-09-04  Jan Hubicka  <jh@suse.cz>
3272
3273         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
3274         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
3275         fold_read_from_constant_string.
3276
3277         * gimple.h (canonicalize_constructor_val): Declare.
3278         * gimple-fold.c (canonicalize_constructor_val): New function.
3279         (get_symbol_constant_value):Use it.
3280         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3281
3282 2010-09-04  Jan Hubicka  <jh@suse.cz>
3283
3284         * tree-switch-conversion.c (build_one_array): Set constructor to be
3285         static.
3286         * varpool.c (varpool_finalize_decl): Compute const_value_known.
3287
3288 2010-09-04  Richard Guenther  <rguenther@suse.de>
3289
3290         PR bootstrap/45519
3291         * tree-flow.h (force_gimple_operand_1): Declare.
3292         (force_gimple_operand_gsi_1): Likewise.
3293         * gimplify.c (force_gimple_operand_1): New worker taking a
3294         gimple predicate for ...
3295         (force_gimple_operand): ... which now wraps it.
3296         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
3297         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
3298         last change.
3299         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
3300         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
3301         (create_mem_ref): Likewise.
3302
3303 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
3304
3305         * config/i386/predicates.md (sse_reg_operand): New predicate.
3306         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
3307         predicate for operand 1.
3308         (XFmode push splitter): Use fp_register_operand predicate
3309         for operand 1.
3310         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
3311         (SF-DF float_extend push splitter): Add reload_completed insn
3312         predicate.
3313         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
3314         MODEF mode macro.  Add reload_completed insn predicate.
3315
3316 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
3317
3318         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
3319         (struct df_extract_ref): Remove.
3320         (union df_ref_d): Remove extract_ref member.
3321         (df_ref_create): Remove last three arguments.
3322         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
3323         * df-scan.c (df_ref_record): Remove last three arguments, do not
3324         pass them to df_ref_create_structure.
3325         (df_uses_record): Remove first and last three arguments.  Replace
3326         first argument with DF_REF_REGULAR, adjust calls to remove the
3327         width, offset and mode.  Always call recursively on the second
3328         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
3329         (df_ref_create_structure): Remove first argument.
3330         (struct df_scan_problem_data): Remove ref_extract_pool.
3331         (df_scan_free_internal): Do not free it.
3332         (df_scan_alloc): Do not allocate it.
3333         (df_ref_create): Remove last three arguments, do not pass them to
3334         df_ref_create_structure.
3335         (df_free_ref): Remove DF_REF_EXTRACT case.
3336         (df_notes_rescan): Adjust call to df_uses_record.
3337         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
3338         Remove DF_REF_EXTRACT case.
3339         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
3340         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
3341         and SUBREG definitions.
3342         (df_get_conditional_uses): Remove references to width/offset/mode,
3343         adjust call to df_ref_create_structure.
3344         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
3345         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
3346         calls to df_uses_record and df_ref_record.
3347         * fwprop.c (update_df): Remove references to width/offset/mode,
3348         adjust call to df_ref_create.
3349
3350 2010-09-03  Jan Hubicka  <jh@suse.cz>
3351
3352         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
3353         (build_cdtor_fns): Update use of build_cdtor.
3354
3355 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
3356
3357         * doc/options.texi (SeparateAlias): Document.
3358         * opt-functions.awk (switch_flags): Handle SeparateAlias.
3359         * opth-gen.awk: Generate enumeration names for options marked
3360         SeparateAlias, but not for those marked Ignore.
3361         * opts-common.c (generate_canonical_option): Don't output separate
3362         argument for options marked CL_SEPARATE_ALIAS.
3363         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
3364         * opts.h (CL_SEPARATE_ALIAS): New.
3365         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3366         CL_COMMON): Adjust definitions.
3367         * config/i386/darwin.opt, config/mips/sde.opt: New.
3368         * common.opt (fdump-final-insns): New.
3369         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3370         i386/darwin.opt.
3371         (mips*-sde-elf*): Add mips/sde.opt.
3372         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
3373         -mno-data-in-code and -mcode-xonly here.
3374         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
3375         * gcc.c (option_map): Add "j" to --dump entry.
3376         (translate_options): Don't translate -d to -foutput-class-dir= here.
3377
3378 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
3379
3380         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
3381         DR_IS_WRITE.
3382         (compute_all_dependences): Same.
3383         (create_rdg_edge_for_ddr): Same.
3384         * tree-data-ref.h (DR_IS_WRITE): New.
3385         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
3386         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
3387         (write_memrefs_written_at_least_once): Same.
3388         * tree-predcom.c (suitable_component_p): Same.
3389         (determine_roots_comp): Same.
3390         (execute_load_motion): Same.
3391         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
3392         (vect_enhance_data_refs_alignment): Same.
3393         (vect_analyze_group_access): Same.
3394
3395 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
3396
3397         PR testsuite/42843
3398         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
3399         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
3400
3401 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
3402
3403         * dwarf2out.c (file scope): Remove #if0'd code.
3404         (gen_subprogram_die): Same.
3405
3406 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3407
3408         PR middle-end/45484
3409         * dwarf2out.c (flush_queued_reg_saves): Rename to...
3410         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
3411         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
3412         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
3413         * config/i386/i386.c (output_set_got): Call it.
3414
3415 2010-09-03  Michael Matz  <matz@suse.de>
3416
3417         PR middle-end/45415
3418         * tree-sra.c (sra_modify_assign): If we modify the statement,
3419         say so.
3420
3421         * tree-ssa.c (verify_ssa): Check number of operands and links
3422         per statement to agree.
3423
3424 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3425             Iain Sandoe  <iains@gcc.gnu.org>
3426
3427         PR target/45476
3428         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
3429         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
3430         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3431
3432 2010-09-03  Richard Guenther  <rguenther@suse.de>
3433
3434         * lto-streamer-out.c (output_function): Output function
3435         start and end loci.
3436         * lto-streamer-in.c (input_function): Input function start
3437         and end loci.
3438
3439 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3440
3441         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
3442         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
3443         * configure: Regenerate.
3444         * aclocal.m4: Regenerate.
3445
3446 2010-09-03  Jan Hubicka  <jh@suse.cz>
3447
3448         PR lto/44812
3449         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
3450         on functions/variables in other partition.
3451
3452 2010-09-03  Jan Hubicka  <jh@suse.cz>
3453
3454         * cgraph.h (struct varpool_node): Add const_value_known.
3455         (varpool_decide_const_value_known): Declare.
3456         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
3457         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
3458         (input_varpool_node): Restore const_value_known.
3459         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
3460         initializer folding.
3461         * ipa.c (ipa_discover_readonly_nonaddressable_var,
3462         function_and_variable_visibility): Compute const_value_known.
3463         * gimple-fold.c (get_symbol_constant_value): Use varpool for
3464         initializer folding.
3465         * varpool.c (varpool_decide_const_value_known): New function.
3466
3467 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
3468
3469         * config/i386/i386.md: Remove empty preparation statements
3470         from splitters.
3471
3472 2010-09-03  Jan Hubicka  <jh@suse.cz>
3473
3474         * passes.c (rest_of_decl_compilation): Do not add local vars into
3475         varpool.
3476         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
3477         static or extern vars are in varpool.
3478         (varpool_finalize_decl): Sanity check that only static vars are
3479         finalized.
3480
3481 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
3482
3483         PR debug/45500
3484         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
3485         not just generic vectors with BLKmode.
3486
3487 2010-09-03  Richard Guenther  <rguenther@suse.de>
3488
3489         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
3490         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
3491         * tree.h (TMR_SYMBOL): Remove.
3492         (TMR_BASE, TMR_OFFSET): Adjust.
3493         (TMR_INDEX2): New.
3494         * alias.c (ao_ref_from_mem): Use TMR_BASE.
3495         * builtins.c (get_object_alignment): Merge TMR_BASE and
3496         TMR_SYMBOL handling.
3497         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
3498         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
3499         handling.  Also allow TARGET_MEM_REF as base address.
3500         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
3501         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
3502         base.  Gimplify TMR_INDEX2.
3503         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
3504         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3505         (get_addr_base_and_unit_offset): Likewise.
3506         * tree-eh.c (tree_could_trap_p): Likewise.
3507         * tree-pretty-print.c (dump_generic_node): Likewise.
3508         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
3509         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
3510         base to index2.
3511         (get_address_description): Reconstruct addres description
3512         from merged TMR_BASE and TMR_INDEX2.
3513         (maybe_fold_tmr): Fold propagated addresses.
3514         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
3515         MEM_REF and TARGET_MEM_REF paths.
3516         (indirect_refs_may_alias_p): Likewise.
3517         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
3518         instead of TMR_SYMBOL.
3519         * tree-ssa-operands.c (get_tmr_operands): Simplify.
3520         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
3521         according to changes ...
3522         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
3523         Split TARGET_MEM_REF into two fields plus the base.
3524         * tree.c (mem_ref_offset): Simplify.
3525         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
3526         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
3527         Strip NOPs when folding MEM_REF addresses.
3528         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
3529         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
3530         (fold_gimple_assign): ... not here.
3531
3532 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
3533
3534         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
3535         * config/mips/mips.c (mips_shift_truncation_mask): New function.
3536         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3537
3538 2010-09-02  Richard Henderson  <rth@redhat.com>
3539
3540         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
3541         instead of readelf in the test.
3542         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
3543         in the .debug_frame section for coff targets.
3544         * configure: Rebuild.
3545
3546 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
3547
3548         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
3549         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
3550         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3551         (m32c_class_likely_spilled_p): Make static. Change argument type to
3552         reg_class_t. Change result type to bool.
3553
3554 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3555
3556         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
3557         to convert (double)(long) into a single FRIZ instruction or not
3558         when -ffast-math is used.
3559
3560         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
3561         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
3562         or FRIZ instruction if -ffast-math.
3563         * config/rs6000/rs6000.md (friz): Ditto.
3564
3565         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
3566
3567 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3568
3569         * opth-gen.awk (quote, comma): Remove unused variables.
3570
3571 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
3572
3573         * arm.c (arm_override_options): Correct fall-back code to use
3574         SUBTARGET_CPU_DEFAULT.
3575
3576 2010-09-02  Julian Brown  <julian@codesourcery.com>
3577
3578         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
3579         unspecs.
3580         (vcond<mode>, vcondu<mode>): New expanders.
3581         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
3582         comparisons with zero.
3583         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
3584         * config/arm/constraints.md (Dz): New constraint.
3585
3586 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
3587
3588         * target.def (class_likely_spilled_p): New hook.
3589         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
3590         * doc/tm.texi: Regenerate.
3591         * targhooks.c (default_class_likely_spilled_p): New function.
3592         * targhooks.h (default_class_likely_spilled_p): Declare.
3593         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
3594         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
3595         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
3596         Use fixed_reg_set instead of fixed_regs.
3597         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3598         * calls.c (avoid_likely_spilled_reg): Ditto.
3599         * ira-conflicts.c (ira_build_conflicts): Ditto.
3600         * ira.c (update_equiv_regs): Ditto.
3601         * mode-switching.c (create_pre_exit): Ditto.
3602         * regmove.c (find_matches): Ditto.
3603         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
3604         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
3605         (small_register_class_p): New inline function.
3606         (push_secondary_reload, find_reusable_reload, find_reloads): Use
3607         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
3608
3609         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
3610         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
3611         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3612
3613 2010-09-02  Richard Guenther  <rguenther@suse.de>
3614
3615         PR tree-optimization/44937
3616         PR tree-optimization/45412
3617         * ipa-split.c (split_function): Properly remove PHI nodes.
3618
3619 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3620
3621         * opts.h (struct cl_option): Add warn_message field.
3622         (struct cl_decoded_option): Add warn_message field.
3623         * doc/options.texi (Ignore, Warn): Document.
3624         * opt-functions.awk (needs_state_p): Don't consider aliases or
3625         ignored options to need state saved.
3626         * optc-gen.awk: Handle Warn and Ignore.
3627         * opth-gen.awk: Output OPT_SPECIAL_ignore.
3628         * opts-common.c (decode_cmdline_option): Set warn_message field.
3629         Handle ignored options.
3630         (decode_cmdline_options_to_array, generate_option,
3631         generate_option_input_file): Set warn_message field.
3632         (read_cmdline_option): Generate warnings from warn_message field.
3633         Handle ignored options.
3634         * common.opt (Wunreachable-code, fargument-alias,
3635         fargument-noalias, fargument-noalias-global,
3636         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
3637         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
3638         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
3639         ftree-salias): Mark Ignore.
3640         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
3641         -mintel-syntax and -mno-intel-syntax here.
3642         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
3643         using Warn.
3644         * opts.c (common_handle_option): Don't handle options marked as
3645         ignored.
3646         (enable_warning_as_error): Handle ignored options.
3647
3648 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3649
3650         PR driver/44076
3651         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
3652         alias_target fields.
3653         * opt-functions.awk (opt_sanitized_name): Don't handle
3654         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
3655         * optc-gen.awk: Generate alias fields.
3656         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
3657         Don't generate such constants for aliases.
3658         * opts-common.c (generate_canonical_option): New.
3659         (decode_cmdline_option): Handle aliases.  Use
3660         generate_canonical_option for known options instead of copying the
3661         input option text.
3662         * doc/options.texi (Alias): Document.
3663         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
3664         fstack-check, specs): Mark as aliases.
3665         * gcc.c (driver_handle_option): Canonicalize -L options to joined
3666         arguments.
3667         (driver_handle_option): Don't handle OPT_specs.
3668         * opts.c (common_handle_option): Don't handle options marked as
3669         aliases.
3670         (enable_warning_as_error): Handle aliases.
3671         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
3672         OPT_Wlarger_than_eq.
3673         * tree-optimize.c (tree_rest_of_compilation): Use
3674         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
3675
3676 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
3677
3678         * config/i386/i386.md (nonmemory_operand): New mode attribute.
3679         (push memory peephole2): Macroize peepholes using SWI mode iterator.
3680         (move immediate to memory peephole2): Macroize peepholes using
3681         SWI124 mode iterator.
3682         (non-pairable NOT peephole2): Macroize peepholes using SWI124
3683         mode iterator.
3684         (simple lea add peephole2): Macroize peepholes using SWI48
3685         mode iterator.
3686         (simple lea mult peephole2): Ditto.
3687         (imul by 3,5,9 to lea peephole2): Ditto.
3688         (mov $-1, reg peephole2): Macroize peepholes using SWI248
3689         mode iterator.
3690         (imul $32bit_imm,mem,reg peephole2): Ditto.
3691         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
3692
3693 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
3694
3695         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
3696
3697 2010-09-02  Olivier Hainque  <hainque@adacore.com>
3698
3699         PR middle-end/44763
3700         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
3701         (allocno_priority_compare_func): Use it instead of a straight
3702         difference computation over priorities.
3703
3704 2010-09-02  Andi Kleen  <ak@linux.intel.com>
3705
3706         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
3707
3708 2010-09-02  Ira Rosen  <irar@il.ibm.com>
3709
3710         * tree-vectorizer.h (get_later_stmt): New function.
3711         (vect_analyze_data_ref_dependences): Add argument.
3712         * tree-vect-loop.c (vect_analyze_loop): Update call to
3713         vect_analyze_data_ref_dependences.
3714         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
3715         New function.
3716         (vect_analyze_data_ref_dependence): Add argument for basic block
3717         dependencies. Check dependencies in basic block vectorization.
3718         (vect_analyze_data_ref_dependences): Add argument and update call to
3719         vect_analyze_data_ref_dependences.
3720         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
3721         (vect_bb_vectorizable_with_dependencies): New.
3722         (vect_slp_analyze_bb): Check dependencies in basic block.
3723         (vect_schedule_slp_instance): Insert stores before the last store in
3724         SLP instance.
3725
3726 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
3727
3728         PR target/45476
3729         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
3730         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
3731
3732 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
3733
3734         PR middle-end/45458
3735         * bb-reorder.c (add_labels_and_missing_jumps): Treat
3736         bbs ending with throwing insns like blocks ending with a call.
3737         (fix_up_fall_thru_edges): Likewise.
3738
3739 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
3740
3741         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
3742         (m32c_function_arg_advance): Delete.
3743         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3744         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
3745         comments.  Take a const_tree and a bool.  Declare.
3746         (m32c_function_arg_advance): Likewise.
3747         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3748
3749 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
3750
3751         PR target/45476
3752         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
3753         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
3754         * config/i386/mingw32.h: ... here.
3755
3756 2010-09-01  Andi Kleen  <ak@linux.intel.com>
3757
3758         PR lto/45475
3759         * lto-streamer-in.c (lto_input_ts_target_option): Add.
3760         (lto_input_tree_pointers): Call lto_input_ts_target_option.
3761         * lto-streamer-out (lto_output_ts_target_option): Add.
3762         (lto_output_tree_pointers): Call lto_output_ts_target_option.
3763
3764 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
3765
3766         PR/target 45452
3767         * config/i386/cygwin.h: Change order of specified import libraries.
3768         * config/i386/mingw32.h: Likewise.
3769         * config/i386/t-cygwin: Likewise.
3770         * config/i386/t-mingw32: Likewise.
3771         * config/i386/t-mingw-w32: Likewise.
3772         * config/i386/t-mingw-w64: Likewise.
3773
3774 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3775
3776         * config/arm/neon-schedgen.ml (core): New type.
3777         (allCores): List of supported cores.
3778         (availability_table): Add supported cores.
3779         (collate_bypasses): Accept core as a parameter.
3780         (worst_case_latencies_and_bypasses): Accept core as a parameter.
3781         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
3782         and coreStr to get tune attribute and prefix for functional units.
3783         (emit_bypasses): Accept core name and use it.
3784         (calculate_per_core_availability_table): New.
3785         (filter_core): New.
3786         (calculate_core_availability_table): New.
3787         (main): Use calculate_core_availablity_table.
3788         * config/arm/cortex-a8-neon.md: Update copyright year.
3789         Regenerated from ml file and merged in.
3790         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
3791         cortex_a8_neon_mrc.
3792
3793 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
3794
3795         * Makefile.in (tree-switch-conversion.o): Update dependencies.
3796
3797 2010-09-01  Richard Guenther  <rguenther@suse.de>
3798
3799         * alias.c (ao_ref_from_mem): Adjust.
3800         * builtins.c (get_object_alignment): Likewise.
3801         * cfgexpand.c (expand_debug_expr): Likewise.
3802         * gimple.c (get_base_address): Likewise.
3803         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3804         (get_addr_base_and_unit_offset): Likewise.  Fix for
3805         both TMR_SYMBOL and TMR_BASE being set.
3806         * tree-eh.c (tree_could_trap_p): Likewise.
3807         * gimplify.c (gimplify_expr): Do not attempt to gimplify
3808         TMR_SYMBOL.  Always gimplify TMR_BASE.
3809         * tree-cfg.c (verify_types_in_gimple_reference): Verify
3810         TMR_BASE if there is a TMR_SYMBOL.
3811         * tree-pretty-print.c (dump_generic_node): Adjust.
3812         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
3813         (tree_mem_ref_addr): Likewise.
3814         (create_mem_ref_raw): Likewise.
3815         (move_fixed_address_to_symbol): Likewise.
3816         (create_mem_ref): Likewise.
3817         (dump_mem_address): Likewise.
3818         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
3819         Fix for both TMR_SYMBOL and TMR_BASE being set.
3820         (indirect_refs_may_alias_p): Likewise.
3821         * tree-ssa-operands.c (get_tmr_operands): Adjust.
3822         * tree.def (TARGET_MEM_REF): Adjust documentation.
3823
3824 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
3825
3826         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
3827         Rename from X86_TUNE_ADD_ESP_4.
3828         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
3829         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
3830         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
3831         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
3832         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
3833         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
3834         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
3835         * config/i386/i386.c (initial_ix86_tune_features)
3836         <X86_TUNE_SINGLE_POP>: Invert members.
3837         <X86_TUNE_DOUBLE_POP>: Ditto.
3838         <X86_TUNE_SINGLE_PUSH>: Ditto.
3839         <X86_TUNE_DOUBLE_PUSH>: Ditto.
3840         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
3841         No longer exported.
3842         (push peephole2 patterns): Macroize peepholes using P mode iterator.
3843         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
3844         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
3845         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
3846
3847 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3848
3849         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
3850         a volatile LHS if the constructor has only one element.
3851
3852 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
3853
3854         PR bootstrap/45321
3855         * tree.c (stdarg_p): Make fntype parameter const.
3856         * tree.h (stdarg_p): Likewise.
3857         (function_args_iterator): Remove unused fntype field.
3858         (function_args_iter_init): Do not initialize fntype
3859         field.  Make fntype parameter const.
3860
3861 2010-09-01  Richard Guenther  <rguenther@suse.de>
3862
3863         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
3864         estimate.
3865         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
3866         (execute_vrp): Compute number of iteration estimates.
3867         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
3868         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
3869         * tree-data-ref.c (estimated_loop_iterations): Adjust.
3870         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
3871         Infer loop bounds from undefined behavior based on a new parameter.
3872         (estimate_numbers_of_iterations): Likewise.
3873         (scev_probably_wraps_p): Adjust.
3874         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
3875
3876 2010-09-01  Nick Clifton  <nickc@redhat.com>
3877
3878         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
3879         where appropriate.
3880         (xstormy16_legitimate_address_p): Use true and false instead of 1
3881         and 0.
3882         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
3883         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
3884         magic constant 2.
3885         (xstormy16_expand_call): Fix comment at start of function.
3886
3887 2010-09-01  Nick Clifton  <nickc@redhat.com>
3888
3889         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
3890         when pushing accumulator register.
3891         (rx_get_stack_layout): Always save call clobbered registers inside
3892         interrupt handlers.
3893         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
3894
3895 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
3896
3897         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
3898         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
3899
3900         * libgcc-std.ver (GCC_4.6.0): Define version.
3901
3902 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
3903
3904         * tree-nested.c (convert_all_function_calls): Iterate until after the
3905         sum of static chains in the nest doesn't change.
3906
3907 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
3908
3909         * config/m32c/m32c.c (classes_intersect): Remove.
3910         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
3911         reg_classes_intersect_p instead of classes_intersect.
3912         (class_can_hold_mode): Change arguments type from enum reg_class to
3913         reg_class_t.  Use reg_class_contents instead of class_contents.
3914         (m32c_register_move_cost): Make static. Change arguments type from
3915         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
3916         classes_intersect. Use reg_class_contents instead of class_contents.
3917         (m32c_memory_move_cost): Make static. Change arguments type from
3918         enum reg_class to reg_class_t.
3919         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3920         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3921         * config/m32c/m32c-protos.h (m32c_register_move_cost,
3922         m32c_memory_move_cost): Remove.
3923
3924 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
3925
3926         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
3927         (arm_function_arg): Delete.
3928         (arm_needs_doubleword_align): Take a const_tree.
3929         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3930         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
3931         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
3932         (arm_function_arg): Make static.  Take a const_tree and a bool.
3933         (arm_function_arg_advance): Likewise.
3934         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3935
3936 2010-08-31  Andi Kleen  <ak@linux.intel.com>
3937
3938         * common.opt (fwhopr=): Update for -fwhopr=jobserver
3939         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
3940         * lto-wrapper.c (run_gcc): Add jobserver mode.
3941         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
3942         argument.
3943
3944 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
3945
3946         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
3947         (popsi1): Ditto.
3948         (*popdi1_epilogue): Ditto.
3949         (*popsi1_epilogue): Ditto.
3950         (popsi, popdi peephole2 patterns): Update peepholes for changed
3951         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
3952
3953         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
3954         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
3955
3956         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
3957         (override_options): Do not initialize removed ix86_gen_pop1.
3958         (gen_pop): New static function.
3959         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
3960         (release_scratch_register_on_entry): Ditto.
3961         (ix86_restore_reg_using_pop): Ditto.
3962         (ix86_expand_epilogue): Ditto.
3963
3964 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
3965
3966         PR middle-end/45461
3967         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
3968
3969 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
3970
3971         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
3972         semicolons.
3973
3974 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3975
3976         * doc/extend.texi: Fix documentation of the return value of
3977         __builtin_choose_expr.
3978
3979 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
3980
3981         * config/v850/v850-protos.h (function_arg): Delete.
3982         * config/v850/v850.h (FUNCTION_ARG): Delete.
3983         (FUNCTION_ARG_ADVANCE): Move code to...
3984         * config/v850/v850.c (v850_function_arg_advance): ...here.
3985         (v850_function_arg): Make static.  Take a const_tree and a bool.
3986         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3987
3988 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
3989
3990         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
3991         these...
3992         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
3993         ...and these...
3994         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
3995         ..to here..
3996         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
3997         ...and here.
3998         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3999
4000 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4001
4002         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4003         Delete.
4004         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4005         * config/rx/rx.c (rx_function_arg_size): Make static.
4006         (rx_function_arg): Likewise.
4007         (rx_function_arg_advance): New function.
4008         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4009
4010 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4011
4012         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4013         Fix indentation.
4014
4015 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4016
4017         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4018         (dwarf2out_decl) <CONST_DECL>: Likewise.
4019
4020 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4021
4022         Stack usage support
4023         * common.opt (-fstack-usage): New option.
4024         * doc/invoke.texi (Debugging options): Document it.
4025         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4026         allocate_dynamic_stack_space.
4027         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4028         and propagate it to allocate_dynamic_stack_space.
4029         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4030         * calls.c (initialize_argument_information): Pass TRUE as 4th
4031         argument to allocate_dynamic_stack_space.
4032         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4033         to 1 when pushing a variable-sized argument onto the stack.  Pass
4034         TRUE as 4th argument to allocate_dynamic_stack_space.
4035         Update current_function_pushed_stack_size.
4036         (emit_library_call_value_1): Likewise.
4037         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4038         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4039         attempt to find an upper bound.  Remove redundant code for the
4040         SETJMP_VIA_SAVE_AREA case.
4041         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4042         * function.h (struct stack_usage): New structure.
4043         (current_function_static_stack_size): New macro.
4044         (current_function_dynamic_stack_size): Likewise.
4045         (current_function_pushed_stack_size): Likewise.
4046         (current_function_dynamic_alloc_count): Likewise.
4047         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4048         (current_function_allocates_dynamic_stack_space): Likewise.
4049         (struct function): Add new field 'su'.
4050         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4051         add the value of the dynamic offset to the dynamic stack usage.
4052         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4053         for variable-sized objects.
4054         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4055         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4056         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4057         BUILT_IN_ALLOCA for variable-sized objects.
4058         * output.h (output_stack_usage): Declare.
4059         * toplev.c (stack_usage_file): New file pointer.
4060         (output_stack_usage): New function.
4061         (open_auxiliary_file): Likewise.
4062         (lang_dependent_init): Open file if flag_stack_usage is set.
4063         (finalize): Close file if stack_usage_file is not null.
4064         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4065         * config/alpha/alpha.c (compute_frame_size): New function.
4066         (alpha_expand_prologue): Use it.
4067         (alpha_start_function): Likewise.
4068         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4069         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4070         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4071         * config/mips/mips.c (mips_expand_prologue): Likewise.
4072         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4073         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4074         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4075
4076 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4077
4078         PR tree-optimization/45427
4079         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4080         Handle the case that the exit is never taken correctly.
4081         (number_of_iterations_ne): Pass exit_must_be_taken to
4082         number_of_iterations_ne_max.
4083
4084 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4085
4086         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4087         Infer -mdspr2 for the the 74K.
4088
4089 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4090
4091         PR debug/45419
4092         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4093
4094         PR middle-end/45423
4095         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4096         and TRUTH_{AND,OR,XOR}_EXPR.
4097         * c-parser.c (c_parser_omp_atomic): Handle boolean
4098         {PRE,POST}_{INC,DEC}REMENT.
4099
4100 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4101
4102         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4103         (function_arg): Delete.
4104         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4105         (FUNCTION_INCOMING_ARG): Delete.
4106         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4107         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4108         and a bool.
4109         (function_arg): Rename to...
4110         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4111         a bool.
4112         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4113         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4114         (TARGET_FUNCTION_INCOMING_ARG): Define.
4115
4116 2010-08-30  Richard Guenther  <rguenther@suse.de>
4117
4118         PR tree-optimization/21602
4119         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4120         using points-to information.
4121
4122 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4123
4124         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4125
4126 2010-08-30  Richard Guenther  <rguenther@suse.de>
4127
4128         PR tree-optimization/45449
4129         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4130         variables.
4131
4132 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4133
4134         * opts.h (CL_ERR_NEGATIVE): Define.
4135         * opts.c (unknown_option_callback): Don't postpone warnings for
4136         options marked with CL_ERR_NEGATIVE.
4137         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4138         for negative versions of CL_REJECT_NEGATIVE options.
4139
4140 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4141
4142         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4143         zero_extendsidi2_32.
4144         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4145         using SWI12 mode iterator.
4146         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4147         to define_insn_and_split pattern.
4148         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4149         using SWI24 mode iterator.
4150         (*zero_extendqi<mode>2_and): Macroize insn from
4151         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4152         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4153         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4154         SWI24 mode iterator.
4155         (*zero_extendqi<mode>2_movzbl): Ditto from
4156         *zero_extendqi{hi,si}2_movzbl.
4157         (extendsidi2_1): Rename from extendsidi2_32.
4158         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4159         SWI12 mode iterator.
4160
4161 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4162
4163         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4164         general purpose registers.
4165         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4166         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4167         with general purpose registers and memory operands.  Add associated
4168         CCImode post-reload splitter.
4169         * config/ia64/div.md: Change BImode to CCImode throughout.
4170
4171 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4172
4173         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4174
4175 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
4176
4177         * config/picochip/picochip.c (reorder_var_tracking_notes): This
4178         function was dropping debug insns which caused PR45299.
4179
4180 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
4181
4182         * config/i386/sse.md (extsuffix): New code attribute.
4183         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4184         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4185         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4186         and sse4_1_zero_extendv4qiv4si2.
4187         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4188         and sse4_1_zero_extendv2qiv2di2.
4189         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4190         and sse4_1_zero_extendv4hiv4si2.
4191         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
4192         and sse4_1_zero_extendv2hiv2di2.
4193         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
4194         and sse4_1_zero_extendv2siv2di2
4195
4196         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
4197         using any_extend code iterator.
4198         (*avx_<s>mulv8hi3_highpart): Macroize insn from
4199         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
4200         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
4201
4202         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
4203         gen_sse4_1_sign_extend* functions.
4204         (struct builtin_description bdesc_args): Ditto.
4205
4206 2010-08-27  Xinliang David Li  <davidxl@google.com>
4207
4208         PR/45422
4209         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
4210         (iv_ca_set_no_cp): Update used inv expr count.
4211         (iv_ca_set_cp): Ditto.
4212         (iv_ca_new): Initialize new member.
4213         (iv_ca_free): Free memory.
4214
4215 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4216
4217         * config/sh/sh-protos.h (sh_function_arg): Delete.
4218         (sh_function_arg_advance): Delete.
4219         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4220         (PASS_IN_REG_P): Eliminate cast.
4221         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
4222         const_tree and a bool.
4223         (sh_function_arg): Likewise.
4224         (sh_output_mi_thunk): Call sh_function_arg_advance) and
4225         sh_function_arg.
4226         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4227
4228 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
4229             Kaz Kojima  <kkojima@gcc.gnu.org>
4230
4231         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
4232         when possible.
4233         (sh_expand_epilogue): Likewise.
4234         * config/sh/sh.md (movml_push_banked): New insn.
4235         (movml_pop_banked): Likewise.
4236
4237 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
4238
4239         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4240         gen_regexp_oneof, gen_regexp_sequence): Use the string found
4241         in vector element 0 rather than the original string when there's
4242         only one element.
4243         (gen_regexp): Remove extra semicolon.
4244
4245         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
4246         thumb2_movsf_vfp): Set attribute "insn".
4247         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
4248         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
4249         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
4250         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
4251         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
4252         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
4253         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
4254         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
4255         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
4256         if_not_arith, if_arith_not, cond_move_not): Likewise.
4257
4258 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4259
4260         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
4261         New declaration.
4262         (rs6000_allocate_stack_temp): Ditto.
4263         (rs6000_expand_convert_si_to_sfdf): Ditto.
4264
4265         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
4266         line.  Update the options set if power6 or power7 server/embedded
4267         type options are used.  If we give a warning for no vsx under
4268         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
4269         (rs6000_allocate_stack_temp): New function to allocate a stack
4270         tempoary and adjust the address so it meets either REG+OFFSET or
4271         REG+REG addressing requirements.
4272         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
4273         that they can be used with the LFIWAX/LFIWZX instrucitons.
4274         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
4275         converting signed/unsigned SImode to either SFmode/DFmode.
4276
4277         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
4278         whether certain instructions can be generated.
4279         (TARGET_FCTIDZ): Ditto.
4280         (TARGET_STFIWX): Ditto.
4281         (TARGET_LFIWAX): Ditto.
4282         (TARGET_LFIWZX): Ditto.
4283         (TARGET_FCFIDS): Ditto.
4284         (TARGET_FCFIDU): Ditto.
4285         (TARGET_FCFIDUS): Ditto.
4286         (TARGET_FCTIDUZ): Ditto.
4287         (TARGET_FCTIWUZ): Ditto.
4288
4289         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
4290         (UNSPEC_FCTID): Ditto.
4291         (UNSPEC_LFIWAX): Ditto.
4292         (UNSPEC_LFIWZX): Ditto.
4293         (UNSPEC_FCTIWUZ): Ditto.
4294         (rreg): Use correct constraints.
4295         (SI_CONVERT_FP): New mode attribute for floating point conversion
4296         tests.
4297         (E500_CONVERT): Ditto.
4298         (lfiwax): New insns for converting from integer to floating point
4299         utilizing newer instructions.  Attempt to optimize conversions
4300         that come from memory so that we don't load the value into a GPR,
4301         spill it to the stack and reload it into a FPR.
4302         (floatsi<mode>2_lfiwax): Ditto.
4303         (floatsi<mode>2_lfiwax_mem): Ditto.
4304         (floatsi<mode>2_lfiwax_mem2): Ditto.
4305         (lfiwzx): Ditto.
4306         (floatunssi<mode>2_lfiwzx): Ditto.
4307         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4308         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4309         (floatdidf2_mem): Ditto.
4310         (floatunsdidf2_fcfidu): Ditto.
4311         (floatunsdidf2_mem): Ditto.
4312         (floatunsdisf2): Ditto.
4313         (floatunsdisf2_fcfidus): Ditto.
4314         (floatunsdisf2_mem): Ditto.
4315         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
4316         Use FCFID on 32-bit hosts that support it.
4317         (floatsidf2_internal): Ditto.
4318         (floatunssisf2): Ditto.
4319         (floatunssidf2): Ditto.
4320         (floatunssidf2_internal): Ditto.
4321         (floatsisf2): Ditto.
4322         (floatdidf2): Ditto.
4323         (floatdidf2_fpr): Ditto.
4324         (floatunsdidf2): Ditto.
4325         (floatdisf2): Ditto.
4326         (floatdisf2_fcfids): Ditto.
4327         (floatdisf2_internal1): Ditto.
4328         (fixuns_truncsfsi2): Delete, merge into common pattern for both
4329         SF/DF.  Add power7 support.
4330         (fix_truncsfsi2): Ditto.
4331         (fixuns_truncdfsi2): Ditto.
4332         (fixuns_truncdfdi2): Ditto.
4333         (fix_truncdfsi2): Ditto.
4334         (fix_truncdfsi2_internal): Ditto.
4335         (fix_truncdfsi2_internal_gfxopt): Ditto.
4336         (fix_truncdfsi2_mfpgpr): Ditto.
4337         (fctiwz): Ditto.
4338         (btruncdf2): Ditto.
4339         (btruncdf2_fpr): Ditto.
4340         (btructsf2): Ditto.
4341         (ceildf2): Ditto.
4342         (ceildf2_fpr): Ditto.
4343         (ceilsf2): Ditto.
4344         (floordf2): Ditto.
4345         (floordf2_fpr): Ditto.
4346         (floorsf2): Ditto.
4347         (rounddf2): Ditto.
4348         (rounddf2_fpr): Ditto.
4349         (roundsf2): Ditto.
4350         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
4351         (fix_trunc<mode>di2): Ditto.
4352         (fixuns_trunc<mode>si2): Ditto.
4353         (fixuns_trunc<mode>di2): Ditto.
4354         (fctiwz_<mode>): Ditto.
4355         (btrunc<mode>2): Ditto.
4356         (btrunc<mode>2_fpr): Ditto.
4357         (ceil<mode>2): Ditto.
4358         (ceil<mode>2_fpr): Ditto.
4359         (floor<mode>2): Ditto.
4360         (float<mode>2_fpr): Ditto.
4361         (round<mode>2): Ditto.
4362         (round<mode>2_fpr): Ditto.
4363         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
4364         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4365         (fix_truncdfsi2_internal): Ditto.
4366         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
4367         converted value on stack, loaded into GPR, and then stored into
4368         the final destination.
4369         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
4370         FCTIDZ.
4371         (lrint<mode>di2): New insn, provide the lrint builtin functions.
4372         (ftruncdf2): Delete, unused.
4373         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
4374
4375         * config/rs6000/vsx.md (toplevel): Update copyright year.
4376         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
4377         (VSr3): Ditto.
4378
4379 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
4380             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4381
4382         * gengtype.c (output_type_enum): Test the right union member.
4383
4384 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
4385
4386         PR target/41484
4387         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
4388         operands for operand 1.
4389         (sse4_1_extendv4qiv4si2): Ditto.
4390         (sse4_1_extendv2qiv2di2): Ditto.
4391         (sse4_1_extendv4hiv4si2): Ditto.
4392         (sse4_1_extendv2hiv2di2): Ditto.
4393         (sse4_1_extendv2siv2di2): Ditto.
4394         (sse4_1_zero_extendv8qiv8hi2): Ditto.
4395         (sse4_1_zero_extendv4qiv4si2): Ditto.
4396         (sse4_1_zero_extendv2qiv2di2): Ditto.
4397         (sse4_1_zero_extendv4hiv4si2): Ditto.
4398         (sse4_1_zero_extendv2hiv2di2): Ditto.
4399         (sse4_1_zero_extendv2siv2di2): Ditto.
4400         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
4401         (*sse4_1_extendv4qiv4si2): Ditto.
4402         (*sse4_1_extendv2qiv2di2): Ditto.
4403         (*sse4_1_extendv4hiv4si2): Ditto.
4404         (*sse4_1_extendv2hiv2di2): Ditto.
4405         (*sse4_1_extendv2siv2di2): Ditto.
4406         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
4407         (*sse4_1_zero_extendv4qiv4si2): Ditto.
4408         (*sse4_1_zero_extendv2qiv2di2): Ditto.
4409         (*sse4_1_zero_extendv4hiv4si2): Ditto.
4410         (*sse4_1_zero_extendv2hiv2di2): Ditto.
4411         (*sse4_1_zero_extendv2siv2di2): Ditto.
4412
4413 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4414
4415         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
4416         (mips_function_arg): Delete.
4417         (mips_function_arg_boundary): Take a const_tree.
4418         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
4419         (mips_arg_info): Likewise.
4420         (mips_setup_incoming_varargs): Call mips_function_arg_advance
4421         instead of FUNCTION_ARG_ADVANCE.
4422         (mips_function_arg_advance): Adjust prototype.  Make static.
4423         (mips_function_arg): Likewise.
4424         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4425         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4426
4427 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
4428
4429         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4430         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
4431         (function_arg): Delete.
4432         (function_arg_boundary): Take a const_tree.
4433         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
4434         (rs6000_spe_function_arg): Likewise.
4435         (rs6000_parm_start): Likewise.
4436         (rs6000_arg_size): Likewise.
4437         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
4438         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
4439         (rs6000_mixed_function_arg): Likewise.
4440         (function_arg): Rename to...
4441         (rs6000_function_arg): ...this.
4442         (function_arg_advance): Rename to...
4443         (rs6000_function_arg_advance_1): ...this
4444         (rs6000_function_arg_advance): New function.  Call it.
4445         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
4446         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
4447         (rs6000_function_value): Likewise.
4448         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4449
4450 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4451
4452         * config/arm/arm.md (enabled): Test the value of arch_enabled
4453         rather than just using it.
4454
4455 2010-08-27  Olivier Hainque  <hainque@adacore.com>
4456             Eric Botcazou  <ebotcazou@adacore.com>
4457
4458         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
4459         cover all the possible offsets from this base.
4460         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
4461
4462 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
4463
4464         PR tree-optimization/44485
4465         * calls.c (flags_from_decl_or_type): For const or pure
4466         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
4467         together with ECF_CONST resp. ECF_PURE.
4468         * builtins.c (expand_builtin): Use flags_from_decl_or_type
4469         instead of querying flags directly.
4470         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
4471         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
4472
4473 2010-08-26  Richard Guenther  <rguenther@suse.de>
4474
4475         PR tree-optimization/45255
4476         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
4477         and externals are also invariant.
4478
4479 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4480
4481         PR rtl-optimization/44858
4482         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
4483         newi2pat, make sure they don't affect newpat.
4484
4485         PR rtl-optimization/45400
4486         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
4487         SUBREG_REG if both modes are of MODE_INT class.
4488
4489 2010-08-25  Julian Brown  <julian@codesourcery.com>
4490
4491         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
4492         * config/arm/arm.md (generic_sched): No for Cortex-A5.
4493         (generic_vfp): Likewise.
4494         (cortex-a5.md): Include.
4495         * config/arm/cortex-a5.md: New.
4496
4497 2010-08-25  Richard Guenther  <rguenther@suse.de>
4498
4499         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
4500         * gimple.c (gimple_get_alias_set): Remove special handling
4501         for pointers.
4502
4503 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4504
4505         PR middle-end/45355
4506         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
4507         dead_or_set_p when computing i0_feeds_i2_n.
4508
4509         * combine.c (find_split_point): Undo canonicalization of multiply-add
4510         to (minus x (mult)) when it seems likely that this will increase the
4511         chances of a split.
4512
4513 2010-08-25  Richard Guenther  <rguenther@suse.de>
4514
4515         PR lto/44562
4516         * lto-streamer.c (lto_record_common_node): Do not mess with
4517         TYPE_CANONICAL when not in lto.
4518         * gimple.c (gimple_register_type): Likewise.
4519
4520 2010-08-25  Richard Guenther  <rguenther@suse.de>
4521
4522         PR tree-optimization/45316
4523         * tree-ssa-pre.c (eliminate): Properly clean EH info.
4524
4525 2010-08-25  Richard Guenther  <rguenther@suse.de>
4526
4527         PR tree-optimization/45393
4528         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
4529         and clean EH info.  Avoid SSA update.
4530         (execute_cse_sincos): Cleanup the CFG if it has changed.
4531
4532 2010-08-25  Richard Guenther  <rguenther@suse.de>
4533
4534         PR middle-end/45379
4535         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
4536         TARGET_MEM_REF in alignment computation.
4537
4538 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
4539
4540         PR tree-optimization/45059
4541         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
4542         type conversions from newop{1,2}.  Assert t is a comparison and
4543         newop{1,2} after the stripping are gimple vals.
4544
4545 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
4546
4547         * config/arm/iterators.md (VU, SE, V_widen_l): New.
4548         (V_unpack, US): New.
4549         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
4550         (vec_unpack<US>_lo_<mode>): Likewise.
4551         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
4552         (neon_vec_unpack<US>_lo_<mode>): Likewise.
4553         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
4554         (vec_widen_<US>mult_hi_<mode>): Likewise.
4555         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
4556         (neon_vec_<US>mult_hi_<mode>"): Likewise.
4557         (neon_unpack<US>_<mode>): Widening move intermediate step for
4558         vectorizing without -mvectorize-with-neon-quad.
4559         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
4560         for vectorizing without -mvectorize-with-neon-quad.
4561         * config/arm/predicates.md (vect_par_constant_high): Check for
4562         high-half lanes of a vector.
4563         (vect_par_constant_low): Check for low-half lanes of a vector.
4564
4565 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4566
4567         * tree-if-conv.c (struct ifc_dr): New.
4568         (IFC_DR): New.
4569         (DR_WRITTEN_AT_LEAST_ONCE): New.
4570         (DR_RW_UNCONDITIONALLY): New.
4571         (memref_read_or_written_unconditionally): Use the cached values
4572         when possible.
4573         (write_memref_written_at_least_once): Same.
4574         (if_convertible_loop_p): Initialize and free DR->aux fields.
4575
4576 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4577
4578         * gimple.c (gimple_could_trap_p_1): Not static anymore.
4579         Pass an extra bool parameter include_mem.
4580         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
4581         (gimple_assign_rhs_could_trap_p): Same.
4582         * gimple.h (gimple_could_trap_p_1): Declared.
4583         * tree-data-ref.h (same_data_refs_base_objects): New.
4584         (same_data_refs): New.
4585         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
4586         (write_memrefs_written_at_least_once): New.
4587         (ifcvt_memrefs_wont_trap): New.
4588         (operations_could_trap): New.
4589         (ifcvt_could_trap_p): New.
4590         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
4591         Gets a vector of data refs.
4592         (if_convertible_stmt_p): Same.
4593         (if_convertible_loop_p_1): New.
4594         (if_convertible_loop_p): Call if_convertible_loop_p_1.
4595
4596 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4597
4598         * common.opt (ftree-loop-if-convert-stores): New flag.
4599         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
4600         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
4601         the created statement before GSI.
4602         (if_convertible_phi_p): Allow virtual phi nodes when
4603         flag_loop_if_convert_stores is set.
4604         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
4605         Do not handle types that do not match is_gimple_reg_type.
4606         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
4607         when flag_loop_if_convert_stores is set, as LHS can contain
4608         memory refs.
4609         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
4610         to if_convertible_gimple_assign_stmt_p.
4611         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
4612         (replace_phi_with_cond_gimple_assign_stmt): Renamed
4613         predicate_scalar_phi.  Do not handle virtual phi nodes.
4614         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
4615         Call predicate_scalar_phi.
4616         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
4617         just after the labels for flag_loop_if_convert_stores, otherwise
4618         insert the predicate in the end of the BB.
4619         (predicate_mem_writes): New.
4620         (combine_blocks): Call predicate_all_scalar_phis.  When
4621         flag_loop_if_convert_stores is set, call predicate_mem_writes.
4622         (tree_if_conversion): Call mark_sym_for_renaming when
4623         flag_loop_if_convert_stores is set.
4624         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
4625         flag_loop_if_convert_stores is set.
4626
4627 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
4628
4629         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
4630         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
4631         (pa_function_value): Make static.
4632         (override_options): Rename to...
4633         (pa_option_override): ...this. Make static.
4634         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
4635         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
4636         TARGET_OPTION_OVERRIDE): Define.
4637         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
4638         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
4639         Remove.
4640         * config/pa/pa-protos.h (override_options): Remove.
4641
4642 2010-08-24  Richard Guenther  <rguenther@suse.de>
4643
4644         PR middle-end/45379
4645         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
4646         if addr->index is NULL or zero.
4647         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
4648         TARGET_MEM_REF more properly.
4649         (indirect_ref_may_alias_decl_p): Likewise.
4650         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
4651         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
4652
4653 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
4654
4655         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
4656         (m32c_override_options): Rename to...
4657         (m32c_option_override): ...this. Make static.
4658         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
4659         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
4660         Remove.
4661         * config/m32c/m32c-protos.h (m32c_override_options,
4662         m32c_function_value_regno_p): Remove.
4663
4664 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
4665
4666         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
4667         Fix a typo in a previous commit.
4668
4669 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
4670
4671         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
4672         Pre-initialize innerloop_iters to one.
4673
4674 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
4675
4676         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
4677         existing static function global.
4678
4679         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
4680         is changed to global.
4681
4682         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
4683         may_be_nonaddressable_p on base, and don't collect this reference
4684         if the address of the base could not be taken.
4685
4686 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4687
4688         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
4689         enable the compiler to autovectorize mathmetical functions for
4690         power7 using the Mathematical Acceleration Subsystem library.
4691
4692         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
4693         handle which vector math library we have.
4694         (rs6000_override_options): Add -mveclibabi=mass support.
4695         (rs6000_builtin_vectorized_libmass): New function to handle auto
4696         vectorizing math functions that are in the MASS library.
4697         (rs6000_builtin_vectorized_function): Call it.
4698
4699         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4700         -mveclibabi=mass.
4701
4702 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4703
4704         PR boehm-gc/34544
4705         * gthr-posix.h (__gthread_active_init): Delete.
4706         (__gthread_active_p): Do activity check here.
4707         Don't include errno.h on hppa-hpux.  Update comment.
4708         * gthr-posix95.h (__gthread_active_init): Delete.
4709         (__gthread_active_p): Do activity check here.
4710         Don't include errno.h on hppa-hpux.  Update comment.
4711         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
4712         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
4713         add -lpthread when -mt or -pthread is specified.
4714         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
4715         (LINK_GCC_C_SEQUENCE_SPEC): Define.
4716         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
4717         (stublib.c, pthread_default_stacksize_np-stub.o,
4718         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
4719         $(T)libgcc_stub.a): Add methods.
4720         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
4721         (stublib.c, pthread_default_stacksize_np-stub.o,
4722         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
4723         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4724         pthread_mutex_unlock): New stubs.
4725
4726 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
4727
4728         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
4729         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
4730         options.
4731         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
4732         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
4733         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
4734         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
4735         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
4736         "-l".
4737         * cppspec.c: Include opts.h.
4738         (lang_specific_driver): Use cl_decoded_option structures.
4739         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
4740         * doc/tm.texi: Regenerate.
4741         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
4742         (driver_handle_option): Allow driver options needing no special
4743         processing.
4744         (process_command): Decode options before call to
4745         lang_specific_driver.  Pass decoded options to
4746         lang_specific_driver.
4747         * gcc.h (lang_specific_driver): Update prototype.
4748         * gccspec.c: Include opts.h.
4749         (lang_specific_driver): Use cl_decoded_option structures.
4750         * opts-common.c (option_ok_for_language, generate_option,
4751         generate_option_input_file): New.
4752         (decode_cmdline_option): Use option_ok_for_language.
4753         (decode_cmdline_options_to_array): Use generate_option_input_file.
4754         (handle_generated_option): Use generate_option.
4755         * opts.h (generate_option, generate_option_input_file): Declare.
4756
4757 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
4758
4759         * config/mips/mips.c (mips_override_options): Rename to...
4760         (mips_option_override): ...this. Make static.
4761         (TARGET_OPTION_OVERRIDE): Define.
4762         (mips_in_small_data_p): Update comment.
4763         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
4764         (FIXED_REGISTERS): Update comment.
4765         * config/mips/mips-protos.h (mips_override_options): Remove.
4766
4767 2010-08-21  Olivier Hainque  <hainque@adacore.com>
4768
4769         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
4770
4771 2010-08-21  Olivier Hainque  <hainque@adacore.com>
4772
4773         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
4774         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
4775
4776 2010-08-20  Jan Hubicka  <jh@suse.cz>
4777
4778         * tree-pass.h (pass_ipa_cdtor_merge): New function.
4779         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
4780         heap allocated.
4781         (record_cdtor_fn): Move to ipa.c; do not test for
4782         have_ctors_dtors.
4783         (build_cdtor): Move to ipa.c; add code avoiding construction
4784         when target have ctors/dtors and there is only one ctor/dtor at given
4785         priority.
4786         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
4787         sort; reverse order of constructors.
4788         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
4789         (cgraph_finalize_function): Do not call record_cdtor_fn.
4790         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
4791         (cgraph_build_static_cdtor): Move to ipa.c.
4792         * ipa.c: Include target.h and tree-iterator.h.
4793         (cgraph_build_static_cdtor, static_ctors, static_dtors,
4794         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
4795         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
4796         pass_ipa_cdtor_merge): New.
4797         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
4798         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
4799         bounds access.
4800
4801 2010-08-20  Jan Hubicka  <jh@suse.cz>
4802
4803         PR c++/45307
4804         PR c++/17736
4805         * cgraph.h (cgraph_only_called_directly_p,
4806         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
4807         static cdtors.
4808         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
4809         are not needed.
4810         (cgraph_finalize_function): Static cdtors are reachable.
4811         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
4812
4813 2010-08-20  Jan Hubicka  <jh@suse.cz>
4814
4815         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
4816         flag_wpa.
4817         * lto-streamer-out.c (lto_output): Likewise.
4818         * passes.c (ipa_write_optimization_summaries): Initialize statement
4819         uids.
4820
4821 2010-08-20  Olivier Hainque  <hainque@adacore.com>
4822
4823         * tree.h (alias_diag_flags): New enum.
4824         (alias_pair): Add an 'emitted_diags' field.
4825         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
4826         (assemble_alias): Initialize emitted_diags of new pairs.
4827
4828 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
4829
4830         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4831         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4832         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4833         (STACK_CHECK_PROTECT): Define.
4834         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
4835         (output_probe_stack_range): Likewise.
4836         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
4837         builtin stack checking is enabled.
4838         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
4839         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4840         (probe_stack_range): New insn.
4841
4842 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4843
4844         PR target/45336
4845         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
4846         short first.
4847
4848         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
4849         char first.
4850
4851 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
4852
4853         PR target/45336
4854         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
4855         to cover zero extension into 64-bit register.
4856         (*sse2_pextrw): Likewise.
4857         (*sse4_1_pextrd_zext): New insn.
4858
4859 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
4860
4861         revert r163410, partially revert r163267.
4862         * config/rs6000/darwin.h (LIB_SPEC): Remove.
4863         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
4864         Darwin versions.
4865
4866 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
4867
4868         PR middle-end/44974
4869         * builtins.c (expand_builtin): Don't optimize away
4870         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
4871
4872 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
4873
4874         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
4875         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
4876         alternative 1 of operand 2.
4877
4878 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
4879             Paolo Bonzini  <bonzini@gnu.org>
4880
4881         * simplify-rtx.c (simplify_unary_operation_1): Optimize
4882         (sign_extend (zero_extend (...)) and
4883         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
4884
4885 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
4886
4887         PR rtl-optimization/45353
4888         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
4889         after bb_note is a BARRIER.
4890
4891 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
4892
4893         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
4894         linking libgcc.a.
4895
4896 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
4897             Michael Matz  <matz@suse.de>
4898
4899         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
4900
4901 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4902
4903         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
4904         (ggc_mark_roots): ...here.
4905
4906 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4907
4908         * vec.h (FOR_EACH_VEC_ELT): Define.
4909         * c-decl.c: Use it.
4910         * cfgloop.c: Likewise.
4911         * cfgloopmanip.c: Likewise.
4912         * cgraph.c: Likewise.
4913         * cgraphunit.c: Likewise.
4914         * combine.c: Likewise.
4915         * config/bfin/bfin.c: Likewise.
4916         * config/mips/mips.c: Likewise.
4917         * config/rs6000/rs6000.c: Likewise.
4918         * dbxout.c: Likewise.
4919         * df-scan.c: Likewise.
4920         * dominance.c: Likewise.
4921         * dse.c: Likewise.
4922         * dwarf2out.c: Likewise.
4923         * except.c: Likewise.
4924         * expr.c: Likewise.
4925         * function.c: Likewise.
4926         * gcse.c: Likewise.
4927         * genattr.c: Likewise.
4928         * ggc-common.c: Likewise.
4929         * gimplify.c: Likewise.
4930         * graphite-blocking.c: Likewise.
4931         * graphite-clast-to-gimple.c: Likewise.
4932         * graphite-dependences.c: Likewise.
4933         * graphite-interchange.c: Likewise.
4934         * graphite-poly.c: Likewise.
4935         * graphite-scop-detection.c: Likewise.
4936         * graphite-sese-to-poly.c: Likewise.
4937         * graphite.c: Likewise.
4938         * haifa-sched.c: Likewise.
4939         * ifcvt.c: Likewise.
4940         * implicit-zee.c: Likewise.
4941         * ipa-prop.c: Likewise.
4942         * ipa-struct-reorg.c: Likewise.
4943         * ipa.c: Likewise.
4944         * ira-build.c: Likewise.
4945         * ira-color.c: Likewise.
4946         * ira-emit.c: Likewise.
4947         * lambda-code.c: Likewise.
4948         * loop-invariant.c: Likewise.
4949         * loop-unroll.c: Likewise.
4950         * lower-subreg.c: Likewise.
4951         * lto-cgraph.c: Likewise.
4952         * lto-opts.c: Likewise.
4953         * lto-streamer-in.c: Likewise.
4954         * lto-streamer-out.c: Likewise.
4955         * lto-streamer.c: Likewise.
4956         * lto-symtab.c: Likewise.
4957         * matrix-reorg.c: Likewise.
4958         * opts.c: Likewise.
4959         * predict.c: Likewise.
4960         * print-tree.c: Likewise.
4961         * sdbout.c: Likewise.
4962         * sel-sched-dump.c: Likewise.
4963         * sel-sched-ir.c: Likewise.
4964         * sel-sched.c: Likewise.
4965         * sese.c: Likewise.
4966         * stor-layout.c: Likewise.
4967         * tree-cfg.c: Likewise.
4968         * tree-cfgcleanup.c: Likewise.
4969         * tree-chrec.c: Likewise.
4970         * tree-data-ref.c: Likewise.
4971         * tree-emutls.c: Likewise.
4972         * tree-inline.c: Likewise.
4973         * tree-into-ssa.c: Likewise.
4974         * tree-loop-distribution.c: Likewise.
4975         * tree-loop-linear.c: Likewise.
4976         * tree-mudflap.c: Likewise.
4977         * tree-outof-ssa.c: Likewise.
4978         * tree-parloops.c: Likewise.
4979         * tree-predcom.c: Likewise.
4980         * tree-pretty-print.c: Likewise.
4981         * tree-scalar-evolution.c: Likewise.
4982         * tree-ssa-live.c: Likewise.
4983         * tree-ssa-loop-im.c: Likewise.
4984         * tree-ssa-loop-ivcanon.c: Likewise.
4985         * tree-ssa-loop-ivopts.c: Likewise.
4986         * tree-ssa-loop-manip.c: Likewise.
4987         * tree-ssa-loop-niter.c: Likewise.
4988         * tree-ssa-loop-prefetch.c: Likewise.
4989         * tree-ssa-phiprop.c: Likewise.
4990         * tree-ssa-pre.c: Likewise.
4991         * tree-ssa-reassoc.c: Likewise.
4992         * tree-ssa-sccvn.c: Likewise.
4993         * tree-ssa-structalias.c: Likewise.
4994         * tree-ssa.c: Likewise.
4995         * tree-vect-data-refs.c: Likewise.
4996         * tree-vect-loop-manip.c: Likewise.
4997         * tree-vect-loop.c: Likewise.
4998         * tree-vect-patterns.c: Likewise.
4999         * tree-vect-slp.c: Likewise.
5000         * tree-vect-stmts.c: Likewise.
5001         * tree-vrp.c: Likewise.
5002         * tree.c: Likewise.
5003         * value-prof.c: Likewise.
5004         * var-tracking.c: Likewise.
5005         * varasm.c: Likewise.
5006         * vmsdbgout.c: Likewise.
5007
5008 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5009             Richard Guenther  <richard.guenther@gmail.com>
5010
5011         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5012         copy the src value and return a copy.
5013         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5014         (C++ Volatiles): Adjust to describe C++ semantics only.
5015
5016 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5017
5018         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5019         be zero or nonzero.
5020         * doc/tm.texi: Regenerate.
5021         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5022         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5023         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5024         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5025         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5026         to 1.
5027
5028 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5029
5030         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5031         an extra nop past a sibling call at the very end.
5032
5033 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5034
5035         PR bootstrap/45350
5036         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5037         a comment.
5038
5039 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5040
5041         * target.def (function_arg, function_incoming_arg): Remove const
5042         qualifier on CUMULATIVE_ARGS parameter.
5043         * targhooks.h (default_function_arg, default_function_incoming_arg):
5044         Likewise.
5045         * targhooks.c (default_function_arg, default_function_incoming_arg):
5046         Likewise.
5047         * config/i386/i386.c (ix86_function_arg): Likewise.
5048
5049 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5050
5051         PR target/45336
5052         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5053         SIGN_EXTENDs or ZERO_EXTENDs.
5054
5055 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5056
5057         PR target/42172
5058         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5059         Take its cost into account if nonnull.
5060         (insn_a_feeds_b): New static function.
5061         (combine_instructions): Look for four-insn combinations.
5062         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5063         them into account when computing all_adjacent and looking for other
5064         uses.
5065         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5066         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5067         (try_combine): New arg I0.  Handle four-insn combinations.
5068         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5069         like ELIM_I1.
5070
5071 2010-08-19  Jason Merrill  <jason@redhat.com>
5072
5073         PR c++/45307
5074         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5075         if ctor is empty.
5076         (gimplify_modify_expr_rhs): Adjust.
5077
5078 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5079
5080         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5081         bitmap_bit_p.
5082         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5083         * dominance.c (iterate_fix_dominators): Likewise.
5084         * dse.c (set_usage_bits): Likewise.
5085         (set_position_unneeded, record_store): Likewise.
5086         * gimple-fold.c (get_maxval_strlen): Likewise.
5087         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5088         * ipa-inline.c (update_caller_keys): Likewise.
5089         * ipa-split.c (verify_non_ssa_vars): Likewise.
5090         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5091         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5092         (close_addressof_down): Likewise.
5093         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5094         (setup_allocno_left_conflicts_size): Likewise.
5095         (ira_reassign_conflict_allocnos): Likewise.
5096         (ira_reassign_pseudos): Likewise.
5097         * ira-emit.c (change_loop): Likewise.
5098         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5099         * lto-streamer-out.c (write_symbol): Likewise.
5100         * predict.c (expr_expected_value_1): Likewise.
5101         * regstat.c (regstat_bb_compute_ri): Likewise.
5102         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5103         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5104         * stmt.c (expand_case): Likewise.
5105         * tree-eh.c (emit_eh_dispatch): Likewise.
5106         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5107         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5108         Likewise.
5109         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5110         (rdg_build_components): Likewise.
5111         * tree-object-size.c (collect_object_sizes_for): Likewise.
5112         * tree-sra.c (convert_callers): Likewise.
5113         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5114         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5115         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5116
5117 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5118
5119         * config/i386/i386.md (*lea_1): Use P mode iterator.
5120         (lea add splitter): Also handle DImode operands.
5121         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5122         predicate.  Do not use ix86_lea_for_add_ok.
5123         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5124         (lea ashift splitter): Also handle DImode operands.
5125         (DImode lea ashift splitter): Remove splitter.
5126
5127 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5128
5129         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5130         ix86_binary_operator_ok.
5131
5132 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5133
5134         PR rtl-optimization/44691
5135         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5136         is not a register.
5137
5138 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5139
5140         PR target/45070
5141         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5142          value of size 1-3 is handled correctly.
5143
5144 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5145
5146         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5147         type for the conditional has wide enough range.
5148
5149 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5150
5151         PR target/45327
5152         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5153         ix86_binary_operator_ok.
5154
5155 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5156
5157         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5158         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5159         code to output insn mnemonic.  Fix comment.
5160         (*addsi_1_zext): Add r-r-0 alternative 1.
5161         <TYPE_LEA>: Split insn to lea.
5162         <default>: Handle alternative 1.
5163         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5164         multi-level if_then_else RTX to set "type" attribute.
5165         <default>: Handle alternative 2.
5166         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5167         Use cond RTX instead of multi-level if_then_else RTX to set
5168         "type" attribute.
5169         <default>: Handle alternatives 2 and 4.
5170         (lea splitters): Update calls to ix86_lea_for_add_ok.
5171
5172         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5173         argument.
5174         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5175
5176 2010-08-18  Richard Guenther  <rguenther@suse.de>
5177
5178         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5179         use operand helpers.
5180
5181 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
5182
5183         PR middle-end/45292
5184         * optabs.c (expand_bool_compare_and_swap): Expand pending
5185         pops before trying the optab.
5186
5187 2010-08-18  Yao Qi  <yao@codesourcery.com>
5188
5189         PR target/45094
5190         * config/arm/arm.c (output_move_double): Fix typo generating
5191         instructions ('ldr'->'str').
5192
5193 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5194
5195         PR rtl-optimization/42575
5196         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
5197         live ranges.
5198
5199 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5200
5201         * config/arm/arm-protos.h (arm_expand_sync): New.
5202         (arm_output_memory_barrier, arm_output_sync_insn): New.
5203         (arm_sync_loop_insns): New.
5204         * config/arm/arm.c (FL_ARCH7): New.
5205         (FL_FOR_ARCH7): Include FL_ARCH7.
5206         (arm_arch7): New.
5207         (arm_print_operand): Support %C markup.
5208         (arm_legitimize_sync_memory): New.
5209         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
5210         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
5211         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
5212         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
5213         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
5214         (arm_process_output_sync_insn, arm_output_sync_insn): New.
5215         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
5216         * config/arm/arm.h (struct arm_sync_generator): New.
5217         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
5218         (TARGET_HAVE_MEMORY_BARRIER): New.
5219         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
5220         * config/arm/arm.md: Include sync.md.
5221         (UNSPEC_MEMORY_BARRIER): New.
5222         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
5223         (VUNSPEC_SYNC_OP):New.
5224         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
5225         (sync_result, sync_memory, sync_required_value): New attributes.
5226         (sync_new_value, sync_t1, sync_t2): Likewise.
5227         (sync_release_barrier, sync_op): Likewise.
5228         (length): Add logic to length attribute defintion to call
5229         arm_sync_loop_insns when appropriate.
5230         * config/arm/sync.md: New file.
5231
5232 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5233
5234         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
5235         ENABLE_TREE_CHECKING.
5236         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
5237         and GCC >= 4.3.
5238
5239 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
5240
5241         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
5242         or optimizing for size, always avoid lea if possible.
5243
5244         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
5245
5246 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
5247
5248         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
5249         Dunmmy function with NULL return unless the target is
5250         OSX >= 10.6 (Darwin10).
5251
5252 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
5253
5254         * gcc.c (spec_function): Add remove-outfile.
5255         (remove_outfile_spec_function): New function.
5256         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
5257         * invoke.texi (replace-outfile): Document.
5258
5259 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
5260
5261         PR target/45296
5262         * reginfo.c (globalize_reg): Reject stack registers.
5263
5264 2010-08-17  Richard Guenther  <rguenther@suse.de>
5265
5266         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
5267         list of conditional equivalences.
5268         (free_all_edge_infos): Adjust.
5269         (record_equivalences_from_incoming_edge): Likewise.
5270         (record_cond): Likewise.
5271         (build_and_record_new_cond): Likewise.
5272         (record_conditions): Likewise.
5273         (dom_opt_leave_block): Likewise.
5274
5275 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
5276
5277         * doc/invoke.texi (ms-extension): Add documentation.
5278
5279 2010-08-17  Richard Guenther  <rguenther@suse.de>
5280
5281         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
5282
5283 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
5284
5285         PR c/40563
5286         * c-decl.c (diagnose_uninitialized_cst_member): New function.
5287         (finish_decl): Use it to issue a -Wc++-compat warning about
5288         uninitialized const field in struct or union.
5289
5290         (finish_struct): Use strip_array_types.
5291
5292 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
5293
5294         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
5295         functions.
5296         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
5297         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
5298         call block_nreverse here.
5299         (blocks_nreverse): Rename decl temporary to block.
5300
5301 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
5302
5303         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
5304         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
5305         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
5306         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
5307         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
5308         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
5309         thumb2_iorsi3): Delete.
5310         (orsi_notsi_si): No longer a named pattern.
5311         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
5312         * config/arm/predicates.md (shift_amount_operand): New.
5313         (mult_operator): New.
5314         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
5315         attr enabled): New.
5316         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
5317         arch matches t2.
5318         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
5319         (not_shiftsi_compare0): Likewise, renamed from
5320         arm_notsi_shiftsi_compare0.
5321         (not_shiftsi_compare0_scratch): Likweise, renamed from
5322         arm_notsi_shiftsi_compare0_scratch.
5323         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
5324         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
5325         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
5326         so that the register alternative is disabled when the shift_operator
5327         is MULT.  Use "M" as the constraint for constants.
5328         (arith_shiftsi splitter): Enable for TARGET_32BIT.
5329         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
5330         constraint for constants.
5331         (arith_shiftsi_compare0_scratch): Likewise.
5332         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
5333         Handle Thumb2 alternative.
5334
5335 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5336
5337         * doc/options.texi (NoDriverArg): Document.
5338         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
5339         -MDX and -MMDX.
5340         * opt-functions.awk (switch_flags): Handle NoDriverArg.
5341         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
5342         marking for CL_NO_DRIVER_ARG options when in the driver.
5343         * opts.h (CL_NO_DRIVER_ARG): Define.
5344         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5345         CL_COMMON): Update values.
5346
5347 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5348
5349         * common.opt: Add driver options.
5350         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
5351         * doc/options.texi (Driver, RejectDriver): Document.
5352         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
5353         print_prog_name, print_multi_directory, print_sysroot,
5354         print_multi_os_directory, print_multi_lib,
5355         print_sysroot_headers_suffix, report_times, combine_flag,
5356         use_pipes, wrapper_string): Remove.
5357         (save_switch, driver_unknown_option_callback,
5358         driver_wrong_lang_callback, driver_post_handling_callback,
5359         driver_handle_option): New.
5360         (spec_lang, last_language_n_infiles): Make file-scope static
5361         instead of local to process_command.
5362         (process_command): Use decode_cmdline_options_to_array and
5363         read_cmdline_option for option processing.  Compute have_c in
5364         prescan of decoded options.
5365         * opt-functions.awk (switch_flags): Handle Driver and
5366         RejectDriver.
5367         (var_type, var_type_struct): Handle Separate options as generating
5368         const char * variables.
5369         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
5370         CL_TARGET to be passed by caller if required.
5371         (decode_cmdline_options_to_array): Update comment.
5372         * opts.c (complain_wrong_lang): Handle options only valid for the
5373         driver.
5374         (decode_options): Update call to decode_cmdline_options_to_array.
5375         (print_filtered_help): Ignore driver-only options.
5376         (print_specific_help): Ignore CL_DRIVER.
5377         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
5378         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
5379         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
5380         Update values.
5381
5382 2010-08-16  Richard Guenther  <rguenther@suse.de>
5383
5384         * tree-cfg.c (verify_types_in_gimple_reference): Verify
5385         TARGET_MEM_REF a bit.
5386         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
5387         (create_mem_ref_raw): Always create TMR_OFFSET, store the
5388         alias pointer type via it.
5389         (copy_mem_ref_info): Adjust.
5390         (maybe_fold_tmr): Likewise.
5391         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
5392         (reference_alias_ptr_type): Likewise.
5393         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
5394         adjust documentation of TMR_OFFSET operand.
5395         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
5396         use the alias pointer type.
5397         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
5398         initialize mem attrs but the TMR itself.
5399         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
5400         similar to MEM_REF.
5401         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
5402         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
5403         (unshare_and_remove_ssa_names): Likewise.
5404         (copy_ref_info): Adjust.
5405         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
5406         TARGET_MEM_REF case.
5407         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
5408         at TMR_ORIGINAL.
5409         * tree.h (TMR_ORIGINAL): Remove.
5410         * gimple.c (get_base_address): For TARGET_MEM_REF with a
5411         symbol return that.
5412         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
5413         with a symbol.
5414         (get_addr_base_and_unit_offset): Likewise.
5415         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
5416         TARGET_MEM_REFs.
5417         (indirect_ref_may_alias_decl_p): Likewise.
5418         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
5419
5420 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
5421
5422         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
5423         with GCC version 4.6, the default setting (when not optimizing
5424         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
5425         been changed to -fomit-frame-pointer.
5426
5427 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
5428
5429         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
5430         Darwin10.  Do not link libgcc.a for Darwin >= 9.
5431
5432 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
5433
5434         * doc/invoke.texi (Warning Options): Fix terminology and markup
5435         in the description of how unknown warning options are handled.
5436
5437 2010-08-15  Ira Rosen  <irar@il.ibm.com>
5438
5439         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
5440         in basic blocks.
5441         (vect_supportable_dr_alignment): Check alignment for basic blocks.
5442         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
5443         data references.
5444         (vect_bb_vectorization_profitable_p): New function.
5445         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
5446         check if it's worthwhile to vectorize the basic block.
5447
5448 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
5449
5450         * reload.h (register_move_cost, memory_move_secondary_cost,
5451         secondary_reload_class): Adjust prototype.
5452         * rtl.h (reg_class_subset_p): Adjust prototype.
5453         * reload.c (secondary_reload_class): Change arguments type from
5454         enum reg_class to reg_class_t. Change result type to reg_class_t.
5455         * reginfo.c (register_move_cost, reg_class_subset_p): Change
5456         arguments type from enum reg_class to reg_class_t.
5457         (memory_move_secondary_cost): Change arguments type from
5458         enum reg_class to reg_class_t. Change type of saved_flags to
5459         reg_class_t.
5460
5461         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5462         Remove macros.
5463         (mips_cost): Remove.
5464         (struct mips_rtx_cost_data): Moved to mips.c.
5465         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
5466         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
5467         (mips_cost): Make static.
5468         (mips_canonicalize_move_class): Change argument type to reg_class_t.
5469         Change result type to reg_class_t.
5470         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
5471         type from enum reg_class to reg_class_t.
5472         (mips_register_move_cost): Make static. Change arguments
5473         type from enum reg_class to reg_class_t.
5474         (mips_memory_move_cost): New function.
5475         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5476
5477 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
5478
5479         PR rtl-optimization/43358
5480         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
5481         of a single hard register, using simplify_subreg_regno to decide
5482         what that register should be.
5483
5484 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
5485
5486         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
5487         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
5488         (loongson_pmull<V_suffix>): Rename to...
5489         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
5490
5491 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
5492
5493         * configure.ac: Enable -fomit-frame-pointer on darwin
5494         which support dwarf2.
5495         * config/i386/i386.c (override_options): Same.
5496
5497 2010-08-13  Jie Zhang  <jie@codesourcery.com>
5498
5499         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
5500
5501 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
5502
5503         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
5504         -MMD.
5505
5506 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
5507
5508         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
5509         up dot_prod pattern searching if a stmt is outside the loop.
5510
5511 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
5512             Uros Bizjak  <ubizjak@gmail.com>
5513
5514         * config.gcc: Handle --enable-frame-pointer.
5515
5516         * configure.ac: Add --enable-frame-pointer.
5517         * configure: Regenerated.
5518
5519         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
5520         (override_options): If not configured with --enable-frame-pointer,
5521         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
5522         optimizing for size), -fasynchronous-unwind-tables and
5523         -maccumulate-outgoing-args by default.
5524
5525 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
5526
5527         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
5528
5529         PR middle-end/45262
5530         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
5531         -a overflows.  Normalize the range.
5532
5533 2010-08-12  Richard Guenther  <rguenther@suse.de>
5534
5535         PR tree-optimization/45232
5536         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
5537         for types with undefined overflow.
5538         (reassociate_bb): Allow re-associating of bit and min/max
5539         operations for types with undefined overflow.
5540         * tree-ssa-forwprop.c (associate_plusminus): New function.
5541         (tree_ssa_forward_propagate_single_use_vars): Call it.
5542
5543 2010-08-12  Richard Guenther  <rguenther@suse.de>
5544
5545         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
5546         * tree-ssa-alias.c (get_ptr_info): Move ...
5547         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
5548         align and misalign fields conservatively.
5549         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
5550         derive alignment information.
5551         (evaluate_stmt): Derive alignment information from memory
5552         allocation functions.
5553         * tree.h (get_pointer_alignment): Make unsigned.
5554         * builtins.c (get_object_alignment): Use alignment information we
5555         have computed for pointers.
5556         (get_pointer_alignment): Likewise.  Make conservative, return
5557         and unsigned value.
5558         (expand_builtin_strlen): Adjust.
5559         (expand_builtin_memcmp): Likewise.
5560         (expand_builtin_strcmp): Likewise.
5561         (expand_builtin_strncmp): Likewise.
5562         (get_builtin_sync_mem): Use at least mode alignment.
5563         (fold_builtin_memset): Adjust.
5564         (fold_builtin_memory_op): Likewise.
5565         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
5566         information also dump pointer alignment knowledge.
5567         (dump_gimple_stmt): Likewise.
5568
5569 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
5570
5571         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
5572         (EMPTY_FIELD_BOUNDARY): Remove.
5573         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
5574
5575 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
5576
5577         PR debug/45259
5578         * caller-save.c (save_call_clobbered_regs): Only swap notes with
5579         DEBUG_INSNs if n_regs_saved.
5580
5581 2010-08-12  Wei Guozhi  <carrot@google.com>
5582
5583         PR target/44999
5584         * config/arm/arm.md (andsi3): Change to zero extension if possible.
5585         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
5586
5587 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
5588
5589         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
5590
5591         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
5592
5593 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5594
5595         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
5596         the case removed in the previous patch, when the only phi argument
5597         is defined in the same loop as the phi node itself.  Handle it
5598         separately from the invariant case by both propagating it outside
5599         the region and replacing the phi node with an assign.
5600
5601 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5602
5603         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
5604         constant phi nodes with one argument are is_gimple_min_invariant
5605         and SSA_NAME_IS_DEFAULT_DEF.
5606
5607 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5608
5609         * graphite-cloog-util.c (oppose_constraint):
5610         Extend loop counter's value range (CLOOG_ORG).
5611         (cloog_matrix_to_ppl_constraint): Same.
5612         (new_Constraint_System_from_Cloog_matrix): Same.
5613         * graphite-cloog-compat.h (matrix_num_type): New.
5614
5615 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5616
5617         * graphite.c (graphite_initialize): Do not initialize
5618         CLooG and initialize the Parma Polyhedra Library
5619         manually when using CLOOG_ORG.
5620         (graphite_finalize): Do not finalize CLooG and finalize
5621         the Parma Polyhedra Library manually when using CLOOG_ORG.
5622         * graphite-cloog-compat.h (cloog_initialize): Hide function
5623         when using CLOOG_ORG.
5624         (cloog_finalize): Same.
5625
5626 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5627
5628         * graphite-clast-to-gimple.c (free_scattering): Change
5629         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
5630         (CLOOG_ORG).
5631         (build_cloog_prog): Same.
5632         * graphite-cloog-compat.h (cloog_domain): Removed.
5633         (cloog_scattering): New.
5634         (cloog_set_domain): Removed.
5635         (cloog_set_scattering): New.
5636         (cloog_next_domain): Removed.
5637         (cloog_next_scattering): New.
5638         (cloog_set_next_domain): Removed.
5639         (cloog_set_next_scattering): New.
5640         (CloogScatteringList): New.
5641         (CloogScattering): New.
5642         (cloog_scattering_free): New.
5643         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
5644         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
5645         New.
5646
5647 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5648
5649         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
5650         CloogState.
5651         (set_cloog_options): Same.
5652         (print_clast_stmt): Same.
5653         (scop_to_clast): Same.
5654         (print_generated_program): Same.
5655         (gloog): Same.
5656         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
5657         (scop_to_clast): Extend with CloogState.
5658         * graphite-cloog-util.c: Include graphite-cloog-compat.h
5659         (new_Cloog_Domain_from_ppl_Polyhedron):
5660         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
5661         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
5662         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5663         * graphite-cloog-util.h (build_cloog_prog): Same.
5664         * graphite-cloog-copat.h (build_cloog_prog): New.
5665         (CloogState): New.
5666         (cloog_state_malloc): New.
5667         (cloog_state_free): New.
5668         (cloog_loop_malloc): New.
5669         (cloog_options_malloc): New.
5670         (cloog_statement_alloc): New.
5671         (cloog_domain_from_cloog_matrix): New.
5672         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5673         (new_Cloog_Domain_from_ppl_Polyhedron): New.
5674
5675 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5676
5677         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
5678         type of NAME now depends on used CLooG version.
5679         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
5680         (gcc_type_for_clast_expr): Same.
5681         (print_clast_stmt): Replace pprint with clast_pprint.
5682         * graphite-cloog-compat.h: Provide compatibility macros for
5683         CLooG Legacy.
5684         (clast_name_p): New.
5685         (clast_expr_term): New.
5686         (clast_expr_red): New.
5687         (clast_expr_bin): New.
5688         (clast_pprint): New.
5689
5690 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5691
5692         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
5693         compatible to newer CLooG releases (CLOOG_ORG).
5694         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
5695         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
5696         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
5697         (build_cloog_prog) : New.
5698         (cloog_program_extract_scalars): New.
5699         (cloog_program_scatter): New.
5700
5701 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5702
5703         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
5704         conditionally (CLOOG_ORG).
5705         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
5706         (cloog_statement_usr): New.
5707         (cloog_domain): Same.
5708         (cloog_set_domain): Same.
5709         (cloog_next_domain): Same.
5710         (cloog_set_next_domain): Same.
5711         (cloog_program_nb_scattdims): Same.
5712         (cloog_program_set_nb_scattdims): Same.
5713         (cloog_program_names): Same.
5714         (cloog_program_set_names): Same.
5715         (cloog_program_set_context): Same.
5716         (cloog_program_set_loop): Same.
5717         (cloog_program_blocklist): Same.
5718         (cloog_program_set_blocklist): Same.
5719         (cloog_program_scaldims): Same.
5720         (cloog_program_set_scaldims): Same.
5721         (cloog_names_nb_parameters): Same.
5722         (cloog_names_set_nb_parameters): Same.
5723         (cloog_names_parameters): Same.
5724         (cloog_names_set_parameters): Same.
5725         (cloog_names_set_nb_iterators): Same.
5726         (cloog_names_set_iterators): Same.
5727         (cloog_names_set_nb_scattering): Same.
5728         (cloog_names_set_scattering): Same.
5729         (cloog_statement_set_usr): Same.
5730         (cloog_loop_set_next): Same.
5731         (cloog_loop_set_domain): Same.
5732         (cloog_loop_set_block): Same.
5733         (cloog_block_list_next): Same.
5734         (cloog_block_list_set_next):
5735         (cloog_block_list_set_block): Same.
5736
5737 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5738
5739         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
5740         a bool.
5741         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
5742         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
5743         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
5744         when something has been changed.
5745         (rewrite_commutative_reductions_out_of_ssa): Same.
5746
5747 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5748
5749         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
5750         handle the case when def is in the sese region.
5751         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
5752         for invariant expressions.
5753         (rewrite_cross_bb_phi_deps): Removed.
5754         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
5755         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
5756         rewrite_cross_bb_phi_deps.
5757
5758 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5759
5760         * graphite-sese-to-poly.c
5761         (rewrite_commutative_reductions_out_of_ssa_loop): Call
5762         scev_analyzable_p only on is_gimple_reg
5763
5764 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5765
5766         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
5767         (rewrite_close_phi_out_of_ssa): Propagate constant values or
5768         parametric expressions outside the scop region.
5769         (rewrite_cross_bb_scalar_deps): Same.
5770         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
5771
5772 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5773
5774         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
5775         SSA_NAME_DEF_STMT only on SSA_NAMEs.
5776
5777 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5778
5779         * tree-scalar-evolution.c (instantiate_scev_name): Do not
5780         instantiate default definitions.
5781
5782 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
5783             Sebastian Pop  <sebastian.pop@amd.com>
5784
5785         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
5786         (loop_exits_from_bb_p): New.
5787         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
5788         (loop_exits_from_bb_p): Declared.
5789         * graphite-scop-detection.c (scopdet_basic_block_info): Call
5790         loop_exits_to_bb_p.
5791
5792 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5793
5794         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
5795         extra parameter for the region.  Call scev_analyzable_p.
5796         (rewrite_reductions_out_of_ssa): Update call to
5797         rewrite_close_phi_out_of_ssa.
5798         (rewrite_cross_bb_phi_deps): Same.
5799         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
5800         parameter for the region.  Call scev_analyzable_p.
5801         (rewrite_commutative_reductions_out_of_ssa): Update call to
5802         rewrite_commutative_reductions_out_of_ssa_loop.
5803
5804 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5805
5806         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
5807
5808 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5809
5810         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
5811         SSA scalar phi nodes that can be scev_analyzable_p.
5812
5813 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5814
5815         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
5816         handle SSA_NAME_IS_DEFAULT_DEF.
5817
5818 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5819
5820         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
5821
5822 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5823
5824         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
5825         case non close-phi nodes with one argument.
5826
5827 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5828
5829         * sese.h (scev_analyzable_p): Scevs could be expressions without
5830         chrecs and still be scev_analyzable_p.
5831
5832 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5833
5834         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5835
5836 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5837
5838         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
5839         * cfgloop.h (struct loop): Remove single_iv field.
5840         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
5841         (scop_canonicalize_loops): Removed.
5842         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
5843         over all the loop phi nodes in loop->header.
5844         (build_poly_scop): Remove use of scop_canonicalize_loops.
5845
5846 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5847
5848         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
5849         handle GIMPLE_CALL.
5850
5851 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5852
5853         * tree-chrec.c (chrec_apply): Should only apply to the specified
5854         variable.  Also handle multivariate chains of recurrences that
5855         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
5856
5857 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5858
5859         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
5860         (debug_clast_name_indexes_1): Removed.
5861         (debug_clast_name_indexes): Removed.
5862         (pbb_to_depth_to_oldiv): Removed.
5863         (build_iv_mapping): Replace the use of rename_map with iv_map.
5864         (translate_clast_user): Remove uses of rename_map.  Allocate and
5865         free iv_map.
5866         (translate_clast_for_loop): Remove uses of rename_map.
5867         (translate_clast_for): Same.
5868         (translate_clast_guard): Same.
5869         (translate_clast): Same.
5870         (gloog): Same.
5871         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
5872         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
5873         * sese.c (set_rename): Now static.
5874         (rename_variables_in_stmt): Removed.
5875         (rename_uses): New.
5876         (is_parameter): Removed.
5877         (is_iv): Removed.
5878         (expand_scalar_variables_call): Removed.
5879         (expand_scalar_variables_ssa_name): Removed.
5880         (expand_scalar_variables_expr): Removed.
5881         (expand_scalar_variables_stmt): Removed.
5882         (expand_scalar_variables): Removed.
5883         (rename_variables): Removed.
5884         (remove_condition): Removed.
5885         (get_true_edge_from_guard_bb): Removed.
5886         (get_false_edge_from_guard_bb): Removed.
5887         (struct igp): Removed.
5888         (default_before_guard): Removed.
5889         (convert_for_phi_arg): Removed.
5890         (add_guard_exit_phis): Removed.
5891         (insert_guard_phis): Removed.
5892         (graphite_copy_stmts_from_block): Now also uses iv_map and a
5893         region.  Do not copy conditions.  Do not copy induction variables.
5894         Call rename_uses.
5895         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
5896         the translated statement.  Use the iv_map for the induction
5897         variable renaming.
5898         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5899         (set_rename): Removed declaration.
5900         (scev_analyzable_p): ...here.
5901         * tree-chrec.c (chrec_apply_map): New.
5902         * tree-chrec.h (chrec_apply_map): Declared.
5903
5904 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
5905
5906         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
5907         insert_loop_close_phis.
5908         * sese.c (name_defined_in_loop_p): Removed.
5909         (expr_defined_in_loop_p): Removed.
5910         (alive_after_loop): Removed.
5911         (close_phi_not_yet_inserted_p): Removed.
5912         (struct alep): Removed.
5913         (add_loop_exit_phis): Removed.
5914         (insert_loop_close_phis): Removed.
5915
5916 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5917
5918         * graphite-cloog-util.c
5919         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
5920         * graphite-poly.c
5921         (psct_scattering_dim_for_loop_depth): Same.
5922
5923 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5924
5925         * graphite-cloog-util.h: Added cloog.h.
5926         * graphite-blocking.c: Removed cloog.h.
5927         * graphite-dependences.c: Same.
5928         * graphite-interchange.c: Same.
5929         * graphite-poly.c: Same.
5930         * graphite-ppl.c: Same.
5931         * graphite-scop-detection.c: Same.
5932         * graphite-sese-to-poly.c:
5933         Removed cloog.h.
5934         Removed graphite-clast-to-gimple.h.
5935         (check_poly_representation): Removed (unused).
5936         * graphite-sese-to-poly.h
5937         (check_poly_representation): Removed (unused).
5938
5939 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5940
5941         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
5942         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
5943         (graphite-cloog-util.o): New.
5944         (graphite-ppl.o): Added graphite-cloog-util.h.
5945         * graphite-clast-to-gimple.c:
5946         Added graphite-cloog-util.h to include statements.
5947         * graphite-cloog-util.c: New.
5948         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
5949         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5950         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5951         (new_C_Polyhedron_from_Cloog_Matrix): Same.
5952         (insert_constraint_into_matrix): Same.
5953         (ppl_Constrain_System_number_of_constraints): Same.
5954         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
5955         (oppose_constraint): Same.
5956         (cloog_matrix_to_ppl_constraint): Same.
5957         (new_Constraint_System_from_Cloog_Matrix): Same.
5958         * graphite-cloog-util.h: New.
5959         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
5960         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5961         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5962         (new_C_Polyhedron_from_Cloog_Matrix): Same.
5963         (insert_constraint_into_matrix): Same.
5964         * graphite-ppl.c:
5965         Added graphite-cloog-util.h to include statements.
5966         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
5967         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5968         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5969         (new_C_Polyhedron_from_Cloog_Matrix): Same.
5970         (insert_constraint_into_matrix): Same.
5971         (ppl_Constrain_System_number_of_constraints): Same.
5972         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
5973         (oppose_constraint): Same.
5974         (cloog_matrix_to_ppl_constraint): Same.
5975         (new_Constraint_System_from_Cloog_Matrix): Same.
5976         * graphite-ppl.h:
5977         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
5978         graphite-cloog-util.h.
5979         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
5980         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5981         (new_C_Polyhedron_from_Cloog_Matrix): Same.
5982         (insert_constraint_into_matrix): Same.
5983
5984 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5985
5986         * graphite-clast-to-gimple.c
5987         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
5988         (precision_for_interval): Same.
5989         (gcc_type_for_interval): Same.
5990         (compute_type_for_level): Same.
5991         * graphite-interchange.c
5992         (lst_interchange_profitable_p): Same.
5993         * graphite-poly.c
5994         (psct_scattering_dim_for_loop_depth): Same.
5995         * graphite-ppl.c
5996         (ppl_max_for_le_pointset): Same.
5997         (ppl_min_for_le_pointset): Same.
5998
5999 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6000
6001         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6002         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6003
6004 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6005
6006         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6007         rewrite_close_phi_out_of_ssa.
6008
6009 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6010
6011         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6012
6013 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6014
6015         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6016         rename_map.
6017         * sese.c (debug_rename_map): Same.
6018         (get_rename): Same.
6019         (set_rename): Same.
6020         (rename_variables_in_stmt): Same.
6021         (expand_scalar_variables_call): Same.
6022         (expand_scalar_variables_ssa_name): Same.
6023         (expand_scalar_variables_expr): Same.
6024         (expand_scalar_variables_stmt): Same.
6025         (expand_scalar_variables): Same.
6026         (rename_variables): Same.
6027         (graphite_copy_stmts_from_block): Same.
6028         (copy_bb_and_scalar_dependences): Same.
6029
6030 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6031
6032         * graphite-clast-to-gimple.c (copy_renames): Removed.
6033         (translate_clast_for): Do not call copy_renames.
6034         (translate_clast_guard): Same.
6035
6036 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6037
6038         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6039         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6040         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6041         before rewrite_cross_bb_scalar_deps.
6042
6043 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6044
6045         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6046         Early return in when flag_associative_math is not set.
6047
6048 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6049
6050         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6051         of SSA copies on edges except for loop->latch.
6052
6053 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6054
6055         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6056         Split out of rewrite_reductions_out_of_ssa.
6057         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6058         Declared.
6059         * graphite.c (graphite_transform_loops): Call it.
6060
6061 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6062
6063         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6064
6065 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6066
6067         * dbgcnt.def (graphite_scop): New counter.
6068         * graphite.c: Include dbgcnt.h.
6069         (graphite_transform_loops): Use new counter to limit transformations.
6070         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6071
6072 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6073
6074         * passes.c (init_optimization_passes): Add pass_graphite.
6075         Schedule a pass_copy_prop before pass_graphite_transforms.
6076         * timevar.def (TV_GRAPHITE): Declared.
6077         * tree-pass.h (pass_graphite): Declared.
6078         * tree-ssa-loop.c (pass_graphite): New.
6079
6080 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6081
6082         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6083         Remove calls to rename_nb_iterations and rename_sese_parameters.
6084         * graphite-clast-to-gimple.h (gloog): Update declaration.
6085         * graphite.c (graphite_transform_loops): Update call to gloog.
6086         * sese.c (rename_variables_in_expr): Removed.
6087         (rename_nb_iterations): Removed.
6088         (rename_sese_parameters): Removed.
6089         * sese.h (rename_nb_iterations): Removed.
6090         (rename_sese_parameters): Removed.
6091
6092 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6093
6094         * graphite-clast-to-gimple.c (gloog): Remove call to
6095         sese_adjust_liveout_phis.
6096         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6097         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6098         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6099         rewrite_phi_out_of_ssa.
6100         * sese.c (get_vdef_before_sese): Removed.
6101         (sese_adjust_vphi): Removed.
6102         (sese_adjust_liveout_phis): Removed.
6103         * sese.h (sese_adjust_liveout_phis): Removed.
6104
6105 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6106
6107         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6108         argument for the place after which to insert the out of SSA copy.
6109         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6110         (rewrite_phi_out_of_ssa): Same.
6111         (rewrite_cross_bb_scalar_deps): Same.
6112         (insert_copyout): Removed.
6113         (insert_copyin): Removed.
6114         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6115         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6116         insert_copyin.
6117
6118 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6119
6120         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6121         (rewrite_reductions_out_of_ssa): Same.
6122         (rewrite_commutative_reductions_out_of_ssa): Same.
6123         (build_poly_scop): Do not call these functions.
6124         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6125         (rewrite_reductions_out_of_ssa): Declared.
6126         (rewrite_commutative_reductions_out_of_ssa): Declared.
6127         * graphite.c (graphite_transform_loops): Call on every scop
6128         rewrite_commutative_reductions_out_of_ssa before calling
6129         rewrite_reductions_out_of_ssa and build_scop_bbs.
6130
6131 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6132
6133         * graphite-dependences.c (dot_deps): Make system call to dotty run
6134         in background.
6135         (dot_deps_stmt): Same.
6136         * graphite-poly.c (dot_lst): Same.
6137
6138 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6139
6140         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6141         phi_arg_in_outermost_loop.
6142         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6143         (remove_invariant_phi): Same.
6144
6145 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6146
6147         * target.def (output_addr_const_extra): New hook.
6148         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6149         * doc/tm.texi: Regenerate.
6150         * targhooks.c (default_asm_output_addr_const_extra): New function.
6151         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6152         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6153         target hook.
6154
6155         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6156         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6157         * config/i386/i386.h (output_addr_const_extra): Rename to...
6158         (i386_asm_output_addr_const_extra): ...this. Make static.
6159         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6160
6161 2010-08-11  Richard Henderson  <rth@redhat.com>
6162
6163         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6164
6165 2010-08-11  Nick Clifton  <nickc@redhat.com>
6166
6167         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6168         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6169         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6170         stormy16-lib2-cmpsi.c.
6171
6172         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6173         -O2.
6174
6175 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
6176
6177         * opts.h (struct cl_option_handler_func): Make handler take
6178         cl_decoded_option structure as parameter, not individual elements.
6179         (struct cl_option_handlers): Make callbacks take cl_decoded_option
6180         structure as parameter, not individual elements.
6181         (handle_option): Take cl_decoded_option structure as parameter,
6182         not individual elements.
6183         (handle_generated_option): Declare.
6184         * opts-common.c (handle_option): Take cl_decoded_option structure
6185         as parameter, not individual elements.  Update calls to callback
6186         and handler functions.
6187         (handle_generated_option): New.
6188         (read_cmdline_option): Update calls to callback functions and
6189         handle_option.
6190         * opts.c (common_handle_option, complain_wrong_lang,
6191         unknown_option_callback, post_handling_callback,
6192         lang_handle_option, target_handle_option): Take cl_decoded_option
6193         structure as parameter, not individual elements.
6194         (lang_handle_option, target_handle_option, common_handle_option):
6195         Assert option has at most one argument.
6196         (enable_warning_as_error): Call handle_generated_option instead of
6197         handle_option.  Do not pass -Werror argument as argument of
6198         generated option.
6199
6200 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6201
6202         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6203         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6204         (SUBWORD_BOOL_CAS): Likewise.
6205         (SUBWORD_SYNC_OP): Likewise.
6206         (SUBWORD_TEST_AND_SET): Likewise.
6207         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6208         (SUBWORD_SYNC_OP): Likewise.
6209         (OP_AND_FETCH_WORD): Likewise.
6210
6211 2010-08-10  Xinliang David Li  <davidxl@google.com>
6212
6213         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
6214         compute max/min offset in address.
6215
6216 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
6217
6218         * ira-live.c: Include sbitmap.h.
6219         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
6220         Compress live ranges even more.
6221
6222 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6223
6224         * coverage.c (ctr_labels): Delete.
6225
6226 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6227
6228         PR bootstrap/45177
6229         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
6230         test here from arm_gen_load_multiple_1.
6231         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
6232         multiple_operation_profitable_p.
6233
6234 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6235
6236         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
6237         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
6238
6239 2010-08-10  Richard Henderson  <rth@redhat.com>
6240
6241         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
6242         after saving registers.  Assert that SSE registers are only saved
6243         with a sufficiently aligned frame.
6244         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
6245         remove stack_realign_fp handling.
6246         (ix86_expand_prologue): Save int registers before stack_realign_fp,
6247         and do not mark the stack alignment as frame related.
6248         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
6249
6250         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
6251         saves when re-aligning the stack.
6252
6253 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6254
6255         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
6256         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
6257         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
6258
6259 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
6260
6261         * dwarf2out.c (struct die_struct): Move die_tag to the end.
6262
6263 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
6264
6265         * config/arm/iterators.md: New file.
6266         * config/arm/arm.md: Include iterators.md.
6267         (QHSI): Move to new file.
6268         (LTUGEU, cnb, optab, ior_xor): Likewise.
6269         * config/arm/iwmmxt.md (VMMX): Move to new file.
6270         (VSHFT, MMX_char): Likewise.
6271         * config/arm/neon.md (VD): Move to new file.
6272         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
6273         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
6274         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
6275         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
6276         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
6277         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
6278         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
6279         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
6280         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
6281         (Is_d_reg, V_mode_nunits): Likewise.
6282         * config/arm/vec-common.md (VALL): Move to new file.
6283         (VALLW, VINT, VINTW): Likewise.
6284
6285 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
6286
6287         PR middle-end/45182
6288         * combine.c (make_compound_operation): Don't try to convert
6289         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
6290
6291 2010-08-10  Richard Guenther  <rguenther@suse.de>
6292
6293         * tree.h (get_object_alignment): Adjust prototype.
6294         * builtins.c (get_object_alignment): Return unsigned int,
6295         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
6296         and TARGET_MEM_REF properly.
6297         (get_pointer_alignment): Adjust.
6298         * emit-rtl.c (get_mem_align_offset): Adjust comment.
6299         (set_mem_attributes_minus_bitpos): Adjust.
6300         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
6301
6302 2010-08-10  Richard Guenther  <rguenther@suse.de>
6303
6304         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
6305         (copy_prop_visit_assignment): Simplify.
6306         (copy_prop_visit_stmt): Also visit assignments from
6307         constants.
6308         (copy_prop_visit_phi_node): Use operand_equal_p.
6309
6310 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6311
6312         * ipa-split.c (find_split_points): Free stack.
6313
6314 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6315
6316         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
6317         * tree.c (tree_node_kind): Delete corresponding entries.
6318
6319 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6320
6321         * alias.c (may_alias_p): Remove unused ret.
6322
6323 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
6324
6325         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
6326         alias_sets_conflict_p.
6327         (walk_mems_1): Moved from alias.c.
6328         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
6329         in alias.c.
6330         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
6331         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
6332         * alias.c (walk_mems_2): Moved to ddg.c.
6333         (walk_mems_1): Ditto.
6334         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
6335         to ddg.c.
6336         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
6337         disambiguation.
6338         *(may_alias_p): New function to check whether two memory expression
6339         may alias or not. Currently used in buidling inter-iteration memory
6340         dependence.
6341         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
6342         (insn_alias_sets_conflict_p): Removed
6343         *rtl.h (may_alias_p): New function prototype.
6344
6345 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6346
6347         * tree.c (nreverse): Assert that we don't have a BLOCK.
6348
6349 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
6350
6351         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
6352         * config/arm/arm.c (arm_get_pcs_model): Likewise.
6353         * config/avr/avr.c (init_cumulative_args): Likewise.
6354         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6355         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6356         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
6357         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
6358         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6359         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6360         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
6361         * dwarf2out.c (gen_subprogram_die): Likewise.
6362         * function.c (allocate_struct_function): Likewise.
6363         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
6364         (deserves_ellipsis): Delete.
6365
6366 2010-08-09  Richard Guenther  <rguenther@suse.de>
6367
6368         * tree-ssa-copy.c (cached_last_copy_of): Remove.
6369         (valueize_val): New function.
6370         (get_last_copy_of): Remove.
6371         (set_copy_of_val): Simplify.
6372         (dump_copy_of): Likewise.
6373         (copy_prop_visit_cond_stmt): Use valueize_val.
6374         (copy_prop_visit_phi_node): Properly handle unvisited names.
6375         Drop code managing copy-of chains.
6376         (init_copy_prop): Adjust.
6377         (fini_copy_prop): Likewise.
6378         (execute_copy_prop): Remove obsolete comment.
6379
6380 2010-08-09  Richard Guenther  <rguenther@suse.de>
6381
6382         PR middle-end/44632
6383         * function.c (gimplify_parameters): Do not clear addressable
6384         bit of the original parameter.
6385
6386 2010-08-09  Richard Guenther  <rguenther@suse.de>
6387
6388         PR middle-end/45212
6389         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
6390         alignment from MEM_REF offset only if we took it from the
6391         base object.
6392
6393 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
6394
6395         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
6396
6397 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6398
6399         * c-tree.h (build_arg_info): Declare.
6400         * c-decl.c (build_arg_info): Define.
6401         (get_parm_info): Call it.  Delete initialization code.
6402         * c-parser.c (c_parser_parms_declarator): Likewise.
6403         (c_parser_parms_list_declaractor): Likewise.
6404
6405 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6406
6407         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
6408         (struct c_arg_info): Change type of tags field.
6409         * c-decl.c (grokdeclarator): Update for changed type of tags field.
6410         (get_parm_info): Likewise.
6411         (store_parm_decls_newstyle): Likewise.
6412
6413 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
6414
6415         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
6416         (branch_island_list): Delete.
6417         (branch_islands): Declare.
6418         (add_compiler_branch_island): Adjust for branch_islands instead of
6419         branch_island_list.
6420         (macho_branch_islands): Likewise.
6421         (no_previous_def): Likewise.
6422         (get_prev_label): Likewise.
6423
6424 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6425
6426         PR boehm-gc/34544
6427         * gthr-posix.h (__gthread_start): Delete.
6428         (__gthread_active_init): Use pthread_default_stacksize_np instead of
6429         pthread_create to determine if hpux pthreads are active.
6430         * gthr-posix95.h (__gthread_start): Delete.
6431         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
6432
6433 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
6434
6435         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
6436         _WIN64 not expanded.
6437
6438 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
6439             H.J. Lu  <hongjiu.lu@intel.com>
6440
6441         PR target/45213
6442         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
6443         to output 32bit SFmode immediate as 8 byte sign extended value.
6444
6445 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6446
6447         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
6448         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
6449         (SUBWORD_BOOL_CAS): Likewise.
6450         (SUBWORD_SYNC_OP): Likewise.
6451         (SUBWORD_TEST_AND_SET): Likewise.
6452         (FETCH_AND_OP_WORD): Parenthesise INF_OP
6453         (SUBWORD_SYNC_OP): Likewise.
6454         (OP_AND_FETCH_WORD): Likewise.
6455
6456 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6457
6458         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
6459         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
6460         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
6461         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
6462         generic part.
6463         (cortex_a9_sched_adjust_cost): New function.
6464         (xscale_sched_adjust_cost): New function.
6465         * config/arm/arm-protos.h (struct tune_params): New field
6466         sched_adjust_cost.
6467         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
6468
6469 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
6470
6471         PR target/44942
6472         * config/sparc/sparc.c (function_arg_advance): Always take into account
6473         the padding, if any.
6474
6475 2010-08-06  Richard Guenther  <rguenther@suse.de>
6476
6477         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
6478         (dump_lattice_value): Dump it.
6479         (get_default_value): Adjust.
6480         (get_constant_value): Likewise.
6481         (set_value_varying): Likewise.
6482         (set_lattice_value): Make sure to not go up the lattice
6483         with bitwise constant values.
6484         (get_value_for_expr): Handle ADDR_EXPRs.
6485         (value_to_double_int): New function.
6486         (get_value_from_alignment): Likewise.
6487         (do_dbg_cnt): Adjust.
6488         (ccp_lattice_meet): Handle partially constant values.
6489         (bit_value_unop_1): New function.
6490         (bit_value_binop_1): Likewise.
6491         (bit_value_unop): Likewise.
6492         (bit_value_binop): Likewise.
6493         (evaluate_stmt): Track partially constant values if
6494         flag_tree_bit_ccp is set.
6495         (ccp_fold_stmt): Dump if we folded a predicate.
6496         (ccp_visit_stmt): Adjust.
6497         * common.opt (ftree-bit-ccp): New flag.
6498         * doc/invoke.texi (ftree-bit-ccp): Document.
6499         * opts.c (decode_options): Enable bit-CCP at -O1.
6500
6501 2010-08-06  Alan Modra  <amodra@gmail.com>
6502
6503         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
6504         and -mrelocatable-lib description.
6505
6506 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
6507
6508         From Martin Thuresson  <martint@google.com>
6509         * postreload.c (reload_cse_simplify_operands): Use
6510         SET_REGNO_RAW instead of SET_REGNO.
6511         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
6512         SET_REGNO.
6513         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
6514         instead of SET_REGNO.
6515         * rtl.h (SET_REGNO_RAW): New macro.
6516
6517 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
6518
6519         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
6520         computations.  Fix formatting issues.
6521         (num_sign_bit_copies1): Likewise.
6522         (canonicalize_condition): Likewise.
6523
6524 2010-08-05  Richard Henderson  <rth@redhat.com>
6525
6526         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
6527         (floor_log2): Use clz_hwi.
6528         (exact_log2): Use ctz_hwi.
6529         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
6530         * builtins.c (fold_builtin_bitop): Use them.
6531         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6532         * combine.c (get_pos_from_mask): Use ctz_hwi.
6533         * double-int.c (double_int_ctz): Likewise.
6534         * explow.c (force_reg): Likewise.
6535         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
6536
6537 2010-08-05  Richard Henderson  <rth@redhat.com>
6538
6539         PR target/45189
6540         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
6541         the alignment constant is properly sign-extended.
6542
6543 2010-08-05  Richard Guenther  <rguenther@suse.de>
6544
6545         * expr.c (store_expr): Use emit_block_move only if both
6546         source and target are MEMs.  Use store_bit_field if only
6547         the target is a MEM.
6548
6549 2010-08-05  Richard Henderson  <rth@redhat.com>
6550
6551         PR debug/45188
6552         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
6553         (INCOMING_RETURN_ADDR_RTX): Likewise.
6554         (dwarf2out_do_frame): Remove conditional compilation.
6555         (dwarf2out_frame_init): Likewise.
6556
6557 2010-08-05  Nicolas Setton  <setton@adacore.com>
6558
6559         * gcov.c (flag_display_progress): New static variable.
6560         (main): Display progress info on standard output if requested.
6561         (options): Add -d/--display-progress.
6562         (print_usage): Print them.
6563         (process_args): Handle them.
6564         * doc/gcov.texi: Document them.
6565
6566 2010-08-05  Martin Jambor  <mjambor@suse.cz>
6567
6568         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
6569         (ipcp_insert_stage): Redirect only edges not flagged with
6570         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
6571         discovered constants.
6572
6573 2010-08-05  Martin Jambor  <mjambor@suse.cz>
6574
6575         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
6576         (struct ipa_param_descriptor): New fields types and
6577         cannot_devirtualize.
6578         (ipa_param_cannot_devirtualize_p): New function.
6579         (ipa_param_types_vec_empty): Likewise.
6580         (ipa_make_edge_direct_to_target): Declare.
6581         * ipa-cp.c: Fixed first stage driver name in initial comment,
6582         described devirtualization there too.
6583         (ipcp_analyze_node): Call ipa_analyze_params_uses.
6584         (ipcp_print_all_lattices): Print devirtualization info.
6585         (ipa_set_param_cannot_devirtualize): New function.
6586         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
6587         lattice to BOTTOM.
6588         (ipcp_init_stage): Merged into...
6589         (ipcp_generate_summary): ...its caller.
6590         (ipcp_change_tops_to_bottom): Also process type lists.
6591         (ipcp_add_param_type): New function.
6592         (ipcp_copy_types): Likewise.
6593         (ipcp_propagate_types): Likewise.
6594         (ipcp_propagate_stage): Also propagate types.
6595         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
6596         Also return true if propagated types require it.
6597         (ipcp_update_callgraph): Dump redirection info.
6598         (ipcp_process_devirtualization_opportunities): New function.
6599         (ipcp_const_param_count): Include known type information.
6600         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
6601         on new node.  Fixed formatting.
6602         * ipa-prop.c (make_edge_direct_to_target): Renamed to
6603         ipa_make_edge_direct_to_target and changed all callers.  Made
6604         externally visible.
6605         (ipa_node_duplication_hook): Duplicate types vector.
6606         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
6607         redirect outgoing calls for which we can't get a decl from the
6608         statement.  Check that we can get a decl from the call statement.
6609         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6610         ipa_analyze_params_uses only when ipa-cp is disabled.
6611         * tree-inline.c (get_indirect_callee_fndecl): Removed.
6612         (expand_call_inline): Do not call get_indirect_callee_fndecl.
6613         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
6614         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
6615
6616 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
6617
6618         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
6619         temporary. Emit move from temporary to accum, so REG_EQUAL note will
6620         be attached to this insn in correct mode.
6621
6622 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
6623
6624         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
6625         using REGNO of base_reg directly.
6626
6627 2010-08-05  Jie Zhang  <jie@codesourcery.com>
6628
6629         PR tree-optimization/45144
6630         * tree-sra.c (type_consists_of_records_p): Return false
6631         if the record contains bit-field.
6632
6633 2010-08-04  Richard Henderson  <rth@redhat.com>
6634
6635         * config/i386/i386.c (struct ix86_frame): Remove padding and
6636         to_allocate members.
6637         (ix86_compute_frame_layout): Don't store them.
6638         (ix86_can_use_return_insn_p): Use a more direct and more obviously
6639         correct condition for the position of the stack pointer.
6640         (ix86_expand_prologue): Compute remaining stack allocation based
6641         on the ultimate stack pointer offset.
6642         (ix86_expand_epilogue): Use more obvious expressions testing for
6643         the stack pointer already pointing to the saved registers.
6644
6645         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
6646         duplication deconstructing the frame pointer.  Simplify
6647         deallocation of the local stack frame.
6648
6649         * reg-notes.def (CFA_EXPRESSION): New.
6650         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6651         (dwarf2out_frame_debug_cfa_expression): New.
6652         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
6653
6654         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
6655         * config/i386/i386.c (ix86_expand_prologue): Set it.
6656         (ix86_expand_epilogue): Clear it.
6657         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
6658         context, add REG_CFA_EXPRESSION notes.
6659
6660         * config/i386/i386.h (struct machine_frame_state): Rename from
6661         machine_cfa_state.  Add members tracking SP and FP regardless
6662         of the current CFA register.
6663         (ix86_cfa_state): Remove.
6664         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
6665         and sse_reg_save_offset members.
6666         (ix86_compute_frame_layout): Set them.
6667         (gen_push): Increment sp_offset too.
6668         (choose_baseaddr_len, choose_baseaddr): New.
6669         (ix86_emit_save_reg_using_mov): New.
6670         (ix86_emit_save_regs_using_mov): Use it.
6671         (ix86_emit_save_sse_regs_using_mov): Likewise.
6672         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
6673         compare vs the saved red_zone_offset.
6674         (pro_epilogue_adjust_stack): Adjust sp_offset.
6675         (ix86_adjust_stack_and_probe): Likewise.
6676         (ix86_expand_prologue): Set up, use, and validate the new
6677         frame_state_info members.  Use gen_frame_mem.
6678         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
6679         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
6680         new frame_state_info members.
6681         (ix86_emit_leave): Likewise.
6682         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
6683         out-of-range stack pointer offsets here.
6684         (ix86_emit_restore_sse_regs_using_mov): Likewise.
6685         (ix86_expand_epilogue): Use and validate the new frame_state_info
6686         members.  Break up and simplify the logic selecting the
6687         restore_regs_via_mov code path.  Ensure that there will be no
6688         out-of-range stack pointer offsets.
6689
6690         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
6691
6692         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
6693         argument name to reflect the expected tree; fix indentation.
6694         (ix86_asm_output_function_label): Output the entire 32-bit
6695         ms_hook here as bytes ...
6696         (ix86_expand_prologue): ... not here as insns.  Attach the
6697         unwind info for the ms_hook to a blockage insn.
6698         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
6699         (ix86_ms_bitfield_layout_p): Fix indentation.
6700         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
6701
6702         * config/i386/i386.c (ix86_using_red_zone): New.
6703         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
6704         ix86_expand_prologue, ix86_force_to_memory): Use it.
6705
6706         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
6707         saving the int registers.
6708
6709         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
6710         and DWARF2_UNWIND_INFO conditional compilation.
6711
6712 2010-08-04  Richard Henderson  <rth@redhat.com>
6713
6714         PR debug/45171
6715         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
6716         an is_naming_typedef_decl.
6717
6718 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
6719
6720         PR rtl-optimization/45162
6721         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
6722         * dce.c (word_dce_process_block): Likewise.
6723
6724 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
6725
6726         PR target/44583
6727         * config/ia64/constraints.md (Z): New.
6728         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
6729         (xfreg_or_signed_fp01_operand): New.
6730         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
6731         with fr_reg_or_signed_fp01_operand and constraint G with Z.
6732         (subsf3): Ditto.
6733         (*maddsf4): Ditto.
6734         (*msubsf4): Ditto.
6735         (adddf3): Ditto.
6736         (adddf3_trunc): Ditto.
6737         (subdf3): Ditto.
6738         (*subdf3_trunc): Ditto.
6739         (*madddf4): Ditto.
6740         (*madddf4_trunc): Ditto.
6741         (*msubdf4): Ditto.
6742         (*msubdf4_trunc): Ditto.
6743         (addxf3): Replace xfreg_or_fp01_operand with
6744         xfreg_or_signed_fp01_operand and constraint G with Z.
6745         (*addxf3_truncsf): Ditto.
6746         (*addxf3_truncdf): Ditto.
6747         (subxf3): Ditto.
6748         (*subxf3_truncsf): Ditto.
6749         (*subxf3_truncdf): Ditto.
6750         (*maddxf4): Ditto.
6751         (*maddxf4_truncsf): Ditto.
6752         (*maddxf4_truncdf): Ditto.
6753         (*msubxf4): Ditto.
6754         (*msubxf4_truncsf): Ditto.
6755         (*msubxf4_truncdf): Ditto.
6756
6757 2010-08-04  Richard Guenther  <rguenther@suse.de>
6758
6759         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
6760         if either alias-set is zero.
6761
6762 2010-08-04  Richard Guenther  <rguenther@suse.de>
6763
6764         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
6765         * tree-ssa-ccp.c: ... here.
6766         * tree-ssa-copy.c: ... and here.
6767         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
6768         value_range_t): Move ...
6769         * tree-vrp.c: ... here.
6770         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
6771         (substitute_and_fold): Adjust prototype.
6772         * tree-ssa-propagate.c (replace_uses_in): Adjust.
6773         (replace_phi_args_in): Likewise.
6774         (substitute_and_fold): Take callback to query lattice instead
6775         of pointer to lattice.  Replace SSA name defs with lattice
6776         values first.
6777         * tree-ssa-ccp.c (ccp_finalize): Adjust.
6778         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
6779         (get_value): New function.
6780         (fini_copy_prop): Adjust.
6781         * tree-vrp.c (vrp_finalize): Adjust.
6782
6783 2010-08-04  Richard Guenther  <rguenther@suse.de>
6784
6785         PR middle-end/45176
6786         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
6787         points-to set for original MEM_REF.
6788
6789 2010-08-04  Richard Guenther  <rguenther@suse.de>
6790
6791         * tree-ssa-ccp.c (get_constant_value): New function.
6792         (get_rhs_assign_op_for_ccp): Remove.
6793         (valueize_op): New function.
6794         (ccp_fold): Use get_constant_value and valueize_op.
6795         (fold_const_aggregate_ref): Likewise.
6796         (ccp_fold_stmt): Likewise.
6797         (visit_assignment): Simplify.
6798
6799 2010-08-04  Richard Guenther  <rguenther@suse.de>
6800
6801         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
6802         * double-int.h (double_int_ctz): Declare.
6803         * double-int.c (double_int_ctz): New function.
6804
6805 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
6806
6807         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
6808         Define.
6809         picochip_expand_movmemhi : Expand movmem pattern.
6810         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
6811         Declare.
6812         * config/picochip/picochip.md (movmemhi) : New pattern.
6813
6814 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
6815
6816         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
6817
6818 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
6819
6820         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
6821         NEG as operand of a MULT by merging it with the other operand.
6822         * combine.c (make_compound_operation): Use trunc_int_for_mode when
6823         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
6824         MULT.
6825         * config/arm/constraints.md (M): Examine only 32 bits of a
6826         HOST_WIDE_INT.
6827         * config/arm/predicates.md (power_of_two_operand): Likewise.
6828
6829 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6830
6831         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
6832         non-NOTE insns.
6833
6834 2010-08-03  Jan Hubicka  <jh@suse.cz>
6835
6836         * ipa-split.c (struct split_point): Add split_part_set_retval.
6837         (find_retval): Forward declare.
6838         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
6839         (consider_split): Compute current->split_part_set_retval.
6840         (visit_bb): Do not look into return value.
6841         (split_function): Handle !split_part_set_retval
6842
6843 2010-08-03  Martin Jambor  <mjambor@suse.cz>
6844
6845         * tree-sra.c (completely_scalarize_record): New parameter REF, create
6846         its own access->expr intead of using build_ref_for_offset.
6847
6848 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
6849
6850         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
6851         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
6852         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
6853         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
6854         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
6855         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
6856         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
6857         DEFAULT_SWITCH_TAKES_ARG.
6858         * config/rx/rx.opt (-patch=): Remove option.
6859         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
6860         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
6861         * doc/invoke.texi (RX Options): Remove -patch=.
6862         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
6863         (option_map): Remove --profile-blocks, --quiet and --silent.
6864
6865 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
6866
6867         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
6868         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
6869         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
6870         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
6871         Update calls to ix86_expand_compare and ix86_expand_branch.
6872         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
6873         ix86_expand_compare.
6874         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
6875         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
6876         Make static.
6877         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
6878         and ix86_compare_op1.  Update calls to ix86_expand_compare.
6879         (ix86_expand_int_movcc): Ditto.
6880         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
6881         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
6882         (ix86_expand_setcc): Ditto.
6883         (ix86_expand_compare): Remove prototype.
6884         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
6885         ix86_compare_op0 and ix86_compare_op1.  Update calls
6886         to ix86_expand_branch to directly pass operands[1] and operands[2].
6887         (cbranchxf4): Ditto.
6888         (cbranch<MODEF:mode>4): Ditto.
6889         (cbranchcc4): Ditto.
6890         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
6891         Update calls to ix86_expand_setcc to directly pass operands[2] and
6892         operands[3].
6893         (cstorexf4): Ditto.
6894         (cstore<MODEF:mode>4): Ditto.
6895         (cstorecc4): Ditto.
6896
6897 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
6898
6899         PR target/45063
6900         * caller-save.c (save_call_clobbered_regs): Remove regs from
6901         hard_regs_saved when they are set.
6902
6903 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
6904
6905         PR target/41089
6906         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
6907         as volatile.
6908
6909 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
6910
6911         * common.opt (ftree-loop-distribute-patterns): New.
6912         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
6913         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
6914         at -O3.
6915         * tree-data-ref.c (stores_zero_from_loop): New.
6916         * tree-data-ref.h (stores_zero_from_loop): Declared.
6917         * tree-loop-distribution.c (tree_loop_distribution): Call
6918         stores_zero_from_loop.
6919         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
6920
6921 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
6922
6923         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
6924         into account.
6925
6926         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
6927         * config/arm/arm.c (thumb1_code): New variable.
6928         (arm_override_options): Set it.
6929         (thumb1_final_prescan_insn): Keep track of condition code status.
6930         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
6931         jumps that depend on them.
6932         * config/arm/arm.h (thumb1_code): Declare variable.
6933         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
6934         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
6935         thumb1_cc_mode.
6936         (CC_STATUS_INIT): New macro.
6937         * config/arm/constraints.md (Pd): New constraint.
6938         * config/arm/predicates.md (noov_comparison_operator): New predicate.
6939         * config/arm/arm.md (is_thumb1): New define_attr.
6940         (conds): Set default to "clob" when generating Thumb1 code.
6941         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
6942         code are set.  Use two-operand assembly syntax.
6943         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
6944         pattern.
6945         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
6946         codes are set.  Use two-operand assembly syntax.
6947         (zero_extendhisi splitter): Remove constraints.
6948         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
6949         thumb1_movsf_insn): Set conds attribute as appropriate.
6950         (cbranchsi4_insn): Use condition code status from struct
6951         machine_function to determine whether the comparison can be eliminated.
6952         Discourage the alternative using high registers.
6953         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
6954         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
6955         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
6956         subsi3_cbranch): Delete.
6957         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
6958         one subtract and one cbranch insn.
6959
6960         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
6961         thumb2_movdf_soft_insn): Delete patterns.
6962         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
6963         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
6964         (pool_range, neg_pool_range): Use them to define defaults.
6965         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
6966         and allow for TARGET_32BIT.
6967
6968         PR target/40457
6969         * config/arm/arm.h (arm_regs_in_sequence): Declare.
6970         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
6971         load_multiple_sequence, store_multiple_sequence): Delete
6972         declarations.
6973         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
6974         declarations.
6975         * config/arm/ldmstm.md: New file.
6976         * config/arm/arm.c (arm_regs_in_sequence): New array.
6977         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
6978         CHECK_REGS.  All callers changed.
6979         If SAVED_ORDER is nonnull, copy the computed order into it.
6980         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
6981         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
6982         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
6983         If SAVED_ORDER is nonnull, copy the computed order into it.
6984         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
6985         like REGS.  Handle Thumb mode.
6986         (arm_gen_load_multiple_1): New function, broken out of
6987         arm_gen_load_multiple.
6988         (arm_gen_store_multiple_1): New function, broken out of
6989         arm_gen_store_multiple.
6990         (arm_gen_multiple_op): New function, with code from
6991         arm_gen_load_multiple and arm_gen_store_multiple moved here.
6992         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
6993         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
6994         changed.
6995         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
6996         * config/arm/predicates.md (commutative_binary_operator): New.
6997         (load_multiple_operation, store_multiple_operation): Handle more
6998         variants of these patterns with different starting offsets.  Handle
6999         Thumb-1.
7000         * config/arm/arm.md: Include "ldmstm.md".
7001         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7002         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7003         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7004         peepholes): Delete.
7005         * config/arm/ldmstm.md: New file.
7006         * config/arm/arm-ldmstm.ml: New file.
7007
7008         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7009         if statement which adds extra costs to frame-related expressions.
7010
7011 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7012
7013         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7014
7015 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7016
7017         PR target/45142
7018         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7019         alternative 2.
7020         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7021         split V4SI operands.
7022
7023 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7024
7025         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7026         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7027         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7028         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7029
7030 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7031
7032         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7033         LOCAL_INCLUDE_DIR.
7034
7035 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7036
7037         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7038         used in the call to optab_for_tree_code.  Fix the second
7039         is_widening_mult_p call.  Check that both unwidened operands
7040         have the same sign.
7041
7042 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7043
7044         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7045
7046 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7047
7048         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7049
7050 2010-07-30  DJ Delorie  <dj@redhat.com>
7051
7052         * config/rx/predicates.md (rx_constshift_operand): New.
7053         * config/rx/rx.md (zs_cond): New.
7054         (cbranchsi4): Remove mode.
7055         (*cbranchsi4_<code>): Likewise.
7056         (*tstbranchsi4_<code>): New.
7057         (*tstbranchsi4r_<code>): New.
7058         (*tstbranchsi4m_eq): New.
7059         (*tstbranchsi4m_ne): New.
7060         (cbranchsf4): Remove mode.
7061         (*cbranchsf4_<code>): Likewise.
7062
7063 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7064
7065         * rtlanal.c (simplify_subreg_regno): Don't treat
7066         HARD_FRAME_POINTER_REGNUM specially.
7067
7068 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7069
7070         * common.opt (-G): Don't define option here.
7071         * config/g.opt: New.
7072         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7073         rs6000/powerpc and score targets.
7074         * opts.c (common_handle_option): Don't handle -G here.
7075         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7076         * config/frv/frv.c (frv_handle_option): Handle -G.
7077         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7078         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7079         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7080         * config/mips/mips.c (mips_handle_option): Handle -G.
7081         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7082         * config/score/score.c (score_handle_option): Handle -G.
7083
7084 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7085
7086         * config/mmix/mmix.c: Include basic-block.h.
7087
7088 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7089
7090         PR debug/45055
7091         PR rtl-optimization/45137
7092         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7093         prototypes.
7094         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7095         New functions.
7096         * combine.c (next_nonnote_nondebug_insn): Removed.
7097         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7098         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7099         * sched-deps.c (sched_analyze_insn): Likewise.
7100         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7101         * rtlanal.c (canonicalize_condition): Likewise.
7102         * postreload.c (reload_combine_recognize_pattern): Likewise.
7103         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7104
7105 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7106
7107         * config/i386/i386.md (int_cond): Remove code iterator.
7108         (fp_cond): Ditto.
7109         (cbranch<mode>4): Use ordered_comparison_operator predicate
7110         for operator0.
7111         (cstore<mode>4): Ditto for operator1.
7112         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7113         (add<mode>cc): ditto.
7114
7115 2010-07-30  Richard Guenther  <rguenther@suse.de>
7116
7117         PR middle-end/45141
7118         * expr.c (expand_expr_real_1): Check for not handled base address.
7119
7120 2010-07-30  Richard Guenther  <rguenther@suse.de>
7121
7122         * ipa-prop.c (ipa_modify_formal_parameters): Use
7123         build_distinct_type_copy.
7124
7125 2010-07-30  Anthony Green  <green@moxielogic.com>
7126
7127         * config/moxie/rtems.h: New file.
7128         * config.gcc: Add moxie-rtems support.
7129
7130 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7131
7132         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7133         df flags as in run_fast_df_dce.
7134
7135 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7136
7137         Revert:
7138         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7139
7140         * rtl.def (NOTE): Swap operands 4 and 5.
7141         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7142         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7143         Adjust accordingly.
7144         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7145
7146 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7147
7148         PR debug/45110
7149         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7150         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7151         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7152         formal parameters.
7153         (gen_decl_die): Change return type to dw_die_ref, return what
7154         gen_formal_parameter_die returned.
7155
7156 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7157
7158         * dbgcnt.def (eipa_sra): New counter.
7159         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7160
7161 2010-07-29  Xinliang David Li  <davidxl@google.com>
7162
7163         PR bootstrap/45119
7164         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7165         in revision 162652.
7166
7167 2010-07-29  Richard Guenther  <rguenther@suse.de>
7168
7169         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7170         (TV_TREE_STORE_CCP): Likewise.
7171         (TV_TREE_REDPHI): Likewise.
7172
7173 2010-07-29  Richard Guenther  <rguenther@suse.de>
7174
7175         * double-int.h (double_int_and_not): New function.
7176         * combine.c (try_combine): Use it.
7177         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7178
7179 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7180
7181         PR rtl-optimization/42575
7182         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7183         Argument AU removed.  All callers changed.  Ignore artificial refs.
7184         Use return value of df_word_lr_simulate_defs to decide whether an insn
7185         is necessary.
7186         (fast_dce): Rename arg to WORD_LEVEL.
7187         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
7188         static.
7189         (pass_fast_rtl_byte_dce): Delete.
7190         * dce.h (run_word_dce): Declare.
7191         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
7192         All callers changed.  Simplify code to only deal with two-word regs.
7193         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
7194         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
7195         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
7196         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
7197         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
7198         (df_word_lr_mark_ref): Declare.
7199         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
7200         df_word_lr_simulate_uses): Declare or rename from byte variants.
7201         (df_byte_lr_simulate_artificial_refs_at_top,
7202         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7203         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
7204         declarations.
7205         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
7206         (enum df_mm): Delete.
7207         * df-byte-scan.c: Delete file.
7208         * df-problems.c (df_word_lr_problem_data): Renamed from
7209         df_byte_lr_problem_data, all members deleted except for
7210         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
7211         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
7212         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
7213         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
7214         df_byte_lr_confluence_0): Delete functions.
7215         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
7216         callers changed.
7217         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
7218         Don't initialize members that were deleted, don't try to discover data
7219         about registers.  Ignore hard regs.
7220         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
7221         (df_word_lr_mark_ref): New function.
7222         (df_word_lr_bb_local_compute): Renamed from
7223         df_byte_bb_lr_local_compute; all callers changed.  Use
7224         df_word_lr_mark_ref.  Assert that artificial refs don't include
7225         pseudos.  Ignore hard registers.
7226         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
7227         Assert that exit block uses don't contain pseudos.
7228         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
7229         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
7230         callers changed.  Ignore hard regs.
7231         (df_word_lr_transfer_function): Renamed from
7232         df_byte_lr_transfer_function; all callers changed.
7233         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
7234         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
7235         changed.
7236         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
7237         callers changed.
7238         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
7239         confluence operator 0 set to NULL.
7240         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
7241         callers changed.
7242         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
7243         Return bool, true if bitmap changed or insn otherwise necessary.
7244         All callers changed.  Simplify using df_word_lr_mark_ref.
7245         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
7246         all callers changed.  Simplify using df_word_lr_mark_ref.
7247         * lower-subreg.c: Include "dce.h"
7248         (decompose_multiword_subregs): Call run_word_dce if df available.
7249         * Makefile.in (lower-subreg.o): Adjust dependencies.
7250         (df-byte-scan.o): Delete.
7251         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
7252
7253 2010-07-29  Richard Guenther  <rguenther@suse.de>
7254
7255         * tree.c (build_vector): Assert that the vector constant
7256         has enough elements.
7257         (build_vector_from_ctor): Pad with trailing zeros.
7258
7259 2010-07-29  Richard Guenther  <rguenther@suse.de>
7260
7261         PR tree-optimization/45120
7262         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7263         Handle offset in DEREFs properly.
7264         (get_constraint_for_1): Handle MEM_REF offset properly.
7265
7266 2010-07-29  Richard Guenther  <rguenther@suse.de>
7267
7268         PR middle-end/45034
7269         * convert.c (convert_to_integer): Always use an unsigned
7270         type for narrowed negate and bitwise not.
7271
7272 2010-07-29  Ira Rosen  <irar@il.ibm.com>
7273
7274         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
7275         to outer loop when creating reduction epilogue for double reduction,
7276         and switch back to the inner loop when updating the phi nodes.
7277         Update uses of outer loop exit phi nodes in double reduction (instead
7278         of uses of reduction).
7279
7280 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7281
7282         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
7283         popcount on power7 and parity on power6 systems.
7284         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
7285         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
7286         instructions.
7287
7288         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
7289         (UNSPEC_PARITY): Ditto.
7290         (SFDF): New iterator for SF/DF.
7291         (rreg2): New mode attribute for floating register constraint.
7292         (TARGET_FLOAT): New mode attribute for whether single/double float
7293         is supported.
7294         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
7295         pattern.
7296         (parity<mode>2_cmpb): New insn for parity on power6 and newer
7297         machines.
7298         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
7299         pattern.  Add support for fcpsgn instruction added in power6.
7300         (copysignsf3): Delete.
7301         (copysigndf3): Delete.
7302         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
7303         instead of if_then_else in RTL to avoid problems with -0.
7304
7305         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
7306         of if_then_else to mirror scalar code.
7307         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
7308         rs6000.md.
7309
7310         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
7311         instead of if_then_else.
7312
7313 2010-07-28  Xinliang David Li  <davidxl@google.com>
7314
7315         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
7316         (dump_cand): Dump var_before/after.
7317         (htab_inv_expr_eq): New function.
7318         (htab_inv_expr_hash): New function.
7319         (tree_ssa_iv_optimize_init): Support pseudo invariants.
7320         (add_candidate_1): consider base type precision.
7321         (set_use_iv_cost): New parameter.
7322         (adjust_setup_cost): Use profile information.
7323         (get_address_cost): Do not hard code width in computing address
7324         offset limits.
7325         (compare_aff_trees): New function.
7326         (get_loop_invariant_expr_id): New function.
7327         (get_computation_cost_at): New parameter and use profile information.
7328         (get_computation_cost): New parameter.
7329         (determine_use_iv_cost_generic): Pass new parameter.
7330         (determine_use_iv_cost_address): Ditto.
7331         (determine_use_iv_cost_condition): Ditto.
7332         (autoinc_possible_for_pair): Ditto.
7333         (determine_use_iv_costs): More dumps.
7334         (iv_ca_get_num_inv_exprs): New function.
7335         (iv_ca_recount_cost): Consider loop invariants in register pressure
7336         cost.
7337         (iv_ca_add_use): New parameter.
7338         (iv_ca_dump): Better dumping.
7339         (iv_ca_extend): New parameter.
7340         (try_add_cand_for): Attempt to get better partial solution.
7341         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
7342         (create_new-ivs): More dumps.
7343         (rewrite_use_compare): Ditto.
7344         (free_loop_data): More cleanup.
7345         (treee_ssa_iv_optimize_finalize): Ditto.
7346
7347 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
7348
7349         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
7350         * config/i386/i386.c (ix86_profile_before_prologue): New.
7351         (override_options): Add special handling for -mfentry.
7352         (ix86_function_regparm): Likewise.
7353         (ix86_function_sseregparm): Likewise.
7354         (ix86_frame_pointer_required): Likewise.
7355         (ix86_expand_prologue): Check for ms_hook_prologue.
7356         (x86_function_profiler): Adjust mcount output.
7357         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
7358         * config/i386/i386.opt (mfentry): New.
7359         * doc/invoke.texi (mfentry): Add documentation.
7360         * doc/tm.texi: Regenerated..
7361         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
7362         * final.c (final_start_function): Replace macro
7363         PROFILE_BEFORE_PROLOGUE by target hook.
7364         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7365         * target.def (profile_before_prologue): New hook.
7366         * targhooks.c (default_profile_before_prologue): New.
7367         * targhooks.h (default_profile_before_prologue): New.
7368
7369 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
7370
7371         PR debug/45105
7372         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
7373
7374         PR debug/45103
7375         * dwarf2out.c (dwarf2out_var_location): Always consider
7376         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
7377
7378 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7379
7380         PR rtl-optimization/45107
7381         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
7382
7383 2010-07-28  Richard Guenther  <rguenther@suse.de>
7384
7385         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
7386         (set_lattice_value): Do not query an old default value.
7387         (get_value_for_expr): New function.  Properly canonicalize
7388         float values.
7389         (ccp_visit_phi_node): Use it.
7390
7391 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
7392
7393         * config/arm/arm.c (arm_pcs_default): Remove static.
7394         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
7395         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
7396         (arm_pcs_default): Declare.
7397
7398 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
7399
7400         * config/rs6000/rs6000.c (rs6000_override_options):
7401         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
7402         ... to darwin_rs6000_override_options.
7403         (rs6000_return_in_memory): Update preceding comment for darwin
7404         64 bit ABI.  Use TARGET_MACHO inline.
7405         (rs6000_darwin64_struct_check_p): New.
7406         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
7407         (function_arg): Likewise.
7408         (rs6000_arg_partial_bytes): Likewise.
7409         (rs6000_function_value): Likewise.
7410
7411 2010-07-28  Andi Kleen  <ak@linux.intel.com>
7412
7413         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
7414
7415 2010-07-28  Richard Guenther  <rguenther@suse.de>
7416
7417         PR middle-end/44903
7418         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
7419         targets try harder to not generate unaligned accesses.
7420
7421 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7422
7423         PR rtl-optimization/45101
7424         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
7425         for gcse-las.
7426
7427 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7428
7429         PR tree-optimization/44885
7430         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
7431         with non-aliased component.
7432
7433 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
7434
7435         * config/darwin-driver.c (SWITCH_TAKES_ARG,
7436         WORD_SWITCH_TAKES_ARG): Remove.
7437         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7438         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
7439         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
7440         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
7441         definitions from gcc.c.
7442         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
7443         defaults.h.
7444         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
7445         Move to defaults.h.
7446         * opts-common.c: Include tm.h.
7447         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
7448         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
7449         Handle more than one argument.  Set canonical_option_num_elements.
7450         (decode_cmdline_options_to_array): Set
7451         canonical_option_num_elements and trailing elements of
7452         canonical_option.
7453         * opts.h (struct cl_decoded_option): Allow four elements in
7454         canonical_option.  Add field canonical_option_num_elements.
7455         * Makefile.in (opts-common.o): Update dependencies.
7456
7457 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
7458
7459         PR middle-end/44790
7460         PR middle-end/44993
7461         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
7462         sure the base has address_mode before adding the offset.
7463
7464 2010-07-27  Xinliang David Li  <davidxl@google.com>
7465
7466         * tree-flow.h (create_mem_ref): Add one new parameter.
7467         * tree-ssa-address.c (create_mem_ref): New parameter.
7468         (addr_to_parts): Ditto.
7469         (move_variant_to_index): New function.
7470         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
7471
7472 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7473
7474         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
7475         4 and 5.
7476         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
7477         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
7478         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
7479         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
7480         CODE_LABELs and NOTEs.
7481         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
7482         * combine.c (try_combine): Likewise.
7483         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7484         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
7485
7486 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7487
7488         * coretypes.h (struct cl_option_handlers): Declare.
7489         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
7490         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
7491         * langhooks-def.h (lhd_handle_option): Declare.
7492         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
7493         * langhooks.c (lhd_handle_option): New.
7494         * langhooks.h (struct lang_hooks): Update prototype and return
7495         value type of handle_option hook.
7496         * optc-gen.awk: Generate target_flags_explicit definition for the
7497         driver.
7498         * opts-common.c: Include diagnostic.h.
7499         (handle_option): Move from opts.c.  Update prototype and return
7500         value type.  Use handlers structure.
7501         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
7502         handlers structure.
7503         (set_option): Move from opts.c.
7504         * opts.c (common_handle_option): Update prototype and return value
7505         type.  Update calls to handle_option and enable_warning_as_error.
7506         (unknown_option_callback, post_handling_callback,
7507         lang_handle_option, target_handle_option): New.
7508         (handle_option, read_cmdline_option): Move to opts-common.c.
7509         (read_cmdline_options): Update prototype.  Update call to
7510         read_cmdline_option.
7511         (decode_options): Initialize and use handlers structure.
7512         (set_option): Move to opts-common.c.
7513         (enable_warning_as_error): Update prototype.  Update call to
7514         handle_option.
7515         * opts.h (struct cl_option_handler_func, struct
7516         cl_option_handlers): New.
7517         (handle_option, enable_warning_as_error): Update prototypes.
7518         (read_cmdline_option): Declare.
7519         * Makefile.in (opts-common.o): Update dependencies.
7520
7521 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7522
7523         * config/arm/arm.c (params.h): Include.
7524         (arm_override_options): Tune gcse-unrestricted-cost.
7525         * config/arm/t-arm (arm.o): Define dependencies.
7526
7527 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7528
7529         PR target/42495
7530         PR middle-end/42574
7531         * basic-block.h (get_dominated_to_depth): Declare.
7532         * dominance.c (get_dominated_to_depth): New function, use
7533         get_all_dominated_blocks as a base.
7534         (get_all_dominated_blocks): Use get_dominated_to_depth.
7535
7536         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
7537         (hoist_exprs): Remove.
7538         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
7539         (compute_code_hoist_vbeinout): Add debug print outs.
7540         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
7541
7542         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
7543         quadratic behavior.
7544         * params.h (MAX_HOIST_DEPTH): New macro.
7545         * doc/invoke.texi (max-hoist-depth): Document.
7546
7547 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7548
7549         PR rtl-optimization/40956
7550         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
7551         constants.
7552
7553 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7554
7555         PR target/42495
7556         PR middle-end/42574
7557         * config/arm/arm.c (legitimize_pic_address): Use
7558         gen_calculate_pic_address pattern to emit calculation of PIC address.
7559         (will_be_in_index_register): New function.
7560         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
7561         (thumb1_legitimate_address_p): Use it provided !strict_p.
7562         * config/arm/arm.md (calculate_pic_address): New expand and split.
7563
7564 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7565
7566         PR target/42495
7567         PR middle-end/42574
7568         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
7569         * config/arm/arm.md (define_split "J", define_split "K"): Make
7570         IRA/reload friendly.
7571
7572 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7573
7574         * gcse.c (insert_insn_end_basic_block): Update signature, remove
7575         unused checks.
7576         (pre_edge_insert, hoist_code): Update.
7577
7578 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7579
7580         PR target/42495
7581         PR middle-end/42574
7582         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
7583
7584 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7585
7586         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
7587
7588 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7589
7590         PR rtl-optimization/40956
7591         PR target/42495
7592         PR middle-end/42574
7593         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
7594         for hoisting.
7595         (hoist_code): Count occurences in current block too.
7596
7597 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7598
7599         * gcse.c (struct expr:max_distance): New field.
7600         (doing_code_hoisting_p): New static variable.
7601         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
7602         simple expressions, don't change behavior for PRE.  Set max_distance.
7603         (insert_expr_in_table): Set new max_distance field.
7604         (hash_scan_set): Update.
7605         (hoist_expr_reaches_here_p): Stop search after max_distance
7606         instructions.
7607         (find_occr_in_bb): New static function.  Use it in ...
7608         (hoist_code): Calculate sizes of basic block before any changes are
7609         done.  Pass max_distance to hoist_expr_reaches_here_p.
7610         (one_code_hoisting_pass): Set doing_code_hoisting_p.
7611
7612         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
7613         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
7614         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
7615         macros.
7616         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
7617         Document.
7618
7619 2010-07-27  Jeff Law  <law@redhat.com>
7620             Maxim Kuvyrkov  <maxim@codesourcery.com>
7621
7622         * gcse.c (compute_transpout, transpout): Remove, move logic
7623         to prune_expressions.
7624         (compute_pre_data): Move pruning of trapping expressions ...
7625         (prune_expressions): ... here.  New static function.
7626         (compute_code_hoist_data): Use it.
7627         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
7628
7629 2010-07-27  Xinliang David Li  <davidxl@google.com>
7630
7631         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
7632         (rewrite_use_address): Adjust iv update position when needed.
7633
7634 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7635
7636         * dbgcnt.def (hoist_insn): New debug counter.
7637         * gcse.c (hoist_code): Use it.
7638
7639 2010-07-27  Xinliang David Li  <davidxl@google.com>
7640
7641         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
7642         (niter_for_single_dom_exit): Passes additional parameter.
7643         (iv_period): Fix comments.
7644         (may_eliminate_iv): Handles multiple exit loops properly.
7645         (free_tree_niter_desc): New function.
7646         (free_loop_data): Frees up loop iteration descriptors.
7647
7648 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
7649
7650         PR target/44542
7651         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
7652         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
7653         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
7654         (expand_one_var): Don't consider DECL_ALIGN for variables for
7655         which expand_one_stack_var_at has been already called.
7656
7657         PR testsuite/44701
7658         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
7659         constraints on IA-64.
7660
7661 2010-07-27  Jie Zhang  <jie@codesourcery.com>
7662
7663         PR target/44290
7664         Revert:
7665         2010-07-23  Jie Zhang  <jie@codesourcery.com>
7666
7667         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
7668         false if ! tree_versionable_function_p.
7669
7670 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
7671
7672         * dwarf2out.c (add_data_member_location_attribute): Use
7673         add_AT_unsigned instead of add_AT_int if offset is non-negative.
7674
7675 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7676
7677         * postreload.c (try_replace_in_use): New static function.
7678         (reload_combine_recognize_const_pattern): Use it here.  Allow
7679         substituting into a final add insn, and substituting into a memory
7680         reference in an insn that sets the reg.
7681
7682 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7683
7684         * common.opt (o): Add MissingArgError.
7685         * doc/options.texi (MissingArgError): Document.
7686         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
7687         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
7688         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
7689         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
7690         * langhooks.h (struct lang_hooks): Remove missing_argument.
7691         * optc-gen.awk: Handle MissingArgError and output new structure
7692         field initializers.
7693         * opts.c (read_cmdline_option): Use missing_argument_error field
7694         instead of missing_argument langhook.
7695         * opts.h (struct cl_option): Add missing_argument_error field.
7696         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
7697
7698 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
7699
7700         PR target/29090
7701         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
7702         Darwin64 ABI, for zero-sized objects.
7703
7704 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
7705
7706         PR target/35491
7707         PR target/29090
7708
7709         Merge from Apple local 4.2.1.
7710         2005-05-11  Stan Shebs  <shebs@apple.com>
7711         Fix 64-bit varargs for Darwin (Radar 4028089).
7712         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
7713         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
7714         Add argument, add case for 8-byte register half-filled with a float.
7715         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
7716         single-precision floats specially.
7717
7718 2010-07-27  Ira Rosen  <irar@il.ibm.com>
7719
7720         PR tree-optimization/44152
7721         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
7722         complex numbers for further check.
7723         (vect_supported_load_permutation_p): Check nodes with
7724         complex numbers.
7725
7726 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
7727
7728         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
7729         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
7730         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
7731         (LANG_HOOKS_INITIALIZER): Add new hooks.
7732         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
7733         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
7734         and complain_wrong_lang_p.  Update init_options prototype.
7735         * c-objc-common.c (c_initialize_diagnostics): First call
7736         c_common_initialize_diagnostics.
7737         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
7738         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
7739         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
7740         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
7741         (hook_uint_void_0): New.
7742         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
7743         (hook_uint_void_0): New.
7744         * opts-common.c (decode_cmdline_option,
7745         decode_cmdline_options_to_array): Also fill in canonical_option field.
7746         * opts.c (complain_wrong_lang): Use langhook to determine whether
7747         to complain instead of special-casing LTO.
7748         (decode_options): Separate lang_mask determination with
7749         option_lang_mask hook from call of init_options hook.
7750         * opts.h (struct cl_decoded_option): Add canonical_option.
7751
7752 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
7753
7754         PR tree-optimization/45083
7755         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
7756
7757 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7758
7759         * postreload.c (reload_combine_recognize_const_pattern): Move test
7760         for limiting the insn movement to the right scope.
7761
7762         PR rtl-optimization/45051
7763         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
7764         than reg_mentioned_p.
7765
7766 2010-07-26  Richard Henderson  <rth@redhat.com>
7767
7768         PR target/44132
7769         * tree-emutls.c: New file.
7770         * Makefile.in (OBJS-common): Add it.
7771         * tree-pass.h (pass_ipa_lower_emutls): Declare.
7772         * passes.c (init_optimization_passes): Add it.
7773
7774         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
7775         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
7776         * expr.c (emutls_var_address): Delete.
7777         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
7778         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
7779         (emutls_finish): Delete.
7780         * toplev.c (compile_file): Don't call it.
7781         * tree.h (emutls_decl): Delete.
7782         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
7783         (emutls_finish, emutls_finalize_control_var): Delete.
7784         (emutls_object_type): Move to tree-emutls.c.
7785         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
7786         default_emutls_var_fields, get_emutls_object_type,
7787         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
7788         default_emutls_var_init): Likewise.
7789         (get_variable_section): Don't special case emutls.
7790         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
7791         default_elf_select_section, default_unique_section,
7792         default_encode_section_info): Likewise.
7793         * varpool.c (decide_is_variable_needed): Likewise.
7794         * gimple-iterator.c (update_call_edge_frequencies): New
7795         (gsi_insert_on_edge_immediate): Use it.
7796         (gsi_insert_seq_on_edge_immediate): Likewise.
7797         (gsi_commit_one_edge_insert): Likewise.
7798
7799         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
7800         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
7801         (x86_64_elf_unique_section): Likewise.
7802
7803 2010-07-26  Jan Hubicka  <jh@suse.cz>
7804
7805         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
7806         GTY((skip)).
7807
7808 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
7809
7810         * target.def (output_source_filename): New hook.
7811         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
7812         * doc/tm.texi: Regenerate.
7813         * toplev.c (output_file_directive) Remove function.
7814         * toplev.h (output_file_directive) Remove.
7815         * output.h (default_asm_output_source_filename,
7816         output_file_directive): Declare.
7817         * varasm.h (default_asm_output_source_filename,
7818         output_file_directive): New functions.
7819
7820         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7821         * config/mips/mips-protos.h (mips_output_filename): Remove.
7822         * config/mips/mips.c (mips_output_filename): Make Static.
7823         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7824
7825 2010-07-26  Richard Guenther  <rguenther@suse.de>
7826
7827         PR tree-optimization/43784
7828         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
7829         if the destination is used by the call.
7830
7831 2010-07-26  Richard Guenther  <rguenther@suse.de>
7832
7833         PR middle-end/45073
7834         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
7835         SSA updating on being in SSA form.
7836
7837 2010-07-26  Richard Guenther  <rguenther@suse.de>
7838
7839         PR middle-end/45056
7840         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
7841
7842 2010-07-26  Richard Guenther  <rguenther@suse.de>
7843
7844         PR tree-optimization/45071
7845         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
7846         adjust op->opcode.
7847
7848 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
7849
7850         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
7851         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
7852         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
7853         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
7854         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
7855         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
7856         save_r31, return_r31, save_interrupt, return_interrupt,
7857         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
7858         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
7859         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
7860         new ABI requirements.
7861         (save_r6_r9, L_callt_save_r6_r9): Remove.
7862         * config/v850/predicates.md (even_reg_operand, disp23_operand,
7863         const_float_1_operand const_float_0_operand): New Predicates.
7864         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
7865         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
7866         * config/v850/t-v850: Update multilibs for new target variants.
7867         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
7868         * config/v850/t-v850e: Likewise.
7869         * config/v850/v850.c (v850_issue_rate): New.
7870         (v850_strict_argument_naming): New.
7871         (function_arg): Modify to generate a different ABI.
7872         (print_operand): Update case 'z' to support float modes.
7873         (output_move_single): Modify to generate appropriate and better
7874         assembly.
7875         (v850_float_z_comparison_operator, v850_select_cc_mode,
7876         v850_float_nz_comparison_operator,  v850_gen_float_compare,
7877         v850_gen_compare): New functions to support comparison of float values.
7878         (ep_memory_offset): Add support for V850E2 targets.
7879         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
7880         (INTERRUPT_REGPARM_NUM): Remove.
7881         (compute_register_save_size): Add extra case to save/restore long call.
7882         (use_prolog_function): New function to support prologue.
7883         (expand_prologue): Add support for V850E2 targets and modified
7884         as per the current ABI requirements.
7885         (expand_epilogue): Likewise.
7886         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
7887         (construct_save_jarl): Likewise.
7888         (construct_dispose_instruction): Update as per the current ABI
7889         requirements.
7890         (construct_prepare_instruction): Likewise.
7891         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
7892         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
7893         (CPP_SPEC): Updated to support v850e2 targets.
7894         (STRICT_ALIGNMENT): Modified.
7895         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
7896         (FIXED_REGISTERS): Likewise.
7897         (CALL_USED_REGISTERS): Likewise.
7898         (CONDITIONAL_REGISTER_USAGE): Updated.
7899         (HARD_REGNO_MODE_OK): Updated.
7900         (reg_class): Updated to add even registers.
7901         (REG_CLASS_NAMES): Likewise.
7902         (REG_CLASS_CONTENTS): Likewise.
7903         (REGNO_REG_CLASS): Updated for CC registers.
7904         (REG_CLASS_FROM_LETTER): Added support for even registers.
7905         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
7906         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
7907         ARG_POINTER_REGNUM): Updated.
7908         (FUNCTION_ARG_ADVANCE): Define.
7909         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
7910         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
7911         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
7912         (GO_IF_LEGITIMATE_ADDRESS): Updated.
7913         (SELECT_CC_MODE): Define.
7914         (REGISTER_NAMES): Updated to add psw and fcc registers.
7915         (ADDITIONAL_REGISTER_NAMES): Updated.
7916         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
7917         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
7918         * config/v850/v850.md (define_constants): Define new constants.
7919         (type): Update store,bit1,macc,div,fpu and single attributes.
7920         (cpu): New attribute.
7921         (cc): Add set_z attribute.
7922         (unsign23byte_load, sign23byte_load, unsign23hword_load,
7923         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
7924         23word_store): New instructions for 23-bit displacement load and store.
7925         (movqi_internal, movhi_internal): Update the attributes.
7926         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
7927         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
7928         the attributes.
7929         (v850_tst1): Modified using CC_REGNUM.
7930         (tstsi): Remove.
7931         (cmpsi): Modified as define_expand from define_insn.
7932         (cmpsi_insn, cmpsf, cmpdf): New instructions.
7933         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
7934         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
7935         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
7936         one_cmplsi2): Clobber the CC_REGNUM register.
7937         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
7938         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
7939         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
7940         (setf_insn, set_z_insn, set_nz_insn): New instructions for
7941         v850e2v3 target.
7942         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
7943         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
7944         targets.
7945         (sasf_1, sasf_2): Remove.
7946         (sasf): New instruction.
7947         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
7948         targets. CC_REGNUM register is clobbered and attributes are
7949         updated.
7950         (branch_z_normal, branch_z_invert, branch_nz_normal,
7951         branch_nz_invert): New branch related instructions.
7952         (jump): Updated the attributes.
7953         (switch): Update to support new targets. CC_REGNUM register is
7954         clobbered and attributes are updated.
7955         (call_internal_short, call_internal_long, call_value_internal_short,
7956         call_value_internal_long): Updated the attributes.
7957         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
7958         clobbered and attributes are updated.
7959         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
7960         Update to support new targets. CC_REGNUM register is clobbered.
7961         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
7962         instructions.
7963         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
7964         are updated.
7965         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
7966         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
7967         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
7968         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
7969         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
7970         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
7971         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
7972         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
7973         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
7974         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
7975         point instructions defined for V850e2v3 target.
7976         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
7977         Add support for V850E2 targets and CC_REGNUM register is clobbered.
7978         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
7979         support for new targets.
7980         * config/v850/v850-modes.def: New file.
7981         * config/v850/v850.opt(mstrict-align): Remove.
7982         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
7983         mv850e2v3): New command line options for V850.
7984         * config.gcc: Update the newly added files.
7985         * doc/invoke.texi: Update the newly added command line options for
7986         V850 target.
7987
7988 2010-07-26  Richard Guenther  <rguenther@suse.de>
7989
7990         PR tree-optimization/45052
7991         * ipa-pure-const.c (check_stmt): Check volatileness.
7992
7993 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
7994
7995         PR target/44707
7996         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
7997         * config/sparc/sparc.c: Include reload.h.
7998         (legitimize_tls_address): Rename into...
7999         (sparc_legitimize_tls_address): ...this.
8000         (legitimize_pic_address): Rename into...
8001         (sparc_legitimize_pic_address): ...this.
8002         (sparc_expand_move): Adjust to above renaming.
8003         (sparc_tls_referenced_p): Likewise.
8004         (sparc_legitimize_tls_address): Likewise.
8005         (sparc_legitimize_pic_address): Likewise.
8006         (sparc_legitimize_address): Likewise.
8007         (sparc_output_mi_thunk): Likewise.
8008         (sparc_legitimize_reload_address): New global function.  Recognize
8009         (lo_sum (high ...) ...) patterns generated by earlier passes.
8010         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8011
8012 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8013
8014         PR target/44484
8015         * config/sparc/predicates.md (memory_reg_operand): Delete.
8016         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8017         (*sync_compare_and_swap): Encode the address form in the pattern.
8018         (*sync_compare_and_swapdi_v8plus): Likewise.
8019
8020 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8021
8022         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8023         Streamline paragraph on compatibility with the system compiler.
8024
8025 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8026
8027         PR middle-end/45035
8028         * alias.c (true_dependence_1): Fix thinko in merge of old
8029         true_dependence and canon_true_dependence.
8030
8031 2010-07-23  Jan Hubicka  <jh@suse.cz>
8032
8033         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8034         references.
8035
8036 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8037
8038         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8039         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8040         and an unnecessary assignment.
8041         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8042         self-assign warning.
8043         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8044         unnecessary self-init.
8045
8046 2010-07-23  Richard Guenther  <rguenther@suse.de>
8047
8048         PR lto/43071
8049         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8050         for -flto and -fwhopr.
8051
8052 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8053
8054         PR target/41943
8055         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8056         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8057         * config.gcc (user_headers_inc_next_pre): New.
8058         (user_headers_inc_next_post): Likewise.
8059         (*-w64-mingw*): Use for float.h post-fixing, and for
8060         stddef.h/stdarg.h pre-fixing by include_next.
8061         * configure.ac (user_headers_inc_next_post): New.
8062         (user_headers_inc_next_pre): New.
8063         * configure: Regenerated.
8064
8065 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8066
8067         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8068         Set tga_func for Solaris 2/x86 resp. SPARC.
8069         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8070         (LIB_THREAD_LDFLAGS_SPEC): Define.
8071         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8072         * configure: Regenerate.
8073         * config.in: Regenerate.
8074         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8075         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8076         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8077         alternate thread libraries on Solaris 8.
8078         Document TLS patch requirements.
8079         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8080         Document tls.
8081
8082         PR target/18788
8083         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8084         -shared.
8085
8086 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8087
8088         * tree.h (struct tree_base): Add nameless_flag bitfield.
8089         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8090         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8091         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8092         DECL_ARTIFICIAL where needed.
8093         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8094         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8095         has DECL_NAMELESS set.
8096
8097 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8098
8099         PR tree-optimization/44915
8100         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8101         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8102         (analyze_function): Likewise.
8103
8104 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8105
8106         PR tree-optimization/44914
8107         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8108         changed, add purging dead eh edges.
8109         (ipa_sra_modify_function_body): Return true if CFG was changed,
8110         simplify purging dead eh edges.
8111         (modify_function): Return true if CFG was changed.
8112         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8113         was changed.
8114         (ipa_early_sra): Likewise.
8115
8116 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8117
8118         PR target/44290
8119         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8120         if "naked".
8121         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8122         false if ! tree_versionable_function_p.
8123
8124 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8125
8126         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8127         * ipa-pure-const.c (special_builtlin_state): Remove
8128         BUILT_IN_ARGS_INFO case.
8129         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8130         * builtins.c (expand_builtin): Likewise.
8131         (expand_builtin_args_info): Remove.
8132         * doc/tm.texi (__builtin_args_info): Remove.
8133         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8134         * doc/tm.text.in: Likewise.
8135
8136 2010-07-23  Richard Guenther  <rguenther@suse.de>
8137
8138         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8139         (lto_symtab_merge_decls_2): Likewise.
8140         * tree-ssa.c (useless_type_conversion_p): Likewise.
8141         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8142         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8143         (struct type_pair_d): Make same_p an array indexed by mode.
8144         Update comment.
8145         (lookup_type_pair): Update initialization.
8146         (struct sccs): Adjust same_p type.
8147         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8148         Adjust.
8149         (print_gimple_types_stats): Likewise.
8150         * gimple.h (enum gtc_mode): New.
8151         (gimple_types_compatible_p): Adjust prototype.
8152
8153 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8154
8155         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8156         again after processing insn.
8157
8158 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8159
8160         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8161         proper words when !tree_versionable_function_p.
8162
8163 2010-07-23  Richard Guenther  <rguenther@suse.de>
8164
8165         PR tree-optimization/45037
8166         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8167
8168 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8169
8170         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8171         Add MCORE instead.
8172
8173 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8174
8175         PR lto/44992
8176         * lto-opts.c (lto_write_options): Add NULL file_data argument to
8177         lto_get_section_name.
8178         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8179         * lto-streamer-out.c (produce_asm): Likewise.
8180         (copy_function): Likewise.
8181         (produce_symtab): Likewise.
8182         (produce_asm_for_decls): Likewise.
8183         * lto-streamer.c (lto_get_section_name): Add file_data argument.
8184         Rewrite to add random postfix to LTO sections.
8185         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8186         (lto_get_section_name): Add file_data argument to prototype.
8187
8188 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8189
8190         * lto-section-in.c (lto_section_name): Synchronize names
8191         with lto_get_section_name.
8192
8193 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8194
8195         * lto-opts.c (lto_read_file_options): Check for missing section.
8196
8197 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8198
8199         * ira.c (check_allocation): Correctly handle the case where an allocno
8200         with two objects was allocated to a single reg.
8201
8202 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
8203
8204         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
8205         (is_widening_mult_p): Likewise.
8206         (convert_to_widen): Use them.
8207         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
8208         well as integer ones.
8209
8210 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
8211
8212         * alias.c (true_dependence_1): New function, merged version of
8213         true_dependence and canon_true_dependence.
8214         (true_dependence): Simplify.
8215         (canon_true_dependence): Simplify.
8216
8217 2010-07-22  Richard Henderson  <rth@redhat.com>
8218
8219         PR target/45027
8220         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
8221         of V4SFmode for the SSE saves; increase stack alignment if needed.
8222         (ix86_gimplify_va_arg): Don't increase stack alignment here.
8223
8224 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
8225
8226         PR bootstrap/45028
8227         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
8228         call cprop_find_used_regs again via note_uses.
8229
8230 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8231
8232         * alias.c (get_alias_set): Fix formatting issues.
8233
8234 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
8235
8236         PR middle-end/44878
8237         * stmt.c (expand_value_return):  Call promote_function_mode with
8238         a for_return argument of 2 when returning by reference.
8239
8240 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
8241
8242         PR debug/45024
8243         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
8244         unit DIE if we can find the scope DIE.
8245
8246 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8247
8248         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
8249         changed.  Initialize OBJECT_SUBWORD.
8250         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
8251         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
8252         all callers changed.
8253         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
8254         (finish_allocno): Likewise.
8255         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
8256         (remove_low_level_allocnos): Likewise.
8257         (update_bad_spill_attribute): Likewise.
8258         (setup_min_max_allocno_live_range_point): Likewise.
8259         (sort_conflict_id_map): Likewise.
8260         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
8261         (ior_hard_reg_conflicts): New function.
8262         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
8263         (compress_conflict_vecs): Iterate over objects, not allocnos.
8264         (ira_add_live_range_to_object): New function.
8265         (object_range_compare_func): Renamed from allocno_range_compare_func.
8266         All callers changed.
8267         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
8268         subobjects, widen the min/max range of the lowest-order object to
8269         potentially include all other such low-order objects.
8270         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
8271         (check_allocation): Likewise.  Use more fine-grained tests for register
8272         conflicts.
8273         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
8274         allocno subobjects.
8275         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
8276         choices about which bits to set in each set.  Don't use
8277         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
8278         using the multiple sets we computed.
8279         (push_allocno_to_stack): Iterate over allocno subobjects.
8280         (all_conflicting_hard_regs_coalesced): New static function.
8281         (setup_allocno_available_regs_num): Use it.
8282         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
8283         subobjects.
8284         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
8285         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8286         by ALLOCNO_NUM_OBJECTS.
8287         (calculate_spill_cost): Likewise.
8288         (color_pass): Express if statement in a more normal way.
8289         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
8290         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
8291         (setup_slot_coalesced_allocno_live_ranges): Likewise.
8292         (allocno_reload_assign): Likewise.
8293         (ira_reassign_pseudos): Likewise.
8294         (fast_allocation): Likewise.
8295         * ira-conflicts.c (build_conflict_bit_table): Likewise.
8296         (print_allocno_conflicts): Likewise.
8297         (ira_build_conflicts): Likewise.
8298         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
8299         callers changed.  Test subword 0 of each allocno for conflicts.
8300         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
8301         callers changed.  Iterate over allocno subobjects.
8302         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
8303         * ira-int.h (struct ira_allocno): New member: num_objects.
8304         Rename object to objects and change it into an array.
8305         (ALLOCNO_OBJECT): Add new argument N.
8306         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
8307         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
8308         (ior_hard_reg_conflicts): Declare.
8309         (ira_add_live_range_to_object): Declare.
8310         (ira_allocno_object_iterator): New.
8311         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
8312         (FOR_EACH_ALLOCNO_OBJECT): New macro.
8313         * ira-lives.c (objects_live): Renamed from allocnos_live; all
8314         uses changed.
8315         (allocnos_processed): New sparseset.
8316         (make_object_born): Renamed from make_allocno_born; take an
8317         ira_object_t argument.  All callers changed.
8318         (make_object_dead): Renamed from make_allocno_dead; take an
8319         ira_object_t argument.  All callers changed.
8320         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
8321         All callers changed.
8322         (mark_pseudo_regno_live): Iterate over allocno subobjects.
8323         (mark_pseudo_regno_dead): Likewise.
8324         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
8325         functions.
8326         (mark_ref_live): Detect subword accesses and call
8327         mark_pseudo_regno_subword_live as appropriate.
8328         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
8329         (process_bb_nodes_live): Deal with object-related updates first; set
8330         and test bits in allocnos_processed to avoid computing allocno
8331         statistics more than once.
8332         (create_start_finish_chains): Iterate over objects, not allocnos.
8333         (print_object_live_ranges): New function.
8334         (print_allocno_live_ranges): Use it.
8335         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
8336         and objects_live.
8337
8338 2010-07-22  Richard Guenther  <rguenther@suse.de>
8339
8340         PR lto/42451
8341         * gimple.c (gtc_next_dfs_num): New global.
8342         (struct sccs): Make value a union, add integer same_p member.
8343         (gtc_visit): New function.
8344         (gimple_types_compatible_p_1): New function, split out from ...
8345         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
8346         (iterative_hash_gimple_type): Adjust for sccs change.
8347
8348 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8349
8350         PR tree-optimization/44891
8351         * tree-sra.c: Include gimple-pretty-print.h.
8352         (replace_uses_with_default_def_ssa_name): Renamed to
8353         get_repl_default_def_ssa_name, return the new SSA name instead of
8354         replacing the old one.
8355         (sra_modify_assign): Dump a message when removing a load, if the LHS
8356         is an SSA_NAME, do not do any propagation, just set the RHS to a
8357         default definition SSA NAME, type convert if necessary.
8358         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
8359
8360 2010-07-22  Richard Guenther  <rguenther@suse.de>
8361
8362         PR tree-optimization/45017
8363         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
8364         TYPE_PRECISION of integral types in addition to size.
8365
8366 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8367
8368         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
8369         when no C library is specified.
8370
8371 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8372
8373         * ipa-prop.h (struct ipa_node_params): Updated comment.
8374         (struct ipa_edge_args): Likewise.
8375         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
8376
8377 2010-07-22  Martin Jambor  <mjambor@suse.cz>
8378
8379         * cgraphunit.c (verify_edge_count_and_frequency): New function.
8380         (verify_cgraph_node): Verify frequencies of indirect edges.
8381         * tree-inline.c (tree_function_versioning): Update frequencies of
8382         indirect edges.
8383
8384 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8385
8386         PR target/43698
8387         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8388         Set *arm_rev to be predicable.
8389
8390 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8391
8392         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
8393         (LINK_COMMAND_SPEC_A): New.
8394         (DSYMUTIL): New.
8395         (DSYMUTIL_SPEC): New.
8396         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
8397         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
8398
8399 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
8400
8401         * calls.c (load_register_parameters): Move check for zero
8402         sized items so that only the call to
8403         mem_overlaps_already_clobbered_arg_p () is protected.
8404
8405 2010-07-22  Jan Hubicka  <jh@suse.cz>
8406
8407         * ipa-pure-const.c (varying_state): Break out from ...
8408         (get_function_state): ... here; always return varying_state
8409         when state would be NULL otherwise.
8410         (remove_node_data): Do not free varying state.
8411
8412 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8413
8414         PR bootstrap/44970
8415         PR middle-end/45009
8416         * postreload.c: Include "target.h".
8417         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
8418         into account.
8419         (fixup_debug_insns): Don't copy the rtx.
8420         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
8421         Don't copy when replacing.  Call fixup_debug_insns in the case where
8422         we merged one add with another.
8423         (reload_combine_recognize_pattern): Fail if there aren't any uses.
8424         Try harder to determine whether we're picking a valid index register.
8425         Don't set store_ruid for an insn we're going to scan in the
8426         next iteration.
8427         (reload_combine): Remove unused code.
8428         (reload_combine_note_use): When updating use information for
8429         an old insn, ignore a use that occurs after store_ruid.
8430         * Makefile.in (postreload.o): Update dependencies.
8431
8432         * function.c (record_hard_reg_sets): Restrict the previous change
8433         to cases where the incoming nominal mode is the same as the
8434         incoming promoted mode and everything happens in MODE_INT.
8435
8436 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8437
8438         PR debug/45015
8439         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
8440         ASM_OPERANDS_OUTPUT_IDX.
8441         (adjust_insn): For inline asm with multiple sets ensure first
8442         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
8443         the insn.
8444
8445 2010-07-21  Richard Henderson  <rth@redhat.com>
8446
8447         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
8448         comparison for avoiding xmm register saves.  Emit the xmm register
8449         saves explicitly.
8450         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
8451         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
8452         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
8453         Remove patterns and the associated splitters.
8454
8455 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
8456
8457         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
8458         and imagine parts of a complex, so that they can have the same
8459         base and fall into the same group.
8460
8461 2010-07-21  Richard Guenther  <rguenther@suse.de>
8462
8463         PR lto/45018
8464         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
8465         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
8466         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
8467
8468 2010-07-21  Martin Jambor  <mjambor@suse.cz>
8469
8470         PR tree-optimization/44900
8471         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
8472         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
8473
8474 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
8475
8476         PR middle-end/44738
8477         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
8478
8479 2010-07-21  Richard Guenther  <rguenther@suse.de>
8480
8481         PR middle-end/45013
8482         * tree-ssa.c (useless_type_conversion_p): Dispatch to
8483         gimple_types_compatible_p only when in lto.
8484         * gimple.c (gimple_types_compatible_p): Use canonical types
8485         to speed up comparison.
8486
8487 2010-07-21  Richard Guenther  <rguenther@suse.de>
8488
8489         * tree-flow.h (referenced_var): Move define ...
8490         * tree-flow-inline.h (referenced_var): ... here as an inline
8491         function.  Assert here ...
8492         * tree-dfa.c (referenced_var_lookup): ... instead of here.
8493         * tree-ssa.c (maybe_optimize_var): Check if the variable
8494         is in referenced vars.
8495         (execute_update_addresses_taken): Remove old broken check.
8496         * gimple-pretty-print.c (pp_points_to_solution): Use
8497         referenced_var_lookup.
8498         * tree-into-ssa.c (dump_decl_set): Likewise.
8499
8500 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
8501
8502         PR debug/45003
8503         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
8504         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
8505         ZERO_EXTEND here.
8506
8507 2010-07-20  Richard Henderson  <rth@redhat.com>
8508
8509         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
8510
8511 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
8512
8513         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
8514         computing the sum of the stack pointer and a large constant.
8515         * config/arm/constraints.md (M): Remove superfluous parentheses.
8516         (Pc): New constraint.
8517
8518 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
8519
8520         PR debug/45006
8521         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
8522         operand's type if exp is tcc_unary class tree.
8523
8524 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
8525
8526         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
8527         Reverse sense of if_then_else condition.
8528
8529 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
8530
8531         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
8532         * config/rs6000/rs6000.c (rs6000_override_options): Set
8533         rs6000_block_move_inline_limit appropriately.
8534         (expand_block_move): Use rs6000_block_move_inline_limit.
8535         * doc/invoke.texi (mblock-move-inline-limit): Document.
8536
8537 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
8538
8539         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
8540         FROM and TO.  All callers changed.  Don't look for tracked uses,
8541         just scan the RTL for DEBUG_INSNs and substitute.
8542         (reload_combine_recognize_pattern): Call fixup_debug_insns.
8543         (reload_combine): Ignore DEBUG_INSNs.
8544
8545 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
8546
8547         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
8548         depth to 8 from 5.
8549
8550         PR debug/45003
8551         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
8552         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
8553         instead of the result's type.
8554
8555 2010-07-20  Richard Guenther  <rguenther@suse.de>
8556
8557         PR tree-optimization/44977
8558         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
8559         SSA form.
8560
8561 2010-07-20  Richard Guenther  <rguenther@suse.de>
8562
8563         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
8564         (lto_symtab_merge_decls_2): Likewise.
8565         * gimple.h (gimple_types_compatible_p): Declare.
8566         * gimple.c (gimple_queue_type_fixup): Remove.
8567         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
8568         (gimple_compatible_complete_and_incomplete_type_p): New function.
8569         (gimple_types_compatible_p): Adjust.
8570         (gimple_register_type): Remove type fixup code.
8571         (print_gimple_types_stats): Adjust.
8572         (free_gimple_type_tables): Likewise.
8573         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
8574         * tree-ssa.c (useless_type_conversion_p): Likewise.
8575
8576 2010-07-20  Richard Guenther  <rguenther@suse.de>
8577
8578         PR middle-end/44971
8579         PR middle-end/44988
8580         * tree-ssa.c (maybe_optimize_var): New function split out from ...
8581         (execute_update_addresses_taken): ... here.
8582         (non_rewritable_mem_ref_base): Likewise.
8583         (execute_update_addresses_taken): Do not iterate over all referenced
8584         vars but just all local decls and parms.
8585         Properly check call and asm arguments and rewrite call arguments.
8586
8587 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
8588
8589         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
8590         to top level.
8591         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
8592         definitions ...
8593         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
8594         New macro.
8595         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
8596
8597 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
8598
8599         * gengtype.c (start_root_entry): New function, split out from
8600         write_root.  Check whether V is null and raise an error if so.
8601         (write_field_root): Check for V being null.  Don't raise an error here;
8602         set V to null instead.
8603         (write_root): Update comment above function.  Use start_root_entry.
8604
8605 2010-07-19  Xinliang David Li  <davidxl@google.com>
8606
8607         PR testsuite/44932
8608         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
8609         def edges.
8610         (find_uninit_use): Add dump.
8611         (is_use_properly_guarded): Ditto.
8612         (warn_uninitialized_phi): Ditto.
8613         (execute_late_warn_uninitialized): Ditto.
8614
8615 2010-07-19  Richard Guenther  <rguenther@suse.de>
8616
8617         PR middle-end/44941
8618         * expr.c (emit_block_move_hints): Move zero size check first.
8619         Move asserts to more useful places.
8620         * calls.c (load_register_parameters): Check for zero size.
8621
8622 2010-07-19  Richard Henderson  <rth@redhat.com>
8623
8624         * tree-optimize.c (execute_all_early_local_passes): New.  Change
8625         cgraph_state here ...
8626         (execute_early_local_optimizations): ... not here.  Remove.
8627         (pass_early_local_passes, pass_all_early_optimizations): Update.
8628
8629 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
8630
8631         * postreload.c (reload_combine_closest_single_use): Ignore the
8632         number of uses for DEBUG_INSNs.
8633         (fixup_debug_insns): New static function.
8634         (reload_combine_recognize_const_pattern): Use it.  Don't let the
8635         main loop be affected by DEBUG_INSNs.
8636         Really disallow moving adds past a jump insn.
8637         (reload_combine_recognize_pattern): Don't update use_ruid here.
8638         (reload_combine_note_use): Do it here.
8639         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
8640
8641 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
8642
8643         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
8644         of a loop.
8645         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
8646
8647 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
8648
8649         * config/i386/darwin.h: Define darwin_emit_branch_islands.
8650         (TARGET_MACHO_BRANCH_ISLANDS): New.
8651         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
8652         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
8653         default value.
8654         * config/i386/i386.c (output_pic_addr_const): Do not emit
8655         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
8656         (x86_output_mi_thunk): Adjust symbol creation.
8657         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
8658         Remove out of date comment.
8659         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
8660         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8661         (DARWIN_GENERATE_ISLANDS): Ditto.
8662         (output_call):  Do not emit branch islands unless
8663         darwin_emit_branch_islands is set.
8664         * config/darwin.c: Declare darwin_emit_branch_islands.
8665         (machopic_indirect_data_reference): Do not emit unless
8666         darwin_emit_branch_islands is set.
8667         (darwin_override_options): Set darwin_emit_branch_islands
8668         where it is needed.
8669         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
8670
8671 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8672
8673         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8674         sse_runtime, sse2_runtime.
8675
8676 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
8677
8678         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
8679         low half of a single-register SCmode return value before ORing
8680         it with the high half.
8681         * config/mips/mips16.S (MERGE_GPRf): Likewise.
8682
8683 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8684
8685         PR target/44805
8686         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
8687         on all targets.
8688
8689 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
8690
8691         PR target/42235
8692         * postreload.c (reload_cse_move2add): Return bool, true if anything.
8693         changed.  All callers changed.
8694         (move2add_use_add2_insn): Likewise.
8695         (move2add_use_add3_insn): Likewise.
8696         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
8697         reload_combine.
8698         (RELOAD_COMBINE_MAX_USES): Bump to 16.
8699         (last_jump_ruid): New static variable.
8700         (struct reg_use): New members CONTAINING_MEM and RUID.
8701         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
8702         (reload_combine_split_one_ruid, reload_combine_split_ruids,
8703         reload_combine_purge_insn_uses, reload_combine_closest_single_use
8704         reload_combine_purge_reg_uses_after_ruid,
8705         reload_combine_recognize_const_pattern): New static functions.
8706         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
8707         is true for our reg and that we have available index regs.
8708         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
8709         callers changed.  Use them to initialize fields in struct reg_use.
8710         (reload_combine): Initialize last_jump_ruid.  Be careful when to
8711         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
8712         Call reload_combine_recognize_const_pattern.
8713         (reload_combine_note_store): Update REAL_STORE_RUID field.
8714
8715 2010-07-16  Jason Merrill  <jason@redhat.com>
8716
8717         * Makefile.in (opts-common.o): Depend on options.h.
8718
8719 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
8720
8721         * tree.c (build_common_builtin_nodes): Use build_function_type_list
8722         instead of build_function_type.
8723         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8724         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8725
8726 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
8727
8728         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
8729         do all the work.
8730         (rs6000_emit_int_cmove): Use function pointers for insn generation.
8731         Don't force values into registers unnecessarily.
8732         (output_isel): Assert that we're not given conditions we can't handle.
8733         Delete corresponding code.
8734         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
8735         scc_comparison_operator constraint.  Permit 0 for the consequent
8736         operand.  Permit any GPR for the alternative operand.
8737         (isel_unsigned_<mode>): Likewise.
8738
8739 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
8740
8741         PR target/44942
8742         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
8743         argument to const_tree.
8744         * config/i386/i386.c (function_arg_advance): If padding needs to be
8745         inserted before argument, increment cum->words by number of padding
8746         words as well.
8747         (contains_aligned_value_p): Change argument to const_tree.
8748         (ix86_function_arg_boundary): Change second argument to const_tree.
8749
8750 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
8751
8752         PR target/42235
8753         * function.c (record_hard_reg_sets): New static function.
8754         (assign_parm_setup_reg): If an optab for extending exists and the
8755         generated code clobbbers no hard regs, emit the insn directly and
8756         create a REG_EQUIV note.
8757
8758 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8759
8760         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
8761         TREE_CHAIN.
8762         * c-typeck.c (push_init_level): Likewise.
8763         (process_init_element): Likewise.
8764
8765 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
8766
8767         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
8768         (integer_three_node): Add.
8769         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
8770         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
8771         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
8772         of call build_int_cst.
8773         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
8774         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
8775         (find_interesting_uses_address): Ditto.
8776         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
8777         * tree-eh.c (lower_eh_constructs_2): Ditto.
8778         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
8779         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
8780         * expmed.c (expand_divmod): Ditto.
8781         * tree-mudflap.c (mx_register_decls): Ditto.
8782         * varasm.c (array_size_for_constructor): Ditto.
8783         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8784         * c-parser.c (c_parser_postfix_expression): Ditto.
8785
8786 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8787
8788         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
8789         New static variables.
8790         (reload_combine_recognize_pattern): New static function, broken out
8791         of reload_combine.
8792         (reload_combine): Use it.  Only initialize first_index_reg and
8793         last_index_reg once.
8794
8795 2010-07-15  Richard Henderson  <rth@redhat.com>
8796
8797         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
8798         when done.
8799
8800 2010-07-15  Jan Hubicka  <jh@suse.cz>
8801
8802         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
8803         comdats for broken gold.
8804         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
8805
8806 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8807
8808         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
8809
8810 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
8811
8812         * tree.h (DECL_CHAIN): Define.
8813         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
8814         * c-decl.c: Likewise.
8815         * c-parser.c: Likewise.
8816         * c-typeck.c: Likewise.
8817         * cfgexpand.c: Likewise.
8818         * cgraph.c: Likewise.
8819         * cgraphunit.c: Likewise.
8820         * combine.c: Likewise.
8821         * config/alpha/alpha.c: Likewise.
8822         * config/arm/arm.c: Likewise.
8823         * config/frv/frv.c: Likewise.
8824         * config/i386/i386.c: Likewise.
8825         * config/i386/winnt-cxx.c: Likewise.
8826         * config/ia64/ia64.c: Likewise.
8827         * config/iq2000/iq2000.c: Likewise.
8828         * config/mep/mep.c: Likewise.
8829         * config/mips/mips.c: Likewise.
8830         * config/pa/som.h: Likewise.
8831         * config/rs6000/rs6000.c: Likewise.
8832         * config/s390/s390.c: Likewise.
8833         * config/sh/sh.c: Likewise.
8834         * config/sh/symbian-cxx.c: Likewise.
8835         * config/sparc/sparc.c: Likewise.
8836         * config/spu/spu.c: Likewise.
8837         * config/stormy16/stormy16.c: Likewise.
8838         * config/vxworks.c: Likewise.
8839         * config/xtensa/xtensa.c: Likewise.
8840         * coverage.c: Likewise.
8841         * dbxout.c: Likewise.
8842         * dwarf2out.c: Likewise.
8843         * emit-rtl.c: Likewise.
8844         * expr.c: Likewise.
8845         * function.c: Likewise.
8846         * gimple-low.c: Likewise.
8847         * gimple-pretty-print.c: Likewise.
8848         * gimplify.c: Likewise.
8849         * integrate.c: Likewise.
8850         * ipa-inline.c: Likewise.
8851         * ipa-prop.c: Likewise.
8852         * ipa-split.c: Likewise.
8853         * ipa-struct-reorg.c: Likewise.
8854         * ipa-type-escape.c: Likewise.
8855         * langhooks.c: Likewise.
8856         * lto-cgraph.c: Likewise.
8857         * omp-low.c: Likewise.
8858         * stor-layout.c: Likewise.
8859         * tree-cfg.c: Likewise.
8860         * tree-complex.c: Likewise.
8861         * tree-dfa.c: Likewise.
8862         * tree-dump.c: Likewise.
8863         * tree-inline.c: Likewise.
8864         * tree-mudflap.c: Likewise.
8865         * tree-nested.c: Likewise.
8866         * tree-object-size.c: Likewise.
8867         * tree-pretty-print.c: Likewise.
8868         * tree-sra.c: Likewise.
8869         * tree-ssa-live.c: Likewise.
8870         * tree-ssa-loop-niter.c: Likewise.
8871         * tree-ssa-math-opts.c: Likewise.
8872         * tree-ssa-reassoc.c: Likewise.
8873         * tree-ssa-sccvn.c: Likewise.
8874         * tree-ssa-structalias.c: Likewise.
8875         * tree-tailcall.c: Likewise.
8876         * tree-vrp.c: Likewise.
8877         * tree.c: Likewise.
8878         * var-tracking.c: Likewise.
8879         * varasm.c: Likewise.
8880
8881 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8882
8883         PR target/44877
8884         * config/spu/spu.c (spu_expand_builtin_1): Allow references
8885         (as well as pointers) as argument to mask_for_load builtins.
8886
8887 2010-07-15  Richard Guenther  <rguenther@suse.de>
8888
8889         PR tree-optimization/44946
8890         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
8891         with accessing only padding properly.
8892
8893 2010-07-15  Jan Hubicka  <jh@suse.cz>
8894
8895         * ipa.c (function_and_variable_visibility): Variables marked as used
8896         should not be localized.
8897
8898 2010-07-15  Jan Hubicka  <jh@suse.cz>
8899
8900         * cgraph.c: Include lto-streamer.h
8901         (change_decl_assembler_name): Work when assembler name hash is at place.
8902         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
8903         be sure to rename it to avoid name clash.
8904         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
8905         Localize hidden symbols only when locally defined.
8906
8907 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
8908
8909         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
8910
8911 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
8912             Kevin F. Quinn  <kevquinn@gentoo.org>
8913
8914         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
8915         * common.opt: Add -Wtrampolines.
8916         * doc/invoke.texi: Add -Wtrampolines.
8917
8918 2010-07-15  Jie Zhang  <jie@codesourcery.com>
8919
8920         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
8921         cortex_a8_issue_ls.
8922
8923 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
8924
8925         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
8926         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
8927
8928 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8929
8930         * config/spu/spu.c (reg_names): Remove prototype.
8931         (call_used_regs): Likewise.
8932
8933 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
8934
8935         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
8936         "unused" with attribute "used".
8937         (__JCR_END__): Likewise.
8938         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
8939         "used" attribute.
8940         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
8941
8942 2010-07-14  Richard Guenther  <rguenther@suse.de>
8943
8944         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
8945         (maybe_fixup_decls): Likewise.
8946         (input_gimple_stmt): Do not fixup anything.
8947         * lto-streamer-out.c (output_gimple_stmt): Make sure all
8948         non-automatic variable uses are wrapped inside a MEM_REF.
8949
8950 2010-07-14  Richard Henderson  <rth@redhat.com>
8951
8952         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
8953         for functions.
8954         * varasm.c (assemble_variable): Remove early exit for functions;
8955         assert that we're given a variable.
8956
8957 2010-07-14  Jie Zhang  <jie@codesourcery.com>
8958
8959         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
8960         cortex_a8_default when neon_type is not none.
8961
8962 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8963
8964         * lower-subreg.c (subreg_context): New static bitmap.
8965         (decompose_multiword_subregs): Allocate and free it.
8966         (find_decomposable_subregs): Set a bit in it for a register that
8967         occurs in a subreg that changes mode but not size.
8968         (can_decompose_p): Test it instead of non_decomposable_context.
8969
8970 2010-07-14  Richard Guenther  <rguenther@suse.de>
8971
8972         PR tree-optimization/44824
8973         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
8974         is_gimple_mem_ref_addr.
8975         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
8976         non-decl_address_invariant_p addresses.
8977
8978 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8979
8980         * reload.c (find_reloads): Revert code to penalize small register
8981         classes that was brought in with the IRA merge.
8982
8983 2010-07-14  Richard Guenther  <rguenther@suse.de>
8984
8985         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
8986         as base of ARRAY_REFs.
8987
8988 2010-07-14  Richard Guenther  <rguenther@suse.de>
8989
8990         PR middle-end/44930
8991         * tree-pretty-print.c (do_niy): Do not print a newline.
8992
8993 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8994
8995         * ira-int.h (struct ira_object): New.
8996         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
8997         (struct ira_allocno): Remove members min, max,
8998         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
8999         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9000         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9001         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9002         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9003         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9004         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9005         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9006         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9007         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9008         an ira_object_t rather than ira_allocno_t.  All uses changed.
9009         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9010         contains a vector of ira_object_t; all uses changed.
9011         (ira_objects_num): Declare variable.
9012         (ira_create_allocno_object): Declare function.
9013         (ira_conflict_vector_profitable_p): Adjust prototype.
9014         (ira_allocate_conflict_vec): Renamed from
9015         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9016         (ira_allocate_object_conflicts): Renamed from
9017         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9018         (struct ira_object_iterator): New.
9019         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9020         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9021         to conflict_vec_p.  All uses changed.
9022         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9023         Changed to take into account that conflicts are now tracked for
9024         objects.
9025         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9026         Args changed to accept ira_object_t.  All uses changed.
9027         (allocnos_conflict_p): New static function.
9028         (collected_conflict_objects): Renamed from collected_allocno_objects;
9029         now a vector of ira_object_t.  All uses changed.
9030         (build_conflict_bit_table): Changed to take into account that
9031         conflicts are now tracked for objects.
9032         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9033         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9034         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9035         setup_allocno_left_conflicts_size, allocno_reload_assign,
9036         fast_allocation): Likewise.
9037         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9038         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9039         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9040         Likewise.
9041         * ira-build.c (ira_objects_num): New variable.
9042         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9043         contains a vector of ira_object_t; all uses changed.
9044         (ira_object_id_map_vec): Corresponding change.
9045         (object_pool): New static variable.
9046         (initiate_allocnos): Initialize it.
9047         (finish_allocnos): Free it.
9048         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9049         New functions.
9050         (ira_create_allocno): Don't set members that were removed.
9051         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9052         (merge_hard_reg_conflicts): Changed to take into account that
9053         conflicts are now tracked for objects.
9054         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9055         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9056         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9057         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9058         setup_min_max_conflict_allocno_ids, ):  Likewise.
9059         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9060         to ira_object_t; all callers changed.
9061         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9062         to ira_object_t, all callers changed.
9063         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9064         to ira_object_t, all callers changed.
9065         (conflict_check, curr_conflict_check_tick): Renamed from
9066         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9067         changed.
9068         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9069         arg changed to ira_object_t, all callers changed.
9070         (create_cap_allocno): Call ira_create_allocno_object.
9071         (finish_allocno): Free the corresponding object.
9072         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9073         callers changed.  Adjusted for dealing with objects.
9074         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9075         dealing with objects.
9076         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9077
9078         * ira-int.h (struct live_range): Rename allocno member to object
9079         and change type to ira_object_t.
9080         (struct ira_object): New member live_ranges.
9081         (struct ira_allocno): Remove member live_ranges.
9082         (ALLOCNO_LIVE_RANGES): Remove.
9083         (OBJECT_LIVE_RANGES): New macro.
9084         (ira_create_live_range, ira_copy_live_range_list,
9085         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9086         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9087         * ira-build.c (ira_create_object): Initialize live ranges here.
9088         (ira_create_allocno): Not here.
9089         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9090         changed to ira_object_t, all callers changed.
9091         (copy_live_range): Rename from copy_allocno_live_range, all callers
9092         changed.
9093         (ira_copy_live_range_list): Rename from
9094         ira_copy_allocno_live_range_list, all callers changed.
9095         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9096         all callers changed.
9097         (ira_live_ranges_intersect_p): Rename from
9098         ira_allocno_live_ranges_intersect_p, all callers changed.
9099         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9100         callers changed.
9101         (ira_finish_live_range_list): Rename from
9102         ira_finish_allocno_live_range_list, all callers changed.
9103         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9104         last arg changed to ira_object_t, all callers changed.
9105         (finish_allocno): Changed to expect live ranges in the allocno's object.
9106         (move_allocno_live_ranges, copy_allocno_live_ranges,
9107         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9108         ira_flattening, ira_build): Likewise.
9109         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9110         slot_coalesced_allocno_live_ranges_intersect,
9111         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9112         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9113         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9114         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9115         make_allocno_dead, create_start_finish_chains,
9116         remove_some_program_points_and_update_live_ranges,
9117         ira_debug_live_range_list): Likewise.
9118
9119         * ira-int.h (ira_object_conflict_iterator): Rename from
9120         ira_allocno_conflict_iterator.
9121         (ira_object_conflict_iter_init): Rename from
9122         ira_allocno_conflict_iter_init, second arg changed to
9123         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9124         FOR_EACH_ALLOCNO_CONFLICT.
9125         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9126         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9127         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9128         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9129
9130 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9131
9132         PR other/44874
9133         * tree-dump.c (dump_options): Add enumerate_locals entry.
9134         Add TDF_NOID exclusion to all entry.
9135         * tree-dump.h (dump_enumerated_decls): Declare.
9136         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9137         Don't display type uid.
9138         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9139         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9140         * tree-ssa-live.c: Include gimple.h.
9141         (numbered_tree_d): New struct.
9142         (numbered_tree): New typedef.
9143         (DEF_VEC_O (numbered_tree): New.
9144         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9145         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9146         (dump_enumerated_decls): Likewise.
9147         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9148         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9149         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9150         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9151
9152 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9153
9154         * expmed.h (MAX_BITS_PER_WORD): Move to...
9155         * defaults.h (MAX_BITS_PER_WORD): ...here.
9156
9157 2010-07-13  DJ Delorie  <dj@redhat.com>
9158
9159         * config/h8300/h8300.c (h8300_init_once): Default to
9160         -fstrict_volatile_bitfields.
9161
9162         * config/sh/sh.c (sh_override_options): Default to
9163         -fstrict_volatile_bitfields.
9164
9165         * config/rx/rx.c (rx_option_override): New.
9166
9167         * config/m32c/m32c.c (m32c_override_options): Default to
9168         -fstrict_volatile_bitfields.
9169
9170 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9171
9172         * tree.h (build_function_call_expr): Delete.
9173         (build_call_expr_loc_array): New function.
9174         (build_call_expr_loc_vec): New function.
9175         * tree-flow.h (struct omp_region): Change type of ws_args field
9176         to a VEC.
9177         * builtins.c (build_function_call_expr): Delete.
9178         (build_call_expr_loc_array): New function.
9179         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
9180         (build_call_expr): Likewise.
9181         (build_call_expr_loc_vec): New function.
9182         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9183         build_function_call_expr.
9184         * expr.c (emutls_var_address): Likewise.
9185         * varasm.c (emutls_common_1): Likewise.
9186         * omp-low.c (expand_omp_atomic_mutex): Likewise.
9187         (expand_omp_taskreg): Adjust for new type of region->ws_args.
9188         (get_ws_args_for): Return a VEC instead of a tree.
9189         (expand_parallel_call): Call build_call_expr_loc_vec instead of
9190         build_function_call_expr.
9191         * stor-layout.c (self_referential_size): Likewise.
9192
9193 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9194
9195         PR testsuite/44701
9196         * recog.c (constrain_operands): Allow side-effects in memory
9197         operands if either < or > constraint is used, rather than if
9198         both < and > is used.
9199
9200 2010-07-13  Richard Guenther  <rguenther@suse.de>
9201
9202         PR middle-end/44911
9203         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
9204         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
9205         without name.
9206
9207 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9208
9209         PR target/44761
9210         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
9211         to variable emited.
9212         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
9213         * config/sh/sh.md (symGOT_load): Likewise.
9214         (symDTPOFF2reg): Likewise.
9215         (symTPOFF2reg): Likewise.
9216
9217 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9218
9219         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
9220         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
9221
9222 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9223
9224         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
9225         explanation.
9226         Find ucontext_t * on Solaris 11.
9227         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
9228         Handle new Solaris 11 __sighndlr patterns.
9229
9230 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9231
9232         PR debug/44901
9233         * vec.h (VEC_block_remove): Fix comment.
9234         * tree-ssa-live.c (remove_unused_locals): Don't use
9235         VEC_unordered_remove on local_decls, instead replace a single
9236         vector element in each iteration if at least one element had
9237         to be removed and VEC_truncate at the end.
9238         * omp-low.c (expand_omp_taskreg): Likewise.
9239
9240 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9241
9242         * c-decl.c (finish_function): Fix typo in comment.
9243
9244 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
9245
9246         PR bootstrap/44921
9247         * postreload.c (move2add_use_add3_insn): Silence gcc warning
9248         on min_regno.
9249
9250 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
9251
9252         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
9253         (simplify_stmt_using_ranges): Use it.
9254
9255 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9256
9257         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
9258         member.  Do not mark as GTY(()).
9259         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
9260         (spu_builtin_decls): New static variable.
9261         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
9262         (spu_init_builtins): Likewise.
9263         (spu_builtin_mul_widen_even): Likewise.
9264         (spu_builtin_mul_widen_odd): Likewise.
9265         (spu_builtin_mask_for_load): Likewise.
9266         (spu_builtin_vec_perm): Likewise.
9267         * config/spu/spu-c.c: Include "target.h".
9268         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
9269         of using spu_builtins[].fndecl.
9270
9271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9272
9273         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
9274         imply -minterlink-mips16.
9275
9276 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9277
9278         * config/mips/mips.h (mips16_globals): Declare.
9279         (SWITCHABLE_TARGET): Define.
9280         * config/mips/mips.c: Include target-globals.h.
9281         (mips16_globals): New variable.
9282         (mips_set_mips16_mode): Use save_target_globals and
9283         restore_target_globals instead of target_reinit.
9284
9285 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9286
9287         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
9288         to say that the function can be called more than once.
9289         * target-globals.c (save_target_globals): Call init_reg_sets.
9290
9291 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9292
9293         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
9294         * bb-reorder.h: New file.
9295         * bb-reorder.c (default_target_bb_reorder): New variable.
9296         (this_target_bb_reorder): New conditional variable.
9297         (uncond_jump_length): Redefine as a macro.
9298         * target-globals.h (this_target_bb_reorder): Declare.
9299         (target_globals): Add a bb_reorder field.
9300         (restore_target_globals): Copy the bb_reorder field to
9301         this_target_bb-reorder.
9302         * target-globals.c: Include bb-reorder.h.
9303         (default_target_globals): Initialize the bb_reorder field.
9304         (save_target_globals): Likewise.
9305
9306 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9307
9308         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
9309         * gcse.h: New file.
9310         * gcse.c: Include gcse.h.
9311         (default_target_gcse): New variable.
9312         (this_target_gcse): New conditional variable.
9313         (can_copy): Redefine as a macro.
9314         (can_copy_init_p): New macro.
9315         (can_copy_p): Remove can_copy_init_p.
9316         * target-globals.h (this_target_gcse): Declare.
9317         (target_globals): Add a gcse field.
9318         (restore_target_globals): Copy the gcse field to this_target_gcse.
9319         * target-globals.c: Include gcse.h.
9320         (default_target_globals): Initialize the gcse field.
9321         (save_target_globals): Likewise.
9322
9323 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9324
9325         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
9326         and x_ira_prohibited_mode_move_regs_initialized_p.
9327         (ira_prohibited_mode_move_regs): Redefine as a macro.
9328         * ira.c (ira_prohibited_mode_move_regs): Delete.
9329         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
9330
9331 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9332
9333         * reload.h (target_reload): Add x_cached_reg_save_code and
9334         x_cached_reg_restore_code.
9335         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
9336         Redefine as macros.
9337
9338 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9339
9340         * Makefile.in (target-globals.o): Depend on builtins.h.
9341         * builtins.h: New file.
9342         * builtins.c: Include builtins.h.
9343         (default_target_builtins): New variable.
9344         (this_target_builtins): New conditional variable.
9345         (apply_args_mode, apply_result_mode): Redefine as macros.
9346         * target-globals.h (this_target_builtins): Declare.
9347         (target_globals): Add a builtins field.
9348         (restore_target_globals): Copy the builtins field to
9349         this_target_builtins.
9350         * target-globals.c: Include builtins.h.
9351         (default_target_globals): Initialize the builtins field.
9352         (save_target_globals): Likewise.
9353
9354 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9355
9356         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
9357         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
9358         from expmed.c.
9359         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
9360         (alg_hash, alg_hash_used_p): New macros.
9361         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
9362         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
9363         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
9364
9365 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9366
9367         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
9368         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
9369         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
9370         (this_op_costs, costs_classes): Redefine as macros.
9371         (record_reg_classes): Don't take op_costs as a parameter.
9372         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
9373         (scan_one_insn): Update call to record_operand_costs.
9374
9375 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9376
9377         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
9378         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
9379         (target_ira_int): New structure.
9380         (default_target_ira_int): Declare.
9381         (this_target_ira_int): Declare as a variable or define as a macro.
9382         (ira_reg_mode_hard_regset, ira_register_move_cost)
9383         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
9384         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
9385         (prohibited_class_mode_regs, ira_important_classes_num)
9386         (ira_important_classes, ira_reg_class_intersect)
9387         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
9388         (ira_reg_class_union): Redefine as macros.
9389         * ira.h (target_ira): New structure.
9390         (default_target_ira): Declare.
9391         (this_target_ira): Declare as a variable or define as a macro.
9392         (ira_available_class_regs, ira_hard_regno_cover_class)
9393         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
9394         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
9395         (ira_class_hard_regs_num): Redefine as macros.
9396         * ira.c (default_target_ira, default_target_ira_int): New variables.
9397         (this_target_ira, this_target_ira_int): New conditional variables.
9398         (ira_reg_mode_hard_regset, ira_memory_move_cost)
9399         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
9400         (ira_class_subset_p): Delete.
9401         (no_unit_alloc_regs): Redefine as a macro.
9402         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
9403         (ira_class_hard_regs_num, ira_class_hard_reg_index)
9404         (ira_available_class_regs): Delete.
9405         (alloc_reg_class_subclasses): Redefine as a macro.
9406         (ira_reg_class_cover_size, ira_reg_class_cover)
9407         (ira_important_classes_num, ira_important_classes)
9408         (ira_important_class_nums, ira_class_translate): Delete.
9409         (cover_class_order): Document the variable's lifetime.
9410         (reorder_important_classes): Don't set ira_important_class_nums.
9411         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
9412         (ira_reg_class_super_classes, ira_reg_class_union)
9413         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
9414         Delete.
9415         (setup_reg_class_nregs): Don't set ira_max_regs.
9416         (prohibited_class_mode_regs): Delete.
9417         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
9418         (target_globals): Add ira and ira_int fields.
9419         (restore_target_globals): Copy the ira field to this_target_ira
9420         and the ira_int field to this_target_ira_int.
9421         * target-globals.c: Include ira-int.h.
9422         (default_target_globals): Initialize the ira and ira_int fields.
9423         (save_target_globals): Likewise.
9424
9425 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9426
9427         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
9428         * cfgloop.h (target_cfgloop): New structure.
9429         (default_target_cfgloop): Declare.
9430         (this_target_cfgloop): Declare as a variable or define as a macro.
9431         (target_avail_regs, target_clobbered_regs, target_res_regs)
9432         (target_reg_cost, target_spill_cost): Redefine as macros.
9433         * cfgloopanal.c (default_target_cfgloop): New variable.
9434         (this_target_cfgloop): New conditional variable.
9435         (target_avail_regs, target_clobbered_regs, target_res_regs)
9436         (target_reg_cost, target_spill_cost): Delete.
9437         * target-globals.h (this_target_cfgloop): Declare.
9438         (target_globals): Add a cfgloop field.
9439         (restore_target_globals): Copy the cfgloop field to
9440         this_target_cfgloop.
9441         * target-globals.c: Include cfgloop.h.
9442         (default_target_globals): Initialize the cfgloop field.
9443         (save_target_globals): Likewise.
9444
9445 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9446
9447         * regs.h (target_regs): Add x_direct_load, x_direct_store and
9448         x_float_extend_from_mem.
9449         (direct_load, direct_store, float_extend_from_mem): New macros.
9450         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
9451
9452 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9453
9454         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
9455         (target-globals.o): Depend on $(LIBFUNCS_H).
9456         * libfuncs.h: Include hashtab.h.
9457         (libfunc_entry): Moved from optabs.c.
9458         (target_libfuncs): New structure.
9459         (default_target_libfuncs): Declare.
9460         (this_target_libfuncs): Declare as a variable or define as a macro.
9461         (libfunc_table): Redefine as a macro.
9462         * optabs.c (default_target_libfuncs): New variable.
9463         (this_target_libfuncs): New conditional variable.
9464         (libfunc_table): Delete.
9465         (libfunc_entry): Moved to optabs.h.
9466         (libfunc_hash): Redefine as a macro.
9467         (hash_libfunc, eq_libfunc): Fix comments.
9468         (init_optabs): Use libfunc_hash to detect cases where the function
9469         has already been called.  Clear the hash table instead of
9470         recreating it.
9471         * target-globals.h (this_target_libfuncs): Declare.
9472         (target_globals): Add a libfuncs field.
9473         (restore_target_globals): Copy the libfuncs field to
9474         this_target_libfuncs.
9475         * target-globals.c: Include libfuncs.h.
9476         (default_target_globals): Initialize the libfuncs field.
9477         (save_target_globals): Likewise.
9478
9479 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9480
9481         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
9482         in all dependency lists.
9483
9484 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9485
9486         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
9487         * optabs.h (target_optabs): New structure.
9488         (default_target_optabs): Declare.
9489         (this_target_optabs): Declare as a variable or define as a macro.
9490         (optab_table, convert_optab_table, direct_optab_table): Redefine
9491         as macros.
9492         * optabs.c (default_target_optabs): New variable.
9493         (this_target_optabs): New conditional variable.
9494         (optab_table, convert_optab_table, direct_optab_table): Delete.
9495         * target-globals.h (this_target_optabs): Declare.
9496         (target_globals): Add a optabs field.
9497         (restore_target_globals): Copy the optabs field to
9498         this_target_optabs.
9499         * target-globals.c: Include expr.h and optabs.h.
9500         (default_target_globals): Initialize the optabs field.
9501         (save_target_globals): Likewise.
9502
9503 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9504
9505         * flags.h (target_flagstate): Add x_flag_excess_precision.
9506         (flag_excess_precision): Redefine as a macro.
9507         * toplev.c (flag_excess_precision): Delete.
9508
9509 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9510
9511         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
9512         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
9513         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
9514         (no_caller_save_reg_set): Redefine as a macro.
9515         * reload.h (target_reload): Add x_caller_save_initialized_p and
9516         x_regno_save_mode.
9517         (caller_save_initialized_p): Redefine as a macro.
9518         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
9519         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
9520         (regno_save_mode): Redefine as a macro.
9521
9522 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9523
9524         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
9525         * expmed.h: New file.
9526         * expmed.c (default_target_costs): New variable.
9527         (this_target_costs): New conditional variable.
9528         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
9529         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
9530         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
9531         * target-globals.h (this_target_expmed): Declare.
9532         (target_globals): Add a expmed field.
9533         (restore_target_globals): Copy the expmed field to
9534         this_target_expmed.
9535         * target-globals.c: Include expmed.h.
9536         (default_target_globals): Initialize the expmed field.
9537         (save_target_globals): Likewise.
9538
9539 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9540
9541         * Makefile.in (target-globals.o): Depend on reload.h.
9542         * reload.h (target_reload): New structure.
9543         (default_target_reload): Declare.
9544         (this_target_reload): Declare as a variable or define as a macro.
9545         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
9546         * reload1.c (default_target_reload): New variable
9547         (this_target_reload): New conditional variable.
9548         (indirect_symref_ok, double_reg_address_ok): Delete.
9549         (spill_indirect_levels): Redefine as a macro.
9550         * target-globals.h (this_target_reload): Declare.
9551         (target_globals): Add a reload field.
9552         (restore_target_globals): Copy the reload field to
9553         this_target_reload.
9554         * target-globals.c: Include hard-reg-set.h.
9555         (default_target_globals): Initialize the reload field.
9556         (save_target_globals): Likewise.
9557
9558 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9559
9560         * rtl.h (target_rtl): Add x_static_reg_base_value.
9561         * alias.c (static_reg_base_value): Redefine as a macro.
9562
9563 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9564
9565         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
9566         (GTFILES): Remove reginfo.c.
9567         * rtl.h (target_rtl): Add x_top_of_stack.
9568         (top_of_stack): New macro.
9569         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
9570         (top_of_stack): Delete.
9571
9572 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9573
9574         * regs.h (target_regs): Add x_hard_regs_of_mode,
9575         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
9576         x_may_move_out_cost and x_last_mode_for_init_move_cost.
9577         (have_regs_of_mode, contains_reg_of_mode, move_cost)
9578         (may_move_in_cost, may_move_out_cost): Redefine as macros.
9579         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
9580         (may_move_in_cost, may_move_out_cost): Delete.
9581         (last_mode_for_init_move_cost): Redefine as a macro.
9582
9583 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9584
9585         * hard-reg-set.h (target_hard_regs): New structure.
9586         (default_target_hard_regs): Declare.
9587         (this_target_hard_regs): Declare as a variable or define as a macro.
9588         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
9589         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
9590         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
9591         (reg_class_size, reg_class_subclasses, reg_class_subunion)
9592         (reg_class_superunion, reg_names): Redefine as macros.
9593         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
9594         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
9595         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
9596         (reg_class_contents, reg_class_size, reg_class_subclasses)
9597         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
9598         (default_target_hard_regs): New variable
9599         (this_target_hard_regs, initial_call_really_used_regs)
9600         (initial_reg_alloc_order): New conditional variables.
9601         (initial_reg_names): New variable.
9602         (init_reg_sets): Assert that initial_call_really_used_regs,
9603         initial_reg_alloc_order and initial_reg_names
9604         are all the same size as their variable counterparts.  Use them to
9605         initialize those counterparts.
9606         * target-globals.h (this_target_hard_regs): Declare.
9607         (target_globals): Add a hard_regs field.
9608         (restore_target_globals): Copy the hard_regs field to
9609         this_target_hard_regs.
9610         * target-globals.c: Include hard-reg-set.h.
9611         (default_target_globals): Initialize the hard_regs field.
9612         (save_target_globals): Likewise.
9613
9614 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9615
9616         * Makefile.in (target-globals.o): Depend on $(RTL_H).
9617         * rtl.h (target_rtl): New structure.
9618         (default_target_rtl): Declare.
9619         (this_target_rtl): Declare as a variable or define as a macro.
9620         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
9621         Redefine as macros.
9622         * emit-rtl.c (default_target_rtl): New variable.
9623         (this_target_rtl): New conditional variable.
9624         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
9625         (return_address_pointer_rtx): Delete.
9626         (initial_regno_reg_rtx): New macro.
9627         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
9628         (init_emit_regs): Likewise.
9629         * target-globals.h (this_target_rtl): Declare.
9630         (target_globals): Add a rtl field.
9631         (restore_target_globals): Copy the rtl field to this_target_rtl.
9632         * target-globals.c: Include rtl.h.
9633         (default_target_globals): Initialize the rtl field.
9634         (save_target_globals): Likewise.
9635
9636 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9637
9638         * Makefile.in (target-globals.o): Depend on $(REGS_H).
9639         * regs.h (target_reg_modes): New structure.
9640         (default_target_reg_modes): Declare.
9641         (this_target_reg_modes): Declare as a variable or define as a macro.
9642         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
9643         * reginfo.c (default_target_reg_modes): New variable.
9644         (this_target_reg_modes): New conditional variable.
9645         (hard_regno_nregs, reg_raw_mode): Delete.
9646         * target-globals.h (this_target_regs): Declare.
9647         (target_globals): Add a regs field.
9648         (restore_target_globals): Copy the regs field to this_target_regs.
9649         * target-globals.c: Include regs.h.
9650         (default_target_globals): Initialize the regs field.
9651         (save_target_globals): Likewise.
9652
9653 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
9654
9655         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
9656         * doc/tm.texi: Regenerate.
9657         * Makefile.in (OBJS-common): Add target-globals.o.
9658         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
9659         and target-globals.h.
9660         (target-globals.o): New rule.
9661         (GTFILES): Include $(srcdir)/target-globals.h.
9662         * defaults.h (SWITCHABLE_TARGET): Define.
9663         * gengtype.c (open_base_files): Add target-globals.h to the
9664         list of includes.
9665         * target-globals.h: New file.
9666         * target-globals.c: Likewise.
9667
9668         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
9669         * flags.h (target_flag_state): New structure.
9670         (default_target_flag_state): Declare.
9671         (this_target_flag_state): Declare as a variable or define as a macro.
9672         (align_loops_log): Redefine as a macro.
9673         (align_loops_max_skip, align_jumps_log): Likewise.
9674         (align_jumps_max_skip, align_labels_log): Likewise.
9675         (align_labels_max_skip, align_functions_log): Likewise.
9676         * toplev.c (default_target_flag_state): New variable.
9677         (this_target_flag_state): New conditional variable.
9678         (align_loops_log): Delete.
9679         (align_loops_max_skip, align_jumps_log): Likewise.
9680         (align_jumps_max_skip, align_labels_log): Likewise.
9681         (align_labels_max_skip, align_functions_log): Likewise.
9682         * target-globals.h (this_target_flag_state): Declare.
9683         (target_globals): Add a flag_state field.
9684         (restore_target_globals): Copy the flag_state field to
9685         this_target_flag_state.
9686         * target-globals.c: Include flags.h.
9687         (default_target_globals): Initialize the flag_state field.
9688         (save_target_globals): Likewise.
9689
9690 2010-07-12  Jie Zhang  <jie@codesourcery.com>
9691
9692         * postreload.c (reg_symbol_ref[]): New.
9693         (move2add_use_add2_insn): New.
9694         (move2add_use_add3_insn): New.
9695         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
9696         (move2add_note_store): Likewise.
9697
9698 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
9699
9700         PR rtl-optimization/44752
9701         * genautomata.c (main): Don't emit an empty file even if there
9702         is no automaton.
9703
9704 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9705
9706         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
9707         ix86_solaris_return_in_memory.
9708         * config/i386-protos.h: Reflect this.
9709         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9710         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
9711         Move ...
9712         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
9713
9714 2010-07-12  Jie Zhang  <jie@codesourcery.com>
9715
9716         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
9717         align the stack when it's going to be saved.
9718
9719 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9720
9721         PR pch/14940
9722         * config/host-solaris.c (mmap_fixed): New function.
9723         (sol_gt_pch_get_address): Use it.
9724         (sol_gt_pch_use_address): Likewise.
9725
9726 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9727
9728         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9729         pentiumpro on Solaris 8 and 9/x86.
9730         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
9731         Document SSE/SSE2 support.
9732         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
9733
9734 2010-07-12  Andi Kleen  <ak@linux.intel.com>
9735
9736         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
9737         instead of gcc_assert to print better error message for multiple
9738         prevailing defs.
9739
9740 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
9741
9742         * config/i386/i386.c (ix86_asm_output_function_label): Change format
9743         string placeholder from 0x%x to %#x.
9744         (ix86_code_end): Use putc to output '\n'.
9745         (ix86_print_operand) <case ';'>: Use putc to output ';'.
9746
9747 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
9748
9749         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
9750         in directive -export.
9751
9752 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
9753
9754         * reginfo.h (reg_classes_intersect_p): Change arguments type to
9755         reg_class_t.
9756         * rtl.h (reg_classes_intersect_p): Adjust prototype.
9757
9758         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9759         Remove macros.
9760         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
9761         rs6000_memory_move_cost): Remove
9762         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
9763         TARGET_MEMORY_MOVE_COST): Define.
9764         (rs6000_register_move_cost): Make static. Change arguments type from
9765         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
9766         (rs6000_memory_move_cost): Make static. Change arguments type from
9767         'enum reg_class' to reg_class_t.
9768
9769 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
9770
9771         PR middle-end/42505
9772         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
9773         lookup code into....
9774         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
9775         new functions.
9776         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
9777         * cfgloopanal.c (target_clobbered_regs): Define.
9778         (init_set_costs): Initialize target_clobbered_regs.
9779         (estimate_reg_pressure_cost): Add call_p argument.  When true,
9780         adjust the number of available registers to exclude the
9781         call-clobbered registers.
9782         * cfgloop.h (target_clobbered_regs): Declare.
9783         (estimate_reg_pressure_cost): Adjust declaration.
9784         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
9785         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
9786         (determine_set_costs): Dump target_clobbered_regs.
9787         (loop_body_includes_call): New function.
9788         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
9789         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
9790         call_p flag through.
9791         (best_gain_for_invariant): Likewise.
9792         (find_invariants_to_move): Likewise.
9793         (move_single_loop_invariants): Likewise, using already-computed
9794         has_call field.
9795
9796 2010-07-10  Richard Guenther  <rguenther@suse.de>
9797             Joern Rennecke  <joern.rennecke@embecosm.com>
9798
9799         PR debug/44832
9800         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
9801         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
9802         unless they have DECL_IGNORED_P set.
9803
9804 2010-07-10  Richard Guenther  <rguenther@suse.de>
9805
9806         PR lto/44889
9807         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
9808         helper function.
9809         (gimple_types_compatible_p): Similar to pointed-to
9810         types allow and merge a mix of complete and incomplete aggregate.
9811         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
9812         (iterative_hash_gimple_type): Adjust for that.
9813
9814 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
9815
9816         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
9817
9818 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
9819
9820         PR objc/44140
9821         * config/darwin.c (output_objc_section_asm_op): Save and restore
9822         section when outputting ObjC section list.
9823
9824 2010-07-09  Jan Hubicka  <jh@suse.cz>
9825
9826         * lto-streamer-out.c (produce_symtab): Do not write alias
9827         cgraph/varpool nodes.
9828
9829 2010-07-09  Jan Hubicka  <jh@suse.cz>
9830
9831         * tree-inline.c (declare_return_variable): Fix ICE while
9832         inlining DECL_BY_VALUE function not in SSA form
9833
9834 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
9835
9836         PR tree-optimization/44576
9837         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
9838         New.  Pull out from is_loop_prefetching_profitable to implement
9839         the trip count to ahead ratio heuristic.
9840         (mem_ref_count_reasonable_p): New.  Pull out from
9841         is_loop_prefetching_profitable to implement the instruction to
9842         memory reference ratio heuristic.  Also consider not reasonable if
9843         the memory reference count is above a threshold (to avoid
9844         explosive compilation time.
9845         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
9846         is_loop_prefetching_profitable to implement the instruction to
9847         prefetch ratio heuristic.
9848         (is_loop_prefetching_profitable): Removed.
9849         (loop_prefetch_arrays): Distribute the cost analysis across the
9850         function to allow early exit of the prefetch analysis.
9851         is_loop_prefetching_profitable is splitted into three functions,
9852         with each one called as early as possible.
9853         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
9854         number of memory references in a loop is considered too many.
9855
9856 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
9857
9858         * reload.c (find_reloads): Don't clear badop if we have a winreg
9859         alternative, but not win, and the class only has fixed regs.
9860         * hard-reg-set.h (class_only_fixed_regs): Declare.
9861         * reginfo.c (class_only_fixed_regs): New array.
9862         (init_reg_sets_1): Initialize it.
9863         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
9864         discourage alternatives using the stack pointer.
9865
9866         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
9867
9868         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
9869
9870         * config/arm/arm.md (cbranchqi4): Fix array size.
9871         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
9872         calculating length.
9873
9874 2010-07-09  Richard Guenther  <rguenther@suse.de>
9875
9876         * gimple.c (struct type_fixup_s): New struct and VEC type.
9877         (gimple_register_type_fixups): New static global.
9878         (gimple_queue_type_fixup): New function.
9879         (gimple_types_compatible_p): Queue type fixups instead of
9880         applying them here.
9881         (gimple_register_type): Apply queued fixups for the
9882         canonical type.  Empty the type fixup queue.
9883
9884 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
9885
9886         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
9887         * configure: Regenerate.
9888         * config.in: Ditto.
9889
9890 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
9891             Denys Vlasenko  <dvlasenk@redhat.com>
9892             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9893
9894         PR tree-optimization/28632
9895         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
9896         (extract_range_from_binary_expr): Further optimize
9897         BIT_AND_EXPR and BIT_IOR_EXPR.
9898
9899 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
9900
9901         * tree-if-conv.c (fold_or_predicates): New.
9902         (add_to_predicate_list): Call it.
9903
9904 2010-07-09  Richard Guenther  <rguenther@suse.de>
9905
9906         PR middle-end/44890
9907         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
9908         if base is a pointer.
9909         * tree-cfg.c (verify_expr): Update MEM_REF checking.
9910
9911 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9912
9913         PR target/44877
9914         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
9915         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
9916         builtin mask for load/store builtins.
9917
9918 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
9919
9920         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
9921         for "lock addl".
9922         * configure: Regenerate.
9923         * config/i386/i386.c (ix86_print_operand) <case ';'>:
9924         Remove TARGET_MACHO.
9925
9926 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
9927
9928         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
9929         default ISA flags.
9930         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
9931
9932 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
9933
9934         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
9935
9936 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
9937
9938         * config/picochip/picochip.md (commsTestPort): Emit more
9939         efficient sequence for tstport instruction.
9940
9941 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
9942
9943         * config/i386/i386.c (ix86_veclib_handler): Make static.
9944
9945 2010-07-09  Richard Guenther  <rguenther@suse.de>
9946
9947         PR tree-optimization/44852
9948         * tree-ssa-alias.c: Include toplev.h for exact_log2.
9949         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
9950         in MEM_REF.
9951         (indirect_refs_may_alias_p): Likewise.
9952         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
9953
9954 2010-07-09  Richard Guenther  <rguenther@suse.de>
9955
9956         PR tree-optimization/44882
9957         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
9958         sets do conflict.
9959         (vectorizable_load): Likewise.
9960
9961 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
9962
9963         PR target/40657
9964         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
9965         All callers changed.
9966         Handle the case when we're called for the epilogue.
9967         (thumb_unexpanded_epilogue): Use it.
9968         (thumb1_expand_epilogue): Likewise.
9969
9970 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
9971
9972         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
9973         both ranges are range_int_cst_p with non-negative minimum,
9974         try harder to derive smaller range.
9975
9976 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9977
9978         * genrecog.c: Include diagnostic-core.h before toplev.h.
9979         * genoutput.c: Likewise.
9980         * genextract.c: Likewise.
9981         * genautomata.c: Likewise.
9982         * genemit.c: Likewise.
9983         * genpeep.c: Likewise.
9984         * genattrtab.c: Likewise.
9985         * genconditions.c: Likewise.
9986         * genpreds.c: Likewise.
9987
9988 2010-07-08  Andi Kleen  <ak@linux.intel.com>
9989
9990         * lto-section-in.c (lto_section_name): Add missing comma.
9991
9992 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
9993
9994         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
9995         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
9996         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
9997         (ia64_override_options): Rename to...
9998         (ia64_option_override): ... this one. Make static.
9999
10000 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10001
10002         PR middle-end/44843
10003         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10004         pointed-to type of the offset in a MEM_REF to compute the alignment.
10005
10006 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10007
10008         * final.c (final_scan_insn): Replace
10009         TARGET_UNWIND_INFO macro check by unwind_emit
10010         hook NULL check.
10011         * targhooks.c (default_unwind_emit): Removed.
10012         * targhooks.h (default_unwind_emit): Likewise.
10013         * target.def (unwind_emit): Set default value to NULL.
10014
10015         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10016         New prototype.
10017         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10018         for NULL fntype argument and allow 64-bit targets.
10019         (ix86_asm_output_function_label): New function.
10020         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10021         (ix86_handle_fndecl_attribute): Likewise.
10022         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10023         * doc/doc/tm.texi: Regenerated.
10024         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10025         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10026         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10027         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10028         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10029         * config/elfos.h: Likewise.
10030         * config/i386/cygming.h: Likewise.
10031         * config/netbsd-aout.h: Likewise.
10032         * config/openbsd.h: Likewise.
10033         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10034         by ix86_asm_output_function_label function call.
10035         * varasm.c (assemble_start_function): Use
10036         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10037
10038 2010-07-08  Jan Hubicka  <jh@suse.cz>
10039
10040         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10041         New function.
10042         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10043         Declare.
10044         * ipa-cp.c (ipcp_estimate_growth): Use it.
10045         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10046         Likewise.
10047
10048 2010-07-08  Jan Hubicka  <jh@suse.cz>
10049
10050         * tree-inline.c (declare_return_variable): Allocate annotation for new
10051         temporary.
10052
10053 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10054
10055         PR tree-optimization/44710
10056         * tree-if-conv.c (parse_predicate): New.
10057         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10058         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10059
10060 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10061
10062         * common.opt (ftree-loop-if-convert): New flag.
10063         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10064         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10065         when flag_tree_loop_if_convert is set.
10066
10067 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10068
10069         * config/i386/i386.c: Use short syntax for function calls
10070         through function pointers.
10071         * config/i386/i386.md: Ditto.
10072
10073 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10074
10075         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10076
10077 2010-07-08  Richard Guenther  <rguenther@suse.de>
10078
10079         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10080         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10081
10082 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10083
10084         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10085         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10086         (loc_list_from_tree): Likewise.
10087         (output_loc_operands): Handle outputting DW_OP_const[48]u
10088         with loc->dtprel set.
10089         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10090
10091 2010-07-08  Jan Hubicka  <jh@suse.cz>
10092
10093         * ipa.c: Include pointer-set.h
10094         (cgraph_externally_visible_p): New attribute ALIASED;
10095         when in LTO, hidden symbols are local unless they are aliased.
10096         (function_and_variable_visibility): Compute aliased nodes;
10097         handle LTO and hidden symbol on functions and vars.
10098         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10099         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10100
10101 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10102
10103         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10104         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10105         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10106         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10107         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10108         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10109         (ix86_gen_probe_stack_range): Likewise.
10110         (override_options): Set them.
10111         (ix86_target_stack_probe): New function.
10112         (ix86_compute_frame_layout): Force use of push instructions to
10113         save registers if stack checking with probes is enabled.
10114         (get_scratch_register_on_entry): New function.
10115         (release_scratch_register_on_entry): Likewise.
10116         (ix86_adjust_stack_and_probe): Likewise.
10117         (output_adjust_stack_and_probe): Likewise.
10118         (ix86_emit_probe_stack_range): Likewise.
10119         (output_probe_stack_range): Likewise.
10120         (ix86_expand_prologue): Emit stack checking code if static built-in
10121         stack checking is enabled.
10122         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10123         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10124         (output_adjust_stack_and_probe): Likewise.
10125         (output_probe_stack_range): Likewise.
10126         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10127         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10128         TARGET_STACK_PROBE.
10129         (allocate_stack_worker_64): Likewise.
10130         (allocate_stack): Likewise.
10131         (adjust_stack_and_probe): New insn.
10132         (probe_stack_range): Likewise.
10133
10134 2010-07-08  Richard Guenther  <rguenther@suse.de>
10135
10136         PR tree-optimization/44831
10137         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10138         a MEM_REF preserving TBAA info of the original dereference.
10139         Dereference the original pointer if the address is not invariant.
10140         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10141         at least one invariant address that we are going to dereference.
10142
10143 2010-07-08  Richard Guenther  <rguenther@suse.de>
10144
10145         PR tree-optimization/44861
10146         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10147         information when building MEM_REFs.
10148         (vectorizable_load): Likewise.
10149         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10150
10151 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10152
10153         * config/sol2-c.c: Do not include diagnostic-core.h.
10154
10155 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10156
10157         PR bootstrap/44768
10158         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10159         with respect to current_function_decl. Pass decl of the function.
10160         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10161         * ipa-inline.c (compute_inline_parameters): Pass decl to
10162         estimated_stack_frame_size.
10163
10164 2010-07-08  Richard Guenther  <rguenther@suse.de>
10165
10166         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10167         New function.
10168         (valueize_refs): Call it.
10169
10170 2010-07-08  Richard Guenther  <rguenther@suse.de>
10171
10172         PR rtl-optimization/44838
10173         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10174         SSA form do not use pointer equivalence.
10175
10176 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10177
10178         * dwarf2out.c (AT_linkage_name): Delete.
10179         (add_linkage_attr): New function.
10180         (add_linkage_name): Call it to emit the linkage attribute.
10181         (dwarf2out_finish): Likewise.
10182         (move_linkage_attr): Explicitly accept both attribute variants.
10183
10184 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10185
10186         * toplev.h: Do not include diagnostic-core.h.
10187         Include diagnostic-core.h in every file that includes toplev.h.
10188         * c-tree.h: Do not include toplev.h.
10189         * pretty-print.h: Update comment.
10190         * Makefile.in: Update dependencies.
10191         * alias.c: Include diagnostic-core.h in every file that includes
10192         toplev.h.
10193         * attribs.c: Likewise.
10194         * auto-inc-dec.c: Likewise.
10195         * bb-reorder.c: Likewise.
10196         * bt-load.c: Likewise.
10197         * caller-save.c: Likewise.
10198         * calls.c: Likewise.
10199         * cfg.c: Likewise.
10200         * cfganal.c: Likewise.
10201         * cfgbuild.c: Likewise.
10202         * cfgcleanup.c: Likewise.
10203         * cfghooks.c: Likewise.
10204         * cfgloop.c: Likewise.
10205         * combine.c: Likewise.
10206         * config/alpha/alpha.c: Likewise.
10207         * config/arc/arc.c: Likewise.
10208         * config/arm/arm.c: Likewise.
10209         * config/arm/pe.c: Likewise.
10210         * config/avr/avr.c: Likewise.
10211         * config/bfin/bfin.c: Likewise.
10212         * config/cris/cris.c: Likewise.
10213         * config/crx/crx.c: Likewise.
10214         * config/darwin-c.c: Likewise.
10215         * config/darwin.c: Likewise.
10216         * config/fr30/fr30.c: Likewise.
10217         * config/frv/frv.c: Likewise.
10218         * config/h8300/h8300.c: Likewise.
10219         * config/host-darwin.c: Likewise.
10220         * config/i386/i386.c: Likewise.
10221         * config/i386/netware.c: Likewise.
10222         * config/i386/nwld.c: Likewise.
10223         * config/i386/winnt-cxx.c: Likewise.
10224         * config/i386/winnt-stubs.c: Likewise.
10225         * config/i386/winnt.c: Likewise.
10226         * config/ia64/ia64-c.c: Likewise.
10227         * config/ia64/ia64.c: Likewise.
10228         * config/iq2000/iq2000.c: Likewise.
10229         * config/lm32/lm32.c: Likewise.
10230         * config/m32c/m32c-pragma.c: Likewise.
10231         * config/m32c/m32c.c: Likewise.
10232         * config/m32r/m32r.c: Likewise.
10233         * config/m68hc11/m68hc11.c: Likewise.
10234         * config/m68k/m68k.c: Likewise.
10235         * config/mcore/mcore.c: Likewise.
10236         * config/mep/mep-pragma.c: Likewise.
10237         * config/mep/mep.c: Likewise.
10238         * config/mmix/mmix.c: Likewise.
10239         * config/mn10300/mn10300.c: Likewise.
10240         * config/moxie/moxie.c: Likewise.
10241         * config/pa/pa.c: Likewise.
10242         * config/pdp11/pdp11.c: Likewise.
10243         * config/picochip/picochip.c: Likewise.
10244         * config/rs6000/rs6000-c.c: Likewise.
10245         * config/rs6000/rs6000.c: Likewise.
10246         * config/rx/rx.c: Likewise.
10247         * config/s390/s390.c: Likewise.
10248         * config/score/score.c: Likewise.
10249         * config/score/score3.c: Likewise.
10250         * config/score/score7.c: Likewise.
10251         * config/sh/sh.c: Likewise.
10252         * config/sh/symbian-base.c: Likewise.
10253         * config/sh/symbian-c.c: Likewise.
10254         * config/sh/symbian-cxx.c: Likewise.
10255         * config/sol2-c.c: Likewise.
10256         * config/sol2.c: Likewise.
10257         * config/sparc/sparc.c: Likewise.
10258         * config/spu/spu.c: Likewise.
10259         * config/stormy16/stormy16.c: Likewise.
10260         * config/v850/v850-c.c: Likewise.
10261         * config/v850/v850.c: Likewise.
10262         * config/vax/vax.c: Likewise.
10263         * config/vxworks.c: Likewise.
10264         * config/xtensa/xtensa.c: Likewise.
10265         * convert.c: Likewise.
10266         * cse.c: Likewise.
10267         * cselib.c: Likewise.
10268         * dbgcnt.c: Likewise.
10269         * dbxout.c: Likewise.
10270         * ddg.c: Likewise.
10271         * dominance.c: Likewise.
10272         * emit-rtl.c: Likewise.
10273         * explow.c: Likewise.
10274         * expmed.c: Likewise.
10275         * fixed-value.c: Likewise.
10276         * fold-const.c: Likewise.
10277         * fwprop.c: Likewise.
10278         * gcse.c: Likewise.
10279         * ggc-common.c: Likewise.
10280         * ggc-page.c: Likewise.
10281         * ggc-zone.c: Likewise.
10282         * gimple-low.c: Likewise.
10283         * gimplify.c: Likewise.
10284         * graph.c: Likewise.
10285         * haifa-sched.c: Likewise.
10286         * ifcvt.c: Likewise.
10287         * implicit-zee.c: Likewise.
10288         * integrate.c: Likewise.
10289         * ira-build.c: Likewise.
10290         * ira-color.c: Likewise.
10291         * ira-conflicts.c: Likewise.
10292         * ira-costs.c: Likewise.
10293         * ira-lives.c: Likewise.
10294         * ira.c: Likewise.
10295         * lists.c: Likewise.
10296         * loop-doloop.c: Likewise.
10297         * loop-iv.c: Likewise.
10298         * lto-opts.c: Likewise.
10299         * lto-symtab.c: Likewise.
10300         * main.c: Likewise.
10301         * modulo-sched.c: Likewise.
10302         * optabs.c: Likewise.
10303         * params.c: Likewise.
10304         * plugin.c: Likewise.
10305         * postreload-gcse.c: Likewise.
10306         * postreload.c: Likewise.
10307         * predict.c: Likewise.
10308         * profile.c: Likewise.
10309         * real.c: Likewise.
10310         * regcprop.c: Likewise.
10311         * reginfo.c: Likewise.
10312         * regmove.c: Likewise.
10313         * reorg.c: Likewise.
10314         * resource.c: Likewise.
10315         * rtl.c: Likewise.
10316         * rtlanal.c: Likewise.
10317         * sched-deps.c: Likewise.
10318         * sched-ebb.c: Likewise.
10319         * sched-rgn.c: Likewise.
10320         * sdbout.c: Likewise.
10321         * sel-sched-dump.c: Likewise.
10322         * sel-sched-ir.c: Likewise.
10323         * simplify-rtx.c: Likewise.
10324         * stmt.c: Likewise.
10325         * stor-layout.c: Likewise.
10326         * store-motion.c: Likewise.
10327         * targhooks.c: Likewise.
10328         * tree-cfg.c: Likewise.
10329         * tree-cfgcleanup.c: Likewise.
10330         * tree-dump.c: Likewise.
10331         * tree-eh.c: Likewise.
10332         * tree-inline.c: Likewise.
10333         * tree-nomudflap.c: Likewise.
10334         * tree-object-size.c: Likewise.
10335         * tree-optimize.c: Likewise.
10336         * tree-outof-ssa.c: Likewise.
10337         * tree-phinodes.c: Likewise.
10338         * tree-profile.c: Likewise.
10339         * tree-ssa-ccp.c: Likewise.
10340         * tree-ssa-coalesce.c: Likewise.
10341         * tree-ssa-live.c: Likewise.
10342         * tree-ssa-loop-niter.c: Likewise.
10343         * tree-ssa-loop-prefetch.c: Likewise.
10344         * tree-ssa-loop.c: Likewise.
10345         * tree-ssa-structalias.c: Likewise.
10346         * tree-ssa-uninit.c: Likewise.
10347         * tree-ssa.c: Likewise.
10348         * tree-vect-data-refs.c: Likewise.
10349         * tree-vect-loop-manip.c: Likewise.
10350         * tree-vect-loop.c: Likewise.
10351         * tree-vect-patterns.c: Likewise.
10352         * tree-vect-stmts.c: Likewise.
10353         * tree-vrp.c: Likewise.
10354         * varasm.c: Likewise.
10355         * vec.c: Likewise.
10356         * web.c: Likewise.
10357         * xcoffout.c: Likewise.
10358
10359 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
10360
10361         * gengtype.c (write_field_root): New function.
10362         (write_root): Use it.
10363
10364 2010-07-07  Wei Guozhi  <carrot@google.com>
10365
10366         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10367         of lowest bits to lshift/compare): Add a missing line.
10368
10369 2010-07-07  Wei Guozhi  <carrot@google.com>
10370
10371         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
10372         of lowest bits to lshift/compare): New.
10373
10374 2010-07-07  Tom Tromey  <tromey@redhat.com>
10375
10376         * doc/tm.texi: Update.
10377         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
10378         Add @hook.
10379         * target.def (want_debug_pub_sections): New hook.
10380         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
10381         * dwarf2out.c (add_pubname_string): Check
10382         targetm.want_debug_pub_sections.
10383         (add_pubname): Likewise.
10384         (add_pubtype): Likewise.
10385
10386 2010-07-07  Jie Zhang  <jie@codesourcery.com>
10387
10388         * genautomata.c (output_automata_list_min_issue_delay_code):
10389         Correctly decompress min_issue_delay.
10390
10391 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10392
10393         PR rtl-optimization/44404
10394         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10395         possible, use reg_overlap_mentioned_p instead.
10396
10397 2010-07-07  Duncan Sands  <baldrick@free.fr>
10398
10399         PR middle-end/41355
10400         * tree.c (build_function_type_skip_args): Copy the original type using
10401         build_distinct_type_copy rather than copy_node.
10402
10403 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10404
10405         PR target/44850
10406         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
10407         revision 161876.
10408         (ix86_expand_prologue): Likewise.
10409         (ix86_handle_fndecl_attribute): Likewise.
10410         (ix86_asm_declare_function_name): Likewise.
10411         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10412         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10413         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
10414         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
10415         * doc/extend.texi: Likewise.
10416
10417 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10418
10419         PR target/44844
10420         * config/i386/i386.md (rdrand<mode>): Changed to expand to
10421         retry if the carry flag isn't valid.
10422         (rdrand<mode>_1): New.
10423
10424 2010-07-07  Richard Guenther  <rguenther@suse.de>
10425
10426         PR middle-end/44790
10427         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
10428         for expanding the constant offset for MEM_REFs.
10429
10430 2010-07-07  Richard Guenther  <rguenther@suse.de>
10431
10432         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
10433         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
10434         * gimple.h (is_gimple_operand): Remove.
10435         * gimple.c (is_gimple_operand): Likewise.
10436         (walk_gimple_op): Fix wi->val_only setting for calls.
10437         * tree-cfg.c (verify_gimple_call): Fix argument validation.
10438         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
10439         invalid gimple calls.
10440
10441 2010-07-06  Jan Hubicka  <jh@suse.cz>
10442
10443         * lto-cgraph.c (output_cgraph): Add missing declaration.
10444
10445 2010-07-06  Jan Hubicka  <jh@suse.cz>
10446
10447         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
10448         partition.
10449
10450 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
10451
10452         * doc/gimple.texi (GIMPLE_DEBUG): Document.
10453         * doc/rtl.texi (Debug Information): New node.
10454         (NOTE_INSN_VAR_LOCATION): Document.
10455         (debug_insn): Likewise.
10456         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
10457
10458 2010-07-07  Jan Hubicka  <jh@suse.cz>
10459
10460         With parts by Richard Guenther.
10461
10462         PR middle-end/44813
10463         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
10464         for functions passed by reference.
10465         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
10466         in memory when passed by reference.
10467         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
10468         beggining.
10469         * ipa-split.c (split_function): Cleanup way return value is passed;
10470         handle SSA DECL_BY_REFERENCE retvals.
10471         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
10472         DECL_BY_REFERENCE is set.
10473         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
10474         find_what_p_points_to): Handle RESULT_DECL.
10475         * tree-inline.c (declare_return_variable): Get new entry_block argument;
10476         when passing by reference ensure that RESULT_DECL is gimple_val.
10477         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
10478         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
10479
10480 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
10481
10482         PR rtl-optimization/44787
10483         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
10484         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
10485
10486 2010-07-06  Jan Hubicka  <jh@suse.cz>
10487
10488         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
10489         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
10490         with body can prevail.
10491         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
10492         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
10493         * cgraph.c (cgraph_get_node_or_alias): New function.
10494         * cgraph.h (cgraph_get_node_or_alias): Declare.
10495
10496 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
10497
10498         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
10499         support.
10500         (ix86_expand_prologue): Likewise.
10501         (ix86_handle_fndecl_attribute): Likewise.
10502         (ix86_asm_declare_function_name): New function for
10503         ASM_DECLARE_FUNCTION_NAME.
10504         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
10505         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
10506         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
10507         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
10508         * doc/extend.texi: Adjust documentation about ms_hook_prologue
10509         attribute.
10510
10511 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10512
10513         * config/i386/i386.md (immediate_operand): New mode attribute.
10514
10515         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
10516         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
10517         using P mode iterator.
10518         (pro_epilogue_adjust_stack_di_2): Rename from
10519         pro_epilogue_adjust_stack_rex64_2.
10520
10521         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
10522
10523 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10524
10525         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
10526         through gen_mov_insv_1 function pointer.
10527         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
10528         gen_truncxf<mode>2 through gen_truncxf function pointer.
10529         (remainder<mode>3): Ditto.
10530         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
10531         (allocate_stack): Call gen_allocate_stack_worker_64 or
10532         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
10533         function pointer.
10534         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
10535         function pointer.
10536
10537 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
10538
10539         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
10540         operand constraint instead of <r><i>m.
10541
10542 2010-07-06  Richard Guenther  <rguenther@suse.de>
10543
10544         PR middle-end/44828
10545         * convert.c (convert_to_integer): Watch out for overflowing
10546         MULT_EXPR as well.
10547
10548 2010-07-05  Jan Hubicka  <jh@suse.cz>
10549
10550         * lto-streamer.c (write_symbol_vec): Rename to ...
10551         (write_symbol) ... this one; write only symbol given and when
10552         present in cache. Sanity check that what is defined is present
10553         in cgraph/varpool with body/finalized decl.
10554         (write_symbols_of_kind): Remove.
10555         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
10556         pairs to produce symtab.
10557         (produce_asm_for_decls): Update call of produce_symtab; don't do so
10558         when doing WPA streaming.
10559
10560 2010-07-05  Jan Hubicka  <jh@suse.cz>
10561
10562         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
10563         function is still available to fold into.
10564
10565 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10566
10567         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
10568         * function.h (struct_function): Change type of local_decls field
10569         to a VEC.
10570         (add_local_decl): New function.
10571         (FOR_EACH_LOCAL_DECL): New macro.
10572         * cfgexpand.c (init_vars_expansion): Adjust for new type of
10573         cfun->local_decls.
10574         (estimated_stack_frame_size): Likewise.
10575         (expand_used_vars): Likewise.
10576         * cgraphbuild.c (build_cgraph_edges): Likewise.
10577         * function.c (instantiate_decls_1): Likewise.
10578         * ipa-struct-reorg.c (build_data_structure): Likewise.
10579         * ipa-type-escape.c (analyze_function): Likewise.
10580         * lto-streamer-in.c (input_function): Likewise.
10581         * lto-streamer-out.c (output_function): Likewise.
10582         * tree-ssa-live.c (remove_unused_locals): Likewise.
10583         * tree.c (free_lang_data_in_decl): Likewise.
10584         (find_decls_types_in_node): Likewise.
10585         * omp-low.c (remove_exit_barrier): Likewise.
10586         (expand_omp_taskreg): Likewise.
10587         (list2chain): Rename to...
10588         (vec2chain): ...this.  Adjust.
10589         * cgraphunit.c (assemble_thunk): Call add_local_decl.
10590         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
10591         * gimple-low.c (record_vars_into): Likewise.
10592         * tree-inline.c (remap_decls): Likewise.
10593         (declare_return_variable): Likewise.
10594         (declare_inline_vars): Likewise.
10595         (copy_forbidden): Adjust for new type of cfun->local_decls.
10596         (add_local_variables): New function.
10597         (expand_call_inline): Call it.
10598         (tree_function_versioning): Likewise.
10599
10600 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
10601
10602         AVX Programming Reference (June, 2010)
10603         * config/i386/cpuid.h (bit_F16C): New.
10604         (bit_RDRND): Likewise.
10605         (bit_FSGSBASE): Likewise.
10606
10607         * config/i386/i386-builtin-types.def: Add
10608         "DEF_FUNCTION_TYPE (UINT16)", function types for
10609         float16 <-> float conversions and
10610         "DEF_FUNCTION_TYPE (VOID, UINT64)".
10611
10612         * config/i386/i386-c.c (ix86_target_macros_internal): Support
10613         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
10614         OPTION_MASK_ISA_F16C.
10615
10616         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
10617         (OPTION_MASK_ISA_RDRND_SET): Likewise.
10618         (OPTION_MASK_ISA_F16C_SET): Likewise.
10619         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
10620         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
10621         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
10622         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
10623         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
10624         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
10625         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
10626         (override_options): Handle them.
10627         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
10628         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
10629         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
10630         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
10631         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
10632         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
10633         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
10634         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
10635         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
10636         (bdesc_args): Likewise.
10637         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
10638         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
10639         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
10640         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
10641         Handle non-memory store.
10642
10643         * config/i386/i386.h (TARGET_FSGSBASE): New.
10644         (TARGET_RDRND): Likewise.
10645         (TARGET_F12C): Likewise.
10646
10647         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
10648         (UNSPEC_VCVTPS2PH): Likewise.
10649         (UNSPECV_RDFSBASE): Likewise.
10650         (UNSPECV_RDGSBASE): Likewise.
10651         (UNSPECV_WRFSBASE): Likewise.
10652         (UNSPECV_WRGSBASE): Likewise.
10653         (UNSPECV_RDRAND): Likewise.
10654         (rdfsbase<mode>): Likewise.
10655         (rdgsbase<mode>): Likewise.
10656         (wrfsbase<mode>): Likewise.
10657         (wrgsbase<mode>): Likewise.
10658         (rdrand<mode>): Likewise.
10659
10660         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
10661
10662         * config/i386/immintrin.h (_rdrand_u16): New.
10663         (_rdrand_u32): Likewise.
10664         (_readfsbase_u32): Likewise.
10665         (_readfsbase_u64): Likewise.
10666         (_readgsbase_u32): Likewise.
10667         (_readgsbase_u64): Likewise.
10668         (_writefsbase_u32): Likewise.
10669         (_writefsbase_u64): Likewise.
10670         (_writegsbase_u32): Likewise.
10671         (_writegsbase_u64): Likewise.
10672         (_rdrand_u64): Likewise.
10673         (_cvtsh_ss): Likewise.
10674         (_mm_cvtph_ps): Likewise.
10675         (_mm256_cvtph_ps): Likewise.
10676         (_cvtss_sh): Likewise.
10677         (_mm_cvtps_ph): Likewise.
10678         (_mm256_cvtps_ph): Likewise.
10679
10680         * config/i386/sse.md (vcvtph2ps): New.
10681         (*vcvtph2ps_load): Likewise.
10682         (vcvtph2ps256): Likewise.
10683         (vcvtps2ph): Likewise.
10684         (*vcvtps2ph): Likewise.
10685         (*vcvtps2ph_store): Likewise.
10686         (vcvtps2ph256): Likewise.
10687
10688         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
10689
10690         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
10691
10692 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
10693
10694         PR bootstrap/44512
10695         * genenums.c (main): Output include of insn-constants.h
10696         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
10697
10698 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
10699
10700         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
10701         (override_options): Initialize it.
10702         (ix86_expand_prologue): Use it.
10703
10704 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
10705
10706         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
10707
10708 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
10709
10710         * double-int.h (fit_double_type): Remove declaration.
10711         * double-int.c (fit_double_type): Remove function.
10712         * tree.h (int_fits_type_p): Adjust prototype.
10713         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
10714         instead of fit_double_type.
10715         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
10716         instead of fit_double_type and build_int_cst_wide.
10717         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
10718         instead of fit_double_type and build_int_cst_wide.
10719         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
10720         of fit_double_type.
10721
10722 2010-07-05  Jan Hubicka  <jh@suse.cz>
10723
10724         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
10725         in_other_partition.
10726         * lto-cgraph.c (referenced_from_other_partition_p,
10727         reachable_from_other_partition_p): Use in_other_partition flags.
10728         (output_node, output_varpool_node): COMDAT nodes always have private
10729         copies and thus are never used from other partition.
10730
10731 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
10732
10733         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10734         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
10735         * config/ia64/ia64.c Include reload.h.
10736         (ia64_memory_move_cost): New function.
10737         (TARGET_MEMORY_MOVE_COST): Define.
10738         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
10739         memory_move_cost.
10740
10741 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
10742
10743         PR middle-end/42505
10744         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
10745         comments about cost model.
10746         (try_add_cand_for):  Add second strategy for choosing initial set
10747         based on original IVs, controlled by ORIGINALP argument.
10748         (get_initial_solution): Add ORIGINALP argument.
10749         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
10750         (find_optimal_iv_set): Try two different strategies for choosing
10751         the IV set, and return the one with lower cost.
10752
10753 2010-07-05  Richard Guenther  <rguenther@suse.de>
10754
10755         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
10756
10757 2010-07-05  Richard Guenther  <rguenther@suse.de>
10758
10759         * tree.c (reference_alias_ptr_type): New function.
10760         * tree.h (reference_alias_ptr_type): Declare.
10761         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
10762         allow non-TARGET_MEM_REF new refs.
10763         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
10764         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
10765         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
10766         (create_mem_ref): Get alias pointer type.  Adjust calls to
10767         create_mem_ref_raw.
10768         (maybe_fold_tmr): Likewise.
10769         * tree-flow.h (create_mem_ref): Adjust prototype.
10770
10771 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
10772
10773         PR c++/44808
10774         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
10775         *from_p is VAR_DECL.
10776
10777 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10778
10779         * tree.h (build_call_list): Remove.
10780         * tree.c (build_call_list): Remove.
10781
10782 2010-07-05  Richard Guenther  <rguenther@suse.de>
10783
10784         * double-int.h (double_int_sub): Declare.
10785         * double-int.c (double_int_sub): New function.
10786         * dwarf2out.c (field_byte_offset): Use it.
10787         * fixed-value.c (do_fixed_add): Likewise.
10788         (do_fixed_multiply): Likewise.
10789         (do_fixed_divide): Likewise.
10790         * tree-predcom.c (add_ref_to_chain): Likewise.
10791         (determine_roots_comp): Likewise.
10792         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
10793
10794 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
10795
10796         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
10797         implementations.
10798
10799 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
10800
10801         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
10802         * arm-modes.def (CC_NOTB): Don't define.
10803         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
10804         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
10805         (LTUGEU): New code_iterator.
10806         (cnb, optab): New corresponding code_attrs.
10807         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
10808         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
10809         using LTUGEU.
10810         (addsi3_carryin_shift_<optab>): Likewise.
10811         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
10812         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
10813         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
10814         (subsi3_compare): Renamed from subsi3_compare0_c.
10815         Change CC_NOTB to CC.
10816         (arm_subsi3_insn): Allow constants for operand 0.
10817         (compare_scc peephole for eq case): New.
10818         (compare_scc splitters): Change CC_NOTB to CC.
10819
10820 2010-07-05  Richard Guenther  <rguenther@suse.de>
10821
10822         * tree-ssa-loop-im.c (for_each_index): Do not handle
10823         ALIGN_INDIRECT_REF.
10824         (gen_lsm_tmp_name): Likewise.
10825         * tree-dump.c (dequeue_and_dump): Likewise.
10826         * tree-pretty-print.c (dump_generic_node): Likewise.
10827         (op_code_prio): Likewise.
10828         (op_symbol_code): Likewise.
10829         * tree.c (staticp): Likewise.
10830         (build1_stat): Likewise.
10831         * tree.h (INDIRECT_REF_P): Likewise.
10832         * fold-const.c (maybe_lvalue_p): Likewise.
10833         (operand_equal_p): Likewise.
10834         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10835         (ao_ref_init_from_vn_reference): Likewise.
10836         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10837         (find_interesting_uses_address): Likewise.
10838         * dwarf2out.c (loc_list_from_tree): Likewise.
10839         * gimplify.c (gimplify_expr): Likewise.
10840         * tree-eh.c (tree_could_trap_p): Likewise.
10841         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10842         * cfgexpand.c (expand_debug_expr): Likewise.
10843         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10844         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10845         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10846         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
10847         * tree-ssa-operands.c (get_expr_operands): Likewise.
10848         * expr.c (safe_from_p): Likewise.
10849         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
10850         * tree-vect-data-refs.c (vect_setup_realignment): Build
10851         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
10852         * tree-vect-stmts.c (vectorizable_load): Likewise.
10853         * tree.def (ALIGN_INDIRECT_REF): Remove.
10854
10855 2010-07-05  Richard Guenther  <rguenther@suse.de>
10856
10857         PR tree-optimization/44784
10858         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
10859         for inserted stmts.
10860         (find_or_generate_expression): Fix SCCVN insertion check.
10861
10862 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
10863
10864         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
10865         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
10866         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
10867         directives.
10868
10869 2010-07-05  Ira Rosen  <irar@il.ibm.com>
10870
10871         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
10872         statements that are not vectorized.
10873         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
10874         in INSIDE_COST.
10875
10876 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
10877
10878         PR bootstrap/44820
10879         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
10880
10881 2010-07-05  Richard Guenther  <rguenther@suse.de>
10882
10883         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
10884         RESULT_DECLs properly.
10885
10886 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
10887
10888         PR rtl-optimization/44695
10889         * config/i386/i386.md (extract_code): Removed.
10890         (<u>divmodqi4): Likewise.
10891         (divmodqi4): New.
10892         (udivmodqi4): Likewise.
10893         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
10894         (udivmodhiqi3): Likewise.
10895
10896 2010-07-04  Jan Hubicka  <jh@suse.cz>
10897
10898         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
10899
10900 2010-07-04  Jan Hubicka  <jh@suse.cz>
10901
10902         * cgraphunit.c (init_cgraph): Only initialize dump file if it
10903         is not already initialized.
10904
10905 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
10906
10907         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
10908         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
10909         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
10910         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
10911         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
10912         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
10913         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
10914         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
10915         (sync_new_nand_optab): Redefine as macros.
10916         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
10917         Delete.
10918         (direct_optab_index): New enum.
10919         (direct_optab_d): New structure.
10920         (direct_optab): New typedef.
10921         (direct_optab_table): Declare.
10922         (direct_optab_handler, set_direct_optab_handler): New functions.
10923         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
10924         (sync_lock_release_optab): New macros.
10925         * optabs.c (direct_optab_table): New variable.
10926         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
10927         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
10928         cmpstr_optab and cmpstrn_optab.
10929         (emit_conditional_move): Likewise for movcc_optab.
10930         (can_conditionally_move_p): Likewise for movcc_gen_code.
10931         (init_insn_codes): Clear direct_optab_table.
10932         (init_optabs): Don't initialize the new "direct optabs" here.
10933         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
10934         vcond_gen_code.
10935         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
10936         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
10937         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
10938         (expand_sync_operation): Likewise other sync_*_optabs.
10939         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
10940         to sync_compare_and_swap_optab.
10941         (expand_sync_lock_test_and_set): Use direct_optab_handler for
10942         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
10943         to the names of both.
10944         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
10945         cmpstr_optab and cmpstrn_optab.
10946         (expand_builtin_lock_release): Likewise sync_lock_release.
10947         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
10948         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
10949         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
10950         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
10951         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
10952         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
10953         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
10954         (sync_lock_test_and_set, sync_lock_release): Delete.
10955         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
10956         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
10957         * genopinit.c (optabs): Use set_direct_optab_handler for the new
10958         macro optabs.
10959         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
10960         the "optab" local variable.  Use direct_optab_handler for optab and
10961         sync_compare_and_swap_optab.
10962         * reload1.c (reload_in_optab, reload_out_optab): Delete.
10963         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
10964         reload_in_optab and reload_out_optab.
10965         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
10966         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
10967         * config/pa/pa.c (pa_secondary_reload): Likewise.
10968         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
10969         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
10970         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
10971         (VMSupportsCS8_builtin): Likewise.
10972
10973 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
10974
10975         * optabs.h (optab_handlers): Change type of insn_code to int.
10976         (optab_handler, set_optab_handler, convert_optab_handler)
10977         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
10978         CODE_FOR_nothing".
10979         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
10980         (init_insn_codes): Zero both the above arrays.
10981         (init_optabs): Never call init_insn_codes first time around.
10982
10983 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
10984
10985         * optabs.h (optab_handler, convert_optab_handler): Turn into
10986         inline functions that return an insn code.
10987         (set_optab_handler, set_convert_optab_handler): New functions.
10988         * builtins.c: Replace optab_handler(X)->insn_code with
10989         optab_handler or set_optab_handler thoughout.  Likewise
10990         convert_optab_handler(X)->insn_code with convert_optab_handler
10991         and set_convert_optab_handler.
10992         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
10993         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
10994         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
10995         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
10996         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
10997         config/spu/spu.c: Likewise.
10998
10999 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11000
11001         PR target/44531
11002         * config.gcc (sh*-*-*): Use regular expressions instead of
11003         the 'i' modifier for sed substitutions.
11004
11005 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11006
11007         * gimple.c (gimple_body): Comments added.
11008
11009 2010-07-04  Richard Guenther  <rguenther@suse.de>
11010
11011         PR middle-end/44809
11012         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11013         of an INDIRECT_REF.
11014
11015 2010-07-04  Richard Guenther  <rguenther@suse.de>
11016
11017         PR tree-optimization/44479
11018         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11019         extra SSA name copy statements which preserves points-to
11020         information.
11021         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11022         Copy points-to information for all pointers.  Properly handle
11023         MEM_REFs.
11024         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11025         copy statements.
11026         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11027         dependency.
11028
11029 2010-07-04  Richard Guenther  <rguenther@suse.de>
11030
11031         PR middle-end/44785
11032         * tree-inline.c (initialize_inlined_parameters): Do not
11033         re-use pointer-map slot over remap_type call.
11034
11035 2010-07-04  Richard Guenther  <rguenther@suse.de>
11036
11037         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11038
11039 2010-07-04  Richard Guenther  <rguenther@suse.de>
11040
11041         PR tree-optimization/44656
11042         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11043         again after value-replacing in the defintions lhs.
11044
11045 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11046             Revital Eres  <eres@il.ibm.com>
11047
11048         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11049         Document new arguments.
11050         * doc/tm.texi: Regenerate.
11051         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11052         Handle unaligned store.
11053         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11054         * target.def (builtin_vectorization_cost): Add new arguments.
11055         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11056         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11057         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11058         (vect_vfa_segment_size): Fix indentation.
11059         * tree-vectorizer.h (struct _vect_peel_info): New.
11060         (struct _vect_peel_extended_info): New.
11061         (struct _loop_vec_info): Add new field for peeling hash table and a
11062         macro for its access.
11063         (VECT_MAX_COST): Define.
11064         (vect_get_load_cost): Declare.
11065         (vect_get_store_cost, vect_get_known_peeling_cost,
11066         vect_get_single_scalar_iteraion_cost): Likewise.
11067         (vect_supportable_dr_alignment): Add new argument.
11068         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11069         field.
11070         (destroy_loop_vec_info): Free peeling hash table.
11071         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11072         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11073         vect_analyze_slp. Fix indentation.
11074         (vect_get_single_scalar_iteraion_cost): New function.
11075         (vect_get_known_peeling_cost): Likewise.
11076         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11077         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11078         statement. Move outside cost calculation inside unknown peeling case.
11079         Call vect_get_known_peeling_cost for known amount of peeling.
11080         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11081         reference to the print message of forced alignment.
11082         (vect_verify_datarefs_alignment): Update call to
11083         vect_supportable_dr_alignment.
11084         (vect_get_data_access_cost): New function.
11085         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11086         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11087         vect_peeling_hash_choose_best_peeling): Likewise.
11088         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11089         to store all the accesses in the loop and find best possible access to
11090         align using peeling for known alignment case. For unknown alignment
11091         check if stores are preferred or if peeling is worthy.
11092         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11093         (vect_supportable_dr_alignment): Add new argument and check aligned
11094         accesses according to it.
11095         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11096         (cost_for_stmt): Call vect_get_stmt_cost.
11097         (vect_model_simple_cost): Likewise.
11098         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11099         vect_get_store_cost to calculate the cost of the statement.
11100         (vect_get_store_cost): New function.
11101         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11102         vect_get_load_cost to calculate the cost of the statement.
11103         (vect_get_load_cost): New function.
11104         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11105         (vectorizable_load): Likewise.
11106         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11107         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11108         arguments. Handle unaligned store.
11109         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11110         (rs6000_builtin_support_vector_misalignment): Return true for word and
11111         double word alignments for VSX.
11112         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11113         vect_supportable_dr_alignment and builtin_vectorization_cost.
11114
11115 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11116
11117         PR target/44597
11118         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11119         (prefetch_nocc_operand): Likewise.
11120         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11121         (prefetch_20): New insn.
11122         (prefetch_cc): Remove.
11123         (prefetch_nocc): Likewise.
11124
11125 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11126
11127         * expr.c (vector_mode_valid_p): Move to c-common.c.
11128         * expr.h (vector_mode_valid_p): Do not declare here.
11129         * system.h: Poison GCC_EXPR_H in front-ends.
11130         * Makefile.in: Update dependencies.
11131
11132 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11133
11134         PR target/44705
11135         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11136
11137 2010-07-03  Jan Hubicka  <jh@suse.cz>
11138
11139         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11140         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11141         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11142         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11143         Likewise.
11144
11145         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11146         Update timevars.V
11147         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11148         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11149         TV_IPA_LTO_DECL_OUT): New.
11150         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11151
11152 2010-07-03  Jan Hubicka  <jh@suse.cz>
11153
11154         * ipa-inline.c (update_edge_key): Break out from ...
11155         update_callers_keys): ... here;
11156         (update_callee_keys): Update only the edges from caller to callee.
11157         (update_all_calle_keys): Do what update_calle_keys did.
11158         (decide_inlining_of_small_functions): Avoid recomputing of all
11159         callees when badness increase.
11160
11161 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11162
11163         * config/arm/arm.c (arm_attr_length_move_neon): New.
11164         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11165         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11166         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11167         to compute length attribute.
11168
11169 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11170
11171         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11172         as predicate for operand 1 and remove its constraint.
11173         * config/arm/predicates.md (vfp_register_operand): New.
11174         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11175         (*push_fp_multi): Likewise.
11176
11177 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11178
11179         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11180
11181 2010-07-03  Jan Hubicka  <jh@suse.cz>
11182
11183         * config/i386/i386.c (override_options): Revert accidental commit.
11184
11185 2010-07-02  Le-Chun Wu  <lcwu@google.com>
11186
11187         PR c++/44128
11188         * doc/invoke.texi: Update documentation of -Wshadow.
11189
11190 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
11191             Julian Brown  <julian@codesourcery.com>
11192             Sandra Loosemore  <sandra@codesourcery.com>
11193
11194         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
11195         comparisons.  Adjust to take both operands.
11196         (arm_select_cc_mode): Handle DImode comparisons.
11197         (arm_gen_compare_reg): Generate a scratch register for DImode
11198         comparisons which require one.  Use xor for Thumb equality checks.
11199         (arm_const_double_by_immediates): New.
11200         (arm_print_operand): Allow 'Q' and 'R' for constants.
11201         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
11202         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
11203         arm_canonicalize_comparison.
11204         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
11205         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
11206         prototype.
11207         (arm_const_double_by_immediates): Declare.
11208         * config/arm/constraints.md (Di): New constraint.
11209         * config/arm/predicates.md (arm_immediate_di_operand)
11210         (arm_di_operand, cmpdi_operand): New.
11211         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
11212         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
11213         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
11214         (cstoredi4): Handle non-Cirrus also.
11215
11216 2010-07-02  Julian Brown  <julian@codesourcery.com>
11217             Sandra Loosemore  <sandra@codesourcery.com>
11218
11219         PR target/43703
11220         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
11221         (smax<mode>3): Disable for NEON float modes when
11222         flag_unsafe_math_optimizations is false.
11223         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
11224         (*mul<mode>3_neon)
11225         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
11226         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
11227         for NEON float modes when flag_unsafe_math_optimizations is false.
11228         (quad_halves_<code>v4sf): Only enable if
11229         flag_unsafe_math_optimizations is true.
11230         * doc/invoke.texi (ARM Options): Add note about floating point
11231         vectorization requiring -funsafe-math-optimizations.
11232
11233 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11234             Julian Brown  <julian@codesourcery.com>
11235
11236         * config/arm/neon.md (UNSPEC_VABA): Delete.
11237         (UNSPEC_VABAL): Delete.
11238         (UNSPEC_VABS): Delete.
11239         (UNSPEC_VMUL_N): Delete.
11240         (adddi3_neon): New.
11241         (subdi3_neon): New.
11242         (mul<mode>3add<mode>_neon): Make the pattern named.
11243         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
11244         (neon_vadd<mode>): Replace with define_expand, and move the remaining
11245         unspec parts...
11246         (neon_vadd<mode>_unspec): ...to this.
11247         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
11248         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
11249         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
11250         (neon_vaba<mode>): Rewrite in terms of vabd.
11251         (neon_vabal<mode>): Rewrite in terms of vabdl.
11252         (neon_vabs<mode>): Rewrite without unspec.
11253         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
11254         (*arm_subdi3): Likewise.
11255         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
11256         No_op attribute to disable assembly output checks.
11257         * config/arm/arm_neon.h: Regenerated.
11258         * doc/arm-neon-intrinsics.texi: Regenerated.
11259
11260 2010-07-02  Jan Hubicka  <jh@suse.cz>
11261
11262         * ipa-split.c (split_function): For aggregate values, set the return
11263         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
11264         *<retval> = fncall.part ().
11265         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
11266
11267 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11268
11269         * config/arm/neon.md (UNSPEC_VAND): Delete.
11270         (UNSPEC_VBIC): Delete.
11271         (UNSPEC_VCLZ): Delete.
11272         (UNSPEC_VCNT): Delete.
11273         (UNSPEC_VEOR): Delete.
11274         (UNSPEC_VORN): Delete.
11275         (UNSPEC_VORR): Delete.
11276         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
11277         core registers too.
11278         (anddi3_neon): Likewise.
11279         (orndi3_neon): Likewise.
11280         (bicdi3_neon): Likewise.
11281         (xordi3_neon): Likewise.
11282         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
11283         rid of unspec and handle unused operand.
11284         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
11285         * config/arm/predicates.md (imm_for_neon_logic_operand):
11286         Require TARGET_NEON.
11287         (imm_for_neon_inv_logic_operand): Likewise.
11288         * config/arm/arm.md (define_split for logical_binary_operator):
11289         Disable for NEON registers.
11290         (anddi3): Add new define_expand, and rename the insn.  Disable
11291         this insn for NEON, where anddi3_neon now applies.
11292         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
11293         (iordi3): As for anddi3.
11294         (xordi3): Likewise.
11295         * config/arm/neon.ml (Vand): Split DImode variants and mark them
11296         as No_op to disable testing for exact instruction match.
11297         (Vorr): Likewise.
11298         (Veor): Likewise.
11299         (Vbic): Likewise.
11300         (Vorn): Likewise.
11301         * config/arm/arm_neon.h: Regenerated.
11302         * doc/arm-neon-intrinsics.texi: Regenerated.
11303
11304 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11305
11306         * expr.h (emit_stack_probe): Declare.
11307         * explow.c (emit_stack_probe): Make global.
11308         (anti_adjust_stack_and_probe): Fix comments.
11309         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11310         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11311         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11312         * config/sparc/sparc.c: Include except.h.
11313         (sparc_emit_probe_stack_range): New function.
11314         (output_probe_stack_range): Likewise.
11315         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
11316         built-in stack checking is enabled.
11317         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
11318         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11319         (probe_stack_range): New insn.
11320
11321 2010-07-02  Richard Guenther  <rguenther@suse.de>
11322
11323         PR target/43958
11324         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
11325         for argument alignment.
11326
11327 2010-07-02  Jan Hubicka  <jh@suse.cz>
11328
11329         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
11330         walk backwards from entry_bb to check only those basic block of header
11331         that might lead to execution of split part.
11332         (consider_split) ... here.
11333         (find_return_bb): Allow assignment in return BB.
11334         (find_retval): New.
11335         (split_function): Fix name of cloned function; take care of updating
11336         return value in return_bb containing move.
11337
11338 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
11339
11340         PR target/44771
11341         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
11342         used variable insn.
11343
11344 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11345
11346         * implicit-zee.c (combine_reaching_defs): Fix long lines.
11347         (is_set_with_extension_DI): Delete.
11348         (struct zero_extend_info): New structure.
11349         (add_removable_zero_extend): New function.
11350         (find_removable_zero_extends): Use note_stores to find SETs.
11351         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
11352
11353 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11354
11355         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
11356         is_miss_rate_acceptable. Pull total_positions computation
11357         out of the loops.  Early return if miss_positions exceeds
11358         the acceptable threshold.
11359         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
11360         is_miss_rate_acceptable after renaming of compute_miss_rate.
11361
11362 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
11363
11364         PR middle-end/44576
11365         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
11366         of 1000) for miss rate if the address diference is greater than or
11367         equal to the cache line size (the two reference will never hit the
11368         same cache line).
11369
11370 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
11371
11372         PR target/42835
11373         * config/arm/arm-modes.def (CC_NOTB): New mode.
11374         * config/arm/arm.c (get_arm_condition_code): Handle it.
11375         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
11376         * config/arm/arm.md (subsi3_compare0_c): New pattern.
11377         (compare_scc): Now a define_and_split.  Add a number of extra
11378         splitters before it.
11379
11380         PR target/42172
11381         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
11382         and ZERO_EXTEND.
11383         (arm_rtx_costs_1): Likewise.
11384         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
11385         * config/arm/arm.md (is_arch6): New attribute.
11386         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
11387         extendqisi2): Tighten the code somewhat, avoiding invalid
11388         RTL to occur in the expander patterns.
11389         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
11390         (thumb1_zero_extendhisi2_v6): Delete.
11391         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
11392         (thumb1_extendhisi2_v6): Delete.
11393         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
11394         (thumb1_extendqisi2_v6): Delete.
11395         (zero_extendhisi2 for register input splitter): New.
11396         (zero_extendqisi2 for register input splitter): New.
11397         (thumb1_extendhisi2 for register input splitter): New.
11398         (extendhisi2 for register input splitter): New.
11399         (extendqisi2 for register input splitter): New.
11400         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
11401         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
11402         and add support for a register alternative requiring a split.
11403         (thumb1_zero_extendqisi2): Likewise.
11404         (arm_zero_extendqisi2): Likewise.
11405         (arm_extendhisi2): Likewise.
11406         (arm_extendqisi2): Likewise.
11407
11408 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11409
11410         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
11411         instead of an unspec.
11412         (neon_expand_vector_init): Likewise.
11413         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
11414         (UNSPEC_VDUP_LANE): Delete.
11415         (UNSPEC VDUP_N): Delete.
11416         (UNSPEC_VGET_HIGH): Delete.
11417         (UNSPEC_VGET_LANE): Delete.
11418         (UNSPEC_VGET_LOW): Delete.
11419         (UNSPEC_VMVN): Delete.
11420         (UNSPEC_VSET_LANE): Delete.
11421         (V_double_vector_mode): New.
11422         (vec_set<mode>_internal): Make code emitted match that for the
11423         corresponding intrinsics.
11424         (vec_setv2di_internal): Likewise.
11425         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
11426         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
11427         (neon_vset_lane<mode>): Combine double and quad patterns and
11428         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
11429         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
11430         (neon_vdup_n<mode>): Rewrite RTL without unspec.
11431         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
11432         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
11433         with neon_vdup_lanev2di, adjusting the pattern from the latter
11434         to be predicable for consistency.
11435         (neon_vdup_lane<mode>_internal): New.
11436         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
11437         to avoid using an unspec.
11438         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
11439         (neon_vdup_lanev2di): Turn into a define_expand.
11440         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
11441         (neon_vget_high<mode>): Replace with....
11442         (neon_vget_highv16qi): New pattern using canonical RTL.
11443         (neon_vget_highv8hi): Likewise.
11444         (neon_vget_highv4si): Likewise.
11445         (neon_vget_highv4sf): Likewise.
11446         (neon_vget_highv2di): Likewise.
11447         (neon_vget_low<mode>): Replace with....
11448         (neon_vget_lowv16qi): New pattern using canonical RTL.
11449         (neon_vget_lowv8hi): Likewise.
11450         (neon_vget_lowv4si): Likewise.
11451         (neon_vget_lowv4sf): Likewise.
11452         (neon_vget_lowv2di): Likewise.
11453
11454         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
11455         test for this emitting vmov.
11456         (Vset_lane): Likewise.
11457         (Vdup_n): Likewise.
11458         (Vmov_n): Likewise.
11459
11460         * doc/arm-neon-intrinsics.texi: Regenerated.
11461
11462 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
11463
11464         * config/arm/neon.md (vec_extractv2di): Correct error in register
11465         numbering to reconcile with neon_vget_lanev2di.
11466
11467 2010-07-02  Richard Guenther  <rguenther@suse.de>
11468
11469         * tree-ssa-structalias.c (pt_solution_set_var): New function.
11470         * tree-ssa-alias.h (pt_solution_set_var): Declare.
11471         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
11472         points-to information.
11473
11474 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
11475
11476         * config/s390/s390.c (override_options): Adopt prefetching
11477         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
11478
11479 2010-07-02  Jan Hubicka  <jh@suse.cz>
11480
11481         * df-problems.c (df_kill_notes): Do not collect dead  notes.
11482         (df_set_note): Just call add_reg_note.
11483         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
11484         df_create_unused_note): Do not deal with lists of old notes.
11485         (df_note_bb_compute): Likewise.
11486
11487 2010-07-02  Richard Guenther  <rguenther@suse.de>
11488
11489         * tree-ssa-structalias.c (find_func_aliases): Handle
11490         pointer alignment via BIT_AND_EXPR.
11491         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
11492
11493 2010-07-02  Richard Guenther  <rguenther@suse.de>
11494
11495         * tree-data-ref.c (initialize_data_dependence_relation): Handle
11496         mismatching number of dimensions properly.
11497
11498 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11499
11500         PR target/44707
11501         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
11502         (lo_sum (high ...) ...) patterns generated by earlier passes.
11503
11504 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11505
11506         * doc/install.texi (Prerequisites): Document Perl requirement on
11507         Solaris 2.
11508         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
11509
11510 2010-07-02  Richard Guenther  <rguenther@suse.de>
11511
11512         PR middle-end/44777
11513         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
11514
11515 2010-07-02  Jan Hubicka  <jh@suse.cz>
11516
11517         PR middle-end/44706
11518         * predict.c (predict_paths_for_bb): Handle case when control dependence
11519         BB has only abnormal edges.
11520
11521 2010-07-02  Richard Guenther  <rguenther@suse.de>
11522
11523         PR tree-optimization/44748
11524         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
11525         the embedded conversion in MEM_REFs.
11526
11527 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
11528
11529         * reload.c: Include toplev.h.
11530         * recog.c:  Likewise.
11531         * Makefile.in: Adjust dependencies.
11532
11533 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
11534
11535         PR debug/44694
11536         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
11537         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
11538
11539 2010-07-01  Richard Guenther  <rguenther@suse.de>
11540
11541         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
11542         types for offsets.
11543
11544 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
11545
11546         PR target/44732
11547         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
11548         Fix argument types.
11549
11550 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
11551
11552         PR target/44727
11553         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11554         Make sure operand 0 dies.
11555
11556 2010-07-01  Richard Guenther  <rguenther@suse.de>
11557
11558         PR middle-end/42834
11559         PR middle-end/44468
11560         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
11561         * doc/generic.texi (References to storage): Document MEM_REF.
11562         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
11563         (print_call_name): Likewise.
11564         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
11565         (build_simple_mem_ref_loc): New function.
11566         (mem_ref_offset): Likewise.
11567         * tree.h (build_simple_mem_ref_loc): Declare.
11568         (build_simple_mem_ref): Define.
11569         (mem_ref_offset): Declare.
11570         * fold-const.c: Include tree-flow.h.
11571         (operand_equal_p): Handle MEM_REF.
11572         (build_fold_addr_expr_with_type_loc): Likewise.
11573         (fold_comparison): Likewise.
11574         (fold_unary_loc): Fold
11575         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
11576         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
11577         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
11578         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
11579         (ptr_deref_may_alias_ref_p_1): Likewise.
11580         (ao_ref_base_alias_set): Properly differentiate base object for
11581         offset and TBAA.
11582         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
11583         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
11584         (indirect_refs_may_alias_p): Likewise.
11585         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
11586         chasing code.
11587         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
11588         (call_may_clobber_ref_p_1): Likewise.
11589         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
11590         * expr.c (expand_assignment): Handle MEM_REF.
11591         (store_expr): Handle MEM_REFs from STRING_CSTs.
11592         (store_field): If expanding a MEM_REF of a non-addressable
11593         decl use bitfield operations.
11594         (get_inner_reference): Handle MEM_REF.
11595         (expand_expr_addr_expr_1): Likewise.
11596         (expand_expr_real_1): Likewise.
11597         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
11598         * alias.c (ao_ref_from_mem): Handle MEM_REF.
11599         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
11600         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
11601         (dr_analyze_indices): Likewise.
11602         (dr_analyze_alias): Likewise.
11603         (object_address_invariant_in_loop_p): Likewise.
11604         * gimplify.c (mark_addressable): Handle MEM_REF.
11605         (gimplify_cond_expr): Build MEM_REFs.
11606         (gimplify_modify_expr_to_memcpy): Likewise.
11607         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
11608         (gimple_fold_indirect_ref): Adjust.
11609         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
11610         * tree.def (MEM_REF): New tree code.
11611         * tree-dfa.c: Include toplev.h.
11612         (get_ref_base_and_extent): Handle MEM_REF.
11613         (get_addr_base_and_unit_offset): New function.
11614         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
11615         * gimple-fold.c (may_propagate_address_into_dereference): Handle
11616         MEM_REF.
11617         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
11618         accesses if the array has just one dimension.  Remove always true
11619         parameter.  Do not require type compatibility here.
11620         (maybe_fold_offset_to_component_ref): Remove.
11621         (maybe_fold_stmt_indirect): Remove.
11622         (maybe_fold_reference): Remove INDIRECT_REF handling.
11623         Fold back to non-MEM_REF.
11624         (maybe_fold_offset_to_address): Simplify.  Deal with type
11625         mismatches here.
11626         (maybe_fold_reference): Likewise.
11627         (maybe_fold_stmt_addition): Likewise.  Also handle
11628         &ARRAY + I in addition to &ARRAY[0] + I.
11629         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
11630         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
11631         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
11632         * tree-ssa.c (useless_type_conversion_p): Make most pointer
11633         conversions useless.
11634         (warn_uninitialized_var): Handle MEM_REF.
11635         (maybe_rewrite_mem_ref_base): New function.
11636         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
11637         to SSA form.
11638         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
11639         INDIRECT_REF handling.
11640         (copy_tree_body_r): Handle MEM_REF.
11641         * gimple.c (is_gimple_addressable): Adjust.
11642         (is_gimple_address): Likewise.
11643         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
11644         invariant base are invariant.
11645         (is_gimple_min_lval): Adjust.
11646         (is_gimple_mem_ref_addr): New function.
11647         (get_base_address): Handle MEM_REF.
11648         (count_ptr_derefs): Likewise.
11649         (get_base_loadstore): Likewise.
11650         * gimple.h (is_gimple_mem_ref_addr): Declare.
11651         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
11652         * tree-cfg.c (verify_address): New function, split out from ...
11653         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
11654         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
11655         INDIRECT_REFs.
11656         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
11657         INDIRECT_REF.  Allow conversions.
11658         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
11659         a register does not change its size.
11660         (verify_types_in_gimple_reference): Verify MEM_REF.
11661         (verify_gimple_assign_single): Disallow INDIRECT_REF.
11662         Handle MEM_REF.
11663         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
11664         New.
11665         (mark_address_taken): Handle MEM_REF.
11666         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
11667         (get_asm_expr_operands): Pass opf_not_non_addressable.
11668         (get_expr_operands): Handle opf_[not_]non_addressable.
11669         Handle MEM_REF.  Remove INDIRECT_REF handling.
11670         * tree-vrp.c (check_array_ref): Handle MEM_REF.
11671         (search_for_addr_array): Likewise.
11672         (check_array_bounds): Likewise.
11673         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
11674         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
11675         (ref_always_accessed_p): Likewise.
11676         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
11677         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
11678         Handle MEM_REF.
11679         * cgraphbuild.c (mark_load): Properly check for NULL result
11680         from get_base_address.
11681         (mark_store): Likewise.
11682         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
11683         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
11684         handling for MEM_REF.
11685         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
11686         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
11687         * builtins.c (stabilize_va_list_loc): Use the function ABI
11688         valist type if we couldn't canonicalize the argument type.
11689         Always dereference with the canonical va-list type.
11690         (maybe_emit_free_warning): Handle MEM_REF.
11691         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
11692         memmove to memcpy.
11693         * builtins.c (fold_builtin_memory_op): Use ref-all types
11694         for all memcpy foldings.
11695         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
11696         (build_outer_var_ref): Likewise.
11697         (scan_omp_1_op): Likewise.
11698         (lower_rec_input_clauses): Likewise.
11699         (lower_lastprivate_clauses): Likewise.
11700         (lower_reduction_clauses): Likewise.
11701         (lower_copyprivate_clauses): Likewise.
11702         (expand_omp_atomic_pipeline): Likewise.
11703         (expand_omp_atomic_mutex): Likewise.
11704         (create_task_copyfn): Likewise.
11705         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
11706         Remove old union trick.  Initialize constant offsets.
11707         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
11708         INDIRECT_REF.  Init base_alias_set properly.
11709         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
11710         (vn_reference_fold_indirect): Adjust for MEM_REFs.
11711         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
11712         for ARRAY_REFs.
11713         (may_insert): Remove.
11714         (visit_reference_op_load): Do not test may_insert.
11715         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
11716         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
11717         a field to store the constant offset this op applies.
11718         (run_scc_vn): Adjust prototype.
11719         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
11720         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
11721         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
11722         bother about volatile qualifiers on pointers.
11723         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
11724         * tree-ssa-loop-ivopts.c
11725         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
11726         (strip_offset_1): Likewise.
11727         (find_interesting_uses_address): Replace INDIRECT_REF handling with
11728         MEM_REF handling.
11729         (get_computation_cost_at): Likewise.
11730         * ipa-pure-const.c (check_op): Handle MEM_REF.
11731         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
11732         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
11733         and constants.
11734         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
11735         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
11736         (eliminate_local_variables_1): Likewise.
11737         (create_call_for_reduction_1): Likewise.
11738         (create_loads_for_reductions): Likewise.
11739         (create_loads_and_stores_for_name): Likewise.
11740         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
11741         (ssa_accessed_in_tree): Handle MEM_REF.
11742         (ssa_accessed_in_assign_rhs): Likewise.
11743         (update_type_size): Likewise.
11744         (analyze_accesses_for_call_stmt): Likewise.
11745         (analyze_accesses_for_assign_stmt): Likewise.
11746         (transform_access_sites): Likewise.
11747         (transform_allocation_sites): Likewise.
11748         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
11749         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11750         not handle INDIRECT_REF.
11751         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
11752         (cond_store_replacement): Likewise.
11753         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11754         MEM_REF, no not handle INDIRECT_REFs.
11755         (insert_into_preds_of_block): Properly initialize avail.
11756         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
11757         for ARRAY_REFs.  Properly handle reference lookups that
11758         require a bit re-interpretation.
11759         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
11760         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
11761         (build_ref_for_offset_1): Remove.
11762         (build_ref_for_offset): Build MEM_REFs.
11763         (gate_intra_sra): Disable for now.
11764         (sra_ipa_modify_expr): Handle MEM_REF.
11765         (ipa_early_sra_gate): Disable for now.
11766         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
11767         MEM_REF handling.
11768         (disqualify_base_of_expr): Likewise.
11769         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
11770         MEM_REF handling.
11771         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
11772         Use mem_ref_offset.  Remove bogus folding.
11773         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
11774         (make_fancy_name_1): Add support for MEM_REF.
11775         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
11776         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
11777         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
11778         (compute_complex_ancestor_jump_func): Likewise.
11779         (ipa_analyze_virtual_call_uses): Likewise.
11780         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
11781         INDIRECT_REF folding with more generalized MEM_REF folding.
11782         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
11783         (forward_propagate_addr_into_variable_array_index): Also handle
11784         &ARRAY + I in addition to &ARRAY[0] + I.
11785         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
11786         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
11787         creates assignments with overlap.
11788         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
11789         (get_frame_field): Likewise.
11790         (get_nonlocal_debug_decl): Likewise.
11791         (convert_nonlocal_reference_op): Likewise.
11792         (struct nesting_info): Add mem_refs pointer-set.
11793         (create_nesting_tree): Allocate it.
11794         (convert_local_reference_op): Insert to be folded mem-refs.
11795         (fold_mem_refs): New function.
11796         (finalize_nesting_tree_1): Perform defered folding of mem-refs
11797         (free_nesting_tree): Free the pointer-set.
11798         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
11799         (vectorizable_load): Likewise.
11800         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
11801         (propagate_with_phi): Likewise.
11802         * tree-object-size.c (addr_object_size): Handle MEM_REFs
11803         instead of INDIRECT_REFs.
11804         (compute_object_offset): Handle MEM_REF.
11805         (plus_stmt_object_size): Handle MEM_REF.
11806         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
11807         for &MEM_REF.
11808         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
11809         (symbol_marked_for_renaming): Likewise.
11810         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
11811         (fold-const.o): Add $(TREE_FLOW_H).
11812         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
11813         (find_func_clobbers): Likewise.
11814         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
11815         (decompose_access): Likewise.
11816         (replace_field_acc): Likewise.
11817         (replace_field_access_stmt): Likewise.
11818         (insert_new_var_in_stmt): Likewise.
11819         (get_stmt_accesses): Likewise.
11820         (reorg_structs_drive): Disable.
11821         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
11822         (ix86_canonical_va_list_type): Likewise.
11823
11824 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
11825
11826         PR other/44566
11827         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
11828         * target.def (struct gcc_target): Replace enum reg_class with
11829         reg_class_t in hook argument / return types.
11830         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
11831         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
11832         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11833         * targhooks.h (default_branch_target_register_class): Likewise.
11834         (default_ira_cover_classes, default_secondary_reload): Likewise.
11835         (default_memory_move_cost, default_register_move_cost): Likewise.
11836         * targhooks.c (default_branch_target_register_class): Likewise.
11837         (default_ira_cover_classes, default_secondary_reload): Likewise.
11838         (default_memory_move_cost, default_register_move_cost): Likewise.
11839         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
11840         * bt-load.c (branch_target_load_optimize): Likewise.
11841         * ira.c (setup_cover_and_important_classes): Likewise.
11842         * ira-costs.c (copy_cost): Likewise.
11843         * reload1.c (emit_input_reload_insns): Likewise.
11844         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11845         * config/frv/frv.c (frv_secondary_reload): Likewise.
11846         * config/s390/s390.c (s390_secondary_reload): Likewise.
11847         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
11848         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
11849         (ix86_register_move_cost): Likewise.
11850         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
11851         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
11852         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
11853         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
11854         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
11855         (rs6000_ira_cover_classes): Likewise.
11856         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
11857         * config/picochip/picochip-protos.h (picochip_secondary_reload):
11858         Likewise.
11859         * config/pa/pa.c (pa_secondary_reload): Likewise.
11860         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
11861         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
11862         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
11863         * doc/tm.texi: Regenerate.
11864
11865 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
11866
11867         PR bootstrrap/44726
11868         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
11869         use.
11870         (build_alias_set_optimal_p): Likewise.
11871         (build_base_obj_set_for_drs): Likewise.
11872
11873 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
11874
11875         * target.def: Remove comment about licensing problems of function
11876         declarations.
11877
11878         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
11879         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
11880         * doc/tm.texi: Regenerate.
11881
11882         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
11883         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
11884
11885         * target.def (enum_va_list_p): Use DEFHOOK.
11886         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
11887         Rename ptype to ptree.
11888         * doc/tm.texi: Regenerate.
11889
11890         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
11891         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
11892         * doc/tm.texi: Regenerate.
11893
11894         * target.def (memory_move_cost): Use DEFHOOK.
11895         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
11896         Rename regclass AKA class to rclass.
11897         * doc/tm.texi: Regenerate.
11898
11899         * target.def (pragma_parse): Use DEFHOOK.
11900         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
11901         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
11902         * doc/tm.texi: Regenerate.
11903
11904         * target.def (pass_by_reference): Use DEFHOOK.
11905         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
11906         * doc/tm.texi: Regenerate.
11907
11908         * target.def (resolve_overloaded_builtin): Rename params to arglist.
11909         Use DEFHOOK.
11910         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
11911         * doc/tm.texi: Regenerate.
11912
11913         * target.def (return_pops_args): Use DEFHOOK.
11914         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
11915         Rename stack-size to size.
11916         * doc/tm.texi: Regenerate.
11917
11918         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
11919         last-sched_cycle to last_clock, cur_cycle to clock.
11920         * doc/tm.texi.in: Use @hook.
11921         * doc/tm.texi: Regenerate.
11922
11923         * target.def (print_operand, print_operand_address): Update comment.
11924         (print_operand_punct_valid_p): Likewise.
11925
11926 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11927
11928         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
11929         to rtl.h.
11930         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
11931         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
11932         * rtl-error.h: New.
11933         * regrename.c: Do not include toplev.h. Include rtl-error.h.
11934         * rtl-error.c: Likewise.
11935         * reload.c: Likewise.
11936         * recog.c:  Likewise.
11937         * sel-sched.c: Likewise.
11938         * function.c: Likewise.
11939         * reg-stack.c: Likewise.
11940         * cfgrtl.c: Likewise.
11941         * reload1.c: Likewise.
11942         * final.c: Include rtl-error.
11943         * Makefile.in: Adjust dependencies.
11944
11945 2010-06-30  Jan Hubicka  <jh@suse.cz>
11946
11947         PR middle-end/PR44706
11948         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
11949         to return the value.
11950
11951 2010-06-30  Michael Matz  <matz@suse.de>
11952
11953         PR bootstrap/44699
11954         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
11955         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
11956         a gimple reg, attach the original VDEF to the last store in the
11957         sequence.
11958
11959 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
11960
11961         PR other/44034
11962         * config/darwin.c (darwin_override_options): Use renamed
11963         targetm.asm_out.emit_unwind_label.
11964
11965 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
11966
11967         PR tree-optimization/39799
11968         * tree-inline.c (remap_ssa_name): Initialize variable only if
11969         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
11970
11971 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
11972
11973         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
11974
11975 2010-06-30  Richard Guenther  <rguenther@suse.de>
11976
11977         PR target/44722
11978         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
11979         against oscillation with reverse peephole2.
11980
11981 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
11982
11983         PR target/44721
11984         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
11985         Fix last commit.
11986
11987 2010-06-30  Nick Clifton  <nickc@redhat.com>
11988
11989         * config/rx/rx-modes.def: New file.
11990         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
11991         (CC_REGNUM): Define.
11992         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
11993         register.
11994         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
11995         (SELECT_CC_MODE): Define.
11996         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
11997         (reg:CC CC_REG) instead of (cc0).
11998         (attr "cc"): Delete.
11999         (cbranchsi4): Do not split compare and branch here. Instead move
12000         it to...
12001         (cbranchsi4_<code>): ... here.  New patterns.
12002         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12003         to emit the compare instruction.
12004         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12005         cc_status flags.
12006         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12007         FIRST_PSEUDO_REGNUM.
12008         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12009         (rx_notice_update_cc): Delete.
12010         (rx_cc_modes_compatible): New function.
12011         (flags_needed_for_conditional): New function.
12012         (flags_from_mode): New function.
12013         (rx_compare_redundant): New function - scans backwards through
12014         insn list to find out if condition flags are already set correctly.
12015         (TARGET_CC_MODES_COMPATIBLE): Define.
12016         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12017
12018         * config/rx/rx.h (BRANCH_COST): Define.
12019         (REGISTER_MOVE_COST): Define.
12020         * config/rx/predicates (rx_source_operand): Allow all constant types.
12021         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12022         (tstsi4): New pattern.
12023         * config/rx/rx.c (rx_memory_move_cost): Define.
12024         (TARGET_MEMORY_MOVE_COST): Define.
12025
12026 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12027
12028         * tree.h (block_may_fallthru): Declare here.
12029         * tree-flow.h (block_may_fallthru): Do not declare here.
12030         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12031         bitmap.h
12032         * Makefile.in (c-typeck.o): Update dependencies.
12033
12034 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12035
12036         PR debug/44694
12037         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12038         * cselib.c (cfa_base_preserved_regno): New static variable.
12039         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12040         of REGNO (cfa_base_preserved_val->locs->loc).
12041         (cselib_preserve_cfa_base_value): Add regno argument, set
12042         cfa_base_preserved_regno to it.
12043         (cselib_invalidate_regno): Allow removal of registers other than
12044         cfa_base_preserved_regno from cfa_base_preserved_val.
12045         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12046         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12047         of MEM addresses, if not on LHS.
12048         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12049         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12050
12051 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12052
12053         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12054         static variables.
12055         (peep2_buf_position): New static function.
12056         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12057         peephole2_optimize): Use it.
12058         (peep2_attempt, peep2_update_life): New static functions, broken out
12059         of peephole2_optimize.
12060         (peep2_fill_buffer): New static function.
12061         (peephole2_optimize): Change the main loop to try to fill the buffer
12062         with the maximum number of insns before matching them against
12063         peepholes.  Use a forward scan.  Remove special case for targets with
12064         conditional execution.
12065         * genrecog.c (change_state): Delete dead code.
12066         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12067         Rewrite so as not to expect the second insn to have had a peephole
12068         applied yet.
12069
12070 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12071
12072         * genhooks.c (emit_findices): Cast field precision to int.
12073         (emit_documentation): Likewise.
12074
12075 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12076
12077         PR tree-optimization/43801
12078         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12079         if old_decl was DECL_ONE_ONLY.
12080
12081         PR debug/44668
12082         * dwarf2out.c (add_accessibility_attribute): New function.
12083         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12084         instead of adding DW_AT_accessibility manually.
12085         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12086         gen_typedef_die): Use it.
12087
12088 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12089
12090         * vmsdbgout.c (full_name): Just output the file name if not native.
12091
12092 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12093
12094         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12095         (funcnam_table): New static table.
12096         (funcnum_table): New static table.
12097         (write_rtnbeg): Write value saved in funcnum_table.
12098         (write_rtnend): Write value saved in funcnum_table.
12099         (vmsdbgout_begin_function): Save current function info in
12100         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12101         (vmsdbgout_finish): Iterate over funcnum_table.
12102
12103 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12104
12105         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12106         (vmsdbgout_type_decl): Declare
12107         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12108         (FUNC_EPILOGUE_LABEL): New macro
12109         (vmsdbgout_begin_epilogue): New function.
12110         (vmsdbgout_type_decl): New function.
12111
12112 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12113
12114         * vmsdbg.h: Update copyright.
12115
12116 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12117
12118         * vmsdbg.h (DST_K_TBG): New DST constant.
12119         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12120         (write_modbeg): Cast module_language to avoid warning.
12121         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12122
12123 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12124
12125         PR other/44034
12126         * target.def, doc/tm.texi.in, genhooks.c: New files.
12127         * target.h: Instead of defining individual hook members,
12128         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12129         include target.def.
12130         * target-def.h: Instead of defining individual hook initializers,
12131         include target-hooks-def.h.
12132         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12133         targetm.live_on_entry -> targetm.extra_live_on_entry
12134         targetm.sched.md_finish ->targetm.sched.finish
12135         targetm.sched.md_init -> targetm.sched.init
12136         targetm.sched.md_init_global -> targetm.sched.init_global
12137         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12138         targetm.asm_out.except_table_label ->
12139           targetm.asm_out.emit_except_table_label
12140         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12141         targetm.target_help -> targetm.help
12142         targetm.vectorize.builtin_support_vector_misalignment ->
12143           targetm.vectorize.support_vector_misalignment
12144         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12145         targetm.file_start_file_directive ->
12146          targetm.asm_file_start_file_directive
12147         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12148         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12149         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12150         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12151           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12152         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12153           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12154         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12155         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12156         * Makefile.in (TARGET_H): Depend on target.def.
12157         (TARGET_DEF_H): Depend on target-hooks-def.h.
12158         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12159         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12160         * doc/tm.texi: Regenerate.
12161
12162         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12163
12164         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12165         (targetm.sched.init): Likewise.
12166
12167 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12168
12169         PR bootstrap/44713
12170         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12171         (function_arg_advance_32): Const-ify TYPE parameter.
12172         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12173         (ix86_function_arg_advance): Change type of NAMED to bool.
12174         (function_arg_32): Const-ify CUM and TYPE parameters.
12175         (function_arg_64): Likewise.  Change type of NAMED to bool.
12176         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12177         to bool.
12178         (ix86_function_arg): Change type of NAMED to bool.
12179         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
12180         last argument as a bool.
12181
12182 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12183
12184         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12185         (OVERRIDE_OPTIONS): Add note of obsolescence.
12186         Replace references with references to TARGET_OPTION_OVERRIDE.
12187         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12188          the macro).
12189         * targhooks.c (default_target_option_override): New function.
12190         * targhooks.h (default_target_option_override): Declare.
12191         * target.h (struct gcc_target): Add override member to
12192         target_option member.
12193         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
12194         targetm.target_option.override call.
12195         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
12196         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
12197
12198 2010-06-29  Jan Hubicka  <jh@suse.cz>
12199
12200         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
12201
12202 2010-06-29  Jan Hubicka  <jh@suse.cz>
12203
12204         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
12205         unreachable.
12206         (rebuild_frequencies): New function.
12207         * predict.h (rebuild_frequencies): Declare.
12208         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
12209         entry block and edge reaching new_entry.
12210         (tree_function_versioning): When doing partial cloning, rebuild
12211         frequencies when done.
12212         * passes.c (execute_function_todo): Use rebild_frequencies.
12213
12214 2010-06-29  Richard Guenther  <rguenther@suse.de>
12215
12216         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
12217         * tree-flow.h (enum noalias_state): Remove.
12218         (struct var_ann_d): Remove noalias_state member.
12219
12220 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12221
12222         PR target/43902
12223         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
12224         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
12225         (maddhidi4): Likewise.
12226
12227         Revert parts of the change for PR25130.
12228         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12229         MEM_ALIAS_SET.
12230
12231 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12232
12233         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
12234         targetm.calls.function_incoming_arg, and
12235         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
12236         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
12237         * target.h (struct gcc_target): Add function_arg_advance,
12238         function_arg, and function_incoming_arg fields.
12239         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
12240         (TARGET_FUNCTION_INCOMING_ARG): Define.
12241         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
12242         and TARGET_FUNCTION_INCOMING_ARG.
12243         * targhooks.h (default_function_arg_advance): Declare.
12244         (default_function_arg, default_function_incoming_arg): Declare.
12245         * targhooks.c (default_function_arg_advance): New function.
12246         (default_function_arg, default_function_incoming_arg): New function.
12247         * config/i386/i386.c (function_arg_advance): Rename to...
12248         (ix86_function_arg_advance): ...this.  Make static.
12249         (function_arg): Rename to...
12250         (ix86_function_arg): ...this.  Make static.
12251         (TARGET_FUNCTION_ARG_ADVANCE): Define.
12252         (TARGET_FUNCTION_ARG): Define.
12253         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
12254         (FUNCTION_ARG): Delete.
12255         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
12256         (function_arg): Delete prototype.
12257
12258 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12259
12260         * reginfo.c (init_reg_sets_1): Adjust comments.
12261         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
12262         * calls.c (prepare_call_address): Likewise.
12263         (emit_call_1): Use targetm.calls.return_pops_args.
12264         (expand_call): Likewise.
12265         * function.c (assign_parms): Likewise.
12266         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
12267         * target.h (struct gcc_target) [struct calls]: Add
12268         return_pops_args field.
12269         * targhooks.h (default_return_pops_args): Declare.
12270         * targhooks.c (default_return_pops_args): Define.
12271         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
12272         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
12273         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
12274         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
12275         documentation.
12276         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
12277         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
12278         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
12279         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
12280         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
12281         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
12282         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
12283         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
12284         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
12285         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
12286         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
12287         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
12288         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
12289         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
12290         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
12291         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
12292         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
12293         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
12294         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
12295         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
12296         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
12297         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
12298         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
12299         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
12300         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
12301         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
12302         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
12303         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
12304         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
12305         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
12306         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
12307         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
12308         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
12309         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
12310         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
12311         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
12312         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
12313         * config/i386/i386.c (ix86_return_pops_args): Make static.
12314         Constify arguments.
12315         (TARGET_RETURN_POPS_ARGS): Define.
12316         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
12317         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
12318         (TARGET_RETURN_POPS_ARGS): Define.
12319         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
12320         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
12321         (TARGET_RETURN_POPS_ARGS): Define.
12322
12323 2010-06-29  Richard Guenther  <rguenther@suse.de>
12324
12325         PR middle-end/44667
12326         * tree-inline.c (initialize_inlined_parameters): Make sure
12327         to remap the inlined parameter variable substitutions types.
12328
12329 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12330
12331         PR rtl-optimization/44659
12332         * combine.c (make_compound_operation) <SUBREG>: Do not return the
12333         result of force_to_mode if it partially re-expanded the compound.
12334
12335 2010-06-28  Jan Hubicka  <jh@suse.cz>
12336
12337         PR middle-end/44671
12338         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
12339         RESULT_DECL.
12340
12341 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
12342
12343         * double-int.h (force_fit_type_double): Remove declaration.
12344         * double-int.c (force_fit_type_double): Move to tree.c.
12345         * tree.h (force_fit_type_double): Declare.
12346         * tree.h (force_fit_type_double): Moved from double-int.c. Use
12347         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
12348         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
12349         * convert.c (convert_to_pointer): Adjust call to
12350         force_fit_type_double.
12351         * tree-vrp.c (extract_range_from_assert,
12352         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
12353         * fold-const.c: Update comment.
12354         (int_const_binop, fold_convert_const_int_from_int,
12355         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
12356         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
12357         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
12358         round_up_loc): Adjust call to force_fit_type_double.
12359
12360 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12361
12362         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
12363
12364 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12365
12366         * tree-sra.c (convert_callers): New parameter, change fndecls of
12367         recursive calls.
12368         (modify_function): Pass the old decl to convert_callers.
12369
12370 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12371
12372         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
12373         ipa_check_create_node_params and ipa_initialize_node_params with
12374         checking asserts they are not necessary.
12375
12376 2010-06-28  Jan Hubicka  <jh@suse.cz>
12377
12378         PR tree-optimization/44687
12379         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
12380
12381 2010-06-28  Martin Jambor  <mjambor@suse.cz>
12382
12383         PR c++/44535
12384         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
12385         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
12386         instead of BINFO_BASE_BINFO.
12387
12388 2010-06-28  Michael Matz  <matz@suse.de>
12389
12390         PR middle-end/44592
12391         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
12392         proper VDEF chain for intermediate stores in the sequence.
12393
12394 2010-06-28  Jan Hubicka  <jh@suse.cz>
12395
12396         PR tree-optimization/44357
12397         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
12398         uninlinable functions.
12399
12400 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12401
12402         * config.gcc (powerpc*-*-*): Handle titan.
12403         * config/rs6000/rs6000.c (titan_cost): New costs.
12404         (rs6000_override_options): Add "titan" to processor_target_table.
12405         Add Titan to branch alignment logic.
12406         Correctly set rs6000_cost for titan.
12407         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
12408         * config/rs6000/titan.md: New file.
12409         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
12410
12411 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12412
12413         * tree-browser.c (TB_history_stack): Convert to a VEC.
12414         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
12415         (TB_history_prev): Likewise.
12416
12417 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
12418
12419         * vec.h (vec_heap_free): Add parentheses around free.
12420
12421 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
12422
12423         * system.h: Poison GCC_EXCEPT_H for front-end files.
12424
12425         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
12426         langhook.
12427         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
12428         Define to NULL by default.
12429         * except.h: Define GCC_EXCEPT_H.
12430         (doing_eh): Remove prototype.
12431         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
12432         (lang_protect_cleanup_actions): Remove.
12433         * except.c (lang_protect_cleanup_actions): Remove.
12434         (doing_eh): Remove.
12435         (gen_eh_region): Don't check doing_eh here.
12436         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
12437         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
12438         instead of lang_protect_cleanup_actions.
12439         * omp-low.c (maybe_catch_exception): Likewise.
12440         * Makefile.in: Update dependencies.
12441
12442 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
12443
12444         * cgraph.h (struct varpool_node): new used_from_object_file flag.
12445         (struct cgraph_local_info): new used_from_object_file flag.
12446         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
12447         (cgraph_clone_node): initialize used_from_object_file.
12448         (cgraph_create_virtual_clone): initialize used_from_object_file.
12449         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
12450         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
12451         when compiling with -fwhole-program.
12452         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
12453         internal resolver.
12454         * ipa.c (function_and_variable_visibility): Set externally_visible
12455         flag of varpool_node if used_from_object_file flag is set.
12456         (cgraph_externally_visible_p): check used_from_object_file flag.
12457         * doc/invoke.texi (-fwhole-program option): Change description of
12458         externally_visible attribute accordingly.
12459         * doc/extend.texi (externally_visible): Ditto.
12460
12461 2010-06-27  Jan Hubicka  <jh@suse.cz>
12462
12463         * params.def (max-inline-insns-auto): Default to 40.
12464         * doc/invoke.texi (max-inline-insns-auto): Document the change.
12465
12466 2010-06-27  Jan Hubicka  <jh@suse.cz>
12467
12468         PR middle-end/44671
12469         PR middle-end/44686
12470         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
12471         signature change.
12472         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
12473         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
12474
12475 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
12476
12477         * target.h (struct gcc_target): Add register_move_cost field.
12478         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
12479         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
12480         * targhooks.c (default_register_move_cost): New function.
12481         * targhooks.h (default_register_move_cost): Declare function.
12482         * defaults.h (REGISTER_MOVE_COST): Delete.
12483         * ira-int.h (ira_register_move_cost): Update comment.
12484         * ira.c (ira_register_move_cost): Update comment.
12485         * reload.h (register_move_cost): Declare.
12486         * reginfo.c (register_move_cost): New function.
12487         (move_cost): Update comment.
12488         (init_move_cost, memory_move_secondary_cost): Replace
12489         REGISTER_MOVE_COST with register_move_cost.
12490         * postreload.c (reload_cse_simplify_set): (Ditto.).
12491         * reload.c (find_valid_class, find_reloads): (Ditto.).
12492         * reload1.c (choose_reload_regs): (Ditto.).
12493         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
12494         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
12495         * doc/md.texi (can_create_pseudo_p): Update documentation.
12496
12497         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12498         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12499         * config/i386/i386.h (ix86_memory_move_cost): Make static.
12500         (TARGET_MEMORY_MOVE_COST): Define.
12501
12502         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
12503         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
12504         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
12505         (TARGET_MEMORY_MOVE_COST): Define.
12506
12507 2010-06-27  Richard Guenther  <rguenther@suse.de>
12508
12509         PR tree-optimization/44683
12510         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
12511         false edge from the inverted condition.
12512
12513 2010-06-27  Richard Guenther  <rguenther@suse.de>
12514
12515         PR middle-end/44684
12516         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
12517         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
12518         for register LHS.  Or non-store assignments.
12519
12520 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12521
12522         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
12523         (sparc_emit_set_const64): Likewise.  Remove disabled code.
12524         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
12525         (sparc_emit_set_const64): Likewise.
12526
12527 2010-06-26  Catherine Moore  <clm@codesourcery.com>
12528
12529         * config/mips/mips.md (alu_type): New attribute.
12530         (type): Infer type from alu_type.
12531         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
12532         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
12533         *subsi3_extended, negsi2, negdi2, *low<mode>,
12534         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
12535         xor<mode>3, *nor<mode>3,
12536         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
12537         *zero_extendhi_truncqi):  Set alu_type instead of type.
12538
12539 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
12540
12541         * config/alpha/alpha.c (alpha_need_linkage): Adjust
12542         splay_tree_new_ggc call.
12543         (alpha_use_linkage): Likewise.
12544
12545 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
12546
12547         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
12548         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
12549         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
12550         (static_specs): Remove switches_need_spaces.
12551         (process_command, do_self_spec): Hardcode handling "-o" instead of
12552         checking switches_need_spaces.
12553         * system.h (SWITCHES_NEED_SPACES): Poison.
12554
12555 2010-06-26  Richard Guenther  <rguenther@suse.de>
12556
12557         PR tree-optimization/44393
12558         * tree-loop-distribution.c (generate_loops_for_partition): Fix
12559         stmt removal and VOP renaming.
12560         (generate_memset_zero): Remove redundant stmt updating.
12561         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
12562         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
12563
12564 2010-06-26  Jan Hubicka  <jh@suse.cz>
12565
12566         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
12567         edges comming from header are equivalent.
12568         (visit_bb): Handle PHIs correctly.
12569         * tree-inline.c (copy_phis_for_bb): Be able to copy
12570         PHI from entry edge.
12571         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
12572
12573 2010-06-26  Richard Guenther  <rguenther@suse.de>
12574
12575         PR middle-end/44674
12576         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
12577         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
12578
12579 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
12580
12581         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
12582         add_infile, alloc_switch): New.
12583         (process_command): Remove variable lang_n_infiles.  Process
12584         options in a single pass.  Use new functions for allocating
12585         infiles and switches arrays.  Properly skip operands of
12586         -Xpreprocessor and -Xassembler.
12587
12588 2010-06-26  Jan Hubicka  <jh@suse.cz>
12589
12590         PR middle-end/44671
12591         * cgraphunit.c (cgraph_function_versioning): Remove wrong
12592         cgraph_make_decl_local call; fix typo copying RTL data.
12593
12594 2010-06-25  DJ Delorie  <dj@redhat.com>
12595
12596         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
12597         (m32c_output_aligned_common): Likewise.
12598         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
12599         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
12600         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
12601         (m32c_register_pragmas): Register it.
12602         * config/m32c/m32c.c (m32c_get_pragma_address): New.
12603         (m32c_insert_attributes): Set #pragma address decls volatile.
12604         (pragma_entry_eq): New.
12605         (pragma_entry_hash): New.
12606         (m32c_note_pragma_address): New.
12607         (m32c_get_pragma_address): New.
12608         (m32c_output_aligned_common): New.
12609         * doc/extend.texi: Document the new pragma.
12610
12611         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
12612         also.
12613         * config/m32c/predicates.md (m32c_any_operand): Check the code
12614         instead of memory_operand so as to allow matching volatile MEMs.
12615         (m32c_nonimmediate_operand): Likewise.
12616         (mra_operand): Allow volatiles.
12617
12618 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
12619
12620         PR debug/44610
12621         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
12622         address if the offset is unknown.
12623
12624 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
12625
12626         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
12627         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
12628         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
12629         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
12630         to ia64_start_function. Invoke it.
12631         * config/ia64/ia64.c (ia64_start_function): Call new function
12632         dwarf2out_vms_debug_main_pointer.
12633
12634 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12635
12636         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
12637         statements computing the true predicate.
12638
12639 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12640
12641         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
12642         to boolean_true_node.
12643         (reset_bb_predicate): New.
12644         (predicate_bbs): Call reset_bb_predicate.
12645
12646 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12647
12648         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
12649         (tree_if_conversion): Returns true when something has been changed.
12650         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
12651         changed something.
12652
12653 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
12654
12655         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
12656         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
12657         * tree-if-conv.c: Include dbgcnt.h.
12658         (tree_if_conversion): Use if_conversion_tree to count the number of
12659         if-convertible loops.
12660
12661 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
12662
12663         * common.opt (fprefetch-loop-arrays): Re-define
12664         -fprefetch-loop-arrays as a tri-state option with the initial
12665         value of -1.
12666         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
12667         pass only when flag_prefetch_loop_arrays > 0.
12668         * toplev.c (process_options): Note that, with tri-states,
12669         flag_prefetch_loop_arrays>0 means prefetching is enabled.
12670         * config/i386/i386.c (override_options): Enable prefetching at -O3
12671         for a set of CPUs that sw prefetching is helpful.
12672         (software_prefetching_beneficial_p): New.  Return TRUE if software
12673         prefetching is beneficial for the given CPU.
12674
12675 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12676
12677         PR rtl-optimization/44326
12678         * implicit-zee.c (find_removable_zero_extends): Replace
12679         INSN_P with NONDEBUG_INSN_P.
12680
12681 2010-06-25  Martin Jambor  <mjambor@suse.cz>
12682
12683         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
12684         (struct ipa_node_params): Removed the modification_analysis_done flag.
12685         (ipa_is_param_modified): Removed.
12686         (ipa_analyze_node): Declare.
12687         (ipa_compute_jump_functions): Remove declaration.
12688         (ipa_count_arguments): Likewise.
12689         (ipa_detect_param_modifications): Likewise.
12690         (ipa_analyze_params_uses): Likewise.
12691         * ipa-prop.c (struct param_analysis_info): New type.
12692         (visit_store_addr_for_mod_analysis): Removed.
12693         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
12694         moved down in the file.
12695         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
12696         (ipa_count_arguments): Made static.
12697         (mark_modified): New function.
12698         (is_parm_modified_before_call): New function.
12699         (compute_pass_through_member_ptrs): New parameter parms_info, call
12700         is_parm_modified_before_call instead of ipa_is_param_modified.
12701         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
12702         it to compute_pass_through_member_ptrs.
12703         (ipa_compute_jump_functions): New parameter parms_info, pass it to
12704         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
12705         on the callee if it is analyzed.  Made static.
12706         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
12707         is_parm_modified_before_call instead of ipa_is_param_modified.
12708         (ipa_analyze_call_uses): New parameter parms_info, pass it to
12709         ipa_analyze_indirect_call_uses.
12710         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
12711         ipa_analyze_call_uses.
12712         (ipa_analyze_params_uses): New parameter parms_info, pass it to
12713         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
12714         (ipa_analyze_node): New function.
12715         (ipa_print_node_params): Do not dump the modified flag.
12716         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
12717         it.  Do not stream the modified parameter flag.
12718         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
12719         it.  Do not stream the modified parameter flag.
12720         * ipa-cp.c (ipcp_analyze_node): Removed.
12721         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
12722         with only a call to ipa_analyze_node.
12723         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
12724         node with only a call to ipa_analyze_node.
12725
12726 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12727
12728         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
12729
12730 2010-06-25  Jan Hubicka  <jh@suse.cz>
12731
12732         * tree-pass.h (pass_split_functions): Declare.
12733         * opts.c (decode_options): Enable function splitting at -O2
12734         * timevar.def (TV_IPA_FNSPLIT): New macro.
12735         * ipa-split.c: New file.
12736         * common.opt (-fpartial-inlining): New flag.
12737         * Makefile.in (ipa-split.o): New object file.
12738         * passes.c (init_optimization_passes): Add ipa-split.
12739         * params.def (partial-inlining-entry-probability): New parameters.
12740         * doc/invoke.texi (-fpartial-inlining): New.
12741
12742 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12743
12744         PR 44665
12745         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
12746         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
12747         (gimplify_expr): Likewise.
12748
12749 2010-06-25  Martin Jambor  <mjambor@suse.cz>
12750
12751         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
12752         statements instead of bailing out on them.
12753         (ipa_analyze_indirect_call_uses): Do not require that loads from the
12754         parameter are in the same BB as the condition.  Update comments.
12755
12756 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
12757
12758         PR middle-end/43866
12759         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
12760         true or always false, return NULL_TREE.
12761         (tree_unswitch_single_loop): Optimize conditions even when reaching
12762         max-unswitch-level parameter.  If num > 0, optimize first all conditions
12763         using entry checks, then do still reachable block discovery and consider
12764         only conditions in still reachable basic blocks in the loop.
12765
12766         PR tree-optimization/44539
12767         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
12768         the call doesn't have LHS, but has VDEF.
12769
12770 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
12771
12772         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
12773         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
12774         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
12775         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
12776         * system.h (MODIFY_TARGET_NAME): Poison.
12777
12778 2010-06-25  Alan Modra  <amodra@gmail.com>
12779
12780         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
12781         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
12782         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12783         CMODEL_LARGE as default.
12784         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
12785         (offsettable_ok_by_alignment): Delete.
12786         (rs6000_emit_move): Remove mcmodel=medium optimization.
12787
12788 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
12789
12790         With large parts from Jim Wilson:
12791         PR target/43902
12792         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
12793         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12794         * optabs.c (optab_for_tree_code): Likewise.
12795         (expand_widen_pattern_expr): Likewise.
12796         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
12797         out of execute_optimize_widening_mul.
12798         (convert_plusminus_to_widen): New function.
12799         (execute_optimize_widening_mul): Use the two new functions.
12800         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
12801         Remove code to generate widening multiply-accumulate.  Add support
12802         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
12803         * gimple-pretty-print.c (dump_ternary_rhs): New function.
12804         (dump_gimple_assign): Call it when appropriate.
12805         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
12806         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
12807         (expand_gimple_stmt_1): Likewise.
12808         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
12809         WIDEN_MULT_MINUS_EXPR.
12810         * tree-ssa-operands.c (get_expr_operands): Likewise.
12811         * tree-inline.c (estimate_operator_cost): Likewise.
12812         * gimple.c (extract_ops_from_tree_1): Renamed from
12813         extract_ops_from_tree.  Add new arg for a third operand; fill it.
12814         (gimple_build_assign_stat): Support operations with three operands.
12815         (gimple_build_assign_with_ops_stat): Likewise.
12816         (gimple_assign_set_rhs_from_tree): Likewise.
12817         (gimple_assign_set_rhs_with_ops_1): Renamed from
12818         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
12819         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
12820         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
12821         WIDEN_MULT_MINUS_EXPR.
12822         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
12823         (extract_ops_from_tree_1): Adjust declaration.
12824         (gimple_assign_set_rhs_with_ops_1): Likewise.
12825         (gimple_build_assign_with_ops): Pass NULL for last operand.
12826         (gimple_build_assign_with_ops3): New macro.
12827         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
12828         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
12829         functions.
12830         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
12831         (verify_gimple_assign): Call it.
12832         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
12833         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
12834         functions for dealing with three-operand statements.
12835         * tree.c (commutative_ternary_tree_code): New function.
12836         * tree.h (commutative_ternary_tree_code): Declare it.
12837         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
12838         ternary statements.
12839         (gimple_assign_nonzero_warnv_p): Likewise.
12840         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
12841         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
12842         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
12843         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
12844         (struct hashtable_expr): New member ternary in the union.
12845         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
12846         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
12847         (iterative_hash_hashable_expr): Likewise.
12848         (print_expr_hash_elt): Handle EXPR_TERNARY.
12849         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
12850         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
12851         statements.  Handle GIMPLE_TERNARY_RHS.
12852
12853 2010-06-25  Jan Hubicka  <jh@suse.cz>
12854
12855         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
12856
12857 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
12858
12859         PR c/44517
12860         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
12861         parameters are not good.
12862         (c_parser_parameter_declaration): Error unknown type name if the type
12863         name can't start declaration specifiers.
12864
12865 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
12866
12867         * gcc.c (translate_options): Don't mention +e in comment.
12868         (process_command): Don't handle +e specially.
12869
12870 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
12871
12872         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
12873
12874         * ira-build.c (merge_hard_reg_conflicts): New function.
12875         (create_cap_allocno, copy_info_to_removed_store_destinations,
12876         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
12877         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
12878         (remove_unnecessary_allocnos, remove_low_level_allocnos)
12879         copy_nifo_to_removed_store_destination): Use them.
12880         * ira-lives.c (make_hard_regno_born): New function, split out of
12881         make_regno_born.
12882         (make_allocno_born): Likewise.
12883         (make_hard_regno_dead): New function, split out of make_regno_dead.
12884         (make_allocno_dead): Likewise.
12885         (inc_register_pressure): New function, split out of set_allocno_live.
12886         (dec_register_pressure): New function, split out of clear_allocno_live.
12887         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
12888         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
12889         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
12890         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
12891         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
12892         mark_pseudo_regno_live.
12893         (process_bb_node_lives): Use mark_pseudo_regno_live,
12894         make_hard_regno_born and make_allocno_dead.
12895         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
12896         set_allocno_live, clear_allocno_live): Delete functions.
12897
12898         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
12899         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
12900         functions.
12901         (ira_flattening): Use ira_parent_allocno.
12902         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
12903         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
12904
12905         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
12906         statement.
12907
12908         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
12909         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
12910         minmax_set_iter_cond, minmax_set_iter_next,
12911         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
12912         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
12913         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
12914         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
12915         uses changed.
12916
12917         * ira-int.h (struct live_range, live_range_t): Renamed from struct
12918         ira_allocno_live_range and allocno_live_range_t; all uses changed.
12919         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
12920         All uses changed.
12921
12922 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
12923
12924         * thumb2.md (thumb2_tlobits_cbranch): Delete.
12925         (peephole2 to convert zero_extract/compare of single bit to
12926          lshift/compare): New.
12927
12928 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
12929
12930         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
12931         recursive call and call to 'int_const_binop'.
12932         (build_range_check, fold_cond_expr_with_comparison, unextend,
12933         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
12934         multiple_of_p): Adjust call to const_binop.
12935
12936 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
12937
12938         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
12939         determine size of XFmode operand.
12940         (XFmode extended DFmode push splitter): Ditto.
12941         (XFmode extended SFmode push splitter): Ditto.
12942
12943 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12944
12945         PR target/44588
12946         * config/i386/i386.md (extract_code): New.
12947         (<u>divmodqi4): Likewise.
12948         (divmodhiqi3): Likewise.
12949         (udivmodhiqi3): Likewise.
12950         (<u>divqi3): Remvoved.
12951
12952 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
12953
12954         PR middle-end/44492
12955         * recog.h (struct recog_data): Add is_asm field.
12956         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
12957         present in constraints of inline-asm operand and memory operand
12958         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
12959         (extract_insn): Initialize recog_data.is_asm.
12960         * doc/md.texi (Constraints): Document operand side-effect rules.
12961
12962 2010-06-24  Andi Kleen  <ak@linux.intel.com>
12963
12964         * c-parser.c (c_parser_conditional_expression): Call
12965         warn_for_omitted_condop.
12966         * doc/invoke.texi: Document omitted condop warning.
12967
12968 2010-06-24  Nick Clifton<nickc@redhat.com>
12969
12970         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
12971         insn in the sequence is a jump insn before setting its label.
12972
12973 2010-06-24  Alan Modra  <amodra@gmail.com>
12974
12975         * collect2.c (main): Match exactly --version and --help.
12976
12977 2010-06-24  DJ Delorie  <dj@redhat.com>
12978
12979         * config/m32c/m32c-pragma.c: Don't include rtl.h.
12980
12981 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
12982
12983         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
12984         using X87MODEF mode iterator.
12985         (pushsf splitter): Macroize splitter using P mode iterator.
12986         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
12987         mode iterator.
12988
12989         (*movxf_internal): Rename from *movxf_integer.
12990         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
12991         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
12992         (*movdf_internal): Rename from *movdf_integer.
12993         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
12994         (*movsf_internal): Rename from *movdf_1.
12995
12996 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
12997
12998         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
12999         (const_gimple_seq_node): Removed typedefs.
13000
13001         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13002         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13003
13004 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13005
13006         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13007         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13008         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13009         and CODE_FOR_vec_extract_lo_v4df.
13010
13011         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13012         Changed to define_insn_and_split.
13013         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13014         (vec_extract_lo_v16hi): Likewise.
13015         (vec_extract_lo_v32qi): Likewise.
13016         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13017         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13018
13019 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13020
13021         PR target/44640
13022         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13023         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13024         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13025         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13026         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13027
13028         PR target/44640
13029         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13030
13031         PR other/44644
13032         * df-core.c (struct df): Rename to df_d.
13033         * df.h (struct df): Likewise.
13034         * dse.h (struct df): Remove forward declaration.
13035         * recog.h (struct insn_data): Rename to:
13036         (struct_insn_data_d).  Adjusted all users.
13037
13038 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13039
13040         PR ada/22220
13041         * doc/install.texi: Update requirements to build GNAT.
13042
13043 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13044
13045         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13046         enum type.
13047         (m68k_sched_attr_opx_type): Remove unreachable return.
13048         (m68k_sched_attr_opy_type): Likewise.
13049         (m68k_sched_attr_size): Likewise.
13050         (sched_get_opxy_mem_type): Likewise.
13051         (m68k_sched_attr_op_mem): Likewise.
13052
13053 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13054
13055         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13056         new statement and adjust VDEF only if necessary.  Remove superfluous
13057         call to maybe_clean_or_replace_eh_stmt.
13058         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13059         copy the flags.
13060         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13061         * tree-inline.c (copy_bb): ...and not there.
13062
13063 2010-06-22  Cary Coutant  <ccoutant@google.com>
13064
13065         * dwarf2out.c (is_nested_in_subprogram): New function.
13066         (should_move_die_to_comdat): Use it.
13067         (copy_ancestor_tree): Don't mark DIEs here.
13068         (copy_decls_walk): Start walk from root of newly-added tree;
13069         mark DIEs here instead.
13070
13071 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13072
13073         * config/i386/i386.md (unit): Also check sseishft1.
13074
13075 2010-06-22  Jan Hubicka  <jh@suse.cz>
13076
13077         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13078         enabled.
13079
13080 2010-06-22  Jan Hubicka  <jh@suse.cz>
13081
13082         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13083         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13084         Return true if something changed.
13085         * df.h (df_confluence_function_n): Return bool.
13086         * df-core.c (df_worklist_propagate_forward,
13087         df_worklist_propagate_backward): Track changes and ages.
13088         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13089         track ages.
13090         * dse.c (dse_confluence_n): Return always true.
13091
13092 2010-06-22  Jan Hubicka  <jh@suse.cz>
13093
13094         * bitmap.c (bitmap_clear_bit): Micro optimize.
13095
13096 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13097
13098         * config/i386/i386.md (SWI1248x): New mode iterator.
13099         (SWI48x): Ditto.
13100         (SWI12): Ditto.
13101         (SWI24): Ditto.
13102
13103         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13104         SWI1248x mode iterator.
13105         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13106         using SWI124 mode iterator.
13107         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13108         mode iterator.
13109         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13110         *pushdi2_prologue_rex64 using P mode iterator.
13111         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13112         using SWI48 mode iterator.
13113         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13114         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13115         using SWI1248x mode iterator.
13116         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13117         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13118         SWI48 mode iterator.
13119         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13120         iterator.
13121         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13122         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13123         SWI12 mode iterator.
13124         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13125         SWI12 mode iterator.
13126         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13127         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13128         SWI24 mode iterator.
13129         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13130         SWI48 mode iterator.
13131         (mov<mode>_insn_1): New expander.
13132         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13133         using SWI48x mode iterator.
13134
13135         (*movoi_internal_avx): Rename from *movoi_internal.
13136         (*movti_internal_rex64): Rename from *movti_rex64.
13137         (*movti_internal_sse): Rename from *movti_sse.
13138         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13139         (*movdi_internal): Rename from *movdi_2.
13140         (*movsi_internal): Rename from *movsi_1.
13141         (*movhi_internal): Rename from *movhi_1.
13142         (*movqi_internal): Rename from *movqi_1.
13143
13144         (insv): Update the call to gen_movsi_insv_1 for rename.
13145         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13146
13147 2010-06-22  Jan Hubicka  <jh@suse.cz>
13148
13149         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13150         to ...
13151         (execute_todo) ... this one.
13152
13153 2010-06-22  Alan Modra  <amodra@gmail.com>
13154
13155         PR target/44364
13156         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13157         * caller-save.c (insert_restore, insert_save): Use non-validate
13158         form of adjust_address.
13159
13160 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13161
13162         PR target/39690
13163         * config/pa/pa.c (override_options): Disable
13164         -freorder-blocks-and-partition.
13165
13166 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13167
13168         PR target/44615
13169         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13170
13171         * config/i386/i386.md (type): Add sseishft1
13172
13173         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13174         (ppro_insn_load): Likewise.
13175         (ppro_insn_store): Likewise.
13176         (ppro_insn_both): Likewise.
13177
13178         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13179         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13180         for type.
13181         (*vec_extractv2di_1_avx): Likewise.
13182         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13183         type.  Remove atom_unit.
13184         (*vec_extractv2di_1_sse2): Likewise.
13185
13186 2010-06-21  DJ Delorie  <dj@redhat.com>
13187
13188         * diagnostic.h (diagnostic_classification_change_t): New.
13189         (diagnostic_context): Add history and push/pop list.
13190         (diagnostic_push_diagnostics): Declare.
13191         (diagnostic_pop_diagnostics): Declare.
13192         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
13193         from pragmas in a history chain instead of the global table.
13194         (diagnostic_push_diagnostics): New.
13195         (diagnostic_pop_diagnostics): New.
13196         (diagnostic_report_diagnostic): Scan history chain to find state
13197         of diagnostics as of the diagnostic location.
13198         * opts.c (set_option): Pass UNKNOWN_LOCATION to
13199         diagnostic_classify_diagnostic.
13200         (enable_warning_as_error): Likewise.
13201         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
13202         use in the history chain.
13203         * doc/extend.texi: Document pragma GCC diagnostic changes.
13204
13205 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
13206
13207         * dwarf2out.c (add_linkage_name): New function.  Don't add
13208         anything to DW_TAG_member DIEs.
13209         (add_name_and_src_coords_attributes): Use it.
13210         (gen_variable_die): Call it for C++ static data members if
13211         specification is DW_TAG_member.
13212
13213         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
13214         C++ char16_t and char32_t.
13215
13216         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
13217         * genattrtab.c: Include vecprim.h.
13218         (cached_attrs, cached_attr_count, attrs_seen_once,
13219         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
13220         attrs_cached_after): New variables.
13221         (find_attrs_to_cache): New function.
13222         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
13223         (write_test_expr): Add attrs_cached argument, return it too,
13224         attempt to cache non-const attributes used more than once in
13225         a single case handling.
13226         (write_attr_get): Use find_attrs_to_cache, for caching candidates
13227         emit cached_* variables.  Adjust write_attr_set callers.
13228         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
13229         to find attributes that should be cached in this block.  Adjust
13230         write_test_expr callers.
13231         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
13232         callers.
13233         (make_automaton_attrs): Adjust write_test_expr caller.
13234
13235         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
13236         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
13237         (make_automaton_attrs): If find_tune_attr returns non-NULL,
13238         write separate internal_dfa_insn_code_* and insn_default_latency_*
13239         functions for each attribute's value and emit init_sched_attrs
13240         function and function pointers.
13241         * genattr.c (const_attrs, reservations): New variables.
13242         (gen_attr): Add const attributes to const_attrs vector.
13243         (check_tune_attr, find_tune_attr): New functions.
13244         (main): Add reservations to reservations vector.  If find_tune_attr
13245         returns true, add prototype for init_sched_attrs and make
13246         internal_dfa_insn_code and insn_default_latency function pointers,
13247         otherwise define init_sched_attrs as dummy macro.
13248         * cfgexpand.c: Include insn-attr.h.
13249         (gimple_expand_cfg): Call init_sched_attrs.
13250
13251         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
13252
13253         PR target/44575
13254         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
13255         va_arg from a set of register save slots into a temporary,
13256         if the container is bigger than type size, do the copying
13257         using smaller mode or using memcpy.
13258
13259         PR bootstrap/44426
13260         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
13261         prototype.
13262         (sel_print_to_dot): Remove macro.
13263         (sel_print): Likewise.  New prototype.
13264         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
13265         (sel_print): New function.
13266
13267 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13268
13269         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
13270         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
13271
13272 2010-06-21  Nick Clifton  <nickc@redhat.com>
13273
13274         * config/rx/rx.h (PTRDIFF_TYPE): Define.
13275         (SMALL_REGISTER_CLASS): Define (to zero).
13276         (PRINT_OPERAND): Delete.
13277         (PRINT_OPERAND_ADDRESS): Delete.
13278         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
13279         (rx_print_operand_address): Delete prototype.
13280         * config/rx/rx.c (rx_print_operand): Make static.
13281         Allow %H and %L to handle CONST_DOUBLEs.
13282         (rx_print_operand_address): Make static.
13283         (rx_gen_move_template): Rename local variable 'template' to
13284         out_template.
13285         (rx_function_arg): Do not pass unknown sized objects in registers.
13286         (TARGET_PRINT_OPERAND): Define.
13287         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13288
13289 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
13290
13291         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
13292
13293 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
13294
13295         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
13296         stack-alignment for simple leaf-functions.
13297
13298 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13299
13300         * doc/install.texi: Document bootstrap-lto.
13301
13302 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
13303
13304         PR debug/44248
13305         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
13306         (input_function): Drop them here, if VTA is disabled.
13307
13308 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
13309
13310         PR target/44546
13311         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
13312         New predicate.
13313         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
13314         ix86_swapped_fp_comparsion_operator instead of
13315         ix86_fp_comparison_operator.
13316
13317         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
13318         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
13319         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
13320         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
13321         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
13322         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
13323
13324 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
13325
13326         PR other/32998
13327         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
13328         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
13329         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
13330         (decode_cmdline_option): Update for this return value.  Set
13331         orig_option_with_args_text field.  Set arg field for unknown
13332         options.  Make static.
13333         (decode_cmdline_options_to_array): New.
13334         (prune_options): Update handling of find_opt return value.
13335         * opts.c (read_cmdline_option): Take decoded option.  Return void.
13336         (read_cmdline_options): Take decoded options.
13337         (decode_options): Add parameters for decoded options.  Use
13338         decode_cmdline_options_to_array.  Use decoded options for -O
13339         scan.  Use integral_argument for -O parameters.  Update call to
13340         read_cmdline_options.
13341         (enable_warning_as_error): Update handling of find_opt return value.
13342         * opts.h: Update comment on unknown options.
13343         (struct cl_decoded_option): Update comments on opt_index and arg.
13344         Add orig_option_with_args_text.
13345         (decode_cmdline_option): Remove.
13346         (decode_cmdline_options_to_array): Declare.
13347         (decode_options): Update prototype.
13348         * toplev.c (save_argv): Remove.
13349         (save_decoded_options, save_decoded_options_count): New.
13350         (read_integral_parameter): Remove.
13351         (print_switch_values): Use decoded options.
13352         (toplev_main): Don't set save_argv.  Update call to decode_options.
13353         * toplev.h (read_integral_parameter): Remove.
13354         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
13355
13356 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
13357
13358         PR target/44072
13359         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
13360         immediate.
13361         * constraints.md (Pw, Px): New constraints.
13362         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
13363
13364 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
13365
13366         * config/i386/sse.md (fma4modesuffixf4): Removed.
13367         (ssemodesuffixf2s): Likewise.
13368         (ssemodesuffixf4): Likewise.
13369         (ssemodesuffixf2c): Likewise.
13370         (ssescalarmodesuffix2s): Likewise.
13371         (avxmodesuffixf2c): Likewise.
13372         (ssemodesuffix): New.
13373         (ssescalarmodesuffix): Likewise.
13374         Update patterns with ssemodesuffix and ssescalarmodesuffix.
13375
13376 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
13377
13378         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
13379
13380 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13381
13382         * stor-layout.c (debug_rli): Remove unused local variables.
13383
13384 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13385
13386         PR rtl-optimization/40900
13387         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
13388         original expression for later reuse.
13389         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
13390         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
13391
13392 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
13393
13394         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
13395         double_int_fits_in_uhwi_p): Implement as static inline.
13396         (double_int_xor): New inline function.
13397         (double_int_lrotate, double_int_rrotate, double_int_max,
13398         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13399         double_int_smin): Declare.
13400         (lrotate_double, rrotate_double): Remove declaration.
13401         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
13402         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
13403         (double_int_lrotate, double_int_rrotate, double_int_max,
13404         double_int_umax, double_int_smax, double_int_min, double_int_umin,
13405         double_int_smin): New function.
13406         * fold-const.c (int_const_binop): Clean up, use double_int_*
13407         functions.
13408         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
13409         double_int_* and immed_double_int_const functions.
13410
13411 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13412
13413         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
13414         * function.c (types_used_by_cur_var_decl): Likewise.
13415         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
13416
13417 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
13418
13419         * tree.h (record_layout_info): Change type of pending_statics field
13420         to a VEC.
13421         * stor-layout.c (start_record_layout): Store NULL into
13422         pending_statics.
13423         (debug_rli): Call debug_vec_tree instead of debug_tree.
13424         (place_field): Likewise.
13425         (finish_record_layout): Likewise.
13426
13427 2010-06-18  Alan Modra  <amodra@gmail.com>
13428
13429         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
13430
13431 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13432
13433         PR target/43740
13434         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
13435         for SET source operand from SET destination operand.
13436
13437 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
13438
13439         PR rtl-optimization/39871
13440         * reload1.c (init_eliminable_invariants): For flag_pic, disable
13441         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
13442         (function_invariant_p): Rule out a plus of frame or arg pointer with
13443         a SYMBOL_REF.
13444         * ira.c (find_reg_equiv_invariant_const): Likewise.
13445
13446 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
13447
13448         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
13449         print_operand_address and puts to output the operand for CONST.
13450
13451 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
13452
13453         PR debug/44572
13454         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
13455         hook.
13456
13457 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13458
13459         * v850-protos.h (print_operand): Delete.
13460         (print_operand_address): Delete.
13461         * v850.h (PRINT_OPERAND): Delete.
13462         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13463         (PRINT_OPERAND_ADDRESS): Delete.
13464         * v850.c (print_operand_address): Rename to...
13465         (v850_print_operand_address): ...this.  Make static. Call
13466         v850_print_operand.
13467         (print_operand): Rename to...
13468         (v850_print_operand): ...this.  Make static.  Call
13469         v850_print_operand_address.
13470         (v850_print_operand_punct_valid_p): New function.
13471         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13472         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13473
13474 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13475
13476         * config/sh/sh-protos.h (print_operand): Delete.
13477         (print_operand_address): Delete.
13478         * config/sh/sh.h (PRINT_OPERAND): Delete.
13479         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13480         (PRINT_OPERAND_ADDRESS): Delete.
13481         * config/sh/sh.c (sh_print_operand_address): Make static.
13482         (sh_print_operand): Make static.  Call sh_print_operand_address
13483         and sh_print_operand.
13484         (sh_print_operand_punct_valid_p): New function.
13485         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13486         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13487
13488 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13489
13490         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
13491         (mcore_print_operand_address): Delete.
13492         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
13493         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13494         (PRINT_OPERAND_ADDRESS): Delete.
13495         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
13496         (mcore_print_operand): Make static.
13497         (mcore_print_operand_punct_valid_p): New function.
13498         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
13499         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13500
13501 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13502
13503         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
13504         (print_operand_address): Delete.
13505         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
13506         (PRINT_OPERAND_ADDRESS): Delete.
13507         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
13508         static.
13509         (m68hc11_print_operand): Make static.
13510         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13511
13512 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13513
13514         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
13515         (m32r_print_operand_address): Delete.
13516         * config/m32r/m32r.h (m32r_punct_chars): Delete.
13517         (PRINT_OPERAND): Delete.
13518         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13519         (PRINT_OPERAND_ADDRESS): Delete.
13520         * config/m32r/m32r.c (m32r_punct_chars): Make static.
13521         (m32r_print_operand_address): Make static.
13522         (m32r_print_operand): Make static.
13523         (m32r_print_operand_punct_valid_p): New function.
13524         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13525         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13526
13527 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13528
13529         * config/iq2000/iq2000-protos.h (print_operand): Delete.
13530         (print_operand_address): Delete.
13531         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
13532         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13533         (PRINT_OPERAND_ADDRESS): Delete.
13534         (iq2000_print_operand_punct): Delete.
13535         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
13536         (iq2000_print_operand_address): Make static.
13537         (iq2000_print_operand): Make static.
13538         (iq2000_print_operand_punct_valid_p): New function.
13539         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13540         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13541
13542 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13543
13544         * config/frv/frv-protos.h (frv_print_operand): Delete.
13545         (frv_print_operand_address): Delete.
13546         * config/frv/frv.h (PRINT_OPERAND): Delete.
13547         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13548         (PRINT_OPERAND_ADDRESS): Delete.
13549         * config/frv/frv.c (frv_print_operand_address): Make static.
13550         (frv_print_operand): Make static.
13551         (frv_print_operand_punct_valid_p): New function.
13552         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13553         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13554
13555 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
13556
13557         * tree.h (vec_member): Declare.
13558         * tree.c (vec_member): Define.
13559
13560 2010-06-17  Richard Guenther  <rguenther@suse.de>
13561
13562         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
13563         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
13564
13565 2010-06-17  Richard Guenther  <rguenther@suse.de>
13566
13567         * tree-inline.c (declare_return_variable): Remove bogus code.
13568
13569 2010-06-17  Richard Guenther  <rguenther@suse.de>
13570
13571         * gimplify.c (gimplify_bind_expr): Always promote complex
13572         and vector variables to registers if possible.
13573
13574 2010-06-17  Richard Guenther  <rguenther@suse.de>
13575
13576         * expr.c (get_inner_reference): Use double_int for bit_offset
13577         calculation.
13578
13579 2010-06-16  DJ Delorie  <dj@redhat.com>
13580
13581         * common.opt (-fstrict-volatile-bitfields): new.
13582         * doc/invoke.texi: Document it.
13583         * fold-const.c (optimize_bit_field_compare): For volatile
13584         bitfields, use the field's type to determine the mode, not the
13585         field's size.
13586         * expr.c (expand_assignment): Likewise.
13587         (get_inner_reference): Likewise.
13588         (expand_expr_real_1): Likewise.
13589         * expmed.c (store_fixed_bit_field): Likewise.
13590         (extract_bit_field_1): Likewise.
13591         (extract_fixed_bit_field): Likewise.
13592
13593 2010-06-16  Richard Guenther  <rguenther@suse.de>
13594
13595         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
13596
13597 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
13598
13599         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
13600         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
13601         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
13602         * debug.c: Likewise.
13603         * sdbout.c: Likewise.
13604         * vmsdbgout.c: Likewise.
13605         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
13606         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
13607         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
13608         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
13609         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
13610         * dwarf2out.c (dw_fde_struct): New fields
13611         dw_fde_vms_{end,begin}_prologue.
13612         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
13613         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
13614         (dwarf2out_vms_end_prologue): New function.
13615         (dwarf2out_vms_begin_epilogue): New function.
13616         (dw_val_struct): New value dw_val_class_vms_delta.
13617         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
13618         begin_epilogue for VMS.
13619         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
13620         new static functions.
13621         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
13622         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
13623         static functions.
13624         (print_die): New case dw_val_class_vms_delta.
13625         (attr_checksum): Likewise.
13626         (same_dw_val_p: Likewise.
13627         (size_of_die): Likewise.
13628         (value_format): Likewise.
13629         (output_die): Likewise.
13630         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
13631         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
13632         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
13633         dwarf2out_cfi_begin_epilogue
13634         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
13635
13636 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
13637
13638         * config/cris/cris-protos.h (cris_print_operand): Delete.
13639         (cris_print_operand_address): Delete.
13640         * config/cris/cris.h (PRINT_OPERAND): Delete.
13641         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13642         (PRINT_OPERAND_ADDRESS): Delete.
13643         * config/cris/cris.c (cris_print_operand_address): Make static.
13644         (cris_print_operand): Make static.
13645         (cris_print_operand_punct_valid_p): New function.
13646         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13647         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13648
13649 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
13650
13651         * config/arm/arm-protos.h (arm_print_operand): Delete.
13652         (arm_print_operand_address): Delete.
13653         * config/arm/arm.h (PRINT_OPERAND): Delete.
13654         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13655         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
13656         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
13657         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
13658         (arm_print_operand): Make static.
13659         (arm_print_operand_punct_valid_p): New function.
13660         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
13661         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13662
13663 2010-06-16  Nick Clifton  <nickc@redhat.com>
13664
13665         * config/rx/constraints.md (NEGint4): New constraint.
13666         * config/rx/rx.md (attr cc): Add set_zsc.
13667         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
13668         initialised.
13669         (cmpsf): Likewise.
13670         (call_internal): Clobber the cc0 register.
13671         (call_value_internal): Likewise.
13672         (cstoresi4): Likewise.
13673         (movsieq): Likewise.
13674         (movsine): Likewise.
13675         (addsi3): Add alternative to handle small negative constants.
13676         (sunsi3): Likewise.
13677         (addsi3): Do not set the O bit in the cc0 register.
13678         (adddi3): Likewise.
13679         (subsi3): Likewise.
13680         (subdi3): Likewise.
13681         (andsi3): Reorder alternatives to prefer shorter forms.
13682         (mulsi3): Likewise.
13683         (iorsi3): Likewise.
13684         (negsi2): Note that the cc0 flags are set.
13685         (rotlsi3): Note that only the Z and S bits are set in cc0.
13686         (lshrsi3): Likewise.
13687         (ashlsi3): Likewise.
13688         (subsf3): Use %Q for the MEM operand.
13689         (fix_truncsfsi2): Likewise.
13690         (floatsisf2): Likewise.
13691         (bitset): Remove early clobber from destination.
13692         (bitset_in_memory): Likewise.
13693         (lrintsf2): Clobber the cc0 register.
13694         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
13695         (rx_print_operand): Handle %N.
13696
13697 2010-06-16  Jan Hubicka  <jh@suse.cz>
13698
13699         * df-core.c (df_compact_blocks): Free problem_temps vector.
13700
13701 2010-06-16  Martin Jambor  <mjambor@suse.cz>
13702
13703         PR tree-optimization/43905
13704         * tree-sra.c: Include tree-inline.h.
13705         (create_abstract_origin): Removed.
13706         (modify_function): Version the call graph node instead of creating
13707         abstract origins and dealing with same_body aliases.
13708         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
13709         function is versionable.
13710         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
13711
13712 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
13713
13714         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
13715         (CHOOSE_DYNAMIC_LINKER): Update.
13716
13717 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
13718
13719         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
13720         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
13721         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
13722         *prefetch_3dnow_rex.
13723
13724 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
13725
13726         * target.h (struct asm_out):Add declare_constant_name field.
13727         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13728         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
13729         * output.h (default_asm_declare_constant_name): Declare.
13730         (assemble_label): Update prototype.
13731         * varasm.c (assemble_constant_contents): Use
13732         targetm.asm_out.declare_constant_name target hook.
13733         (assemble_label): Add 'file' argument.
13734         (default_asm_declare_constant_name): New function.
13735         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
13736         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
13737         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
13738
13739         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
13740         * config/darwin.c (darwin_asm_declare_constant_name): New function.
13741         (machopic_output_indirection): Update assemble_label argument list.
13742         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
13743         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
13744
13745 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
13746
13747         PR middle-end/44391
13748         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13749         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
13750
13751 2010-06-15  Richard Guenther  <rguenther@suse.de>
13752
13753         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
13754
13755 2010-06-15  Paul Brook  <paul@codesourcery.com>
13756
13757         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
13758         hard-float ABI.
13759
13760 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
13761
13762         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
13763         don't get a vector type for output.
13764
13765 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
13766
13767         PR fortran/44536
13768         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
13769         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
13770         (LANG_HOOKS_DECLS): Add it.
13771         * gimplify.c (omp_notice_variable): Call
13772         lang_hooks.decls.omp_report_decl.
13773
13774 2010-06-15  Martin Jambor  <mjambor@suse.cz>
13775
13776         PR lto/44464
13777         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
13778         on the newly dead SSA name.
13779
13780 2010-06-15  Alan Modra  <amodra@gmail.com>
13781
13782         * doc/invoke.texi: Add mcmodel to powerpc options.
13783         * configure.ac: Add HAVE_LD_LARGE_TOC test.
13784         * configure: Regenerate.
13785         * config.in: Regenerate.
13786         * config/rs6000/linux64.opt (mcmodel): New.
13787         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
13788         (TARGET_CMODEL, SET_CMODEL): Define.
13789         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
13790         select CMODEL_MEDIUM default.
13791         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
13792         (TARGET_CMODEL): Define default.
13793         * config/rs6000/rs6000.c (cmodel): New variable.
13794         (rs6000_explicit_options): Add cmodel field.
13795         (rs6000_handle_option): Handle -mcmodel.
13796         (create_TOC_reference): Add largetoc_reg param.  Generate high,
13797         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
13798         (rs6000_delegitimize_address): Recognise new toc reference rtl
13799         and minimal-toc rtl.
13800         (rs6000_legitimize_reload_address): Handle new toc references.
13801         (print_operand_address): Handle legitimate_constant_pool_address_p
13802         match before lo_sum.
13803         (rs6000_eliminate_indexed_memrefs): Tidy.
13804         (rs6000_emit_move): Tweak threshold for inlining constants.
13805         Keep rs6000_emit_allocate_stack large stack frame offsets
13806         loaded into r0 inline.
13807         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
13808         (tocrel_base, tocrel_offset): New variables.
13809         (toc_relative_expr_p): Set them here.
13810         (print_operand_address): Skip over any offset on constant pool address.
13811         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
13812         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
13813         (offsettable_ok_by_alignment): New function.
13814         (rs6000_emit_move): Address suitably aligned local symbol_refs
13815         relative to the toc pointer for -mcmodel=medium.
13816         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
13817         strict param.  Allow lo_sum version of addressing.  Verify reg
13818         used for -mminimal-toc and -mcmodel != small.  Update all callers.
13819         * config/rs6000/constraints.md: Update for above change.
13820         * config/rs6000/predicates.md: Likewise.
13821         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
13822         code.
13823         (tls_gd): Split for -mcmodel=medium/large.
13824         (tls_gd_high, tls_gd_low): New.
13825         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
13826         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
13827         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
13828         (largetoc_high, largetoc_low): New.
13829         (cmptf_internal2): Add clobber.
13830         * config/rs6000/rs6000-protos.h: Update.
13831
13832 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
13833
13834         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
13835         true if no prefetch is going to be generated for a given group.
13836         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
13837         estimate the prefetch_count.
13838         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
13839         prefetch count by considering the unroll_factor and prefetch_mod
13840         for is_loop_prefetching_profitable.
13841
13842 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
13843
13844         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
13845         anything if the argument is not a MEM.
13846
13847 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
13848
13849         PR debug/43650
13850         PR debug/44181
13851         PR debug/44247
13852         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
13853         debug stmts.
13854         (canonicalize_loop_ivs): Likewise.
13855
13856 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
13857
13858         PR debug/43656
13859         * haifa-sched.c (setup_insn_reg_pressure_info,
13860         update_register_pressure): Reject debug insns.
13861         (ready_sort): Don't setup reg pressure for debug insns.
13862         (schedule_insn): Don't update reg pressure for debug insns.
13863
13864 2010-06-14  Richard Guenther  <rguenther@suse.de>
13865
13866         * lto-streamer.c (cached_bp): Remove.
13867         (bitpack_delete): Likewise.
13868         (bitpack_create): Likewise.
13869         (bp_get_next_word): Likewise.
13870         (bp_pack_value, bp_unpack_value): Move ...
13871         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
13872         Re-implement.
13873         (struct bitpack_d): Likewise.
13874         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
13875         New inline functions.
13876         * lto-streamer-out.c (lto_output_bitpack): Remove.
13877         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
13878         (pack_value_fields): Adjust.
13879         (lto_write_tree): Likewise.
13880         (output_gimple_stmt): Likewise.
13881         (output_function): Likewise.
13882         * lto-streamer-in.c (input_gimple_stmt): Adjust.
13883         (input_function): Likewise.
13884         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
13885         (lto_input_bitpack): Remove.
13886         (lto_materialize_tree): Adjust.
13887         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
13888         * lto-cgraph.c (lto_output_edge): Adjust.
13889         (lto_output_node): Likewise.
13890         (lto_output_varpool_node): Likewise.
13891         (lto_output_ref): Likewise.
13892         (input_node): Likewise.
13893         (input_varpool_node): Likewise.
13894         (input_ref): Likewise.
13895         (input_edge): Likewise.
13896         (output_node_opt_summary): Likewise.
13897         (input_node_opt_summary): Likewise.
13898         * ipa-pure-const.c (pure_const_write_summary): Likewise.
13899         (pure_const_read_summary): Likewise.
13900         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
13901         (ipa_read_indirect_edge_info): Likewise.
13902         (ipa_write_node_info): Likewise.
13903         (ipa_read_node_info): Likewise.
13904
13905 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13906
13907         PR target/44534
13908         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
13909         (vec_extract_lo_v16hi): Likewise.
13910         (vec_extract_lo_v32qi): Likewise.
13911
13912 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
13913
13914         PR bootstrap/44426
13915         * tree.h (build_call_expr): Don't define as vararg macro, instead
13916         add a prototype.
13917         * builtins.c (build_call_nofold): Remove.
13918         (expand_builtin_int_roundingfn, expand_builtin_pow,
13919         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
13920         expand_builtin_memset_args, expand_builtin_strcmp,
13921         expand_builtin_strncmp, expand_builtin_memory_chk): Use
13922         build_call_nofold_loc instead of build_call_nofold.
13923         (build_call_expr): New function.
13924
13925         PR tree-optimization/44508
13926         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
13927         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
13928         don't eliminate trivially dead stmts.
13929         * tree-vrp.c (vrp_finalize): Pass false as last argument
13930         to substitute_and_fold.
13931         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
13932         to substitute_and_fold.
13933         * tree-ssa-ccp.c (ccp_finalize): Likewise.
13934
13935         PR bootstrap/44509
13936         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
13937
13938 2010-06-14  Ira Rosen  <irar@il.ibm.com>
13939
13940         PR tree-optimization/44507
13941         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
13942         to build initial vector for BIT_AND_EXPR.
13943         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
13944
13945 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
13946
13947         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
13948         adjust z10prop set_attr.
13949
13950 2010-06-13  Jan Hubicka  <jh@suse.cz>
13951
13952         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
13953         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
13954         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
13955         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
13956         datastructure checks into checking asserts.
13957         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
13958         * tree-ssa-sccvn.c (VN_INFO): Likewise.
13959         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
13960         df_ref_create_structure): Likewise.
13961         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
13962         pool_free): Use gcc_checking_assert.
13963         * alias.c (get_alias_set): Likewise.
13964         * var-tracking.c (variable_htab_free, shared_hash_copy,
13965         canonicalize_values_mark, variable_merge_over_cur): Likewise.
13966         * lto-streamer.c (bp_unpack_value): Likewise.
13967
13968 2010-06-13  Richard Guenther  <rguenther@suse.de>
13969
13970         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
13971         Do not stream but initialize TYPE_CANONICAL to NULL.
13972         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
13973         * gimple.c (gimple_types_compatible_p): Disregard
13974         TYPE_STRUCTURAL_EQUALITY_P.
13975         (gimple_register_type): Use TYPE_CANONICAL as cache.
13976         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
13977         before registering common types.
13978         * config/i386/i386.c (ix86_function_arg_boundary): Do not
13979         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
13980         * tree.h (TYPE_CANONICAL): Clarify documentation.
13981
13982 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
13983
13984         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13985         LIBCALL_VALUE): Remove macros.
13986         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
13987         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13988         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13989         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
13990         (ia64_function_value): Make static. Handle receiving the function
13991         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
13992
13993 2010-06-12  Jan Hubicka  <jh@suse.cz>
13994
13995         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
13996         at correct place.
13997
13998 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
13999
14000         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14001
14002 2010-06-12  Jan Hubicka  <jh@suse.cz>
14003
14004         * df-core.c (df_clear_bb_info): New function.
14005         (df_set_blocks): bb_info is always allocated.
14006         (df_get_bb_info): Use block_info_elt_size.
14007         (df_set_bb_info): Likewise.
14008         (df_compact_blocks): Update for new block_info.
14009         (grow_bb_info): New function.
14010         * df-problems.c (df_grow_bb_info): Move to df-core.c
14011         (df_rd_set_bb_info): Remove.
14012         (df_rd_free_bb_info): Do not free block pool.
14013         (df_rd_alloc): Do not create pool, use check for
14014         obstack presence instead of NULL pointer for new blocks.
14015         (df_rd_free): DO not free alloc pool; clear block_info.
14016         (problem_RD): Add size of block info structure.
14017         (df_lr_set_bb_info): Remove.
14018         (df_lr_free_bb_info): Do not free block pool.
14019         (df_lr_alloc): Do not create pool, use check for
14020         obstack presence instead of NULL pointer for new blocks.
14021         (df_lr_free): DO not free alloc pool; clear block_info.
14022         (problem_LR): Add size of block info structure.
14023         (df_live_set_bb_info): Remove.
14024         (df_live_free_bb_info): Do not free block pool.
14025         (df_live_alloc): Do not create pool, use check for
14026         obstack presence instead of NULL pointer for new blocks.
14027         (df_live_free): DO not free alloc pool; clear block_info.
14028         (problem_LIVE): Add size of block info structure.
14029         (problem_CHAIN): Add size of block info structure.
14030         (df_byte_lr_set_bb_info): Remove.
14031         (df_byte_lr_free_bb_info): Do not free block pool.
14032         (df_byte_lr_alloc): Do not create pool, use check for
14033         obstack presence instead of NULL pointer for new blocks.
14034         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14035         (problem_BYTE_LR): Add size of block info structure.
14036         (problem_NOTE): Add size of block info structure.
14037         (df_byte_MD_set_bb_info): Remove.
14038         (df_byte_MD_free_bb_info): Do not free block pool.
14039         (df_byte_MD_alloc): Do not create pool, use check for
14040         obstack presence instead of NULL pointer for new blocks.
14041         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14042         (problem_BD): Add size of block info structure.
14043         * df-scan.c (df_scan_free_internal): Free block pool.
14044         (df_scan_set_bb_info): Remove.
14045         (df_scan_free_bb_info): Check for artificial_defs instead
14046         of bb_info being non-NULL.
14047         (df_scan_alloc): DO not create df_scan_block pool.
14048         (problem_SCAN): Set size of block info.
14049         (df_bb_refs_record): Do not allocate bb_info.
14050         * df.h (df_problem): Add block_info_elt_size.
14051         (struct dataflow): Change block_info to void *.
14052         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14053         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14054         in-line structures.
14055
14056 2010-06-12  Jan Hubicka  <jh@suse.cz>
14057
14058         PR tree-optimize/44485
14059         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14060         containing use of return value of noreturn function.
14061
14062 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14063
14064         * targhooks.c (default_function_value): Don't use
14065         FUNCTION_OUTGOING_VALUE.
14066         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14067         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14068
14069 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14070
14071         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14072         Add crtfastmath.o to extra_parts.
14073         * config/mips/crtfastmath.c: New.
14074         * config/mips/linux.h (ENDFILE_SPEC): New.
14075
14076 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14077
14078         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14079         old_type in parameter.
14080         (gcc_type_for_value): Update call to gcc_type_for_interval.
14081         (compute_type_for_level_1): Renamed compute_type_for_level.
14082         Update call to gcc_type_for_interval.
14083
14084 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14085
14086         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14087         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14088
14089 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14090
14091         * opts-common.c: Include options.h.
14092         (integral_argument): Move from opts.c.
14093         (decode_cmdline_option): New.  Based on read_cmdline_option.
14094         * opts.c (integral_argument): Move to opts-common.c.
14095         (read_cmdline_option): Move most contents to
14096         decode_cmdline_option.  Use %qs in diagnostics.
14097         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14098         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14099         decode_cmdline_option): New.
14100
14101 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14102
14103         PR target/44481
14104         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14105         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14106         (partiysi2_cmp): Ditto.
14107         (*partiyhi2_cmp): Ditto.
14108         (*parityqi2_cmp): Remove.
14109
14110 2010-06-11  Jan Hubicka  <jh@suse.cz>
14111
14112         * bitmap.h (bmp_iter_next_bit): New.
14113         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14114
14115 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14116             Eric Botcazou  <ebotcazou@adacore.com>
14117
14118         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14119         computed cost.
14120
14121 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14122
14123         * config/i386/i386.md (unspec): New define_c_enum.
14124         (unspecv): Ditto.
14125
14126 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14127
14128         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14129
14130 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14131
14132         PR middle-end/44483
14133         * tree-if-conv.c (bb_predicate_s): New struct.
14134         (bb_predicate_p): New.
14135         (bb_has_predicate): New.
14136         (bb_predicate): New.
14137         (set_bb_predicate): New.
14138         (bb_predicate_gimplified_stmts): New.
14139         (set_bb_predicate_gimplified_stmts): New.
14140         (add_bb_predicate_gimplified_stmts): New.
14141         (init_bb_predicate): New.
14142         (free_bb_predicate): New.
14143         (is_predicated): Use bb_predicate.
14144         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14145         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14146         before processing their successors.
14147         (clean_predicate_lists): Removed.
14148         (find_phi_replacement_condition): Use bb_predicate.
14149         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14150         computations.
14151         (insert_gimplified_predicates): New.
14152         (combine_blocks): Call insert_gimplified_predicates.
14153         (tree_if_conversion): Call free_bb_predicate instead of
14154         clean_predicate_lists.
14155
14156 2010-10-11  Paul Brook  <paul@codesourcery.com>
14157
14158         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14159         * config/arm/arm.c (all_architectures): Change v7e-m default to
14160         cortexm4.
14161         * config/arm/arm-cores.def: Add cortex-m4.
14162         * config/arm/arm-tune.md: Regenerate.
14163
14164 2010-06-11  Jan Hubicka  <jh@suse.cz>
14165
14166         * ipa-pure-const.c (special_builtlin_state): New function.
14167         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14168         (propagate_pure_const): Use it.
14169
14170 2010-06-11  Jan Hubicka  <jh@suse.cz>
14171
14172         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14173         (df_live_alloc): Initialize df_live_scratch when initializing
14174         problem_data.
14175         (df_live_transfer_function): Update uses of df_live_scratch.
14176         (df_live_free): Free problem_data; clear df_live_scratch before
14177         releasing the obstack.
14178         (df_md_free): Free problem data.
14179
14180 2010-06-11  Jan Hubicka  <jh@suse.cz>
14181
14182         * doc/invoke.texi (Wsuggest-attribute): Document.
14183         (Wmissing-noreturn): Remove.
14184         * ipa-pure-const.c (warn_function_noreturn): New function.
14185         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14186         warn_missing_noreturn.
14187         * common.opt (Wsuggest-attribute=noreturn): New.
14188         * tree-flow.h (warn_function_noreturn): Declare.
14189         * tree-cfg.c (execute_warn_function_noreturn): Use
14190         warn_function_noreturn.
14191         (gate_warn_function_noreturn): New.
14192         (pass_warn_function_noreturn): Update.
14193
14194 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14195
14196         * c-typeck.c (handle_warn_cast_qual): Add loc
14197         parameter. Improve warning message.
14198         (build_c_cast): Pass location to handle_warn_cast_qual.
14199
14200 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14201
14202         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
14203         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
14204         insn mnemonic.
14205         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
14206
14207 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
14208
14209         Fix bootstap on mips
14210         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
14211         be naming typedefs.
14212
14213 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
14214
14215         * system.h (helper_const_non_const_cast): New inline for
14216         gcc version <= 4.0.
14217         (CONST_CAST2): For gcc version <= 4.0 use
14218         new helper to do const/non-const casting.
14219
14220 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14221
14222         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
14223         * Makefile.in (OBJS-common): Include insn-enums.o.
14224         (insn-enums.o): New rule.
14225         (simple_generated_c): Add insn-enums.c.
14226         (build/genenums.o): New rule.
14227         (genprogmd): Add "enums".
14228         * genconstants.c (print_enum_type): Declare a C string array
14229         for each enum.
14230         * genenums.c: New file.
14231         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
14232         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
14233         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
14234
14235 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14236
14237         * doc/md.texi (define_enum_attr): Document.
14238         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
14239         * read-md.h (lookup_enum_type): Declare.
14240         * read-md.c (lookup_enum_type): New function.
14241         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
14242         * genattrtab.c (attr_desc): Add an enum_name field.
14243         (evaluate_eq_attr): Take the associated attribute as argument.
14244         Get the enum prefix from the enum_name field, if defined.
14245         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
14246         (simplify_test_exp): Pass attr to evaluate_eq_attr.
14247         (add_attr_value): New function, split out from...
14248         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
14249         (write_test_expr): Pass attr to evaluate_eq_attr.
14250         (write_attr_get): Use the enum_name as the enum tag, if defined.
14251         (write_attr_valueq): Use the enum_name as a prefix, if defined.
14252         (find_attr): Initialize enum_name.
14253         (main): Handle DEFINE_ENUM_ATTR.
14254         * gensupport.c (process_rtx): Likewise.
14255         * config/mips/mips.h (mips_tune_attr): Delete.
14256         * config/mips/mips.md (cpu): Use define_attr_enum.
14257
14258 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14259
14260         * doc/md.texi (define_c_enum, define_enum): Document.
14261         * read-md.h (md_constant): Add a parent_enum field.
14262         (enum_value, enum_type): New structures.
14263         (upcase_string, traverse_enum_types): Declare.
14264         * read-md.c (enum_types): New variable.
14265         (upcase_string, add_constant): New functions.
14266         (handle_constants): Don't create the hash table here.
14267         Use add_constant.
14268         (traverse_md_constants): Don't check for a null md_constants.
14269         (decimal_string, handle_enum, traverse_enum_types): New functions.
14270         (read_md_files): Initialize md_constants and md_enums.
14271         * genconstants.c (print_md_constant): Ignore info argument.
14272         Only print constants that belong to no enum.
14273         (print_enum_type): New function.
14274         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
14275         for each defined enum type.
14276         * config/mips/mips.md (processor): New define_enum.
14277         (unspec): New define_c_enum.
14278         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
14279         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
14280         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
14281         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
14282         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
14283         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
14284         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
14285         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
14286         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
14287         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
14288         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
14289         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
14290         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
14291         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
14292         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
14293         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
14294         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
14295         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
14296         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
14297         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
14298         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
14299         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
14300         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14301         (UNSPEC_RDDSP): Move to mips-dsp.md.
14302         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
14303         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
14304         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
14305         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
14306         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
14307         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
14308         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
14309         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
14310         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
14311         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
14312         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
14313         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
14314         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
14315         Moved to mips-dspr2.md.
14316         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
14317         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
14318         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
14319         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
14320         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
14321         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
14322         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14323         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14324         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14325         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14326         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14327         UNSPEC_LOONGSON_PSADBH)
14328         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14329         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14330         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
14331         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14332         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14333         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14334         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
14335         (cpu): Update comment.
14336         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
14337         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
14338         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
14339         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
14340         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
14341         UNSPEC_LOONGSON_PCMPEQ)
14342         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
14343         UNSPEC_LOONGSON_PINSR_0)
14344         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
14345         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
14346         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
14347         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
14348         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
14349         UNSPEC_LOONGSON_PSADBH)
14350         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
14351         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
14352         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
14353         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
14354         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
14355         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
14356         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
14357         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
14358         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
14359         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
14360         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
14361         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
14362         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
14363         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
14364         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
14365         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
14366         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
14367         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
14368         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
14369         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
14370         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
14371         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
14372         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
14373         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
14374         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
14375         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
14376         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
14377         (UNSPEC_RDDSP): Moved from mips.md.
14378         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
14379         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
14380         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
14381         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
14382         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
14383         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
14384         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
14385         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
14386         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
14387         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
14388         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
14389         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
14390         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
14391         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
14392         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
14393         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
14394         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
14395         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
14396         (UNSPEC_SCC): Moved from mips.md.
14397         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
14398         "processor_type" to "processor".
14399         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
14400         * config/mips/mips.h (processor_type): Delete.
14401         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
14402         "processor_type" to "processor".
14403
14404 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14405
14406         * configure.ac (tm_include_list): Add insn-constants.h.
14407         * configure: Regenerate.
14408         * Makefile.in (GTM_H): Move insn-constants.h here from...
14409         (TM_H): ...here.
14410         * mkconfig.sh: Remove special handling for insn-constants.h.
14411
14412 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14413
14414         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
14415         (BUILD_MD): ...this new variable.
14416         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
14417         that include the old contents of simple_generated_h and
14418         simple_generated_c.
14419         (simple_generated_h, simple_generated_c): Include them.  Add
14420         insn-constants.h.
14421         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
14422         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
14423         Remove these dependencies from the main rule and include
14424         insn-conditions.md in the command line only if it appears
14425         in the dependency list.
14426         (insn-constants.h, s-constants): Delete.
14427         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
14428         or gensupport.h.
14429         (build/genmddeps.o): Likewise.
14430         (genprogrtl): New variable that contains everything from genprogmd
14431         except mddeps and constants.
14432         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
14433         depend on $(BUILD_MD)
14434         (genprog): New variable.  Make these programs depend on
14435         $(BUILD_ERRORS).
14436         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
14437         (main): Use read_md_files instead of init_rtx_reader_args.
14438         * genconstants.c: As for genmddeps.c.
14439         * read-md.h (read_skip_construct): Declare.
14440         * read-md.c (read_skip_construct): New function.
14441         (handle_file): Allow a null handle_directive, skipping the
14442         construct if so.
14443         (parse_include): Update the comment accordingly.
14444
14445 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14446
14447         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
14448         * genmddeps.c: Include read-md.h.
14449         (main): Call init_rtx_reader_args instead of init_md_reader_args.
14450         * genattr.c (main): Likewise.
14451         * genattrtab.c (main): Likewise.
14452         * genautomata.c (main): Likewise.
14453         * gencodes.c (main): Likewise.
14454         * genconditions.c (main): Likewise.
14455         * genconfig.c (main): Likewise.
14456         * genconstants.c (main): Likewise.
14457         * genemit.c (main): Likewise.
14458         * genextract.c (main): Likewise.
14459         * genflags.c (main): Likewise.
14460         * genopinit.c (main): Likewise.
14461         * genoutput.c (main): Likewise.
14462         * genpeep.c (main): Likewise.
14463         * genrecog.c (main): Likewise.
14464         * genpreds.c (main): Likewise.
14465         * gensupport.h (in_fname): Move to read-md.h.
14466         (init_md_reader_args_cb): Rename to...
14467         (init_rtx_reader_args_cb): ...this and return a bool.
14468         (init_md_reader_args): Rename to...
14469         (init_rtx_reader_args): ...this and return a bool.
14470         (include_callback): Move to read-md.h.
14471         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
14472         (file_name_list, first_dir_md_include): Move to read-md.c
14473         (first_bracket_include): Delete unused variable.
14474         (last_dir_md_include): Move to read-md.c.
14475         (process_include): Delete, moving code to read-md.c:handle_include.
14476         (process_rtx): Don't handle INCLUDE.
14477         (save_string): Delete.
14478         (rtx_handle_directive): New function.
14479         (init_md_reader_args_cb): Rename to...
14480         (init_rtx_reader_args_cb): ...this and return a boolean success value.
14481         Use read_md_args.
14482         (init_md_reader_args): Rename to...
14483         (init_rtx_reader_args): ...this and return a boolean success value.
14484         * rtl.def (INCLUDE): Delete.
14485         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
14486         argument.
14487         * read-rtl.c (read_conditions): Don't gobble ')' here.
14488         (read_mapping): Likewise.
14489         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
14490         Handle top-level non-rtx constructs here rather than in read_rtx_1.
14491         Store the whole queue in *X.  Remove call to init_md_reader.
14492         (read_rtx_1): Rename to...
14493         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
14494         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
14495         here.
14496         (read_nested_rtx): New function.  Handle (nil) here rather than
14497         in read_rtx_code.
14498         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
14499         gobble ')' here.
14500         * read-md.h (directive_handler_t): New type.
14501         (in_fname, include_callback): Moved from read-md.h.
14502         (read_constants, init_md_reader): Delete.
14503         (read_md_files): Declare.
14504         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
14505         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
14506         from gensupport.c.
14507         (read_constants): Rename to...
14508         (handle_constants): ...this.  Don't gobble ')' here.
14509         (handle_include, handle_file, handle_toplevel_file)
14510         (parse_include): New functions, mostly taken from gensupport.c.
14511         (init_md_reader): Subsume into...
14512         (read_md_files): ...this new function.
14513
14514 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14515
14516         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
14517         (unread_char): Decrement read_md_lineno after putting back '\n'.
14518         * read-md.c (fatal_with_file_and_line): Push back any characters
14519         that we decide not to add to the context.
14520         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
14521         fatal_expected_char in cases where '/' ends a line (for example).
14522         (read_name): Don't increment read_md_lineno here.
14523         (read_escape): Likewise.
14524         (read_quoted_string): Likewise.
14525         (read_braced_string): Likewise.
14526
14527 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14528
14529         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
14530         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
14531         * genconstants.c: Include read-md.h.
14532         * read-rtl.c (md_constants): Move to read-md.c.
14533         (md_name): Move to read-md.h.
14534         (initialize_iterators): Use leading_string_hash instead of def_hash
14535         and leading_string_eq_p instead of def_name_eq_p.
14536         (read_name): Move to read-md.c.
14537         (def_hash, def_name_eq_p): Delete.
14538         (read_constants, traverse_md_constants): Move to read-md.c.
14539         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
14540         * read-md.h: Include hashtab.h.
14541         (md_name): Moved from read-rtl.c.
14542         (md_constant): Moved from read-md.h.
14543         (leading_string_hash, leading_string_eq_p, read_name)
14544         (read_constants, traverse_md_constants): Declare.
14545         * read-md.c (md_constants): Moved from read-rtl.c.
14546         (leading_string_hash, leading_string_eq_p): New functions.
14547         (read_name, read_constants, traverse_md_constants): Moved from
14548         read-rtl.c.
14549
14550 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14551
14552         * read-rtl.c (md_name): New structure.
14553         (read_name): Take an md_name instead of a buffer pointer.
14554         Use the "string" field instead of strcpy when expanding constants.
14555         (read_constants): Remove the tmp_char argument.  Update the calls
14556         to read_name, using two local name buffers instead of the tmp_char
14557         argument.  Merge the constant-creation code.
14558         (read_conditions): Remove the tmp_char argument.  Update the calls
14559         to read_name, using a local name buffer instead of the tmp_char
14560         argument.
14561         (read_mapping): Replace tmp_char variable with a local name buffer.
14562         Update the calls to read_name.
14563         (read_rtx_1): Likewise.  Update the calls to read_constants and
14564         read_conditions.
14565
14566 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14567
14568         * Makefile.in (build/read-md.o): Depend on errors.h.
14569         * read-md.h (error_with_line): Declare.
14570         * read-md.c: Include errors.h.
14571         (message_with_line_1): New function, extracted from...
14572         (message_with_line): ...here.
14573         (error_with_line): New function.
14574         * genattrtab.c: If a call to message_with_line is followed by
14575         "have_error = 1;", replace both statements with a call to
14576         error_with_line.
14577         * genoutput.c: Likewise.
14578         * genpreds.c: Likewise.
14579         * genrecog.c: If a call to message_with_line is followed by
14580         "error_count++;", replace both statements with a call to
14581         error_with_line.
14582         (errorcount): Delete.
14583         (main): Don't check it.
14584         * gensupport.c: If a call to message_with_line is followed by
14585         "errors = 1;", replace both statements with a call to error_with_line.
14586         (errors): Delete.
14587         (process_define_cond_exec): Check have_error instead of errors.
14588         (init_md_reader_args_cb): Likewise.  Don't set errors.
14589
14590 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14591
14592         * read-md.h (read_md_file): Declare.
14593         (read_char, unread_char): New functions.
14594         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14595         (read_quoted_string, read_string): Remove FILE * argument.
14596         * read-md.c (read_md_file): New variable.
14597         (read_md_filename, read_md_lineno): Update comments and remove
14598         unnecessary initialization.
14599         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
14600         (read_escape, read_quoted_string, read_braced_string, read_string):
14601         Remove FILE * argument.  Update calls accordingly, using read_char
14602         and unread_char instead of getc and ungetc.
14603         * rtl.h (read_rtx): Remove FILE * argument.
14604         * read-rtl.c (iterator_group): Remove FILE * argument from
14605         "find_builtin".
14606         (iterator_traverse_data): Remove "infile" field.
14607         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
14608         (add_mapping, read_name, read_constants, read_conditions)
14609         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
14610         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
14611         Remove file arguments from all calls, using read_char and unread_char
14612         instead of getc and ungetc.
14613         * gensupport.c (process_include): Preserve read_md_file around
14614         the include.  Set read_md_file to the handle of the included file.
14615         Update call to read_rtx.
14616         (init_md_reader_args_cb): Set read_md_file to the handle of the file
14617         and remove local FILE *.  Update calls to read_rtx.
14618
14619 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14620
14621         * read-md.h (read_rtx_lineno): Rename to...
14622         (read_md_lineno): ...this.
14623         (read_rtx_filename): Rename to...
14624         (read_md_filename): ...this.
14625         (copy_rtx_ptr_loc): Rename to...
14626         (copy_md_ptr_loc): ...this.
14627         (print_rtx_ptr_loc): Rename to...
14628         (print_md_ptr_loc): ...this.
14629         * read-md.c: Likewise.  Update references after renaming.
14630         (string_obstack): Replace RTL with MD in comment.
14631         (set_rtx_ptr_loc): Rename to...
14632         (set_md_ptr_loc): ...this.
14633         (get_rtx_ptr_loc): Rename to...
14634         (get_md_ptr_loc): ...this.
14635         * genconditions.c: Update references after renaming.
14636         * genemit.c: Likewise.
14637         * genoutput.c: Likewise.
14638         * genpreds.c: Likewise.
14639         * gensupport.c: Likewise.
14640         * read-rtl.c: Likewise.
14641
14642 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
14643
14644         * Makefile.in (READ_MD_H): New variable.
14645         (BUILD_RTL): Add build/read-md.o.
14646         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
14647         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
14648         (build/genattrtab.o, build/genconditions.o build/genemit.o)
14649         (build/genextract.o, build/genflags.o, build/genoutput.o)
14650         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
14651         (build/read-md.o): New rule.
14652         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
14653         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
14654         * coretypes.h: ...here.
14655         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
14656         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
14657         * genattr.c: Include read-md.h.
14658         * genattrtab.c: Likewise.
14659         * genconditions.c: Likewise.
14660         * genemit.c: Likewise.
14661         * genextract.c: Likewise.
14662         * genflags.c: Likewise.
14663         * genoutput.c: Likewise.
14664         * genpreds.c: Likewise.
14665         * genrecog.c: Likewise.
14666         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
14667         (join_c_conditions, print_c_condition, read_rtx_filename)
14668         (read_rtx_lineno): Move to read-md.h.
14669         * read-rtl.c: Include read-md.h.
14670         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
14671         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
14672         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
14673         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
14674         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
14675         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
14676         (read_braced_string, read_string): Move to read-md.c.
14677         (read_rtx): Move some initialization to init_md_reader and call
14678         init_md_reader here.
14679         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
14680         Move to read-md.h.
14681         * gensupport.c: Include read-md.h.
14682         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
14683         * read-md.h, read-md.c: New files.
14684
14685 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
14686
14687         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14688         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14689         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
14690         * config/moxie/moxie.c (moxie_function_value): Make static.
14691         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
14692         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14693
14694 2010-06-10  Martin Jambor  <mjambor@suse.cz>
14695
14696         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
14697         * dbgcnt.def (tree_sra): New counter.
14698         * tree-sra.c: Include dbgcnt.h.
14699         (gate_intra_sra): Check tree_sra debug counter.
14700
14701 2010-06-10  Martin Jambor  <mjambor@suse.cz>
14702
14703         PR tree-optimization/44258
14704         * tree-sra.c (build_access_subtree): Return false iff there is a
14705         partial overlap.
14706         (build_access_trees): Likewise.
14707         (analyze_all_variable_accesses): Disqualify candidates if
14708         build_access_trees returns true for them.
14709
14710 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
14711
14712         PR debug/41371
14713         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
14714         tail-recurse into canonical node.  Fast-forward over
14715         non-canonical VALUEs.
14716
14717 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
14718
14719         PR boostrap/44470
14720         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
14721         (*addsi_1_zext) <TYPE_LEA>: Likewise.
14722         (add lea splitter): Likewise.
14723         (add_zext lea splitter): Likewise.
14724
14725 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
14726
14727         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
14728
14729 2010-06-10  Jan Hubicka  <jh@suse.cz>
14730
14731         * df-problems.c (df_live_problem_data): Add live_bitmaps.
14732         (df_live_alloc): Initialize problem data and live_osbtacks.
14733         (df_live_finalize): Remove obstack, problem data; do not
14734         clear all bitmaps.
14735         (df_live_top_dump, df_live_bottom_dump): Do not dump old
14736         data when not allocated.
14737         (df_live_verify_solution_start): Do not allocate problem data.
14738         (df_live_verify_solution_end): Check if out is allocated.
14739         (struct df_md_problem_data): New structure.
14740         (df_md_alloc): Allocate problem data.
14741         (df_md_free): Free problem data; do not clear bitmaps.
14742
14743 2010-06-10  Jan Beulich  <jbeulich@novell.com>
14744
14745         PR bootstrap/37304
14746         * configure.ac: Replace $() with ${} when intending to expand
14747         variables rather than invoking commands.
14748         * configure: Re-generate.
14749
14750 2010-06-10  Jan Hubicka  <jh@suse.cz>
14751
14752         PR rtl-optimization/44460
14753         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
14754         TYPE_NEEDS_CONSTRUCTING sanity check.
14755
14756 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
14757
14758         * doc/include/fdl.texi: Move to GFDL version 1.3.
14759
14760         * doc/cpp.texi: Move to GFDL version 1.3.
14761         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
14762         * doc/gccint.texi: Move to GFDL version 1.3.
14763         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
14764         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
14765         * doc/invoke.texi: Move to GFDL version 1.3.
14766
14767 2010-06-09  Jan Hubicka  <jh@suse.cz>
14768
14769         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
14770         Break out from ...
14771         (propagate) ... here; swap the order.
14772
14773 2010-06-09  Jan Hubicka  <jh@suse.cz>
14774
14775         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
14776         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
14777         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
14778         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
14779
14780 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
14781
14782         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
14783         Do not the gather memory reference in the outer loop if the step
14784         is not a constant.
14785
14786 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
14787
14788         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
14789         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
14790         8 to 4.  Minor change of the related comments.
14791
14792 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14793
14794         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
14795         the scev analysis when the variable is not used outside the loop
14796         in a close phi node: call compute_overall_effect_of_inner_loop.
14797
14798 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14799
14800         * graphite-sese-to-poly.c (single_pred_cond): Renamed
14801         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
14802         (build_sese_conditions_before): Renamed call to single_pred_cond.
14803         (build_sese_conditions_after): Same.
14804
14805 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14806
14807         * graphite-poly.h: Fix comments and indentation.
14808         * graphite-sese-to-poly.c: Same.
14809         (build_sese_conditions_before): Compute stmt and gbb only when needed.
14810         * tree-chrec.c: Fix comments and indentation.
14811         (tree-ssa-loop-niter.c): Same.
14812
14813 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
14814
14815         PR rtl-optimization/42461
14816         * dce.c (deletable_insn_p): Return true for const or pure calls again.
14817         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
14818
14819 2010-06-09  Jan Hubicka  <jh@suse.cz>
14820
14821         * bitmap.c (bitmap_and): Walk array forward.
14822         (bitmap_and_compl_into): Likewise.
14823         (bitmap_xor): Likewise.
14824         (bitmap_xor_into):  Likewise.
14825         (bitmap_equal_p): Likewise.
14826         (bitmap_intersect_p): Likewise.
14827         (bitmap_intersect_compl_p): Likewise.
14828         (bitmap_ior_and_into): Likewise.
14829         (bitmap_elt_copy): Likewise.
14830         (bitmap_and_compl): Likewise.
14831         (bitmap_elt_ior): Likewise.
14832
14833 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
14834
14835         * opts-common.c (prune_options): Ensure replacement argv array
14836         is correctly terminated by a NULL entry.
14837
14838 2010-06-09  Jan Hubicka  <jh@suse.cz>
14839
14840         * cgraph.h (varpool_first_static_initializer,
14841         varpool_next_static_initializer): Make checking only when
14842         checking enabled.
14843         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
14844         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
14845         gcc_assert to gcc_checking_assert.
14846         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
14847         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
14848         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
14849         op_iter_init_phiuse, op_iter_init_phidef,
14850         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
14851         gcc_checking_assert.
14852         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
14853         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
14854         partition_is_global, live_on_entry, live_on_exit,
14855         live_merge_and_clear): Likewise.
14856         * system.h (gcc_checking_assert): New macro.
14857         * gimple.h (set_bb_seq): Use gcc_checking_assert.
14858
14859 2010-06-09  Jason Merrill  <jason@redhat.com>
14860
14861         * Makefile.in (TAGS): Collect tags info from c-family.
14862
14863 2010-06-09  Jan Hubicka  <jh@suse.cz>
14864
14865         * gimple.h (gcc_gimple_checking_assert): New macro.
14866         (gimple_set_def_ops, gimple_set_use_ops,
14867         gimple_set_vuse, gimple_set_vdef,
14868         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
14869         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
14870         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
14871         gimple_asm_output_op, gimple_asm_output_op_ptr,
14872         gimple_asm_set_output_op, gimple_asm_clobber_op,
14873         gimple_asm_set_clobber_op, gimple_asm_label_op,
14874         gimple_asm_set_label_op, gimple_try_set_kind,
14875         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
14876         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
14877         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
14878         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
14879         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
14880         gimple_omp_for_set_initial, gimple_omp_for_final,
14881         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
14882         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
14883         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
14884         conditional with ENABLE_GIMPLE_CHECKING.
14885         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
14886
14887 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
14888
14889         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
14890         (get_computation_cost_at): Use it.
14891         (determine_use_iv_cost_condition): Likewise.
14892         (determine_iv_cost): Likewise.
14893
14894 2010-06-09  Richard Guenther  <rguenther@suse.de>
14895
14896         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
14897         replace constants.
14898
14899 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
14900
14901         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
14902
14903 2010-06-09  Martin Jambor  <mjambor@suse.cz>
14904
14905         PR tree-optimization/44423
14906         * tree-sra.c (dump_access): Dump also grp_assignment_read.
14907         (analyze_access_subtree): Pass negative allow_replacements to children
14908         if the current type is scalar.
14909
14910 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14911
14912         PR testsuite/42843
14913         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
14914         * doc/plugins.texi (Plugin license check): Update information
14915         on type of plugin_is_GPL_compatible.
14916         * Makefile.in (PLUGINCC): Define as $(COMPILER).
14917         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
14918
14919 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
14920
14921         * config/arm/arm.c (thumb2_reorg): New function.
14922         (arm_reorg): Call it.
14923         * config/arm/thumb2.md (define_peephole2 for flag clobbering
14924         arithmetic operations): Delete.
14925
14926 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
14927
14928         PR target/44067
14929         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
14930         e500v2 target.
14931
14932 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14933
14934         PR plugins/44459
14935         * gcc-plugin.h: Encapsulate all declarations in extern "C".
14936
14937 2010-06-08  Jan Hubicka  <jh@suse.cz>
14938
14939         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
14940         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
14941
14942 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
14943
14944         PR tree-optimization/39874
14945         PR middle-end/28685
14946         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
14947         Declare.
14948         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
14949         same_bool_result_p): New.
14950         (and_var_with_comparison, and_var_with_comparison_1,
14951         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
14952         (or_var_with_comparison, or_var_with_comparison_1,
14953         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
14954         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
14955         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
14956         of combine_comparisons.
14957         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
14958
14959 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
14960
14961         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14962         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14963         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
14964         pdp11_function_value_regno_p): New functions.
14965         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14966         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14967
14968 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
14969
14970         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
14971         Thumb-2 in the MINUS case.
14972
14973 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14974
14975         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
14976
14977         * doc/gty.texi (GTY Options): Document typed GC allocation and
14978         variable_size GTY option.
14979
14980         * ggc-internal.h: New.
14981
14982         * ggc.h: Update copyright year.
14983         (digit_string): Move to stringpool.c.
14984         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
14985         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
14986         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
14987         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
14988         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
14989         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
14990         (ggc_force_collect, ggc_get_size, ggc_statistics)
14991         (ggc_print_common_statistics): Move to ggc-internal.h.
14992         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
14993         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
14994         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
14995         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
14996         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
14997         (ggc_alloc_zone_pass_stat): Remove.
14998         (ggc_internal_alloc_stat, ggc_internal_alloc)
14999         (ggc_internal_cleared_alloc_stat): New.
15000         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15001         (ggc_internal_vec_alloc_stat)
15002         (ggc_internal_cleared_vec_alloc_stat)
15003         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15004         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15005         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15006         (ggc_cleared_alloc_ptr_array_two_args): New.
15007         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15008         (ggc_splay_alloc): Change the type of the first argument to
15009         enum gt_types_enum.
15010         (ggc_alloc_string): Make macro.
15011         (ggc_alloc_string_stat): New.
15012         (ggc_strdup): Redefine.
15013         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15014         (ggc_alloc_rtvec_sized): New.
15015         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15016         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15017         (ggc_internal_cleared_alloc_zone_stat)
15018         (ggc_internal_zone_alloc_stat)
15019         (ggc_internal_zone_cleared_alloc_stat)
15020         (ggc_internal_zone_vec_alloc_stat)
15021         (ggc_alloc_zone_rtx_def_stat)
15022         (ggc_alloc_zone_tree_node_stat)
15023         (ggc_alloc_zone_cleared_tree_node_stat)
15024         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15025
15026         * ggc-common.c: Include ggc-internal.h.
15027         (ggc_internal_cleared_alloc_stat): Rename from
15028         ggc_alloc_cleared_stat.
15029         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15030         (ggc_calloc): Remove.
15031         (ggc_cleared_alloc_htab_ignore_args): New.
15032         (ggc_cleared_alloc_ptr_array_two_args): New.
15033         (ggc_splay_alloc): Add obj_type parameter.
15034         (init_ggc_heuristics): Formatting fixes.
15035
15036         * ggc-none.c: Update copyright year.
15037         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15038         (ggc_alloc_cleared_stat): Rename to
15039         ggc_internal_cleared_alloc_stat.
15040         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15041
15042         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15043         Remove references to ggc_alloc in comments.
15044         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15045         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15046         (new_ggc_zone, destroy_ggc_zone): Remove.
15047         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15048
15049         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15050         ggc_alloc in comments.
15051         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15052         (ggc_internal_alloc_zone_pass_stat): New.
15053         (ggc_internal_cleared_alloc_zone_stat): New.
15054         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15055         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15056         (new_ggc_zone, destroy_ggc_zone): Remove.
15057
15058         * stringpool.c: Update copyright year.  Include ggc-internal.h
15059         (digit_vector): Make static.
15060         (digit_string): Moved from ggc.h.
15061         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15062         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15063
15064         * Makefile.in (GGC_INTERNAL_H): New.
15065         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15066         $(GGC_INTERNAL_H) to dependencies.
15067
15068         * gentype.c: Update copyright year.
15069         (walk_type): Accept variable_size GTY option.
15070         (USED_BY_TYPED_GC_P): New macro.
15071         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15072         whitespace at the end of strings.
15073         (get_type_specifier, variable_size_p): New functions.
15074         (alloc_quantity, alloc_zone): New enums.
15075         (write_typed_alloc_def): New function.
15076         (write_typed_struct_alloc_def): Likewise.
15077         (write_typed_typed_typedef_alloc_def): Likewise.
15078         (write_typed_alloc_defns): Likewise.
15079         (output_typename, write_splay_tree_allocator_def): Likewise.
15080         (write_splay_tree_allocators): Likewise.
15081         (main): Call write_typed_alloc_defns and
15082         write_splay_tree_allocators.
15083
15084         * lto-streamer.h (lto_file_decl_data_ptr): New.
15085
15086         * passes.c (order): Define using cgraph_node_ptr.
15087
15088         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15089         ht_identifier_ptr.
15090
15091         * gimple.h (union gimple_statement_d): Likewise.
15092
15093         * rtl.h (struct rtx_def): Likewise.
15094         (struct rtvec_def): Likewise.
15095
15096         * tree.h (union tree_node): Likewise.
15097
15098         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15099
15100         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15101
15102         * tree-scalar-evolution.c (scev_initialize): Likewise.
15103
15104         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15105
15106         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15107
15108         * omp-low.c (lower_omp_critical): Likewise.
15109
15110         * bitmap.h (struct bitmap_head_def): Update comment to not
15111         reference ggc_alloc.
15112
15113         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15114
15115         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15116
15117         * ipa-prop.c (duplicate_ggc_array): Rename to
15118         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15119         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15120
15121         * gimple.c (gimple_alloc_stat): Use
15122         ggc_alloc_cleared_gimple_statement_d_stat.
15123
15124         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15125
15126         * tree.c (make_node_stat): Use
15127         ggc_alloc_zone_cleared_tree_node_stat.
15128         (make_tree_vec_stat): Likewise.
15129         (build_vl_exp_stat): Likewise.
15130         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15131         (make_tree_binfo_stat): Likewise.
15132         (tree_cons_stat): Likewise.
15133
15134         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15135         (shallow_copy_rtx_stat): Likewise.
15136         (make_node_stat): Likewise.
15137
15138         * lto-symtab.c: Fix comment.
15139
15140         * tree-cfg.c (create_bb): Update comment to not reference
15141         ggc_alloc_cleared.
15142         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15143
15144         * varpool.c (varpool_node): Use typed GC allocation.
15145         (varpool_extra_name_alias): Likewise.
15146
15147         * varasm.c (emutls_decl): Likewise.
15148         (get_unnamed_section): Likewise.
15149         (get_noswitch_section): Likewise.
15150         (get_section): Likewise.
15151         (get_block_for_section): Likewise.
15152         (build_constant_desc): Likewise.
15153         (create_constant_pool): Likewise.
15154         (force_const_mem): Likewise.
15155
15156         * tree.c (build_vl_exp_stat): Likewise.
15157         (build_real): Likewise.
15158         (build_string): Likewise.
15159         (decl_debug_expr_insert): Likewise.
15160         (decl_value_expr_insert): Likewise.
15161         (type_hash_add): Likewise.
15162         (build_omp_clause): Likewise.
15163
15164         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15165
15166         * tree-ssa.c (init_tree_ssa): Likewise.
15167
15168         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15169
15170         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15171
15172         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15173
15174         * tree-ssa-alias.c (get_ptr_info): Likewise.
15175
15176         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15177
15178         * tree-phinodes.c (allocate_phi_node): Likewise.
15179
15180         * tree-iterator.c (tsi_link_before): Likewise.
15181         (tsi_link_after): Likewise.
15182
15183         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15184
15185         * tree-dfa.c (create_var_ann): Likewise.
15186
15187         * tree-cfg.c (create_bb): Likewise.
15188
15189         * toplev.c (alloc_for_identifier_to_locale): Likewise.
15190         (general_init): Likewise.
15191
15192         * stringpool.c (stringpool_ggc_alloc): Likewise.
15193         (gt_pch_save_stringpool): Likewise.
15194
15195         * sese.c (if_region_set_false_region): Likewise.
15196
15197         * passes.c (do_per_function_toporder): Likewise.
15198
15199         * optabs.c (set_optab_libfunc): Likewise.
15200         (set_conv_libfunc): Likewise.
15201
15202         * lto-symtab.c (lto_symtab_register_decl): Likewise.
15203
15204         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15205         (input_eh_region): Likewise.
15206         (input_eh_lp): Likewise.
15207         (make_new_block): Likewise.
15208         (unpack_ts_real_cst_value_fields): Likewise.
15209
15210         * lto-section-in.c (lto_new_in_decl_state): Likewise.
15211
15212         * lto-cgraph.c (input_node_opt_summary): Likewise.
15213
15214         * loop-init.c (loop_optimizer_init): Likewise.
15215
15216         * lambda.h (lambda_vector_new): Likewise.
15217
15218         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
15219
15220         * ira.c (update_equiv_regs): Likewise.
15221
15222         * ipa.c (cgraph_node_set_new): Likewise.
15223         (cgraph_node_set_add): Likewise.
15224         (varpool_node_set_new): Likewise.
15225         (varpool_node_set_add): Likewise.
15226
15227         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
15228         (duplicate_ipa_jump_func_array): Likewise.
15229         (ipa_read_node_info): Likewise.
15230
15231         * ipa-cp.c (ipcp_create_replace_map): Likewise.
15232
15233         * integrate.c (get_hard_reg_initial_val): Likewise.
15234
15235         * gimple.c (gimple_alloc_stat): Likewise.
15236         (gimple_build_omp_for): Likewise.
15237         (gimple_seq_alloc): Likewise.
15238         (gimple_copy): Likewise.
15239
15240         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
15241         (gsi_insert_after_without_update): Likewise.
15242
15243         * function.c (add_frame_space): Likewise.
15244         (insert_temp_slot_address): Likewise.
15245         (assign_stack_temp_for_type): Likewise.
15246         (allocate_struct_function): Likewise.
15247         (types_used_by_var_decl_insert): Likewise.
15248
15249         * except.c (init_eh_for_function): Likewise.
15250         (gen_eh_region): Likewise.
15251         (gen_eh_region_catch): Likewise.
15252         (gen_eh_landing_pad): Likewise.
15253         (add_call_site): Likewise.
15254
15255         * emit-rtl.c (get_mem_attrs): Likewise.
15256         (get_reg_attrs): Likewise.
15257         (start_sequence): Likewise.
15258         (init_emit): Likewise.
15259
15260         * dwarf2out.c (new_cfi): Likewise.
15261         (queue_reg_save): Likewise.
15262         (dwarf2out_frame_init): Likewise.
15263         (new_loc_descr): Likewise.
15264         (find_AT_string): Likewise.
15265         (new_die): Likewise.
15266         (add_var_loc_to_decl): Likewise.
15267         (clone_die): Likewise.
15268         (clone_as_declaration): Likewise.
15269         (break_out_comdat_types): Likewise.
15270         (new_loc_list): Likewise.
15271         (loc_descriptor): Likewise.
15272         (add_loc_descr_to_each): Likewise.
15273         (add_const_value_attribute): Likewise.
15274         (tree_add_const_value_attribute): Likewise.
15275         (add_comp_dir_attribute): Likewise.
15276         (add_name_and_src_coords_attributes): Likewise.
15277         (lookup_filename): Likewise.
15278         (store_vcall_insn): Likewise.
15279         (dwarf2out_init): Likewise.
15280
15281         * dbxout.c (dbxout_init): Likewise.
15282
15283         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15284
15285         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15286
15287         * config/score/score7.c (score7_output_external): Likewise.
15288
15289         * config/score/score3.c (score3_output_external): Likewise.
15290
15291         * config/s390/s390.c (s390_init_machine_status): Likewise.
15292
15293         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15294         (rs6000_init_machine_status): Likewise.
15295         (output_toc): Likewise.
15296
15297         * config/pa/pa.c (pa_init_machine_status): Likewise.
15298         (get_deferred_plabel): Likewise.
15299
15300         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15301
15302         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15303
15304         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15305
15306         * config/mep/mep.c (mep_init_machine_status): Likewise.
15307         (mep_note_pragma_flag): Likewise.
15308
15309         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15310
15311         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15312
15313         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15314
15315         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15316         (i386_pe_maybe_record_exported_symbol): Likewise.
15317
15318         * config/i386/i386.c (get_dllimport_decl): Likewise.
15319         (ix86_init_machine_status): Likewise.
15320         (assign_386_stack_local): Likewise.
15321
15322         * config/frv/frv.c (frv_init_machine_status): Likewise.
15323
15324         * config/darwin.c (machopic_indirection_name): Likewise.
15325
15326         * config/cris/cris.c (cris_init_machine_status): Likewise.
15327
15328         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15329
15330         * config/avr/avr.c (avr_init_machine_status): Likewise.
15331
15332         * config/arm/arm.c (arm_init_machine_status): Likewise.
15333
15334         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15335         (alpha_need_linkage): Likewise.
15336         (alpha_use_linkage): Likewise.
15337
15338         * cgraph.c (cgraph_allocate_node): Likewise.
15339         (cgraph_create_edge_1): Likewise.
15340         (cgraph_create_indirect_edge): Likewise.
15341         (cgraph_add_asm_node): Likewise.
15342
15343         * cfgrtl.c (init_rtl_bb_info): Likewise.
15344
15345         * cfgloop.c (alloc_loop): Likewise.
15346         (rescan_loop_exit): Likewise.
15347
15348         * cfg.c (init_flow): Likewise.
15349         (alloc_block): Likewise.
15350         (unchecked_make_edge): Likewise.
15351
15352         * c-parser.c (c_parse_init): Likewise.
15353         (c_parse_file): Likewise.
15354
15355         * c-decl.c (bind): Likewise.
15356         (record_inline_static): Likewise.
15357         (push_scope): Likewise.
15358         (make_label): Likewise.
15359         (lookup_label_for_goto): Likewise.
15360         (finish_struct): Likewise.
15361         (finish_enum): Likewise.
15362         (c_push_function_context): Likewise.
15363
15364         * bitmap.c (bitmap_element_allocate): Likewise.
15365         (bitmap_gc_alloc_stat): Likewise.
15366
15367         * alias.c (record_alias_subset): Likewise.
15368         (init_alias_analysis): Likewise.
15369
15370 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
15371
15372         * fold-const.c (fold_comparison): Remove redundant parenthesis.
15373         * tree-inline.c (expand_call_inline): Pass translated return value of
15374         cgraph_inline_failed_string to diagnostic function.
15375
15376 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
15377             Shujing Zhao  <pearly.zhao@oracle.com>
15378
15379         PR c/37724
15380         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
15381         implicit bad conversions is initialization.
15382         (error_init): Use gmsgid instead of msgid for argument name and change
15383         the call for error.
15384         (pedwarn_init): Use gmsgid instead of msgid for argument name and
15385         change the call for pedwarn.
15386         (warning_init): Use gmsgid instead of msgid for argument name and
15387         change the call for warning.
15388
15389 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
15390
15391         * config/mips/mips-protos.h (mips_print_operand): Delete.
15392         (mips_print_operand_address): Delete.
15393         * config/mips/mips.h (mips_print_operand_punct): Delete.
15394         (PRINT_OPERAND): Delete.
15395         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15396         (PRINT_OPERAND_ADDRESS): Delete.
15397         * config/mips/mips.c (mips_print_operand_punct): Make static.
15398         (mips_print_operand_address): Make static.
15399         (mips_print_operand): Make static.  Call
15400         mips_print_operand_punct_valid_p.
15401         (mips_print_operand_punct_valid_p): New function.
15402         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15403         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15404
15405 2010-06-07  Jan Hubicka  <jh@suse.cz>
15406
15407         PR middle-end/44454
15408         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
15409         are allocated.
15410
15411 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
15412
15413         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
15414         name of RECORD.
15415
15416 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15417
15418         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15419         attributes): Document gas.
15420
15421 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
15422
15423         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
15424         <TYPE_LEA>: Split instruction.
15425         <default>: Remove alternative 2 handling.
15426         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
15427         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
15428         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
15429
15430         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
15431         (ashift_zext lea splitter): Use DImode for multiplication.
15432
15433         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
15434         to generate addition.
15435
15436 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
15437
15438         * common.opt (fira-verbose): Use Var.
15439         (fpcc-struct-return): Use Init instead of VarExists.
15440         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
15441         toplev.c.
15442         * flags.h (flag_signed_char, flag_short_enums,
15443         flag_pcc_struct_return, flag_ira_verbose,
15444         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
15445         * toplev.c (flag_detailed_statistics, flag_signed_char,
15446         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
15447         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
15448         * toplev.h (flag_crossjumping, flag_if_conversion,
15449         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
15450         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
15451         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
15452         flag_cprop_registers, time_report, flag_ira_loop_pressure,
15453         flag_ira_coalesce, flag_ira_move_spills,
15454         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
15455
15456 2010-06-07  Jan Hubicka  <jh@suse.cz>
15457
15458         * df-core.c (df_analyze_problem): Do verification after allocation.
15459
15460         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
15461         (df_lr_alloc): Initialize problem data; move bitmaps to
15462         lr_bitmaps obstack.
15463         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
15464         (df_lr_verify_solution_start): Do not initialize problem data;
15465         allocate bitmaps in lr_bitmaps.
15466         (df_lr_verify_solution_end): Do not free problem data.
15467
15468 2010-06-07  Jan Hubicka  <jh@suse.cz>
15469
15470         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
15471         if caller is noreturn.
15472         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
15473         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
15474         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
15475         * ipa-pure-const.c (check_decl): Add IPA parameter.
15476         (state_from_flags): New function.
15477         (better_state, worse_state): New functions.
15478         (check_call): When in IPA mode, do not care about callees.
15479         (check_load, check_store): Update.
15480         (check_ipa_load, check_ipa_store): New.
15481         (check_stmt): When in IPA mode, use IPA checkers.
15482         (analyze_function): Use state_from_flags.
15483         (propagate): Check indirect edges and references.
15484
15485 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
15486
15487         PR rtl-optimization/44404
15488         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
15489         of count_occurrences to see if it's safe to modify mem_insn.
15490
15491 2010-06-07  Richard Guenther  <rguenther@suse.de>
15492
15493         * gimplify.c (gimplify_cleanup_point_expr): For empty body
15494         and EH-only cleanup drop the cleanup instead of inserting it
15495         unconditionally.
15496
15497 2010-06-07  Ira Rosen  <irar@il.ibm.com>
15498
15499         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
15500         documentation.
15501         * targhooks.c (default_builtin_vectorization_cost): New function.
15502         * targhooks.h (default_builtin_vectorization_cost): Declare.
15503         * target.h (enum vect_cost_for_stmt): Define.
15504         (builtin_vectorization_cost): Change argument and comment.
15505         * tree-vectorizer.h: Remove cost model macros.
15506         * tree-vect-loop.c: Include target.h.
15507         (vect_get_cost): New function.
15508         (vect_estimate_min_profitable_iters): Replace cost model macros with
15509         calls to vect_get_cost.
15510         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
15511         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
15512         default implementation.
15513         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
15514         calls to target hook builtin_vectorization_cost.
15515         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
15516         Likewise.
15517         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
15518         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
15519         implementation to return costs.
15520         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
15521         * config/spu/spu.h: Remove vectorizer cost model macros.
15522         * config/i386/i386.h: Likewise.
15523         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
15524         a call to target hook builtin_vectorization_cost.
15525
15526 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
15527
15528         PR target/44319
15529         * config/i386/i386.c (override_options): Turn zee pass on for level 2
15530         and above and defer till target is known.
15531         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
15532         turn off otherwise.
15533
15534 2010-05-25  Jan Hubicka  <jh@suse.cz>
15535
15536         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
15537         (df_compact_blocks): Likewise.
15538         * df.h (struct df): Turn hardware_regs_used,
15539         regular_block_artificial_uses, eh_block_artificial_uses,
15540         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
15541         bitmap_head.
15542         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
15543         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
15544         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
15545         df_scan_blocks, df_insn_delete, df_insn_rescan,
15546         df_insn_rescan_debug_internal, df_insn_rescan_all,
15547         df_process_deferred_rescans, df_process_deferred_rescans,
15548         df_notes_rescan, df_get_call_refs, df_get_call_refs,
15549         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
15550         df_record_entry_block_defs, df_record_exit_block_uses,
15551         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
15552         df_scan_verify): Update.
15553
15554 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
15555
15556         PR c++/44188
15557         * c-common.c (is_typedef_decl): Move this definition ...
15558         * tree.c (is_typedef_decl): ... here.
15559         (typdef_variant_p): Move definition here from cp/tree.c.
15560         * c-common.h (is_typedef_decl): Move this declaration ...
15561         * tree.h (is_typedef_decl): ... here.
15562         (typedef_variant_p): Move declaration here from cp/cp-tree.h
15563         * dwarf2out.c (is_naming_typedef_decl): New function.
15564         (gen_tagged_type_die): Split out of ...
15565         (gen_type_die_with_usage): ... this function. When an anonymous
15566         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15567         is emitted for the typedef.
15568         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15569         anonymous tagged types.
15570
15571 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15572
15573         PR c/20000
15574         * c-decl.c (grokdeclarator): Delete warning.
15575
15576 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15577
15578         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
15579         newly built CALL_EXPR.
15580         * tree-profile.c (tree_profiling): Don't profile functions produced
15581         for built-in stuff.
15582
15583 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
15584
15585         PR bootstrap/44427
15586         PR bootstrap/44428
15587         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
15588         endianness-independent.
15589
15590 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
15591
15592         * c-common.c: Move to c-family/.
15593         * c-common.def: Likewise.
15594         * c-common.h: Likewise.
15595         * c-cppbuiltin.c: Likewise.
15596         * c-dump.c: Likewise.
15597         * c-format.c: Likewise.
15598         * c-format.h : Likewise.
15599         * c-gimplify.c: Likewise.
15600         * c-lex.c: Likewise.
15601         * c-omp.c: Likewise.
15602         * c.opt: Likewise.
15603         * c-opts.c: Likewise.
15604         * c-pch.c: Likewise.
15605         * c-ppoutput.c: Likewise.
15606         * c-pragma.c: Likewise.
15607         * c-pragma.h: Likewise.
15608         * c-pretty-print.c: Likewise.
15609         * c-pretty-print.h: Likewise.
15610         * c-semantics.c: Likewise.
15611         * stub-objc.c: Likewise.
15612
15613         * gengtype.c (get_file_langdir): Special-case files in c-family/.
15614         (get_output_file_with_visibility): Fix name for c-common.h.
15615         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
15616
15617         * c-tree.h: Update include path for moved files.
15618         * c-lang.c: Likewise.
15619         * c-lang.h: Likewise.
15620         * c-parser.c: Likewise.
15621         * c-convert.c: Likewise.
15622         * c-decl.c: Likewise.
15623         * c-objc-common.c: Likewise.
15624         * configure.ac: Make sure c-family/ exists in the build directory.
15625         * configure: Regenerate.
15626         * Makefile.in: Update paths for moved files.  Regroup files per
15627         location and update dependencies.  Move generated_files down after
15628         ALL_GTFILES_H.
15629
15630         * config/spu/spu-c.c: Update paths for moved files.
15631         * config/mep/mep-pragma.c: Likewise.
15632         * config/darwin-c.c: Likewise.
15633         * config/i386/msformat-c.c: Likewise.
15634         * config/i386/i386-c.c: Likewise.
15635         * config/avr/avr-c.c: Likewise.
15636         * config/sol2-c.c: Likewise.
15637         * config/ia64/ia64-c.c: Likewise.
15638         * config/rs6000/rs6000-c.c: Likewise.
15639         * config/arm/arm.c: Likewise.
15640         * config/arm/arm-c.c: Likewise.
15641         * config/h8300/h8300.c: Likewise.
15642         * config/v850/v850-c.c: Likewise.
15643
15644         * config/t-darwin: Fix dependencies for moved files.
15645         * config/t-sol2: Fix dependencies for moved files.
15646         * config/mep/t-mep: Fix dependencies for moved files.
15647         * config/ia64/t-ia64: Fix dependencies for moved files.
15648         * config/rs6000/t-rs6000: Fix dependencies for moved files.
15649         * config/v850/t-v850: Fix dependencies for moved files.
15650         * config/v850/t-v850e: Fix dependencies for moved files.
15651
15652         * config/m32c/m32c-pragma.c
15653
15654         * po/exgettext: Look in c-family/ also.
15655
15656 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15657
15658         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
15659         (mark_control_dependent_edges_necessary): Call it instead of marking
15660         the last statement manually.
15661         (propagate_necessity): Likewise.
15662
15663 2010-06-05  Jan Hubicka  <jh@suse.cz>
15664
15665         * basic-block.h (compute_dominance_frontiers): Updated.
15666         (compute_idf): Likewise.
15667
15668         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
15669         for dominance frontiers.
15670         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
15671         (insert_updated_phi_nodes_for): Likewise.
15672         (update_ssa): Likewise.
15673         * cfganal.c (compute_dominance_frontiers_1): Likewise.
15674         (compute_dominance_frontiers): Likewise.
15675         (compute_idf): Likewise.
15676         * df-problems.c (df_md_local_compute): Likewise.
15677
15678 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
15679
15680         * target.h (struct gcc_target): Add memory_move_cost field.
15681         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
15682         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
15683         * targhooks.c (default_memory_move_cost): New function.
15684         * targhooks.h (default_memory_move_cost): Declare function.
15685         * reload.h (memory_move_cost): Declare.
15686         (memory_move_secondary_cost): Change type of 'in' argument to bool.
15687         * reginfo.c (memory_move_cost): New function.
15688         (memory_move_secondary_cost): Change type of 'in' argument to bool.
15689         * ira.h (ira_memory_move_cost): Update comment.
15690         * ira.c (ira_memory_move_cost): Update comment.
15691         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
15692         with memory_move_cost.
15693         * postreload.c (reload_cse_simplify_set): (Ditto.).
15694         * reload1.c (choose_reload_regs): (Ditto.).
15695         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
15696         (MEMORY_MOVE_COST):  Revise documentation.
15697
15698         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15699         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15700         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
15701         type of 'in' argument to bool.
15702         (TARGET_MEMORY_MOVE_COST): Define.
15703
15704 2010-06-05  Jan Hubicka  <jh@suse.cz>
15705
15706         * ipa-pure-const.c (propagate): Fix typo in handling of functions
15707         that cannot return.  Be more careful when merging the results with
15708         previously known ones.
15709
15710 2010-06-05  Matthias Klose  <doko@ubuntu.com>
15711
15712         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
15713         function to add the -iplugindir option.
15714         (find_plugindir_spec_function): Add new declaration and function.
15715         (static_spec_func): Use it for "find-plugindir".
15716
15717 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
15718
15719         PR c++/44361
15720         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
15721         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
15722         statement expression.
15723
15724 2010-06-05  Jan Hubicka  <jh@suse.cz>
15725
15726         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
15727         (df_rd_problem_data): Convert sparse_invalidated_by_call,
15728         dense_invalidated_by_call to bitmap head.
15729         (df_rd_alloc, df_rd_bb_local_compute_process_def,
15730         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
15731         df_rd_start_dump, df_lr_verify_transfer_functions,
15732         df_live_verify_transfer_functions, df_chain_create_bb,
15733         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
15734         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
15735         df_simulate_one_insn_forwards, df_md_alloc,
15736         df_md_bb_local_compute_process_def,
15737         df_md_bb_local_compute_process_def, df_md_local_compute,
15738         df_md_transfer_function df_md_free): Update.
15739
15740 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
15741
15742         PR c/44322
15743         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
15744         target type for ADDR_EXPR; require no changes to qualifiers except
15745         for function types.
15746         * c-tree.h (c_build_type_variant): Remove.
15747
15748 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
15749
15750         * genautomata.c (get_excl_set): Do work per element, not per char.
15751         (check_presence_pattern_sets): Similar.
15752         (check_absence_pattern_sets): Similar.
15753
15754 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
15755
15756         * genautomata.c (curr_state_pass_num): Delete.
15757         (min_issue_delay_pass_states): Delete.
15758         (min_issue_delay): Delete.
15759         (initiate_min_issue_delay_pass_states): Delete.
15760         (output_min_issue_delay_table): Compute min_issue_delay_vect
15761         using a breadth-first search variant.
15762         (output_tables): Don't call initiate_min_issue_delay_pass_states.
15763
15764 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
15765
15766         PR boostrap/44421
15767         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
15768         (df_byte_lr_bb_local_compute): Likewise.
15769
15770 2010-06-03  Jason Merrill  <jason@redhat.com>
15771
15772         Implement noexcept operator (5.3.7)
15773         * c-common.c (c_common_reswords): Add noexcept.
15774         * c-common.h (enum rid): Add RID_NOEXCEPT.
15775
15776 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
15777
15778         * config/darwin-driver.c (darwin_default_min_version): Use
15779         GCC-specific formats in diagnostics.
15780         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
15781         diagnostics.
15782         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
15783         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
15784         eval_spec_function, handle_braces, process_brace_body, main,
15785         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
15786         getenv_spec_function, compare_version_strings,
15787         version_compare_spec_function): Use GCC-specific formats in
15788         diagnostics.
15789
15790 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
15791
15792         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
15793         that operand 0 and operand 1 are equal.
15794         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
15795         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
15796         and operand 1 are equal.
15797         <default>: Ditto.  Remove ??? comment.
15798         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
15799         and operand 1 are equal.
15800         <default>: Ditto.  Remove ??? comment.
15801         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
15802         are equal.
15803         (*add<mode>_4) <default>: Ditto.
15804         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
15805
15806 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
15807
15808         * config/i386/i386-protos.h (ix86_print_operand): Declare.
15809         * config/i386/i386.c (ix86_print_operand): Make non-static.
15810         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
15811         * output.h (output_operand): Declare.
15812         * final.c (output_operand): Make non-static.
15813
15814 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
15815
15816         PR rtl-optimization/44013
15817         * sched-deps.c (add_dependence_list_and_free): Don't free lists
15818         when processing debug insns.
15819
15820         PR debug/41371
15821         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
15822         recursing.  Check that recursion is bounded.  Rename inner var
15823         to avoid hiding incoming argument.
15824
15825 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
15826
15827         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
15828         operands[2] == 255.
15829         (*addqi_3): Ditto.
15830         (*addqi_4): Ditto.
15831         (*addqi_5): Ditto.
15832         (*addqi_ext_1_rex64): Ditto.
15833         (*addqi_ext_1): Ditto.
15834
15835         (*addqi_4): Check for incdec_operand in QImode.
15836
15837         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
15838         using SWI mode iterator.
15839         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
15840         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
15841         mode iterator.
15842         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
15843         using SWI mode iterator.
15844
15845 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15846
15847         PR c/25880
15848         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
15849         * c-format.c (gcc_diag_flag_specs): Add hash.
15850         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
15851         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
15852         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
15853         pp_c_cv_qualifiers. Handle qualifiers spelling here.
15854         (pp_c_type_qualifier_list): Call the function above.
15855         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
15856         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
15857         (WARN_FOR_QUALIFIERS): New macro.
15858         (convert_for_assignment): Use it.
15859
15860 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
15861
15862         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
15863
15864 2010-06-04  Jan Hubicka  <jh@suse.cz>
15865
15866         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
15867         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
15868         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
15869         DF_BYTE_LR_OUT): Update for embedded bitmaps.
15870         * fwprop.c (single_def_use_enter_block): Likewise.
15871         * ddg.c (create_ddg_dep_from_intra_loop_link,
15872         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
15873         * loop-iv.c (latch_dominating_def): Likewise.
15874         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
15875         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
15876         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
15877         df_rd_transfer_function, df_rd_top_dump,
15878         df_rd_bottom_dump): Update.
15879         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
15880         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
15881         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
15882         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
15883         df_lr_verify_solution_start, df_lr_verify_solution_end,
15884         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
15885         df_live_free_bb_info, df_live_alloc, df_live_reset,
15886         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
15887         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
15888         df_live_verify_solution_start, df_live_verify_solution_end,
15889         df_live_verify_transfer_functions, df_chain_create_bb,
15890         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
15891         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
15892         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
15893         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
15894         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15895         df_byte_lr_transfer_function, df_byte_lr_top_dump,
15896         df_byte_lr_bottom_dump, df_create_unused_note,
15897         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
15898         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
15899         df_md_transfer_function, df_md_init, df_md_confluence_0,
15900         df_md_confluence_n,
15901         df_md_top_dump, df_md_bottom_dump): Update.
15902         (struct df_lr_problem_data): Embedd bitmap headers.
15903
15904 2010-06-04  Jan Hubicka  <jh@suse.cz>
15905
15906         * dce.c (dce_process_block): Do not re-scan already marked
15907         instructions.
15908
15909 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
15910
15911         PR rtl-optimization/39871
15912         PR rtl-optimization/40615
15913         PR rtl-optimization/42500
15914         PR rtl-optimization/42502
15915         * ira.c (init_reg_equiv_memory_loc: New function.
15916         (ira): Call it twice.
15917         * reload.h (calculate_elim_costs_all_insns): Declare.
15918         * ira-costs.c: Include "reload.h".
15919         (regno_equiv_gains): New static variable.
15920         (init_costs): Allocate it.
15921         (finish_costs): Free it.
15922         (ira_costs): Call calculate_elim_costs_all_insns.
15923         (find_costs_and_classes): Take estimated elimination costs
15924         into account.
15925         (ira_adjust_equiv_reg_cost): New function.
15926         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
15927         * reload1.c (init_eliminable_invariants, free_reg_equiv,
15928         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
15929         (elim_bb): New static variable.
15930         (reload): Move code out of here into init_eliminable_invariants and
15931         free_reg_equiv.  Call them.
15932         (calculate_elim_costs_all_insns): New function.
15933         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
15934         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
15935         but call note_reg_elim_costly if we turned a valid memory address
15936         into an invalid one.
15937         * Makefile.in (ira-costs.o): Depend on reload.h.
15938
15939 2010-06-04  Julian Brown  <julian@codesourcery.com>
15940
15941         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
15942         for pool ranges.
15943
15944 2010-06-04  Richard Guenther  <rguenther@suse.de>
15945
15946         PR lto/41584
15947         * cgraph.h (struct varpool_node): Add lto_file_data field.
15948         * lto-cgraph.c (input_varpool_node): Initialize it.
15949
15950 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
15951
15952         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
15953         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
15954         predicate in "type" attribute calculation.
15955         (*addsi_1_zext): Ditto.
15956         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
15957         (*addsi_2_zext): Ditto.
15958         (*add<mode>_3): Ditto.
15959         (*addsi_3_zext): Ditto.
15960         (*add<mode>_5): Ditto.
15961
15962 2010-06-03  Jan Hubicka  <jh@suse.cz>
15963
15964         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
15965         of bitmap_bit_p.
15966         * cfganal.c (compute_dominance_frontiers_1): Likewise.
15967
15968 2010-06-03  Jan Hubicka  <jh@suse.cz>
15969
15970         * df-problems.c (df_create_unused_note, df_note_bb_compute):
15971         micro-optimize the checks when to add new note.
15972
15973 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
15974
15975         * final.c (output_asm_insn): Call
15976         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
15977         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
15978         (output_address): Call targetm.asm_out.print_operand_address.
15979         Update comments.
15980         * target.h (struct gcc_target): Add print_operand,
15981         print_operand_address, and print_operand_punct_valid_p fields.
15982         * targhooks.h (default_print_operand): Declare.
15983         (default_print_operand_address): Declare.
15984         (default_print_operand_punct_valid_p): Declare.
15985         * targhooks.c (default_print_operand): Define.
15986         (default_print_operand_address): Define.
15987         (default_print_operand_punct_valid_p): Define.
15988         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
15989         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
15990         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
15991         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
15992         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
15993         * vmsdbgout.c (addr_const_to_string): Update comment.
15994         * config/i386/i386.c (print_operand): Rename to...
15995         (ix86_print_operand): ...this.  Make static.
15996         (print_operand_address): Rename to...
15997         (ix86_print_operand_address): ...this.  Make static.  Call
15998         ix86_print_operand instead of PRINT_OPERAND.
15999         (ix86_print_operand_punct_valid_p): New function.
16000         (TARGET_PRINT_OPERAND): Define.
16001         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16002         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16003         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16004         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16005         (PRINT_OPERAND): Delete.
16006         (PRINT_OPERAND_ADDRESS): Delete.
16007         * config/i386/i386-protos.h (print_operand): Delete prototype.
16008         (print_operand_address): Delete prototype.
16009
16010 2010-06-03  Richard Guenther  <rguenther@suse.de>
16011
16012         PR tree-optimization/44403
16013         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16014         Preserve pointer qualifiers.
16015         (vect_create_data_ref_ptr): Likewise.
16016
16017 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16018
16019         PR c++/44294
16020         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16021
16022         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16023
16024 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16025
16026         PR debug/44375
16027         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16028         return false if merging the bbs would lead to goto_locus
16029         location being lost from the IL.
16030
16031 2010-06-03  Jan Hubicka  <jh@suse.cz>
16032             Jakub Jelinek  <jakub@redhat.com>
16033
16034         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16035         set->regs[i] is NULL or has just one entry.
16036
16037 2010-06-03  Jan Hubicka  <jh@suse.cz>
16038
16039         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16040         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16041
16042 2010-06-03  Paul Brook  <paul@codesourcery.com>
16043
16044         * config/arm/arm.c (FL_TUNE): Define.
16045         (arm_default_cpu, arm_cpu_select): Remove.
16046         (all_cores): Populate core field.
16047         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16048         (arm_find_cpu): New function.
16049         (arm_handle_option): Lookup cpu/architecture names.
16050         (arm_override_options): Cleanup mcpu/march/mtune handling.
16051         (arm_file_start): Ditto.
16052
16053 2010-06-03  Alan Modra  <amodra@gmail.com>
16054
16055         PR target/44169
16056         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16057         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16058         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16059         (rs6000_emit_load_toc_table): Likewise.
16060
16061 2010-06-02  Jan Hubicka  <jh@suse.cz>
16062
16063         * passes.c (init_optimization_passes): Put ipa reference
16064         after ipa pure-const.
16065
16066 2010-06-02  Jan Hubicka  <jh@suse.cz>
16067
16068         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16069         calls_read_all and calls_write_all.
16070         (get_reference_optimization_summary): Fix formatting.
16071         (is_proper_for_analysis): Check that decl is not readonly.
16072         (propagate_bits): Check CONST/PURE/noreturn flags.
16073         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16074         (analyze_function): Ignore indirect edges.
16075         (copy_global_bitmap): For all module statics, do nothing.
16076         (generate_summary): Do not print calls_read_all/calls_write_all.
16077         (read_write_all_from_decl): Take node as argument; check
16078         cgraph_node_cannot_return.
16079         (propagate): Reorganize read_all/write_all computation;
16080         check indirect edges; check ecf flags; use all_module_statics
16081         in the results; do not free all_module_statics.
16082         (stream_out_bitmap): Handle all_module_statics.
16083         (ipa_reference_write_optimization_summary): Likewise; use
16084         varpool/cgraph encoders to get boundaries.
16085         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16086         use it when possible.
16087
16088 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16089
16090         PR target/44218
16091         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16092         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16093
16094         * doc/extend.texi (powerpc builtins): Document vec_recip,
16095         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16096
16097         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16098         (rs6000_emit_swrsqrt): Ditto.
16099         (rs6000_emit_swdivsf): Delete.
16100         (rs6000_emit_swdivdf): Ditto.
16101         (rs6000_emit_swrsqrtsf): Ditto.
16102
16103         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16104         describe the reciprocal estimate support for each type.
16105         (recip_options): Map -mrecip=<opt> into option bits.
16106         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16107         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16108         reciprocal estimate instructions.
16109         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16110         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16111         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16112         cost information if -mdebug=cost or -mdebug=reg.
16113         (rs6000_override_options): Set -mrecip-precision for power6, and
16114         power7 machines.  If -mvsx or -mdfp, enable various options that
16115         came in previous instruction set ISAs, unless the option was
16116         explicitly disabled by the command line option.  Parse
16117         -mrecip=<opt> options.
16118         (rs6000_builtin_vectorized_function): Add support for vectorizing
16119         the reciprocal estimate builtins and expansions.
16120         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16121         (bdesc_2arg): Add reciprocal estimate builtins.
16122         (bdesc_1arg): Add reciprocal square root estimate builtins.
16123         (rs6000_expand_builtin): Rewrite to use a switch statement,
16124         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16125         (rs6000_init_builtins): Create declarations for reciprocal
16126         estimate builtins.
16127         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16128         sized, prefer traditional floating point registers, if integer
16129         vector types, prefer altivec registers.  Don't actually look at
16130         the memory address any more.
16131         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16132         builtins.
16133         (rs6000_load_constant_and_splat): New helper function to load up
16134         the constant for reciprocal estimate instructions.
16135         (rs6000_emit_madd): New helper function for generating
16136         multiply/add type instructions, based on the current switches.
16137         (rs6000_emit_msub): Ditto.
16138         (rs6000_emit_mnsub): Ditto.
16139         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16140         replace a divide with a reciprocal estimate and fixup, adding
16141         support for machines with high precision and vectors.
16142         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16143         low precision machines.
16144         (rs6000_emit_swdiv): New common function to be called to replace a
16145         division with reciprocal estimate and fixup.
16146         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16147         for double and vector types.  Add support for high precision machines.
16148
16149         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16150         the reciprocal estimate instructions can be generated.
16151         (TARGET_FRE): Ditto.
16152         (TARGET_FRSQRTES): Ditto.
16153         (TARGET_FRSQRTE): Ditto.
16154         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16155
16156         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16157         square root estimate on vectors.
16158         (re<mode>2): New insn for reciprocal division estimate on vectors.
16159
16160         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16161         New builtin.
16162         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16163         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16164         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16165         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16166         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16167         (RS6000_BUILTIN_RSQRT): Ditto.
16168         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16169         floating point builtin.
16170
16171         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16172         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16173         __RECIP_PRECISION__ based on the command line switches.
16174         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16175
16176         * config/rs6000/rs6000.opt (-mrecip): Document add support for
16177         replacing division instructions with reciprocal estimate and fixup.
16178         (-mrecip=<opt>): New option.
16179         (-mrecip-precision): Ditto.
16180
16181         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16182         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16183         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16184         precision scalar.
16185
16186         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16187         (UNSPEC_VREFP): Ditto.
16188         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16189         conterparts with regard to support of -mno-fused-madd and -ffast-math.
16190         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
16191         reciprocal estimate instructions to be generated.
16192         (altivec_vrefp): Ditto.
16193
16194         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
16195         estimate support.
16196         (rreg): New mode attribute for reciprocal estimate support.
16197         (recip<mode>3): New insn for division using reciprocal estimate
16198         and fixup builtins.
16199         (divide define_split): New define_split to convert floating point
16200         division to use reciprocal estimate if the user used the
16201         appropriate options and the split is run when we can add new
16202         pseudo registers for the fixup.
16203         (rsqrt<mode>2): New insn for reciprocal square root support.
16204         (recipsf3): Move into recip<mode>3.
16205         (recipdf3): Ditto.
16206         (fres): Use TARGET_FRES.
16207         (rsqrtsf2): Move into rsqrt<mode>2.
16208         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
16209         (copysignsf3): Add support for VSX.
16210         (fred): Use TARGET_FRE.
16211         (fred_fpr): Ditto.
16212         (rsqrtdf_internal1): New function for frsqrte instruciton.
16213
16214         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
16215         (vec_rsqrt): Ditto.
16216
16217 2010-06-03  Richard Guenther  <rguenther@suse.de>
16218
16219         PR middle-end/44291
16220         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
16221         (set_user_assembler_libfunc): Likewise.
16222
16223 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16224
16225         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
16226         defaults.h.
16227         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
16228         to defaults.h
16229         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
16230         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
16231         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
16232         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
16233         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
16234         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
16235         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
16236         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
16237         * defaults.h: Updated for above mentioned changes.
16238
16239 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
16240
16241         * c-common.c: Remove header include of tm_p.h.
16242         * Makefile.in (c-common.o): Remove TM_P_H dependency.
16243
16244 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
16245
16246         * tree.h (struct tree_decl_map): New type.
16247         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
16248         (tree_decl_map_hash): New prototype.
16249         (debug_expr_for_decl, value_expr_for_decl): Change into
16250         tree_decl_map hashtab from tree_map.
16251         (init_ttree): Adjust initialization.
16252         (tree_decl_map_hash): New function.
16253         (decl_debug_expr_lookup, decl_debug_expr_insert,
16254         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
16255
16256 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16257
16258         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
16259         linker emulations.
16260         * configure: Regenerate.
16261         * config.in: Regenerate.
16262
16263         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
16264         (X86_64_EMULATION): Define.
16265         (TARGET_LD_EMULATION): Use them.
16266
16267         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
16268         (SPARC64_EMULATION): Define.
16269         (LINK_ARCH_SPEC): Use them.
16270
16271 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16272
16273         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
16274         smallest_mode_for_size for computing the precision types of new
16275         graphite IVs.  Do not call lang_hooks.types.type_for_size.
16276
16277 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16278
16279         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
16280         information.
16281         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
16282
16283 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
16284
16285         PR middle-end/44363
16286         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
16287         return false instead.
16288
16289 2010-06-02  Jan Hubicka  <jh@suse.cz>
16290
16291         PR middle-end/44295
16292         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
16293         create new cgraph node to check callee.
16294
16295 2010-06-02  Richard Guenther  <rguenther@suse.de>
16296
16297         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
16298
16299 2010-06-02  Richard Guenther  <rguenther@suse.de>
16300
16301         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
16302         (lto_wrapper_cleanup): ... this.  Do not exit.
16303         (fatal): Adjust.  Exit here.
16304         (fatal_perror): Likewise.
16305         (fatal_signal): New function.
16306         (main): Set up signal handlers to cleanup temporary files.
16307         * Makefile.in (lto-wrapper.o): Adjust dependencies.
16308
16309 2010-06-02  Richard Guenther  <rguenther@suse.de>
16310
16311         PR tree-optimization/44377
16312         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
16313
16314 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16315
16316         * config/s390/2097.md (z10_fhex): Remove insn reservation.
16317         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
16318         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
16319         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
16320         instruction.
16321         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
16322
16323 2010-06-02  Jan Hubicka  <jh@suse.cz>
16324
16325         * bitmap.c (bitmap_descriptor): Add search_iter.
16326         (bitmap_find_bit): Increment it.
16327         (print_statistics): Print it.
16328
16329 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
16330
16331         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
16332         instead of gimple_build_call_vec.  Delete unnecessary local variable.
16333
16334 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16335
16336         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
16337         change from yesterday.
16338
16339 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
16340
16341         * c-ada-spec.c: Clean up redundant includes.
16342
16343 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
16344
16345         * gimplify.c: Do not include except.h and optabs.h.
16346         (gimplify_body): Do not initialize RTL profiling.
16347         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
16348         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
16349         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
16350         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
16351         langhooks.h.
16352
16353         * tree-pretty-print.h: Include pretty-print.h.
16354         * gimple-pretty-print.h: Include pretty-print.h.
16355
16356         * tree-pretty-print.c: Do not include diagnostic.h.
16357         * tree-vrp.c: Likewise.
16358         * tree-tailcall.c: Likewise
16359         * tree-scalar-evolution.c: Likewise
16360         * tree-ssa-dse.c: Likewise
16361         * tree-chrec.c: Likewise
16362         * tree-ssa-sccvn.c: Likewise
16363         * tree-ssa-copyrename.c: Likewise
16364         * tree-nomudflap.c: Likewise
16365         * tree-call-cdce.c: Likewise
16366         * tree-stdarg.c: Likewise
16367         * tree-ssa-math-opts.c: Likewise
16368         * tree-nrv.c: Likewise
16369         * tree-ssa-sink.c: Likewise
16370         * tree-browser.c: Likewise
16371         * tree-ssa-loop-ivcanon.c: Likewise
16372         * tree-ssa-loop.c: Likewise
16373         * tree-parloops.c: Likewise
16374         * tree-ssa-address.c: Likewise
16375         * tree-ssa-ifcombine.c: Likewise
16376         * tree-if-conv.c: Likewise
16377         * tree-data-ref.c: Likewise
16378         * tree-affine.c: Likewise
16379         * tree-ssa-phiopt.c: Likewise
16380         * tree-ssa-coalesce.c: Likewise
16381         * tree-ssa-pre.c: Likewise
16382         * tree-ssa-live.c: Likewise
16383         * tree-predcom.c: Likewise
16384         * tree-ssa-forwprop.c: Likewise
16385         * tree-ssa-dce.c: Likewise
16386         * tree-ssa-ter.c: Likewise
16387         * tree-ssa-loop-prefetch.c: Likewise
16388         * tree-optimize.c: Likewise
16389         * tree-ssa-phiprop.c: Likewise
16390         * tree-object-size.c: Likewise
16391         * tree-outof-ssa.c: Likewise
16392         * tree-ssa-structalias.c: Likewise
16393         * tree-switch-conversion.c: Likewise
16394         * tree-ssa-reassoc.c: Likewise
16395         * tree-ssa-operands.c: Likewise
16396         * tree-vectorizer.c: Likewise
16397         * tree-vect-data-refs.c: Likewise
16398         * tree-vect-generic.c: Likewise
16399         * tree-vect-stmts.c: Likewise
16400         * tree-vect-patterns.c: Likewise
16401         * tree-vect-slp.c: Likewise
16402         * tree-vect-loop.c: Likewise
16403         * tree-ssa-loop-ivopts.c: Likewise
16404         * tree-ssa-loop-im.c: Likewise
16405         * tree-ssa-loop-niter.c: Likewise
16406         * tree-ssa-loop-unswitch.c: Likewise
16407         * tree-ssa-loop-manip.c: Likewise
16408         * tree-ssa-loop-ch.c: Likewise
16409         * tree-dump.c: Likewise
16410         * tree-complex.c: Likewise
16411
16412         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
16413         * tree-ssa-uninit.c: Likewise
16414         * tree-ssa-threadupdate.c: Likewise
16415         * tree-ssa-uncprop.c: Likewise
16416         * tree-ssa-ccp.c: Likewise
16417         * tree-ssa-dom.c: Likewise
16418         * tree-ssa-propagate.c: Likewise
16419         * tree-ssa-alias.c: Likewise
16420         * tree-dfa.c: Likewise
16421         * tree-cfgcleanup.c: Likewise
16422         * tree-sra.c: Likewise
16423         * tree-ssa-copy.c: Likewise
16424         * tree-ssa.c: Likewise
16425         * tree-profile.c: Likewise
16426         * tree-cfg.c: Likewise
16427         * tree-ssa-threadedge.c: Likewise
16428         * tree-vect-loop-manip.c: Likewise
16429
16430         * tree-inline.c: Do not include diagnostic.h and expr.h.
16431         Include rtl.h.
16432         (copy_decl_for_dup_finish): Do not use NULL_RTX.
16433
16434         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
16435         * tree-loop-distribution.c: Likewise.
16436
16437 2010-06-01  Jan Hubicka  <jh@suse.cz>
16438
16439         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
16440
16441 2010-06-01  Jan Hubicka  <jh@suse.cz>
16442
16443         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
16444         remove return value.
16445         (split_bbs_on_noreturn_calls) .... here.
16446         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
16447         * tree-flow.h (fixup_noreturn_call): New.
16448
16449 2010-06-01  Jan Hubicka  <jh@suse.cz>
16450
16451         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16452
16453 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
16454
16455         * tree.h (build_nt_call_list): Delete.
16456         * tree.c (build_nt_call_list): Delete.
16457
16458 2010-06-01  Jan Hubicka  <jh@suse.cz>
16459
16460         * fwprop.c: Make emit-rtl.h include last.
16461         * rtlanal.c: Include emit-rtl.h.
16462         * genautomata.c: Output emit-rtl include into insn-automata.c
16463         * df-scan.c: Include emit-rtl.h.
16464         * haifa-sched.c: Indlude emit-rtl.h.
16465         * mode-switching.c: Indlude emit-rtl.h.
16466         * graph.c: Indlude emit-rtl.h.
16467         * sel-sched.c: Include emit-rtl.h.
16468         * sel-sched-ir.c: Include emit-rtl.h.
16469         * ira-build.c: Include emit-rtl.h.
16470         * emit-rtl.c (first_insn, last_insn): Remove defines.
16471         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
16472         Move to emit-rtl.h.
16473         (set_new_first_and_last_insn, get_last_insn_anywhere,
16474         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
16475         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
16476         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
16477         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
16478         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
16479         Use accessor functions.
16480         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16481          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16482         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16483         mem_expr_equal_p): Move here from rtl.h.
16484         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
16485         Move here from emit-rtl.c; make inline.
16486         * cfglayout.h: Include emit-rtl.h.
16487         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
16488          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
16489         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
16490         mem_expr_equal_p, get_insns, set_first-insn,
16491         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
16492         * reg-stack.c: Include emit-rtl.h.
16493         * dce.c: Likewise.
16494
16495 2010-06-01  Jan Hubicka  <jh@suse.cz>
16496
16497         * cgraph.h (tree_function_versioning): Update prototype.
16498         (cgraph_function_versioning): Update prototype.
16499         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
16500         bitmap.
16501         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
16502         (cgraph_materialize_clone, save_inline_function_body): Update use of
16503         tree_function_versioning.
16504         * tree-inline.c (copy_bb): Look for previous copied block to link
16505         after; fix debug output.
16506         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
16507         (copy_body): Likewise.
16508         (expand_call_inline): Update use of copy_body.
16509         (tree_function_versioning): Update use of copy body; accept
16510         blocks_to_copy and new_entry.
16511
16512 2010-06-01  Jan Hubicka  <jh@suse.cz>
16513
16514         * gegenrtl.c: Remove unnecesary prototypes.
16515         (gendecl): Remove.
16516         (gendef): Produce static inline.
16517         (gencode): Remove.
16518         (main): Do not decode parameters; generate header only.
16519         * Makefile.in (genrtl.c): Remove.
16520
16521 2010-06-01  Jan Hubicka  <jh@suse.cz>
16522
16523         * tree-switch-conversion.c (build_one_array): Make it readonly.
16524
16525 2010-06-01  Richard Guenther  <rguenther@suse.de>
16526
16527         * optabs.c (init_optabs): Guard all accesses to reinit.
16528         * ipa-pure-const.c (propagate): Fix another typo.
16529         * opts.c (common_handle_option): Split assignment to bool.
16530         * c-opts.c (c_common_handle_option): Likewise.
16531
16532 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
16533             Matthew Gingell  <gingell@adacore.com>
16534
16535         * doc/invoke.texi: Mention -fdump-ada-spec.
16536         * tree-dump.c (dump_files): Add ada-spec.
16537         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
16538         * tree-pass.h (tree_dump_index): Add TDI_ada.
16539         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
16540         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
16541         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
16542         * c-decl.c: Include c-ada-spec.h.
16543         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
16544         functions.
16545         (c_write_global_declarations): Add handling of -fdump-ada-spec.
16546         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
16547         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
16548         * c-ada-spec.h, c-ada-spec.c: New files.
16549
16550 2010-06-01  Richard Guenther  <rguenther@suse.de>
16551
16552         PR lto/43853
16553         * ipa-pure-const.c (get_function_state): Hand back varying state
16554         if we do not have one.
16555         (has_function_state): New function.
16556         (duplicate_node_data): Adjust.
16557         (remove_node_data): Likewise.
16558         (pure_const_write_summary): Likewise.
16559         (propagate): Likewise.  Fix typo.
16560
16561 2010-06-01  Jan Hubicka  <jh@suse.cz>
16562
16563         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
16564         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
16565         (execute_all_ipa_transforms): Do not play with the states.
16566
16567 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16568
16569         * config/arm/t-linux-androideabi: New.
16570         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
16571
16572 2010-06-01  Jan Hubicka  <jh@suse.cz>
16573
16574         * tree-inline.c (estimate_num_insns): For stdarg functions look
16575         into call statement to count cost of argument passing.
16576
16577 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
16578
16579         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
16580         argument for fprintf.
16581         (ix86_output_addr_diff_elt): Likewise.
16582         (x86_function_profiler): Likewise.
16583         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
16584         (LPREFIX): Likewise.
16585         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
16586
16587 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
16588
16589         PR target/44338
16590         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
16591         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
16592         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
16593         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
16594         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
16595         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
16596         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
16597         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
16598         TARGET_FUSED_MADD.
16599
16600 2010-05-31  Jan Hubicka  <jh@suse.cz>
16601
16602         * tree.h (tree_range_check_failed): Declare noreturn.
16603
16604 2010-05-31  Jan Hubicka  <jh@suse.cz>
16605
16606         * gimple.c (gimple_call_builtin_p): New function.
16607         * gimple.h (gimple_call_builtin_p): Declare.
16608         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
16609         to exit.
16610         (execute_warn_function_return): BUILT_IN_RETURN is return.
16611         (split_critical_edges): Return edges are not critical.
16612         (is_ctrl_altering_stmt): Builtin_in_return is altering.
16613         (gimple_verify_flow_info): Handle built_in_return.
16614         (execute_warn_function_return): Handle built_in_return.
16615         * ipa-pure-const.c (check_call): Ignore builtin_return.
16616
16617 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
16618
16619         PR middle-end/44337
16620         * expr.c (expand_assignment): Don't store anything for out-of-bounds
16621         array accesses with non-MEM.
16622
16623         PR tree-optimization/44182
16624         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
16625         newly needs to end a bb is followed by debug stmts, instead return
16626         true from the function at the end.
16627         (maybe_move_debug_stmts_to_successors): New function.
16628         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
16629
16630 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
16631
16632         PR target/44161
16633         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
16634
16635 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
16636
16637         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
16638         for nested functions in non-optimized compilation.
16639
16640 2010-05-31  Richard Guenther  <rguenther@suse.de>
16641
16642         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
16643
16644 2010-05-30  Jan Hubicka  <jh@suse.cz>
16645
16646         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
16647
16648 2010-05-30  Richard Guenther  <rguenther@suse.de>
16649
16650         PR lto/42975
16651         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
16652         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
16653         no longer needed.
16654
16655 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
16656
16657         * config/darwin.c (output_objc_section_asm_op): Add comment.
16658         (name_needs_quotes): Add '_' to list of valid comment chars.
16659         (machopic_output_function_base_name): Remove unneeded quotes.
16660         (darwin_encode_section_info): Adjust asm whitespace.
16661         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
16662         (ASM_OUTPUT_LOCAL): Ditto.
16663         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
16664         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
16665         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
16666
16667 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
16668
16669         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
16670         RS6000_OUTPUT_BASENAME unconditionally.
16671         (rs6000_output_function_epilogue): Likewise.
16672
16673 2010-05-30  Jan Hubicka  <jh@suse.cz>
16674
16675         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
16676         nodes.
16677
16678 2010-05-30  Richard Guenther  <rguenther@suse.de>
16679
16680         * tree-cfg.c (verify_gimple_assign_single): Implement
16681         verification for COND_EXPR rhs.
16682
16683 2010-05-30  Jan Hubicka  <jh@suse.cz>
16684
16685         * cgraph.h (cgraph_dump_file): Declare.
16686         * cgraphunit.c (cgraph_dump_file): Export.
16687         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
16688
16689 2010-05-30  Jan Hubicka  <jh@suse.cz>
16690
16691         * dwarf2out.c (reference_to_unused,
16692         premark_types_used_by_global_vars_helper): Avoid creation of new
16693         varpool nodes.
16694
16695 2010-05-30  Jan Hubicka  <jh@suse.cz>
16696
16697         * cgraph.h (cgraph_node_cannot_return,
16698         cgraph_edge_cannot_lead_to_return): New functions.
16699         * cgraph.c (cgraph_node_cannot_return,
16700         cgraph_edge_cannot_lead_to_return): Use them.
16701         * ipa-pure-const.c (pure_const_names): New static var.
16702         (check_call): Handle calls not leading to return.
16703         (pure_const_read_summary): Dump info read.
16704         (propagate): Dump info about propagation process; ignore side effects
16705         of functions not leading to exit; fix handling of pure functions.
16706
16707 2010-05-30  Jan Hubicka  <jh@suse.cz>
16708
16709         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
16710         for tail call epilogues.
16711
16712 2010-05-30  Jan Hubicka  <jh@suse.cz>
16713
16714         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
16715         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
16716         dump files.
16717
16718 2010-05-29  Jan Hubicka  <jh@suse.cz>
16719
16720         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
16721         node; remove references in node we no longer keep in cgrpah but need
16722         body of.
16723
16724 2010-05-29  Jan Hubicka  <jh@suse.cz>
16725
16726         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
16727
16728 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16729
16730         PR target/44165
16731         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
16732
16733 2010-05-29  Jan Hubicka  <jh@suse.cz>
16734
16735         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
16736         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
16737         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
16738         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
16739         debug_names_replaced_by, debug_update_ssa): Likewise.
16740         * sbitmap.c (debug_sbitmap): Likewise.
16741         * genrecog.c (debug_decision, debug_decision_list): Likewise.
16742         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
16743         debug_tree_chain): Likewise.
16744         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
16745         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
16746         * optabs.c (debug_optab_libfuncs): Likewise.
16747         (verify_loop_closed_ssa): Likewise.
16748         * value-prof.c (verify_histograms): Likewise.
16749         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
16750         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
16751         * cfghooks.c (verify_flow_info): Likewise.
16752         * fold-const.c (debug_fold_checksum): Likewise.
16753         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
16754         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
16755         Likewise.
16756         * omega.c (debug_omega_problem): Likewise.
16757         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
16758         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
16759         * dominance.c (verify_dominators, debug_dominance_info,
16760         debug_dominance_tree): Likewise.
16761         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
16762         * df_regno_debug, df_ref_debug,
16763         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
16764         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
16765         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
16766         * sel-sched.c (debug_state): Likewise.
16767         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
16768         Likewise.
16769         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
16770         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
16771         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
16772         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
16773         Likewise.
16774         * c-pretty-print.c (debug_c_tree): Likewise.
16775         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
16776         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
16777         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
16778         * ebitmap.c (debug_ebitmap): Likewise.
16779         * function.c (debug_find_var_in_block_tree): Likewise.
16780         * print-rtl.c (debug_rtx): Likewise.
16781         (debug_rtx_count): Likewise.
16782         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
16783         * stor-layout.c (debug_rli): Likewise.
16784         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
16785         * tree-data-ref.c (debug_data_references,
16786         debug_data_dependence_relations, debug_data_reference,
16787         debug_data_dependence_relation, debug_rdg_vertex,
16788         debug_rdg_component, debug_rdg): Likewise.
16789         * tree-affine.c (debug_aff): Likewise.
16790         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
16791         Likewise.
16792         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
16793         * emit-rtl.c (verify_rtl_sharing): Likewise.
16794         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
16795         debug_value_expressions): Likewise.
16796         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
16797         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
16798         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
16799         * cfglayout.c (verify_insn_chain): Likewise.
16800         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
16801         debug_clast_stmt, debug_generated_program): Likewise.
16802         * ggc-page.c (debug_print_page_list): Likewise.
16803         * tree-ssa-ter.c (debug_ter): Likewise.
16804         * graphite-dependences.c (debug_pddr): Likewise.
16805         * sched-deps.c (debug_ds): Likewise.
16806         * tree-ssa.c (verify_ssa): Likewise.
16807         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
16808         debug_scattering_functions, debug_iteration_domains, debug_pdr,
16809         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
16810         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
16811         * tree-inline.c (debug_find_tree): Likewise.
16812         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
16813         debug_ppl_powerset_matrix): Likewise.
16814         * var-tracking.c (debug_dv): Likewise.
16815         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
16816         * cfgloop.c (verify_loop_structure): Likewise.
16817         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
16818         * c-common.c (verify_sequence_points): Likewise.
16819         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
16820         debug_candidates, debug_rgn_dependencies): Likewise.
16821         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
16822         * debug_constraint_graph, debug_solution_for_var,
16823         debug_sa_points_to_info): Likewise.
16824         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
16825         Likewie.
16826         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
16827         debug_loops, debug_loop, debug_loop_num): Likewise.
16828         * passes.c (debug_pass): Likewise.
16829         (dump_properties): Likewise; add cfglayout property.
16830         (debug_properties): Likewise.
16831         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
16832         * varpool.c (debug_varpool): Likewise.
16833         * regcprop.c (debug_value_data): Likewise.
16834         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
16835         debug_immediate_uses_for): Likewise.
16836
16837 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
16838
16839         PR bootstrap/44315
16840         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
16841         Filter out insn-flags.h.
16842
16843 2010-05-29  Jan Hubicka  <jh@suse.cz>
16844
16845         * cgraph.h (struct varpool_node_set_def,
16846         struct cgraph_node_set_def): Remove unused AUX pointer.
16847         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
16848         VEC_empty macro.
16849
16850 2010-05-29  Jan Hubicka  <jh@suse.cz>
16851
16852         PR middle-end/44324
16853         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
16854
16855 2010-05-29  Richard Guenther  <rguenther@suse.de>
16856
16857         * lto-streamer.c (cached_bp): New global variable.
16858         (bitpack_create): Return the cached bitpack, if available.
16859         (bitpack_delete): Clear and cache the bitpack, if appropriate.
16860         (bp_pack_value): Remove redundant asserts.
16861
16862 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
16863
16864         PR middle-end/44306
16865         * tree-if-conv.c (is_true_predicate): New.
16866         (is_predicated): Use is_true_predicate.
16867         (add_to_predicate_list): Same.  Do not use unshare_expr.
16868         (add_to_dst_predicate_list): Same.
16869
16870 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
16871
16872         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
16873         field on edges.
16874         (predicate_bbs): Same.
16875         (clean_predicate_lists): Same.
16876         (find_phi_replacement_condition): Do not AND the predicate from
16877         edge->aux.
16878
16879 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
16880
16881         PR bootstrap/44315
16882         * Makefile.in (build/gencondmd.o): Add a missing `\'.
16883
16884 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16885
16886         PR target/44261
16887         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
16888         (negdf2): Adjust expander pattern and use negdf2_slow.
16889         (negsf2): Likewise.
16890
16891 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
16892
16893         * basic-block.h (struct control_flow_graph): Move last_label_uid field
16894         up.
16895         * df.h (struct df_base_ref): Move regno field up.
16896         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
16897         * expr.h (struct separate_ops): Move location field up.
16898         * optabs.h (struct optab_d): Move libcall_basename field down.
16899         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
16900         * config/i386/i386.h (struct machine_function): Convert call_abi field
16901         into a bitfield.  Move cfa field to the end of the structure.
16902
16903 2010-05-29  Jan Hubicka  <jh@suse.cz>
16904
16905         * varpool.c (varpool_get_node): Fix lookup.
16906
16907 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
16908
16909         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
16910         RTL specific prototypes with #ifdef RTX_CODE.
16911         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
16912         * config/spu/t-spu-elf: Fix dependencies.
16913
16914         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
16915
16916 2010-05-29  Mike Stump  <mikestump@comcast.net>
16917
16918         PR bootstrap/44315
16919         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
16920         TM_H when building to avoid dependency loops.
16921
16922 2010-05-29  Jan Hubicka  <jh@suse.cz>
16923
16924         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
16925         refs and body; not the whole node for masters of materialized clones.
16926
16927 2010-05-29  Mike Stump  <mikestump@comcast.net>
16928
16929         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
16930
16931 2010-05-29  Jan Hubicka  <jh@suse.cz>
16932
16933         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
16934         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
16935         use of clone_function_name.
16936         * cgraph.h (cgraph_create_virtual_clone,
16937         cgraph_function_versioning): update prototypes.
16938         (clone_function_name): Declare.
16939         * ipa-cp.c (ipcp_insert_stage): Update call of
16940         cgraph_create_virtual_clone.
16941         * omp-low.c (create_omp_child_function_name): Use
16942         cgraph_create_virtual_clone.
16943         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
16944         (cgraph_function_versioning): Take SUFFIX argument; produce new name
16945         and make decl local.
16946
16947 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
16948
16949         * vec.h: Include statistics.h
16950         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
16951         with VEC_H.
16952
16953 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
16954
16955         * c-lex.c: Do not include c-tree.h.
16956         * c-pretty-print.c: Likewise.
16957         * c-opts.c: Likewise.
16958         * c-gimplify.c: Likewise.
16959         * c-common.c: Likewise.
16960         * c-dump.c: Likewise.  Include c-common.h.
16961
16962 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
16963
16964         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
16965         before including diagnostic-core.h.
16966         (c_cpp_error): New prototype moved from c-tree.h.
16967         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
16968         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
16969         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
16970         (c_cpp_error): Prototype moved to c-common.h.
16971         * Makefile.in: Update dependency for C_COMMON_H.
16972
16973 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
16974
16975         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
16976         * c-common.c (c_register_addr_space): Remove here.
16977         * c-decl.c (c_register_addr_space): Re-add here.
16978
16979 2010-05-28  Mike Stump  <mikestump@comcast.net>
16980
16981         * config/darwin-c.c: Remove c-tree.h include.
16982
16983 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
16984
16985         * gcc.c: Include diagnostic.h.
16986         (error_count): Remove.  All users changed to use errorcount.
16987         (programname): Remove.  All users changed to use progname.
16988         (fancy_abort, internal_error, fatal_error, error, warning, inform,
16989         fnotice): Remove.
16990         (execute): Don't include "Internal error" and bug reporting
16991         information in argument of internal_error call.
16992         (process_command): Don't increment error_count after calling
16993         perror_with_name.
16994         (input_filename): Rename to gcc_input_filename.  All users
16995         changed.
16996         (main): Call diagnostic_initialize.  Register delete_temp_files
16997         with atexit.  Use seen_error to test for errors.
16998         * gcc.h: Include diagnostic-core.h.
16999         (fatal_error, error, warning): Remove.
17000         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17001         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17002         (gcc.o): Update dependencies.
17003
17004 2010-05-28  Jeff Law  <law@redhat.com>
17005
17006         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17007         functions.
17008         * ira.h (ira_bad_reload_regno): Declare
17009         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17010
17011         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17012         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17013         (allocno_reload_assign): Likewise.
17014
17015 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17016
17017         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17018         build1_stat.
17019
17020 2010-05-28  Richard Guenther  <rguenther@suse.de>
17021
17022         PR lto/44312
17023         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17024         Stream fixed-point constants mode.
17025         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17026         and TYPE_PRECISION.
17027         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17028         Stream fixed-point constants mode.
17029         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17030         and TYPE_PRECISION.
17031
17032 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17033
17034         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17035         only place it was called from.
17036         (number_of_latch_executions): Do not return chrec_dont_know when the
17037         may_be_zero is a runtime condition: instead, return a COND_EXPR
17038         including the may_be_zero condition.
17039         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17040         of nb_iterations.
17041         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17042         COND_EXPRs.
17043
17044 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17045
17046         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17047         generate COND_EXPRs for degenerate_phi_result.
17048
17049 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17050
17051         PR middle-end/44293
17052         * tree-if-conv.c (if_convertible_loop_p): Check the
17053         if-convertibility of phi nodes in non predicated BBs.
17054
17055 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17056
17057         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17058
17059 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17060
17061         PR driver/15303
17062         * gcc.c (inform, warning, inform): New functions.
17063         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17064         gmsgid.  All callers changed.
17065         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17066         (fatal_error): Rename to fatal_signal.  All users changed.
17067         (fatal): Rename to fatal_error; change cmsgid parameter to
17068         gmsgid.  All callers changed.
17069         (process_command): Use warning instead of error for warnings.
17070         (end_going_arg): Don't use _() around argument of error.
17071         (do_spec_1): Use inform for message from %n specs.  Use warning
17072         instead of error for warnings.
17073         (main): Use inform for comparison messages.  Use warning for
17074         message about unused linker input.
17075         (error): Increment error_count.  Print "error: ".
17076         * gcc.h (fatal): Change to fatal_error.
17077         (warning): Declare.
17078         * config/darwin-driver.c (darwin_default_min_version): Use warning
17079         instead of fprintf for warnings.
17080         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17081
17082 2010-05-28  Julian Brown  <julian@codesourcery.com>
17083
17084         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17085         (*thumb2_addsi3_compare0_scratch): New.
17086         * config/arm/constraints.md (Pv): New.
17087         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17088         for ARM mode only.
17089         (*addsi3_compare0_scratch): Likewise.
17090
17091 2010-05-28  Jan Hubicka  <jh@suse.cz>
17092
17093         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17094         check.
17095         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17096         only on local statics.
17097
17098 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17099
17100         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17101
17102 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17103
17104         PR bootstrap/44314
17105         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17106         (OPTION_GLIBC): Define.
17107
17108 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17109
17110         PR debug/41048
17111         * dwarf2out.c (double_int_type_size_in_bits): New function.
17112         (round_up_to_align): Change first argument and return value to
17113         double_int.
17114         (field_byte_offset): Work internally on double_ints.
17115
17116         PR target/43636
17117         * builtins.c (expand_movstr): Use a temporary pseudo instead
17118         of target even when target is not NULL and not const0_rtx, but
17119         fails movstr predicate.
17120         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17121
17122 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17123
17124         * final.c (rest_of_clean_state): Use %m in errors instead of
17125         strerror (errno).
17126         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17127         instead of strerror.
17128         * toplev.c (process_options): Use %m in errors instead of strerror
17129         (errno).
17130         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17131         (errno).
17132
17133 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17134
17135         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17136         (ix86_canonical_va_list_type): Make static.  Add declaration.
17137         (ix86_enum_va_list): Make static.  Reindent.
17138         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17139         (ix86_canonical_va_list_type): Ditto.
17140         (ix86_enum_va_list): Ditto.
17141
17142 2010-05-28  Richard Guenther  <rguenther@suse.de>
17143
17144         * lto-wrapper.c (run_gcc): With -save-temps generate a
17145         user-visible ltrans filename.  Fixup ltrans unit numbering.
17146
17147 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17148
17149         * c-common.c (c_common_nodes_and_builtins): Replace use
17150         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17151         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17152         to ix86_enum_va_list.
17153         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17154         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17155         (TARGET_ENUM_VA_LIST_P): Add hook description.
17156         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17157         * target.h (gcc_target): Add enum_va_list hook.
17158
17159         PR bootstrap/44299
17160         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17161         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17162         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17163
17164 2010-05-28  Alan Modra  <amodra@gmail.com>
17165
17166         PR target/44266
17167         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17168         emit_library_call machinery to set up __tls_get_addr calls.
17169
17170 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17171
17172         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17173
17174 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17175
17176         Revert fix for PR c++/44188
17177         * c-common.c (is_typedef_decl): Revert the moving of  this
17178         definition ...
17179         * tree.c (is_typedef_decl): ... here.
17180         (typdef_variant_p): Revert the moving of this  definition
17181         here from cp/tree.c.
17182         * c-common.h (is_typedef_decl): Revert the moving of this
17183         declaration ...
17184         * tree.h (is_typedef_decl): ... here.
17185         (typedef_variant_p): Revert the moving of this  declaration here
17186         from cp/cp-tree.h
17187         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17188         (gen_tagged_type_die): Revert the splitting out of ...
17189         (gen_type_die_with_usage): ... this function. Revert the anonymous
17190         tagged type handling.
17191         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
17192         typedefs naming anonymous tagged types.
17193
17194 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17195
17196         * config/rs6000/rs6000-modes.def (PSImode): Delete.
17197
17198 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
17199
17200         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
17201         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
17202         throughout.
17203         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
17204         "xer" to "ca".
17205         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
17206         XER_REGS to CA_REGS throughout.
17207         * config/rs6000/rs6000.h: Same.
17208         (ADDITIONAL_REGISTER_NAMES): Add "xer".
17209         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
17210         that mode_iterator "P" is the size for arithmetic carries as well.
17211         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
17212
17213 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17214
17215         PR bootstrap/44255
17216         * combine.c (struct rtx_subst_pair): Define unconditionally.
17217         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
17218         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
17219         Call make_compound_operation on pair->to.
17220         (propagate_for_debug): Don't call make_compound_operation here.
17221         Always use simplify_replace_fn_rtx.
17222
17223 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
17224
17225         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
17226         * config/xtensa/xtensa.c (override_options): Check
17227           TARGET_FORCE_NO_PIC and set flag_pic.
17228         * config/xtensa/xtensa.opt: Document -mforce-no-pic
17229
17230 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17231
17232         PR bootstrap/44299
17233         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
17234         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
17235
17236 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17237
17238         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
17239         toplev.h.
17240         * diagnostic.c: Don't include toplev.h.
17241         (progname): Define.  Moved from toplev.c.
17242         (seen_error): New function.
17243         * diagnostic.h: Include diagnostic-core.h.
17244         (diagnostic_t, emit_diagnostic): Don't declare here.
17245         * toplev.c (progname): Move to toplev.c.
17246         (emit_debug_global_declarations, compile_file, finalize,
17247         do_compile, toplev_main): Use seen_error.
17248         * toplev.h: Include diagnostic-core.h.
17249         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
17250         internal_error, warning, warning_at, error, error_n, error_at,
17251         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
17252         verbatim, fnotice, progname): Move to diagnostic-core.h.
17253         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
17254         (expand_builtin_expect): Use seen_error.
17255         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
17256         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
17257         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
17258         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
17259         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
17260         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
17261         errorcount for errors.
17262         * c-opts.c (c_common_finish): Use seen_error.
17263         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17264         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
17265         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
17266         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
17267         (get_coverage_counts): Use seen_error.
17268         * dwarf2out.c (dwarf2out_finish): Use seen_error.
17269         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
17270         gimplify_body): Use seen_error.
17271         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
17272         * ipa-pure-const.c (gate_pure_const): Use seen_error.
17273         * ipa-reference.c (gate_reference): Use seen_error.
17274         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
17275         * lambda-code.c: Include diagnostic-core.h instead of
17276         diagnostic.h.
17277         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
17278         * lto-compress.c: Include diagnostic-core.h instead of
17279         diagnostic.h.
17280         * lto-section-in.c: Include diagnostic-core.h instead of
17281         diagnostic.h.
17282         * lto-streamer-out.c: Include diagnostic-core.h instead of
17283         diagnostic.h.
17284         * lto-streamer.c: Include diagnostic-core.h instead of
17285         diagnostic.h.
17286         (gate_lto_out): Use seen_error.
17287         * matrix-reorg.c: Include diagnostic-core.h instead of
17288         diagnostic.h.
17289         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
17290         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
17291         (gate_expand_omp, lower_omp_1): Use seen_error.
17292         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
17293         (rest_of_decl_compilation, rest_of_type_compilation,
17294         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
17295         * tree-cfg.c (label_to_block_fn): Use seen_error.
17296         * tree-inline.c (optimize_inline_calls): Use seen_error.
17297         * tree-mudflap.c (mudflap_finish_file): Use
17298         seen_error.
17299         * tree-optimize.c (gate_all_optimizations,
17300         gate_all_early_local_passes, gate_all_early_optimizations): Use
17301         seen_error.
17302         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
17303         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
17304         (varpool_remove_unreferenced_decls,
17305         varpool_assemble_pending_decls): Use seen_error.
17306         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
17307         (TOPLEV_H, DIAGNOSTIC_H): Update.
17308         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
17309         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
17310         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
17311         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
17312         coverage.o, lambda-code.o): Update dependencies.
17313
17314 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
17315
17316         PR c++/44188
17317         * c-common.c (is_typedef_decl): Move this definition ...
17318         * tree.c (is_typedef_decl): ... here.
17319         (typdef_variant_p): Move definition here from cp/tree.c.
17320         * c-common.h (is_typedef_decl): Move this declaration ...
17321         * tree.h (is_typedef_decl): ... here.
17322         (typedef_variant_p): Move declaration here from cp/cp-tree.h
17323         * dwarf2out.c (is_naming_typedef_decl): New function.
17324         (gen_tagged_type_die): Split out of ...
17325         (gen_type_die_with_usage): ... this function. When an anonymous
17326         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17327         is emitted for the typedef.
17328         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17329         anonymous tagged types.
17330
17331 2010-05-27  Jason Merrill  <jason@redhat.com>
17332
17333         * print-tree.c (debug_vec_tree): New fn.
17334         (print_vec_tree): New fn.
17335         * tree.h: Declare them.
17336         * gdbinit.in (pvt): New command.
17337
17338         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
17339
17340         * gdbinit.in (pdd): New command.
17341
17342 2010-05-27  Jan Hubicka  <jh@suse.cz>
17343
17344         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
17345         (update_caller_keys): Return early if there are no callers;
17346         only update fibheap when decresing the key.
17347         (update_callee_keys): Avoid recursion.
17348         (decide_inlining_of_small_functions): When badness does not match;
17349         re-insert into fibheap.
17350
17351 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
17352
17353         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
17354         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
17355         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
17356         (ALL_HOST_OBJS): Now a union of the above two.
17357         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
17358         all files in ALL_HOST_FRONTEND_OBJS.
17359         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
17360
17361         * c-common.c: Pretend to be a backend file by undefining
17362         IN_GCC_FRONTEND (still need rtl.h here).
17363
17364 2010-05-27  Jan Hubicka  <jh@suse.cz>
17365
17366         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
17367         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
17368
17369 2010-05-27  Jan Hubicka  <jh@suse.cz>
17370
17371         * sched-ebb.c: Rename struct deps to struct deps_desc.
17372         * ddg.c: Likewise.
17373         * sel-sched-ir.c: Likewise.
17374         * sched-deps.c: Likewise.
17375         * sched-int.h: Likewise.
17376         * sched-rgn.c: Likewise.
17377
17378 2010-05-27  Jon Beniston  <jon@beniston.com>
17379
17380         PR 43726
17381         * config/lm32/lm32.h: Remove definition of
17382         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
17383
17384 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17385
17386         PR lto/44230
17387         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
17388
17389 2010-05-27  Richard Guenther  <rguenther@suse.de>
17390
17391         PR tree-optimization/44284
17392         * tree-vect-stmts.c (vectorizable_assignment): Handle
17393         sign-changing conversions as simple copy.
17394
17395 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17396
17397         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
17398         Bionic C library.
17399         (__gthread_active_p): Check for pthread_create if compiling against
17400         Bionic C library.
17401
17402 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17403
17404         Support compilation for Android platform.  Reimplement -mandroid.
17405
17406         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
17407         (*android*): Set ANDROID_DEFAULT.
17408         (arm*-*-linux*): Include linux-android.h.
17409         (arm*-*-eabi*): Don't include previous -mandroid implementation.
17410         * config/arm/eabi.h: Remove, move Android-specific parts ...
17411         * config/linux-android.h: ... here.  New file.
17412         * config/arm/eabi.opt: Rename to ...
17413         * config/linux-android.opt: ... this.
17414         (mandroid): Allow -mno-android option.  Initialize based on
17415         ANDROID_DEFAULT.
17416         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
17417         Move logic to corresponding LINUX_TARGET_* macros.
17418         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
17419         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
17420         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
17421         Android definitions.
17422         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
17423         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
17424         Document.
17425
17426 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17427
17428         Add support for Bionic C library
17429
17430         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
17431         macro.
17432         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
17433         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
17434
17435         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
17436         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
17437         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
17438         to support multiple C libraries.  Handle Bionic.
17439         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
17440         (BIONIC_DYNAMIC_LINKER64): Define.
17441         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
17442         Update.
17443         (TARGET_HAS_SINCOS): Enable for Bionic.
17444
17445         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
17446         the last option specified on command line take effect.
17447         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
17448         (mbionic): New.
17449         (mglibc, muclibc): Update.
17450
17451         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
17452         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
17453         DEFAULT_LIBC.
17454
17455         * doc/invoke.texi (-mglibc, -muclibc): Update.
17456         (-mbionic): Document.
17457
17458 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17459
17460         * c-common.h (c_register_addr_space): Add prototype.
17461         (ADDR_SPACE_KEYWORD): Remove.
17462         * c-common.c (c_register_addr_space): New function.
17463         (c_addr_space_name): Reimplement.
17464         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
17465
17466         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
17467         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
17468
17469         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
17470         Remove TARGET_ADDR_SPACE_KEYWORDS.
17471
17472 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
17473
17474         * input.c: New file.
17475         * input.h (main_input_filename): Move declaration to toplev.h.
17476         * toplev.c (input_location, line_table): Move to input.c
17477         * toplev.h (main_input_filename): Move declaration from input.h.
17478         * tree.c (expand_location): Move to input.c.
17479         * Makefile.in (OBJS-common): Add input.o.
17480         (input.o): Add dependencies.
17481
17482 2010-05-27  Richard Guenther  <rguenther@suse.de>
17483
17484         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
17485         for non-existant files.
17486         (fork_execute): Mark args_name file as deleted.
17487
17488 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
17489
17490         PR bootstrp/44287
17491         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
17492         (narrow_signed_type): Likewise.
17493
17494 2010-05-26  Jan Hubicka  <jh@suse.cz>
17495
17496         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
17497         edge only when checking is enabled; check using former_clone_of;
17498         check inline clones too.
17499         (cgraph_materialize_clone): Record former_clone_of pointer.
17500         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
17501         combining redirections; dump args_to_skip bitmap
17502         (cgraph_materialize_all_clones): Do no redirection here.
17503         * ipa-inline.c (inline_transform): Do redirection here.
17504         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
17505         cheking only).
17506
17507 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17508
17509         * config/avr/avr-c.c: Do not include regs.h.
17510         Include cpplib.h for cpp_define and tree.h for c-common.h.
17511         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
17512         * config/avr/t-avr: Fix dependencies for avr-c.o.
17513
17514 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17515
17516         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
17517         string instead of SYMBOL_REF rtx.
17518         * rtl.h (set_stack_check_libfunc): Move prototype from here...
17519         * libfuncs.h: ...to here.  Adjust for explow.c change.
17520
17521 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
17522
17523         * pretty-print.c: Don't include ggc.h.
17524         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
17525         (identifier_to_locale): Use them for allocation.
17526         * pretty-print.h (identifier_to_locale_alloc,
17527         identifier_to_locale_free): Declare.
17528         * toplev.c (alloc_for_identifier_to_locale): New.
17529         (general_init): Set identifier_to_locale_alloc and
17530         identifier_to_locale_free.
17531         * Makefile.in (pretty-print.o): Update dependencies.
17532
17533 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17534
17535         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
17536         pointer types if they have different alignment or mode.
17537
17538 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
17539
17540         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17541         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17542         * config/sparc/sparc-protos.h (function_value): Remove declaration.
17543         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
17544         sparc_function_value_regno_p): New functions.
17545         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17546         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17547         (function_value): Rename to...
17548         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
17549         argument to 'outgoing'.
17550         (function_arg_record_value, function_arg_union_value,
17551         function_arg_vector_value): Update comment.
17552
17553 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
17554
17555         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
17556         (fde_needed_for_eh_p): New predicate.
17557         (output_call_frame_info): Use it throughout to decide whether FDEs
17558         are needed for EH purpose.
17559         (dwarf2out_begin_prologue): Reorder assignments.
17560
17561 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17562
17563         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
17564         special case loop->header.
17565         (is_predicated): New.
17566         (if_convertible_loop_p): Call it.
17567
17568 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17569
17570         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
17571         iterator in parameter.  Do not generate code during the analysis.
17572         (tree_if_convert_cond_stmt): Removed.
17573         (tree_if_convert_stmt): Removed.
17574         (predicate_bbs): New.
17575         (if_convertible_loop_p): Call predicate_bbs.
17576         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
17577         now contains all the analysis part.
17578
17579 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17580
17581         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
17582         statements in the analysis part.
17583         (tree_if_convert_stmt): Update comment.
17584         (remove_conditions_and_labels): New.
17585         (combine_blocks): Call remove_conditions_and_labels.
17586         (tree_if_conversion): Update comment.
17587
17588 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17589
17590         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
17591         than 2 predecessors or more than 2 successors.
17592
17593 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17594
17595         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
17596         of loops in which the data dependence analysis fails.
17597
17598 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17599
17600         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
17601         CDI_POST_DOMINATORS.
17602         (tree_if_conversion): Same.
17603
17604 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17605
17606         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
17607
17608 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
17609
17610         * tree-if-conv.c: Update copyright years.  Fix comments.
17611         Fix indentation.
17612
17613 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
17614
17615         * builtin-types.def (BT_INT128): New primitive type.
17616         (BT_UINT128): Likewise.
17617         * c-common.c (c_common_r): Add __int128 keyword.
17618         (c_common_type_for_size): Handle __int128.
17619         (c_common_type_for_mode): Likewise.
17620         (c_common_signed_or_unsigned_type): Likewise.
17621         (c_common_nodes_and_builtins): Add builtin type
17622         if target supports 128-bit integer scalar.
17623         * c-common.h (enum rid): Add RID_INT128.
17624         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
17625         if target supports 128-bit integer scalar.
17626         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
17627         (finish_declspecs): Likewise.
17628         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
17629         (c_token_starts_declspecs): Likewise.
17630         (c_parser_declspecs): Likewise.
17631         (c_parser_attributes): Likewise.
17632         (c_parser_objc_selector): Likewise.
17633         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
17634         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
17635         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
17636         * tree.c (make_or_reuse_type): Likewise.
17637         (make_unsigned_type): Likewise.
17638         (build_common_tree_nodes_2): Likewise.
17639         * tree.h (enum integer_type_kind): Add itk_int128 and
17640         itk_unsigned_int128.
17641         (int128_integer_type_node): New define.
17642         (int128_unsigned_type_node): New define.
17643         * doc/extend.texi: Add documentation about __int128 type.
17644
17645 2010-05-26  Richard Guenther  <rguenther@suse.de>
17646
17647         * tree-ssa-sccvn.c (copy_nary): Adjust.
17648         (copy_phis): Rename to ...
17649         (copy_phi): ... this.  Adjust.
17650         (copy_references): Rename to ...
17651         (copy_reference): ... this.  Adjust.
17652         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
17653         result into the valid table.
17654
17655 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17656
17657         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
17658         insn-config.h, insn-codes.h, recog.h, and optabs.h.
17659
17660 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17661
17662         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
17663
17664 2010-05-26  Richard Guenther  <rguenther@suse.de>
17665
17666         * opts.c (common_handle_option): Handle OPT_Ofast.
17667
17668 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
17669
17670         * diagnostic.c: Don't include opts.h.
17671         (permissive_error_option): Define.
17672         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
17673         for classify_diagnostic.  Don't use memset for
17674         classify_diagnostic.  Initialize new and recently added fields.
17675         (diagnostic_classify_diagnostic): Use context->n_opts instead of
17676         N_OPTS.
17677         (diagnostic_report_diagnostic): Pass context parameter to
17678         diagnostic_report_warnings_p.  Use option_enabled and option_name
17679         hooks from context.
17680         (emit_diagnostic): Use permissive_error_option.
17681         (permerror): Likewise.
17682         * diagnostic.h: Don't include options.h.
17683         (struct diagnostic_context): Add n_opts, opt_permissive,
17684         inhibit_warnings, warn_system_headers, option_enabled and
17685         option_name fields.  Change classify_diagnostic to a pointer.
17686         * opts-diagnostic.h: New file.
17687         * opts.c: Include opts-diagnostic.h.
17688         (common_handle_option): Set global_dc fields for -Wfatal-errors,
17689         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
17690         (option_name): New function.
17691         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
17692         (c_common_handle_option): Set global_dc->permissive for
17693         -fpermissive.
17694         * c-common.c (c_cpp_error): Save and restore
17695         global_dc->warn_system_headers, not variable warn_system_headers.
17696         * toplev.c: Include opts-diagnostic.h.
17697         (general_init): Update call to diagnostic_initialize.  Set
17698         global_dc->show_column, global_dc->option_enabled and
17699         global_dc->option_name.
17700         (process_options): Don't set global_dc fields here.
17701         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
17702         (diagnostic.o, opts.o, toplev.o): Update dependencies.
17703
17704 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
17705
17706         * config/picochip/picochip.md (movsi): Split a movsi from a
17707         const after reload.
17708
17709 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17710
17711         * ggc-zone.c: Update copyright year.
17712         (poison_region): Mark memory for Valgrind as undefined before
17713         memset () call and inaccessible afterwards.
17714         (ggc_pch_total_size): Change type of i to int.
17715
17716 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17717
17718         * ggc-common.c (ggc_free_overhead): Allow empty slot.
17719
17720 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17721
17722         * ggc-common.c: Update copyright year.
17723         (ggc_rlimit_bound): Remove prototype.  Compile only if
17724         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
17725         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
17726         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
17727         (ggc_min_heapsize_heuristic): Likewise.
17728
17729 2010-05-26  Richard Guenther  <rguenther@suse.de>
17730
17731         PR rtl-optimization/44164
17732         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
17733         no-common access-path disambiguation.
17734         (indirect_ref_may_alias_decl_p): Adjust.
17735         (indirect_refs_may_alias_p): Likewise.
17736         (refs_may_alias_p_1): Likewise.
17737
17738 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17739
17740         * c-typeck.c: Do not include expr.h.
17741
17742 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
17743
17744         * rtl.h (decl_default_tls_model): Move prototype from here...
17745         * output.h: ...to here.
17746         * c-decl.c: Do not include rtl.h.
17747         * c-pragma.c: Likewise.
17748         * c-parser.c: Likewise.
17749         * c-gimplify.c: Likewise.  And also not hard-reg-set.
17750         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
17751         FIXME note for it.  Add a FIXME note for expr.h.
17752         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
17753         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
17754         defined.
17755
17756 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
17757
17758         PR target/44199
17759         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
17760         or total_size is larger than red zone size for non-V4 ABI, emit a
17761         stack_tie resp. frame_tie insn before stack pointer restore.
17762         * config/rs6000/rs6000.md (frame_tie): New insn.
17763
17764 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17765
17766         * function.h (struct function): Add can_throw_non_call_exceptions bit.
17767         * lto-streamer-in.c (input_function): Stream it in.
17768         * lto-streamer-out.c (output_function): Stream it out.
17769         * function.c (allocate_struct_function): Set it.
17770         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
17771         for flag_non_call_exceptions.
17772         * cfgbuild.c (control_flow_insn_p): Likewise.
17773         (make_edges): Likewise.
17774         * cfgexpand.c (expand_stack_alignment): Likewise.
17775         * combine.c (distribute_notes): Likewise.
17776         * cse.c (cse_extended_basic_block): Likewise.
17777         * except.c (insn_could_throw_p): Likewise.
17778         * gcse.c (simple_mem): Likewise.
17779         * ipa-pure-const.c (check_call): Likewise.
17780         (check_stmt ): Likewise.
17781         * lower-subreg.c (lower-subreg.c): Likewise.
17782         * optabs.c (emit_libcall_block): Likewise.
17783         (prepare_cmp_insn): Likewise.
17784         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
17785         * postreload.c (rest_of_handle_postreload): Likewise.
17786         * reload1.c (reload_as_needed): Likewise.
17787         (emit_input_reload_insns): Likewise.
17788         (emit_output_reload_insns): Likewise.
17789         (fixup_abnormal_edges): Likewise.
17790         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
17791         * store-motion.c (find_moveable_store): Likewise.
17792         * tree-eh.c (stmt_could_throw_p): Likewise.
17793         (tree_could_throw_p): Likewise.
17794         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17795         * config/arm/arm.c (arm_expand_prologue): Likewise.
17796         (thumb1_expand_prologue): Likewise.
17797         * config/rx/rx.md (cbranchsf4): Likewise.
17798         (cmpsf): Likewise.
17799         * config/s390/s390.c (s390_emit_prologue): Likewise.
17800         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
17801         (inline_forbidden_into_p): New predicate.
17802         (expand_call_inline): Use it to forbid inlining.
17803         (tree_can_inline_p): Likewise.
17804
17805 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
17806
17807         * config/i386/i386-c.c: Do not include rtl.h.
17808         * config/i386/t-i386: Update dependencies.
17809
17810 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
17811
17812         * attribs.c: Do not include rtl.h.
17813         * Makefile.in: Update dependencies.
17814
17815 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
17816
17817         * double-int.h (double_int_and): New.
17818         * combine.c (try_combine): Clean up, use double_int_* and
17819         immed_double_int_const functions.
17820
17821 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17822
17823         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
17824         stderr to /dev/null instead of grep -q.
17825         * configure: Regenerate.
17826
17827 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
17828
17829         * Makefile.in (EXCEPT_H): Fix typo.
17830
17831 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
17832
17833         * ira-build.c (update_conflict_hard_reg_costs): New.
17834         (ira_build): Call update_conflict_hard_reg_costs.
17835
17836 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
17837
17838         PR debug/41371
17839         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
17840         ENABLE_CHECKING.
17841         (intersect_loc_chains): Walk the s2var's loc_chain together
17842         with s1node chain as long as the locations are equal, don't
17843         call find_loc_in_1pdv in that case.
17844
17845         PR debug/42801
17846         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
17847         (copy_bind_expr): ... instead of here.
17848         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
17849         if the block hasn't been remapped.
17850         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
17851         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
17852
17853 2010-05-25  Richard Guenther  <rguenther@suse.de>
17854
17855         PR middle-end/44069
17856         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
17857         out-of-bounds array accesses.
17858
17859 2010-05-25  Richard Guenther  <rguenther@suse.de>
17860
17861         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
17862         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
17863         (run_gcc): Re-organize to make cleanup easier.
17864
17865 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17866
17867         * config/s390/s390.c (optimization_options): Fix and move the
17868         flag_prefetch_loop_arrays override ...
17869         (override_options): ... here.
17870
17871 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
17872
17873         * diagnostic.c: Don't include plugin.h.
17874         (diagnostic_report_diagnostic): Don't handle plugins specially
17875         here.  Pass context to internal_error callback.
17876         * diagnostic.h (struct diagnostic_context): Add context parameter
17877         to internal_error callback.
17878         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
17879         * plugin.h (struct diagnostic_context): Declare.
17880         (warn_if_plugins, plugins_internal_error_function): Declare.
17881         * toplev.c (general_init): Set global_dc->internal_error.
17882         * Makefile.in (diagnostic.o): Update dependencies.
17883
17884 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
17885
17886         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
17887         * config/rs6000/t-darwin64: New.
17888         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
17889         build crt2.
17890
17891 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
17892
17893         PR 44203
17894         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
17895         match the original (and intended) behaviour before r159557.  This
17896         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
17897         in two ways.
17898
17899 2010-05-25  Richard Guenther  <rguenther@suse.de>
17900
17901         * doc/invoke.texi: Document -Ofast.
17902         * target.h (struct gcc_target): Add handle_ofast.
17903         * target-def.h (TARGET_HANDLE_OFAST): Add.
17904         (TARGET_INITIALIZER): Adjust.
17905         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
17906         * common.opt (Ofast): Add.
17907
17908 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
17909
17910         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
17911         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
17912
17913 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
17914
17915         PR target/43610
17916         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
17917         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
17918         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
17919         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
17920
17921 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
17922
17923         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
17924         DW_OP_minus with negated offset instead of DW_OP_plus.
17925         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
17926
17927 2010-05-25  Wei Guozhi  <carrot@google.com>
17928
17929         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
17930         tst instruction and a new alternative.
17931         * config/arm/constraints.md (Pu): New constraint.
17932
17933 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
17934
17935         * function.c (assign_stack_local_1): Initialize variable
17936         to avoid warning when bootstrapping at -O3.
17937
17938 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
17939
17940         * configure.ac (all_lang_makefiles): Remove everything related to it.
17941         * configure: Regenerate.
17942         * Makefile.in: Fix reference to ada Make-lang.in.
17943         Remove support for LANG_MAKEFILES.
17944
17945 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
17946             Sandra Loosemore  <sandra@codesourcery.com>
17947
17948         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
17949         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
17950         description.  Add arm_neon_fp16_ok.
17951         (Add Options): Add arm_neon and arm_neon_fp16.
17952
17953 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
17954
17955         * diagnostic.c: Don't include flags.h.
17956         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
17957         context parameters.  Check flags in the context passed as a parameter.
17958         (diagnostic_build_prefix): Add context parameter.  Check
17959         show_column flag in context.
17960         (diagnostic_action_after_output): Check fatal_errors flag in context.
17961         (diagnostic_report_current_module): Check show_column flag in context.
17962         (default_diagnostic_starter): Update call to
17963         diagnostic_build_prefix.
17964         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
17965         (emit_diagnostic): Pass context to permissive_error_kind.
17966         (permerror): Pass context to permissive_error_kind.
17967         * diagnostic.h (struct diagnostic_context): Add show_column,
17968         pedantic_errors, permissive and fatal_errors fields.
17969         (diagnostic_build_prefix): Update prototype.
17970         * langhooks.c
17971         * toplev.c (process_options): Set flags in global_dc from
17972         flag_show_column, flag_pedantic_errors, flag_permissive,
17973         flag_fatal_errors.
17974         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
17975         to diagnostic_build_prefix.
17976         * Makefile.in (diagnostic.o): Update dependencies.
17977
17978 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17979
17980         * config/i386/ia32intrin.h (__crc32q): Define only if
17981         __SSE4_2__ is defined.
17982
17983 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
17984
17985         PR target/44132
17986         PR middle-end/43602
17987         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
17988         DECL_VISIBILITY_SPECIFIED.
17989         (emutls_decl): Set DECL_PRESERVE_P and copy
17990         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
17991         (emutls_finalize_control_var): New callback.
17992         (emutls_finish): Finalize emutls control variables.
17993         * toplev.c (compile_file): Move the call to emutls_finish ()
17994         before varpool_assemble_pending_decls ().
17995
17996 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
17997
17998         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
17999         added to the preprocessor condition.
18000
18001 2010-05-24  Paul Brook  <paul@codesourcery.com>
18002
18003         * gengtype-lex.l: Add HARD_REG_SET.
18004         * expr.c (expand_expr_real_1): Record writes to hard registers.
18005         * function.c (rtl_data): Add asm_clobbers.
18006         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18007         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18008         Use crtl->asm_clobbers.
18009
18010 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18011
18012         * doc/makefile.texi (Makefile): Mention stages 'profile'
18013         and 'feedback' for profiledbootstrap.
18014
18015 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18016
18017         PR target/44245
18018         * config/i386/i386.c (def_builtin): Properly check
18019         OPTION_MASK_ISA_64BIT.
18020
18021 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18022
18023         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18024         typedefs with different but compatible types.  Allow duplicate
18025         typedefs with the same type except for pedantic non-C1X, but give
18026         warning for variably modified types.
18027         * c-typeck.c (tagged_types_tu_compatible_p,
18028         function_types_compatible_p, type_lists_compatible_p,
18029         comptypes_internal): Add parameter different_types_p; set
18030         *different_types_p for different but compatible types.  All
18031         callers changed.
18032         (comptypes_check_different_types): New.
18033         * c-tree.h (comptypes_check_different_types): Declare.
18034
18035 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18036
18037         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18038         * jump.c: Include basic-block.h.
18039         * profile.c: Likewise.
18040         * tree-profile.c: Likewise.
18041         * coverage.c: Likewise.
18042         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18043         (optimize_function_for_speed_p): Likewise.
18044         * function.h (optimize_function_for_size_p,
18045         optimize_function_for_speed_p): Moved here from basic-block.h.
18046         * Makefile.in: Update dependencies.
18047
18048 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18049
18050         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18051         before calling make; allow override through $MAKE.
18052         * doc/invoke.texi (Optimize Options): Document override.
18053
18054 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18055
18056         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18057         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18058         (rs6000_mode_dependent_address_ptr): Make static.
18059         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18060         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18061         Remove.
18062
18063 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18064
18065         PR target/43869
18066         * config/i386/i386.c: Make sure that the correct regparm is passed.
18067
18068 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18069
18070         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18071         * sbitmap.c: ...to here to internalize sbitmap element access.
18072         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18073         Explain why basic-block.h is included.
18074         * function.h: Include tm.h for CUMULATIVE_ARGS.
18075         * Makefile.in: Update dependencies.
18076
18077 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18078
18079         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18080         New core types.
18081         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18082         * sbitmap.c: Include sbitmap.h.
18083         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18084         hard-reg-set.h.  Split everything related to regsets out from here...
18085         * regset.h: ...to here.  New file.
18086         * df.h: Include regset.h and sbitmap.h.
18087         * tree-flow.h: Likewise.
18088         * cfgloop.h: Likewise.
18089         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18090         * cgraph.h: Include vec.h and function.h.
18091         * reload.h (struct insn_chain): Change types of live_throughout
18092         and dead_or_set from regset_head to bitmap_head.
18093         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18094         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18095         spilled_regs from regset_head to bitmap_head to avoid dependency
18096         in regset.h.
18097         * sel-sched-ir.h: Include regset.h.
18098         * reload.c: Include df.h before reload.h.
18099         * caller-save.c: Likewise.
18100         * reload1.c: Likewise.
18101         * ira.c: Likewise.
18102         (mark_elimination): Update type of r to bitmap, consistent with
18103         DF_LR_IN.
18104         * dominance.c: Include bitmap.h.
18105         * modulo-sched.c: Include df.h.
18106         * cfganal.c: Include bitmap.h and sbitmap.h.
18107         * cfgbuild.c: Include sbitmap.h.
18108         * lcm.c: Include sbitmap.h.
18109         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18110         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18111         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18112         * cselib.c: Include bitmap.h.
18113         * tree-optimize.c: Include regset.h.
18114         * stmt.c: Include bitmap.h.
18115         * Makefile.in: Update dependencies.
18116
18117 2010-05-22  Jan Hubicka  <jh@suse.cz>
18118
18119         * cgraph.h (struct varpool_node): Add same_comdat_group.
18120         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18121         pointer.
18122         (output_varpool): Update call of lto_output_varpool_node.
18123         (input_varpool): Read same_comdat_group pointer.
18124         (input_varpool_1): Fixup same_comdat_group pointer.
18125         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18126         group is needed, all are.
18127         * varpool.c (varpool_remove_node): Remove node from same comdat group
18128         linklist too.
18129         (varpool_analyze_pending_decls): Walk same comdat groups.
18130
18131 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18132
18133         * rtl.h (union rtunion_def): Remove rt_bit member.
18134         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18135         * print-rtl (print_rtx): Do not print the member.
18136         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18137         * gengenrtl.c (type_from_format): Likewise.
18138         (accessor_from_format): Likewise.
18139
18140 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18141
18142         * dbgcnt.c: Include toplev.h instead of errors.h.
18143         * ira-emit.c: Don't include errors.h.
18144         * ira.c: Include toplev.h instead of errors.h.
18145         * lto-compress.c: Include toplev.h instead of errors.h.
18146         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18147         ira.o, dbgcnt.o): Update dependencies.
18148
18149 2010-05-22  Richard Guenther  <rguenther@suse.de>
18150
18151         * gimple.c (gimple_types_compatible_p): Check type qualifications
18152         before merging pointer to complete and pointer to incomplete type.
18153         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18154         we use our own resolution algorithm.  The gold linker plugin
18155         doesn't do the job we want it to do here.
18156
18157 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18158
18159         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18160         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18161         (sparc_mode_dependent_address_p): New function.
18162
18163 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18164
18165         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18166
18167         * timevar.c: Do not include any core headers.
18168         (timevar_print): De-i18n-ize.
18169         (print_time): Likewise.
18170         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18171
18172 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18173
18174         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18175         langhooks-def.h.
18176         (diagnostic_initialize): Initialize x_data not last_function.
18177         (diagnostic_report_current_function): Move to tree-diagnostic.c.
18178         (default_diagnostic_starter): Call
18179         diagnostic_report_current_module not
18180         diagnostic_report_current_function.
18181         (diagnostic_report_diagnostic): Initialize x_data not
18182         abstract_origin.
18183         (verbatim): Likewise.
18184         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18185         x_data.
18186         (struct diagnostic_context): Change last_function to x_data.
18187         (diagnostic_auxiliary_data): Replace with
18188         diagnostic_context_auxiliary_data and
18189         diagnostic_info_auxiliary_data.
18190         (diagnostic_last_function_changed, diagnostic_set_last_function,
18191         diagnostic_report_current_function): Move to tree-diagnostic.h.
18192         (print_declaration, dump_generic_node, print_generic_stmt,
18193         print_generic_stmt_indented, print_generic_expr,
18194         print_generic_decl, debug_c_tree, dump_omp_clauses,
18195         print_call_name, debug_generic_expr, debug_generic_stmt,
18196         debug_tree_chain, default_tree_printer): Move to
18197         tree-pretty-print.h.
18198         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
18199         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
18200         gimple-pretty-print.h.
18201         * pretty-print.c: Don't include tree.h
18202         (pp_base_format): Don't handle %K here.
18203         (pp_base_tree_identifier): Move to tree-pretty-print.c.
18204         * pretty-print.h (text_info): Change abstract_origin to x_data.
18205         (pp_tree_identifier, pp_unsupported_tree,
18206         pp_base_tree_identifier): Move to tree-pretty-print.h.
18207         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
18208         tree-pretty-print.h: New files.
18209         * tree-pretty-print.c: Include tree-pretty-print.h.
18210         (percent_K_format): New.  Moved from pretty-print.c.
18211         (pp_base_tree_identifier): Move from pretty-print.c.
18212         * c-objc-common.c: Include tree-pretty-print.h.
18213         (c_tree_printer): Handle %K here.
18214         * langhooks.c: Include tree-diagnostic.h.
18215         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
18216         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
18217         (default_tree_printer): Handle %K using percent_K_format.
18218         (general_init): Use default_tree_diagnostic_starter.
18219         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
18220         (free_lang_data): Use default_tree_diagnostic_starter.
18221         * c-pretty-print.c: Include tree-pretty-print.h.
18222         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18223         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18224         * dwarf2out.c: Include tree-pretty-print.h.
18225         * except.c: Include tree-pretty-print.h.
18226         * gimple-pretty-print.c: Include tree-pretty-print.h and
18227         gimple-pretty-print.h.
18228         * gimplify.c: Include tree-pretty-print.h.
18229         * graphite-poly.c: Include tree-pretty-print.h and
18230         gimple-pretty-print.h.
18231         * ipa-cp.c: Include tree-pretty-print.h.
18232         * ipa-inline.c: Include gimple-pretty-print.h.
18233         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18234         * ipa-pure-const.c: Include gimple-pretty-print.h.
18235         * ipa-struct-reorg.c: Include tree-pretty-print.h and
18236         gimple-pretty-print.h.
18237         * ipa-type-escape.c: Include tree-pretty-print.h.
18238         * print-rtl.c: Include tree-pretty-print.h.
18239         * print-tree.c: Include gimple-pretty-print.h.
18240         * sese.c: Include tree-pretty-print.h.
18241         * tree-affine.c: Include tree-pretty-print.h.
18242         * tree-browser.c: Include tree-pretty-print.h.
18243         * tree-call-cdce.c: Include gimple-pretty-print.h.
18244         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
18245         * tree-chrec.c: Include tree-pretty-print.h.
18246         * tree-data-ref.c: Include tree-pretty-print.h and
18247         gimple-pretty-print.h.
18248         * tree-dfa.c: Include tree-pretty-print.h.
18249         * tree-if-conv.c: Include tree-pretty-print.h and
18250         gimple-pretty-print.h.
18251         * tree-inline.c: Include tree-pretty-print.h.
18252         * tree-into-ssa.c: Include tree-pretty-print.h and
18253         gimple-pretty-print.h.
18254         * tree-nrv.c: Include tree-pretty-print.h.
18255         * tree-object-size.c: Include tree-pretty-print.h and
18256         gimple-pretty-print.h.
18257         * tree-outof-ssa.c: Include tree-pretty-print.h and
18258         gimple-pretty-print.h.
18259         * tree-parloops.c: Include tree-pretty-print.h and
18260         gimple-pretty-print.h.
18261         * tree-predcom.c: Include tree-pretty-print.h and
18262         gimple-pretty-print.h.
18263         * tree-scalar-evolution.c: Include tree-pretty-print.h and
18264         gimple-pretty-print.h.
18265         * tree-sra.c: Include tree-pretty-print.h.
18266         * tree-ssa-address.c: Include tree-pretty-print.h.
18267         * tree-ssa-alias.c: Include tree-pretty-print.h.
18268         * tree-ssa-ccp.c: Include tree-pretty-print.h and
18269         gimple-pretty-print.h.
18270         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
18271         * tree-ssa-copy.c: Include tree-pretty-print.h and
18272         gimple-pretty-print.h.
18273         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
18274         * tree-ssa-dce.c: Include tree-pretty-print.h and
18275         gimple-pretty-print.h.
18276         * tree-ssa-dom.c: Include tree-pretty-print.h and
18277         gimple-pretty-print.h.
18278         * tree-ssa-dse.c: Include gimple-pretty-print.h.
18279         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
18280         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
18281         * tree-ssa-live.c: Include tree-pretty-print.h and
18282         gimple-pretty-print.h.
18283         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
18284         gimple-pretty-print.h.
18285         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
18286         gimple-pretty-print.h.
18287         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
18288         gimple-pretty-print.h.
18289         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
18290         gimple-pretty-print.h.
18291         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
18292         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
18293         * tree-ssa-operands.c: Include tree-pretty-print.h and
18294         gimple-pretty-print.h.
18295         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
18296         gimple-pretty-print.h.
18297         * tree-ssa-pre.c: Include tree-pretty-print.h and
18298         gimple-pretty-print.h.
18299         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
18300         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
18301         gimple-pretty-print.h.
18302         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
18303         gimple-pretty-print.h.
18304         * tree-ssa-sink.c: Include gimple-pretty-print.h.
18305         * tree-ssa-ter.c: Include tree-pretty-print.h and
18306         gimple-pretty-print.h.
18307         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
18308         * tree-ssa.c: Include tree-pretty-print.h and
18309         gimple-pretty-print.h.
18310         * tree-stdarg.c: Include gimple-pretty-print.h.
18311         * tree-switch-conversion.c: Include gimple-pretty-print.h.
18312         * tree-tailcall.c: Include tree-pretty-print.h and
18313         gimple-pretty-print.h.
18314         * tree-vect-data-refs.c: Include tree-pretty-print.h and
18315         gimple-pretty-print.h.
18316         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
18317         gimple-pretty-print.h.
18318         * tree-vect-loop.c: Include tree-pretty-print.h and
18319         gimple-pretty-print.h.
18320         * tree-vect-patterns.c: Include gimple-pretty-print.h.
18321         * tree-vect-slp.c: Include tree-pretty-print.h and
18322         gimple-pretty-print.h.
18323         * tree-vect-stmts.c: Include tree-pretty-print.h and
18324         gimple-pretty-print.h.
18325         * tree-vectorizer.c: Include tree-pretty-print.h.
18326         * tree-vrp.c: Include tree-pretty-print.h and
18327         gimple-pretty-print.h.
18328         * value-prof.c: Include tree-pretty-print.h and
18329         gimple-pretty-print.h.
18330         * var-tracking.c: Include tree-pretty-print.h.
18331         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
18332         (tree-diagnostic.o): New dependencies.
18333         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
18334         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
18335         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
18336         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
18337         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
18338         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
18339         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
18340         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
18341         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
18342         tree-ssa-address.o, tree-ssa-loop-niter.o,
18343         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
18344         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
18345         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
18346         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
18347         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
18348         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
18349         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
18350         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
18351         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
18352         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
18353         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
18354         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
18355         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
18356         tree-switch-conversion.o, var-tracking.o, value-prof.o,
18357         cfgexpand.o, pretty-print.o): Update dependencies.
18358
18359 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
18360
18361         * tree-ssa-structalias.c: Remove tm_p.h from include.
18362
18363 2010-05-21  Jeff Law  <law@redhat.com>
18364
18365         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
18366
18367 2010-05-21  Jason Merrill  <jason@redhat.com>
18368
18369         * tree-eh.c (cleanup_is_dead_in): New.
18370         (lower_try_finally): Don't generate a dead cleanup region.
18371         (lower_cleanup): Likewise.
18372
18373 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18374
18375         PR debug/44223
18376         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
18377         unchain each use from the cyclic next_regno_use chain first.
18378
18379 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18380
18381         * real: Do not include gmp.h, mpfr.h, and mpc.h.
18382         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
18383         (real_value_negate, real_value_abs): New prototypes.
18384         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
18385         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
18386         new include file for interface between MPFR and REAL_VALUE_TYPE.
18387         * real.c: Include realmpfr.h.
18388         (real_arithmetic2): Remove legacy function.
18389         (real_value_negate): New.
18390         (real_value_abs): New.
18391         (mfpr_from_real, real_from_mpfr): Move from here...
18392         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
18393         * builtins.c: Include realmpfr.h.
18394         * fold-const.c: Include realmpfr.h.
18395         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
18396         (fold_negate_const): Likewise.
18397         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
18398         * toplev.c: Include realmpfr.h.
18399         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
18400         and real_value_negate.
18401         * fixed-value.c (check_real_for_fixed_mode): Likewise.
18402         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
18403         (vfp3_const_double_index): Likewise.
18404         (arm_print_operand): Likewise.
18405         * Makefile.in: Update dependencies.
18406
18407 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18408
18409         * config/s390/s390.c (override_options): Increase the default
18410         of max-completely-peel-times.
18411
18412 2010-05-21  Julian Brown  <julian@codesourcery.com>
18413             Mark Mitchell  <mark@codesourcery.com>
18414
18415         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
18416         sibling calls for Thumb-1.
18417         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
18418         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
18419         Thumb-2.
18420         (*call_insn, *call_value_insn): Don't use for Thumb-2.
18421         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
18422         for Thumb-2.
18423         (return): New expander.
18424         (*arm_return): New name for ARM return insn.
18425         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
18426
18427 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
18428
18429         * config.gcc (sparc64-*-rtems*): New target.
18430
18431 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18432
18433         * tree.c (build_function_decl_skip_args): Fix grammar.
18434         (build_function_type_list_1): Fix typos, adjust formatting.
18435
18436 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18437
18438         * tree.h: Include real.h and fixed-value.h as basic datatypes.
18439         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
18440         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
18441         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
18442         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
18443         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
18444         tree-pretty-print.c, tree-loop-distribution.c,
18445         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
18446         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
18447         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
18448         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
18449         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
18450         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
18451         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
18452         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
18453         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
18454         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
18455         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
18456         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
18457         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
18458         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
18459         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
18460         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
18461         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
18462         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
18463         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
18464         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
18465         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
18466         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
18467         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
18468         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
18469         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
18470         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
18471         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
18472         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
18473         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
18474         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
18475         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
18476         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
18477         config/score/score7.c, config/score/score.c, config/arm/arm.c,
18478         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
18479         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
18480         config/bfin/bfin.c: Clean up redundant includes.
18481         * Makefile.in: Update accordingly.
18482
18483 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
18484
18485         PR middle-end/44204
18486         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
18487         statement has no arguments.
18488
18489 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
18490
18491         PR/44139
18492         * varasm.c (emutls_decl): Merge attributes to new decl.
18493
18494 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
18495
18496         PR middle-end/44101
18497         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
18498         around the uniquized constructor if its type requires a conversion.
18499
18500 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
18501
18502         PR debug/44205
18503         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
18504         at -O0 goto_locus of any of the incoming edges differs from
18505         goto_locus of outgoing edge, or gimple_location of any of the
18506         labels differs.
18507
18508 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
18509
18510         * ira.c (ira_non_ordered_class_hard_regs): Define.
18511         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
18512         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
18513         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
18514         cost of unaligned hard regs when allocating multi-reg pseudos.
18515
18516 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
18517
18518         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
18519         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
18520         for TARGET_NO_FLOAT.
18521         * config/mips/mips.c (mips_file_start): Expand conditional expression
18522         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
18523         (mips_override_options): Move -mno-float override -msoft-float and
18524         -mhard-float.
18525         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
18526         Condition(TARGET_SUPPORTS_NO_FLOAT).
18527         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
18528         __mips_no_float here.
18529         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
18530         (TARGET_SUPPORTS_NO_FLOAT): Define.
18531         * config/mips/sdemtk.opt: Delete.
18532
18533 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
18534
18535         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
18536
18537 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
18538
18539         PR target/43733
18540         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
18541         * configure: Regenerate.
18542         * config.in: Regenerate.
18543         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
18544         instead of sahf only for 64bit targets.
18545
18546 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
18547
18548         PR debug/44178
18549         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
18550         setup_ref_regs for DEBUG_INSNs.
18551
18552 2010-05-20  Jan Hubicka  <jh@suse.cz>
18553
18554         PR middle-end/44197
18555         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
18556
18557 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
18558
18559         PR bootstrap/43870
18560         * df-scan.c (df_ref_compare): Stabilize sort.
18561
18562 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
18563
18564         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
18565         argument.  Don't use DW_OP_piece if offset is non-zero,
18566         put offset into second DW_OP_bit_piece argument.
18567         (dw_sra_loc_expr): Adjust callers.  For memory expressions
18568         compute offset.
18569
18570 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
18571
18572         PR target/44202
18573         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
18574         settings for 16-bit-constant "addo" alternative.
18575
18576 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
18577
18578         * config/mips/mips-dsp.md (add<DSPV:mode>3,
18579         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
18580
18581         PR target/43764
18582         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
18583         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
18584         Use it.
18585
18586 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
18587
18588         * diagnostic.c (FLOAT, FFS): Don't undefine.
18589         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
18590         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
18591         include ordering.
18592
18593 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
18594
18595         * combine.c (propagate_for_debug): Call make_compound_operation
18596         on the source value.
18597         (try_combine): When implementing a split chosen by find_split_point,
18598         either copy i2src or set it to null.  Assert that i2src is not null
18599         before substituting into CALL_INSN_FUNCTION_USAGE.
18600
18601 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
18602
18603         * double-int.h (double_int_ior): New function.
18604         * tree.h (build_int_cst_wide_type): Remove.
18605         * tree.c (build_int_cst_wide_type): Remove.
18606         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
18607         of build_int_cst_wide_type.
18608         * stor-layout.c (set_sizetype): (Ditto.).
18609         * dojump.c (do_jump): Use build_int_cstu instead of
18610         build_int_cst_wide_type.
18611
18612 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18613
18614         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
18615         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
18616         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
18617         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
18618         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
18619         propagate the 'data' argument to copy_tree_r.
18620         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
18621         Propagate 'data' argument to walk_tree.
18622         (copy_if_shared): New function.
18623         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
18624         (unmark_visited): New function.
18625         (unshare_body): Call copy_if_shared instead of doing it manually.
18626         (unvisit_body): Call unmark_visited instead of doing it manually.
18627
18628 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
18629
18630         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
18631         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
18632         * hooks.c: Likewise.
18633         * target-def.h (TARGET_FOLD_BUILTIN): Define to
18634         hook_tree_tree_int_treep_bool_null.
18635         * target.h (struct gcc_target): Update signature of fold_builtin
18636         field.
18637         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
18638         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
18639         instead of the call expression.
18640         (fold_builtin_call_array): Pass n and argarray directly.
18641         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
18642         consing a list.
18643         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
18644         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
18645         `i' and use it in place of `arity'.
18646         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
18647         Dereference `args' directly.
18648         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
18649
18650 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18651
18652         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18653         3dnow, sse3, sse2.
18654         (Directives): Document optional dg-require-effective-target
18655         selector.
18656
18657 2010-05-19  Richard Guenther  <rguenther@suse.de>
18658
18659         PR lto/44196
18660         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
18661
18662 2010-05-19  Richard Guenther  <rguenther@suse.de>
18663
18664         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
18665         * common.opt (fwhopr=): New.
18666         * opts.c (common_handle_option): Handle OPT_fwhopr.
18667         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
18668         * collect2.c (main): Match -fwhopr*.
18669         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
18670         Execute ltrans stage in parallel when jobs is bigger than 1.
18671
18672 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18673
18674         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18675         pentiumpro on Solaris 8/x86 with Sun as.
18676         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
18677         hidden alias bug.
18678         (gcc_cv_as_ix86_quad): Check for .quad directive.
18679         * configure: Regenerate.
18680         * config.in: Regenerate.
18681         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
18682
18683 2010-05-19  Martin Jambor  <mjambor@suse.cz>
18684
18685         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
18686         also for indirect edges.  Actual printing moved...
18687         (ipa_print_node_jump_functions_for_edge): ...here.
18688         (ipa_compute_jump_functions): Renamed to
18689         ipa_compute_jump_functions_for_edge and made static.
18690         (ipa_compute_jump_functions): New function.
18691         (make_edge_direct_to_target): Check if the number of arguments on
18692         the newly direct edge is the same as the number of parametrs of
18693         the callee.
18694         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
18695         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
18696         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
18697         analysis functions unconditionally, call the new
18698         ipa_analyze_params_uses on the node instead of every edge.
18699
18700 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
18701
18702         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
18703         to tree.
18704         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
18705         also checks for a constant int vs.  non-constant but
18706         loop-invariant steps.
18707         (find_or_create_group): Change the sort algorithm to only consider
18708         steps that are constant ints.
18709         (idx_analyze_ref): Adopt code to handle a tree instead of a
18710         HOST_WIDE_INT for step.
18711         (gather_memory_references_ref): Handle tree instead of int and be
18712         prepared to see a NULL_TREE.
18713         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
18714         prefetches if the step cannot be calculated at compile time.
18715         (issue_prefetch_ref): Issue prefetches for non-constant but
18716         loop-invariant steps.
18717
18718 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
18719
18720         Revert:
18721         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
18722
18723         * tree.h (build_call_list): Remove.
18724         * tree.c (build_call_list): Remove.
18725
18726 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
18727
18728         * tree.h (build_call_list): Remove.
18729         * tree.c (build_call_list): Remove.
18730
18731 2010-05-18  Jan Hubicka  <jh@suse.cz>
18732
18733         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
18734
18735 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
18736
18737         PR rtl-optimization/43332
18738         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
18739
18740 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
18741
18742         * tree.h (build_int_cstu): Implement as static inline.
18743         * tree.c (build_int_cstu): Remove function.
18744         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
18745         sign extended.
18746
18747 2010-05-18  Richard Guenther  <rguenther@suse.de>
18748
18749         PR lto/44143
18750         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
18751         (debug): Initialize from -save-temps.
18752         (collect_execute): Print command-line when verbose.
18753         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
18754         for ltrans invocation.  Produce -dumpbase flag again.
18755         (process_args): Remove.
18756         (main): Simplify.
18757         * collect2.c (maybe_run_lto_and_relink): Only pass object
18758         files to lto-wrapper.
18759         * gcc.c (LINK_COMMAND_SPEC): Likewise.
18760
18761 2010-05-18  Jan Hubicka  <jh@suse.cz>
18762
18763         * opts.c (decode_options): Do not disable whopr at ipa_cp.
18764         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
18765
18766 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
18767
18768         PR lto/44184
18769         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
18770         in a GIMPLE_ASM.
18771         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
18772         in a GIMPLE_ASM.
18773
18774 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
18775
18776         PR debug/41371
18777         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
18778         rtx_equal_p inline.
18779
18780 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
18781
18782         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
18783         lto-macho as lto_binary_reader.
18784
18785         * darwin.c (darwin_asm_named_section): Do not add assembler comment
18786         after .section directive; just print it before the directive instead.
18787
18788 2010-05-17  Jan Hubicka  <jh@suse.cz>
18789
18790         * cgraph.c (cgraph_create_virtual_clone): Only check
18791         versionable_function_p when not in wpa and checking is enabled.
18792         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
18793         there are no more functions to materialize.
18794
18795 2010-05-17  Jan Hubicka  <jh@suse.cz>
18796
18797         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
18798         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
18799         New functions.
18800         (output_cgraph): Call output_cgraph_opt_summary.
18801         (input_cgrpah): Call input_cgraph_opt_summary.
18802         (output_cgraph_opt_summary_p, output_node_opt_summary,
18803         input_node_opt_summary, input_cgraph_opt_section): New functions.
18804         * lto-section-in.c (lto_section_name): Add cgraphopt.
18805         * tree-inline.c (tree_function_versioning): Handle parm_num.
18806         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
18807         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
18808
18809 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
18810
18811         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
18812         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
18813         the insn to prefetch ratio heuristic to loops with known trip count.
18814
18815 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
18816
18817         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
18818         (schedule_prefetches): Do not generate a prefetch if the unroll factor
18819         is far from what is required by the prefetch.
18820
18821 2010-05-17  Jan Hubicka  <jh@suse.cz>
18822
18823         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
18824         (ipcp_estimate_growth): Likewise.
18825         (ipcp_const_param_count): Likewise.
18826         (ipcp_insert_stage): Likewise.
18827         * ipa-prop.c (visit_load_for_mod_analysis): New function.
18828         (visit_store_addr_for_mod_analysis): Set used flag.
18829         (ipa_detect_param_modifications): Set used flag for SSE params;
18830         update use of walk_stmt_load_store_addr_ops.
18831         (ipa_print_node_params): Print used flag.
18832         (ipa_write_node_info): Stream used flag.
18833         (ipa_read_node_info): Likewise.
18834         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
18835         (ipa_is_param_used): New function.
18836         (lto_ipa_fixup_call_notes): Remove unused declaration.
18837
18838 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18839
18840         PR target/44074
18841         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
18842         * configure: Regenerate.
18843         * config.in: Regenerate.
18844         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
18845         !HAVE_AS_IX86_REP_LOCK_PREFIX.
18846         Don't emit whitespace.
18847         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
18848         (*rep_movsi): Likewise.
18849         (*rep_movsi_rex64): Likewise.
18850         (*rep_movqi): Likewise.
18851         (*rep_movqi_rex64): Likewise.
18852         (*rep_stosdi_rex64): Likewise.
18853         (*rep_stossi): Likewise.
18854         (*rep_stossi_rex64): Likewise.
18855         (*rep_stosqi): Likewise.
18856         (*rep_stosqi_rex64): Likewise.
18857         (*cmpstrnqi_nz_1): Use {%;} after repz.
18858         (*cmpstrnqi_nz_rex_1): Likewise.
18859         (*cmpstrnqi_1): Likewise.
18860         (*cmpstrnqi_rex_1): Likewise.
18861         (*strlenqi_1): Use {%;} after repnz.
18862         (*strlenqi_rex_1): Likewise.
18863         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
18864         (*sync_compare_and_swap<mode>): Likewise.
18865         (sync_double_compare_and_swap<mode>): Likewise.
18866         (*sync_double_compare_and_swapdi_pic): Likewise.
18867         (sync_old_add<mode>): Likewise.
18868         (sync_add<mode>): Likewise.
18869         (sync_sub<mode>): Likewise.
18870         (sync_<code><mode>): Likewise.
18871
18872 2010-05-17  Martin Jambor  <mjambor@suse.cz>
18873
18874         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
18875         otr_token and polymorphic.
18876         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
18877         (cgraph_clone_edge): Copy the above fields.
18878         * tree.c (get_binfo_at_offset): New function.
18879         * tree.h (get_binfo_at_offset): Declare.
18880         * ipa-prop.h (enum jump_func_type): Added known_type jump function
18881         type, reordered items, updated comments.
18882         (union jump_func_value): Added base_type field, reordered fields.
18883         (enum ipa_lattice_type): Moved down in the file.
18884         (struct ipa_param_descriptor): New field polymorphic.
18885         (ipa_is_param_polymorphic): New function.
18886         * ipa-prop.c: Include gimple.h and gimple-fold.h.
18887         (ipa_print_node_jump_functions): Print known type jump functions.
18888         (compute_complex_pass_through): Renamed to...
18889         (compute_complex_assign_jump_func): this.
18890         (compute_complex_ancestor_jump_func): New function.
18891         (compute_known_type_jump_func): Likewise.
18892         (compute_scalar_jump_functions): Create known type and complex ancestor
18893         jump functions.
18894         (ipa_note_param_call): New parameter polymorphic, set the corresponding
18895         flag in the call note accordingly.
18896         (ipa_analyze_call_uses): Renamed to...
18897         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
18898         variable var only in the block where it is used.
18899         (ipa_analyze_virtual_call_uses): New function.
18900         (ipa_analyze_call_uses): Likewise.
18901         (combine_known_type_and_ancestor_jfs): Likewise.
18902         (update_jump_functions_after_inlining): Implemented handling of a
18903         number of new jump function types combination.
18904         (print_edge_addition_message): Removed.
18905         (make_edge_direct_to_target): New function.
18906         (try_make_edge_direct_simple_call): Likewise.
18907         (try_make_edge_direct_virtual_call): Likewise.
18908         (update_call_notes_after_inlining): Renamed to...
18909         (update_indirect_edges_after_inlining): this.  Moved edge creation for
18910         indirect calls to try_make_edge_direct_simple_call, also calls
18911         try_make_edge_direct_virtual_call for virtual calls.
18912         (ipa_print_node_params): Changed the header message.
18913         (ipa_write_jump_function): Stream also known type jump functions.
18914         (ipa_read_jump_function): Likewise.
18915         (ipa_write_indirect_edge_info): Stream new fields in
18916         cgraph_indirect_call_info.
18917         (ipa_read_indirect_edge_info): Likewise.
18918         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
18919         GIMPLE_FOLD_H.
18920
18921 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18922
18923         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
18924
18925 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
18926
18927         * tree.h (CALL_EXPR_ARGS): Delete.
18928         (call_expr_arglist): Delete.
18929         * tree.c (call_expr_arglist): Delete.
18930         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
18931         targetm.fold_builtin.
18932         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
18933         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
18934         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
18935         arglist parameter.  Use CALL_EXPR_ARG.
18936         (picochip_expand_builtin_3op): Likewise.
18937         (picochip_expand_builtin_2opvoid): Likewise.
18938         (picochip_expand_array_get): Likewise.
18939         (picochip_expand_array_put): Likewise.
18940         (picochip_expand_array_testport): Likewise.
18941         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
18942         rather than arglist.
18943         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
18944         CALL_EXPR_ARGS.
18945         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
18946         than TREE_VALUE and TREE_CHAIN.
18947         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
18948         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
18949         the arglist.
18950
18951 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
18952
18953         PR bootstrap/42347
18954         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
18955         to have no fallthru edge.
18956
18957         PR middle-end/44102
18958         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
18959         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
18960         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
18961         add BARRIER after previous bb if needed.
18962
18963 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
18964
18965         * tree.c (build_function_type_list_1): Remove bogus assert condition.
18966
18967 2010-05-17  Alan Modra  <amodra@gmail.com>
18968
18969         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
18970         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
18971         with copy_reg rtx param.
18972         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
18973         Correct cases where code for ABI_V4 did not initialise the reg
18974         used to access frame.  Also leave frame_reg_rtx as sp for large
18975         frames that save no regs.
18976
18977 2010-05-17  Martin Jambor  <mjambor@suse.cz>
18978
18979         PR middle-end/44133
18980         * tree-sra.c (create_access_replacement): New parameter rename, mark
18981         the replaement for renaming only when it is true.
18982         (get_access_replacement): Pass true in the rename parameter of
18983         create_access_replacement.
18984         (get_unrenamed_access_replacement): New function.
18985         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
18986         replacement declaration from it.
18987
18988 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
18989
18990         * function.c (try_fit_stack_local, add_frame_space): New static
18991         functions.
18992         (assign_stack_local_1): Use them.  Look for opportunities to use
18993         space previously wasted on alignment.
18994         * function.h (struct frame_space): New.
18995         (struct rtl_data): Add FRAME_SPACE_LIST member.
18996         * reload1.c (something_was_spilled): New static variable.
18997         (alter_reg): Set it.
18998         (reload): Test it in addition to testing if the frame size changed.
18999
19000 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19001
19002         * config/s390/s390.c: Define sane prefetch settings and activate
19003         flag_prefetch_loop_arrays on -O3.
19004         * config/s390/s390.h: Declare that read can use write prefetch.
19005
19006 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19007
19008         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19009         build.
19010
19011 2010-05-16  Jan Hubicka  <jh@suse.cz>
19012
19013         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19014         function body; do not check stdarg field of struct function.
19015
19016 2010-05-16  Jan Hubicka  <jh@suse.cz>
19017
19018         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19019         * cgraph.h (cgraph_local_info): Add versionable flag.
19020         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19021         (ipcp_versionable_function_p): Use it.
19022         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19023         versionable flag.
19024
19025 2010-05-16  Jan Hubicka  <jh@suse.cz>
19026
19027         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19028         clone into hash when it is different from orig.
19029         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19030         * cgraph.h (cgraph_clone_node): Update prototype.
19031         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19032         (lto_cgraph_encoder_delete): Delete body map.
19033         (lto_cgraph_encoder_size): Move to header.
19034         (lto_cgraph_encoder_encode_body_p,
19035         lto_set_cgraph_encoder_encode_body): New.
19036         (lto_output_node): Do not take written_decls argument; output clone_of
19037         pointer.
19038         (add_node_to): Add include_body_argument; call
19039         lto_set_cgraph_encoder_encode_body on master of the clone.
19040         (add_references): Update use of add_node_to.
19041         (compute_ltrans_boundary): Likewise.
19042         (output_cgraph): Do not create written_decls bitmap.
19043         (input_node): Take nodes argument; stream in clone_of correctly.
19044         (input_cgraph_1): Update use of input_node.
19045         * lto-streamer-out.c (lto_output): Use encoder info to decide
19046         what bodies to output.
19047         * ipa-inline.c (cgraph_clone_inlined_nodes,
19048         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19049         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19050         (lto_cgraph_encoder_size): Define here.
19051         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19052         Declare.
19053
19054 2010-05-16  Richard Guenther  <rguenther@suse.de>
19055
19056         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19057         -fipa-type-escape.
19058         * ipa-type-escape.c (gate_type_escape_vars): Run when
19059         -fipa-struct-reorg runs.
19060         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19061         * common.opt (fipa-type-escape): Remove.
19062
19063 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19064
19065         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19066         (decode_options): Likewise.
19067         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19068
19069 2010-05-16  Jan Hubicka  <jh@suse.cz>
19070
19071         * ipa.c (function_and_variable_visibility): Also bring local all
19072         aliases.
19073
19074 2010-05-16  Richard Guenther  <rguenther@suse.de>
19075
19076         * alias.c (nonoverlapping_memrefs_p): Remove use of
19077         IPA type-escape information.
19078
19079 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19080
19081         * c-common.c (c_common_reswords): Add _Static_assert for C.
19082         * c-parser.c (c_token_starts_declaration,
19083         c_parser_next_token_starts_declaration,
19084         c_parser_static_assert_declaration_no_semi,
19085         c_parser_static_assert_declaration): New.
19086         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19087         Handle static assertions if static_assert_ok.
19088         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19089         c_parser_compound_statement_nostart, c_parser_label,
19090         c_parser_for_statement, c_parser_objc_methodprotolist,
19091         c_parser_omp_for_loop): All callers of
19092         c_parser_declaration_or_fndef changed.
19093         (c_parser_struct_declaration): Handle static assertions.
19094         (c_parser_compound_statement_nostart): Use
19095         c_parser_next_token_starts_declaration and
19096         c_token_starts_declaration to detect start of declarations.
19097         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19098         Likewise.
19099
19100 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19101
19102         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19103         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19104         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19105         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19106         (mmix_function_outgoing_value): Rename to...
19107         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19108         (mmix_function_value_regno_p): Make static.
19109         (mmix_libcall_value): New function.
19110         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19111         mmix_function_value_regno_p): Remove declaration.
19112
19113 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19114
19115         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19116         BUILT_IN_ALLOCA if stack checking is enabled.
19117
19118 2010-05-16  Richard Guenther  <rguenther@suse.de>
19119
19120         * var-tracking.c (vars_copy_1): Inline ...
19121         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19122         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19123         (variable_merge_over_cur): Adjust.  Merge asserts.
19124         (variable_merge_over_src): Likewise.
19125         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19126         (variable_post_merge_new_vals): Merge asserts.
19127         (variable_post_merge_perm_vals): Likewise.
19128         (find_mem_expr_in_1pdv): Likewise.
19129         (dataflow_set_different_value): Remove.
19130         (onepart_variable_different_p): Merge asserts.
19131         (variable_different_p): Likewise.
19132         (dataflow_set_different_1): Inline ...
19133         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19134         (emit_notes_for_differences_1): Merge asserts.
19135
19136 2010-05-16  Richard Guenther  <rguenther@suse.de>
19137
19138         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19139         * optabs.c (libfunc_decl_hash): Likewise.
19140         * varasm.c (emutls_decl): Likewise.
19141
19142 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19143
19144         * c-decl.c: Don't include gimple.h.
19145         (merge_decls): Do not copy gimple_body.
19146
19147 2010-05-15  Jason Merrill  <jason@redhat.com>
19148
19149         * c.opt: Add -fnothrow-opt.
19150
19151 2010-05-15  Jan Hubicka  <jh@suse.cz>
19152
19153         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19154         analyzed.
19155         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19156
19157 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19158
19159         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19160         * Makefile.in: Add it.
19161         Fix all other Makefile dependencies for changes below.
19162         * tree.h: Include it instead of defining VEC primitives here.
19163         * gimple.h: Likewise.
19164         * rtl.h: Likewise.
19165         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19166         * except.h: Include vecir.h, break dependence on tree.h.
19167
19168         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19169         Move from here...
19170         * tree-iterator.c: ...to here.
19171         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19172
19173         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19174         tm_p.h.
19175         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19176         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19177         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19178         tree-mudflap.h, and target.h.
19179         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19180         predict.h, tree-inline.h, gimple.h, and langhooks.h.
19181         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19182         Add FIXME for why gimple.h is still included (should be unnecessary
19183         since GCC 4.5 gimplification unit-at-a-time).
19184         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19185         * c-pragma.c: Add FIXME for why function.h needs to be included just
19186         for cfun, at front-end level.
19187         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19188         Do not include ggc.h, but include vecprim.h for VEC(char).
19189         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19190         Explain why target.h is included.
19191         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
19192         Explain why gimple.h is included.
19193         * c-ppoutput.c: Do not include tm.h.
19194         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
19195         * c-parses.c: Explain why rtl.h is included, and that this (and only
19196         this) is also why tm.h must be included.
19197         Do not include except.h.
19198         * c-lang.c: Do not include ggc.h.
19199
19200 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
19201
19202         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
19203
19204 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
19205
19206         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
19207         unions by default if those structs and unions have no tags.  Do
19208         not condition anonymous struct and unions handling on flag_iso.
19209         Allow anonymous structs and unions for C1X.
19210         (finish_struct): Do not diagnose lack of named fields when
19211         anonymous structs and unions present for C1X.  Accept flexible
19212         array members in structure with anonymous structs or unions but no
19213         directly named fields.
19214         * doc/extend.texi (Unnamed Fields): Update.
19215
19216 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19217
19218         * gimple.h (compare_field_offset): Rename into...
19219         (gimple_compare_field_offset): ...this.
19220         * gimple.c (compare_field_offset): Rename into...
19221         (gimple_compare_field_offset): ...this.  Compare the full access if
19222         the offset is self-referential.
19223         (gimple_types_compatible_p): Adjust for above renaming.
19224         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
19225         DECL_NONADDRESSABLE_P flag of fields before merging them.
19226
19227 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
19228
19229         * tree.h (ctor_to_list): Delete.
19230         * tree.c (ctor_to_list): Delete.
19231
19232 2010-05-15  Jan Hubicka  <jh@suse.cz>
19233
19234         * ipa-reference.c: Include toplev.h
19235         (is_proper_for_analysis): Only add to all_module_statics
19236         if it is allocated.
19237         (write_node_summary_p, stream_out_bitmap,
19238         ipa_reference_write_optimization_summary,
19239         ipa_reference_read_optimization_summary): New.
19240         (struct ipa_opt_pass_d pass_ipa_reference): Add
19241         optimization summary streaming.
19242         * lto-cgraph.c (referenced_from_this_partition_p,
19243         reachable_from_this_partition_p): New functions.
19244         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
19245         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
19246         * opts.c (decode_options): Enable ipa_reference.
19247         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
19248         * lto-streamer.h (referenced_from_this_partition_p,
19249         reachable_from_this_partition_p): Declare.
19250
19251 2010-05-15  Richard Guenther  <rguenther@suse.de>
19252
19253         PR tree-optimization/44038
19254         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
19255         taking the address of a V_C_E of a constant.
19256
19257 2010-05-14  Jan Hubicka  <jh@suse.cz>
19258
19259         * tree.h (memory_identifier_string): Remove.
19260         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
19261         (ipa_reference_global_vars_info_d): Remove statics_not_read and
19262         statics_not_written.
19263         (ipa_reference_optimization_summary_d): New structure.
19264         (ipa_reference_optimization_summary_t): New type and vector.
19265         (ipa_reference_vars_info_d): Embedd structures instead of using
19266         pointers.
19267         (reference_vars_to_consider): Remove out of GGC space.
19268         (module_statics_escape): Remove.
19269         (global_info_obstack): Rename to ...
19270         (optimization_summary_obstack): ... this one.
19271         (initialization_status_t): Remove.
19272         (memory_identifier_string): Remove.
19273         (get_reference_vars_info): Fix indenting.
19274         (set_reference_vars_info): Likewise.
19275         (get_reference_optimization_summary): New.
19276         (set_reference_optimization_summary): New.
19277         (get_global_reference_vars_info): Remove.
19278         (ipa_reference_get_read_global): Remove.
19279         (ipa_reference_get_written_global): Remove.
19280         (ipa_reference_get_not_read_global): Update.
19281         (ipa_reference_get_not_written_global): Update.
19282         (is_proper_for_analysis): Outlaw addressable.
19283         (propagate_bits): Update for new datastructures.
19284         (analyze_variable): Remove.
19285         (init_function_info): Update for new datastructures.
19286         (clean_function_local_data): Remove.
19287         (clean_function): Remove.
19288         (copy_global_bitmap): Use optimizations_summary_obstack.
19289         (duplicate_node_data): Duplicate optimization summary only.
19290         (remove_node_data): Remove optimization summary only.
19291         (generate_summary): Do not analyze variables; do not compute
19292         module_statics_escape; do not prune solutions by it.
19293         (read_write_all_from_decl): Fix typos in comments.
19294         (propagate): Doscover readonly and nonaddressable first;
19295         update for new datastructures; share global bitmaps.
19296         * ipa-reference.h (ipa_reference_get_read_global,
19297         ipa_reference_get_written_global): Remove.
19298         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
19299         * Makefile.in: Remove ipa-refereference from GT files.
19300
19301 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19302
19303         PR debug/44112
19304         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
19305         for all SYMBOL_REF_DECLs.
19306
19307 2010-05-14  Jan Hubicka  <jh@suse.cz>
19308
19309         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
19310         (varpool_all_refs_explicit_p): New inline function.
19311         * ipa-reference.c: Update comment.
19312         (module_statics_written): Remove.
19313         (get_static_decl): Remove.
19314         (ipa_init): Do not initialize module_statics_written.
19315         (analyze_function): Likewise.
19316         (generate_summary): Likewise; do not compute module_statics_readonly
19317         and do not update variable flags.
19318         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
19319         * ipa.c: Inlucde flags.h
19320         (cgraph_local_node_p): New.
19321         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
19322         promote functions to local.
19323         (ipa_discover_readonly_nonaddressable_vars): New function.
19324         (function_and_variable_visibility): Use cgraph_local_node_p.
19325         * varpool.c (varpool_finalize_decl): Set force_output for
19326         DECL_PRESERVE_P vars.
19327
19328 2010-05-14  Jan Hubicka  <jh@suse.cz>
19329
19330         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
19331
19332 2010-05-14  Richard Guenther  <rguenther@suse.de>
19333
19334         PR tree-optimization/44119
19335         * tree-ssa-pre.c (eliminate): Properly mark replacement of
19336         a PHI node necessary.
19337
19338 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19339
19340         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
19341
19342 2010-05-14  Jason Merrill  <jason@redhat.com>
19343
19344         PR c++/44127
19345         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
19346         (gimple_call_set_nothrow): New.
19347         * gimple.c (gimple_build_call_from_tree): Call it.
19348         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
19349
19350         PR c++/44127
19351         * gimplify.c (gimplify_seq_add_stmt): No longer static.
19352         * gimple.h: Declare it.
19353         * gimple.c (gimple_build_eh_filter): No ops.
19354
19355 2010-05-14  Jan Hubicka  <jh@suse.cz>
19356
19357         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
19358         nodes already in queue.
19359         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
19360         re-enqueueing node.
19361
19362 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
19363
19364         PR debug/44136
19365         * cfgexpand.c (expand_debug_expr): If non-memory op0
19366         has BLKmode, return NULL.
19367
19368 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
19369
19370         * config.gcc: Add support for --with-cpu option for bdver1.
19371         * config/i386/i386.h (TARGET_BDVER1): New macro.
19372         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
19373         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19374         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
19375         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
19376         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
19377         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
19378         (processor_type): Add PROCESSOR_BDVER1.
19379         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
19380         processor_type in config/i386/i386.h.
19381         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
19382         movaps <reg, reg> instead of movapd <reg, reg> when replacing
19383         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
19384         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19385         to emit packed xor instead of packed double/packed integer
19386         xor for SSE and AVX when moving a zero value.
19387         * config/i386/sse.md: Add check for
19388         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
19389         movapd/movdqa for SSE and AVX.
19390         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
19391         single logical operations i.e and, or and xor instead of packed double
19392         logical operations for SSE and AVX.
19393         * config/i386/i386-c.c (ix86_target_macros_internal):
19394         Add PROCESSOR_BDVER1.
19395         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
19396         (has_fma4, has_xop): New.
19397         * config/i386/i386.c (bdver1_cost): New variable.
19398         (m_BDVER1): New macro.
19399         (m_AMD_MULTIPLE): Add m_BDVER1.
19400         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
19401         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
19402         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
19403         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
19404         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
19405         x86_tune_sse_partial_reg_dependency,
19406         x86_tune_sse_unaligned_load_optimal,
19407         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
19408         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
19409         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
19410         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
19411         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
19412         Enable/disable for bdver1.
19413         (processor_target_table): Add bdver1_cost.
19414         (cpu_names): Add bdver1.
19415         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
19416          processor_alias_table.
19417         (ix86_expand_vector_move_misalign): Change.
19418         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
19419         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
19420         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
19421         of movupd/movdqu for SSE and AVX.
19422         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
19423         (ix86_tune_adjust_cost): Add code for bdver1.
19424         (standard_sse_constant_opcode): Add check for
19425         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
19426         of packed double xor for SSE and AVX.
19427
19428 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
19429
19430         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
19431         result to unsigned.
19432
19433 2010-05-14  Tristan Gingold  <gingold@adacore.com>
19434
19435         * toplev.c (default_debug_hooks): Remove this variable.
19436         (process_options): Remove assignments to default_debug_hooks.
19437
19438 2010-05-14  Martin Jambor  <mjambor@suse.cz>
19439
19440         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
19441         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
19442         * langhooks.h (struct lang_hooks_for_decls): Removed field
19443         fold_obj_type_ref.
19444         * tree.c (free_lang_data): Remove assignment to
19445         lang_hooks.fold_obj_type_ref.
19446         * tree.def (OBJ_TYPE_REF): Update comment.
19447
19448 2010-05-14  Richard Guenther  <rguenther@suse.de>
19449
19450         PR tree-optimization/44124
19451         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
19452
19453 2010-05-14  Alan Modra  <amodra@gmail.com>
19454
19455         PR target/44075
19456         * config/rs6000/rs6000.c (struct machine_function): Reorder
19457         fields for better packing.  Add lr_save_state.
19458         (rs6000_ra_ever_killed): Return lr_save_state if set.
19459         (rs6000_emit_eh_reg_restore): Set lr_save_state.
19460
19461 2010-05-13  Jan Hubicka  <jh@suse.cz>
19462
19463         * varpool.c (decide_is_variable_needed): Drop code checking
19464         TREE_SYMBOL_REFERENCED.
19465
19466 2010-05-13  Jan Hubicka  <jh@suse.cz>
19467
19468         * final.c (output_addr_const): Do not call mark_decl_referenced.
19469         * cgraphunit.c (process_function_and_variable_attributes): Use
19470         mark_needed_node dirrectly.
19471         (assemble_thunk): Do not call mark_decl_referenced.
19472
19473 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
19474
19475         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
19476
19477 2010-05-13  Jeff Law  <law@redhat.com>
19478
19479         * ira-conflicts.c (print_allocno_conflicts): New function broken out
19480         from...
19481         (print_conflicts): Call print_allocno_conflicts.
19482
19483 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19484
19485         PR debug/44104
19486         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
19487         if it is NULL.
19488
19489 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
19490
19491         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
19492         t-mingw-w64 or t-mingw-w32 for multilib configuration.
19493         * config/i386/t-mingw-w32: New.
19494         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
19495
19496 2010-05-13  Martin Jambor  <mjambor@suse.cz>
19497
19498         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
19499         gimple-fold.c).
19500         * gimple-fold.c (get_base_binfo_for_type): New function.
19501         (gimple_get_relevant_ref_binfo): Likewise.
19502         (gimple_fold_obj_type_ref_known_binfo): Likewise.
19503         (gimple_fold_obj_type_ref): Likewise.
19504         (fold_gimple_call): Simplify condition for folding virtual calls
19505         and call gimple_fold_obj_type_ref.
19506         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
19507         (gimple_fold_obj_type_ref_known_binfo): Likewise.
19508
19509 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
19510
19511         * config/rs6000/rs6000-protos.h
19512         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
19513         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
19514         (rs6000_debug_mode_dependent_address)
19515         (rs6000_mode_dependent_address_ptr): Likewise.
19516
19517 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
19518
19519         PR debug/43983
19520         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
19521         by SRA.
19522         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
19523         * tree-sra.c (create_access_replacement): Call unshare_expr before
19524         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
19525         * dwarf2out.c: Include tree-flow.h.
19526         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
19527         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
19528         Handle DW_OP_bit_piece.
19529         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
19530         construct_piece_list, adjust_piece_list): New functions.
19531         (add_var_loc_to_decl): Handle SRA optimized variables.
19532         Adjust for var_loc_note to loc field renaming.
19533         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
19534         in VAR_LOCATION note.
19535         (new_loc_descr_op_bit_piece): New function.
19536         (dw_sra_loc_expr): New function.
19537         (dw_loc_list): Use it.  Don't handle the last range after the
19538         loop, handle it inside of the loop.  Adjust for var_loc_note
19539         to loc field renaming.
19540         (add_location_or_const_value_attribute): Only special case
19541         single entry loc lists if loc is NOTE_P.  Adjust for
19542         var_loc_note to loc field renaming.
19543         (dwarf2out_var_location): Don't set newloc->var_loc_note
19544         and newloc->next here.
19545
19546 2010-05-12  Jan Hubicka  <jh@suse.cz>
19547
19548         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
19549         flag.
19550         * cgraph.h (cgraph_only_called_directly_p,
19551         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
19552         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
19553         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
19554         (assemble
19555         * ipa.c (cgraph_remove_unreachable_nodes): Use
19556         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
19557         flags.
19558         * tree-inline.c (copy_bb): Check address_taken flag.
19559         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
19560         externally_visible flag.
19561
19562 2010-05-12  Jason Merrill  <jason@redhat.com>
19563
19564         PR bootstrap/44048
19565         PR target/44099
19566         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
19567         * sdbout.c (plain_type_1): Likewise.
19568         * dwarf2out.c (is_base_type): Likewise.
19569         (gen_type_die_with_usage): Likewise.  Generate
19570         DW_TAG_unspecified_type for any LANG_TYPE.
19571
19572 2010-05-12  Jan Hubicka  <jh@suse.cz>
19573
19574         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
19575         indrect edges too.
19576         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
19577         (cgraph_clone_edge): Update.
19578         (cgraph_node_remove_callees): Remove indirect calls too.
19579         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
19580         (cgraph_create_indirect_edge): Update prototype.
19581         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
19582         is_proper_for_analysis.
19583         (add_new_function, visited_nodes, function_insertion_hook_holder,
19584         get_local_reference_vars_info, mark_address_taken, mark_address,
19585         mark_load, mark_store, check_asm_memory_clobber, check_call,
19586         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
19587         (ipa_init): Do not initialize visited_nodes;
19588         function_insertion_hook_holder.
19589         (analyze_variable): Rewrite.
19590         (analyze_function): Rewrite.
19591         (copy_local_bitmap): Remove.
19592         (duplicate_node_dat): Do not duplicate local info.
19593         (generate_summary): Simplify to only walk cgraph.
19594         (write_node_summary_p, ipa_reference_write_summary,
19595         ipa_reference_read_summary): Remove.
19596         (propagate): Do not remove function insertion;
19597         generate summary.
19598         (pass_ipa_reference): NULLify summary handling fields.
19599         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
19600         (input_edge): Input ecf_flags.
19601         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
19602         (update_indirect_edges_after_inlining): Ignore edges with unknown
19603         param.
19604
19605 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
19606
19607         * implicit-zee.c: New file.
19608         * tree-pass.h (pass_implicit_zee): Declare.
19609         * passes.c (init_optimization_passes): Add zee pass.
19610         * common.opt (fzee): New flag.
19611         * timevar.def (TV_ZEE): Define.
19612         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
19613         and beyond.
19614         * Makefile.in (implicit-zee.o): Add new build file.
19615
19616 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19617             Nathan Froyd  <froydnj@codesourcery.com>
19618
19619         * c-common.c (sync_resolve_params): Remove write-only variable.
19620
19621 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
19622
19623         * target.h (struct gcc_target): Add mode_dependent_address_p field.
19624         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19625         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
19626         * targhooks.c (default_mode_dependent_address_p): New function.
19627         * targhooks.h (default_mode_dependent_address_p): Declare function.
19628         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
19629         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
19630         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
19631         target hook. Change return type to bool.
19632         * recog.h (mode_dependent_address_p): Change return type to bool.
19633
19634 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19635             Nathan Froyd  <froydnj@codesourcery.com>
19636
19637         * tree-mudflap.c (build_function_type_0, build_function_type_1,
19638         build_function_type_2, build_function_type_3): Remove.
19639         (mudflap_init): Use build_function_type_list.
19640
19641 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
19642             Nathan Froyd  <froydnj@codesourcery.com>
19643
19644         * coverage.c (build_fn_info_value): Call build_constructor instead of
19645         build_constructor_from_list.
19646         (build_ctr_info_value): Likewise.
19647         (build_gcov_info): Likewise.
19648
19649 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
19650
19651         * tree.c (build_constructor): Compute TREE_CONSTANT for the
19652         resultant constructor.
19653         (build_constructor_single): Don't set TREE_CONSTANT.
19654         (build_constructor_from_list): Don't compute TREE_CONSTANT.
19655
19656 2010-05-12  Jan Hubicka  <jh@suse.cz>
19657
19658         * cgraph.h (struct varpool_node): Add aux.
19659         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
19660         * varpool.c (varpool_remove_node): Do not remove initializer.
19661         (varpool_reset_queue): Export.
19662         (varpool_finalize_decl): Volatile vars are forced to be output.
19663         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
19664         replaced decl.
19665         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
19666         process_references, varpool_can_remove_if_no_refs): New functions.
19667         (cgraph_remove_unreachable_nodes): Handle variables too.
19668
19669 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
19670
19671         PR target/44088
19672         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
19673
19674 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
19675
19676         PR middle-end/44085
19677         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
19678         change value of ORT_TASK.
19679         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
19680         (omp_notice_threadprivate_variable): New function.
19681         (omp_notice_variable): Call it for threadprivate variables.
19682         If enclosing ctx is a task, print enclosing task rather than
19683         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
19684         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
19685         if task has untied clause.
19686
19687         PR debug/42278
19688         * dwarf2out.c (base_type_die): Don't add name attribute here.
19689         (modified_type_die): Instead of sizetype use
19690         its underlying original type.  If a DW_TAG_base_type doesn't
19691         have name added, add __unknown__.
19692         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
19693         always call force_type_die instead.
19694
19695 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
19696
19697         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
19698         for __stack_chk_guard.
19699
19700 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
19701
19702         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
19703         don't call start_source_file debug hook here...
19704         (finish_options): ... but here, after outputting predefined and
19705         command line defines and undefs.
19706
19707         PR middle-end/44071
19708         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
19709         no fallthru edge.
19710         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
19711         optimizing away empty bb with no successors, move over its
19712         footer chain to fallthru predecessor.
19713         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
19714         (rtl_split_edge): For asm goto call patch_jump_insn even if
19715         splitting fallthru edge.
19716
19717         PR c++/44059
19718         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
19719         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
19720         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
19721         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
19722         on DW.ref.* decls.
19723
19724         PR c++/44062
19725         * c-parser.c (c_parser_expression): Mark LHS of a comma
19726         expression as read if it is a decl, handled component or
19727         COMPOUND_EXPR with that on the RHS.
19728         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
19729         if it is a decl or handled component.
19730
19731 2010-05-11  Jan Hubicka  <jh@suse.cz>
19732
19733         * lto-symtab.c (lto_symtab_free): New function.
19734         * lto-streamer.h (lto_symtab_free): Declare.
19735
19736 2010-05-11  Jan Hubicka  <jh@suse.cz>
19737
19738         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
19739         that if function is needed it is reachable.
19740         (lto_output_node): See if it the function is reachable or referenced.
19741         (output_cgraph): Update call of lto_output_node.
19742         * lto-streamer.h (reachable_from_other_partition_p): Declare.
19743
19744 2010-05-11  Jan Hubicka  <jh@suse.cz>
19745
19746         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
19747         Mark as used.
19748
19749 2010-05-11  Jan Hubicka  <jh@suse.cz>
19750
19751         PR tree-optimize/44063
19752         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
19753         queue.
19754         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
19755         limits.
19756         (estimate_function_body_sizes): Compute sizes even when disregarding.
19757
19758 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
19759
19760         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
19761
19762 2010-05-11  Jan Hubicka  <jh@suse.cz>
19763
19764         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
19765         into every boundary.
19766
19767 2010-05-11  Jan Hubicka  <jh@suse.cz>
19768
19769         * matrix-reorg.c (matrix_reorg): Rebuild edges.
19770
19771 2010-05-11  Jan Hubicka  <jh@suse.cz>
19772
19773         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
19774         lto_streamer_cache_delete): Put nodes into heap.
19775         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
19776         heap.
19777
19778 2010-05-11  Jan Hubicka  <jh@suse.cz>
19779
19780         * cgraphbuild.c (cgraph_rebuild_references): New.
19781         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
19782         out extern inlines.
19783         * cgraph.h (cgraph_rebuild_references): Declare.
19784         * tree-inline.c (tree_function_versioning): Use it.
19785         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
19786
19787 2010-05-11  Jan Hubicka  <jh@suse.cz>
19788
19789         * cgraph.c: Include ipa-utils.h
19790         (cgraph_create_virtual_clone): Update references.
19791         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
19792
19793 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
19794
19795         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
19796         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
19797         cache size.
19798
19799 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
19800
19801         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
19802
19803 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
19804
19805         * gcc.c (execute): For -### don't quote arguments that
19806         contain just alphanumerics and _/-. characters.
19807         * doc/invoke.texi: Document that change for -###.
19808
19809         PR debug/44023
19810         * df-problems.c (struct dead_debug): Add to_rescan field.
19811         (dead_debug_init): Clear to_rescan field.
19812         (dead_debug_finish): Rescan all debug insns in to_rescan
19813         bitmap and free the bitmap.
19814         (dead_debug_insert_before): Instead of rescanning debug insns
19815         immediately queue their rescanning until dead_debug_finish.
19816         (df_note_bb_compute): After dead_debug_add do continue instead
19817         of break.
19818
19819 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
19820
19821         PR debug/44028
19822         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
19823         clear also INSN_REG_USE_LIST.
19824
19825 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19826
19827         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
19828
19829 2010-05-10  Jan Hubicka  <jh@suse.cz>
19830
19831         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
19832         commited change.
19833
19834 2010-05-10  Jan Hubicka  <jh@suse.cz>
19835
19836         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
19837         Allocate encoders.
19838         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
19839         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
19840         (lto_streamer_cache_create): Init alloc pool.
19841         (lto_streamer_cache_delete): Free alloc pool.
19842         * lto-streamer.h: Include alloc pool.
19843         (lto_streamer_cache_d): Use alloc pool.
19844         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
19845
19846 2010-05-10  Jan Hubicka  <jh@suse.cz>
19847
19848         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
19849         * cgraphbuild.c: Include except.h
19850         (record_type_list, record_eh_tables): New function.
19851         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
19852
19853 2010-05-10  Jan Hubicka  <jh@suse.cz>
19854
19855         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
19856         __frame_dummy_init_array_entry, force_to_data): Attribute as used
19857         rather than unused.
19858
19859 2010-05-10  Michael Matz  <matz@suse.de>
19860
19861         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
19862         (can_reassociate_p): Use FLOAT_TYPE_P.
19863         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
19864         (vect_force_simple_reduction): ... this.
19865         * tree-parloops.c (gather_scalar_reductions): Use
19866         vect_force_simple_reduction.
19867         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
19868         vect_is_simple_reduction, add modify argument, if true rewrite
19869         "a-b" into "a+(-b)".
19870         (vect_is_simple_reduction, vect_force_simple_reduction): New
19871         functions.
19872         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
19873
19874 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19875             Vladimir Makarov  <vmakarov@redhat.com>
19876
19877         PR rtl-optimization/44012
19878         * ira-build.c (remove_unnecessary_allocnos): Nullify
19879         regno_allocno_map of the removed allocno.
19880
19881 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19882
19883         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
19884         to /dev/null.
19885         * configure: Regenerate.
19886
19887 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19888
19889         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
19890         unused.
19891         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
19892         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
19893         support in Sun ld.
19894         * configure: Regenerate.
19895
19896 2010-05-10  Richard Guenther  <rguenther@suse.de>
19897
19898         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
19899         marked if the entry identifier is marked.
19900
19901 2010-05-10  Richard Guenther  <rguenther@suse.de>
19902
19903         * c-common.c (struct c_common_attributes): Add fnspec attribute.
19904         (handle_fnspec_attribute): New function.
19905         * gimple.h (gimple_call_return_flags): Declare.
19906         (gimple_call_arg_flags): Likewise.
19907         * gimple.c (gimple_call_arg_flags): New function.
19908         (gimple_call_return_flags): Likewise.
19909         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
19910         New argument flags.
19911         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
19912         return value flags.
19913         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
19914         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
19915         main work to ...
19916         (make_heapvar_for): ... this new function.
19917         (handle_rhs_call): Handle fnspec attribute argument specifiers.
19918         (handle_lhs_call): Likewise.
19919         (find_func_aliases): Adjust.
19920
19921 2010-05-10  Richard Guenther  <rguenther@suse.de>
19922
19923         PR tree-optimization/44050
19924         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
19925
19926 2010-05-10  Wei Guozhi  <carrot@google.com>
19927
19928         PR target/42879
19929         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
19930
19931 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
19932
19933         PR c/10676
19934         * c-typeck.c (lookup_field): Take a type directly.  Update
19935         recursive calls.
19936         (build_component_ref): Update call to lookup_field.
19937         (set_init_label): Use lookup_field to find initialized field.
19938         Handle returned list of fields like a sequence of designators.
19939
19940 2010-05-09  Richard Guenther  <rguenther@suse.de>
19941
19942         PR middle-end/44024
19943         * fold-const.c (tree_single_nonzero_warnv_p): Properly
19944         handle &FUNCTION_DECL.
19945
19946 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
19947
19948         PR c/4784
19949         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
19950         structures and unions recursively.
19951         (detect_field_duplicates): Move duplicate detection with a hash to
19952         detect_field_duplicates_hash.  Always use a hash if anonymous
19953         structures or unions are present.
19954         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
19955         give errors.
19956
19957 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
19958
19959         PR target/44046
19960         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
19961         detect Atom, Core 2 and Core i7.
19962
19963 2010-05-09  Richard Guenther  <rguenther@suse.de>
19964
19965         * gcc.c (store_arg): Handle temporary file deletion for
19966         joined arguments.
19967
19968 2010-05-09  Richard Guenther  <rguenther@suse.de>
19969
19970         PR middle-end/44043
19971         * ipa-inline.c (estimate_function_body_sizes): Return after
19972         disregarding inline limits.
19973
19974 2010-05-09  Richard Guenther  <rguenther@suse.de>
19975
19976         * gcc.c (store_arg): Revert last change.
19977
19978 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
19979
19980         PR middle-end/28685
19981         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
19982         (optimize_ops_list): Call it.
19983
19984 2010-05-08  Richard Guenther  <rguenther@suse.de>
19985
19986         PR tree-optimization/44030
19987         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
19988         NECESSARY flag if we propagate from a inserted expression.
19989
19990 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
19991
19992         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
19993         domain types as equal if they are both PLACEHOLDER_EXPRs.
19994
19995 2010-05-08  Richard Guenther  <rguenther@suse.de>
19996
19997         * lto-wrapper.c (run_gcc): Remove linker output from
19998         command line for LTRANS invocation.
19999
20000 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20001
20002         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20003         lto-macho as lto_binary_reader.
20004         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20005         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20006         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20007         in lto_start and lto_end calls.
20008         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20009         magic numbers.
20010         (scan_prog_file): Update is_elf_or_coff call.
20011         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20012
20013         * collect2.c (main): Fix enum comparison.
20014
20015         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20016         Add prototypes.
20017         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20018         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20019         and TARGET_ASM_LTO_END.
20020         * darwin.c: Include obstack.h and lto-streamer.h.
20021         (lto_section_names_offset, lto_section_names_obstack,
20022         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20023         global variables.
20024         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20025         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20026         to a temporary file.
20027         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20028         (darwin_asm_named_section): For LTO sections, replace the name with
20029         the offset of the section name in a string table, and build this
20030         table.
20031         (darwin_file_start): Initialize global vars for LTO support.
20032         (darwin_file_end): If output to asm_out_file was redirected, append it
20033         to the proper asm_out_file here.  Add the section names section.
20034
20035 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20036
20037         * c-pragma.c (pending_weak_d, pending_weak): New.
20038         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20039         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20040         handle_pragma_weak): Update the uses of pending_weaks.
20041
20042 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20043
20044         PR documentation/44016
20045         * doc/standards.texi (Standards): Link to unversioned
20046         cxx0x_status.html page.
20047
20048 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20049
20050         PR target/43708
20051         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20052         in addition to TREE_USED, to avoid "set but unused" warnings.
20053
20054 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20055
20056         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20057         (is_loop_prefetching_profitable): Do not insert prefetches
20058         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20059         times the prefetch ahead distance.
20060
20061 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20062
20063         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20064         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20065         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20066         the unroll_factor.
20067
20068 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20069
20070         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20071         a diagnostic info when the insn-to-mem ratio is too small.
20072
20073 2010-05-07  Richard Guenther  <rguenther@suse.de>
20074
20075         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20076         the linker plugin.
20077         (store_arg): Queue temp_filename for deletion instead of
20078         the whole argument.
20079
20080 2010-05-07  Richard Guenther  <rguenther@suse.de>
20081
20082         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20083         (run_gcc): Handle LTRANS phase invocation.
20084         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20085
20086 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20087
20088         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20089         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20090
20091 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20092
20093         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20094
20095 2010-05-07  Richard Guenther  <rguenther@suse.de>
20096
20097         PR tree-optimization/44020
20098         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20099         code when PRE is not yet initialized.
20100
20101 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20102
20103         * config/mips/dbxmdebug.h: Remove.
20104         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20105
20106 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20107
20108         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20109         with null pointer and also warn about ordered comparison of zero with
20110         pointer if -Wextra.
20111
20112 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20113
20114         * graphite-blocking.c
20115         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20116         * graphite-clast-to-gimple.c
20117         (clast_to_gcc_expression): Same.
20118         (precision_for_value): Same.
20119         (precision_for_interval): Same.
20120         (gcc_type_for_interval): Same.
20121         (graphite_create_new_guard): Same.
20122         (compute_bounds_for_level): Same.
20123         (graphite_create_new_loop_guard): Same.
20124         * graphite-interchange.c
20125         (build_linearized_memory_access): Same.
20126         (pdr_stride_in_loop): Same.
20127         (memory_strides_in_loop_1): Same.
20128         (memory_strides_in_loop): Same.
20129         (extend_scattering): Same.
20130         (psct_scattering_dim_for_loop_depth): Same.
20131         (pbb_number_of_iterations): Same.
20132         * graphite-poly.h
20133         (debug_iteration_domains): Same.
20134         * graphite-ppl.c
20135         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20136         (ppl_set_inhomogeneous_gmp): Same.
20137         (ppl_strip_loop): Same.
20138         (ppl_lexico_compare_linear_expressions): Same.
20139         (ppl_read_polyhedron_matrix): Same.
20140         (ppl_max_for_le_pointset): Same.
20141         * graphite-ppl.h
20142         (ppl_read_polyhedron_matrix): Same.
20143         (tree_int_to_gmp): Same.
20144         (gmp_cst_to_tree): Same.
20145         (ppl_set_inhomogeneous): Same.
20146         (ppl_set_inhomogeneous_tree): Same.
20147         (ppl_set_coef): Same.
20148         (ppl_set_coef_tree): Same.
20149         * graphite-sese-to-poly.c
20150         (build_pbb_scattering_polyhedrons): Same.
20151         (build_scop_scattering): Same.
20152         (scan_tree_for_params_right_scev): Same.
20153         (scan_tree_for_params): Same.
20154         (find_params_in_bb): Same.
20155         (find_scop_parameters): Same.
20156         (add_upper_bounds_from_estimated_nit): Same.
20157         (build_loop_iteration_domains): Same.
20158         (add_condition_to_domain): Same.
20159         (pdr_add_memory_accesses): Same.
20160
20161 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20162
20163         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20164         CLooG's value_* macros to their respective mpz_* counterparts.
20165         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20166         (graphite_create_new_loop_guard): Same.
20167         * graphite-interchange.c (build_linearized_memory_access): Same.
20168         (pdr_stride_in_loop): Same.
20169         (memory_strides_in_loop_1): Same.
20170         (1st_interchange_profitable_p): Same.
20171         * graphite-poly.c (extend_scattering): Same.
20172         (psct_scattering_dim_for_loop_depth): Same.
20173         (pbb_number_of_iterations): Same.
20174         (pbb_number_of_iterations_at_time): Same.
20175         * graphite-poly.h (new_1st_loop): Same.
20176         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20177         (oppose_constraint): Same.
20178         (insert_constraint_into_matrix): Same.
20179         (ppl_set_inhomogeneous_gmp): Same.
20180         (ppl_set_coef_gmp): Same.
20181         (ppl_strip_loop): Same.
20182         (ppl_lexico_compare_linear_expressions): Same.
20183         (ppl_max_for_le_pointset): Same.
20184         (ppl_min_for_le_pointset): Same.
20185         (ppl_build_realtion): Same.
20186         * graphite-ppl.h (gmp_cst_to_tree): Same.
20187         (ppl_set_inhomogeneous): Same.
20188         (ppl_set_inhomogeneous_tree): Same.
20189         (ppl_set_coef): Same.
20190         (ppl_set_coef_tree): Same.
20191         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
20192         (build_scop_scattering): Same.
20193         (add_value_to_dim): Same.
20194         (scan_tree_for_params_right_scev): Same.
20195         (scan_tree_for_params_int): Same.
20196         (scan_tree_for_params): Same.
20197         (find_params_in_bb): Same.
20198         (find_scop_parameters): Same.
20199         (add_upper_bounds_from_estimated_nit): Same.
20200         (build_loop_iteration_domains): Same.
20201         (create_linear_expr_from_tree): Same.
20202         (add_condition_to_domain): Same.
20203         (pdr_add_memory_accesses): Same.
20204
20205 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
20206             Jason Merrill  <jason@redhat.com>
20207
20208         * c-common.c (c_common_reswords): Add nullptr.
20209         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
20210         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
20211         (gen_type_die_with_usage): Likewise.
20212         * dbxout.c (dbxout_type): Likewise.
20213         * sdbout.c (plain_type_1): Likewise.
20214
20215 2010-05-06  Jason Merrill  <jason@redhat.com>
20216
20217         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
20218         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
20219         ret appropriately.
20220         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
20221
20222         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
20223         stripping WITH_SIZE_EXPR.
20224         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
20225         change.
20226
20227 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20228
20229         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
20230         list of obsolete configurations.
20231         Disabled check for obsolete configurations.
20232         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
20233         Removed support for previous versions.
20234         * config/mips/iris.h: Removed.
20235         * config/mips/iris5.h: Removed.
20236         * config/mips/iris6.h: Merged old iris.h contents.
20237         (TARGET_IRIX): Removed.
20238         (DRIVER_SELF_SPECS): Removed mabi=32.
20239         (IDENT_ASM_OP): Removed undef.
20240         (STARTFILE_SPEC): Removed mabi=32.
20241         (ENDFILE_SPEC): Likewise.
20242         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
20243         (MACHINE_TYPE): Update for IRIX 6.5.
20244         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
20245         TARGET_IRIX by TARGET_IRIX6.
20246         (mips_file_start): Likewise.
20247         (mips_output_external): Remove IRIX 5/6 O32 support.
20248         (mips_output_function_prologue): Likewise.
20249         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
20250         TARGET_IRIX6.
20251         (TARGET_CPU_CPP_BUILTINS): Likewise.
20252         (TARGET_IRIX): Removed.
20253         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
20254         (MULTILIB_DIRNAMES): Removed 32.
20255         (MULTILIB_OSDIRNAMES): Removed ../lib.
20256         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
20257         (Specific, mips-sgi-irix5): Document removal.
20258         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
20259         Remove references to older IRIX 6 releases and the O32 ABI.
20260
20261 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
20262
20263         PR bootstrap/43994
20264         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
20265         instead of DF_REF_REAL_REG.
20266
20267 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
20268
20269         PR target/43888
20270         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
20271         handling to still return true for x64 targets.
20272
20273 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20274
20275         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
20276
20277 2010-05-06  Jan Hubicka  <jh@suse.cz>
20278
20279         PR tree-optimization/43791
20280         * ipa-inline.c (update_caller_keys): Remove bogus
20281         disregard_inline_limits check.
20282
20283 2010-05-06  Michael Matz  <matz@suse.de>
20284
20285         PR tree-optimization/43984
20286         * tree-ssa-pre.c (inserted_phi_names): Remove.
20287         (inserted_exprs): Change to bitmap.
20288         (create_expression_by_pieces): Set bits, don't append to vector.
20289         (insert_into_preds_of_block): Don't handle inserted_phi_names.
20290         (eliminate): Don't look at inserted_phi_names, remove deleted
20291         insns from inserted_exprs.
20292         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
20293         (init_pre, fini_pre): Allocate and free bitmaps.
20294         (execute_pre): Insert insns on edges before elimination.
20295
20296 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
20297
20298         * tree.c (initializer_zerop): Handle STRING_CST.
20299
20300 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20301
20302         PR 40989
20303         * doc/invoke.texi (Wimplicit): Document as C only.
20304         * opts.c (common_handle_option): Add argument kind.
20305         (handle_option): Rename as read_cmdline_option. Factor out code to...
20306         (handle_option): ... here. New.
20307         (handle_options): Rename as read_cmdline_options.
20308         (decode_options): Update call.
20309         (set_option): Use option index instead of option pointer. Classify
20310         diagnostics correctly.
20311         (enable_warning_as_error): Call handle_option.
20312         * opts.h (set_option): Update declaration.
20313         (handle_option): Declare.
20314         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
20315         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
20316         * c-opts.c (set_Wimplicit): Delete.
20317         (c_family_lang_mask): New static constant.
20318         (c_common_handle_option): Add argument kind. Use handle_option
20319         instead of set_Wimplicit.
20320         (c_common_post_options): warn_implicit and warn_implicit_int
20321         are disabled by default.
20322         * c-common.c (warn_implicit): Do not define here.
20323         * c-common.h (warn_implicit): Do not declare here.
20324         (c_common_handle_option): Update declaration.
20325         * lto-opts.c (lto_reissue_options): Update call to set_option.
20326
20327 2010-05-06  Richard Guenther  <rguenther@suse.de>
20328
20329         PR tree-optimization/43571
20330         * domwalk.c (walk_dominator_tree): Walk the dominator
20331         sons in more optimal order.
20332
20333 2010-05-06  Richard Guenther  <rguenther@suse.de>
20334
20335         PR tree-optimization/43934
20336         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
20337         (stmt_cost): Likewise.
20338         (extract_true_false_args_from_phi): New helper.
20339         (determine_max_movement): For PHI nodes verify we can hoist them
20340         and compute their cost.
20341         (determine_invariantness_stmt): Handle PHI nodes.
20342         (move_computations_stmt): Likewise.  Hoist PHI nodes in
20343         if-converted form using COND_EXPRs.
20344         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
20345         (tree_ssa_lim): Likewise.
20346         * tree-flow.h (tree_ssa_lim): Adjust prototype.
20347         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
20348
20349 2010-05-06  Richard Guenther  <rguenther@suse.de>
20350
20351         PR tree-optimization/43987
20352         * tree-ssa-structalias.c (could_have_pointers): For possibly
20353         address-taken variables force pointers to be recorded.
20354         (create_variable_info_for_1): Likewise.
20355         (push_fields_onto_fieldstack): Pass in wheter all fields
20356         must have pointers.
20357         (find_func_aliases): Query types instead of vars whether
20358         they contain pointers where appropriate.
20359
20360 2010-05-06  Jan Hubicka  <jh@suse.cz>
20361
20362         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
20363         (record_reference, mark_address, mark_load, mark_store): Record
20364         references.
20365         (record_references_in_initializer): Update call of record_references.
20366         (rebuild_cgraph_edges): Remove all references before rebuiding.
20367         * cgraph.c (cgraph_create_node): Clear ref list.
20368         (cgraph_remove_node): Remove references.
20369         (dump_cgraph_node): Dump references.
20370         (cgraph_clone_node): Clone references.
20371         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
20372         (struct cgraph_node, varpool_node): Add ref_lst.
20373         * ipa-ref.c: New file.
20374         * ipa-ref.h: New file.
20375         * ipa-ref-inline.h: New file.
20376         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
20377         (referenced_from_other_partition_p): New function.
20378         (lto_output_varpool_node): Take set arugment; call
20379         referenced_from_other_partition.
20380         (lto_output_ref): New.
20381         (add_references): New.
20382         (output_refs): New.
20383         (output_cgraph): Compute boundary based on references; output refs.
20384         (output_varpool): Accept cgraph_node_set argument.
20385         (input_ref): New.
20386         (input_refs): New.
20387         (input_cgraph): Call input_refs.
20388         * lto-section-in.c (lto_section_name): Add refs.
20389         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
20390         (ipa-ref.o): New file.
20391         * varpool.c (varpool_node): Clear ipa ref list.
20392         (varpool_remove_node): Remove references.
20393         (dump_varpool_node): Dump references.
20394         (varpool_assemble_decl): Only compile finalized ones.
20395         (varpool_extra_name_alias): Initialize ref list.
20396         * lto-streamer.c (lto-get_section_name): Add .refs section.
20397         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
20398         (referenced_from_other_partition_p): Declared.
20399
20400 2010-05-06  Ira Rosen  <irar@il.ibm.com>
20401
20402         PR tree-optimization/43901
20403         * tree-vect-stmts.c (vectorizable_call): Assert that vector
20404         type is not NULL if it's transformation phase, and return
20405         FALSE if it's analysis.
20406         (vectorizable_conversion, vectorizable_operation,
20407         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
20408
20409 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
20410
20411         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20412         Delete.
20413         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
20414         New define.
20415         * config/mips/mips-protos.h
20416         (mips_small_register_classes_for_mode_p): Delete prototype.
20417
20418 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
20419
20420         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
20421         * config/arm/arm.c (multiple_operation_profitable_p,
20422         compute_offset_order): New static functions.
20423         (load_multiple_sequence, store_multiple_sequence): Use them.
20424         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
20425         memory offsets, not register numbers.
20426         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
20427
20428 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
20429
20430         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
20431         (get_pending_sizes, put_pending_size, put_pending_sizes):
20432         Update the uses of pending_sizes.
20433         * c-decl.c (store_parm_decls): Likewise.
20434         * c-tree.h (struct c_arg_info): Likewise.
20435         * tree.h: Update the prototype for get_pending_sizes and
20436         put_pending_sizes.
20437
20438 2010-05-05  Jason Merrill  <jason@redhat.com>
20439
20440         PR debug/43370
20441         * c-common.c (handle_aligned_attribute): Respect
20442         ATTR_FLAG_TYPE_IN_PLACE.
20443
20444         PR testsuite/43758
20445         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
20446         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20447         (TARGET_INITIALIZER): Use it.
20448         * c-common.c (attribute_takes_identifier_p): Call it.
20449         * c-common.h: Update prototype.
20450         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
20451         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20452
20453 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20454
20455         PR debug/43950
20456         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
20457         DW_ID_down_case for Fortran compilation units.
20458
20459 2010-05-05  Jan Hubicka  <jh@suse.cz>
20460
20461         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
20462         handle aliases.
20463
20464 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
20465
20466         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
20467         a variable-sized RESULT_DECL.
20468
20469 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
20470
20471         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
20472
20473 2010-05-05  Jason Merrill  <jason@redhat.com>
20474
20475         PR c++/43787
20476         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
20477         returns GS_OK.
20478         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
20479
20480 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
20481             Jakub Jelinek  <jakub@redhat.com>
20482
20483         PR debug/43478
20484         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
20485         (dead_debug_init, dead_debug_finish): New functions.
20486         (dead_debug_add, dead_debug_insert_before): Likewise.
20487         (df_note_bb_compute): Initialize a dead_debug object, add dead
20488         debug uses to it, insert debug bind insns before death insns,
20489         reset debug insns that refer to pending uses at the end.
20490         * rtl.h (make_debug_expr_from_rtl): New prototype.
20491         * varasm.c (make_debug_expr_from_rtl): New function.
20492
20493 2010-05-05  Jan Hubicka  <jh@suse.cz>
20494
20495         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
20496         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
20497         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
20498         lto_varpool_encoder_deref, lto_varpool_encoder_size,
20499         lto_varpool_encoder_encode_initializer_p,
20500         lto_set_varpool_encoder_encode_initializer): New functions.
20501         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
20502         call output_varpool.
20503         (input_varpool_node): Do not always set analyzed.
20504         (input_cgraph_1): Return vector of cgraph nodes.
20505         (input_varpool_1): Return vector of varpools.
20506         (input_cgraph): Free the vectors.
20507         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20508         output only initializers needed.
20509         (lto_output): Only call output_cgraph.
20510         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
20511         * lto-section-out.c (lto_new_out_decl_state): Initialize
20512         state->varpool_node_encoder.
20513         * lto-streamer.h (lto_varpool_encoder_d): New.
20514         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
20515         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
20516         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
20517         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
20518         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
20519         Declare.
20520         (output_varpool, input_varpool): Remove declarations.
20521
20522 2010-05-05  Jan Hubicka  <jh@suse.cz>
20523
20524         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
20525         with body can prevail.
20526
20527 2010-05-05  Jan Hubicka  <jh@suse.cz>
20528
20529         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
20530         size.
20531
20532 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20533
20534         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
20535
20536         * gengtype.h (erro_at_line): Constify pos argument.
20537
20538         * gengtype.c: Include hashtab.h.
20539         (enum gc_used): Document GC_MAYBE_POINTED_TO.
20540         (error_at_line): Constify pos argument.
20541         (do_typedef): Initialize p->opt field.
20542         (get_file_gtfilename): Fix comment typo.
20543         (struct walk_type_data): Constify line field.
20544         (get_output_file_for_structure): New function.
20545         (write_local_func_for_structure): Constify orig_s argument.
20546         Use get_output_file_for_structure.
20547         (write_func_for_structure): Use get_output_file_for_structure.
20548         (INDENT): New define.
20549         (dump_pair, dump_type, dump_type_list, dump_typekind)
20550         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
20551         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
20552         functions.
20553         (seen_types): New variable.
20554         (main): New variable do_dump.  Process "-d" command line option.
20555         Call dump_everything if dump requested.
20556
20557 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
20558
20559         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
20560         in a temporary instead of invoking the macro multiple times.
20561         (track_expr_p): Likewise.
20562
20563 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
20564
20565         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
20566         per new semantics.
20567         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
20568         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
20569         conditions for printing notes.
20570         * common.opt (-Wcoverage-mismatch): Allow negative, default to
20571         true, update documentation.
20572         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
20573
20574 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
20575
20576         PR c/43981
20577         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
20578         on dimen.
20579
20580 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20581
20582         PR target/43799
20583         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
20584         (*sse_prologue_save_insn1): Likewise.
20585         (SSE prologue save splitter): Likewise.
20586
20587 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
20588
20589         * tree.c (free_lang_data_in_one_sizepos): New inline function.
20590         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
20591         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
20592         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
20593         all decls.  Call it on DECL_FIELD_OFFSET of fields.
20594         (find_decls_types_r): Follow DECL_VALUE_EXPR.
20595         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
20596
20597 2010-05-04  Martin Jambor  <mjambor@suse.cz>
20598
20599         * tree-sra.c (build_access_from_expr_1): The first parameter type
20600         changed to simple tree.
20601         (build_access_from_expr): Likewise, gsi parameter was eliminated.
20602         (scan_assign_result): Renamed to assignment_mod_result, enum elements
20603         renamed as well.
20604         (build_accesses_from_assign): Removed all parameters except for a
20605         simple gimple statement.  Now returns a simple bool.
20606         (scan_function): All non-analysis parts moved to separate functions
20607         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
20608         parameters and updated both callers.
20609         (sra_modify_expr): Removed parameter data.
20610         (sra_modify_function_body): New function.
20611         (perform_intra_sra): Call sra_modify_function_body to modify the
20612         function body.
20613         (replace_removed_params_ssa_names): Parameter data changed into
20614         adjustments vector.
20615         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
20616         changed the parameter dont_convert to convert with the opposite
20617         meaning.
20618         (sra_ipa_modify_assign): Parameter data changed into adjustments
20619         vector, return value changed to bool.
20620         (ipa_sra_modify_function_body): New function.
20621         (sra_ipa_reset_debug_stmts): Updated a comment.
20622         (modify_function): Use ipa_sra_modify_function_body to modify function
20623         body.
20624
20625 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20626
20627         PR middle-end/43671
20628         * alias.c (true_dependence): Handle the same VALUE in x and mem.
20629         (canon_true_dependence): Likewise.
20630         (write_dependence_p): Likewise.
20631
20632 2010-05-04  Jan Hubicka  <jh@suse.cz>
20633
20634         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
20635         * cgraphbuild.c: Include ipa-utils.h
20636         (record_reference_ctx): New struct.
20637         (record_reference): Simplify to work on initializers; not statements.
20638         (mark_address, mark_load, mark_store): New.
20639         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20640         walk PHI nodes too.
20641         (record_references_in_initializer): Update use of record_reference.
20642         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
20643         walk PHI nodes too.
20644
20645 2010-05-04  Jan Hubicka  <jh@suse.cz>
20646
20647         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
20648         node will be removed anyway.
20649         (lto_varpool_replace_node): Allow also unanalyzed nodes;
20650         relink aliases of node into prevailing node.
20651         * varpool.c (varpool_remove_node): Remove aliases properly;
20652         when removing node, remove all its aliases too; remove DECL_INITIAL
20653         of removed node; ggc_free the varpool node.
20654
20655 2010-05-04  Richard Guenther  <rguenther@suse.de>
20656
20657         PR tree-optimization/43879
20658         * tree-ssa-structalias.c (alias_get_name): Use
20659         DECL_ASSEMBLER_NAME if available.
20660         (create_function_info_for): Return the varinfo node.
20661         (ipa_pta_execute): Associate same-body aliases and extra names
20662         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
20663
20664 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
20665
20666         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
20667
20668 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
20669
20670         PR bootstrap/43964
20671         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
20672         only if HONOR_REG_ALLOC_ORDER is not defined.
20673
20674 2010-05-04  Richard Guenther  <rguenther@suse.de>
20675
20676         PR tree-optimization/43949
20677         * tree-vrp.c (extract_range_from_binary_expr): Only handle
20678         TRUNC_MOD_EXPR.
20679
20680 2010-04-26  Jason Merrill  <jason@redhat.com>
20681
20682         * c.opt (-fstrict-enums): New.
20683         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
20684
20685 2010-05-03  David Ung  <davidu@mips.com>
20686             James E. Wilson  <wilson@codesourcery.com>
20687
20688         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
20689         emit the trap instruction before the divide for TUNE_74K.
20690
20691 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
20692
20693         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
20694         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
20695         based on the above, for new target hook.
20696
20697         * hooks.c (hook_bool_mode_true): New generic hook.
20698         * hooks.h (hook_bool_mode_true): Add prototype.
20699
20700         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
20701         target hook.
20702         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
20703         target hook, set to hook_bool_mode_false.
20704         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
20705         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
20706         with targetm.small_register_classes_for_mode_p.
20707         (find_reusable_reload): Likewise.
20708         (combine_reloads): Likewise.
20709         * reload1.c (reload_as_needed): Likewise.
20710         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
20711         * ifcvt.c (noce_process_if_block, check_cond_move_block,
20712         dead_or_predicable): Likewise.
20713         * regmove.c (optimize_reg_copy_1): Likewise.
20714         * calls.c (prepare_call_address): Likewise.
20715         (precompute_register_parameters): Likewise.
20716
20717         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
20718         hook definition.
20719         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
20720         implementation of the hook that considers all register classes
20721         small except for SH64.
20722         (sh_override_options): Use the new hook.
20723         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
20724         Add prototype.
20725
20726         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
20727         hook definition.
20728         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
20729         implementation of the hook that considers all register classes
20730         small for THUMB1.
20731         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
20732         Add prototype.
20733
20734         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
20735         hook definition.
20736         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
20737         implementation of the hook that considers all register classes
20738         small for MIPS16.
20739         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
20740         Add prototype.
20741
20742         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
20743         hook definition.
20744         * config/m32c/m32c.h: Likewise.
20745         * config/pdp11/pdp11.h: Likewise.
20746         * config/avr/avr.h: Likewise.
20747         * config/xtensa/xtensa.h: Likewise.
20748         * config/m68hc11/m68hc11.h: Likewise.
20749         * config/mn10300/mn10300.h: Likewise.
20750         * config/mcore/mcore.h: Likewise.
20751         * config/h8300/h8300.h: Likewise.
20752         * config/bfin/bfin.h: Likewise.
20753
20754         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
20755         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
20756
20757 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
20758
20759         * double-int.h (tree_to_double_int): Remove macro.
20760         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
20761         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20762         (tree_to_double_int): New function.
20763         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
20764         Move ...
20765         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
20766
20767 2010-05-03  Richard Guenther  <rguenther@suse.de>
20768
20769         PR tree-optimization/43971
20770         * tree-ssa-structalias.c (get_constraint_for_1): Fix
20771         constraints in the !flag_delete_null_pointer_checks case.
20772
20773 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
20774
20775         PR debug/43972
20776         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
20777         result mode matches original rtl mode.
20778
20779 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
20780
20781         PR target/43888
20782         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
20783
20784 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20785
20786         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
20787         when processing flag options.
20788
20789 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20790
20791         * gcov-iov.c (main): Change format string placeholder
20792         from %#08x to 0x%08x.
20793         * genchecksum.c (dosum): Change format string placeholder
20794         from %#02x to 0x%02x.
20795
20796 2010-05-02  Richard Guenther  <rguenther@suse.de>
20797
20798         PR tree-optimization/43879
20799         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
20800
20801 2010-05-02  Bruno Haible  <bruno@clisp.org>
20802
20803         * doc/extend.texi (Function Attributes): Fix a typo.
20804
20805 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20806
20807         Revert:
20808         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
20809         placeholder from 0x%x to %#x.
20810         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20811         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
20812         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
20813         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
20814         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
20815         * config/i386/i386.c (ix86_target_string): Ditto.
20816         * config/i386/i386.c (output_pic_addr_const): Ditto.
20817         (print_operand): Ditto.
20818
20819 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
20820
20821         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
20822         placeholder from 0x%x to %#x.
20823         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
20824         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
20825         (ASM_OUTPUT_DEBUG_DATA): Ditto.
20826         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
20827         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
20828         * optc-gen.awk: Ditto.
20829         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
20830         (HOST_WIDE_INT_PRINT_HEX): Ditto.
20831         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
20832         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
20833
20834 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
20835
20836         * target.h (struct calls): Add function_value_regno_p field.
20837         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
20838         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
20839         * targhooks.c (default_function_value_regno_p): New function.
20840         * targhooks.h (default_function_value_regno_p): Declare function.
20841         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
20842         * builtins.c. (apply_result_size): (Ditto.).
20843         * combine.c. (likely_spilled_retval_p): (Ditto.).
20844         * mode-switching.c. Include 'target.h'.
20845         (create_pre_exit): Use function_value_regno_p hook.
20846         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
20847         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
20848         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
20849
20850         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
20851         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
20852         (ix86_function_value_regno_p): Declare as static, change argument
20853         type to const unsigned int.
20854         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
20855
20856 2010-05-01  Richard Guenther  <rguenther@suse.de>
20857
20858         PR tree-optimization/43949
20859         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
20860         types.
20861         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
20862
20863 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
20864
20865         * rtl.h (CONST_DOUBLE_P): Define.
20866         (rtx_to_double_int): Declare.
20867         * emit-rtl.c (rtx_to_double_int): New function.
20868         * dwarf2out.c (insert_double): New function.
20869         (loc_descriptor, add_const_value_attribute): Clean up, use
20870         rtx_to_double_int and insert_double functions.
20871
20872 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
20873
20874         * doc/extend.texi (Inline): Add missing return keyword to examples.
20875         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
20876         "command-line".
20877
20878 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
20879
20880         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
20881         the variable part of the offset as well.  Use highest_pow2_factor for
20882         all alignment checks.
20883
20884 2010-04-30  Richard Guenther  <rguenther@suse.de>
20885
20886         PR tree-optimization/43879
20887         * tree-ssa-structalias.c (type_could_have_pointers): Functions
20888         can have pointers.
20889
20890 2010-04-30  Jan Hubicka  <jh@suse.cz>
20891
20892         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
20893         varpool.
20894         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
20895
20896 2010-04-30  Jan Hubicka  <jh@suse.cz>
20897
20898         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
20899         New.
20900         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
20901         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
20902         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
20903         cgraph_node_set_needs_ltrans_p): Remove.
20904
20905 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
20906
20907         * sdbout.c: Include vec.h, do not include varray.h.
20908         (deferred_global_decls, sdbout_global_decl,
20909         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
20910         * toplev.c: Do not include varray.h.
20911         (dump_memory_report): Do not dump VARRAY statistics.
20912         * gengtype.c (open_base_file): Ignore varray.h.
20913         * Makefile.in: Update for abovementioned changes.
20914         Remove all traces of varray.c and varray.h.
20915         * varray.c: Remove file.
20916         * varray.h: Remove file.
20917
20918 2010-04-30  Jan Hubicka  <jh@suse.cz>
20919
20920         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
20921         references.
20922
20923 2010-04-30  Jan Hubicka  <jh@suse.cz>
20924
20925         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
20926         needed.
20927
20928 2010-04-30  Richard Guenther  <rguenther@suse.de>
20929
20930         * tree-ssa-structalias.c (get_constraint_for_1): Generate
20931         constraints for CONSTRUCTOR.
20932
20933 2010-04-30  Richard Guenther  <rguenther@suse.de>
20934
20935         PR lto/43946
20936         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
20937         first after all lowering passes.
20938
20939 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
20940
20941         * toplev.c: Include varray.h for statistics dumping.
20942         * tree.h: Do not declare varray_head_tag.
20943         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
20944         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
20945         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
20946         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
20947         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
20948         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
20949         c-common.c, c-common.h, reg-stack.c, basic-block.h,
20950         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
20951         include varray.h.
20952         * Makefile.in: Update for abovementioned changes.
20953
20954 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
20955
20956         PR debug/43942
20957         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
20958
20959 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
20960
20961         * config/picochip/picochip.c (picochip_legitimize_address): Define.
20962         Use this function to do machine-specific conversion.
20963         (picochip_legitimize_reload_address): Likewise.
20964         (picochip_legitimate_address_p): Check valid base register only if
20965         strict.
20966         (picochip_check_conditional_copy): Check for modw only if opnd is
20967         register.
20968         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
20969         to call the function in c.
20970         * config/picochip/picochip-protos.h
20971         (picochip_legitimize_reload_address): Define.
20972         * config/picochip/picochip.md (supported_compare1): Define.
20973
20974 2010-04-30  Jan Hubicka  <jh@suse.cz>
20975
20976         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
20977         (cgraph_global_info): Remove inlined.
20978         (LTO_cgraph_tag_names): Remove.
20979         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
20980         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
20981         simplify cgraph tags and document.
20982         (lto_output_node): Use only LTO_cgraph_unavail_node and
20983         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
20984         for_functions_valid, global info, process and output flags.
20985         (input_overwrite_node): Initialize estimated stack size and
20986         estimated growth.  Do not read flags we no longer store.
20987         (input_node): Likewise do not read info no longer stored.
20988         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
20989         flag.
20990
20991 2010-04-30  Richard Guenther  <rguenther@suse.de>
20992
20993         PR tree-optimization/43879
20994         * tree-ssa-structalias.c (get_constraint_for_1): Properly
20995         handle non-zero initializers.
20996
20997 2010-04-30  Richard Guenther  <rguenther@suse.de>
20998
20999         * builtins.c (fold_builtin_1): Delete free (0).
21000
21001 2010-04-29  Jan Hubicka  <jh@suse.cz>
21002
21003         * gengtype.c (open_base_files): Add lto-streamer.h
21004         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21005         (pass_ipa_cp): GGC collect.
21006         * toplev. (compile_file): Do not output symbols.
21007         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21008         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21009         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21010         * lto-section-in.c: Include ggc.h
21011         (lto_new_in_decl_state): Alloc in GGC.
21012         (lto_delete_in_decl_state): Likewise.
21013         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21014         Collect.
21015
21016 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21017
21018         PR target/42895
21019         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21020         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21021         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21022         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21023         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21024         account only if HONOR_REG_ALLOC_ORDER is not defined.
21025         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21026         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21027
21028 2010-04-29  Jon Grant  <04@jguk.org>
21029
21030         * collect2.c (vflag): Change type from int to bool.
21031         (debug): Likewise.
21032         (helpflag): New global bool.
21033         (main): Set vflag and debug with boolean, not integer truth values.
21034         Accept new "--help" option and output usage text if found.
21035         * collect2.h (vflag): Update prototype.
21036         (debug): Likewise.
21037
21038 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21039
21040         PR bootstrap/43936
21041         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21042
21043 2010-04-29  Richard Guenther  <rguenther@suse.de>
21044
21045         PR bootstrap/43935
21046         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21047         with ATTRIBUTE_UNUSED.
21048
21049 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21050
21051         PR target/43921
21052         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21053         INSN_P with NONDEBUG_INSN_P.
21054         (distance_non_agu_define): Likewise.
21055         (distance_agu_use): Likewise.
21056
21057 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21058
21059         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21060         PR bootstrap/43858
21061         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21062         test_set.
21063
21064 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21065
21066         * plugin.h (invoke_plugin_callbacks): New inline function.
21067         * plugin.c (flag_plugin_added): New global flag.
21068         (add_new_plugin): Initialize above flag.
21069         (invoke_plugin_callbacks): Rename to ...
21070         (invoke_plugin_callbacks_full): ... this.
21071
21072 2010-04-28  Jan Hubicka  <jh@suse.cz>
21073
21074         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21075         (lto_varpool_replace_node): New.
21076         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21077         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21078         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21079         * cgraph.h (varpool_node_ptr): New type.
21080         (varpool_node_ptr): New vector.
21081         (varpool_node_set_def): New structure.
21082         (varpool_node_set): New type.
21083         (varpool_node_set): New vector.
21084         (varpool_node_set_element_def): New structure.
21085         (varpool_node_set_element, const_varpool_node_set_element): New types.
21086         (varpool_node_set_iterator): New type.
21087         (varpool_node): Add prev pointers, add used_from_other_partition,
21088         in_other_partition.
21089         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21090         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21091         varpool_get_node, varpool_remove_node): Declare.
21092         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21093         varpool_node_set_size): New inlines.
21094         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21095         * tree-pass.h (varpool_node_set_def): Forward declare.
21096         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21097         (ipa_write_optimization_summaries): Update prototype.
21098         * ipa-cp.c (ipcp_write_summary): Update.
21099         * ipa-reference.c (ipa_reference_write_summary): Update.
21100         * lto-cgraph.c (lto_output_varpool_node): New static function.
21101         (output_varpool): New function.
21102         (input_varpool_node): New static function.
21103         (input_varpool_1): New function.
21104         (input_cgraph): Input varpool.
21105         * ipa-pure-const.c (pure_const_write_summary): Update.
21106         * lto-streamer-out.c (lto_output): Update, output varpool too.
21107         (write_global_stream): Kill WPA hack.
21108         (produce_asm_for_decls): Update.
21109         (output_alias_pair_p): Handle variables.
21110         (output_unreferenced_globals): Output only needed partition of varpool.
21111         * ipa-inline.c (inline_write_summary): Update.
21112         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21113         cgraph.
21114         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21115         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21116         varpool_node_set_new, varpool_node_set_add,
21117         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21118         debug_varpool_node_set): New functions.
21119         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21120         (execute_one_pass): Process new decls too.
21121         (ipa_write_summaries_2): Pass around vsets.
21122         (ipa_write_summaries_1): Likewise.
21123         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21124         to add.
21125         (ipa_write_optimization_summaries_1): Pass around vsets.
21126         (ipa_write_optimization_summaries): Likewise.
21127         * varpool.c (varpool_get_node): New.
21128         (varpool_node): Update doubly linked lists.
21129         (varpool_remove_node): New.
21130         (dump_varpool_node): More dumping.
21131         (varpool_enqueue_needed_node): Update doubly linked lists.
21132         (decide_is_variable_needed): Kill ltrans hack.
21133         (varpool_finalize_decl): Kill lto hack.
21134         (varpool_assemble_decl): Skip decls in other partitions.
21135         (varpool_assemble_pending_decls): Update doubly linkes lists.
21136         (varpool_empty_needed_queue): Likewise.
21137         (varpool_extra_name_alias): Likewise.
21138         * lto-streamer.c (lto_get_section_name): Add vars section.
21139         * lto-streamer.h (lto_section_type): Update.
21140         (output_varpool, input_varpool): Declare.
21141
21142 2010-04-28  Mike Stump  <mikestump@comcast.net>
21143
21144         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21145
21146 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21147
21148         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21149         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21150         (lto_input_ts_type_tree_pointers): Likewise.
21151         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21152         (lto_output_ts_type_tree_pointers): Likewise.
21153
21154 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21155
21156         Uniquization of constants at the Tree level
21157         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21158         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21159         bit to the end.
21160         (tree_output_constant_def): Declare.
21161         * gimplify.c (gimplify_init_constructor): When using block copy, first
21162         uniquize the constant constructor on the RHS.
21163         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21164         DECL_IN_CONSTANT_POOL flag.
21165         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21166         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21167         constant pool.
21168         (assemble_variable): Deal with symbols belonging to the tree constant
21169         pool.
21170         (get_constant_section): Add ALIGN parameter and simplify.
21171         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21172         (assemble_constant_contents): Use the expression of the VAR_DECL.
21173         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21174         (tree_output_constant_def): New global function.
21175         (mark_constant): Use the expression of the VAR_DECL.
21176         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21177         its expression.
21178         (output_object_block): Likewise and assemble the expression.
21179
21180 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21181
21182         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21183         hash_tree, eq_tree): New tree hash table.
21184         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21185         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21186         lto_orig_address_remove): Reimplement.
21187
21188 2010-04-28  Xinliang David Li  <davidxl@google.com>
21189
21190         PR c/42643
21191         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
21192         (compute_uninit_opnds_pos): New function.
21193         (is_non_loop_exit_postdominating): New function.
21194         (compute_control_dep_chain): New function.
21195         (find_pdom): New function.
21196         (convert_control_dep_chain_into_preds): New function.
21197         (find_predicates): New function.
21198         (find_control_equiv_block): New function.
21199         (collect_phi_def_edges): New function.
21200         (find_def_preds): New function.
21201         (find_dom): New function.
21202         (dump_predicates): New function.
21203         (get_cmp_code): New function.
21204         (is_value_included_in): New function.
21205         (find_matching_predicate_in_rest_chains): New function.
21206         (use_pred_not_overlap_with_undef_path_pred): New function.
21207         (is_use_properly_guarded): New function.
21208         (normalize_cond_1): New function.
21209         (is_and_or_or): New function.
21210         (normalize_cond): New function.
21211         (is_gcond_subset_of): New function.
21212         (is_subset_of_any): New function.
21213         (is_or_set_subset_of): New function.
21214         (is_and_set_subset_of): New function.
21215         (is_norm_cond_subset_of): New function.
21216         (is_pred_expr_subset_of): New function.
21217         (is_pred_chain_subset_of): New function.
21218         (is_included_in): New function.
21219         (is_superset_of): New function.
21220         (find_uninit_use): New function.
21221         (warn_uninitialized_phi): New function.
21222         (compute_possibly_undefined_names): New function.
21223         (ssa_undefined_value_p): New function.
21224         (execute_late_warn_uninitialized): New function.
21225         * tree-ssa.c (ssa_undefined_value_p): Removed.
21226         (warn_uninit): Changed to extern.
21227         (warn_uninitialized_phi): Removed.
21228         (warn_uninitialized_vars): Changed to extern.
21229         (execute_late_warn_uninitialized): Removed
21230         * tree-flow.h: Add new prototypes.
21231         * timevar.def: Add new time variable.
21232         * Makefile.in: Add new build file.
21233
21234 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
21235
21236         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
21237         type if available.
21238
21239 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21240
21241         PR target/22224
21242         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
21243
21244 2010-04-28  Martin Jambor  <mjambor@suse.cz>
21245
21246         * cgraph.h (struct cgraph_node): New field indirect_calls.
21247         (struct cgraph_indirect_call_info): New type.
21248         (struct cgraph_edge): Removed field indirect_call. New fields
21249         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
21250         (cgraph_create_indirect_edge): Declare.
21251         (cgraph_make_edge_direct): Likewise.
21252         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
21253         * ipa-prop.h (struct ipa_param_call_note): Removed.
21254         (struct ipa_node_params): Removed field param_calls.
21255         (ipa_create_all_structures_for_iinln): Declare.
21256         * cgraph.c: Described indirect edges and uids in initial comment.
21257         (cgraph_add_edge_to_call_site_hash): New function.
21258         (cgraph_edge): Search also among the indirect edges, use
21259         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
21260         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
21261         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
21262         site hash.
21263         (initialize_inline_failed): Assign a reason to indirect edges.
21264         (cgraph_create_edge_1): New function.
21265         (cgraph_create_edge): Moved some functionality to
21266         cgraph_create_edge_1.
21267         (cgraph_create_indirect_edge): New function.
21268         (cgraph_edge_remove_callee): Add an assert checking for
21269         non-indirectness.
21270         (cgraph_edge_remove_caller): Special-case indirect edges.
21271         (cgraph_remove_edge): Likewise.
21272         (cgraph_set_edge_callee): New function.
21273         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
21274         (cgraph_make_edge_direct): New function.
21275         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
21276         the declaration of the call statement matches.
21277         (cgraph_node_remove_callees): Special-case indirect edges.
21278         (cgraph_clone_edge): Likewise.
21279         (cgraph_clone_node): Clone also the indirect edges.
21280         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
21281         indirect_call, dump count of indirect_calls edges.
21282         * ipa-prop.c (iinlining_processed_edges): New variable.
21283         (ipa_note_param_call): Create indirect edges instead of
21284         creating notes.  New parameter node.
21285         (ipa_analyze_call_uses): New parameter node, pass it on to
21286         ipa_note_param_call.
21287         (ipa_analyze_stmt_uses): Likewise.
21288         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
21289         (print_edge_addition_message): Work on edges rather than on notes.
21290         (update_call_notes_after_inlining): Likewise, renamed to
21291         update_indirect_edges_after_inlining.
21292         (ipa_create_all_structures_for_iinln): New function.
21293         (ipa_free_node_params_substructures): Do not free notes.
21294         (ipa_edge_duplication_hook): Propagate bits within
21295         iinlining_processed_edges bitmap.
21296         (ipa_node_duplication_hook): Do not duplicate notes.
21297         (free_all_ipa_structures_after_ipa_cp): Renamed to
21298         ipa_free_all_structures_after_ipa_cp.
21299         (free_all_ipa_structures_after_iinln): Renamed to
21300         ipa_free_all_structures_after_iinln.
21301         (ipa_write_param_call_note): Removed.
21302         (ipa_read_param_call_note): Removed.
21303         (ipa_write_indirect_edge_info): New function.
21304         (ipa_read_indirect_edge_info): Likewise.
21305         (ipa_write_node_info): Do not stream notes, do stream information
21306         in indirect edges.
21307         (ipa_read_node_info): Likewise.
21308         (lto_ipa_fixup_call_notes): Removed.
21309         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
21310         * ipa-inline.c (pass_ipa_inline): Likewise.
21311         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
21312         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
21313         * tree-inline.c (copy_bb): Removed an unnecessary double check for
21314         is_gimple_call.
21315         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
21316         edges.
21317         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
21318         (output_cgraph): Stream also indirect edges.
21319         (lto_output_edge): Added capability to stream indirect edges.
21320         (input_edge): Likewise.
21321         (input_cgraph_1): Likewise.
21322         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
21323         of indirect edges.
21324
21325 2010-04-28  Richard Guenther  <rguenther@suse.de>
21326
21327         PR tree-optimization/43879
21328         PR tree-optimization/43909
21329         * tree-ssa-structalias.c (struct variable_info): Add
21330         only_restrict_pointers flag.
21331         (new_var_info): Initialize it.  Increment stats.total_vars here.
21332         (create_function_info_for): Do not increment stats.total_vars here.
21333         (get_function_part_constraint): Fix build with C++.
21334         (insert_into_field_list): Remove.
21335         (push_fields_onto_fieldstack): Properly merge fields.
21336         (create_variable_info_for): Split and simplify.
21337         (create_variable_info_for_1): New piece.
21338         (intra_create_variable_infos): Properly make restrict constraints
21339         from parameters.
21340
21341 2010-04-28  Richard Guenther  <rguenther@suse.de>
21342
21343         PR c++/43880
21344         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
21345
21346 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21347             Jan Hubicka  <hubicka@ucw.cz>
21348
21349         * doc/invoke.texi (-Wsuggest-attribute=const,
21350         -Wsuggest-attribute=pure): Document.
21351         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
21352         (function_always_visible_to_compiler_p,
21353         suggest_attribute, warn_function_pure, warn_function_const):
21354         New functions.
21355         (check_call): Improve debug info.
21356         (analyze_function): Do not check availability.
21357         (add_new_function): Check availability.
21358         (propagate): Output warnings.
21359         (skip_function_for_local_pure_const): New function.
21360         (local_pure_const): Use it; output warnings.
21361         * common.opt (Wsuggest-attribute=const,
21362         Wsuggest-attribute=pure): New.
21363
21364 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21365
21366         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
21367         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
21368         or DW_CFA_def_cfa_offset{,_sf}.
21369
21370 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21371
21372         * tree.h: Fix truncated long macros.
21373
21374 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
21375
21376         * collect2.c (TARGET_64BIT): Redefine to target's default.
21377         * tlink.c: Likewise.
21378         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
21379         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
21380         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
21381         for underscoring __USER_LABEL_PREFIX__.
21382         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
21383         (SUB_LINK_ENTRY32): New.
21384         (SUB_LINK_ENTRY64): New.
21385         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
21386         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
21387         (SUB_LINK_ENTRY64): New.
21388         (SUB_LINK_ENTRY): New.
21389         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
21390         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
21391         x64 target is choosen.
21392         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
21393         * configure: Regenerated.
21394         * configure.ac (leading-mingw64-underscores): Option added.
21395
21396 2010-04-27  Jan Hubicka  <jh@suse.cz>
21397
21398         * doc/invoke.texi (-fipa-profile): Document.
21399         * opts.c (decode_options): Enable ipa-profile at -O1.
21400         * timevar.def (TV_IPA_PROFILE): Define.
21401         * common.opt (fipa-profile): Add.
21402         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
21403         flag for clones.
21404         (cgraph_propagate_frequency): Handle only local ones.
21405         * tree-pass.h (pass_ipa_profile): Declare.
21406         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
21407         (pass_ipa_profile): Use TV_IPA_PROFILE.
21408         * ipa.c (ipa_profile): New function.
21409         (gate_ipa_profile): Likewise.
21410         (pass_ipa_profile): New global variable.
21411         * passes.c (pass_ipa_profile): New.
21412
21413 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
21414
21415         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
21416
21417 2010-04-27  Martin Jambor  <mjambor@suse.cz>
21418
21419         PR middle-end/43812
21420         * ipa.c (dissolve_same_comdat_group_list): New function.
21421         (function_and_variable_visibility): Call
21422         dissolve_same_comdat_group_list when comdat group contains external or
21423         newly local nodes.
21424         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
21425         lists are circular and that they contain only DECL_ONE_ONLY nodes.
21426
21427 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21428
21429         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
21430         (const_hash_1) <VECTOR_CST>: New case.
21431         (compare_constant) <VECTOR_CST>: Likewise.
21432         <ADDR_EXPR>: Deal with LABEL_REFs.
21433         (copy_constant) <VECTOR_CST>: New case.
21434
21435 2010-04-27  Jan Hubicka  <jh@suse.cz>
21436
21437         * cgraph.c (cgraph_propagate_frequency): New function.
21438         * cgraph.h (cgraph_propagate_frequency): Declare.
21439         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
21440         cgraph_propagate_frequency.
21441
21442 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
21443
21444         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
21445
21446 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
21447
21448         PR target/40657
21449         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
21450         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
21451         here to determine which regs to push and how much stack to reserve.
21452
21453 2010-04-27  Jie Zhang  <jie@codesourcery.com>
21454
21455         * doc/gimple.texi (gimple_statement_with_ops): Remove
21456         addresses_taken field.
21457         (gimple_statement_with_memory_ops): Likewise.
21458
21459 2010-04-27  Jan Hubicka  <jh@suse.cz>
21460
21461         * tree-inline.c (eni_inlining_weights): Remove.
21462         (estimate_num_insns): Special case more builtins.
21463
21464 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
21465
21466         PR c/32207
21467         * c-typeck.c (build_binary_op): Move forward check for comparison
21468         pointer with null pointer constant and adjust the diagnostic message.
21469
21470 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
21471
21472         PR lto/42776
21473         * configure.ac (gcc_cv_as_section_has_align): Set if installed
21474         binutils supports extended .section directive needed by LTO, or
21475         warn if older binutils found.
21476         (LTO_BINARY_READER): New AC_SUBST'd variable.
21477         (LTO_USE_LIBELF): Likewise.
21478         * config.gcc (lto_binary_reader): New target-specific configure
21479         variable.
21480         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
21481         (LTO_USE_LIBELF): Likewise.
21482         * configure: Regenerate.
21483
21484         * collect2.c (is_elf): Rename from this ...
21485         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
21486          object files in addition to ELF-formatted ones.
21487         (scan_prog_file): Caller updated.  Also allow for LTO info marker
21488         symbol to be prefixed or not by an extra underscore.
21489
21490         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
21491         * config/i386/winnt.c: Also #include lto-streamer.h
21492         (i386_pe_asm_named_section): Specify 1-byte section alignment for
21493         LTO named sections.
21494         (i386_pe_asm_output_aligned_decl_common): Add comment.
21495         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
21496
21497 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
21498
21499         PR target/43889
21500         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
21501         Add missing earlyclobber for second alternative.
21502
21503 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
21504
21505         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
21506         bits for artificial defs at the top of the block.
21507         * fwprop.c (single_def_use_enter_block): Don't call it.
21508
21509 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
21510
21511         PR 43715
21512         * configure.ac: Use "$gcc_cv_nm -g" on darwin
21513         instead of "$gcc_cv_objdump -T".
21514         Use "-undefined dynamic_lookup" on darwin.
21515         * configure: Regenerate.
21516
21517 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
21518
21519         PR c/43893
21520         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
21521
21522 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
21523
21524         * c-parser.c (struct c_token): Move location field up.
21525         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
21526         (struct c_declspecs): Convert typespec_word, storage_class, and
21527         default_int_p into bitfields.
21528         (struct c_declarator): Move loc field up.
21529
21530 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
21531
21532         * cfgloop.h (struct loop): Move can_be_parallel field up.
21533         * ipa-prop.h (struct ip_node_params): Move bitfields up.
21534         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
21535         down.
21536         (struct iv_cand): Convert pos field into a bitfield.
21537         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
21538         field up.
21539         (struct _stmt_vec_info): Shuffle fields for better packing.
21540
21541 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
21542
21543         * varasm.c (IN_NAMED_SECTION): Remove guard.
21544         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
21545         (IN_NAMED_SECTION_P): ...this.
21546         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
21547         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
21548
21549 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
21550
21551         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
21552         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
21553         of shadowing it.  Fix comments.
21554
21555 2010-04-26  Jan Hubicka  <jh@suse.cz>
21556
21557         * cgraph.c (cgraph_create_node): Set node frequency to normal.
21558         (cgraph_clone_node): Copy function frequency.
21559         * cgraph.h (node_frequency): New enum
21560         (struct cgraph_node): Add.
21561         * final.c (rest_of_clean_state): Update.
21562         * lto-cgraph.c (lto_output_node): Output node frequency.
21563         (input_overwrite_node): Input node frequency.
21564         * tre-ssa-loop-ivopts (computation_cost): Update.
21565         * lto-streamer-out.c (output_function): Do not output function
21566         frequency.
21567         * predict.c (maybe_hot_frequency_p): Update and handle functions
21568         executed once.
21569         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
21570         attribute lookup.
21571         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
21572         (compute_function_frequency): Set noreturn functions to be executed
21573         once.
21574         (choose_function_section): Update.
21575         * lto-streamer-in.c (input_function): Do not input function frequency.
21576         * function.c (allocate_struct_function): Do not initialize function
21577         frequency.
21578         * function.h (function_frequency): Remove.
21579         (struct function): Remove function frequency.
21580         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
21581         (try_update): Update.
21582         * tree-inline.c (initialize_cfun): Do not update function frequency.
21583         * passes.c (pass_init_dump_file): Update.
21584         * i386.c (ix86_compute_frame_layout): Update.
21585         (ix86_pad_returns): Update.
21586
21587 2010-04-26  Jie Zhang  <jie@codesourcery.com>
21588
21589         PR tree-optimization/43833
21590         * tree-vrp.c (range_int_cst_p): New.
21591         (range_int_cst_singleton_p): New.
21592         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
21593         when both operands are constants.  Use range_int_cst_p in
21594         BIT_IOR_EXPR case.
21595
21596 2010-04-26  Jan Hubicka  <jh@suse.cz>
21597
21598         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
21599
21600 2010-04-26  Richard Guenther  <rguenther@suse.de>
21601
21602         PR lto/43080
21603         * gimple.c (gimple_decl_printable_name): Deal gracefully
21604         with a NULL DECL_NAME.
21605
21606 2010-04-26  Richard Guenther  <rguenther@suse.de>
21607
21608         PR lto/42425
21609         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
21610         if emitting debug information and it is either a function
21611         or a namespace decl.
21612
21613 2010-04-26  Ira Rosen  <irar@il.ibm.com>
21614
21615         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
21616         determine if the statement is vectorizable, and a macro to access it.
21617         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21618         Skip statements that can't be vectorized. If the analysis fails,
21619         mark the statement as unvectorizable if vectorizing basic block.
21620         (vect_compute_data_refs_alignment): Likewise.
21621         (vect_verify_datarefs_alignment): Skip statements marked as
21622         unvectorizable. Add print.
21623         (vect_analyze_group_access): Skip statements that can't be
21624         vectorized. If the analysis fails, mark the statement as
21625         unvectorizable if vectorizing basic block.
21626         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
21627         * tree-vect-stmts.c (vectorizable_store): Fix the number of
21628         generated stmts for SLP.
21629         (new_stmt_vec_info): Initialize the new field.
21630         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
21631         statements marked as unvectorizable.
21632
21633 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
21634
21635         * c-common.c (flag_isoc1x): New.
21636         (flag_isoc99): Update comment.
21637         * c-common.h (flag_isoc1x): New.
21638         (flag_isoc99): Update comment.
21639         * c-cppbuiltin.c (builtin_define_float_constants): Also define
21640         __<type>_DECIMAL_DIG__.
21641         * c-opts.c (set_std_c1x): New.
21642         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
21643         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
21644         * c.opt (-std=c1x, -std=gnu1x): New options.
21645         * doc/cpp.texi: Mention -std=c1x.
21646         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
21647         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
21648         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
21649         * doc/standards.texi: Mention C1X.
21650         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
21651         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
21652         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
21653         Define for C1X.
21654
21655 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
21656
21657         * config/i386/gmon-sol2.c (_mcleanup): Change format string
21658         placeholder from 0x%x to %#x.
21659         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21660         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21661         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21662         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21663         * config/i386/i386.c (ix86_target_string): Ditto.
21664         (output_pic_addr_const): Ditto.
21665         (print_operand): Ditto.
21666
21667 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
21668
21669         * combine.c (find_split_point): Add third argument.  Use it
21670         to find nested multiply-accumulate instructions.  Adjust calls.
21671         (try_combine): Adjust call to find_split_point.
21672
21673 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
21674
21675         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
21676
21677 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
21678
21679         PR tree-optimization/41442
21680         * fold-const.c (merge_truthop_with_opposite_arm): New function.
21681         (fold_binary_loc): Call it.
21682
21683 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21684
21685         * toplev.c (general_init): Set default for fdiagnostics-show-option.
21686         * opts.c (common_handle_option): Allow disabling it.
21687         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
21688
21689 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
21690
21691         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
21692         between modes if both types are integral.
21693
21694 2010-04-23  Richard Guenther  <rguenther@suse.de>
21695
21696         PR tree-optimization/43572
21697         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
21698
21699 2010-04-23  Richard Guenther  <rguenther@suse.de>
21700
21701         PR lto/43455
21702         * tree-inline.c (tree_can_inline_p): Also check compatibility
21703         of return types.
21704
21705 2010-04-23  Martin Jambor  <mjambor@suse.cz>
21706
21707         PR tree-optimization/43846
21708         * tree-sra.c (struct access): New flag grp_assignment_read.
21709         (build_accesses_from_assign): Set grp_assignment_read.
21710         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
21711         (enum mark_read_status): New type.
21712         (analyze_access_subtree): Propagate grp_assignment_read, create
21713         accesses also if both direct_read and root->grp_assignment_read.
21714
21715 2010-04-23  Martin Jambor  <mjambor@suse.cz>
21716
21717         PR middle-end/43835
21718         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
21719         function does not have type attributes.
21720
21721 2010-04-23  Richard Guenther  <rguenther@suse.de>
21722
21723         PR lto/42653
21724         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
21725         of FUNCTION_DECLs.
21726
21727 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21728
21729         * sese.h (create_if_region_on_edge): Remove.
21730
21731         * sese.c (create_if_region_on_edge): Make static.
21732
21733         * tree-inline.c: Do not include ggc.h.
21734
21735         * expr.c: Do not include ggc.h.
21736
21737         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
21738         dependencies.
21739
21740 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
21741
21742         PR target/43744
21743         * config/sh/sh.c (find_barrier): Don't emit a constant pool
21744         in the middle of insns for casesi_worker_2.
21745
21746 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
21747
21748         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
21749
21750 2010-04-22  Ira Rosen  <irar@il.ibm.com>
21751
21752         PR tree-optimization/43842
21753         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
21754         loop unrolling in update of exit phis. Fix comment.
21755         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
21756         least two reduction statements in the loop before starting SLP
21757         analysis.
21758
21759 2010-04-22  Nick Clifton  <nickc@redhat.com>
21760
21761         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
21762
21763 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
21764
21765         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
21766         to simplify a + ~a.
21767
21768 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21769
21770         * tree-parloops.c (loop_parallel_p): New argument
21771         parloop_obstack.  Pass it down.
21772         (parallelize_loops): New variable parloop_obstack.  Initialize it,
21773         pass it down, free it.
21774
21775         * tree-loop-linear.c (linear_transform_loops): Pass down
21776         lambda_obstack.
21777
21778         * tree-data-ref.h (lambda_compute_access_matrices): New argument
21779         of type struct obstack *.
21780
21781         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
21782         scratch_obstack.  Initialize it, pass down, free it.
21783
21784         * lambda.h (lambda_loop_new): Remove.
21785         (lambda_matrix_new, lambda_matrix_inverse)
21786         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
21787         argument of type struct obstack *.
21788
21789         * lambda-trans.c (lambda_trans_matrix_new): New argument
21790         lambda_obstack.  Pass it down, use obstack allocation for ret.
21791         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
21792         it down.
21793
21794         * lambda-mat.c (lambda_matrix_get_column)
21795         (lambda_matrix_project_to_null): Remove.
21796         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
21797         allocation for mat.
21798         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
21799         lambda_obstack.
21800
21801         * lambda-code.c (lambda_loop_new): New function.
21802         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
21803         (lambda_compute_auxillary_space, lambda_compute_target_space)
21804         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
21805         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
21806         (build_access_matrix): New argument lambda_obstack.  Use obstack
21807         allocation for am.
21808         (lambda_compute_step_signs, lambda_compute_access_matrices): New
21809         argument lambda_obstack.  Pass it down.
21810
21811 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
21812
21813         * optabs.h (expand_widening_mult): Declare.
21814
21815 2010-04-22  Richard Guenther  <rguenther@suse.de>
21816
21817         PR tree-optimization/43845
21818         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
21819         lookup the CALL_EXPR function and arguments.
21820
21821 2010-04-22  Nick Clifton  <nickc@redhat.com>
21822
21823         * config/stormy16/stormy16.c
21824         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
21825         * config/stormy16/stormy16.h: Tidy up formatting.
21826         (DONT_USE_BUILTIN_SETJMP): Remove definition.
21827         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
21828         (ineqbranchsi): Delete pattern.
21829         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
21830         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
21831         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
21832         stormy16-lib2-ucmpsi2.c.
21833
21834 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
21835
21836         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
21837         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
21838         extra set merge_set_noclobber, and use it to relax the final test
21839         slightly.
21840         * df.h (df_simulate_find_noclobber_defs): Declare.
21841         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
21842         conditional defs.
21843         (df_simulate_find_noclobber_defs): New function.
21844
21845 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
21846
21847         * config/i386/i386.md: Use {} around multi-line preparation statements.
21848
21849 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21850
21851         * c-tree.h (push_init_level, pop_init_level, set_init_index)
21852         (process_init_element): New argument of type struct obstack *.
21853
21854         * c-typeck.c (push_init_level, pop_init_level, set_designator)
21855         (set_init_index, set_init_label, set_nonincremental_init)
21856         (set_nonincremental_init_from_string, find_init_member)
21857         (output_init_element, output_pending_init_elements)
21858         (process_init_element): New argument braced_init_obstack.  Pass it
21859         down.
21860         (push_range_stack, add_pending_init): New argument
21861         braced_init_obstack.  Use obstack allocation.
21862
21863         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
21864         braced_init_obstack.  Pass it down.
21865         (c_parser_braced_init): New variables ret, braced_init_obstack.
21866         Initialize obstack, pass it down and finally free it.
21867
21868 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
21869
21870         PR middle-end/29274
21871         * tree-pass.h (pass_optimize_widening_mul): Declare.
21872         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
21873         gate_optimize_widening_mul): New static functions.
21874         (pass_optimize_widening_mul): New.
21875         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
21876         <case MULT_EXPR>: Remove support for widening multiplies.
21877         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
21878         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
21879         simplify_gen_unary rather than directly building extensions.
21880         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
21881         WIDEN_MULT_EXPR.
21882         * expmed.c (expand_widening_mult): New function.
21883         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
21884
21885 2010-04-21  Jan Hubicka  <jh@suse.cz>
21886
21887         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
21888         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
21889         * lto-wpa-fixup.c: Remove.
21890         * Makefile.in (lto-wpa-fixup.o): Remove.
21891         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
21892         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
21893         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
21894
21895 2010-04-21  Jan Hubicka  <jh@suse.cz>
21896
21897         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
21898         add write_optimization_summary, read_optimization_summary.
21899         (ipa_write_summaries_of_cgraph_node_set): Remove.
21900         (ipa_write_optimization_summaries): Declare.
21901         (ipa_read_optimization_summaries): Declare.
21902         * ipa-cp.c (pass_ipa_cp): Update.
21903         * ipa-reference.c (pass_ipa_reference): Update.
21904         * ipa-pure-const.c (pass_ipa_pure_const): Update.
21905         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
21906         Update.
21907         * ipa-inline.c (pass_ipa_inline): Update.
21908         * ipa.c (pass_ipa_whole_program): Update.
21909         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
21910         * passes.c (ipa_write_summaries_1): Do not test wpa.
21911         (ipa_write_optimization_summaries_1): New.
21912         (ipa_write_optimization_summaries): New.
21913         (ipa_read_summaries): Do not test ltrans.
21914         (ipa_read_optimization_summaries_1): New.
21915         (ipa_read_optimization_summaries): New.
21916
21917 2010-04-21  Jan Hubicka  <jh@suse.cz>
21918
21919         * lto-cgraph.c (lto_output_node): Do not output comdat groups
21920         for boundary nodes.
21921         (output_cgraph): Do not arrange comdat groups for boundary nodes.
21922
21923 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
21924
21925         PR debug/40040
21926         * dwarf2out.c (add_name_and_src_coords_attributes): Add
21927         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
21928
21929 2010-04-21  Jan Hubicka  <jh@suse.cz>
21930
21931         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
21932
21933 2010-04-21  Jan Hubicka  <jh@suse.cz>
21934
21935         * varpool.c (decide_is_variable_needed): Variable is always needed
21936         during ltrans.
21937
21938 2010-04-21  Jan Hubicka  <jh@suse.cz>
21939
21940         * opts.c (decode_options): Enable pure-const pass for whopr.
21941
21942 2010-04-21  Jan Hubicka  <jh@suse.cz>
21943
21944         * cgraph.c (dump_cgraph_node): Dump also assembler name.
21945         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
21946         at WPA dumping.
21947         (cgraph_decide_inlining): Do not expect callee to be removed in all
21948         cases.
21949
21950 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
21951
21952         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
21953
21954 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
21955
21956         * config/i386/i386.md (x86_shrd): Add athlon_decode and
21957         amdfam10_decode attributes.
21958
21959 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
21960
21961         PR middle-end/43570
21962         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
21963         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
21964         (lower_copyprivate_clauses): Use private var in outer
21965         context instead of original var.  Make sure the types
21966         are correct for VLAs.
21967
21968 2010-04-21  Richard Guenther  <rguenther@suse.de>
21969
21970         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
21971         to non-pointer objects.
21972
21973 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
21974
21975         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
21976         last chain entry if it starts with the still current label.
21977         (add_location_or_const_value_attribute): Check that
21978         loc_list->first->next is NULL instead of comparing ->first with ->last.
21979         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
21980         to add_var_loc_to_decl.
21981
21982         * dwarf2out.c (output_call_frame_info): For dw_cie_version
21983         >= 4 add also address size and segment size fields into CIE header.
21984
21985         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
21986         long as address size is the same as sizeof (void *) and
21987         segment size is 0.
21988         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
21989         address size or segment size is unexpected, return DW_EH_PE_omit.
21990         (classify_object_over_fdes): If get_cie_encoding returned
21991         DW_EH_PE_omit, return -1.
21992         (init_object): If classify_object_over_fdes returned -1,
21993         pretend there were no FDEs at all.
21994
21995 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
21996
21997         * config/i386/i386.md (bswap<mode>2): Macroize expander from
21998         bswap{si,di}2 using SWI48 mode iterator.
21999         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22000         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22001         set modrm attribute of bswap insn to 0 and remove length attribute.
22002         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22003         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22004         set mode attribute to <MODE> and remove length attribute.
22005
22006 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22007
22008         PR rtl-optimization/43520
22009         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22010         zero available registers.
22011
22012 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22013
22014         * builtins.c (fold_builtin_cproj): Fold more cases.
22015
22016 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22017
22018         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22019         (fold_builtin_1): Fold builtin cproj.
22020         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22021         Use ATTR_CONST_NOTHROW_LIST.
22022
22023 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22024
22025         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22026         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22027         ffsi2_no_cmove for !TARGET_CMOVE.
22028         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22029         (ffssi2): Remove expander.
22030         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22031         mode iterator.
22032         (ctz<mode>2): Ditto from ctz{si,di}2.
22033         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22034         mode iterator.
22035         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22036         mode iterator.
22037
22038 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22039
22040         * dwarf2out.c (AT_linkage_name): Define.
22041         (clone_as_declaration): Handle DW_AT_linkage_name.
22042         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22043         of DW_AT_MIPS_linkage_name.
22044         (move_linkage_attr): Likewise.
22045         (dwarf2out_finish): Likewise.
22046
22047 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22048
22049         PR middle-end/41952
22050         * fold-const.c (fold_comparison): New folding rule.
22051
22052 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22053
22054         * double-int.h (double_int_setbit): Declare.
22055         * double-int.c (double_int_setbit): New function.
22056         * rtl.h (immed_double_int_const): Declare.
22057         * emit-rtl.c (immed_double_int_const): New function.
22058         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22059         and immed_double_int_const functions.
22060         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22061         expand_copysign_bit): (Ditto.).
22062         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22063         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22064         * dojump.c (prefer_and_bit_test): (Ditto.).
22065         * expr.c (convert_modes, reduce_to_bit_field_precision,
22066         const_vector_from_tree): (Ditto.).
22067         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22068
22069 2010-04-20  Jan Hubicka  <jh@suse.cz>
22070
22071         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22072         (dump_cgraph_node): Dump new flags.
22073         * cgraph.h (struct cgraph_node): Add flags
22074         reachable_from_other_partition and in_other_partition.
22075         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22076         other partition can not be removed.
22077         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22078         the other partition must be output; silence sanity checking on
22079         leaking functions bodies from other paritition.
22080         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22081         (lto_output_node): Output new flags; do not sanity check that inline
22082         clones are output; drop lto_forced_extern_inline_p code; do not mock
22083         visibility flags at partition boundaries.
22084         (add_node_to): New function.
22085         (output_cgraph): Use it to sort functions so masters appear before
22086         clones.
22087         (input_overwrite_node): Input new flags.
22088         * passes.c (ipa_write_summaries): Do not call
22089         lto_new_extern_inline_states.
22090         * lto-section-out.c (forced_extern_inline,
22091         lto_new_extern_inline_states lto_delete_extern_inline_states,
22092         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22093         * lto-streamer.h (lto_new_extern_inline_states,
22094         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22095         lto_forced_extern_inline_p): Kill.
22096
22097 2010-04-20  Richard Guenther  <rguenther@suse.de>
22098
22099         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22100         from vars that can have pointers.
22101         (process_constraint): Dump useless constraints.
22102
22103 2010-04-20  Richard Guenther  <rguenther@suse.de>
22104
22105         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22106         (dump_sa_points_to_info): Remove asserts.
22107         (init_base_vars): nothing_id isn't an escape point nor does it
22108         have pointers.
22109
22110 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22111
22112         * tree.h (TYPE_REF_IS_RVALUE): Define.
22113         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22114         should_move_die_to_comdat, prune_unused_types_walk): Handle
22115         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22116         (modified_type_die, gen_reference_type_die): Emit
22117         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22118         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22119
22120 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22121
22122         PR target/43635
22123         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22124         calls for -fpic -m31 if they have been sibcall optimized.
22125
22126 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22127
22128         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22129         ar.lc fixed and call-used.
22130
22131         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22132
22133 2010-04-19  Jan Hubicka  <jh@suse.cz>
22134
22135         * opts.c (decode_options): Disable whpr incompatible passes.
22136         * lto/lto.c (lto_1_to_1_map): Skip clones.
22137         (read_cgraph_and_symbols): Do not mark everything as needed.
22138         (do_whole_program_analysis): Do map only after optimizing;
22139         set proper cgraph_state; use passmanager.
22140
22141 2010-04-19  DJ Delorie  <dj@redhat.com>
22142
22143         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22144         POINTER_PLUS_EXPR and fix them.
22145
22146 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22147
22148         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22149         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22150         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22151         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22152         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22153         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22154         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22155         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22156         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22157         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22158         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22159
22160 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22161
22162         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22163         (check_cond_move_block): Likewise.
22164         (cond_move_process_if_block): Likewise.
22165         (noce_find_if_block): Improve formatting.
22166         (find_if_header): Pass 0 to memset and tweak conditions.
22167         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22168
22169 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22170
22171         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22172         for -gdwarf-4.
22173
22174         PR middle-end/43337
22175         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22176         with non-local decl doesn't need chain.
22177
22178 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22179
22180         * ira-color.c (allocno_reload_assign): Avoid accumulating
22181         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22182
22183 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22184
22185         * gimple.h (create_tmp_reg): Declare.
22186         * gimplify.c (create_tmp_reg): New function.
22187         (gimplify_return_expr): Use create_tmp_reg.
22188         (gimplify_omp_atomic): Likewise.
22189         (gimple_regimplify_operands): Likewise.
22190         * tree-dfa.c (make_rename_temp): Likewise.
22191         * tree-predcom.c (predcom_tmp_var): Likewise.
22192         (reassociate_to_the_same_stmt): Likewise.
22193         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
22194         (get_replaced_param_substitute): Likewise.
22195         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
22196         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
22197         * tree-ssa-pre.c (get_representative_for): Likewise.
22198         (create_expression_by_pieces): Likewise.
22199         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
22200         (create_tailcall_accumulator): Likewise.
22201
22202 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22203
22204         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
22205         new_stmt.
22206         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
22207
22208 2010-04-19  Richard Guenther  <rguenther@suse.de>
22209
22210         PR tree-optimization/43796
22211         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
22212         from SCEV in the lattice.
22213         (vrp_visit_phi_node): Dump change.
22214
22215 2010-04-19  Richard Guenther  <rguenther@suse.de>
22216
22217         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
22218         * configure: Re-generated.
22219
22220 2010-04-19  Richard Guenther  <rguenther@suse.de>
22221
22222         PR tree-optimization/43783
22223         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
22224         constant ARRAY_REF operands two and three if possible.
22225
22226 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
22227
22228         PR target/43766
22229         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
22230
22231 2010-04-19  Jie Zhang  <jie@codesourcery.com>
22232
22233         PR target/43662
22234         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
22235
22236 2010-04-19  Ira Rosen  <irar@il.ibm.com>
22237
22238         PR tree-optimization/37027
22239         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
22240         and macro to access it.
22241         (vectorizable_reduction): Add argument.
22242         (vect_get_slp_defs): Likewise.
22243         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
22244         statements for possible use in SLP.
22245         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
22246         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
22247         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
22248         add new argument.
22249         (vectorizable_reduction): Likewise.
22250         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
22251         vect_get_slp_defs.
22252         (vectorizable_type_demotion, vectorizable_type_promotion,
22253         vectorizable_store): Likewise.
22254         (vect_analyze_stmt): Update call to vectorizable_reduction.
22255         (vect_transform_stmt): Likewise.
22256         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
22257         (vect_build_slp_tree): Fix indentation. Check that there are no loads
22258         from different interleaving chains in same node.
22259         (vect_slp_rearrange_stmts): New function.
22260         (vect_supported_load_permutation_p): Allow load permutations for
22261         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
22262         inside SLP nodes if necessary.
22263         (vect_analyze_slp_instance): Handle reductions.
22264         (vect_analyze_slp): Try to build SLP instances originating from groups
22265         of reductions.
22266         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
22267         (vect_get_constant_vectors): Create initial vectors for reductions
22268         according to reduction code. Add new argument.
22269         (vect_get_slp_defs): Add new argument, pass it to
22270         vect_get_constant_vectors.
22271         (vect_schedule_slp_instance): Remove SLP tree root statements.
22272
22273 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22274
22275         * tree.h (ENUM_IS_SCOPED): Define.
22276         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
22277         for ENUM_IS_SCOPED enums.
22278
22279 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
22280
22281         * fold-const.c (fold_comparison): Use ssizetype.
22282         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
22283         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
22284         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
22285         * tree-object-size.c (compute_object_sizes): Use size_type_node.
22286
22287         * tree.h (initialize_sizetypes): Remove parameter.
22288         (build_common_tree_nodes): Remove second parameter.
22289         * stor-layout.c (initialize_sizetypes): Remove parameter.
22290         Always create an unsigned type.
22291         (set_sizetype): Assert that the passed type is unsigned and simplify.
22292         * tree.c (build_common_tree_nodes): Remove second parameter.
22293         Adjust call to initialize_sizetypes.
22294         * c-decl.c (c_init_decl_processing): Remove second argument in call to
22295         build_common_tree_nodes.
22296
22297 2010-04-18  Matthias Klose  <doko@ubuntu.com>
22298
22299         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
22300
22301 2010-04-18  Ira Rosen  <irar@il.ibm.com>
22302
22303         PR tree-optimization/43771
22304         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
22305         load permutation doesn't have gaps.
22306
22307 2010-04-18  Jan Hubicka  <jh@suse.cz>
22308
22309         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
22310         (sse_prologue_save_insn expander): Use new pattern.
22311         (sse_prologue_save_insn1): New pattern and splitter.
22312         (sse_prologue_save_insn): Update to deal also with 64bit aligned
22313         blocks.
22314         * i386.c (setup_incoming_varargs_64): Do not compute jump
22315         destination here.
22316         (ix86_gimplify_va_arg): Update alignment needed.
22317         (ix86_local_alignment): Do not align all local arrays to 128bit.
22318
22319 2010-04-17  Jan Hubicka  <jh@suse.cz>
22320
22321         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
22322
22323 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22324
22325         * arm.md (negdi2): Remove redundant code to force values into a
22326         register.
22327
22328 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22329
22330         * arm/bpabi.S: Add EABI alignment attributes to objects.
22331         * arm/bpabi-v6m.S: Likewise.
22332         * arm/crti.asm: Likewise.
22333         * arm/crtn.asm: Likewise.
22334         * arm/lib1funcs.asm: Likewise.
22335         * arm/libunwind.S: Likewise.
22336
22337 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
22338
22339         * arm-protos.h (tune_params): New structure.
22340         * arm.c (current_tune): New variable.
22341         (arm_constant_limit): Delete.
22342         (struct processors): Add pointer to the tune parameters.
22343         (arm_slowmul_tune): New tuning option.
22344         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
22345         (all_cores): Adjust to pick up the tuning model.
22346         (arm_constant_limit): New function.
22347         (arm_override_options): Select the appropriate tuning model.  Delete
22348         initialization of arm_const_limit.
22349         (arm_split_constant): Use the new constant-limit model.
22350         (arm_rtx_costs): Pick up the current tuning model.
22351         * arm.md (is_strongarm, is_xscale): Delete.
22352         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
22353         for Xscale variant architectures.
22354         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
22355
22356 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22357
22358         * config/arm/arm.c (arm_gen_constant): Remove unused variable
22359         can_shift.
22360         (arm_rtx_costs_1): Remove unused variable extra_cost.
22361         (arm_unwind_emit_set): Use variable offset.
22362         (thumb1_output_casesi): Remove unused variable flags.
22363
22364 2010-04-16  Jeff Law  <law@redhat.com>
22365
22366         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
22367         needing assignment rather than doing a two-phase assignment.  Remove
22368         unused variable 'm'.
22369
22370 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22371
22372         PR bootstrap/43767
22373         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
22374
22375 2010-04-16  Doug Kwan  <dougkwan@google.com>
22376
22377         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
22378         (next_operand_entry_id): New static variable.
22379         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
22380         (add_to_ops_vec): Assigned unique ID to operand entry.
22381         (struct oecount_s): New field ID.
22382         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
22383         (undistribute_ops_list): Assign unique IDs to oecounts.
22384         (init_reassoc): reset next_operand_entry_id.
22385
22386 2010-04-16  Doug Kwan  <dougkwan@google.com>
22387
22388         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
22389         missing left parenthesis.
22390
22391 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
22392
22393         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
22394         *btdi_rex64 using SWI48 mode iterator.
22395         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
22396         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
22397         *jcc_btdi_mask_rex64.
22398
22399 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
22400
22401         * double-int.h (tree_to_double_int): Convert to macro.
22402         * double-int.c (tree_to_double_int): Remove.
22403
22404 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22405
22406         PR debug/43762
22407         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
22408         with want_address 2 and in case a single element list might be
22409         possible, call it again with want_address 0.
22410
22411 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22412
22413         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
22414         case 'W' print operands for HI mode.
22415         * config/h8300/h8300.h (Y0, Y2) : New constraints.
22416         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
22417         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
22418         * config/h8300/predicate.md (bit_register_indirect_operand): New.
22419
22420         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
22421
22422         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
22423         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
22424         #xx:3 and #xx:4 mode.
22425
22426         * config/h8300/h8300.md (inverted load with HImode dest): Add
22427         support for H8300SX.
22428
22429         * config/h8300/predicate.md (bit_operand): Allow immediate values that
22430         satisfy 'U' constraint.
22431
22432 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22433
22434         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
22435         * configure: Regenerate.
22436         * config.in: Regenerate.
22437         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
22438         works.
22439
22440 2010-04-16  Richard Guenther  <rguenther@suse.de>
22441
22442         * tree.h (struct tree_decl_minimal): Move pt_uid ...
22443         (struct tree_decl_common): ... here.
22444         (DECL_PT_UID): Adjust.
22445         (SET_DECL_PT_UID): Likewise.
22446         (DECL_PT_UID_SET_P): Likewise.
22447
22448 2010-04-16  Richard Guenther  <rguenther@suse.de>
22449
22450         PR tree-optimization/43572
22451         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
22452         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
22453         * tree-flow.h (is_call_clobbered): Remove.
22454         * tree-flow-inline.h (is_call_clobbered): Likewise.
22455         * tree-dfa.c (dump_variable): Do not dump call clobber state.
22456         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
22457         (execute_return_slot_opt): Adjust.
22458         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
22459         check for call clobbered vars here.
22460         (find_tail_calls): Move tailcall verification to the
22461         proper place.
22462
22463 2010-04-16  Diego Novillo  <dnovillo@google.com>
22464
22465         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
22466
22467 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22468
22469         PR target/40603
22470         * config/arm/arm.md (cbranchqi4): New pattern.
22471         * config/arm/predicates.md (const0_operand,
22472         cbranchqi4_comparison_operator): New predicates.
22473
22474 2010-04-16  Richard Guenther  <rguenther@suse.de>
22475
22476         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
22477         (dump_gimple_stmt): Likewise.
22478
22479 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
22480
22481         * recog.h (struct recog_data): New field is_operator.
22482         (struct insn_operand_data): New field is_operator.
22483         * recog.c (extract_insn): Set recog_data.is_operator.
22484         * genoutput.c (output_operand_data): Emit code to set the
22485         is_operator field.
22486         * reload.c (find_reloads): Use it rather than testing for an
22487         empty constraint string.
22488
22489         PR target/41514
22490         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
22491         If the previous insn is a cbranchsi4_insn with the same arguments,
22492         omit the compare instruction.
22493
22494         * config/arm/arm.md (addsi3_cbranch): If destination is a high
22495         register, inputs must be low registers and we need a low register
22496         scratch.  Handle alternative 2 like alternative 3.
22497
22498 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
22499
22500         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
22501         don't call get_addr on both.  If one expression is a VALUE and
22502         the other a REG, check VALUE's locs if the REG isn't among them.
22503
22504 2010-04-16  Christian Bruel  <christian.bruel@st.com>
22505
22506         * config/sh/sh.h (sh_frame_pointer_required): New function.
22507         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
22508         (flag_omit_frame_pointer) Set.
22509         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
22510         (rounded_frame_size): Adjust size with outgoing_args_size.
22511         (sh_set_return_address): Must return from stack pointer.
22512         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
22513         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
22514         (ACCUMULATE_OUTGOING_ARGS): Define.
22515         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
22516         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
22517
22518 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
22519
22520         PR target/43471
22521         * config/sh/sh.c (sh_legitimize_reload_address): Use
22522         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
22523         Remove a unneeded check for offset_base.
22524
22525 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
22526
22527         * configure: Regenerated.
22528
22529 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22530
22531         * config/s390/s390.c (s390_call_save_register_used): Switch back
22532         to HARD_REGNO_NREGS.
22533
22534 2010-04-15  Richard Guenther  <rguenther@suse.de>
22535
22536         * alias.c (alias_set_subset_of): Handle alias-set zero
22537         child properly.
22538
22539 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
22540             Julian Brown  <julian@codesourcery.com>
22541
22542         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
22543         alternatives according to use of high and low regs.
22544         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
22545         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
22546         optimizing for size on Thumb-2.
22547
22548 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
22549
22550         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
22551
22552 2010-04-15  Richard Guenther  <rguenther@suse.de>
22553
22554         * tree-ssa-structalias.c (struct variable_info): Add
22555         is_fn_info flag.
22556         (new_var_info): Initialize it.
22557         (dump_constraints): Support printing last added constraints.
22558         (debug_constraints): Adjust.
22559         (dump_constraint_graph): Likewise.
22560         (make_heapvar_for): Check for NULL cfun.
22561         (get_function_part_constraint): New function.
22562         (get_fi_for_callee): Likewise.
22563         (find_func_aliases): Properly implement IPA PTA constraints.
22564         (process_ipa_clobber): New function.
22565         (find_func_clobbers): Likewise.
22566         (insert_into_field_list_sorted): Remove.
22567         (create_function_info_for): Properly allocate vars for IPA mode.
22568         Do not use insert_into_field_list_sorted.
22569         (create_variable_info_for): Properly generate constraints for
22570         global vars in IPA mode.
22571         (dump_solution_for_var): Always dump the solution.
22572         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
22573         (find_what_var_points_to): Adjust.
22574         (pt_solution_set): Change.
22575         (pt_solution_ior_into): New function.
22576         (pt_solution_empty_p): Export.
22577         (pt_solution_includes_global): Adjust.
22578         (pt_solution_includes_1): Likewise.
22579         (pt_solutions_intersect_1): Likewise.
22580         (dump_sa_points_to_info): Check some invariants.
22581         (solve_constraints): Move constraint dumping ...
22582         (compute_points_to_sets): ... here.
22583         (ipa_pta_execute): ... and here.
22584         (compute_may_aliases): Do not re-compute points-to info
22585         locally if IPA info is available.
22586         (ipa_escaped_pt): New global var.
22587         (ipa_pta_execute): Properly implement IPA PTA.
22588         * tree-into-ssa.c (dump_decl_set): Support dumping
22589         decls not in referenced-vars.
22590         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
22591         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
22592         (dump_points_to_solution): Likewise.
22593         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
22594         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
22595         (remap_gimple_stmt): Reset call clobber/use information if necessary.
22596         (copy_decl_to_var): Copy DECL_PT_UID.
22597         (copy_result_decl_to_var): Likewise.
22598         * tree.c (make_node_stat): Initialize DECL_PT_UID.
22599         (copy_node_stat): Copy it.
22600         * tree.h (DECL_PT_UID): New macro.
22601         (SET_DECL_PT_UID): Likewise.
22602         (DECL_PT_UID_SET_P): Likewise.
22603         (struct tree_decl_minimal): Add pt_uid member.
22604         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
22605         (pt_solution_empty_p): Declare.
22606         (pt_solution_set): Adjust.
22607         (ipa_escaped_pt): Declare.
22608         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
22609         * gimple-pretty-print.c (pp_points_to_solution): New function.
22610         (dump_gimple_call): Dump call clobber/use information.
22611         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
22612         * tree-pass.h (TDF_ALIAS): New dump option.
22613         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
22614         * doc/invoke.texi (-fipa-pta): Update documentation.
22615
22616 2010-04-15  Richard Guenther  <rguenther@suse.de>
22617
22618         * Makefile.in (OBJS-common): Add gimple-fold.o.
22619         (gimple-fold.o): New rule.
22620         * tree.h (maybe_fold_offset_to_reference,
22621         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
22622         prototypes ...
22623         * gimple.h: ... here.
22624         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
22625         may_propagate_address_into_dereference): Move prototypes ...
22626         * gimple.h: ... here.
22627         * tree-ssa-ccp.c (get_symbol_constant_value,
22628         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
22629         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
22630         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
22631         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
22632         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
22633         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
22634         gimplify_and_update_call_from_tree): Move ...
22635         * gimple-fold.c: ... here.  New file.
22636         (ccp_fold_builtin): Rename to ...
22637         (gimple_fold_builtin): ... this.
22638         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
22639
22640 2010-04-15  Richard Guenther  <rguenther@suse.de>
22641
22642         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
22643         fit_double_type, force_fit_type_double, add_double_with_sign,
22644         neg_double, mul_double_with_sign, lshift_double, rshift_double,
22645         lrotate_double, rrotate_double, div_and_round_double): Move ...
22646         * double-int.c: ... here.
22647         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
22648         add_double, neg_double, mul_double_with_sign, mul_double,
22649         lshift_double, rshift_double, lrotate_double, rrotate_double,
22650         div_and_round_double): Move prototypes ...
22651         * double-int.h: ... here.
22652
22653 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
22654
22655         PR target/43742
22656         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
22657         matching constraints to ensure inputs match the output.
22658
22659 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
22660
22661         PR target/43742
22662         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
22663         in an input-only operand.
22664
22665 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
22666
22667         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
22668         (double_int_not, double_int_lshift, double_int_rshift): Declare.
22669         (double_int_negative_p): Convert to static inline function.
22670         * double-int.c (double_int_lshift, double_int_lshift): New functions.
22671         (double_int_negative_p): Remove.
22672         * tree.h (lshift_double, rshift_double):
22673         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
22674         * fold-const.c (fold_convert_const_int_from_real,
22675         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
22676         (lshift_double): Change type of arith argument to bool.
22677         (rshift_double): Change type of arith argument to bool. Correct
22678         comment.
22679         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22680
22681 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
22682
22683         PR target/21803
22684         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
22685         at the start and end of the then/else blocks, and omit them from the
22686         conversion.
22687         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
22688         argument; all callers changed.  Pass zero to old_insns_match_p instead.
22689         (flow_find_head_matching_sequence): New function.
22690         (old_insns_match_p): Check REG_EH_REGION notes for calls.
22691         * basic-block.h (flow_find_cross_jump,
22692         flow_find_head_matching_sequence): Declare functions.
22693
22694 2010-04-14  Jason Merrill  <jason@redhat.com>
22695
22696         PR c++/36625
22697         * c-common.c (attribute_takes_identifier_p): New fn.
22698         * c-common.h: Declare it.
22699
22700 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22701
22702         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
22703         splitter condition.
22704         (*udivmod<mode>4): Ditto.
22705
22706 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22707
22708         * config/i386/i386.md (maxmin_int): Rename code attribute from
22709         maxminiprefix and update all users.
22710         (maxmin_float): Ditto from maxminfprefix.
22711         (logic): Ditto from logicprefix.
22712         (absneg_mnemonic): Ditto from absnegprefix.
22713         * config/i386/mmx.md: Update all users of maxminiprefix,
22714         maxminfprefix and logicprefix for rename.
22715         * config/i386/sse.md: Ditto.
22716         * config/i386/sync.md (sync_<code><mode>): Update for
22717         logicprefix rename.
22718
22719 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22720
22721         PR 42966
22722         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
22723         warnings converted to errors.
22724
22725 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22726
22727         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
22728         used insn_type variable.
22729         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
22730         to avoid set-but-not-used warning.
22731
22732 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22733
22734         * df-core.c (df_ref_debug): Change format string placeholder
22735         from 0x%x to %#x.
22736         * dwarf2asm.c (dw2_asm_output_data_raw,
22737         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
22738         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
22739         * dwarf2out.c (output_cfi, output_cfi_directive,
22740         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
22741         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
22742         Ditto.
22743         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
22744         * print-rtl.c (print_rtx): Ditto.
22745
22746 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22747
22748         PR middle-end/42694
22749         * builtins.c (expand_builtin_pow_root): New function to expand pow
22750         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
22751         series of sqrt and cbrt calls under -ffast-math.
22752         (expand_builtin_pow): Call it.
22753
22754 2010-04-14  Michael Matz  <matz@suse.de>
22755
22756         PR tree-optimization/42963
22757         * tree-cfg.c (touched_switch_bbs): New static variable.
22758         (group_case_labels_stmt): New function broken out from ...
22759         (group_case_labels): ... here, use the above.
22760         (start_recording_case_labels): Allocate touched_switch_bbs.
22761         (end_recording_case_labels): Deallocate it, call
22762         group_case_labels_stmt.
22763         (gimple_redirect_edge_and_branch): Remember index of affected BB.
22764
22765 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22766
22767         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
22768         from insn template.
22769
22770 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
22771
22772         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
22773
22774 2010-04-13  Jan Hubicka  <jh@suse.cz>
22775
22776         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
22777         of optimized out static functions.
22778         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
22779         cost computation.  Also sanity check for overflows.
22780         (update_caller_keys): Update cgraph_edge_badness call; properly
22781         update fibheap and sanity check that it is up to date.
22782         (add_new_edges_to_heap): Update cgraph_edge_badness.
22783         (cgraph_decide_inlining_of_small_function): Likewise;
22784         add sanity checking that badness in heap is up to date;
22785         improve dumping of reason; Update badness of calls to the
22786         offline copy of function currently inlined; dump badness
22787         of functions not inlined because of unit growth limits.
22788
22789 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
22790
22791         PR middle-end/32628
22792         * c-common.c (pointer_int_sum): Disregard overflow that occured only
22793         because of sign-extension change when converting to sizetype here...
22794         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
22795
22796         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
22797         the folding to constants.  Remove redundant final conversion.
22798         (fold_binary) <associate>: Do not associate if the re-association of
22799         constants alone overflows.
22800         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
22801         to the end of the list.
22802         (multiple_of_p) <COND_EXPR>: New case.
22803
22804 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22805
22806         * opt-functions.awk (opt_sanitized_name): New.
22807         (opt_enum): New.
22808         * optc-gen.awk: Use it
22809         * opth-gen.awk: Use it.
22810
22811 2010-04-13  Martin Jambor  <mjambor@suse.cz>
22812
22813         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
22814         (sra_modify_assign): Delete stmts loading dead data even if racc has no
22815         children.  Call replace_uses_with_default_def_ssa_name to handle
22816         SSA_NAES on lhs.
22817
22818 2010-04-13  Michael Matz  <matz@suse.de>
22819
22820         PR middle-end/43730
22821         * builtins.c (expand_builtin_interclass_mathfn): Also create
22822         a register if the predicate doesn't match.
22823
22824 2010-04-13  Diego Novillo  <dnovillo@google.com>
22825
22826         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
22827         * c-pch.c: Include timevar.h.
22828         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
22829         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
22830         * ggc-common.c: Include timevar.h.
22831         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
22832         * timevar.def (TV_PCH_SAVE): Define.
22833         (TV_PCH_CPP_SAVE): Define.
22834         (TV_PCH_PTR_REALLOC): Define.
22835         (TV_PCH_PTR_SORT): Define.
22836         (TV_PCH_RESTORE): Define.
22837         (TV_PCH_CPP_RESTORE): Define.
22838
22839 2010-04-13  Michael Matz  <matz@suse.de>
22840
22841         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
22842         into MINUS_EXPRs.
22843         (can_reassociate_p): New function.
22844         (break_up_subtract_bb, reassociate_bb): Use it.
22845
22846 2010-04-13  Richard Guenther  <rguenther@suse.de>
22847
22848         PR bootstrap/43737
22849         * builtins.c (c_readstr): Fix assert.
22850
22851 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
22852
22853         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
22854         when generating cltd insn.
22855
22856         (*ashl<mode>3_1): Remove special handling for register operand 2.
22857         (*ashlsi3_1_zext): Ditto.
22858         (*ashlhi3_1): Ditto.
22859         (*ashlhi3_1_lea): Ditto.
22860         (*ashlqi3_1): Ditto.
22861         (*ashlqi3_1_lea): Ditto.
22862         (*<shiftrt_insn><mode>3_1): Ditto.
22863         (*<shiftrt_insn>si3_1_zext): Ditto.
22864         (*<shiftrt_insn>qi3_1_slp): Ditto.
22865         (*<rotate_insn><mode>3_1): Ditto.
22866         (*<rotate_insn>si3_1_zext): Ditto.
22867         (*<rotate_insn>qi3_1_slp): Ditto.
22868
22869 2010-04-13  Richard Guenther  <rguenther@suse.de>
22870
22871         * tree-ssa-structalias.c (callused_id): Remove.
22872         (call_stmt_vars): New.
22873         (get_call_vi): Likewise.
22874         (lookup_call_use_vi): Likewise.
22875         (lookup_call_clobber_vi): Likewise.
22876         (get_call_use_vi): Likewise.
22877         (get_call_clobber_vi): Likewise.
22878         (make_transitive_closure_constraints): Likewise.
22879         (handle_const_call): Adjust to do per-call call-used handling.
22880         (handle_pure_call): Likewise.
22881         (find_what_var_points_to): Remove general callused handling.
22882         (init_base_vars): Likewise.
22883         (init_alias_vars): Initialize call_stmt_vars.
22884         (compute_points_to_sets): Process call-used and call-clobbered
22885         vars for call statements.
22886         (delete_points_to_sets): Free call_stmt_vars.
22887
22888 2010-04-13  Richard Guenther  <rguenther@suse.de>
22889
22890         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22891         Only add RW dependence for dependence distance zero.
22892         Adjust maximal vectorization factor according to dependences.
22893         Move alignment handling ...
22894         (vect_find_same_alignment_drs): ... here.  New function.
22895         (vect_analyze_data_ref_dependences): Adjust.
22896         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
22897         (vect_analyze_data_refs): Adjust minimal vectorization factor
22898         according to data references.
22899         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
22900         dependences before determining the vectorization factor.
22901         Analyze alignment after determining the vectorization factor.
22902         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
22903         dependences before alignment.
22904         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
22905         Adjust prototype.
22906         (vect_analyze_data_refs): Likewise.
22907         (MAX_VECTORIZATION_FACTOR): New define.
22908
22909 2010-04-13  Duncan Sands  <baldrick@free.fr>
22910
22911         * except.h (lang_eh_type_covers): Remove.
22912         * except.c (lang_eh_type_covers): Likewise.
22913
22914 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22915             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22916
22917         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
22918         * config/s390/s390.c: Replace UNTIS_PER_WORD with
22919         UNITS_PER_LONG where it is ABI relevant.
22920         (s390_return_addr_rtx): Likewise.
22921         (s390_back_chain_rtx): Likewise.
22922         (s390_frame_area): Likewise.
22923         (s390_frame_info): Likewise.
22924         (s390_initial_elimination_offset): Likewise.
22925         (save_gprs): Likewise.
22926         (s390_emit_prologue): Likewise.
22927         (s390_emit_epilogue): Likewise.
22928         (s390_function_arg_advance): Likewise.
22929         (s390_function_arg): Likewise.
22930         (s390_va_start): Likewise.
22931         (s390_gimplify_va_arg): Likewise.
22932         (s390_function_profiler): Likewise.
22933         (s390_optimize_prologue): Likewise.
22934         (s390_rtx_costs): Likewise.
22935         (s390_secondary_reload): Likewise.
22936         (s390_promote_function_mode): Likewise.
22937         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
22938         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
22939         registers available.
22940         (s390_unwind_word_mode): New function.
22941         (s390_function_value): Split 64 bit values into register pair if
22942         used as return value.
22943         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
22944         function call parameters.  Handle parallels.
22945         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
22946         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
22947         (DWARF_CIE_DATA_ALIGNMENT): New macro.
22948         (s390_expand_setmem): Remove unused variable src_addr.
22949         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
22950         deal with 64 bit registers.
22951         * config/s390/s390.h: Define __zarch__ predefined macro.
22952         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
22953         (UNITS_PER_LONG): New macro.
22954         * libjava/include/s390-signal.h: Define extended ucontext
22955         structure containing the upper halfs of the 64 bit registers.
22956
22957 2010-04-13  Simon Baldwin  <simonb@google.com>
22958
22959         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
22960
22961 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
22962
22963         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
22964         rvalue on the RHS if the LHS is of a non-renamable type.
22965         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
22966
22967 2010-04-13  Matthias Klose  <doko@ubuntu.com>
22968
22969         * gcc.c (cc1_options): Handle -iplugindir before processing
22970         the cc1 spec. Only add -iplugindir once.
22971         (cpp_unique_options): Add -iplugindir option if -fplugin* options
22972         found.
22973         * common.opt (iplugindir): Remove `Separate' property, initialize.
22974         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
22975         option.
22976         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
22977         (distclean): Remove plugin dir.
22978         * doc/invoke.texi: Document -iplugindir.
22979
22980 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
22981
22982         * doc/plugins.texi (Loading Plugins): Document short
22983         -fplugin=foo option.
22984         (Plugin API): Mention default_plugin_dir_name function.
22985
22986         * gcc.c (find_file_spec_function): Add new declaration.
22987         (static_spec_func): Use it for "find-file".
22988         (find_file_spec_function): Add new function.
22989         (cc1_options): Add -iplugindir option if -fplugin* options found.
22990
22991         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
22992
22993         * plugin.c (add_new_plugin): Updated comment, and handle short
22994         plugin name.
22995         (default_plugin_dir_name): Added new function.
22996
22997         * common.opt (iplugindir): New option to set the plugin directory.
22998
22999 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23000
23001         * config/i386/i386.md (any_rotate): New code iterator.
23002         (rotate_insn): New code attribute.
23003         (rotate): Ditto.
23004         (SWIM124): New mode iterator.
23005         (<rotate_insn>ti3): New expander.
23006         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23007         any_rotate code iterator.
23008         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23009         using any_rotate code iterator and SWIM124 mode iterator.
23010         (ix86_rotlti3): New insn_and_split pattern.
23011         (ix86_rotrti3): Ditto.
23012         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23013         ix86_rotl{di,ti}3 patterns.
23014         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23015         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23016         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23017         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23018         code iterator and SWI mode iterator.
23019         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23020         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23021         code iterator.
23022         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23023         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23024         (bswap rotatert splitter): Add splitter.
23025         (bswap splitter): Macroize splitter using any_rotate code iterator.
23026         Add insn predicate to split only for TARGET_USE_XCHGB or when
23027         optimizing function for size.
23028
23029 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23030
23031         * config/pa/pa.c (emit_move_sequence): Remove use of
23032         deleted variable flag_argument_noalias.
23033
23034 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23035
23036         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23037         configurations.
23038         Add to unsupported targets list.
23039         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23040         sparc*-sun-solaris2.[567]* from target lists.
23041         * configure: Regenerate.
23042         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23043         removal.
23044         Remove Solaris 7 patch references.
23045         (Specific, sparc-sun-solaris2.7): Removed.
23046         (sparc-sun-solaris2*): Update Solaris 7 example.
23047         (sparc64-*-solaris2*): Likewise.
23048
23049 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23050
23051         * config.build (alpha*-dec-osf4*): Remove.
23052         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23053         of obsolete configurations.
23054         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23055         support.
23056         * config/alpha/t-osf4: Renamed to ...
23057         * config/alpha/t-osf5: ... this.
23058         * config/alpha/osf.h: Renamed to ...
23059         * config/alpha/osf5.h: ... this.
23060         Merged old osf5.h contents.
23061         Update comments.
23062         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23063         (EXTRA_SPECS): Removed.
23064         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23065         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23066         Document that.
23067
23068 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23069
23070         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23071
23072 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23073
23074         PR/43702
23075         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23076         __thiscall convention.
23077
23078 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23079
23080         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23081         orig_base.
23082         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23083
23084 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23085
23086         * function.c (assign_parms_initialize_all): Add unused attribute
23087         to fntype.
23088
23089 2010-04-12  Richard Guenther  <rguenther@suse.de>
23090
23091         * gsstruct.def (GSS_CALL): New.
23092         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23093         * gimple.h: Include tree-ssa-alias.h.
23094         (struct gimple_statement_call): New.
23095         (union gimple_statement_struct_d): Add gimple_call member.
23096         (gimple_call_reset_alias_info): Declare.
23097         (gimple_call_use_set): New function.
23098         (gimple_call_clobber_set): Likewise.
23099         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23100         * gimple.c (gimple_call_reset_alias_info): New function.
23101         (gimple_build_call_1): Call it.
23102         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23103         * tree-inline.c (remap_gimple_stmt): Likewise.
23104         (expand_call_inline): Remove callused handling.
23105         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23106         * tree-dfa.c (dump_variable): Likewise.
23107         * tree-parloops.c (parallelize_loops): Likewise.
23108         * tree-ssa.c (init_tree_ssa): Likewise.
23109         (delete_tree_ssa): Likewise.
23110         * tree-flow-inline.h (is_call_used): Remove.
23111         * tree-flow.h (struct gimple_df): Remove callused member.
23112         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23113         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23114         (ref_maybe_used_by_call_p_1): Simplify.
23115         (call_may_clobber_ref_p_1): Likewise.
23116         * tree-ssa-structalias.c (compute_points_to_sets): Set
23117         the call stmt used and clobbered sets.
23118         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23119         (find_tail_calls): Verify the tail call.
23120
23121 2010-04-12  Richard Guenther  <rguenther@suse.de>
23122
23123         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23124         single-iteration always-inline inlining.
23125         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23126         (cgraph_decide_inlining): Do not handle always-inline specially.
23127         (try_inline): Remove always-inline cycle detection special case.
23128         Do not recurse on always-inlines.
23129         (cgraph_early_inlining): Do not iterate if not optimizing.
23130         (cgraph_gate_early_inlining): remove.
23131         (pass_early_inline): Run unconditionally.
23132         (gate_cgraph_decide_inlining): New function.
23133         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23134         not inlining or optimizing.
23135         (cgraph_decide_inlining_of_small_functions): Also consider
23136         always-inline functions.
23137         (cgraph_default_inline_p): Return true for nodes which should
23138         disregard inline limits.
23139         (estimate_function_body_sizes): Assume zero size and time for
23140         nodes which are marked as disregarding inline limits.
23141         (cgraph_decide_recursive_inlining): Do not perform recursive
23142         inlining on always-inline nodes.
23143
23144 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23145
23146         PR bootstrap/43699
23147         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23148         for exprs satisfying handled_component_p.
23149
23150 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23151
23152         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23153         non-constant aggregate elements.
23154
23155         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23156         is a real initialization.
23157
23158 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23159
23160         PR c/36774
23161         * c-decl.c (start_function): Move forward check for nested function.
23162
23163 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23164
23165         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23166         * config/sh/sh.c: Include reload.h.
23167         (sh_legitimize_reload_address): New.
23168         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23169         sh_legitimize_reload_address.
23170
23171 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23172
23173         * config/sh/sh.md (*movqi_pop): New insn pattern.
23174         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23175
23176 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23177
23178         * config/i386/i386.md (any_shiftrt): New code iterator.
23179         (shiftrt_insn): New code attribute.
23180         (shiftrt): Ditto.
23181         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23182         using any_shiftrt code iterator.
23183         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23184         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23185         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23186         pattern from corresponding peephole2 patterns.
23187         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23188         using any_shiftrt code iterator.
23189         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23190         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
23191         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
23192         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
23193         *{ashr,lshr}<mode>3_cmp_zext.
23194         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
23195
23196 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23197
23198         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
23199         scratch register.
23200         (*lshr<mode>3_cconly): Ditto.
23201
23202 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23203
23204         * config/i386/i386.md (lshr<mode>3): Macroize expander from
23205         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23206         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23207         pattern from *lshr{di,ti}3_1 and corresponding splitters using
23208         DWI mode iterator.
23209         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23210         from corresponding peephole2 patterns.
23211         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
23212         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
23213         and *lshrdi3_1_rex64 using SWI mode iterator.
23214         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
23215         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
23216         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
23217         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
23218         and *lshrdi3_cmp_rex64 using SWI mode iterator.
23219         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
23220         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
23221         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
23222         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
23223         SWI mode iterator.
23224
23225 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
23226
23227         * config/i386/i386.md (ashr<mode>3): Macroize expander from
23228         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
23229         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23230         pattern from *ashr{di,ti}3_1 and corresponding splitters using
23231         DWI mode iterator.
23232         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
23233         from corresponding peephole2 patterns.
23234         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
23235         (ashrsi3_cvt): Rename from ashrsi3_31.
23236         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
23237         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
23238         and x86_64_shift_adj_3 using SWI48 mode iterator.
23239         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
23240         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
23241         and *ashrdi3_1_rex64 using SWI mode iterator.
23242         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
23243         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
23244         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
23245         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
23246         and *ashrdi3_cmp_rex64 using SWI mode iterator.
23247         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
23248         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
23249         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
23250         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
23251         SWI mode iterator.
23252         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
23253         * config/i386/i386.c (ix86_split_ashr): Update for renamed
23254         x86_shift<mode>_adj_3 expanders.
23255
23256 2010-04-10  Wei Guozhi  <carrot@google.com>
23257
23258         PR target/42601
23259         * config/arm/arm.c (arm_pic_static_addr): New function.
23260         (legitimize_pic_address): Call arm_pic_static_addr when it detects
23261         a static symbol.
23262         (arm_output_addr_const_extra): Output expression for new pattern.
23263         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
23264
23265 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
23266
23267         * ira-costs.c (record_reg_classes): Ignore alternatives that are
23268         not enabled.
23269
23270         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
23271         * web.c: Include "insn-config.h" and "recog.h".
23272         (union_match_dups): New function.
23273         (web_main): Call it.
23274         (union_defs): Don't try to recognize match_dups.
23275
23276         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
23277         if doing so would replace the entire pattern.
23278
23279 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23280
23281         PR target/43707
23282         PR target/43709
23283         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
23284         and splitter pattern.  Change splitter operand 1 predicate to
23285         nonmemory_operand.
23286
23287 2010-04-09  Martin Jambor  <mjambor@suse.cz>
23288
23289         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
23290         lattices are addresses of CONST_DECLs with the same initial value.
23291         (ipcp_print_all_lattices): Print values of CONST_DECLs.
23292         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
23293
23294 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
23295             Bernd Schmidt  <bernds@codesourcery.com>
23296
23297         * loop-invariant.c (replace_uses): New static function.
23298         (move_invariant_reg): Use it to ensure we can replace the uses.
23299
23300 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
23301
23302         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
23303         function template.
23304         (picochip_override_options): Enable section anchors only above -O1.
23305         (picochip_reorg): Fixed a couple of build warnings.
23306
23307 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23308
23309         * configure.ac (plugin -rdynamic test): Log result.
23310         * configure: Regenerate.
23311         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
23312         (RDYNAMIC_SPEC): Define.
23313         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
23314
23315 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23316
23317         * configure.ac: Determine Sun ld version numbers.
23318         (comdat_group): Restrict GNU ld version checks to gld.
23319         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
23320         (enable_comdat): Support --enable-comdat.
23321         * configure: Regenerate.
23322         * doc/install.texi (Configuration): Document --enable-comdat.
23323
23324 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23325
23326         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
23327         * config/sol2-gld.h: ... here.
23328         * config.gcc (sparc*-*-solaris2*): Reflect this.
23329         (i[34567]86-*-solaris2*): Use it.
23330
23331 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
23332
23333         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
23334         setup_clocks_p.
23335         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
23336
23337 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23338
23339         PR 42965
23340         * diagnostic.c (diagnostic_initialize): Initialize
23341         some_warnings_are_errors.
23342         (diagnostic_finish): New.
23343         (diagnostic_action_after_output): Call it before exiting.
23344         (diagnostic_report_diagnostic): Do not print message here. Set
23345         some_warnings_are_errors.
23346         * diagnostic.h (diagnostic_context): Delete
23347         issue_warnings_are_errors_message. Add some_warnings_are_errors.
23348         (diagnostic_finish): Declare.
23349         * toplev.c (toplev_main): Call it before exit.
23350
23351 2010-04-09  Jason Merrill  <jason@redhat.com>
23352
23353         PR c++/42623
23354         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
23355         for incomplete type.
23356
23357         PR c++/41788
23358         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
23359         based on a warning flag.
23360
23361 2010-04-09  Richard Guenther  <rguenther@suse.de>
23362
23363         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
23364
23365 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
23366
23367         PR bootstrap/43684
23368         * varasm.c (default_assemble_visibility): Wrap vars that are
23369         set, but unused, by targets without GAS.
23370         * config/rs6000/rs6000.c (paired_emit_vector_compare):
23371         Remove set, but unused, vars.
23372         (rs6000_legitimize_tls_address): Likewise.
23373         (altivec_expand_dst_builtin): Likewise.
23374         * config/darwin.c (machopic_classify_symbol): Likewise.
23375         (machopic_indirection_name): Likewise.
23376
23377 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
23378
23379         * config/i386/i386.md (DWI): New mode iterator.
23380         (S): New mode attribute.
23381         (shift_operand): Ditto.
23382         (shift_immediate_operand): Ditto.
23383         (ashl_input_operand): Ditto.
23384         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
23385         using SDWIM mode iterator.
23386         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
23387         pattern from *ashl{di,ti}3_1 and corresponding splitters using
23388         DWI mode iterator.
23389         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
23390         from corresponding peephole2 patterns.
23391         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
23392         and x86_64_shift_adj_1 using SWI48 mode iterator.
23393         (x86_shift<mode>_adj_2): Ditto.
23394         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
23395         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
23396         using SWI48 mode iterator.
23397         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
23398         *ashldi3_cmp_rex64 using SWI mode iterator.
23399         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
23400         *ashldi3_cconly_rex64 using SWI mode iterator.
23401         * config/i386/i386.c (ix86_split_ashl): Update for renamed
23402         x86_shift<mode>_adj_{1,2}.
23403         (ix86_split_ashr): Ditto.
23404         (ix86_split_lshr): Ditto.
23405
23406 2010-04-09  Richard Guenther  <rguenther@suse.de>
23407
23408         * target.h (builtin_conversion): Pass in input and output types.
23409         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
23410         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
23411         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
23412         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
23413
23414         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
23415         Handle AVX modes.
23416         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
23417
23418 2010-04-09  Richard Guenther  <rguenther@suse.de>
23419
23420         PR target/43152
23421         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
23422
23423 2010-04-09  Richard Guenther  <rguenther@suse.de>
23424
23425         * tree-vectorizer.h (struct _stmt_vec_info): Document
23426         that vectype is the type of the LHS.
23427         (supportable_widening_operation, supportable_narrowing_operation):
23428         Get both input and output vector types as arguments.
23429         (vect_is_simple_use_1): Declare.
23430         (get_same_sized_vectype): Likewise.
23431         * tree-vect-loop.c (vect_determine_vectorization_factor):
23432         Set STMT_VINFO_VECTYPE to the vector type of the def.
23433         (vectorizable_reduction): Adjust.
23434         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
23435         Adjust.  Specify the output vector type.
23436         (vect_pattern_recog_1): Adjust.
23437         * tree-vect-stmts.c (get_same_sized_vectype): New function.
23438         (vectorizable_call): Adjust.
23439         (vectorizable_conversion): Likewise.
23440         (vectorizable_operation): Likewise.
23441         (vectorizable_type_demotion): Likewise.
23442         (vectorizable_type_promotion): Likewise.
23443         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
23444         the def.
23445         (vect_is_simple_use_1): New function.
23446         (supportable_widening_operation): Get both input and output
23447         vector types.
23448         (supportable_narrowing_operation): Likewise.
23449         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
23450
23451 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
23452
23453         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
23454         __thiscall and _thiscall as predefined macros.
23455         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
23456         thiscall attribute handling.
23457         (ix86_comp_type_attributes): Likewise.
23458         (ix86_function_regparm): Likewise.
23459         (ix86_return_pops_args): Likewise.
23460         (init_cumulative_args): Likewise.
23461         (find_drap_reg): Likewise.
23462         (ix86_static_chain): Likewise.
23463         (x86_this_parameter): Likewise.
23464         (x86_output_mi_thunk): Likewise.
23465         (ix86_attribute_table): Add description for thiscall attribute.
23466         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
23467         * doc/extend.texi: Add documentation for thiscall.
23468
23469 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23470
23471         PR c++/28584
23472         * c.opt (Wint-to-pointer-cast): Available in C++.
23473         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
23474
23475 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
23476
23477         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
23478         * calls.c (expand_call): Pass the function type to aggregate_value_p.
23479         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
23480         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
23481         function type instead.  Reorder and simplify checks.
23482
23483         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
23484
23485 2010-04-08  Jing Yu  <jingyu@google.com>
23486             Zdenek Dvorak  <ook@ucw.cz>
23487
23488         PR tree-optimization/42720
23489         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
23490         loop unswitch conditions here from ...
23491         (tree_unswitch_single_loop): ... here.
23492
23493 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
23494
23495         * tree-if-conv.c: Fix comments and simplify logic.
23496
23497 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
23498
23499         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
23500         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
23501         (main_tree_if_conversion): Update call to tree_if_conversion.
23502
23503 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23504
23505         PR 42485
23506         * doc/invoke.texi (-b,-V): Delete.
23507         * doc/tm.texi: Do not mention -b.
23508         * gcc.c (display_help): Delete -b and -V.
23509         (process_command): Delete -b and -V.
23510         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
23511
23512 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
23513             Wolfgang Gellerich  <gellerich@de.ibm.com>
23514
23515         Implement target hook for loop unrolling
23516         * target.h (loop_unroll_adjust): Add a new target hook function.
23517         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
23518         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
23519         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
23520         (s390_loop_unroll_adjust): Implement the new target hook for s390.
23521         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
23522         target hook.
23523         (decide_unroll_stupid): Likewise.
23524
23525 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23526
23527         PR target/43643
23528         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
23529
23530 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23531
23532         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
23533         (Specific, *-*-solaris2*): Likewise.
23534         Don't prefer Sun as over GNU as.
23535
23536 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
23537
23538         * config/s390/s390.c (override_options): Adjust the z10 defaults
23539         for max-unroll-times, max-completely-peeled-insns
23540         and max-completely-peel-times.
23541
23542 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23543
23544         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
23545         instructions for z10.
23546         (s390_expand_setmem): Likewise.
23547         (s390_expand_cmpmem): Likewise.
23548
23549 2010-04-08  Richard Guenther  <rguenther@suse.de>
23550
23551         PR tree-optimization/43679
23552         * tree-ssa-pre.c (eliminate): Only propagate copies.
23553
23554 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
23555
23556         PR bootstrap/43681
23557         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
23558         set but not used variable warning.
23559
23560 2010-04-08  Wei Guozhi  <carrot@google.com>
23561
23562         PR target/41653
23563         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
23564         (arm_size_rtx_costs): Call the new function when optimized for size.
23565
23566 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
23567
23568         PR debug/43670
23569         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
23570         op0 is not a MEM, just return NULL instead of assertion
23571         failure.
23572         (discover_nonconstant_array_refs): Don't walk debug stmts.
23573
23574 2010-04-08  Doug Kwan  <dougkwan@google.com>
23575
23576         * configure.ac: Recognize gold and do not use its version number
23577         to test ld features.
23578         * configure: Regenerate.
23579
23580 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
23581
23582         PR middle-end/40815
23583         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
23584         (negate_value): Move code to push elements to broken_up_substracts ...
23585         (eliminate_plus_minus_pair): ... here.  Push operands that have no
23586         negative pair to plus_negates.
23587         (repropagate_negates, init_reassoc, fini_reassoc): Update.
23588
23589 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23590
23591         * doc/install.texi (Configuration): Move description of
23592         --enable-lto, --with-libelf*, --enable-gold from Java section to
23593         general section.
23594
23595         * doc/generic.texi (Working with declarations)
23596         (Function Properties, C and C++ Trees): Fix typos.
23597         * doc/sourcebuild.texi (Top Level): Likewise.
23598
23599 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
23600
23601         PR c/18624
23602         * tree.h (DECL_READ_P): Define.
23603         (struct tree_decl_common): Add decl_read_flag.
23604         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
23605         a set but not used warning.
23606         (merge_decls): Merge DECL_READ_P flag.
23607         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
23608         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
23609         * c-common.c (handle_used_attribute, handle_unused_attribute):
23610         Likewise.
23611         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
23612         New prototypes.
23613         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
23614         New functions.
23615         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
23616         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
23617         c_parser_binary_expression, c_parser_cast_expression,
23618         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
23619         Call default_function_array_read_conversion instead of
23620         default_function_array_conversion where needed.
23621         (c_parser_unary_expression, c_parser_conditional_expression,
23622         c_parser_postfix_expression_after_primary, c_parser_initelt):
23623         Likewise.  Call mark_exp_read where needed.
23624         (c_parser_statement_after_labels, c_parser_asm_operands,
23625         c_parser_typeof_specifier, c_parser_sizeof_expression,
23626         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
23627         where needed.
23628         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
23629         New.
23630         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
23631         (warn_unused_but_set_parameter): Default to warn_unused
23632         && extra_warnings.
23633         * doc/invoke.texi: Document -Wunused-but-set-variable and
23634         -Wunused-but-set-parameter.
23635
23636         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
23637         used count variable.
23638         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
23639         when operandN variables aren't used in the body of the expander
23640         or splitter.
23641         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
23642         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
23643         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
23644         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
23645         FOR_EACH_IMM_USE_ON_STMT): Likewise.
23646         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
23647         * tree.c (PROCESS_ARG): Likewise.
23648
23649 2010-04-07  Simon Baldwin  <simonb@google.com>
23650
23651         * diagnostic.h (diagnostic_override_option_index): New macro to
23652         set a diagnostic's option_index.
23653         * c-tree.h (c_cpp_error): Add warning reason argument.
23654         * opts.c (_warning_as_error_callback): New.
23655         (register_warning_as_error_callback): Store callback for
23656         warnings enabled via enable_warning_as_error.
23657         (enable_warning_as_error): Call callback, minor code tidy.
23658         * opts.h (register_warning_as_error_callback): Declare.
23659         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
23660         response to -Werror=.
23661         (c_common_init_options): Register warning_as_error_callback in opts.c.
23662         * common.opt: Add -Wno-cpp option.
23663         * c-common.c (struct reason_option_codes_t): Map cpp warning
23664         reason codes to gcc option indexes.
23665         * (c_option_controlling_cpp_error): New function, lookup the gcc
23666         option index for a cpp warning reason code.
23667         * (c_cpp_error): Add warning reason argument, call
23668         c_option_controlling_cpp_error for diagnostic_override_option_index.
23669         * doc/invoke.texi: Document -Wno-cpp.
23670
23671 2010-04-07  Richard Guenther  <rguenther@suse.de>
23672
23673         * ipa-reference.c (mark_load): Use get_base_address.
23674         (mark_store): Likewise.
23675
23676         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
23677         inserting GIMPLE_NOPs into the IL.
23678         * tree-ssa-structalias.c (get_constraint_for_component_ref):
23679         Explicitly strip handled components and indirect references.
23680
23681         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
23682         folding address expressions.
23683         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
23684         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
23685         operand_equal_p to compare decls.
23686         (ptr_deref_may_alias_decl_p): Likewise.
23687         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
23688         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
23689         Handle reversed comparison ops.
23690         * tree-sra.c (asm_visit_addr): Use get_base_address.
23691         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
23692         * ipa-reference.c (mark_address): Use get_base_address.
23693
23694 2010-04-07  Richard Guenther  <rguenther@suse.de>
23695
23696         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
23697         Propagate constants everywhere.
23698
23699 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
23700
23701         PR debug/43516
23702         * tree.c (MAX_INT_CACHED_PREC): Define.
23703         (nonstandard_integer_type_cache): New array.
23704         (build_nonstandard_integer_type): Cache results for precision
23705         <= MAX_INT_CACHED_PREC.
23706
23707 2010-04-07  Richard Guenther  <rguenther@suse.de>
23708
23709         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
23710         -fargument-noalias-global, -fargument-noalias-anything): Remove.
23711         * common.opt: Likewise.
23712         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
23713         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
23714         (nonoverlapping_memrefs_p): Likewise.
23715         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
23716         * opts.c (common_handle_option): Handle OPT_fargument_alias,
23717         OPT_fargument_noalias, OPT_fargument_noalias_anything and
23718         OPT_fargument_noalias_global for backward compatibility.
23719
23720 2010-04-07  Richard Guenther  <rguenther@suse.de>
23721
23722         PR tree-optimization/43270
23723         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
23724         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
23725         * tree-ssa-pre.c (phi_translate_1): Adjust.
23726         (fully_constant_expression): Split out vn_reference handling to ...
23727         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
23728         Fold reads from constant strings.
23729         (vn_reference_lookup): Handle fully constant references.
23730         (vn_reference_lookup_pieces): Likewise.
23731         * Makefile.in (expmed.o-warn): Add -Wno-error.
23732
23733 2010-04-07  Martin Jambor  <mjambor@suse.cz>
23734
23735         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
23736
23737 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
23738
23739         PR driver/41594
23740         * gcc.c: Add -static-libstdc++ to list of recognized options.
23741
23742 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23743
23744         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
23745
23746 2010-04-07  Richard Guenther  <rguenther@suse.de>
23747
23748         PR middle-end/42617
23749         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
23750         bases build simple mem attributes to retain points-to information.
23751
23752 2010-04-07  Richard Guenther  <rguenther@suse.de>
23753
23754         PR middle-end/42617
23755         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
23756         preserve points-to related information.
23757
23758 2010-04-07  Richard Guenther  <rguenther@suse.de>
23759
23760         PR middle-end/42617
23761         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
23762         discard plain indirect references.
23763         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
23764         * tree.c (tree_nop_conversion): Likewise.
23765
23766 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
23767
23768         PR debug/43628
23769         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
23770
23771 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
23772
23773         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
23774         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
23775
23776 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
23777
23778         * tree-if-conv.c: Fix indentation and comments.
23779
23780 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
23781
23782         * tree-if-conv.c: Sort static functions in topological order.
23783
23784 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
23785
23786         * tree-if-conv.c: Fix indentation and comments.
23787
23788 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23789
23790         PR middle-end/43519
23791         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
23792         lang_hooks.types.type_for_size instead of
23793         build_nonstandard_integer_type.
23794         When converting an unsigned type to signed, double its precision.
23795         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
23796         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
23797         (graphite_create_new_loop_guard): When ub + 1 wraps around,
23798         use lb <= ub.
23799
23800 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23801
23802         PR middle-end/43519
23803         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23804         POINTER_PLUS_EXPR for pointer types.
23805
23806 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23807
23808         PR middle-end/43519
23809         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
23810         * graphite-clast-to-gimple.c: Include langhooks.h.
23811         (max_signed_precision_type): New.
23812         (max_precision_type): Takes two types as arguments.
23813         (precision_for_value): New.
23814         (precision_for_interval): New.
23815         (gcc_type_for_interval): New.
23816         (gcc_type_for_value): New.
23817         (gcc_type_for_clast_term): New.
23818         (gcc_type_for_clast_red): New.
23819         (gcc_type_for_clast_bin): New.
23820         (gcc_type_for_clast_expr): Split up into several functions.
23821         (gcc_type_for_clast_eq): Rewritten.
23822         (compute_bounds_for_level): New.
23823         (compute_type_for_level_1): New.
23824         (compute_type_for_level): New.
23825         (gcc_type_for_cloog_iv): Removed.
23826         (gcc_type_for_iv_of_clast_loop): Rewritten.
23827         (graphite_create_new_loop): Compute the lower and upper bound types
23828         with gcc_type_for_clast_expr.
23829         (graphite_create_new_loop_guard): Same.
23830         (find_cloog_iv_in_expr): Removed.
23831         (compute_cloog_iv_types_1): Removed.
23832         (compute_cloog_iv_types): Removed.
23833         (gloog): Do not call compute_cloog_iv_types.
23834         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
23835         GBB_CLOOG_IV_TYPES.
23836         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
23837         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
23838         (GBB_CLOOG_IV_TYPES): Removed.
23839
23840 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23841
23842         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
23843         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
23844         (detect_commutative_reduction): Same.
23845
23846 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23847
23848         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
23849         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
23850         argument.
23851         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
23852         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
23853         (rewrite_commutative_reductions_out_of_ssa): Same.
23854         * passes.c (execute_function_todo): Call verify_ssa for every pass
23855         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
23856         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
23857         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
23858         with an extra argument.
23859         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
23860         verify_ssa only when the extra argument is true.
23861         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
23862         with an extra argument.
23863         (tree_transform_and_unroll_loop): Same.
23864
23865 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
23866
23867         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
23868         for all the passes of the LNO having LOOP_CLOSED_SSA.
23869         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
23870         * tree-loop-distribution.c (pass_loop_distribution): Same.
23871         * tree-pass.h (TODO_verify_loops): Removed.
23872         * tree-ssa-loop.c (pass_tree_loop_init): Same.
23873         (pass_lim): Same.
23874         (pass_tree_unswitch): Same.
23875         (pass_predcom): Same.
23876         (pass_vectorize): Same.
23877         (pass_linear_transform): Same.
23878         (pass_graphite_transforms): Same.
23879         (pass_iv_canon): Same.
23880         (pass_complete_unroll): Same.
23881         (pass_complete_unrolli): Same.
23882         (pass_parallelize_loops): Same.
23883         (pass_loop_prefetch): Same.
23884         (pass_iv_optimize): Same.
23885
23886 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
23887
23888         PR middle-end/32824
23889         * passes.c (init_optimization_passes): Move pass_lim before
23890         pass_copy_prop and pass_dce_loop.
23891
23892 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
23893
23894         PR target/43667
23895         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
23896         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
23897         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
23898         MULTI_* defines for 4 argument vpermil2p* builtins.
23899
23900 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
23901
23902         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
23903         * config/i386/i386.c (x86_maybe_negate_const_int): New.
23904         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
23905         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
23906         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
23907         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
23908         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
23909         Use x86_maybe_negate_const_int to output insn mnemonic.
23910         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
23911         check from instruction predicate.  Update comments.
23912         * config/i386/sync.md (sync_add<mode>): Use
23913         x86_maybe_negate_const_int to output insn mnemonic.
23914
23915 2010-04-06  Jan Hubicka  <jh@suse.cz>
23916
23917         PR tree-optimization/42906
23918         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
23919         IGNORE_SELF argument.  Set visited_control_parents for fully
23920         processed BBs.
23921         (find_obviously_necessary_stmts): Update call of
23922         mark_control_dependent_edges_necessary.
23923         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
23924
23925 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
23926
23927         * config/i386/i386.md: Remove comment about 'e' and 'E'
23928         operand modifier.
23929
23930 2010-04-06  Richard Guenther  <rguenther@suse.de>
23931
23932         PR tree-optimization/43627
23933         * tree-vrp.c (extract_range_from_unary_expr): Widenings
23934         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
23935         not varying.
23936
23937 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
23938
23939         * BASE-VER: Change to 4.6.0.
23940
23941         PR target/43638
23942         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
23943         handling.
23944
23945 2010-04-06  Richard Guenther  <rguenther@suse.de>
23946
23947         PR middle-end/43661
23948         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
23949
23950 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23951
23952         * doc/invoke.texi (Optimize Options): Document that LTO
23953         won't remove object access purely due to incompatible
23954         declarations.
23955
23956 2010-04-04  Matthias Klose  <doko@ubuntu.com>
23957
23958         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
23959         Initialize variable.
23960
23961 2010-04-03  Richard Guenther  <rguenther@suse.de>
23962
23963         PR middle-end/42509
23964         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
23965         require a non-NULL MEM_OFFSET.
23966
23967 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
23968
23969         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
23970         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
23971         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
23972         config/alpha/predicates.md, config/arm/arm.md,
23973         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
23974         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
23975         config/darwin9.h, config/darwin.c, config/darwin.h,
23976         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
23977         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
23978         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
23979         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
23980         config/mips/mips.md, config/mn10300/mn10300.c,
23981         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
23982         config/rs6000/aix.h, config/rs6000/dfp.md,
23983         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
23984         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
23985         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
23986         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
23987         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
23988         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
23989         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
23990         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
23991         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
23992         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
23993         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
23994         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
23995         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
23996         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
23997         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
23998         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
23999         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24000         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24001         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24002         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24003         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24004         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24005         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24006         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24007         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24008         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24009         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24010         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24011         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24012         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24013         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24014         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24015         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24016         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24017         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24018         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24019
24020 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24021
24022         PR other/43620
24023         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24024         * aclocal.m4: Regenerate.
24025
24026 2010-04-02  Richard Guenther  <rguenther@suse.de>
24027
24028         PR tree-optimization/43629
24029         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24030         if we have seen a constant value.
24031
24032 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24033
24034         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24035
24036 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24037
24038         PR target/43469
24039         * arm.c (legitimize_tls_address): Adjust call to
24040         gen_tls_load_dot_plus_four.
24041         (arm_note_pic_base): New function.
24042         (arm_cannot_copy_insn_p): Use it.
24043         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24044         constraint.
24045
24046 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24047
24048         PR bootstrap/43531
24049
24050         Revert:
24051         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24052
24053         * Makefile.in ($(out_object_file)): Depend on
24054         gt-$(basename $(notdir $(out_file))).h.
24055
24056 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24057
24058         * config.gcc (lm32-*-rtems*): Add t-lm32.
24059
24060 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24061
24062         * config.gcc: Add lm32-*-rtems*.
24063         * config/lm32/rtems.h: New file.
24064
24065 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24066
24067         PR target/42609
24068         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24069
24070 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24071
24072         * dwarf2out.c (output_compilation_unit_header): For
24073         -gdwarf-4 use version 4 instead of version 3.
24074         (output_line_info): For version 4 and above emit additional
24075         maximum ops per insn header field.
24076         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24077
24078         * dwarf2out.c (is_c_family, is_java): Remove.
24079         (lower_bound_default): New function.
24080         (add_bound_info, gen_descr_array_type_die): Use it.
24081
24082 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24083
24084         PR debug/43325
24085         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24086         re-declaration when it happens in a function.
24087
24088 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24089
24090         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24091         (cgraph_remove_function_insertion_hook): Same.
24092         (cgraph_call_function_insertion_hooks): Same.
24093
24094 2010-04-01  Richard Guenther  <rguenther@suse.de>
24095
24096         PR middle-end/43614
24097         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24098         and TREE_THIS_VOLATILE.
24099         (copy_ref_info): Likewise.
24100         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24101         * tree.c (build6_stat): Ignore side-effects of all but arg5
24102         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24103         TARGET_MEM_REF.
24104
24105 2010-04-01  Richard Guenther  <rguenther@suse.de>
24106
24107         PR tree-optimization/43607
24108         * ipa-type-escape.c (check_call): Do not access non-existing
24109         arguments.
24110
24111 2010-04-01  Richard Guenther  <rguenther@suse.de>
24112
24113         PR middle-end/43602
24114         Revert
24115         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24116                     Jack Howarth  <howarth@bromo.med.uc.edu>
24117
24118         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24119         variables TLS.
24120
24121 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24122
24123         * doc/install.texi (Prerequisites): Document libelf usability on
24124         IRIX 5/6 and Solaris 2.
24125         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24126         Update GNU as, GNU ld requirements.
24127         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24128         Document Sun Studio compiler download.
24129         Update and simplify as, ld recommendations.
24130         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24131
24132 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24133
24134         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24135         with_tune_32 to pentium4.
24136
24137 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24138
24139         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24140
24141 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24142
24143         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24144         obsoletion, removal.
24145         Update IDO URL.
24146         Document GNU as requirement.
24147         Update configure requirements.
24148         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24149         Recomment IRIX 6.5.18+.
24150         Document IDF/IDL requirement.
24151         Document GNU as requirement.
24152         Document GNU ld bootstrap failure.
24153         Remove freeware.sgi.com reference.
24154
24155 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24156
24157         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24158         UNIX V4.0, V5.0 obsoletion, removal.
24159         Remove --with-gc=simple reference.
24160         Update VM requirements during bootstrap.
24161         Remove -oldas bootstrap description.
24162         Update binutils reference.
24163         Remove comparison failure note.
24164
24165 2010-03-31  Richard Guenther  <rguenther@suse.de>
24166             Zdenek Dvorak  <ook@ucw.cz>
24167             Sebastian Pop  <sebastian.pop@amd.com>
24168
24169         PR middle-end/43464
24170         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24171         with multiple arguments.
24172         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24173
24174 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24175
24176         * graphite-dependences.c (print_pddr): Call print_pdr with an
24177         extra argument.
24178         * graphite-poly.c (debug_pdr): Add an extra argument for the
24179         verbosity level.
24180         (print_pdr): Same.
24181         (print_pbb_domain): Same.
24182         (print_pbb): Same.
24183         (print_scop_context): Same.
24184         (print_scop): Same.
24185         (print_cloog): Same.
24186         (debug_pbb_domain): Same.
24187         (debug_pbb): Same.
24188         (print_pdrs): Same.
24189         (debug_pdrs): Same.
24190         (debug_scop_context): Same.
24191         (debug_scop): Same.
24192         (debug_cloog): Same.
24193         (print_scop_params): Same.
24194         (debug_scop_params): Same.
24195         (print_iteration_domain): Same.
24196         (print_iteration_domains): Same.
24197         (debug_iteration_domain): Same.
24198         (debug_iteration_domains): Same.
24199         (print_scattering_function): Same.
24200         (print_scattering_functions): Same.
24201         (debug_scattering_function): Same.
24202         (debug_scattering_functions): Same.
24203         * graphite-poly.h (debug_pdr): Update declaration.
24204         (print_pdr): Same.
24205         (print_pbb_domain): Same.
24206         (print_pbb): Same.
24207         (print_scop_context): Same.
24208         (print_scop): Same.
24209         (print_cloog): Same.
24210         (debug_pbb_domain): Same.
24211         (debug_pbb): Same.
24212         (print_pdrs): Same.
24213         (debug_pdrs): Same.
24214         (debug_scop_context): Same.
24215         (debug_scop): Same.
24216         (debug_cloog): Same.
24217         (print_scop_params): Same.
24218         (debug_scop_params): Same.
24219         (print_iteration_domain): Same.
24220         (print_iteration_domains): Same.
24221         (debug_iteration_domain): Same.
24222         (debug_iteration_domains): Same.
24223         (print_scattering_function): Same.
24224         (print_scattering_functions): Same.
24225         (debug_scattering_function): Same.
24226         (debug_scattering_functions): Same.
24227
24228 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24229
24230         * graphite-poly.c (print_scattering_function_1): New.
24231         (print_scattering_function): Call it.
24232         (print_scop_params): Remove spaces at the end of lines.
24233         (print_cloog): New.
24234         (debug_cloog): New.
24235         * graphite-poly.h (print_cloog): Declared.
24236         (debug_cloog): Declared.
24237
24238 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24239
24240         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
24241         in loop->header.
24242         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
24243         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
24244         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
24245         to switch between adding the IV bump in loop->latch or in loop->header.
24246
24247 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24248
24249         * graphite-poly.c (print_scattering_function): Pretty print following
24250         the scoplib format.
24251         (print_pdr): Same.
24252         (print_pbb_domain): Same.
24253         (dump_gbb_cases): Same.
24254         (dump_gbb_conditions): Same.
24255         (print_pdrs): Same.
24256         (print_pbb): Same.
24257         (print_scop_params): Same.
24258         (print_scop_context): Same.
24259         (print_scop): Same.
24260         (print_pbb_body): New.
24261         (lst_indent_to): New.
24262         (print_lst): Start new lines with a #.
24263         * graphite-poly.h (pbb_bb): New.
24264         (pbb_index): Use pbb_bb.
24265         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
24266         disjuncts.
24267         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
24268
24269 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24270
24271         * dwarf2out.c (size_of_die): For -gdwarf-4 use
24272         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
24273         and 0 instead of 1 for dw_val_class_flag.
24274         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
24275         dw_val_class_range_list, dw_val_class_loc_list,
24276         dw_val_class_lineptr and dw_val_class_macptr, use
24277         DW_FORM_flag_present for dw_val_class_flag and
24278         DW_FORM_exprloc for dw_val_class_loc.
24279         (output_die): For -gdwarf-4 print dw_val_class_loc
24280         size as uleb128 instead of 1 or 2 bytes and don't print
24281         anything for dw_val_class_flag.
24282
24283         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
24284         instead of cselib_lookup following by tweaking locs->setting_insn.
24285
24286         PR bootstrap/43596
24287         * cselib.c (cselib_process_insn): Clear cselib_current_insn
24288         even before returning from label, setjmp call or volatile asm
24289         handling.
24290
24291 2010-03-31  Richard Guenther  <rguenther@suse.de>
24292
24293         PR middle-end/43600
24294         * cgraphunit.c (cgraph_output_in_order): Do not allocate
24295         temporary data on stack.
24296
24297 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24298
24299         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
24300         (PUSHSECTION_ASM_OP): Remove.
24301         (POPSECTION_ASM_OP): Remove.
24302         (PUSHSECTION_FORMAT): Remove.
24303         * config/sol2.h (PUSHSECTION_FORMAT): Define.
24304         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
24305         * config/sol2.c (solaris_output_init_fini): Use it.
24306
24307 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24308
24309         PR 43574
24310         * opt-functions.awk (var_type_struct): Use signed char type
24311         for simple variables.
24312
24313 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24314
24315         * config/sol2.c: Include output.h.
24316         (solaris_assemble_visibility): New function.
24317         * config/t-sol2 (sol2.o): Add output.h dependency.
24318         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
24319         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
24320         Redefine.
24321
24322 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
24323
24324         PR target/43580
24325         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
24326         V2SImode or XFmode on PRE_DEC.
24327
24328         PR debug/43557
24329         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
24330         BLKmode.
24331
24332 2010-03-31  Jie Zhang  <jie@codesourcery.com>
24333
24334         PR 43562
24335         * reload.h (caller_save_initialized_p): Declare.
24336         * toplev.c (backend_init_target): Don't call
24337         init_caller_save but set caller_save_initialized_p to false.
24338         * caller-save.c (caller_save_initialized_p): Define.
24339         (init_caller_save): Check caller_save_initialized_p.
24340         * ira.c (ira): Call init_caller_save if flag_caller_saves.
24341
24342 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24343
24344         PR target/39048
24345         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
24346         and soft-fp/t-softfp to tmake_file.
24347         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
24348         (LIBGCC2_TF_CEXT): Define.
24349         (TF_SIZE): Define.
24350
24351 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
24352
24353         PR debug/42977
24354         * cselib.c (n_useless_values): Document handling of debug locs.
24355         (n_useless_debug_values, n_debug_values): New variables.
24356         (new_elt_loc_list): Don't add to debug values, keep count.
24357         (promote_debug_loc): New.
24358         (cselib_reset_table): Zero new variables.
24359         (entry_and_rtx_equal_p): Promote debug locs.
24360         (discard_useless_locs): Increment n_useless_debug_values for
24361         debug values.
24362         (remove_useless_values): Adjust n_useless_values and n_debug_values
24363         with n_useless_debug_values.
24364         (add_mem_for_addr): Promote debug locs.
24365         (cselib_lookup_mem): Likewise.
24366         (cselib_lookup_addr): Renamed to...
24367         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
24368         (cselib_log_lookup): ... this.  Turn into...
24369         (cselib_lookup_addr): ... new wrapper.
24370         (cselib_lookup_from_insn): New.
24371         (cselib_invalidate_regno): Increment n_useless_debug_values for
24372         debug values.
24373         (cselib_invalidate_mem): Likewise.
24374         (cselib_process_insn): Take n_deleted and n_debug_values into
24375         account to guard remove_useless_value call.
24376         (cselib_finish): Zero n_useless_debug_values.
24377         * cselib.h (cselib_lookup_from_insn): Declare.
24378         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
24379         (sched_analyze_2): Likewise.
24380
24381 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
24382
24383         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
24384         functions.
24385         (adjust_mems): Replace narrowing SUBREG of expression containing
24386         just PLUS, MINUS, MULT and ASHIFT of registers and constants
24387         with operations in the narrower mode.
24388
24389         PR debug/43593
24390         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
24391         regs_invalidated_by_call instead all call_used_reg_set registers.
24392
24393 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24394
24395         PR middle-end/43430
24396         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
24397         pointer comparisons with types_compatible_p.
24398         * tree-vect-stmts.c (vectorizable_call): Same.
24399         (vectorizable_condition): Same.
24400
24401 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24402
24403         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
24404         stack check if the mask would be zero.
24405
24406 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24407             Jack Howarth  <howarth@bromo.med.uc.edu>
24408
24409         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24410         variables TLS.
24411
24412 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
24413
24414         PR other/25232
24415         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
24416         and __unordtf2.
24417         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
24418         Include ___unordxf2 and ___unordtf2.
24419         * config/i386/libgcc-glibc.ver: Do not define inheritance from
24420         GCC_4.4.0 here.
24421
24422 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
24423
24424         * config/lm32/t-lm32: New file.
24425         * config.gcc: Use the above file when targetting lm32.
24426
24427 2010-03-28  Duncan Sands  <baldrick@free.fr>
24428
24429         * Makefile.in (PLUGIN_HEADERS): Add except.h.
24430
24431 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24432
24433         PR middle-end/43431
24434         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
24435         Improve vectorization cost model diagnostic.
24436
24437 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
24438
24439         PR middle-end/43436
24440         * tree-vect-data-refs.c (vect_analyze_data_refs): When
24441         compute_data_dependences_for_loop returns false, early exit
24442         and output an extra diagnostic for the failed data reference
24443         analysis.
24444
24445 2010-03-29  Richard Guenther  <rguenther@suse.de>
24446
24447         PR tree-optimization/43560
24448         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
24449         (can_sm_ref_p): Treat stores to readonly locations as trapping.
24450
24451 2010-03-29  Jie Zhang  <jie@codesourcery.com>
24452
24453         PR 43564
24454         * toplev.c (process_options): Set optimization_default_node
24455         and optimization_current_node.
24456         * opts.c (decode_options): Don't set optimization_default_node
24457         and optimization_current_node.
24458
24459 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
24460
24461         * config/rtems.h: Abandon -qrtems_debug.
24462
24463 2010-03-28  Jan Hubicka  <jh@suse.cz>
24464
24465         PR tree-optimization/43505
24466         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
24467         map should not be copied.
24468
24469 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24470
24471         PR middle-end/41674
24472         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
24473         cdtors, set DECL_PRESERVE_P.
24474         * ipa.c (cgraph_externally_visible_p): Return true if declaration
24475         should be preseved.
24476
24477 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
24478
24479         PR tree-optimization/43528
24480         * stor-layout.c (place_field): Check that constant fits into
24481         unsigned HWI when skipping calculation of MS bitfield layout.
24482
24483 2010-03-27  Jan Hubicka  <jh@suse.cz>
24484
24485         PR middle-end/43391
24486         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
24487         notice_global_symbol work.
24488
24489 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
24490
24491         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
24492         instead of dwarf2out_decl.
24493         (struct var_loc_node): Remove section_label field.
24494         (dwarf2out_function_decl): New function.
24495         (dwarf2out_var_location): Don't set section_label field.
24496         (dwarf2out_begin_function): Don't empty decl_loc_table here.
24497
24498 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
24499
24500         PR tree-optimization/43544
24501         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24502         First argument for builtin vectorized function hook is now a
24503         tree to be able to distinguish between machine specific and
24504         standard builtins.
24505         * targhooks.c (default_builtin_vectorized_function): Ditto.
24506         * targhooks.h (default_builtin_vectorized_function): Ditto.
24507         * target.h (struct gcc_target): Ditto.
24508         * tree-vect-stmts.c (vectorizable_function): Ditto.
24509         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
24510         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
24511         Ditto.
24512
24513 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
24514
24515         PR c/43381
24516         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
24517         nested binding iff it is a FUNCTION_DECL.
24518         (store_parm_decls_newstyle): Pass nested=true to bind for
24519         FUNCTION_DECLs amongst parameters.
24520
24521 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
24522
24523         * var-tracking.c (vt_expand_loc_callback): Don't run
24524         cselib_expand_value_rtx_cb in dummy mode if
24525         cselib_dummy_expand_value_rtx_cb returned false.
24526
24527         * var-tracking.c (emit_note_insn_var_location): For one part
24528         notes with offset 0, don't add EXPR_LIST around the location.
24529         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
24530         add_location_or_const_value_attribute): Adjust for that change.
24531
24532         PR debug/43540
24533         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
24534         into first operand and location into second.
24535         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
24536         dw_cfi_oprnd_loc for DW_CFA_expression.
24537         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
24538         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
24539         assume first argument is regnum and second argument is location.
24540
24541 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
24542
24543         PR target/42113
24544         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
24545         of scratch register to DImode.  Split to DImode comparison operator.
24546         Use SImode subreg of scratch register in the multiplication.
24547         (*cmp_sadd_sidi): Ditto.
24548         (*cmp_ssub_si): Ditto.
24549         (*cmp_ssub_sidi): Ditto.
24550
24551 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
24552
24553         PR target/43524
24554         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
24555         Remove invalid assert and wrong comment.
24556
24557 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
24558
24559         PR debug/43516
24560         * flags.h (final_insns_dump_p): New extern.
24561         * final.c (final_insns_dump_p): New variable.
24562         (rest_of_clean_state): Set it before -fdump-final-insns=
24563         dumping, clear afterwards.
24564         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
24565         MEM_ALIAS_SET on MEMs.
24566
24567 2010-03-26  David S. Miller  <davem@davemloft.net>
24568
24569         * configure.ac: Fix sparc GOTDATA_OP bug check.
24570         * configure: Rebuild.
24571
24572 2010-03-26  Alan Modra  <amodra@gmail.com>
24573
24574         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
24575
24576 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24577
24578         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
24579         TLS_SECTION_ASM_FLAG.
24580
24581 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
24582
24583         PR bootstrap/43511
24584         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
24585         Clear first_function_block_is_cold.
24586
24587         PR c/43385
24588         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
24589         argument if the argument is truth_value_p.
24590
24591 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24592
24593         * config/rs6000/constraints.md: Update copyright year for my changes.
24594
24595         PR target/43484
24596         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
24597         used in reg+reg addressing, swap registers.
24598
24599 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
24600
24601         PR debug/43293
24602         * target.h (struct gcc_target): Add code_end hook.
24603         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
24604         if not yet defined.
24605         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
24606         * toplev.c (compile_file): Call targetm.asm_out.code_end
24607         hook before unwind info/debug info output.
24608         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
24609         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
24610         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24611         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
24612         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
24613         * config/i386/i386.c (ix86_file_end): Renamed to...
24614         (ix86_code_end): ... this.  Make static.  Don't call
24615         file_end_indicate_exec_stack.  Emit unwind info using
24616         final_start_function/final_end_function.
24617         (darwin_x86_file_end): Remove.
24618         (TARGET_ASM_CODE_END): Define.
24619         * config/i386/i386.h (TARGET_ASM_FILE_END,
24620         NEED_INDICATE_EXEC_STACK): Don't define.
24621         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
24622         (TARGET_ASM_FILE_END): Define to darwin_file_end.
24623         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
24624         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
24625
24626         PR target/43498
24627         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
24628         at the beginning and final_end_function at the end.
24629         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24630
24631 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24632
24633         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
24634         and Sun as TLS syntax.
24635         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
24636         * configure: Regenerate.
24637         * config.in: Regenerate.
24638         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
24639         (default_elf_asm_named_section): Use it.
24640         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
24641         (i386_output_dwarf_dtprel): Likewise.
24642         (output_addr_const_extra): Likewise.
24643         (output_pic_addr_const): Lowercase @GOTTPOFF.
24644         (output_addr_const_extra): Likewise.
24645         (output_pic_addr_const): Lowercase @GOTNTPOFF.
24646         (output_addr_const_extra): Likewise.
24647         (output_pic_addr_const): Lowercase @INDNTPOFF.
24648         (output_addr_const_extra): Likewise.
24649         (output_pic_addr_const): Lowercase @NTPOFF.
24650         (output_addr_const_extra): Likewise.
24651         (output_pic_addr_const): Lowercase @TPOFF.
24652         (output_addr_const_extra): Likewise.
24653         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
24654         (*tls_global_dynamic_64): Likewise.
24655         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
24656         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
24657
24658         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
24659         (ASM_OUTPUT_TLS_COMMON): Use it.
24660         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
24661
24662         PR target/38118
24663         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
24664         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
24665         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
24666         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
24667         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24668         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
24669
24670 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24671
24672         * config/i386/i386.c (override_options): Don't accept
24673         -mtls-dialect=sun any longer.
24674         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
24675         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
24676         (*tls_local_dynamic_base_32_sun): Likewise.
24677         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
24678
24679 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
24680
24681         PR debug/43508
24682         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24683         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
24684
24685         PR debug/43479
24686         * ira.c (adjust_cleared_regs): New function.
24687         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
24688
24689         PR debug/19192
24690         PR debug/43479
24691         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
24692         from gimple_block.
24693         * expr.c (expand_expr_real): Restore previous
24694         curr_insn_source_location and curr_insn_block after
24695         expand_expr_real_1 call.
24696         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
24697         instead of expand_expr_real_1.
24698
24699 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
24700
24701         PR rtl-optimization/43413
24702         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
24703         hard regs too.
24704
24705 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
24706
24707         PR target/43348
24708         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
24709         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
24710
24711 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24712
24713         * config/i386/i386.c (ix86_target_string): Add -mfma.
24714         Fix a typo in comment.
24715
24716 2010-03-22  Mike Stump  <mikestump@comcast.net>
24717
24718         PR target/23071
24719         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
24720         Don't overly align based upon packed packed fields.
24721
24722 2010-03-22  Jason Merrill  <jason@redhat.com>
24723
24724         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
24725         Use () rather than [], and move before the element type.
24726
24727 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24728
24729         * doc/configfiles.texi (Configuration Files): Removed
24730         fixinc/Makefile*, intl/Makefile.*.
24731         * doc/makefile.texi: Fixed markup. Abstract from version
24732         control system used.
24733         (Makefile): Removed obsolete java/parse.y example.
24734         * doc/sourcebuild.texi: Likewise.
24735         (Top Level): Added config, gnattools, libdecnumber, libgcc,
24736         libgomp, libssp.  Removed fastjar.
24737         (Miscellaneous Docs): Clarify location.
24738         Added COPYING3, COPYING3.LIB.
24739         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
24740
24741 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24742
24743         PR target/38085
24744         * config/i386/i386.c (x86_function_profiler)
24745         [!NO_PROFILE_COUNTERS]: Fix typo.
24746         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
24747         instead of callq.
24748
24749 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
24750             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24751
24752         * doc/sourcebuild.texi (Test Directives): Split into six
24753         subsections, with most of the current text in new subsections
24754         Directives, Selectors, and Final Actions.
24755         (Directives): Split list of test directives into multiple
24756         subsubsections.
24757         (Selectors): Describe use and syntax of selectors.
24758         (Effective-Target Keywords): Describe all existing keywords.
24759         (Add Options): Describe features for dg-add-options.
24760         (Require Support): Describe variants of dg-require-support.
24761         (Final Actions): Describe commands to use in dg-final.
24762
24763 2010-03-22  Michael Matz  <matz@suse.de>
24764
24765         PR middle-end/43475
24766         * recog.c (validate_replace_rtx_group): Replace also in
24767         REG_EQUAL and REG_EQUIV notes.
24768
24769 2010-03-22  Richard Guenther  <rguenther@suse.de>
24770
24771         PR tree-optimization/43390
24772         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
24773         sure vector extracts are type correct.
24774
24775 2010-03-22  Richard Guenther  <rguenther@suse.de>
24776
24777         PR middle-end/40106
24778         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
24779         x * sqrt (x) even when optimizing for size if the target
24780         has native support for sqrt.
24781
24782 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
24783
24784         * varasm.c (make_decl_rtl_for_debug): Also clear
24785         flag_mudflap for the duration of make_decl_rtl call.
24786
24787         PR debug/43443
24788         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
24789         locs from preserved VALUEs.
24790
24791 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24792
24793         PR middle-end/42718
24794         * pa.md (movmemsi): Set align to one if zero.
24795         (movmemdi): Likewise.
24796
24797 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
24798
24799         PR target/42321
24800         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
24801         with their corresponding prologue pushes.
24802
24803 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
24804
24805         PR target/43156
24806         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
24807         at the begining or end.
24808         (spu_expand_epilogue): Likewise.
24809
24810 2010-03-20  Richard Guenther  <rguenther@suse.de>
24811
24812         PR rtl-optimization/43438
24813         * combine.c (make_extraction): Properly zero-/sign-extend an
24814         extraction of the low part of a CONST_INT.  Also handle
24815         CONST_DOUBLE.
24816
24817 2010-03-19  Mike Stump  <mikestump@comcast.net>
24818
24819         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
24820         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
24821         (override_options): Use SUBTARGET32_DEFAULT_CPU.
24822
24823 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
24824
24825         PR c/43211
24826         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
24827         an error.
24828
24829 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
24830
24831         PR rtl-optimization/42258
24832         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
24833         use that may match DEF.
24834
24835         PR target/40697
24836         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
24837         the cost of loading the constant rather than assuming
24838         COSTS_N_INSNS (1).
24839         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
24840         outer code is AND, do the same tests as the andsi3 expander and
24841         return COSTS_N_INSNS (1) if and is cheap.
24842
24843         * optabs.c (avoid_expensive_constant): Fix formatting.
24844
24845 2010-03-19  Michael Matz  <matz@suse.de>
24846
24847         PR c++/43116
24848         * attribs.c (decl_attributes): When rebuilding a function pointer
24849         type use the same qualifiers as the original pointer type.
24850
24851 2010-03-19  Martin Jambor  <mjambor@suse.cz>
24852
24853         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
24854         and is_gimple_ip_invariant_address.
24855
24856 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24857
24858         Revert
24859         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24860
24861         * config/arm/arm.c (arm_override_options): Turn off
24862         flag_dwarf2_cfi_asm for AAPCS variants.
24863
24864 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24865
24866         PR target/43399
24867         * config/arm/arm.c (emit_multi_reg_push): Update comments.
24868         Use PRE_MODIFY instead of PRE_DEC.
24869         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
24870         (vfp_emit_fstmd): Likewise.
24871
24872 2010-03-19  Michael Matz  <matz@suse.de>
24873
24874         PR target/43305
24875         * builtins.c (expand_builtin_interclass_mathfn,
24876         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
24877         if that fails.
24878
24879 2010-03-19  Richard Guenther  <rguenther@suse.de>
24880
24881         PR tree-optimization/43415
24882         * tree-ssa-pre.c (phi_translate): Split out worker to ...
24883         (phi_translate_1): ... this.
24884         (phi_translate): Move all caching here.  Cache all NARY
24885         and REFERENCE translations.
24886
24887 2010-03-19  David S. Miller  <davem@davemloft.net>
24888
24889         With help from Eric Botcazou.
24890         * config/sparc/sparc.c: Include dwarf2out.h.
24891         (emit_pic_helper): Delete.
24892         (pic_helper_symbol_name): Delete.
24893         (pic_helper_emitted_p): Delete.
24894         (pic_helper_needed): New.
24895         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
24896         (get_pc_thunk_name): New.
24897         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
24898         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
24899         Set pic_helper_needed to true.  Don't call emit_pic_helper.
24900         (sparc_expand_prologue): Update load_pic_register call.
24901         (sparc_output_mi_thunk): Likewise.
24902         (sparc_file_end): Emit a hidden comdat symbol for the PIC
24903         thunk if possible.  Output CFI information as needed.
24904
24905 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
24906             Jack Howarth  <howarth@bromo.med.uc.edu>
24907
24908         PR target/36399
24909         * config/i386/i386.h: Fix ABI on darwin x86-32.
24910
24911 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
24912
24913         * tree.h: Declare make_decl_rtl_for_debug.
24914         * varasm.c (make_decl_rtl_for_debug): New.
24915         * dwarf2out.c (rtl_for_decl_location): Call it.
24916         * cfgexpand.c (expand_debug_expr): Call it.
24917
24918 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
24919
24920         PR bootstrap/43399
24921         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
24922         mem_mode.
24923
24924         PR bootstrap/43403
24925         * var-tracking.c (vt_init_cfa_base): Do nothing if
24926         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
24927
24928 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
24929
24930         PR debug/42873
24931         * var-tracking.c (canonicalize_vars_star): New.
24932         (dataflow_post_merge_adjust): Use it.
24933
24934 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
24935
24936         PR debug/43058
24937         * var-tracking.c (non_suitable_const): New function.
24938         (add_uses): For DEBUG_INSNs with constants, don't record any
24939         value, instead just the constant value itself.
24940         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
24941         is not VAR_LOC_UNKNOWN_P, set var to the constant.
24942         (emit_notes_in_bb): Likewise.
24943         (emit_note_insn_var_location): For onepart variables if
24944         cur_loc is a VOIDmode constant, use DECL_MODE.
24945
24946 2010-03-18  Martin Jambor  <mjambor@suse.cz>
24947
24948         PR middle-end/42450
24949         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
24950         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
24951         all non-clones.  Moved call redirection...
24952         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
24953         (cgraph_materialize_all_clones): Dispose of all
24954         combined_args_to_skip bitmaps.
24955         (verify_cgraph_node): Do not check for edges pointing to wrong
24956         nodes in inline clones.
24957         * tree-inline.c (copy_bb): Call
24958         cgraph_redirect_edge_call_stmt_to_callee.
24959         * ipa.c (cgraph_remove_unreachable_nodes): Call
24960         cgraph_node_remove_callees even when there are used clones.
24961
24962 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
24963
24964         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
24965
24966 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
24967
24968         PR target/43383
24969         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
24970         for 32bit.
24971
24972 2010-03-18  Michael Matz  <matz@suse.de>
24973
24974         PR middle-end/43419
24975         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
24976         into sqrt(x) if we need to preserve signed zeros.
24977
24978 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
24979             Eric Botcazou  <ebotcazou@adacore.com>
24980
24981         PR rtl-optimization/43360
24982         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
24983         note if we don't know its invariant status.
24984
24985 2010-03-18  Michael Matz  <matz@suse.de>
24986
24987         PR tree-optimization/43402
24988         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
24989         PHI chains of ssa names registered for update.
24990
24991 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
24992
24993         PR target/42427
24994         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
24995         non-offsettable and pre_modify update addressing.
24996         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
24997         and "2" alternatives "#".
24998         (*movdd_softfloat32): Make all alternatives "#";
24999         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25000         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25001         (*movdf_softfloat32): Make all alternatives "#";
25002         (movdi): Use the new DIFD mode iterator to create a common splitter
25003         for movdi, movdf and movdd patterns.
25004
25005 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25006
25007         * common.opt (dumpdir): Remove redundant tab.
25008
25009 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25010
25011         PR tree-optimization/43347
25012         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25013         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25014
25015 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25016
25017         PR rtl-optimization/42216
25018         * regrename.c (create_new_chain): New function, broken out from...
25019         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25020         appending a use to an empty chain.
25021         (build_def_use): Remove previous changes that convert OP_INOUT to
25022         OP_OUT operands; instead detect the case where an OP_INOUT operand
25023         uses a previously untracked register and create an empty chain for it.
25024
25025 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25026
25027         * doc/extend.texi (Function Attributes): Rewrite unfinished
25028         sentence in ms_abi documentation.
25029
25030 2010-03-17  Alan Modra  <amodra@gmail.com>
25031
25032         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25033         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25034         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25035         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25036
25037 2010-03-16  Richard Henderson  <rth@redhat.com>
25038
25039         PR middle-end/43365
25040         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25041         (lower_try_finally): Save and restore eh_seq around the expansion
25042         of the try-finally.
25043
25044 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25045
25046         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25047         statements before splitting block.
25048
25049 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25050
25051         * doc/sourcebuild.texi (Testsuites): Fix markup.
25052         Use pathnames relative to gcc/testsuite.
25053         (Test Directives): Move description of how timeout is determined.
25054         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25055         (C Tests): Correct gcc.misc-tests directory.
25056         Framework tests now live in gcc.test-framework.
25057
25058 2010-03-16  Richard Guenther  <rguenther@suse.de>
25059
25060         PR middle-end/43379
25061         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25062         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25063
25064 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25065             Alexandre Oliva  <aoliva@redhat.com>
25066
25067         PR tree-optimization/42917
25068         * lambda-code.c (remove_iv): Skip debug statements.
25069         (lambda_loopnest_to_gcc_loopnest): Likewise.
25070         (not_interesting_stmt): Debug statements are not interesting.
25071
25072 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25073
25074         PR debug/43051
25075         PR debug/43092
25076         * cselib.c (cselib_preserve_constants,
25077         cfa_base_preserved_val): New static variables.
25078         (preserve_only_constants): New function.
25079         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25080         clear its REG_VALUES.  If cselib_preserve_constants, don't
25081         empty the whole hash table, but preserve there VALUEs with constants,
25082         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25083         (cselib_preserve_cfa_base_value): New function.
25084         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25085         (cselib_init): Change argument to int bitfield.  Set
25086         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25087         is in it.
25088         (cselib_finish): Clear cselib_preserve_constants and
25089         cfa_base_preserved_val.
25090         * cselib.h (enum cselib_record_what): New enum.
25091         (cselib_init): Change argument to int.
25092         (cselib_preserve_cfa_base_value): New prototype.
25093         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25094         * dse.c (dse_step1): Likewise.
25095         * cfgcleanup.c (thread_jump): Likewise.
25096         * sched-deps.c (sched_analyze): Likewise.
25097         * gcse.c (local_cprop_pass): Likewise.
25098         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25099         If FN is non-NULL, call the callback always and whenever it returns
25100         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25101         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25102         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25103         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25104         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25105         * var-tracking.c: Include recog.h.
25106         (bb_stack_adjust_offset): Remove.
25107         (vt_stack_adjustments): Don't call it, instead just gather the
25108         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25109         (adjust_stack_reference): Remove.
25110         (compute_cfa_pointer): New function.
25111         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25112         (struct adjust_mem_data): New type.
25113         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25114         functions.
25115         (get_address_mode): New function.
25116         (replace_expr_with_values): Use it.
25117         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25118         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25119         (adjust_sets): Remove.
25120         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25121         Use get_address_mode.
25122         (get_adjusted_src): Remove.
25123         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25124         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25125         (add_with_sets): Don't call adjust_sets.
25126         (fp_setter, vt_init_cfa_base): New functions.
25127         (vt_initialize): Change return type to bool.  Move most of pool etc.
25128         initialization to the beginning of the function from end.  Pass
25129         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25130         If !frame_pointer_needed, call vt_stack_adjustment before mos
25131         vector is filled, call vt_init_cfa_base if argp/framep has been
25132         eliminated to sp.  If frame_pointer_needed and argp/framep has
25133         been eliminated to hard frame pointer, set
25134         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25135         encountering fp setter in the prologue.  For MO_ADJUST, call
25136         log_op_type before pusing the op into mos vector, not afterwards.
25137         Call adjust_insn before cselib_process_insn/add_with_sets,
25138         call cancel_changes (0) afterwards.
25139         (variable_tracking_main_1): Adjust for vt_initialize calling
25140         vt_stack_adjustments and returning whether it succeeded or not.
25141
25142 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25143
25144         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25145         debug statements.
25146
25147 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25148
25149         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25150         has been set.
25151         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25152         drap_reg has not been set.
25153
25154 2010-03-15  Michael Matz  <matz@suse.de>
25155
25156         PR middle-end/43300
25157         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25158         use it to expand block copies.
25159         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25160         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25161         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25162
25163 2010-03-15  Richard Guenther  <rguenther@suse.de>
25164
25165         PR tree-optimization/43367
25166         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25167         elimination check.
25168
25169 2010-03-15  Richard Guenther  <rguenther@suse.de>
25170
25171         PR tree-optimization/43317
25172         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25173
25174 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25175
25176         PR tree-optimization/43141
25177         * tree-sra.c (create_abstract_origin): New function.
25178         (modify_function): Call create_abstract_origin.
25179
25180 2010-03-15  Chris Demetriou  <cgd@google.com>
25181
25182         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25183         wasn't copied.
25184
25185 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25186
25187         PR middle-end/43354
25188         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25189         call insert_out_of_ssa_copy for default definitions.
25190
25191 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25192
25193         * graphite-clast-to-gimple.c (my_long_long): Defined.
25194         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
25195         * graphite-sese-to-poly.c (my_long_long): Defined.
25196         (scop_ivs_can_be_represented): Use it.
25197
25198 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25199
25200         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
25201         graphite-max-bbs-per-function, and loop-block-tile-size.
25202         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
25203         with "maximum".
25204         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
25205
25206 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25207
25208         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
25209         forward declaration.
25210         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
25211         (add_upper_bounds_from_estimated_nit): New.
25212         (build_loop_iteration_domains): Use it.
25213
25214 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25215
25216         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
25217
25218 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25219
25220         PR middle-end/43306
25221         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
25222         should be an INTEGER_CST.  Also handle CASE_CONVERT.
25223
25224 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25225
25226         * graphite.c (graphite_initialize): To bound the number of bbs per
25227         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
25228         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
25229         * doc/invoke.texi: Document it.
25230
25231 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25232
25233         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
25234         * graphite-sese-to-poly.h (build_poly_scop): Same.
25235
25236 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25237
25238         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
25239         the number of parameters in the scop.  Use as an upper bound
25240         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
25241         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
25242         * doc/invoke.texi: Document it.
25243
25244 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
25245
25246         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
25247         * doc/c-tree.texi: Remove.
25248         * doc/generic.texi: Merge c-tree.texi here.
25249         * doc/gccint.texi (Trees): Remove menu entry.
25250         (c-tree.texi): Remove @include.
25251         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
25252         * doc/languages.texi (Reading RTL): Ditto.
25253
25254 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
25255
25256         PR target/42869
25257         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
25258
25259 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
25260
25261         PR middle-end/42431
25262         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
25263         code added to work around reload clobbering CONST insns.
25264
25265 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
25266
25267         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
25268         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
25269         (cselib_preserve_only_values): Remove retain argument, don't
25270         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
25271         * cselib.h (cselib_preserve_only_values): Remove retain argument.
25272         * var-tracking.c (micro_operation): Move insn field before union.
25273         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
25274         (struct variable_tracking_info_def): Remove n_mos field, change
25275         mos into a vector of micro_operations.
25276         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
25277         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
25278         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
25279         changing into a vector.
25280         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
25281         come before all other uops generated by add_stores.
25282         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
25283         argument removal.
25284         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
25285         a vector.  Run just one pass over the bbs instead of separate counting
25286         and computation phase.
25287         (vt_finalize): Free VTI (bb)->mos vector instead of array.
25288
25289         PR debug/43329
25290         * tree-inline.c (remap_decls): Put old_var rather than origin_var
25291         into *nonlocalized_list vector.
25292         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
25293         even if origin is non-NULL.
25294         (gen_variable_die): Likewise.
25295         (process_scope_var): Don't change origin.
25296         (gen_decl_die): Likewise.
25297         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
25298         before adding new edges instead of after it, fix moving over
25299         debug stmts.
25300
25301 2010-03-11  David S. Miller  <davem@davemloft.net>
25302
25303         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
25304         of four.
25305         * configure: Rebuild.
25306
25307 2010-03-11  Martin Jambor  <mjambor@suse.cz>
25308
25309         PR tree-optimization/43257
25310         * tree.c (assign_assembler_name_if_neeeded): New function.
25311         (free_lang_data_in_cgraph): Assembler name assignment moved to the
25312         above new function.
25313         * tree.h (assign_assembler_name_if_neeeded): Declare.
25314         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
25315         the function if needed.
25316
25317 2010-03-11  Chris Demetriou  <cgd@google.com>
25318
25319         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
25320         include/stdint-gcc.h, and include/stdint.h world-readable.
25321
25322 2010-03-11  Richard Guenther  <rguenther@suse.de>
25323
25324         PR tree-optimization/43255
25325         * tree-vrp.c (process_assert_insertions_for): Do not insert
25326         asserts for trivial conditions.
25327
25328 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25329
25330         PR tree-optimization/43280
25331         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
25332         generation.  Move calculation of size out of the if branch.
25333         (find_bswap): Modify compare number generation.
25334
25335 2010-03-11  Richard Guenther  <rguenther@suse.de>
25336
25337         PR lto/43200
25338         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
25339         (input_gimple_stmt): Fixup handled component types during
25340         operand read.  Also fix up decls in ADDR_EXPRs.
25341
25342 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
25343
25344         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
25345         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
25346
25347 2010-03-10  Jan Hubicka  <jh@suse.cz>
25348
25349         PR c/43288
25350         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
25351         * varasm.c (get_variable_section): Don't do that here...
25352         (make_decl_rtl): ... and here.
25353         (do_assemble_alias): Produce decl RTL.
25354         (assemble_alias): Likewise.
25355
25356 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25357
25358         PR debug/43290
25359         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
25360         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
25361         of fde->vdrap_reg.
25362         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
25363         (based_loc_descr): Only express drap or vdrap regno based expressions
25364         using DW_OP_fbreg when not optimizing.
25365         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
25366         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
25367         REG_CFA_SET_VDRAP note.
25368
25369 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
25370
25371         PR tree-optimization/43236
25372         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
25373         error in calculation of base address in reverse iteration case.
25374         (generate_builtin): Take number of latch executions if the statement
25375         is in the latch.
25376
25377 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
25378
25379         PR middle-end/42859
25380         * tree-eh.c: Include pointer-set.h.
25381         (lower_eh_dispatch): Filter out duplicate case labels and
25382         remove the unneeded edge when the label is unused.  Return
25383         true when some edges are removed.
25384         (execute_lower_eh_dispatch): When any lowering resulted in
25385         removing an edge, also delete unreachable blocks.
25386
25387 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
25388
25389         PR bootstrap/43287
25390         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25391         UNSPEC_MACHOPIC_OFFSET.
25392
25393 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
25394
25395         PR target/43294
25396         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
25397         (m68k_delegitimize_address): New function.
25398
25399 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
25400
25401         PR debug/43299
25402         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
25403
25404         PR debug/43299
25405         * var-tracking.c (adjust_sets): New function.
25406         (count_with_sets, add_with_sets): Use it.
25407         (get_adjusted_src): New inline function.
25408         (add_stores): Use it.
25409
25410         PR debug/43304
25411         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
25412         call cselib_dummy_expand_value_rtx_cb instead of
25413         cselib_expand_value_rtx_cb.
25414
25415         PR debug/43293
25416         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
25417         * config/i386/i386.c: Include debug.h and dwarf2out.h.
25418         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
25419         and .cfi_endproc around the pic thunks.
25420         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
25421         all queued unwind info register saves are saved before the call.
25422         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
25423         considered as sp-=4 for unwind info and the pop as sp+=4 which
25424         also clobbers dest, but doesn't actually restore it.
25425
25426         PR debug/43290
25427         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
25428         RTX_FRAME_RELATED_P.
25429
25430 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25431
25432         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
25433         whitespaces in output template.
25434
25435 2010-03-09  Jie Zhang  <jie@codesourcery.com>
25436
25437         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
25438         out array boundary.
25439
25440 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25441
25442         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
25443         builtins.exp in a separate job.
25444
25445 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25446
25447         * graphite-sese-to-poly.c (add_param_constraints): Use
25448         lower_bound_in_type and upper_bound_in_type.
25449
25450 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25451
25452         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
25453         instead of unsigned_type_node.
25454
25455 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25456             Reza Yazdani  <reza.yazdani@amd.com>
25457
25458         PR middle-end/43065
25459         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
25460         on pointer type parameters.
25461
25462 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25463
25464         PR middle-end/42644
25465         PR middle-end/42130
25466         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
25467         handle conversions from pointer to integers.
25468         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
25469         induction variable, to be able to work with code generated by CLooG.
25470         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
25471         (build_poly_scop): Bail out if we cannot codegen a loop.
25472
25473 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
25474
25475         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
25476         code generation with gloog_error.
25477
25478 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25479
25480         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
25481         Call fold_convert on all the returned values.
25482         (expand_scalar_variables_expr): Pass to
25483         expand_scalar_variables_ssa_name the type of the resulting expression.
25484
25485 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25486
25487         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
25488         ppl_min_for_le_pointset.
25489         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
25490         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
25491
25492 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25493
25494         * graphite-dependences.c (map_into_dep_poly): Removed.
25495         (dependence_polyhedron_1): Use combine_context_id_scat.
25496
25497 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25498
25499         * graphite-poly.h (struct poly_scattering): Add layout documentation.
25500         (struct poly_bb): Same.
25501         (combine_context_id_scat): New.
25502
25503 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25504
25505         PR middle-end/42326
25506         * sese.c (name_defined_in_loop_p): Return false for default
25507         definitions.
25508
25509 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25510
25511         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
25512         and clean up the logic.
25513
25514 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
25515
25516         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
25517         early return.
25518
25519 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
25520
25521         * var-tracking.c (remove_cselib_value_chains): Define only for
25522         ENABLE_CHECKING.
25523         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
25524         delete_slot_part, emit_notes_for_differences_1): Don't call
25525         remove_cselib_value_chains here.
25526         (set_slot_part, emit_notes_for_differences_2): Don't call
25527         add_cselib_value_chains here.
25528         (preserved_values): New vector.
25529         (preserve_value): New function.
25530         (add_uses, add_stores, vt_add_function_parameters): Use it
25531         instead of cselib_preserve_value.
25532         (changed_values_stack): New vector.
25533         (check_changed_vars_0): New function.
25534         (check_changed_vars_1, check_changed_vars_2): Use it.
25535         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
25536         changed_values_stack VALUEs.
25537         (vt_emit_notes): For all preserved_values call
25538         add_cselib_value_chains.  If ENABLE_CHECKING call
25539         remove_cselib_value_chains before verifying value_chains is empty.
25540         Initialize and free changed_values_stack.
25541         (vt_initialize): Initialize preserved_values.
25542         (vt_finalize): Free preserved_values.
25543
25544 2010-03-08  Richard Guenther  <rguenther@suse.de>
25545
25546         PR tree-optimization/43269
25547         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
25548         region detection.
25549
25550 2010-03-08  Martin Jambor  <mjambor@suse.cz>
25551
25552         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
25553         (ipa_is_param_called): Removed.
25554         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
25555         (ipa_print_node_params): Do not print the called flag.
25556         (ipa_write_node_info): Do not stream the called flag.
25557         (ipa_read_node_info): Likewise.
25558
25559 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
25560
25561         PR debug/43176
25562         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
25563         * cselib.c (struct expand_value_data): Add dummy field.
25564         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
25565         dummy to false.
25566         (cselib_dummy_expand_value_rtx_cb): New function.
25567         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
25568         any rtl.
25569         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
25570         * var-tracking.c: Include pointer-set.h.
25571         (variable): Change n_var_parts to char from int.  Add
25572         cur_loc_changed and in_changed_variables fields.
25573         (variable_canonicalize): Remove.
25574         (shared_var_p): New inline function.
25575         (unshare_variable): Maintain cur_loc_changed and
25576         in_changed_variables fields.  If var was in changed_variables,
25577         replace it there with new_var.  Just copy cur_loc instead of
25578         resetting it to something else.
25579         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
25580         (dataflow_set_union): Don't call variable_canonicalize.
25581         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
25582         of their DEBUG_EXPR_TREE_DECLs.
25583         (canonicalize_loc_order_check): Verify that cur_loc is NULL
25584         and in_changed_variables and cur_loc_changed is false.
25585         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
25586         and cur_loc_changed.  Don't update cur_loc here.
25587         (variable_merge_over_src): Don't call variable_canonicalize.
25588         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
25589         removing loc that is equal to cur_loc, clear cur_loc,
25590         set cur_loc_changed and ensure variable_was_changed is called.
25591         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
25592         compare pointers in cur_loc check, if it is equal to loc,
25593         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
25594         (variable_different_p): Remove compare_current_location argument,
25595         don't compare cur_loc.
25596         (dataflow_set_different_1): Adjust variable_different_p caller.
25597         (variable_was_changed): If dv had some var in changed_variables
25598         already, reset in_changed_variables flag for it and propagate
25599         cur_loc_changed over to the new variable.  On empty var
25600         always set cur_loc_changed.  Set in_changed_variables on whatever
25601         var is added to changed_variables.
25602         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
25603         Use shared_var_p.  When removing loc that is equal to cur_loc,
25604         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
25605         end, don't set it to something else, just call variable_was_changed.
25606         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
25607         loc being removed, clear cur_loc and set cur_loc_changed.
25608         Set cur_loc_changed if all locations have been removed.
25609         (struct expand_loc_callback_data): New type.
25610         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
25611         allocated.  Always create SUBREGs if simplify_subreg failed.
25612         Prefer to use cur_loc, when that fails and still in
25613         changed_variables (and seen first time) recompute it.  Set
25614         cur_loc_changed of variables which had to change cur_loc and
25615         compute elcd->cur_loc_changed if any of the subexpressions used
25616         had to change cur_loc.
25617         (vt_expand_loc): Adjust to pass arguments in
25618         expand_loc_callback_data structure.
25619         (vt_expand_loc_dummy): New function.
25620         (emitted_notes): New variable.
25621         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
25622         that weren't used for any other decl in current
25623         emit_notes_for_changes call call vt_expand_loc_dummy to update
25624         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
25625         first loc_chain location if NULL before.  Always use just
25626         cur_loc instead of first loc_chain location.  When cur_loc_changed
25627         is false, when not --enable-checking=rtl just don't emit any note.
25628         When rtl checking, compute the note and assert it is the same
25629         as previous note.  Clear cur_loc_changed and in_changed_variables
25630         at the end before removing from changed_variables.
25631         (check_changed_vars_3): New function.
25632         (emit_notes_for_changes): Traverse changed_vars to call
25633         check_changed_vars_3 on each changed var.
25634         (emit_notes_for_differences_1): Clear cur_loc_changed and
25635         in_changed_variables.  Recompute cur_loc of new_var.
25636         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
25637         (vt_emit_notes): Initialize and destroy emitted_notes.
25638
25639 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
25640
25641         PR rtl-optimization/42220
25642         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
25643         Use verify_reg_tracked to determine if we should use OP_OUT rather
25644         than OP_INOUT.
25645         (build_def_use): If we see an in-out operand for a register that we
25646         know nothing about, treat is an output if possible, fail the block if
25647         not.
25648
25649 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
25650
25651         PR debug/42897
25652         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
25653         permanently.
25654
25655 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
25656
25657         PR debug/42897
25658         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
25659         uses of relevant DEFs that are dead outside the loop too.
25660
25661 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
25662
25663         * var-tracking.c (dataflow_set_merge): Swap src and src2.
25664         Reverted:
25665         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
25666         PR debug/41371
25667         * var-tracking.c (values_to_unmark): New variable.
25668         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25669         values_to_unmark vector.  Moved body to...
25670         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
25671         instead queue it into values_to_unmark vector.
25672         (vt_find_locations): Free values_to_unmark vector.
25673
25674 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
25675
25676         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
25677         (site.exp): Export them when plugins are enabled.
25678
25679 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
25680
25681         PR middle-end/42326
25682         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
25683         that contain scevs.
25684         (chrec_fold_multiply): Same.
25685
25686 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25687
25688         PR c/43248
25689         * c-decl.c (build_compound_literal): Return early if init is
25690         an error_mark_node.
25691
25692 2010-03-04  Martin Jambor  <mjambor@suse.cz>
25693
25694         PR tree-optimization/43164
25695         PR tree-optimization/43191
25696         * tree-sra.c (type_consists_of_records_p): Reject records with
25697         zero-size bit-fields at the end.
25698
25699 2010-03-04  Mike Stump  <mikestump@comcast.net>
25700
25701         * Makefile.in (TAGS): Remove *.y.
25702
25703 2010-03-04  Richard Guenther  <rguenther@suse.de>
25704
25705         PR tree-optimization/40761
25706         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
25707         in reverse order.
25708         (my_rev_post_order_compute): New function.
25709         (init_pre): Call it.
25710
25711 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
25712
25713         PR middle-end/43209
25714         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
25715         decrease the cost of an IV candidate when the cost is infinite.
25716
25717 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25718
25719         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
25720         Use '3DNow!' for the extension of that name, ensure normal space
25721         after the string.
25722         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
25723
25724 2010-03-03  Jeff Law  <law@redhat.com>
25725
25726         * PR middle-end/32693
25727         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
25728         than gen_rtx_SUBREG.
25729         (extract_bit_field_1): Likewise.
25730
25731 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
25732
25733         * doc/sourcebuild.texi (Test directives): Document that arguments
25734         include-opts and exclude-opts are now optional for dg-skip-if,
25735         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
25736
25737 2010-03-03  Jason Merrill  <jason@redhat.com>
25738
25739         PR c++/12909
25740         * cgraph.h (varpool_node): Add extra_name field.
25741         * varpool.c (varpool_extra_name_alias): New.
25742         (varpool_assemble_decl): Emit extra name aliases.
25743         (varpool_mark_needed_node): Look past an extra name alias.
25744         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
25745         * lto-streamer-in.c (lto_input_tree): Read it.
25746         * lto-streamer-out.c (output_unreferenced_globals): Write it.
25747
25748 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
25749
25750         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
25751         (sparc*-*-solaris2*): ...this.
25752
25753 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
25754
25755         PR debug/43229
25756         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
25757         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
25758         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
25759         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
25760
25761         PR debug/43237
25762         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
25763         fallthrough to default handling, just with want_address 0 instead of 2.
25764         For single element lists, add_AT_loc directly, otherwise create an
25765         artificial variable DIE and stick location list to it.
25766
25767         PR debug/43177
25768         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
25769         (VAL_EXPR_HAS_REVERSE): Define.
25770         (reverse_op): New function.
25771         (add_stores): For reversible operations add an extra MO_VAL_USE.
25772
25773 2010-03-02  Jason Merrill  <jason@redhat.com>
25774
25775         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
25776
25777 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
25778
25779         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
25780         (sparc64-*-linux*): Likewise.
25781         (sparc64-*-solaris2*): Include assembler files before linker ones.
25782         (sparc-*-solaris2*): Simplify and reorder to match previous case.
25783         * config/sparc/gas.h: Delete.
25784         * config/sparc/sol2-64.h: Add copyright notice.
25785         * config/sparc/sol2-gas-bi.h: Likewise.
25786         * config/sparc/sol2-gld.h: Likewise.
25787         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
25788         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
25789         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
25790         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
25791         (sparc_elf_asm_named_section): Rename into...
25792         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
25793
25794 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
25795
25796         * config/alpha/alpha.c (override_options): Fix -mtune error message.
25797
25798 2010-03-02  Jeff Law  <law@redhat.com>
25799
25800         PR middle-end/42431
25801         * reload1.c (rtx_p, substitute_stack): Declare.
25802         (substitute): Record addresses of changed rtxs.
25803         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
25804         Restore the original rtx when complete.
25805         (reload): Free subsitute_stack when complete.
25806
25807 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
25808
25809         * doc/gccint.texi (menu): Add Testsuites as a chapter.
25810         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
25811         new chapter.
25812         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
25813         LTO Testing, gcov Testing, profopt Testing, compat Testing,
25814         Torture Tests): Change from subsection to section.
25815
25816 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
25817             Steven Bosscher  <steven@gcc.gnu.org>
25818
25819         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
25820         instead of bb.
25821
25822 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
25823
25824         PR middle-end/42640
25825         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
25826         the assignment from the new induction variable to the assignment
25827         of the value from the original loop PHI function.
25828
25829 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
25830             Daniel Jacobowitz  <dan@codesourcery.com>
25831
25832         * doc/sourcebuild.texi (Test directives): Clarify options to
25833         dg-skip-if.
25834
25835 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25836
25837         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
25838         Disable cfi directives unless GCC and gas agree on using read-only
25839         .eh_frame sections for 64-bit.
25840         * configure: Regenerate.
25841
25842 2010-03-01  Richard Guenther  <rguenther@suse.de>
25843
25844         PR tree-optimization/43220
25845         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
25846         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
25847
25848 2010-03-01  Richard Guenther  <rguenther@suse.de>
25849             Martin Jambor  <mjambor@suse.cz>
25850
25851         PR middle-end/41250
25852         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
25853         gimplified parameters.
25854
25855 2010-03-01  Christian Bruel  <christian.bruel@st.com>
25856
25857         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
25858
25859 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
25860
25861         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
25862
25863 2010-03-01  Richard Guenther  <rguenther@suse.de>
25864
25865         PR middle-end/43213
25866         * expr.c (expand_assignment): Use the alias-oracle to tell
25867         if the rhs aliases the result decl.
25868
25869 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25870
25871         PR pch/14940
25872         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
25873         to sol_gt_pch_get_address.
25874         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
25875         64-bit, SPARC and x86.
25876         (sol_gt_pch_get_address): New function.
25877
25878 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
25879
25880         * toplev.h (inform_n, error_n): Declare.
25881         * diagnostic.c (inform_n, error_n): New function.
25882
25883 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
25884
25885         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
25886         has no rtl yet when processing local_decls, queue it and recheck
25887         if deferred stack allocation hasn't assigned it rtl.
25888
25889 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
25890
25891         * config/sh/sh.c (unspec_bbr_uid): New.
25892         (gen_block_redirect): Use it instead of INSN_UID.
25893         (gen_far_branch): Likewise.
25894
25895 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
25896
25897         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
25898         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
25899
25900 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25901
25902         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
25903         (Warning Options): -Wno-conversion-null is valid for
25904         Objective-C++ as well.
25905         * doc/tm.texi (Named Address Spaces): Likewise.
25906         * doc/plugins.texi (Plugins): Replace TABs with spaces.
25907         * doc/tree-ssa.texi (Tree SSA): Likewise.
25908
25909 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
25910
25911         PR bootstrap/43202
25912         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
25913         by default.  Don't set the default arch for
25914         i[34567]86-*-darwin*|x86_64-*-darwin*.
25915
25916 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
25917
25918         PR bootstrap/43202
25919         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
25920         default.  Set the default 32bit/64bit archs with $with_arch
25921         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
25922
25923 2010-02-27  Richard Guenther  <rguenther@suse.de>
25924
25925         PR tree-optimization/43186
25926         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
25927         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
25928         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
25929         unroller iterations.
25930
25931 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
25932
25933         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
25934         required and i[34567]86-*-* targets don't support 64bit ISA.
25935
25936 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
25937
25938         PR ada/43096
25939         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
25940         the same alias set.
25941
25942 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
25943
25944         * config.gcc: Set the default arch at least to Prescott for
25945         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
25946         if SSE math is enabled.
25947
25948 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25949
25950         * diagnostic.c (diagnostic_initialize): Update.
25951         (diagnostic_report_diagnostic): Test inhibit_notes_p for
25952         informative notes.
25953         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
25954         (diagnostic_inhibit_notes): New.
25955         * toplev.c (process_options): inhibit notes with -fcompare-debug.
25956
25957 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25958
25959         PR c/20631
25960         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
25961         * doc/standards.texi: Likewise.
25962         * doc/extend.texi: Likewise.
25963         * doc/trouble.texi: Likewise.
25964         * doc/cppopts.texi: Likewise.
25965         * doc/install.texi: Likewise.
25966         * c.opt (std=c90,std=gnu90): New options.
25967         * c-opts.c (c_common_handle_option): Handle them.
25968
25969 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25970
25971         PR c/24577
25972         * c-decl.c (undeclared_variable): Use an informative note.
25973
25974 2010-02-26  Richard Guenther  <rguenther@suse.de>
25975
25976         PR tree-optimization/43186
25977         * gimple.h (gimple_fold): Remove.
25978         * gimple.c (gimple_fold): Remove.  Inline into single user ...
25979         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
25980         Try harder for conditions.
25981
25982 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
25983
25984         PR debug/43190
25985         * function.c (used_types_insert): Don't skip through named pointer
25986         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
25987         and it is different from the main variant's type.
25988
25989 2010-02-26  Nick Clifton  <nickc@redhat.com>
25990
25991         * config/rx/rx.md (sminsi3): Remove bogus alternative.
25992
25993 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
25994
25995         * config.gcc: Support --with-fpmath=sse for x86.
25996
25997         * config/i386/ssemath.h: New.
25998
25999         * doc/install.texi (--with-fpmath=sse): Documented.
26000
26001 2010-02-26  Richard Guenther  <rguenther@suse.de>
26002
26003         PR tree-optimization/43188
26004         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26005         vector types of over-aligned element type.
26006
26007 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26008
26009         PR target/43175
26010         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26011         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26012
26013 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26014
26015         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26016
26017 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26018
26019         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26020         * var-tracking.c: Include diagnostic.h.
26021         (debug_dv): New function.
26022         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26023
26024         PR debug/43160
26025         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26026         (add_value_chain, add_value_chains, remove_value_chain,
26027         remove_value_chains): Handle DEBUG_EXPRs.
26028         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26029
26030         PR debug/43161
26031         * regcprop.c (struct queued_debug_insn_change): New type.
26032         (struct value_data_entry): Add debug_insn_changes field.
26033         (struct value_data): Add n_debug_insn_changes field.
26034         (debug_insn_changes_pool): New variable.
26035         (free_debug_insn_changes, apply_debug_insn_changes,
26036         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26037         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26038         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26039         fields.
26040         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26041         changes for them.
26042         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26043         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26044         changes, call cprop_find_used_regs via note_stores.
26045         (copyprop_hardreg_forward): When copying vd from predecessor
26046         which has any queued DEBUG_INSN changes, make sure the pointers are
26047         cleared.  At the end call df_analyze and then if there are any
26048         DEBUG_INSN changes queued at the end of some basic block for still
26049         live registers, apply them.
26050         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26051
26052 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26053
26054         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26055         (arm*-*-*): Ditto.
26056
26057 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26058
26059         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26060         targets.  Set the default with_cpu/with_arch from arch/cpu.
26061         Allow x86-64 and native for with_cpu/with_arch.
26062
26063 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26064
26065         * ebitmap.c: Change calls to verify_popcount with calls to
26066         sbitmap_verify_popcount.
26067         (ebitmap_clear_bit): Fixed map->cacheindex test and
26068         map>cache update when bit clearing results in an empty
26069         element.
26070
26071 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26072
26073         PR target/43154
26074         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26075         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26076         and support both V2DF and V2DI modes.
26077         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26078         support both V2DF and V2DI modes.
26079         (general): Delete trailing whitespace from a few patterns.
26080
26081         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26082         V2DF/V2DI interleave high/low builtins.
26083
26084         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26085         new VSX builtins.
26086
26087         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26088         interleave high/low functions.
26089
26090 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26091
26092         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26093         #pragma extern_prefix.
26094
26095 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26096
26097         PR debug/43166
26098         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26099         BLKmode, assert op0 is a MEM and just adjust its mode.
26100
26101         PR debug/43165
26102         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26103         if bitpos isn't multiple of mode's bitsize.
26104
26105 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26106
26107         * c.opt (-ftemplate-depth=): New.
26108         (-ftemplate-depth-): Deprecate.
26109         * optc-gen.awk: Handle -ftemplate-depth=.
26110         * opth-gen.awk: Likewise.
26111         * c-opts.c (c_common_handle_option): Likewise.
26112         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26113
26114 2010-02-24  Jason Merrill  <jason@redhat.com>
26115
26116         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26117
26118 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26119
26120         * cfg.c (alloc_aux_for_block): Remove inline.
26121         (alloc_aux_for_edge): Likewise.
26122
26123 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26124
26125         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26126
26127 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26128
26129         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26130         * config/i386/sol2-gas.h: New file.
26131         * config.gcc (i[34567]86-*-solaris2*): Use it.
26132
26133 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26134
26135         PR c/43128
26136         * c-typeck.c (ep_convert_and_check): New.
26137         (build_conditional_expr): Use it.
26138         (build_binary_op): Likewise.
26139
26140 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26141
26142         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26143
26144         PR debug/43150
26145         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26146         bounds even for -O+.
26147         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26148         expr needs to have DECL_NAME set.
26149
26150 2010-02-24  Nick Clifton  <nickc@redhat.com>
26151
26152         * config/mep/mep.c: Include gimple.h.
26153         (mep_function_uses_sp): Delete unused function.
26154         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26155         parameters.  Use unsigned integers to count args.  Return a
26156         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26157
26158 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26159
26160         PR target/43107
26161         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26162         greater or equal to nelt instead of 2 * nelt.
26163         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26164         with nelt - 1.
26165
26166 2010-02-23  Jason Merrill  <jason@redhat.com>
26167
26168         PR debug/42800
26169         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26170         in cfun->local_decls even if they have register types.
26171
26172         PR c++/42837
26173         * stor-layout.c (place_field): Don't warn about unnecessary
26174         DECL_PACKED if the type is packed.
26175
26176 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26177
26178         PR target/43139
26179         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26180         GOTOFF relocs, even when the base reg isn't pic pointer.
26181
26182 2010-02-23  Michael Matz  <matz@suse.de>
26183
26184         PR debug/43077
26185         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26186         (expand_gimple_basic_block): Generate and use debug temps if there
26187         are debug uses left after the last real use of TERed ssa names.
26188         Unlink debug immediate uses when they are expanded.
26189
26190 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26191
26192         PR 43123
26193         * config/i386/i386.c (override_options): Reorganise to provide
26194         better error messages.
26195
26196 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26197
26198         PR middle-end/43083
26199         * graphite-scop-detection.c (create_single_exit_edge): Move
26200         the call to find_single_exit_edge to....
26201         (create_sese_edges): ...here.  Don't handle multiple edges
26202         exiting the function.
26203         (build_graphite_scops): Don't handle multiple edges
26204         exiting the function.
26205
26206 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26207
26208         PR middle-end/43097
26209         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
26210         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
26211
26212 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
26213
26214         PR middle-end/43026
26215         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
26216
26217 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26218
26219         PR c++/43126
26220         * c-typeck.c (convert_arguments): Print declaration location.
26221         * c-common.c (validate_nargs): Rename as
26222         builtin_function_validate_nargs.
26223         (check_builtin_function_arguments): Update.
26224
26225 2010-02-22  Richard Guenther  <rguenther@suse.de>
26226
26227         PR lto/43045
26228         * tree-inline.c (declare_return_variable): Use the type of
26229         the call stmt lhs if available.
26230
26231 2010-02-22  Duncan Sands  <baldrick@free.fr>
26232
26233         * passes.c (register_pass): Always consider all pass lists when
26234         ref_pass_instance_number is zero.
26235
26236 2010-02-22  Richard Guenther  <rguenther@suse.de>
26237
26238         PR tree-optimization/42749
26239         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
26240         parameter.  Do arithmetic in the original type.
26241         (update_accumulator_with_ops): Likewise.
26242         (adjust_accumulator_values): Adjust.
26243
26244 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26245
26246         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
26247         (QI to BLKmode splitter): New splitter.
26248
26249 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
26250
26251         * config/i386/i386.c (initial_ix86_tune_features): Turn on
26252         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
26253
26254 2010-02-22  Richard Guenther  <rguenther@suse.de>
26255
26256         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
26257
26258 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
26259
26260         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
26261         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
26262         ($(T)crti.o, $(T)crtn.o): Remove rules.
26263
26264 2010-02-21  Tobias Burnus  <burnus@net-b.de>
26265
26266         PR fortran/35259
26267         * doc/invoke.texi (-fassociative-math): Document that this
26268         option is automatically enabled for Fortran.
26269
26270 2010-02-20  David S. Miller  <davem@davemloft.net>
26271
26272         * configure.ac: Test if linker and assembler properly support
26273         GOTDATA_OP relocations.
26274         * configure: Rebuild.
26275         * config.in: Likewise.
26276         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
26277         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
26278         (movsi_high_pic): Likewise.
26279         (movdi_lo_sum_pic): Likewise.
26280         (movdi_high_pic): Likewise.
26281         (movsi_pic_gotdata_op): New pattern.
26282         (movdi_pic_gotdata_op): Likewise.
26283         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
26284         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
26285
26286 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
26287
26288         PR target/43067
26289         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
26290         attribute to ssemul.
26291         (xop_mulv2div2di3_high): Ditto.
26292
26293 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26294
26295         PR c++/35669
26296         * c.opt (Wconversion-null): New option.
26297         * doc/invoke.texi (Wconversion-null): Document.
26298
26299 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26300
26301         * common.opt (Wlarger-than-): Add Undocumented.
26302
26303 2010-02-19  Mike Stump  <mikestump@comcast.net>
26304
26305         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
26306
26307 2010-02-19  Jason Merrill  <jason@redhat.com>
26308
26309         PR target/40332
26310         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
26311         * configure: Likewise.
26312
26313 2010-02-20  Alan Modra  <amodra@gmail.com>
26314
26315         PR middle-end/42344
26316         * cgraph.h (cgraph_make_decl_local): Declare.
26317         * cgraph.c (cgraph_make_decl_local): New function.
26318         (cgraph_make_node_local): Use it.
26319         * cgraphunit.c (cgraph_function_versioning): Likewise.
26320         * ipa.c (function_and_variable_visibility): Likewise.
26321
26322 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26323
26324         PR bootstrap/43121
26325         * except.c (sjlj_emit_function_enter): Don't call
26326         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
26327         directly.
26328         * rtl.h (add_reg_br_prob_note): Remove prototype.
26329
26330 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26331
26332         PR 41779
26333         * c-common.c (conversion_warning): Remove widening conversions
26334         before checking the conversion of integers to reals.
26335
26336 2010-02-19  Mike Stump  <mikestump@comcast.net>
26337
26338         PR middle-end/43125
26339         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
26340
26341         PR objc/43061
26342         * cgraphunit.c (process_function_and_variable_attributes): Check
26343         DECL_PRESERVE_P instead of looking up attribute "used".
26344         * ipa-pure-const.c (check_decl): Likewise.
26345         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
26346         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
26347         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
26348         instead of attribute "used".
26349         * config/sol2-c.c (solaris_pragma_init): Likewise.
26350         (solaris_pragma_fini): Likewise.
26351
26352 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26353
26354         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
26355         Use XCNEW instead of xcalloc.
26356         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
26357         XNEW instead of xmalloc.
26358         (get_fields): Use XNEWVEC instead of xmalloc.
26359
26360         PR debug/43084
26361         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
26362         populate vars array.
26363         (create_new_general_access): For debug stmts just reset value.
26364         (get_stmt_accesses): For accesses within debug stmts just record them
26365         using add_access_to_acc_sites instead of preventing the peeling or
26366         counting them as accesses.
26367
26368         PR middle-end/42233
26369         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
26370
26371 2010-02-19  Richard Guenther  <rguenther@suse.de>
26372
26373         PR tree-optimization/42916
26374         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
26375         instructions.
26376
26377 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26378
26379         * configure.ac: Replace all uses of changequote in macro arguments
26380         with proper quoting.
26381
26382 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26383
26384         PR middle-end/42233
26385         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
26386
26387 2010-02-19  Richard Guenther  <rguenther@suse.de>
26388
26389         PR tree-optimization/42944
26390         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
26391         test for aliasing with errno.
26392
26393 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
26394
26395         PR middle-end/42233
26396         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
26397         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
26398         * dojump.c: Include output.h.
26399         (inv): New inline function.
26400         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
26401         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
26402         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
26403         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
26404         argument, pass it down to other calls.
26405         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
26406         add REG_BR_PROB note to the conditional jump.
26407         * cfgexpand.c (add_reg_br_prob_note): Removed.
26408         (expand_gimple_cond): Don't call it, add the probability
26409         as last argument to jumpif_1/jumpifnot_1.
26410         * Makefile.in (dojump.o): Depend on output.h.
26411         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
26412         callers.
26413         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
26414         * stmt.c (do_jump_if_equal): Likewise.
26415         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
26416         * loop-unswitch.c (compare_and_jump_seq): Likewise.
26417         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
26418         Likewise.
26419         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
26420         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
26421         jumpifnot_1 callers.
26422         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
26423         callers.
26424         (store_expr): Adjust jumpifnot caller.
26425         (store_constructor): Adjust jumpif caller.
26426
26427         PR middle-end/42233
26428         * gimplify.c (gimple_boolify): For __builtin_expect call
26429         gimple_boolify also on its first argument.
26430
26431 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
26432
26433         * configure.ac (gnu-unique-object): Wrap regexps using [] in
26434         changequote block.
26435         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
26436         * configure: Regenerated.
26437
26438 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26439
26440         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
26441         lang_hooks.types_compatible_p instead of comptypes.
26442
26443 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26444
26445         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
26446         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
26447         if __prefer_thumb__ is defined.
26448
26449 2010-02-18  Martin Jambor  <mjambor@suse.cz>
26450
26451         PR tree-optimization/43066
26452         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
26453         array with zero-sized element type.
26454
26455 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
26456
26457         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
26458         rtx, allocate struct var_loc_node here and return it to the
26459         caller, and only if it is actually needed.
26460         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
26461         move it earlier and return immediately if it returns NULL.
26462
26463 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
26464
26465         * config/sparc/gas.h: New file.  Restore
26466         TARGET_ASM_NAMED_SECTION to its ELF default.
26467         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
26468         check !HAVE_GNU_AS.
26469         * config/sparc/sparc.c (sparc_elf_asm_named_section):
26470         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
26471         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
26472         after sparc/sysv4.h.
26473
26474 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
26475
26476         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
26477
26478 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
26479
26480         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
26481         patterns from predicated pattern.
26482
26483 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
26484
26485         PR target/43103
26486         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
26487         for insn mnemonic suffix.
26488
26489 2010-02-17  Richard Guenther  <rguenther@suse.de>
26490
26491         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
26492         to loop PHI nodes.
26493
26494 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
26495
26496         PR debug/42918
26497         * caller-save.c (save_call_clobbered_regs): If BB ends with
26498         a DEBUG_INSN, move any notes in between last real insn and the last
26499         DEBUG_INSN after the last DEBUG_INSN.
26500
26501 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
26502
26503         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
26504         Fix return type.  Fix argument type.  Explain meaning of return value.
26505
26506 2010-02-16  Richard Guenther  <rguenther@suse.de>
26507
26508         PR tree-optimization/41043
26509         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
26510         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
26511         statements ...
26512         (vrp_visit_phi_node): ... but only for loop PHI nodes.
26513
26514 2010-02-16  Ira Rosen  <irar@il.ibm.com>
26515
26516         PR tree-optimization/43074
26517         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
26518         * tree-vect-loop.c (vect_analyze_loop_operations): Add
26519         vectorizable cycles in hybrid SLP check.
26520         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
26521
26522 2010-02-16  Richard Guenther  <rguenther@suse.de>
26523
26524         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
26525         (true_dependence): If memrefs_conflict_p computes must-alias
26526         trust it.  Move TBAA check after offset-based disambiguation.
26527         (canon_true_dependence): Likewise.
26528
26529 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
26530
26531         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
26532         * doc/invoke.texi: Document it.
26533         * var-tracking.c: Include toplev.h and params.h.
26534         (vt_find_locations): Return bool indicating success.  Compute
26535         hash sizes unconditionally.  Check new parameter, report.
26536         (variable_tracking_main_1): Check vt_find_locations results and
26537         retry.  Renamed from...
26538         (variable_tracking_main): ... this.  New wrapper to preserve
26539         flag_var_tracking_assignments.
26540         * Makefile.in (var-tracking.o): Adjust dependencies.
26541
26542 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
26543             Jakub Jelinek  <jakub@redhat.com>
26544
26545         PR target/42854
26546         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
26547         if weak_import attribute is present.
26548         * config/darwin.c (machopic_select_section): Likewise.
26549
26550 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
26551
26552         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
26553         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
26554         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
26555         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
26556
26557         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
26558         types.
26559
26560         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26561         Fix argument types.
26562
26563         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
26564         Rewrite text to refer to the names.
26565
26566 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
26567
26568         * config/i386/i386-builtin-types.def
26569         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
26570         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
26571         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
26572         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
26573         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
26574         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
26575         IX86_BUILTIN_VPERMIL2PS256.
26576         (MULTI_ARG_4_DF2_DI_I): Defined.
26577         (MULTI_ARG_4_DF2_DI_I1): Defined.
26578         (MULTI_ARG_4_SF2_SI_I): Defined.
26579         (MULTI_ARG_4_SF2_SI_I1): Defined.
26580         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
26581         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
26582         __builtin_ia32_vpermil2ps256.
26583         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26584         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26585         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
26586         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
26587         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
26588         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
26589         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
26590         CODE_FOR_xop_vpermil2v8sf3.
26591         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
26592         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
26593         * config/i386/xopintrin.h (_mm_permute2_pd): New.
26594         (_mm256_permute2_pd): New.
26595         (_mm_permute2_ps): New.
26596         (_mm256_permute2_ps): New.
26597
26598 2010-02-15  Nick Clifton  <nickc@redhat.com>
26599
26600         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
26601         boolean parameters.  Use emit_jump_insn when emitting a pop
26602         instruction containing a return insn.
26603         (push): Use 'true' rather than '1' as second parameter to F.
26604         (h8300_expand_prologue): Likewise.
26605         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
26606         (h8300_expand_epilogue): Likewise.
26607
26608 2010-02-15  Richard Guenther  <rguenther@suse.de>
26609
26610         PR middle-end/43068
26611         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
26612         if that is zero.
26613
26614 2010-02-15  Nick Clifton  <nickc@redhat.com>
26615
26616         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
26617         delta.
26618
26619 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
26620
26621         * intl.c (fake_ngettext): New function.
26622         * intl.h (fake_ngettext): Declare.
26623         (ngettext): Define macro.
26624         * collect2.c (notice_translated): New function.
26625         (main): Use notice_translated and ngettext.
26626         * collect2.h (notice_translated): Declare.
26627
26628 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
26629
26630         * reorg.c (delete_computation): Comment fixes.
26631         * caller-save.c (setup_save_areas): Idem.
26632         * sel-sched-dump.c (dump_lv_set): Idem.
26633         * rtl.def: Idem.
26634
26635 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26636
26637         * config/s390/s390.c (s390_sched_init): New function.
26638         (TARGET_SCHED_INIT): Target hook defined.
26639
26640 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
26641             Jack Howarth  <howarth@bromo.med.uc.edu>
26642             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
26643
26644         PR target/42982
26645         Partial revert of unintended change in fix for PR41605.
26646         * config/darwin.h: Fix typo.
26647         * config/darwin9.h: Same.
26648
26649 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
26650
26651         * c-pch.c (pch_init): Clear v.
26652
26653 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26654
26655         PR middle-end/42930
26656         * graphite-scop-detection.c (graphite_can_represent_scev): Call
26657         graphite_can_represent_init for MULT_EXPR.
26658
26659 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26660
26661         PR middle-end/42914
26662         PR middle-end/42530
26663         * graphite-sese-to-poly.c (remove_phi): New.
26664         (translate_scalar_reduction_to_array): Call remove_phi.
26665
26666 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26667
26668         PR middle-end/42771
26669         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
26670         * graphite-clast-to-gimple.h (gloog): Update declaration.
26671         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
26672         * graphite-poly.h (struct poly_bb): Add missing comments.
26673         (struct scop): Add poly_scop_p field.
26674         (POLY_SCOP_P): New.
26675         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
26676         * graphite.c (graphite_transform_loops): Build the polyhedral
26677         representation for each scop before code generation.
26678         * sese.c (rename_variables_in_operand): Removed.
26679         (rename_variables_in_expr): Return the renamed expression.
26680         (rename_sese_parameters): New.
26681         * sese.h (rename_sese_parameters): Declared.
26682
26683 2010-02-11  Richard Guenther  <rguenther@suse.de>
26684
26685         PR tree-optimization/42998
26686         * tree-ssa-pre.c (create_expression_by_pieces): Treat
26687         POINTER_PLUS_EXPR properly.
26688
26689 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
26690             Changpeng Fang  <changpeng.fang@amd.com>
26691
26692         PR middle-end/40886
26693         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
26694         the cost of an IV candidate when the IV is used in a test against zero.
26695
26696         * gcc.dg/tree-ssa/ivopts-3.c: New.
26697
26698 2010-02-11  Richard Guenther  <rguenther@suse.de>
26699
26700         PR lto/41664
26701         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
26702         pointer-vs-decl case by swapping refs.  Handle some cases
26703         of pointer-vs-decl disambiguations more conservatively.
26704         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
26705         to false after expanding.
26706
26707 2010-02-11  Richard Guenther  <rguenther@suse.de>
26708
26709         PR driver/43021
26710         * gcc.c (process_command): Handle LTO file@offset case more
26711         appropriately.
26712
26713 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
26714
26715         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
26716         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
26717         of DEBUG_INSNs.
26718         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
26719
26720         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
26721         if MEM's mode size isn't DWARF2_ADDR_SIZE.
26722         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
26723         Optimize eq/ne comparisons when both arguments are known to be
26724         zero-extended.
26725         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
26726         Don't mask operands unnecessarily if they are known to be already
26727         zero-extended.
26728
26729 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
26730
26731         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
26732         instead of loop.
26733
26734 2010-02-10  Richard Guenther  <rguenther@suse.de>
26735
26736         PR tree-optimization/43017
26737         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
26738         for wrapping signed arithmetic.
26739
26740 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
26741
26742         PR debug/43010
26743         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
26744         if no debug info should be emitted for it.
26745
26746 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
26747
26748         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
26749         note when flag_exceptions is set.
26750
26751 2010-02-10  Duncan Sands  <baldrick@free.fr>
26752
26753         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
26754
26755 2010-02-10  Richard Guenther  <rguenther@suse.de>
26756
26757         PR c/43007
26758         * tree.c (get_unwidened): Handle constants.
26759         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
26760
26761 2010-02-10  Martin Jambor  <mjambor@suse.cz>
26762
26763         PR lto/42985
26764         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
26765         check for variable argument counts independently.
26766
26767 2010-02-10  Christian Bruel  <christian.bruel@st.com>
26768
26769         PR target/42841
26770         * config/sh/sh.c (find_barrier): Increase length for non delayed
26771         conditional branches.
26772
26773 2010-02-10  Christian Bruel  <christian.bruel@st.com>
26774
26775         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
26776
26777 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
26778
26779         * builtins.c (set_builtin_user_assembler_name): Also handle
26780         ffs if int is smaller than word.
26781
26782 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
26783
26784         PR middle-end/42973
26785         * ira-conflicts.c (get_dup): Remove.
26786         (process_reg_shuffles): Add new parameter.  Use it as an
26787         additional guard for copy generation.
26788         (add_insn_allocno_copies): Rewrite.
26789
26790 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
26791
26792         * common.opt (fsched2-use-traces): Preserved for backward
26793         compatibility.
26794         * doc/invoke.texi: Remove the documentation about option
26795         -fsched2-use-traces.
26796         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
26797         flag_sched2_use_traces.
26798         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
26799         the backward compatibility flag section.
26800
26801 2010-02-09  Richard Guenther  <rguenther@suse.de>
26802
26803         PR tree-optimization/43008
26804         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
26805         make HEAP variables initialized from global memory if they
26806         are not known builtin functions.
26807         (find_func_aliases): Adjust.
26808
26809 2010-02-09  Richard Guenther  <rguenther@suse.de>
26810
26811         PR tree-optimization/43000
26812         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
26813         arithmetic manually.
26814
26815 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
26816
26817         PR tree-optimization/42931
26818         * tree-loop-linear.c (try_interchange_loops): Don't call
26819         double_int_mul if estimated_loop_iterations failed.
26820
26821 2010-02-08  Martin Jambor  <mjambor@suse.cz>
26822
26823         PR middle-end/42898
26824         * tree-sra.c (build_accesses_from_assign): Do not mark in
26825         should_scalarize_away_bitmap if stmt has volatile ops.
26826         (sra_modify_assign): Do not process assigns piecemeal if if stmt
26827         has volatile ops.
26828
26829 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
26830
26831         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
26832
26833 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
26834
26835         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
26836         before the pattern.
26837
26838 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
26839
26840         PR middle-end/42946
26841         * df-core.c (df_finish_pass): Change type of saved_flags to int.
26842
26843 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
26844
26845         PR middle-end/42988
26846         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
26847         to unknown_dependence.
26848         (graphite_legal_transform_dr): Handle the unknown_dependence.
26849         (graphite_carried_dependence_level_k): Same.
26850
26851 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
26852
26853         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
26854
26855 2010-02-07  Richard Guenther  <rguenther@suse.de>
26856
26857         PR middle-end/42991
26858         * expr.c (get_inner_reference): Always initialize *pbitsize.
26859
26860 2010-02-07  Richard Guenther  <rguenther@suse.de>
26861
26862         PR middle-end/42956
26863         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
26864         new ARRAY_REFs on variable size element or minimal index arrays.
26865         Complete.
26866         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
26867         gimple_fold_indirect_ref.
26868
26869 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
26870
26871         PR target/42957
26872         * arm.c (arm_override_options): Just return if the user has specified
26873         an invalid fpu name.
26874
26875 2010-02-03  Jason Merrill  <jason@redhat.com>
26876
26877         PR c++/42870
26878         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
26879         i386_pe_maybe_record_exported_symbol.
26880
26881 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
26882
26883         PR target/42924
26884         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
26885         (pa_delegitimize_address): New function.
26886
26887 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
26888
26889         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
26890         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
26891
26892 2010-02-05  Richard Guenther  <rguenther@suse.de>
26893
26894         PR lto/42762
26895         * lto-streamer-in.c (get_resolution): Deal with references
26896         to undefined functions.
26897
26898 2010-02-05  Richard Guenther  <rguenther@suse.de>
26899
26900         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
26901         (fold_const_aggregate_ref): Likewise.
26902         (ccp_fold_stmt): Substitute loads.
26903         (maybe_fold_reference): Verify types before substituting.
26904         Unshare properly.
26905         (fold_gimple_assign): Unshare properly.
26906         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
26907
26908 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
26909
26910         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
26911         for rs6000_gen_cell_microcode.
26912
26913 2010-02-04  Richard Guenther  <rguenther@suse.de>
26914
26915         PR rtl-optimization/42952
26916         * dse.c (const_or_frame_p): Remove MEM handling.
26917
26918 2010-02-04  Nick Clifton  <nickc@redhat.com>
26919
26920         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
26921         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26922         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
26923         (mn10300_asm_output_mi_thunk): New function.
26924         (mn10300_can_output_mu_thunk): New function.
26925         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
26926         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
26927         (FUNCTION_ARG): Delete incorrect comment.
26928
26929 2010-02-03  Jason Merrill  <jason@redhat.com>
26930
26931         PR c++/40138
26932         * fold-const.c (operand_equal_p): Handle erroneous types.
26933
26934 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26935
26936         * config/h8300/h8300.md (can_delay): Fix attibute condition.
26937
26938 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
26939
26940         PR rtl-optimization/42941
26941         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
26942         of xmalloc.
26943
26944 2010-02-03  Jason Merrill  <jason@redhat.com>
26945
26946         PR c++/35652
26947         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
26948
26949 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
26950
26951         PR debug/42896
26952         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
26953         (cselib_reset_table): Renamed from...
26954         (cselib_reset_table_with_next_value): ... this.
26955         (cselib_get_next_uid): Renamed from...
26956         (cselib_get_next_unknown_value): ... this.
26957         * cselib.c (next_uid): Renamed from...
26958         (next_unknown_value): ... this.
26959         (cselib_clear_table): Adjust.
26960         (cselib_reset_table): Adjust.  Renamed from...
26961         (cselib_reset_table_with_next_value): ... this.
26962         (cselib_get_next_uid): Adjust.  Renamed from...
26963         (cselib_get_next_unknown_value): ... this.
26964         (get_value_hash): Use hash.
26965         (cselib_hash_rtx): Likewise.
26966         (new_cselib_val): Adjust.  Set and dump uid.
26967         (cselib_lookup_mem): Pass next_uid as hash.
26968         (cselib_subst_to_values): Likewise.
26969         (cselib_log_lookup): Dump uid.
26970         (cselib_lookup): Pass next_uid as hash.  Adjust.
26971         (cselib_process_insn): Adjust.
26972         (cselib_init): Initialize next_uid.
26973         (cselib_finish): Adjust.
26974         (dump_cselib_table): Likewise.
26975         * dse.c (canon_address): Dump value uid.
26976         * print-rtl.c (print_rtx): Print value uid.
26977         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
26978         (dvuid): New type.
26979         (dv_uid): New function, sort of renamed from...
26980         (dv_htab_hash): ... this, reimplemented in terms of it and...
26981         (dv_uid2hash): ... this.  New.
26982         (variable_htab_eq): Drop excess assertions.
26983         (tie_break_pointers): Removed.
26984         (canon_value_cmp): Compare uids.
26985         (variable_post_merge_New_vals): Print uids.
26986         (vt_add_function_parameters): Adjust.
26987         (vt_initialize): Reset table.  Adjust.
26988
26989 2010-02-03  Richard Guenther  <rguenther@suse.de>
26990
26991         PR tree-optimization/42944
26992         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
26993         (call_may_clobber_ref_p_1): Likewise.  Properly handle
26994         malloc and calloc clobbering errno.
26995
26996 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
26997
26998         * doc/invoke.texi: Fix name of sched1 dump.
26999
27000         * opts.c (decode_options): Set flag_tree_switch_conversion
27001         only conditionally on optimize >= 2.
27002
27003         * gcse.c: Assorted comment fixes in pass description.
27004
27005 2010-02-03  Anthony Green  <green@moxielogic.com>
27006
27007         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27008         nop padding in order to maintain alignment of storage location of
27009         target function address.
27010         (moxie_trampoline_init): Store target function address at newly
27011         aligned location.
27012         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27013         to 32.
27014         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27015
27016 2010-02-03  Richard Guenther  <rguenther@suse.de>
27017
27018         PR middle-end/42927
27019         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27020
27021 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27022
27023         * config.gcc: Reenable check for obsolete targets.
27024         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27025         mips-sgi-irix6.[0-4]*.
27026
27027 2010-02-02  Nick Clifton  <nickc@redhat.com>
27028
27029         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27030         constant size of 4 as being the same as 0.
27031         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27032         can take values in the range 0..4.
27033
27034 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27035
27036         PR java/41991
27037         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27038         as _darwin10_Unwind_FindEnclosingFunction().
27039         * libgcc-libsystem.ver: New.
27040
27041 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27042
27043         PR target/41399
27044         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27045         implicitly set registers.
27046
27047 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27048
27049         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27050         (arm_override_options): Allow automatic selection of the thread
27051         pointer register if thumb2.
27052         (legitimize_pic_address): Improve code sequences for Thumb2.
27053         (arm_call_tls_get_addr): Likewise.
27054         (legitimize_tls_address): Likewise.
27055         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27056         (pic_load_addr_32bit): ... this.  New named pattern.
27057         * thumb2.md (pic_load_addr_thumb2): Delete.
27058         (pic_load_dot_plus_four): Delete.
27059         (tls_load_dot_plus_four): New named pattern.
27060
27061 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27062
27063         PR libgomp/29986
27064         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27065         Document fix for TLS bug.
27066
27067 2010-01-31  Richard Guenther  <rguenther@suse.de>
27068
27069         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27070         conservatively correct.
27071
27072 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27073
27074         PR target/42850
27075         Revert:
27076         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27077
27078         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27079
27080 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27081
27082         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27083
27084 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27085
27086         * config.gcc: Adjust order of makefile fragments for mingw targets.
27087
27088 2010-01-31  Richard Guenther  <rguenther@suse.de>
27089
27090         PR middle-end/42898
27091         * gimplify.c (gimplify_init_constructor): For volatile LHS
27092         initialize a temporary.
27093
27094 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27095
27096         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27097         --with-headers
27098         * configure: Regenerate.
27099
27100 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27101
27102         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27103         the same alias set and their sizes different constantness.
27104         (aliasing_component_refs_p): Revert 2009-10-24 change.
27105
27106 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27107
27108         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27109         unused.
27110
27111 2010-01-29  Richard Guenther  <rguenther@suse.de>
27112
27113         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27114         Assert we successfully updated the call.
27115
27116 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27117
27118         PR rtl-optimization/42889
27119         * df.h (df_set_bb_dirty_nonlr): New prototype.
27120         * df-core.c (df_set_bb_dirty_nonlr): New function.
27121         * df-scan.c (df_insn_rescan): Call it instead of
27122         df_set_bb_dirty for DEBUG_INSNs.
27123
27124 2010-01-29  Richard Guenther  <rguenther@suse.de>
27125
27126         PR middle-end/37448
27127         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27128         quadratic behavior in most cases.
27129
27130 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27131
27132         PR target/42891
27133         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27134         in the call to gen_x86_movsicc_0_m1.
27135
27136 2010-01-28  Richard Guenther  <rguenther@suse.de>
27137
27138         PR tree-optimization/42871
27139         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27140
27141 2010-01-28  Richard Guenther  <rguenther@suse.de>
27142
27143         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27144         into call arguments.
27145
27146 2010-01-28  Richard Guenther  <rguenther@suse.de>
27147
27148         PR middle-end/42883
27149         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27150         the forwarder if the destination is an EH landing pad.
27151
27152 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27153
27154         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27155         block list passed to gimple_duplicate_sese_tail.
27156         (parallelize_loops): Avoid parallelization when the function
27157         has_nonlocal_label.
27158         Avoid parallelization when the preheader is IRREDUCIBLE.
27159         Try to optimize when estimated_loop_iterations_int is unresolved.
27160         Add the loop's location to the dump file.
27161         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27162         (gimple_duplicate_sese_tail): Remove the check for the latch.
27163         Redirect nexits to the exit block.
27164         Remove handling of the incoming edges to the latch.
27165         Redirect the backedge from the copied latch to the exit bb.
27166
27167 2010-01-28  Michael Matz  <matz@suse.de>
27168
27169         PR target/42881
27170         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27171         Wrap force_reg into a sequence, emit it before user.
27172
27173 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27174
27175         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27176         (arm_rev): New.
27177         (arm_legacy_rev): Likewise.
27178         (thumb_legacy_rev): Likewise.
27179
27180 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27181
27182         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27183         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
27184         on MEM's address failed, try avoid_constant_pool_reference and
27185         recurse if it returned something different.
27186         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27187         address, try avoid_constant_pool_reference and recurse if it
27188         returned something different.
27189         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27190         address and avoid_constant_pool_reference returned something
27191         different, don't set have_address.
27192
27193 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
27194
27195         PR debug/42861
27196         * var-tracking.c (val_store): Add modified argument, obey it.
27197         Adjust callers.
27198         (count_uses): Move down logging of main.
27199         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
27200         don't need resolution.
27201         (emit_notes_in_bb): Likewise.
27202
27203 2010-01-27  Richard Guenther  <rguenther@suse.de>
27204
27205         PR middle-end/42878
27206         * tree-inline.c (remap_decl): Delay remapping of SSA name
27207         default definitions until we need them.
27208
27209 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27210
27211         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27212         (rs6000_delegitimize_address): New function.
27213
27214         * config/s390/s390.c (s390_delegitimize_address): Call
27215         delegitimize_mem_from_attrs.
27216
27217         PR middle-end/42874
27218         * tree-inline.c (cannot_copy_type_1): Removed.
27219         (copy_forbidden): Don't forbid copying of functions containing
27220         records/unions with variable length fields.
27221
27222 2010-01-27  Christian Bruel  <christian.bruel@st.com>
27223
27224         Revert:
27225         PR target/42841
27226         * config/sh/sh.c (find_barrier): Increase length for non delayed
27227         conditional branches.
27228
27229 2010-01-27  Matthias Klose  <doko@ubuntu.com>
27230
27231         * configure.ac (gnu-unique-object): Fix ldd version check.
27232         * configure: Regenerate.
27233
27234 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27235
27236         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
27237         HAVE_GNU_AS value.
27238         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
27239         Test for HAVE_GNU_AS value.
27240
27241 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27242
27243         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
27244         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
27245         INT64_TYPE): Define.
27246         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
27247         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
27248         INT_LEAST64_TYPE): Define.
27249         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
27250         UINT_LEAST64_TYPE): Define.
27251         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
27252         INT_FAST64_TYPE): Define.
27253         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
27254         UINT_FAST64_TYPE): Define.
27255         (INTMAX_TYPE, UINTMAX_TYPE): Define.
27256         (INTPTR_TYPE, UINTPTR_TYPE): Define.
27257         (SIG_ATOMIC_TYPE): Define.
27258
27259 2010-01-26  Richard Guenther  <rguenther@suse.de>
27260
27261         * df-scan.c (df_scan_set_bb_info): Remove assert.
27262         (df_insn_rescan_debug_internal): Merge asserts.
27263         (df_install_ref): Likewise.
27264         (df_mark_reg): Use bitmap_set_range.
27265         (df_hard_reg_used_p): Remove assert.
27266         (df_hard_reg_used_count): Likewise.
27267
27268 2010-01-26  Richard Guenther  <rguenther@suse.de>
27269
27270         PR rtl-optimization/42685
27271         * web.c (web_main): Ignore DEBUG_INSNs.
27272
27273 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
27274
27275         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
27276
27277         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
27278         Fix types of fndecl and arglist parameters.
27279
27280 2010-01-26  Richard Guenther  <rguenther@suse.de>
27281
27282         PR middle-end/42806
27283         * tree-eh.c (unsplit_eh): Skip debug insns.
27284
27285 2010-01-26  Richard Guenther  <rguenther@suse.de>
27286
27287         PR tree-optimization/42250
27288         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
27289
27290 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
27291
27292         PR fortran/42866
27293         * omp-low.c (expand_omp_sections): Only use single_pred if
27294         l2_bb is single_pred_p.
27295
27296 2010-01-25  Christian Bruel  <christian.bruel@st.com>
27297
27298         PR target/42841
27299         * config/sh/sh.c (find_barrier): Increase length for non delayed
27300         conditional branches.
27301         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
27302
27303 2010-01-24  David S. Miller  <davem@davemloft.net>
27304
27305         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
27306         define if not using GAS.
27307         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27308         Likewise.  Delete SECTION_MERGE code, which is only applicable
27309         when using GAS.
27310
27311 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
27312
27313         PR c++/42748
27314         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
27315         mangling of va_list in system headers.
27316
27317 2010-01-23  Toon Moene  <toon@moene.org>
27318
27319         * tree-predcom.c (combine_chains): Return NULL, not false.
27320
27321 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
27322
27323         * tree-loop-distribution.c (distribute_loop): Fix declaration and
27324         initialization of variable res to agree with return type.
27325
27326 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
27327
27328         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
27329         * tree-sra.c: Add include of expr.h.
27330
27331 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
27332
27333         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
27334         insert the debug stmt on the single non-EH edge from the stmt.
27335
27336 2010-01-22  Richard Henderson  <rth@redhat.com>
27337
27338         PR tree-opt/42833
27339         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
27340         the RHS until after generate_subtree_copies has insertted its
27341         code before the current statement.
27342
27343 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
27344
27345         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
27346
27347         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
27348
27349 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27350
27351         PR tree-optimization/42585
27352         * tree-sra.c (struct access): New field grp_total_scalarization.
27353         (dump_access): Dump the new field.
27354         (should_scalarize_away_bitmap): New variable.
27355         (cannot_scalarize_away_bitmap): Likewise.
27356         (sra_initialize): Allocate new bitmaps.
27357         (sra_deinitialize): Free new bitmaps.
27358         (create_access_1): New function.
27359         (create_access): Parts moved to create_access_1.
27360         (type_consists_of_records_p): New function.
27361         (completely_scalarize_record): Likewise.
27362         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
27363         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
27364         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
27365         access.
27366         (analyze_all_variable_accesses): Completely scalarize small eligible
27367         records.
27368
27369 2010-01-21  Martin Jambor  <mjambor@suse.cz>
27370
27371         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
27372
27373 2010-01-21  Andrew Haley  <aph@redhat.com>
27374
27375         * gcc.c (process_command): Move lang_specific_driver before
27376         setting cc_libexec_prefix.
27377
27378 2010-01-21  Richard Guenther  <rguenther@suse.de>
27379
27380         PR middle-end/19988
27381         * fold-const.c (negate_expr_p): Pretend only negative
27382         real constants are easily negatable.
27383
27384 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
27385             Jason Merrill  <jason@redhat.com>
27386
27387         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
27388         (TYPE_TRANSPARENT_AGGR): this, for union and record.
27389         * calls.c (initialize argument_information): Handle it.
27390         * c-common.c (handle_transparent_union_attribute): Use new name.
27391         * c-decl.c (finish_struct): Ditto.
27392         * c-typeck.c (type_lists_compatible_p): Ditto.
27393         (convert_for_assignment): Use new name and also handle record.
27394         * function.c (aggregate_value_p): Handle it.
27395         (pass_by_reference): Ditto.
27396         (assign_parm_data_types): Ditto.
27397         * print-tree.c (print_node): Ditto.
27398         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
27399         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
27400         * tree.c (first_field): New fn.
27401
27402 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27403
27404         PR target/42818
27405         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
27406         even when linking statically, for now.
27407
27408 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27409
27410         PR debug/42715
27411         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
27412         without a cselib val.
27413         (count_uses): Accept MO_VAL_SET with no val on stores.
27414         (add_stores): Likewise.
27415
27416 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27417
27418         * var-tracking.c (check_value_val): Add a compile time assertion.
27419         (dv_is_decl_p): Simplify.
27420         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
27421         gcc_assert if ENABLE_CHECKING.
27422
27423 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
27424
27425         PR debug/42782
27426         * var-tracking.c: Include tree-flow.h.
27427         (mem_dies_at_call): New.
27428         (dataflow_set_preserve_mem_locs): Use it.
27429         (dataflow_set_remove_mem_locs): Likewise.
27430         (dump_var): Renamed from dump_variable.  Adjust all callers.
27431         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
27432         * Makefile.in (var-tracking.o): Adjust deps.
27433
27434 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
27435
27436         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
27437
27438 2010-01-20  Richard Guenther  <rguenther@suse.de>
27439
27440         PR tree-optimization/42717
27441         * tree-ssa-dce.c (get_live_post_dom): Remove.
27442         (forward_edge_to_pdom): Take an arbitrary edge to copy
27443         degenerate PHI args from.
27444         (remove_dead_stmt): Use the first post-dominator even if it
27445         does not contain live statements as redirection destination.
27446
27447 2010-01-20  Richard Guenther  <rguenther@suse.de>
27448
27449         * tree-inline.c (estimate_num_insns): Handle EH builtins.
27450
27451 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27452
27453         * sel-sched.c (create_speculation_check): Remove set but not used
27454         variable twin.
27455         (try_transformation_cache): Remove set but not used variable ds.
27456         (calculate_privileged_insns): Remove set but not used variables
27457         cur_insn and min_spec_insn.
27458         (find_best_expr): Remove set but not used variable avail_n.
27459         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
27460         variable e.
27461         * cgraphunit.c (assemble_thunk): Remove set but not used variable
27462         false_label.
27463         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
27464         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
27465         new_scop_exit_edge.
27466
27467 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
27468
27469         PR bootstrap/42786
27470         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
27471         cpu types.  Add support for *-sse3 cpu types.
27472         (x86_64-*-*): Ditto.
27473
27474 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27475
27476         PR middle-end/42803
27477         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
27478         argument, call initializer_constant_valid_p_1 instead of
27479         initializer_constant_valid_p, pass CACHE to it, return NULL
27480         immediately if first call returns NULL.
27481         (initializer_constant_valid_p_1): New function.
27482         (initializer_constant_valid_p): Use it.
27483
27484 2010-01-20  Thomas Quinot  <quinot@adacore.com>
27485
27486         * tree.def (PLACEHOLDER_EXPR): Fix comment.
27487
27488 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
27489
27490         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
27491         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
27492         (loc_list_from_tree): Don't handle unsigned division.  Handle
27493         signed modulo using DW_OP_{over,over,div,mul,minus}.
27494         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
27495         modulo instead of signed.
27496
27497 2010-01-20  DJ Delorie  <dj@redhat.com>
27498
27499         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
27500         (Fpa): Pass it
27501         (h8300_emit_stack_adjustment): Propogate it.
27502         (push): Pass it.
27503         (h8300_expand_prologue): Likewise.
27504         (h8300_expand_epilogue): Likewise.
27505
27506 2010-01-19  Michael Matz  <matz@suse.de>
27507
27508         PR tree-optimization/41783
27509         * tree-data-ref.c (toplevel): Include flags.h.
27510         (dump_data_dependence_relation):  Also dump the inputs if the
27511         result will be unknown.
27512         (split_constant_offset_1): Look through some conversions.
27513         * tree-predcom.c (determine_roots_comp): Restart a new chain if
27514         the offset from last element is too large.
27515         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
27516         (reassociate_to_the_same_stmt): Handle vector registers.
27517         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
27518         (e.g. conversions).
27519         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
27520         wide_prolog_niters argument, emit widening instructions.
27521         (vect_do_peeling_for_alignment): Adjust caller, use widened
27522         variant of the iteration cound.
27523         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
27524
27525 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27526
27527         PR target/38697
27528         * config/arm/neon-testgen.m (emit_automatics): New parameter
27529         features. Adjust for Fixed_return_reg feature.
27530         (test_intrinsic): Call emit_automatics with new feature.
27531         * config/arm/neon.ml: Update copyright years.
27532         (features): New Fixed_return_reg feature.
27533         (ops): Update feature for Vget_low.
27534
27535 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
27536
27537         PR tree-optimization/42719
27538         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
27539         stmt uses.
27540
27541         PR debug/42728
27542         * fwprop.c (all_uses_available_at): Return false if def_set dest
27543         is a REG that is used in def_insn.
27544
27545 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
27546
27547         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
27548
27549         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
27550         Add argument names.
27551
27552         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
27553
27554         * target.h (struct gcc_target) <secondary_reload>: Change type
27555         of last argument to secondary_reload_info *.
27556
27557 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
27558
27559         PR target/42774
27560         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
27561         memory references with unaligned offsets.  Remove CQImode handling.
27562         (unaligned_memory_operand): Return 1 for memory references with
27563         unaligned offsets.  Remove CQImode handling.
27564
27565 2010-01-18  Richard Guenther  <rguenther@suse.de>
27566
27567         PR middle-end/39954
27568         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
27569         builtin calls.
27570
27571 2010-01-18  Richard Guenther  <rguenther@suse.de>
27572
27573         PR tree-optimization/42781
27574         * tree-ssa-structalias.c (find_what_var_points_to): Skip
27575         restrict processing only if the original variable was artificial.
27576
27577 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
27578
27579         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
27580         find number of popped argument bytes.
27581
27582         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
27583         Fix the text that describes the return value for invalid insns.
27584
27585         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
27586
27587         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
27588         Clarify what 'cost of the -dependence' is.  Fix quoting.
27589
27590         * toplev.c (default_get_pch_validity): Rename argument to "sz".
27591         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
27592
27593 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
27594
27595         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27596         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
27597
27598 2010-01-17  Richard Guenther  <rguenther@suse.de>
27599
27600         PR middle-end/42248
27601         * function.c (split_complex_args): Take a VEC to modify.
27602         (assign_parms_augmented_arg_list): Build a VEC instead of
27603         a chain of PARM_DECLs.
27604         (assign_parms_unsplit_complex): Take a VEC of arguments.
27605         Do not fixup unmodified parms.
27606         (assign_parms): Deal with the VEC.
27607         (gimplify_parameters): Likewise.
27608
27609 2010-01-17  Richard Guenther  <rguenther@suse.de>
27610
27611         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
27612         node existence check.
27613         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
27614         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
27615         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
27616         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
27617         (gimple_execute_on_growing_pred): Likewise.
27618
27619 2010-01-17  Richard Guenther  <rguenther@suse.de>
27620
27621         PR tree-optimization/42773
27622         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
27623         (compute_antic_aux): Likewise.
27624         (compute_partial_antic_aux): Likewise.
27625
27626 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
27627
27628         PR debug/42767
27629         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
27630         and US_TRUNCATE.
27631
27632 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
27633
27634         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
27635         appearance.
27636
27637         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
27638         Fix markup for strict argument.
27639
27640         (TARGET_SCHED_REORDER2): Fix argument types.
27641
27642         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
27643         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
27644
27645         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
27646         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
27647
27648         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
27649         Add argument name.
27650
27651         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
27652         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
27653         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
27654         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
27655         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
27656
27657         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
27658
27659         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
27660
27661         (TARGET_ASM_RELOC_RW_MASK): Add return type.
27662         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
27663
27664         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
27665
27666         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
27667         Use prototype.
27668
27669         (TARGET_ASM_NAMED_SECTION): Fix argument list.
27670
27671         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
27672         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
27673
27674         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
27675
27676         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
27677
27678         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
27679         referring to it.  Fix language.
27680
27681         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
27682
27683         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
27684
27685         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
27686
27687         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
27688
27689         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
27690         '@var{stream}.  Remove stray 'and'.
27691
27692         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
27693
27694         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
27695
27696         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
27697
27698         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
27699         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
27700
27701         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
27702         Fix description of return value.
27703         Rename argument "sz" to "len."
27704
27705         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
27706         Clarify meaning of 'true' return value.
27707
27708         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
27709
27710         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
27711         rep_mode versus mode_rep.
27712
27713         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
27714
27715         (TARGET_BUILTIN_DECL): Fix name.
27716
27717         (TARGET_COMMUTATIVE_P): Fix type of first argument.
27718
27719         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
27720
27721         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
27722
27723         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
27724
27725         (TARGET_RELAXED_ORDERING): Use @deftypevr.
27726
27727         (TARGET_GET_DRAP_RTX): Note that this is a hook.
27728         Clarify language.
27729
27730         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
27731         Rename argument tm_fn to md_fn.
27732
27733         (TARGET_OPTION_PRINT): Fix argument list.
27734
27735 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
27736
27737         PR target/42664
27738         * config/i386/i386.c (ix86_fixup_binary_operands):
27739         Revert FMA4 fixup of operands.
27740
27741 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27742
27743         PR gcc/42525
27744         * Makefile.in (write_entries_to_file, install-plugin):
27745         Use \012 instead of \n with tr.
27746
27747 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
27748
27749         * configure.ac (HAVE_AS_REF): New C macro.
27750         * configure: Regenerate.
27751         * config.in: Likewise.
27752         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
27753         if HAVE_AS_REF.
27754         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
27755         if HAVE_AS_REF.
27756
27757 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
27758
27759         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
27760
27761         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
27762
27763         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
27764
27765         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
27766
27767         (TARGET_IN_SMALL_DATA_P): Fix argument type.
27768
27769         (TARGET_BINDS_LOCAL_P): Fix argument type.
27770
27771         (TARGET_ASM_FILE_END): Use prototype.
27772
27773         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
27774
27775         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
27776
27777         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
27778
27779         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
27780
27781         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
27782         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
27783
27784         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
27785         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
27786
27787         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
27788         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
27789         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
27790         (TARGET_ADDR_SPACE_CONVERT): Likewise.
27791
27792         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
27793
27794         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
27795
27796         (TARGET_INIT_BUILTINS): Use prototype.
27797
27798         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
27799         Put 'const char *' in braces.  Fix parameter types.
27800         (TARGET_INVALID_CONVERSION): Fix parameter types.
27801         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
27802         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
27803
27804         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
27805         Fix argument type.
27806
27807         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
27808
27809         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
27810
27811 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
27812
27813         * doc/tm.texi (TARGET_HELP): Fix return type.
27814
27815         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
27816         in braces.  Fix argument types.
27817
27818         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
27819
27820         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
27821
27822         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
27823
27824         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
27825         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
27826
27827         (TARGET_MANGLE_TYPE): Fix argument types.
27828
27829         (TARGET_IRA_COVER_CLASSES): Use prototype.
27830
27831         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
27832
27833         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
27834
27835         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
27836
27837         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
27838
27839         (TARGET_CALLEE_COPIES): Fix argument types.
27840
27841         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
27842
27843         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
27844
27845         (TARGET_FUNCTION_VALUE): Fix argument types.
27846
27847         (TARGET_RETURN_IN_MSB): Fix argument type.
27848
27849         (TARGET_RETURN_IN_MEMORY): Fix argument types.
27850
27851         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
27852
27853         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
27854
27855         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
27856         agree with return type.
27857
27858         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
27859
27860 2010-01-15  Jing Yu  <jingyu@google.com>
27861
27862         PR rtl-optimization/42691
27863         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
27864         a pseudo to a constant and are merged, and adjust comments.
27865
27866 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
27867
27868         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
27869
27870 2010-01-15  Richard Guenther  <rguenther@suse.de>
27871
27872         PR middle-end/42739
27873         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
27874         labels of computed or non-local gotos to the destination.
27875         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
27876         landing pad label is the first label.
27877
27878 2010-01-15  Richard Guenther  <rguenther@suse.de>
27879
27880         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
27881
27882 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27883
27884         PR target/42747
27885         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
27886         to allow generation of the xssqrtdp instruction on power7.
27887         (sqrtdf2_fpr): Ditto.
27888
27889 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
27890
27891         PR middle-end/42674
27892         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
27893         functions with noreturn attribute.
27894
27895         PR c++/42608
27896         * varasm.c (declare_weak): Add weak attribute to decl if it
27897         doesn't have one already.
27898         (assemble_external): Only add decls to weak_decls if they also
27899         have weak attribute.
27900
27901 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
27902
27903         * var-tracking.c (var_reg_delete): Don't delete the association
27904         between REGs and values or one-part variables if the register
27905         isn't clobbered.
27906
27907 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
27908
27909         PR debug/42657
27910         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
27911         because its first operand is a non-localized variable.
27912
27913 2010-01-14  Martin Jambor  <mjambor@suse.cz>
27914
27915         PR tree-optimization/42706
27916         * tree-sra.c (encountered_recursive_call): New variable.
27917         (encountered_unchangable_recursive_call): Likewise.
27918         (sra_initialize): Initialize both new variables.
27919         (callsite_has_enough_arguments_p): New function.
27920         (scan_function): Call decl and flags check only for IPA-SRA, check
27921         whether there is a recursive call and whether it has enough arguments.
27922         (all_callers_have_enough_arguments_p): New function.
27923         (convert_callers): Look for recursive calls only when
27924         encountered_recursive_call is set.
27925         (ipa_early_sra): Bail out either if
27926         !all_callers_have_enough_arguments_p or
27927         encountered_unchangable_recursive_call.
27928
27929 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
27930
27931         * sel-sched.c: Add 2010 to copyright years.
27932         * sel-sched-ir.c: Likewise.
27933         * sel-sched-ir.h: Likewise.
27934
27935 2010-01-14  Martin Jambor  <mjambor@suse.cz>
27936
27937         PR tree-optimization/42714
27938         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
27939         constructors specially.
27940
27941 2010-01-14  Andi Kleen  <ak@linux.intel.com>
27942
27943         * config/i386/drivers-i386.c (detect_caches_intel):
27944         Add l2sizekb parameter and fill in.
27945         (host_detect_local_cpu): Add l2sizekb, fill in.
27946         Add Atom small cache heuristic.
27947
27948 2010-01-14  Andi Kleen  <ak@linux.intel.com>
27949
27950         * config/i386/drivers-i386.c (detect_caches_cpuid4):
27951         Add level3 parameter and fill in.
27952         (detect_caches_intel): Handle level3 cache.
27953
27954 2010-01-14  Andi Kleen  <ak@linux.intel.com>
27955
27956         * config/i386/drivers-i386.c (host_detect_local_cpu):
27957         Fix core duo detection.
27958
27959 2010-01-14  Andi Kleen  <ak@linux.intel.com>
27960
27961         * config/i386/drivers-i386.c (host_detect_local_cpu):
27962         Fix Atom detection.
27963
27964 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
27965
27966         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
27967         (rs6000_variable_issue_1): this.  Use...
27968         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
27969
27970 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
27971
27972         * sel-sched-ir.c (sel_restore_other_notes): Rename to
27973         sel_restore_notes.  Update all callers.  Call reemit_notes
27974         for all insns.
27975
27976 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
27977
27978         PR rtl-optimization/42246
27979         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
27980         loops.
27981
27982 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
27983
27984         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
27985         all successors is the same as number of successors in current region.
27986
27987 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
27988
27989         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
27990         to rename is not separable.  Otherwise check that its LHS is not NULL.
27991
27992 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
27993
27994         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
27995
27996 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
27997
27998         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
27999         available registers when failed to discover LHS register class.
28000         Fix indentation.  Update comment.
28001
28002 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28003             Alexander Monakov  <amonakov@ispras.ru>
28004
28005         PR rtl-optimization/42389
28006         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28007         to can_issue_more.
28008         (advance_state_on_fence): Likewise.
28009         (sel_target_adjust_priority): Print debug output only when
28010         sched_verbose >= 4, not 2.
28011         (get_expr_cost): Do not issue all unique insns on the next cycle.
28012         (fill_insns): Initialize can_issue_more from the value saved
28013         with the fence.
28014         * sel-sched-ir.c (flist_add): New parameter issue_more.
28015         Init FENCE_ISSUE_MORE with it.
28016         (merge_fences): Likewise.
28017         (init_fences): Update call to flist_add.
28018         (add_to_fences, add_clean_fence_to_fences)
28019         (add_dirty_fence_to_fences): Likewise.
28020         (move_fence_to_fences): Update call to merge_fences.
28021         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28022         sched groups.
28023         * sel-sched-ir.h (struct _fence): New field issue_more.
28024         (FENCE_ISSUE_MORE): New accessor macro.
28025
28026 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28027
28028         PR rtl-optimization/42388
28029         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28030         that have no predecessors nor successors.  Do not call move_bb_info
28031         for empty blocks outside of current region.
28032
28033 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28034
28035         PR rtl-optimization/42294
28036         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28037         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28038         originators' originators.
28039
28040 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28041
28042         PR rtl-optimization/39453
28043         PR rtl-optimization/42246
28044         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28045         for pipelining_p.
28046         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28047
28048 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28049             Alexander Monakov  <amonakov@ispras.ru>
28050
28051         PR middle-end/42245
28052         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28053         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28054         argument.  Update all callers.
28055         (tidy_control_flow): ... and here.  Recompute topological order
28056         of basic blocks in region if necessary.
28057         (sel_redirect_edge_and_branch): Change return type.  Return true
28058         if topological order might have been invalidated.
28059         (purge_empty_blocks): Export and move from...
28060         * sel-sched.c (purge_empty_blocks): ... here.
28061         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28062         (maybe_tidy_empty_bb): Delete prototype.
28063         (purge_empty_blocks): Declare.
28064
28065 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28066
28067         PR rtl-optimization/42249
28068         * sel-sched.c (try_replace_dest_reg): When chosen register
28069         and original register is the same, do not bail out early, but
28070         still check all original insns for validity of replacing destination
28071         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28072         in this case.
28073
28074 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28075
28076         PR c/42721
28077         Port from no-undefined-overflow branch:
28078         2009-03-09  Richard Guenther  <rguenther@suse.de>
28079
28080         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28081
28082 2010-01-14  Richard Guenther  <rguenther@suse.de>
28083
28084         PR lto/42665
28085         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28086
28087 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28088
28089         PR tree-optimization/42709
28090         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28091         as scalar type in creation of constant vector operand.
28092
28093 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28094
28095         PR testsuite/42414
28096         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28097         (check-parallel-%): Match `testsuite' directory component only
28098         at the end.
28099
28100 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28101
28102         PR translation/39521
28103         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28104         strings with _().
28105
28106 2010-01-13  Richard Guenther  <rguenther@suse.de>
28107
28108         PR tree-optimization/42730
28109         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28110         offset zero.
28111
28112 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28113
28114         PR target/pr42542
28115         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28116         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28117         them signed.
28118
28119 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28120
28121         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28122         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28123         ___umulsi3_highpart.
28124
28125         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28126         rather than schedule_insns if the pass is enabled.
28127
28128 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28129
28130         PR tree-optimization/42704
28131         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28132         SSA_NAMEs.
28133
28134 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28135
28136         PR tree-optimization/42703
28137         * tree-sra.c (analyze_access_subtree): Check that we can build a
28138         reference to the original data within the aggregate.
28139
28140 2010-01-13  Richard Guenther  <rguenther@suse.de>
28141
28142         PR tree-optimization/42705
28143         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28144
28145 2010-01-13  Richard Guenther  <rguenther@suse.de>
28146
28147         PR middle-end/42716
28148         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28149
28150 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28151
28152         PR debug/41371
28153         * var-tracking.c (values_to_unmark): New variable.
28154         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28155         values_to_unmark vector.  Moved body to...
28156         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28157         instead queue it into values_to_unmark vector.
28158         (vt_find_locations): Free values_to_unmark vector.
28159
28160 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28161
28162         * config/s390/s390.c (override_options): Set
28163         default of max-pending-list-length to 256
28164
28165 2010-01-13  Richard Guenther  <rguenther@suse.de>
28166
28167         PR lto/42678
28168         * tree-pass.h (PROP_gimple_lcx): New.
28169         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28170         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28171         before the final cleanup_eh.
28172         (dump_properties): Dump PROP_gimple_lcx.
28173         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28174         (tree_lower_complex_O0): Remove.
28175         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28176         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
28177         tree_lower_complex, schedule TODO_update_ssa.
28178         * lto-streamer-out.c (output_function): Stream the functions
28179         properties.
28180         * lto-streamer-in.c (input_function): Likewise.
28181         (lto_read_body): Do not override them here.
28182
28183 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
28184
28185         PR c/42708
28186         * c-typeck.c (build_c_cast): Fold value cast to union type before
28187         wrapping it in a CONSTRUCTOR.
28188
28189 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28190
28191         PR rtl-optimization/42699
28192         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
28193         involved.
28194
28195 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28196
28197         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28198         SUBTARGET_WARN_UNUSED_SPEC): Move ...
28199         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
28200         SUBTARGET_WARN_UNUSED_SPEC): ... here
28201         * config/mips/iris5.h (LIBGCC_SPEC): Define.
28202
28203 2010-01-12  Julian Brown  <julian@codesourcery.com>
28204
28205         * config/arm/neon-schedgen.ml (Utils): Don't try to
28206         open missing module.
28207         (find_with_result): New.
28208
28209 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
28210
28211         PR debug/42662
28212         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
28213         sharing when canonicalizing ({lt,ge}u (plus a b) b).
28214
28215         PR tree-optimization/42645
28216         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
28217         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
28218         decl_map, set processing_debug_stmt to -1 and return name without
28219         any remapping.
28220
28221 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
28222
28223         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
28224         binutils version, and reword target configuration description.
28225
28226 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28227
28228         * config/avr/avr.h (LINKER_NAME): Remove.
28229
28230 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
28231
28232         PR target/42416
28233         * config/rs6000/rs6000.c (rs6000_override_options): On targets
28234         that support VSX, warn for -mno-altivec if vsx is not disabled,
28235         and disable vsx.
28236
28237 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
28238             Shujing Zhao  <pearly.zhao@oracle.com>
28239
28240         PR translation/42469
28241         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
28242         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
28243         character between option name and help text.
28244         * c.opt (imultilib): Likewise.
28245
28246 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
28247
28248         * lto-streamer-out.c (output_unreferenced_globals): Output static
28249         variables.
28250
28251 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
28252
28253         PR rtl-optimization/42621
28254         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
28255         optimizing for size.
28256         (duplicate_computed_gotos): Remove now-redundant check.
28257
28258 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
28259
28260         PR target/37454
28261         * configure.ac: Save and restore LDFLAGS and LIBS
28262         * configure: Regenerate.
28263
28264 2010-01-10  Richard Guenther  <rguenther@suse.de>
28265
28266         PR middle-end/42667
28267         * builtins.c (fold_builtin_strlen): Add type argument and
28268         convert the resulting length to it.
28269         (fold_builtin_1): Adjust.
28270
28271 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28272
28273         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
28274         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
28275         1 insn.
28276         (num_insns_constant_wide): Adjust for that change.
28277
28278 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28279
28280         PR debug/42631
28281         * web.c (union_defs): Add used argument, to combine uses of
28282         uninitialized regs.
28283         (entry_register): Adjust type and tests of used argument.
28284         (web_main): Widen used for new use.  Pass it to union_defs.
28285         * df.h (union_defs): Adjust prototype.
28286
28287 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28288
28289         PR debug/42630
28290         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
28291         uses in new incoming argument.  Free body.
28292         (reset_debug_uses_in_loop): New.
28293         (analyze_insn_to_expand_var): Call the latter if the former found
28294         anything.  Fix whitespace.  Reject invalid dest overlaps before
28295         going through all insns in the loop.
28296
28297 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28298
28299         PR debug/42629
28300         * haifa-sched.c (dying_use_p): Debug insns don't count.
28301
28302 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28303
28304         PR middle-end/42363
28305         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
28306         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
28307         (verify_gimple_call): Reject LHS in noreturn calls.
28308
28309 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28310
28311         PR debug/42604
28312         PR debug/42395
28313         * tree-vect-loop-manip.c (adjust_info): New type.
28314         (adjust_vec): New pointer to vector.
28315         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
28316         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
28317         (slpeel_update_phis_for_duplicate_loop): Use them.
28318         (slpeel_update_phi_nodes_for_guard1): Likewise.
28319         (slpeel_update_phi_nodes_for_guard2): Likewise.
28320         (slpeel_tree_peel_loop_to_edge): Likewise.
28321         (vect_update_ivs_after_vectorizer): Likewise.
28322
28323 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28324
28325         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
28326         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
28327
28328 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
28329
28330         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
28331         bogus uninitialized warning.
28332
28333 2010-01-09  Richard Guenther  <rguenther@suse.de>
28334
28335         PR middle-end/42512
28336         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
28337         the evolution is compatible with the initial condition.
28338
28339 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
28340
28341         * gcc.c (process_command): Update copyright notice dates.
28342         * gcov.c (print_version): Likewise.
28343         * gcov-dump.c (print_version): Likewise.
28344         * mips-tfile.c (main): Likewise.
28345         * mips-tdump.c (main): Likewise.
28346
28347 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
28348
28349         PR target/41885
28350         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
28351         (rotlhi3): Delete.
28352         (rotlhi3_8): Delete.
28353         (rotlsi3): Delete.
28354         (rotlsi3_8): Delete.
28355         (rotlsi3_16): Delete.
28356         (rotlsi3_24): Delete.
28357         (rotl<mode>3): New.
28358         (*rotw<mode>3): New.
28359         (*rotb<mode>3): New.
28360         * config/avr/avr.c (avr_rotate_bytes): New function.
28361         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
28362
28363 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
28364
28365         PR target/37454
28366         * configure.ac: Modify -rdynamic check.
28367         * configure: Regenerate.
28368
28369 2010-01-08  DJ Delorie  <dj@redhat.com>
28370
28371         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
28372         register popping order.
28373
28374 2010-01-08  Richard Guenther  <rguenther@suse.de>
28375
28376         PR lto/42528
28377         * c.opt (fsigned-char): Also let LTO handle this option.
28378         (funsigned-char): Likewise.
28379
28380 2010-01-07  Richard Guenther  <rguenther@suse.de>
28381
28382         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
28383         (gimple_op): Likewise.
28384         (gimple_op_ptr): Likewise.
28385         (gimple_assign_set_lhs): Remove gcc_assert.
28386         (gimple_assign_set_rhs1): Likewise.
28387         (gimple_assign_set_rhs2): Likewise.
28388         (gimple_call_set_lhs): Likewise.
28389         (gimple_call_set_fn): Likewise.
28390         (gimple_call_set_fndecl): Likewise.
28391         (gimple_call_fndecl): Likewise.
28392         (gimple_call_return_type): Likewise.
28393         (gimple_call_set_chain): Likewise.
28394         (gimple_call_num_args): Likewise.
28395         (gimple_call_set_arg): Likewise.
28396         (gimple_cond_set_code): Likewise.
28397         (gimple_cond_set_lhs): Likewise.
28398         (gimple_cond_set_rhs): Likewise.
28399         (gimple_cond_set_true_label): Likewise.
28400         (gimple_cond_set_false_label): Likewise.
28401         (gimple_label_set_label): Likewise.
28402         (gimple_goto_set_dest): Likewise.
28403         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
28404         (gimple_debug_bind_get_value): Likewise.
28405         (gimple_debug_bind_get_value_ptr): Likewise.
28406         (gimple_debug_bind_set_var): Likewise.
28407         (gimple_debug_bind_set_value): Likewise.
28408         (gimple_debug_bind_reset_value): Likewise.
28409         (gimple_debug_bind_has_value_p): Likewise.
28410         (gimple_return_retval_ptr): Remove gcc_assert.
28411         (gimple_return_retval): Likewise.
28412         (gimple_return_set_retval): Likewise.
28413         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
28414         (safe_referenced_var_iterator): Remove.
28415         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
28416         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
28417         (fill_referenced_var_vec): Remove.
28418         (first_readonly_imm_use): Remove redundant gcc_assert.
28419         (phi_arg_index_from_use): Combine gcc_asserts.
28420         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
28421         (first_imm_use_stmt): Remove redundant gcc_assert.
28422         * tree-cfg.c (verify_gimple_call): Verify function and chain
28423         operands.  Verify arguments.
28424         (verify_types_in_gimple_stmt): Verify condition code and labels.
28425
28426 2010-01-07  Richard Guenther  <rguenther@suse.de>
28427
28428         PR tree-optimization/42641
28429         * sese.c (rename_map_elt_info): Use the SSA name version, do
28430         not hash pointers.
28431
28432 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
28433
28434         PR tree-optimization/42625
28435         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
28436         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
28437
28438 2010-01-07  Duncan Sands  <baldrick@free.fr>
28439
28440         * Makefile.in (PLUGIN_HEADERS): Add version.h.
28441
28442 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
28443
28444         PR target/42511
28445         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
28446         note itself is not function_invariant_p.
28447
28448 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
28449
28450         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
28451         Do not add the DF_NOTE problem.
28452         * store-motion.c (execute_rtl_store_motion): Likewise.
28453
28454 2010-01-07  Martin Jambor  <mjambor@suse.cz>
28455
28456         PR tree-optimization/42157
28457         * tree-sra.c (compare_access_positions): Stabilize sort if both
28458         accesses have integer types, return zero immediately if they are the
28459         same.
28460
28461 2010-01-06  Richard Henderson  <rth@redhat.com>
28462
28463         PR middle-end/41883
28464         * haifa-sched.c (add_to_note_list): Merge into ...
28465         (concat_note_lists): ... here, and ...
28466         (unlink_other_notes, rm_other_notes): Merge into...
28467         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
28468         NOTE_INSN_EPILOGUE_BEG.
28469
28470 2010-01-06  Richard Guenther  <rguenther@suse.de>
28471
28472         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
28473         not inline regular functions into always-inline functions.
28474
28475 2010-01-06  Nick Clifton  <nickc@redhat.com>
28476
28477         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
28478         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
28479         used together.
28480         (OVERRIDE_OPTIONS): Delete.
28481         (OPTIMIZATION_OPTIONS): Define.
28482         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
28483         * config/rx/rx.c (rx_handle_option): Issue an error message if
28484         -mcpu=rx200 and -fpu are used together.
28485         (rx_set_optimization_options): New function.  Issue an error
28486         message if an optimization attribute attempts to reset the FPU/
28487         math optimization pairing.
28488         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
28489         * config/rx/rx.opt: Set the default to 32-bit doubles.
28490         * config/rx/t-rx: Add multilibs for -nofpu option.
28491         * doc/invoke.texi: Update documentation of RX options.
28492
28493 2010-01-06  Richard Guenther  <rguenther@suse.de>
28494
28495         * tree-ssa-pre.c (name_to_id): New global.
28496         (alloc_expression_id): Simplify SSA name handling.
28497         (lookup_expression_id): Likewise.
28498         (init_pre): Zero name_to_id.
28499         (fini_pre): Free it.
28500
28501 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
28502
28503         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
28504
28505 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
28506
28507         PR target/42542
28508         * config/i386/sse.md (smaxv2di3): New.
28509         (umaxv2di3): Likewise.
28510         (sminv2di3): Likewise.
28511         (uminv2di3): Likewise.
28512
28513 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
28514
28515         PR target/42564
28516         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
28517         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
28518         (legitimize_tls_address): Likewise.
28519         (sparc_tls_referenced_p): Likewise.
28520         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
28521         and adjust calls to legitimize_pic_address.
28522         (legitimate_constant_p) Use sparc_tls_referenced_p.
28523         (legitimate_pic_operand_p): Likewise.
28524         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
28525         (sparc_tls_symbol_ref_1): Delete.
28526         (sparc_tls_referenced_p): Make static, recognize specific patterns.
28527         (legitimize_tls_address): Make static, handle CONST patterns.
28528         (legitimize_pic_address): Make static, remove unused parameter and
28529         adjust recursive calls.
28530         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
28531         and adjust call to legitimize_pic_address.
28532         (sparc_output_mi_thunk): Likewise.
28533
28534 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
28535             H.J. Lu  <hongjiu.lu@intel.com>
28536
28537         PR target/42542
28538         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
28539         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
28540         operands to make them signed.
28541
28542         Revert:
28543         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28544
28545         PR target/42542
28546         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28547         GTU to GT for V4SI and V2DI.
28548
28549         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28550         (umin<mode>3): Removed.
28551         (uminv8hi3): New.
28552         (uminv4si3): Likewise.
28553
28554 2010-01-05  Martin Jambor  <mjambor@suse.cz>
28555
28556         PR tree-optimization/42462
28557         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
28558         current_function_decl to helper functions and macros.
28559
28560 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28561
28562         PR bootstrap/41771
28563         * flags.h: Don't include real.h.
28564         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
28565         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
28566         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
28567         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
28568         * dominance.c: Update copyright.
28569         * gimple.c (walk_gimple_op): Remove inline.
28570         * tree-ssa-reassoc.c: Include real.h.
28571         * Makefile.in (FLAGS_H): Remove $(REAL_H).
28572         (tree-ssa-reassoc.o): Depend on $(REAL_H).
28573
28574 2010-01-05  Nick Clifton  <nickc@redhat.com>
28575
28576         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
28577         register to push into the stack frame when the accumulator has to
28578         be saved during interrupts.
28579
28580 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
28581
28582         * doc/invoke.texi: Remove the documentation about option
28583         -Wunreachable-code.
28584         * common.opt (Wunreachable-code):  Preserved for backward
28585         compatibility.
28586         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
28587         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
28588         the backward compatibility flag section.
28589
28590 2010-01-05  Richard Guenther  <rguenther@suse.de>
28591
28592         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
28593
28594 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
28595
28596         PR other/42611
28597         * cfgexpand.c (expand_one_var): Diagnose too large variables.
28598
28599         PR tree-optimization/42508
28600         * tree-sra.c (convert_callers): Check for recursive call
28601         by comparing cgraph nodes instead of decls.
28602         (modify_function): Call ipa_modify_formal_parameters also
28603         on all same_body aliases.
28604
28605         * cgraphunit.c (cgraph_materialize_all_clones): Compare
28606         cgraph nodes when checking for same_body aliases.
28607
28608 2010-01-05  Richard Guenther  <rguenther@suse.de>
28609
28610         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
28611         allocation and lookup.
28612         (get_or_alloc_expr_for_constant): Likewise.
28613         (phi_translate): Sink allocation.
28614
28615 2010-01-04  Richard Guenther  <rguenther@suse.de>
28616
28617         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
28618         a new entry only if needed.
28619         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
28620         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
28621         hashtable lookup.
28622         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
28623         the result array.
28624         (phi_translate): Handle CONSTANTs early.
28625
28626 2010-01-04  Martin Jambor  <mjambor@suse.cz>
28627
28628         PR tree-optimization/42398
28629         * tree-sra.c (struct access): Removed flag grp_different_types.
28630         (dump_access): Do not dump the removed flag.
28631         (sort_and_splice_var_accesses): Do not set the removed flag.
28632         (sra_modify_expr): Check for type compatibility directly.
28633
28634 2010-01-04  Martin Jambor  <mjambor@suse.cz>
28635
28636         PR tree-optimization/42366
28637         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
28638         edges with variable number of parameters.
28639         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
28640         flag instead of asserting it.
28641         (ipa_read_node_info): Read uses_analysis_done flag.
28642
28643 2010-01-04  Richard Guenther  <rguenther@suse.de>
28644
28645         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
28646         iterative_hash_* as intended.
28647         (vn_reference_compute_hash): Likewise.  Simplify hashing
28648         SSA names.
28649         (vn_reference_lookup_2): Likewise.
28650         (vn_nary_op_compute_hash): Likewise.
28651         (vn_phi_compute_hash): Likewise.
28652         (expressions_equal_p): Remove strange code.
28653         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
28654         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
28655         (bitmap_insert_into_set_1): Take value-id as parameter.
28656         (add_to_value): Pass it.
28657         (bitmap_insert_into_set): Likewise.
28658         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
28659
28660 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
28661
28662         PR driver/42442
28663         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
28664         (do_self_spec): For switches with SWITCH_IGNORE set set also
28665         SWITCH_IGNORE_PERMANENTLY.
28666         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
28667         of SWITCH_IGNORE.
28668
28669 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
28670
28671         * lto-streamer-out.c (output_unreferenced_globals): Output the full
28672         tree of an unreferenced global var.
28673
28674 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28675
28676         PR target/42542
28677         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
28678         GTU to GT for V4SI and V2DI.
28679
28680         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
28681         (umin<mode>3): Removed.
28682         (uminv8hi3): New.
28683         (uminv4si3): Likewise.
28684
28685 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
28686
28687         PR lto/42581
28688         * collect2.c (main): Turn on trace in collect2 if -v is passed
28689         to gcc with LTO.
28690
28691 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
28692
28693         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
28694         description of expression operand.
28695
28696 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
28697
28698         * configure.ac: Add install-html to target_list for Make-hooks.
28699         * configure: Regenerate.
28700         * fortran/Make-lang.in (F95_HTMLFILES): New.
28701         (fortran.html): Use it.
28702         (fortran.install-html): New.
28703         * Makefile.in (install-html): Add lang.install-html.
28704         * java/Make-lang.in (JAVA_HTMLFILES): New.
28705         (java.html): Use it.
28706         (java.install-html): New.
28707         * objc/Make-lang.in (objc.install-html): New.
28708         * objcp/Make-lang.in (obj-c++.install-html): New.
28709         * cp/Make-lang.in (c++.install-html): New.
28710         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
28711         * lto/Make-lang.in (lto.install-html): New.
28712
28713 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28714
28715         PR lto/42520
28716         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
28717
28718 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
28719
28720         PR rtl-optimization/41862
28721         * store-motion.c (store_killed_in_insn, compute_store_table,
28722         remove_reachable_equiv_notes, replace_store_insn,
28723         build_store_vectors): Ignore all DEBUG_INSNs.
28724
28725 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
28726
28727         PR lto/41564
28728         * common.opt: Add dumpdir.
28729
28730         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
28731         isn't specified.
28732         (option_map): Add --dumpdir.
28733
28734         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
28735
28736         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
28737
28738         * opts.c (decode_options): Try dump_dir_name first if
28739         dump_base_name isn't an absolute path.
28740         (common_handle_option): Handle OPT_dumpdir.
28741
28742         * toplev.c (dump_dir_name): New.
28743         (print_switch_values): Also ignore -dumpdir.
28744
28745         * toplev.h (dump_dir_name): New.
28746
28747 2010-01-03  Richard Guenther  <rguenther@suse.de>
28748
28749         PR tree-optimization/42589
28750         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
28751         double-word expansion of bswap32.
28752
28753 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
28754
28755         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
28756         with BLOCK_FOR_INSN.
28757         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
28758         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
28759         noce_process_if_block): Likewise.
28760         * gcse.c (compute_local_properties, insert_expr_in_table,
28761         insert_set_in_table, canon_list_insert, find_avail_set,
28762         pre_insert_copy_insn): Likewise.
28763
28764         * basic-block.h (BLOCK_NUM): Move from here...
28765         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
28766
28767 2010-01-03  Richard Guenther  <rguenther@suse.de>
28768
28769         PR tree-optimization/42438
28770         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
28771         contains_may_not_return_call flag.
28772         (BB_MAY_NOTRETURN): New.
28773         (valid_in_sets): Trapping nary operations are not valid
28774         in blocks that may not return.
28775         (insert_into_preds_of_block): Remove check for trapping expressions.
28776         (compute_avail): Compute also BB_MAY_NOTRETURN.
28777
28778 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
28779
28780         * doc/invoke.texi: Add 2010 to copyright years.
28781
28782 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
28783
28784         * config/sparc/sparc.c: Fix formatting nits.
28785
28786 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
28787             Alexander Monakov  <amonakov@ispras.ru>
28788
28789         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
28790
28791 2010-01-02  Richard Guenther  <rguenther@suse.de>
28792
28793         PR middle-end/42577
28794         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
28795         (simplify_switch_using_ranges): Mark to be removed edges
28796         as non-executable.
28797
28798 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28799
28800         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
28801
28802         * collect2.c (scan_libraries): Add missing argument in call to
28803         scan_prog_file.
28804
28805 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
28806
28807         PR target/42448
28808         * config/alpha/predicates.md (aligned_memory_operand): Return false
28809         for CQImode.
28810         (unaligned_memory_operand): Return true for CQImode.
28811         * config/alpha/alpha.c (get_aligned_mem): Assert that location
28812         doesn not cross aligned SImode word boundary.
28813
28814 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
28815
28816         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
28817         Remove.
28818         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
28819         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
28820
28821 2010-01-02  Richard Guenther  <rguenther@suse.de>
28822
28823         PR lto/41597
28824         * toplev.c (compile_file): Emit LTO marker properly.  Change
28825         it to __gnu_lto_v1.
28826         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
28827
28828 2010-01-01  Richard Guenther  <rguenther@suse.de>
28829
28830         PR debug/42455
28831         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
28832
28833 2010-01-01  Richard Guenther  <rguenther@suse.de>
28834
28835         PR c/42570
28836         * c-decl.c (grokdeclarator): For zero-size arrays force
28837         structural equality checks as layout_type does.
28838
28839 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
28840
28841         * builtins.c: Update copyright to 2010.
28842
28843 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
28844
28845         PR lto/42531
28846         * lto-streamer-out.c (produce_asm): Revert the last change.
28847         (copy_function): Likewise.
28848
28849         * lto-streamer.c (lto_get_section_name): Skip any leading
28850         asterisk in name.
28851
28852 2010-01-01  Richard Guenther  <rguenther@suse.de>
28853
28854         PR middle-end/42559
28855         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
28856         for LABEL_DECLs.
28857
28858 \f
28859 Copyright (C) 2010 Free Software Foundation, Inc.
28860
28861 Copying and distribution of this file, with or without modification,
28862 are permitted in any medium without royalty provided the copyright
28863 notice and this notice are preserved.