OSDN Git Service

18a30896c6de21c3526a487c1ac33208c9fd2f4f
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2
3         * vec.h: Include statistics.h
4         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
5         with VEC_H.
6
7 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
8
9         * c-lex.c: Do not include c-tree.h.
10         * c-pretty-print.c: Likewise.
11         * c-opts.c: Likewise.
12         * c-gimplify.c: Likewise.
13         * c-common.c: Likewise.
14         * c-dump.c: Likewise.  Include c-common.h.
15
16 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17
18         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
19         before including diagnostic-core.h.
20         (c_cpp_error): New prototype moved from c-tree.h.
21         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
23         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
24         (c_cpp_error): Prototype moved to c-common.h.
25         * Makefile.in: Update dependency for C_COMMON_H.
26
27 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
28
29         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
30         * c-common.c (c_register_addr_space): Remove here.
31         * c-decl.c (c_register_addr_space): Re-add here.
32
33 2010-05-28  Mike Stump  <mikestump@comcast.net>
34
35         * config/darwin-c.c: Remove c-tree.h include.
36
37 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
38
39         * gcc.c: Include diagnostic.h.
40         (error_count): Remove.  All users changed to use errorcount.
41         (programname): Remove.  All users changed to use progname.
42         (fancy_abort, internal_error, fatal_error, error, warning, inform,
43         fnotice): Remove.
44         (execute): Don't include "Internal error" and bug reporting
45         information in argument of internal_error call.
46         (process_command): Don't increment error_count after calling
47         perror_with_name.
48         (input_filename): Rename to gcc_input_filename.  All users
49         changed.
50         (main): Call diagnostic_initialize.  Register delete_temp_files
51         with atexit.  Use seen_error to test for errors.
52         * gcc.h: Include diagnostic-core.h.
53         (fatal_error, error, warning): Remove.
54         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
55         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
56         (gcc.o): Update dependencies.
57
58 2010-05-28  Jeff Law  <law@redhat.com>
59
60         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
61         functions.
62         * ira.h (ira_bad_reload_regno): Declare
63         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
64
65         * ira-color.c (update_curr_costs): Free updated hard reg costs.
66         (ira_reassign_conflict_allocnos): Remove bogus asserts.
67         (allocno_reload_assign): Likewise.
68
69 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
70
71         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
72         build1_stat.
73
74 2010-05-28  Richard Guenther  <rguenther@suse.de>
75
76         PR lto/44312
77         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
78         Stream fixed-point constants mode.
79         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
80         and TYPE_PRECISION.
81         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
82         Stream fixed-point constants mode.
83         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
84         and TYPE_PRECISION.
85
86 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
87
88         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
89         only place it was called from.
90         (number_of_latch_executions): Do not return chrec_dont_know when the
91         may_be_zero is a runtime condition: instead, return a COND_EXPR
92         including the may_be_zero condition.
93         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
94         of nb_iterations.
95         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
96         COND_EXPRs.
97
98 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
99
100         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
101         generate COND_EXPRs for degenerate_phi_result.
102
103 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
104
105         PR middle-end/44293
106         * tree-if-conv.c (if_convertible_loop_p): Check the
107         if-convertibility of phi nodes in non predicated BBs.
108
109 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
110
111         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
112
113 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
114
115         PR driver/15303
116         * gcc.c (inform, warning, inform): New functions.
117         (fatal_ice): Rename to internal_error; change cmsgid parameter to
118         gmsgid.  All callers changed.
119         (notice): Rename to fnotice; add parameter fp.  All callers
120         changed.
121         (fatal_error): Rename to fatal_signal.  All users changed.
122         (fatal): Rename to fatal_error; change cmsgid parameter to
123         gmsgid.  All callers changed.
124         (process_command): Use warning instead of error for warnings.
125         (end_going_arg): Don't use _() around argument of error.
126         (do_spec_1): Use inform for message from %n specs.  Use warning
127         instead of error for warnings.
128         (main): Use inform for comparison messages.  Use warning for
129         message about unused linker input.
130         (error): Increment error_count.  Print "error: ".
131         * gcc.h (fatal): Change to fatal_error.
132         (warning): Declare.
133         * config/darwin-driver.c (darwin_default_min_version): Use warning
134         instead of fprintf for warnings.
135         * cppspec.c (lang_specific_driver): Use fatal_error instead of
136         fatal.
137
138 2010-05-28  Julian Brown  <julian@codesourcery.com>
139
140         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
141         (*thumb2_addsi3_compare0_scratch): New.
142         * config/arm/constraints.md (Pv): New.
143         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
144         for ARM mode only.
145         (*addsi3_compare0_scratch): Likewise.
146
147 2010-05-28  Jan Hubicka  <jh@suse.cz>
148
149         * ipa-reference.c (add_static_var): Remove redundant all_module_statics check.
150         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis only
151         on local statics.
152
153 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
154
155         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
156
157 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
158
159         PR bootstrap/44314
160         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
161         (OPTION_GLIBC): Define.
162
163 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
164
165         PR debug/41048
166         * dwarf2out.c (double_int_type_size_in_bits): New function.
167         (round_up_to_align): Change first argument and return value to
168         double_int.
169         (field_byte_offset): Work internally on double_ints.
170
171         PR target/43636
172         * builtins.c (expand_movstr): Use a temporary pseudo instead
173         of target even when target is not NULL and not const0_rtx, but
174         fails movstr predicate.
175         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
176
177 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
178
179         * final.c (rest_of_clean_state): Use %m in errors instead of
180         strerror (errno).
181         * gengtype.c (read_input_list, close_output_files): Use xstrerror
182         instead of strerror.
183         * toplev.c (process_options): Use %m in errors instead of strerror
184         (errno).
185         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
186         (errno).
187
188 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
189
190         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
191         (ix86_canonical_va_list_type): Make static.  Add declaration.
192         (ix86_enum_va_list): Make static.  Reindent.
193         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
194         (ix86_canonical_va_list_type): Ditto.
195         (ix86_enum_va_list): Ditto.
196
197 2010-05-28  Richard Guenther  <rguenther@suse.de>
198
199         * lto-wrapper.c (run_gcc): With -save-temps generate a
200         user-visible ltrans filename.  Fixup ltrans unit numbering.
201
202 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
203
204         * c-common.c (c_common_nodes_and_builtins): Replace use
205         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
206         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
207         to ix86_enum_va_list.
208         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
209         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
210         (TARGET_ENUM_VA_LIST_P): Add hook description.
211         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
212         * target.h (gcc_target): Add enum_va_list hook.
213
214         PR bootstrap/44299
215         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
216         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
217         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
218
219 2010-05-28  Alan Modra  <amodra@gmail.com>
220
221         PR target/44266
222         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
223         emit_library_call machinery to set up __tls_get_addr calls.
224
225 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
226
227         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
228
229 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
230
231         revert fix for PR c++/44188
232         * c-common.c (is_typedef_decl): Revert the moving of  this
233         definition ...
234         * tree.c (is_typedef_decl): ... here.
235         (typdef_variant_p): Revert the moving of this  definition
236         here from gcc/cp/tree.c.
237         * c-common.h (is_typedef_decl): Revert the moving of this
238         declaration ...
239         * tree.h (is_typedef_decl): ... here.
240         (typedef_variant_p): Revert the moving of this  declaration here
241         from gcc/cp/cp-tree.h
242         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
243         (gen_tagged_type_die): Revert the splitting out of ...
244         (gen_type_die_with_usage): ... this function. Revert the anonymous
245         tagged type handling.
246         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
247         typedefs naming anonymous tagged types.
248
249
250 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
251
252         * config/rs6000/rs6000-modes.def (PSImode): Delete.
253
254 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
255
256         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
257         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
258         throughout.
259         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
260         "xer" to "ca".
261         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
262         XER_REGS to CA_REGS throughout.
263         * config/rs6000/rs6000.h: Same.
264         (ADDITIONAL_REGISTER_NAMES): Add "xer".
265         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
266         that mode_iterator "P" is the size for arithmetic carries as well.
267         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
268
269 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
270
271         PR bootstrap/44255
272         * combine.c (struct rtx_subst_pair): Define unconditionally.
273         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
274         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
275         Call make_compound_operation on pair->to.
276         (propagate_for_debug): Don't call make_compound_operation here.
277         Always use simplify_replace_fn_rtx.
278
279 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
280
281         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
282         * config/xtensa/xtensa.c (override_options): Check
283           TARGET_FORCE_NO_PIC and set flag_pic.
284         * config/xtensa/xtensa.opt: Document -mforce-no-pic
285
286 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
287
288         PR bootstrap/44299
289         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
290         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
291
292 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
293
294         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
295         toplev.h.
296         * diagnostic.c: Don't include toplev.h.
297         (progname): Define.  Moved from toplev.c.
298         (seen_error): New function.
299         * diagnostic.h: Include diagnostic-core.h.
300         (diagnostic_t, emit_diagnostic): Don't declare here.
301         * toplev.c (progname): Move to toplev.c.
302         (emit_debug_global_declarations, compile_file, finalize,
303         do_compile, toplev_main): Use seen_error.
304         * toplev.h: Include diagnostic-core.h.
305         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
306         internal_error, warning, warning_at, error, error_n, error_at,
307         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
308         verbatim, fnotice, progname): Move to diagnostic-core.h.
309         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
310         (expand_builtin_expect): Use seen_error.
311         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
312         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
313         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
314         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
315         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
316         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
317         errorcount for errors.
318         * c-opts.c (c_common_finish): Use seen_error.
319         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
320         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
321         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
322         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
323         (get_coverage_counts): Use seen_error.
324         * dwarf2out.c (dwarf2out_finish): Use seen_error.
325         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
326         gimplify_body): Use seen_error.
327         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
328         * ipa-pure-const.c (gate_pure_const): Use seen_error.
329         * ipa-reference.c (gate_reference): Use seen_error.
330         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
331         * lambda-code.c: Include diagnostic-core.h instead of
332         diagnostic.h.
333         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
334         * lto-compress.c: Include diagnostic-core.h instead of
335         diagnostic.h.
336         * lto-section-in.c: Include diagnostic-core.h instead of
337         diagnostic.h.
338         * lto-streamer-out.c: Include diagnostic-core.h instead of
339         diagnostic.h.
340         * lto-streamer.c: Include diagnostic-core.h instead of
341         diagnostic.h.
342         (gate_lto_out): Use seen_error.
343         * matrix-reorg.c: Include diagnostic-core.h instead of
344         diagnostic.h.
345         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
346         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
347         (gate_expand_omp, lower_omp_1): Use seen_error.
348         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
349         (rest_of_decl_compilation, rest_of_type_compilation,
350         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
351         * tree-cfg.c (label_to_block_fn): Use seen_error.
352         * tree-inline.c (optimize_inline_calls): Use seen_error.
353         * tree-mudflap.c (mudflap_finish_file): Use
354         seen_error.
355         * tree-optimize.c (gate_all_optimizations,
356         gate_all_early_local_passes, gate_all_early_optimizations): Use
357         seen_error.
358         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
359         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
360         (varpool_remove_unreferenced_decls,
361         varpool_assemble_pending_decls): Use seen_error.
362         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
363         (TOPLEV_H, DIAGNOSTIC_H): Update.
364         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
365         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
366         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
367         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
368         coverage.o, lambda-code.o): Update dependencies.
369
370 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
371
372         PR c++/44188
373         * c-common.c (is_typedef_decl): Move this definition ...
374         * tree.c (is_typedef_decl): ... here.
375         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
376         * c-common.h (is_typedef_decl): Move this declaration ...
377         * tree.h (is_typedef_decl): ... here.
378         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
379         * dwarf2out.c (is_naming_typedef_decl): New function.
380         (gen_tagged_type_die): Split out of ...
381         (gen_type_die_with_usage): ... this function. When an anonymous
382         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
383         is emitted for the typedef.
384         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
385         anonymous tagged types.
386
387 2010-05-27  Jason Merrill  <jason@redhat.com>
388
389         * print-tree.c (debug_vec_tree): New fn.
390         (print_vec_tree): New fn.
391         * tree.h: Declare them.
392         * gdbinit.in (pvt): New command.
393
394         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
395
396         * gdbinit.in (pdd): New command.
397
398 2010-05-27  Jan Hubicka  <jh@suse.cz>
399
400         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
401         (update_caller_keys): Return early if there are no callers;
402         only update fibheap when decresing the key.
403         (update_callee_keys): Avoid recursion.
404         (decide_inlining_of_small_functions): When badness does not match;
405         re-insert into fibheap.
406
407 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
408
409         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
410         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
411         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
412         (ALL_HOST_OBJS): Now a union of the above two.
413         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
414         all files in ALL_HOST_FRONTEND_OBJS.
415         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
416
417         * c-common.c: Pretend to be a backend file by undefining
418         IN_GCC_FRONTEND (still need rtl.h here).
419
420 2010-05-27  Jan Hubicka  <jh@suse.cz>
421
422         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
423         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
424
425 2010-05-27  Jan Hubicka  <jh@suse.cz>
426
427         * sched-ebb.c: Rename struct deps to struct deps_desc.
428         * ddg.c: Likewise.
429         * sel-sched-ir.c: Likewise.
430         * sched-deps.c: Likewise.
431         * sched-int.h: Likewise.
432         * sched-rgn.c: Likewise.
433
434 2010-05-27  Jon Beniston <jon@beniston.com>
435
436         PR 43726
437         * config/lm32/lm32.h: Remove definition of 
438         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
439
440 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
441
442         PR lto/44230
443         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
444
445 2010-05-27  Richard Guenther  <rguenther@suse.de>
446
447         PR tree-optimization/44284
448         * tree-vect-stmts.c (vectorizable_assignment): Handle
449         sign-changing conversions as simple copy.
450
451 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
452
453         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
454         Bionic C library.
455         (__gthread_active_p): Check for pthread_create if compiling against
456         Bionic C library.
457
458 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
459
460         Support compilation for Android platform.  Reimplement -mandroid.
461
462         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
463         (*android*): Set ANDROID_DEFAULT.
464         (arm*-*-linux*): Include linux-android.h.
465         (arm*-*-eabi*): Don't include previous -mandroid implementation.
466         * config/arm/eabi.h: Remove, move Android-specific parts ...
467         * config/linux-android.h: ... here.  New file.
468         * config/arm/eabi.opt: Rename to ...
469         * config/linux-android.opt: ... this.
470         (mandroid): Allow -mno-android option.  Initialize based on
471         ANDROID_DEFAULT.
472         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
473         Move logic to corresponding LINUX_TARGET_* macros.
474         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
475         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
476         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
477         Android definitions.
478         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
479         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
480         Document.
481
482 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
483
484         Add support for Bionic C library
485
486         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
487         macro.
488         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
489         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
490
491         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
492         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
493         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
494         to support multiple C libraries.  Handle Bionic.
495         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
496         (BIONIC_DYNAMIC_LINKER64): Define.
497         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
498         Update.
499         (TARGET_HAS_SINCOS): Enable for Bionic.
500
501         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
502         the last option specified on command line take effect.
503         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
504         (mbionic): New.
505         (mglibc, muclibc): Update.
506
507         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
508         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
509         DEFAULT_LIBC.
510
511         * doc/invoke.texi (-mglibc, -muclibc): Update.
512         (-mbionic): Document.
513
514 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
515
516         * c-common.h (c_register_addr_space): Add prototype.
517         (ADDR_SPACE_KEYWORD): Remove.
518         * c-common.c (c_register_addr_space): New function.
519         (c_addr_space_name): Reimplement.
520         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
521
522         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
523         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
524
525         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
526         Remove TARGET_ADDR_SPACE_KEYWORDS.
527
528 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
529
530         * input.c: New file.
531         * input.h (main_input_filename): Move declaration to toplev.h.
532         * toplev.c (input_location, line_table): Move to input.c
533         * toplev.h (main_input_filename): Move declaration from input.h.
534         * tree.c (expand_location): Move to input.c.
535         * Makefile.in (OBJS-common): Add input.o.
536         (input.o): Add dependencies.
537
538 2010-05-27  Richard Guenther  <rguenther@suse.de>
539
540         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
541         for non-existant files.
542         (fork_execute): Mark args_name file as deleted.
543
544 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
545
546         PR bootstrp/44287
547         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
548         (narrow_signed_type): Likewise.
549
550 2010-05-26  Jan Hubicka  <jh@suse.cz>
551
552         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
553         edge only when checking is enabled; check using former_clone_of;
554         check inline clones too.
555         (cgraph_materialize_clone): Record former_clone_of pointer.
556         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
557         combining redirections; dump args_to_skip bitmap
558         (cgraph_materialize_all_clones): Do no redirection here.
559         * ipa-inline.c (inline_transform): Do redirection here.
560         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
561         cheking only).
562
563 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
564
565         * config/avr/avr-c.c: Do not include regs.h.
566         Include cpplib.h for cpp_define and tree.h for c-common.h.
567         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
568         * config/avr/t-avr: Fix dependencies for avr-c.o.
569
570 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
571
572         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
573         string instead of SYMBOL_REF rtx.
574         * rtl.h (set_stack_check_libfunc): Move prototype from here...
575         * libfuncs.h: ...to here.  Adjust for explow.c change.
576
577 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
578
579         * pretty-print.c: Don't include ggc.h.
580         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
581         (identifier_to_locale): Use them for allocation.
582         * pretty-print.h (identifier_to_locale_alloc,
583         identifier_to_locale_free): Declare.
584         * toplev.c (alloc_for_identifier_to_locale): New.
585         (general_init): Set identifier_to_locale_alloc and
586         identifier_to_locale_free.
587         * Makefile.in (pretty-print.o): Update dependencies.
588
589 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
590
591         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
592         pointer types if they have different alignment or mode.
593
594 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
595
596         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
597         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
598         * config/sparc/sparc-protos.h (function_value): Remove declaration.
599         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
600         sparc_function_value_regno_p): New functions.
601         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
602         TARGET_FUNCTION_VALUE_REGNO_P): Define.
603         (function_value): Rename to...
604         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
605         argument to 'outgoing'.
606         (function_arg_record_value, function_arg_union_value,
607         function_arg_vector_value): Update comment.
608
609 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
610
611         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
612         (fde_needed_for_eh_p): New predicate.
613         (output_call_frame_info): Use it throughout to decide whether FDEs
614         are needed for EH purpose.
615         (dwarf2out_begin_prologue): Reorder assignments.
616
617 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
618
619         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
620         special case loop->header.
621         (is_predicated): New.
622         (if_convertible_loop_p): Call it.
623
624 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
625
626         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
627         iterator in parameter.  Do not generate code during the analysis.
628         (tree_if_convert_cond_stmt): Removed.
629         (tree_if_convert_stmt): Removed.
630         (predicate_bbs): New.
631         (if_convertible_loop_p): Call predicate_bbs.
632         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
633         now contains all the analysis part.
634
635 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
636
637         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
638         statements in the analysis part.
639         (tree_if_convert_stmt): Update comment.
640         (remove_conditions_and_labels): New.
641         (combine_blocks): Call remove_conditions_and_labels.
642         (tree_if_conversion): Update comment.
643
644 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
645
646         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
647         than 2 predecessors or more than 2 successors.
648
649 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
650
651         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
652         of loops in which the data dependence analysis fails.
653
654 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
655
656         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
657         CDI_POST_DOMINATORS.
658         (tree_if_conversion): Same.
659
660 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
661
662         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
663
664 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
665
666         * tree-if-conv.c: Update copyright years.  Fix comments.
667         Fix indentation.
668
669 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
670
671         * builtin-types.def (BT_INT128): New primitive type.
672         (BT_UINT128): Likewise.
673         * c-common.c (c_common_r): Add __int128 keyword.
674         (c_common_type_for_size): Handle __int128.
675         (c_common_type_for_mode): Likewise.
676         (c_common_signed_or_unsigned_type): Likewise.
677         (c_common_nodes_and_builtins): Add builtin type
678         if target supports 128-bit integer scalar.
679         * c-common.h (enum rid): Add RID_INT128.
680         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
681         if target supports 128-bit integer scalar.
682         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
683         (finish_declspecs): Likewise.
684         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
685         (c_token_starts_declspecs): Likewise.
686         (c_parser_declspecs): Likewise.
687         (c_parser_attributes): Likewise.
688         (c_parser_objc_selector): Likewise.
689         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
690         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
691         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
692         * tree.c (make_or_reuse_type): Likewise.
693         (make_unsigned_type): Likewise.
694         (build_common_tree_nodes_2): Likewise.
695         * tree.h (enum integer_type_kind): Add itk_int128 and
696         itk_unsigned_int128.
697         (int128_integer_type_node): New define.
698         (int128_unsigned_type_node): New define.
699         * doc/extend.texi: Add documentation about __int128 type.
700
701 2010-05-26  Richard Guenther  <rguenther@suse.de>
702
703         * tree-ssa-sccvn.c (copy_nary): Adjust.
704         (copy_phis): Rename to ...
705         (copy_phi): ... this.  Adjust.
706         (copy_references): Rename to ...
707         (copy_reference): ... this.  Adjust.
708         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
709         result into the valid table.
710
711 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
712
713         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
714         insn-config.h, insn-codes.h, recog.h, and optabs.h.
715
716 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
717
718         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
719
720 2010-05-26  Richard Guenther  <rguenther@suse.de>
721
722         * opts.c (common_handle_option): Handle OPT_Ofast.
723
724 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
725
726         * diagnostic.c: Don't include opts.h.
727         (permissive_error_option): Define.
728         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
729         for classify_diagnostic.  Don't use memset for
730         classify_diagnostic.  Initialize new and recently added fields.
731         (diagnostic_classify_diagnostic): Use context->n_opts instead of
732         N_OPTS.
733         (diagnostic_report_diagnostic): Pass context parameter to
734         diagnostic_report_warnings_p.  Use option_enabled and option_name
735         hooks from context.
736         (emit_diagnostic): Use permissive_error_option.
737         (permerror): Likewise.
738         * diagnostic.h: Don't include options.h.
739         (struct diagnostic_context): Add n_opts, opt_permissive,
740         inhibit_warnings, warn_system_headers, option_enabled and
741         option_name fields.  Change classify_diagnostic to a pointer.
742         * opts-diagnostic.h: New file.
743         * opts.c: Include opts-diagnostic.h.
744         (common_handle_option): Set global_dc fields for -Wfatal-errors,
745         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
746         (option_name): New function.
747         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
748         (c_common_handle_option): Set global_dc->permissive for
749         -fpermissive.
750         * c-common.c (c_cpp_error): Save and restore
751         global_dc->warn_system_headers, not variable warn_system_headers.
752         * toplev.c: Include opts-diagnostic.h.
753         (general_init): Update call to diagnostic_initialize.  Set
754         global_dc->show_column, global_dc->option_enabled and
755         global_dc->option_name.
756         (process_options): Don't set global_dc fields here.
757         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
758         (diagnostic.o, opts.o, toplev.o): Update dependencies.
759
760 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
761
762         * config/picochip/picochip.md (movsi): Split a movsi from a
763         const after reload.
764
765 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
766
767         * ggc-zone.c: Update copyright year.
768         (poison_region): Mark memory for Valgrind as undefined before
769         memset () call and inaccessible afterwards.
770         (ggc_pch_total_size): Change type of i to int.
771
772 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
773
774         * ggc-common.c (ggc_free_overhead): Allow empty slot.
775
776 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
777
778         * ggc-common.c: Update copyright year.
779         (ggc_rlimit_bound): Remove prototype.  Compile only if
780         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
781         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
782         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
783         (ggc_min_heapsize_heuristic): Likewise.
784
785 2010-05-26  Richard Guenther  <rguenther@suse.de>
786
787         PR rtl-optimization/44164
788         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
789         no-common access-path disambiguation.
790         (indirect_ref_may_alias_decl_p): Adjust.
791         (indirect_refs_may_alias_p): Likewise.
792         (refs_may_alias_p_1): Likewise.
793
794 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
795
796         * c-typeck.c: Do not include expr.h.
797
798 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
799
800         * rtl.h (decl_default_tls_model): Move prototype from here...
801         * output.h: ...to here.
802         * c-decl.c: Do not include rtl.h.
803         * c-pragma.c: Likewise.
804         * c-parser.c: Likewise.
805         * c-gimplify.c: Likewise.  And also not hard-reg-set.
806         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
807         FIXME note for it.  Add a FIXME note for expr.h.
808         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
809         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
810         defined.
811
812 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
813
814         PR target/44199
815         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
816         or total_size is larger than red zone size for non-V4 ABI, emit a
817         stack_tie resp. frame_tie insn before stack pointer restore.
818         * config/rs6000/rs6000.md (frame_tie): New insn.
819
820 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
821
822         * function.h (struct function): Add can_throw_non_call_exceptions bit.
823         * lto-streamer-in.c (input_function): Stream it in.
824         * lto-streamer-out.c (output_function): Stream it out.
825         * function.c (allocate_struct_function): Set it.
826         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
827         for flag_non_call_exceptions.
828         * cfgbuild.c (control_flow_insn_p): Likewise.
829         (make_edges): Likewise.
830         * cfgexpand.c (expand_stack_alignment): Likewise.
831         * combine.c (distribute_notes): Likewise.
832         * cse.c (cse_extended_basic_block): Likewise.
833         * except.c (insn_could_throw_p): Likewise.
834         * gcse.c (simple_mem): Likewise.
835         * ipa-pure-const.c (check_call): Likewise.
836         (check_stmt ): Likewise.
837         * lower-subreg.c (lower-subreg.c): Likewise.
838         * optabs.c (emit_libcall_block): Likewise.
839         (prepare_cmp_insn): Likewise.
840         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
841         * postreload.c (rest_of_handle_postreload): Likewise.
842         * reload1.c (reload_as_needed): Likewise.
843         (emit_input_reload_insns): Likewise.
844         (emit_output_reload_insns): Likewise.
845         (fixup_abnormal_edges): Likewise.
846         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
847         * store-motion.c (find_moveable_store): Likewise.
848         * tree-eh.c (stmt_could_throw_p): Likewise.
849         (tree_could_throw_p): Likewise.
850         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
851         * config/arm/arm.c (arm_expand_prologue): Likewise.
852         (thumb1_expand_prologue): Likewise.
853         * config/rx/rx.md (cbranchsf4): Likewise.
854         (cmpsf): Likewise.
855         * config/s390/s390.c (s390_emit_prologue): Likewise.
856         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
857         (inline_forbidden_into_p): New predicate.
858         (expand_call_inline): Use it to forbid inlining.
859         (tree_can_inline_p): Likewise.
860
861 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
862
863         * config/i386/i386-c.c: Do not include rtl.h.
864         * config/i386/t-i386: Update dependencies.
865
866 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
867
868         * attribs.c: Do not include rtl.h.
869         * Makefile.in: Update dependencies.
870
871 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
872
873         * double-int.h (double_int_and): New.
874         * combine.c (try_combine): Clean up, use double_int_* and
875         immed_double_int_const functions.
876
877 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
878
879         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
880         stderr to /dev/null instead of grep -q.
881         * configure: Regenerate.
882
883 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
884
885         * Makefile.in (EXCEPT_H): Fix typo.
886
887 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
888
889         * ira-build.c (update_conflict_hard_reg_costs): New.
890         (ira_build): Call update_conflict_hard_reg_costs.
891
892 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
893
894         PR debug/41371
895         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
896         ENABLE_CHECKING.
897         (intersect_loc_chains): Walk the s2var's loc_chain together
898         with s1node chain as long as the locations are equal, don't
899         call find_loc_in_1pdv in that case.
900
901         PR debug/42801
902         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
903         (copy_bind_expr): ... instead of here.
904         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
905         if the block hasn't been remapped.
906         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
907         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
908
909 2010-05-25  Richard Guenther  <rguenther@suse.de>
910
911         PR middle-end/44069
912         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
913         out-of-bounds array accesses.
914
915 2010-05-25  Richard Guenther  <rguenther@suse.de>
916
917         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
918         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
919         (run_gcc): Re-organize to make cleanup easier.
920
921 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
922
923         * config/s390/s390.c (optimization_options): Fix and move the
924         flag_prefetch_loop_arrays override ...
925         (override_options): ... here.
926
927 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
928
929         * diagnostic.c: Don't include plugin.h.
930         (diagnostic_report_diagnostic): Don't handle plugins specially
931         here.  Pass context to internal_error callback.
932         * diagnostic.h (struct diagnostic_context): Add context parameter
933         to internal_error callback.
934         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
935         * plugin.h (struct diagnostic_context): Declare.
936         (warn_if_plugins, plugins_internal_error_function): Declare.
937         * toplev.c (general_init): Set global_dc->internal_error.
938         * Makefile.in (diagnostic.o): Update dependencies.
939
940 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
941
942         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
943         * config/rs6000/t-darwin64: New.
944         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
945         build crt2.
946
947 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
948
949         PR 44203
950         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
951         match the original (and intended) behaviour before r159557.  This
952         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
953         in two ways.
954
955 2010-05-25  Richard Guenther  <rguenther@suse.de>
956
957         * doc/invoke.texi: Document -Ofast.
958         * target.h (struct gcc_target): Add handle_ofast.
959         * target-def.h (TARGET_HANDLE_OFAST): Add.
960         (TARGET_INITIALIZER): Adjust.
961         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
962         * common.opt (Ofast): Add.
963
964 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
965
966         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
967         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
968
969 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
970
971         PR target/43610
972         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
973         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
974         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
975         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
976
977 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
978
979         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
980         DW_OP_minus with negated offset instead of DW_OP_plus.
981         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
982
983 2010-05-25  Wei Guozhi  <carrot@google.com>
984
985         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
986         tst instruction and a new alternative.
987         * config/arm/constraints.md (Pu): New constraint.
988
989 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
990
991         * function.c (assign_stack_local_1): Initialize variable
992         to avoid warning when bootstrapping at -O3.
993
994 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
995
996         * configure.ac (all_lang_makefiles): Remove everything related to it.
997         * configure: Regenerate.
998         * Makefile.in: Fix reference to ada Make-lang.in.
999         Remove support for LANG_MAKEFILES.
1000
1001 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
1002             Sandra Loosemore  <sandra@codesourcery.com>
1003
1004         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1005         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1006         description.  Add arm_neon_fp16_ok.
1007         (Add Options): Add arm_neon and arm_neon_fp16.
1008
1009 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
1010
1011         * diagnostic.c: Don't include flags.h.
1012         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1013         context parameters.  Check flags in the context passed as a parameter.
1014         (diagnostic_build_prefix): Add context parameter.  Check
1015         show_column flag in context.
1016         (diagnostic_action_after_output): Check fatal_errors flag in context.
1017         (diagnostic_report_current_module): Check show_column flag in context.
1018         (default_diagnostic_starter): Update call to
1019         diagnostic_build_prefix.
1020         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1021         (emit_diagnostic): Pass context to permissive_error_kind.
1022         (permerror): Pass context to permissive_error_kind.
1023         * diagnostic.h (struct diagnostic_context): Add show_column,
1024         pedantic_errors, permissive and fatal_errors fields.
1025         (diagnostic_build_prefix): Update prototype.
1026         * langhooks.c
1027         * toplev.c (process_options): Set flags in global_dc from
1028         flag_show_column, flag_pedantic_errors, flag_permissive,
1029         flag_fatal_errors.
1030         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1031         to diagnostic_build_prefix.
1032         * Makefile.in (diagnostic.o): Update dependencies.
1033
1034 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1035
1036         * config/i386/ia32intrin.h (__crc32q): Define only if
1037         __SSE4_2__ is defined.
1038
1039 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
1040
1041         PR target/44132
1042         PR middle-end/43602
1043         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1044         DECL_VISIBILITY_SPECIFIED.
1045         (emutls_decl): Set DECL_PRESERVE_P and copy
1046         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1047         (emutls_finalize_control_var): New callback.
1048         (emutls_finish): Finalize emutls control variables.
1049         * toplev.c (compile_file): Move the call to emutls_finish ()
1050         before varpool_assemble_pending_decls ().
1051
1052 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
1053
1054         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1055         added to the preprocessor condition.
1056
1057 2010-05-24  Paul Brook  <paul@codesourcery.com>
1058
1059         * gengtype-lex.l: Add HARD_REG_SET.
1060         * expr.c (expand_expr_real_1): Record writes to hard registers.
1061         * function.c (rtl_data): Add asm_clobbers.
1062         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1063         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1064         Use crtl->asm_clobbers.
1065
1066 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1067
1068         * doc/makefile.texi (Makefile): Mention stages 'profile'
1069         and 'feedback' for profiledbootstrap.
1070
1071 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1072
1073         PR target/44245
1074         * config/i386/i386.c (def_builtin): Properly check
1075         OPTION_MASK_ISA_64BIT.
1076
1077 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
1078
1079         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1080         typedefs with different but compatible types.  Allow duplicate
1081         typedefs with the same type except for pedantic non-C1X, but give
1082         warning for variably modified types.
1083         * c-typeck.c (tagged_types_tu_compatible_p,
1084         function_types_compatible_p, type_lists_compatible_p,
1085         comptypes_internal): Add parameter different_types_p; set
1086         *different_types_p for different but compatible types.  All
1087         callers changed.
1088         (comptypes_check_different_types): New.
1089         * c-tree.h (comptypes_check_different_types): Declare.
1090
1091 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1092
1093         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
1094         * jump.c: Include basic-block.h.
1095         * profile.c: Likewise.
1096         * tree-profile.c: Likewise.
1097         * coverage.c: Likewise.
1098         * basic-block.h (optimize_function_for_size_p): Move to function.h.
1099         (optimize_function_for_speed_p): Likewise.
1100         * function.h (optimize_function_for_size_p,
1101         optimize_function_for_speed_p): Moved here from basic-block.h.
1102         * Makefile.in: Update dependencies.
1103
1104 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1105
1106         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1107         before calling make; allow override through $MAKE.
1108         * doc/invoke.texi (Optimize Options): Document override.
1109
1110 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
1111
1112         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1113         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1114         (rs6000_mode_dependent_address_ptr): Make static.
1115         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1116         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1117         Remove.
1118
1119 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
1120
1121         PR target/43869
1122         * config/i386/i386.c: Make sure that the correct regparm is passed.
1123
1124 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1125
1126         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1127         * sbitmap.c: ...to here to internalize sbitmap element access.
1128         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1129         Explain why basic-block.h is included.
1130         * function.h: Include tm.h for CUMULATIVE_ARGS.
1131         * Makefile.in: Update dependencies.
1132
1133 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1134
1135         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1136         New core types.
1137         * sbitmap.h (struct sbitmap_def): Do not typedef here.
1138         * sbitmap.c: Include sbitmap.h.
1139         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1140         hard-reg-set.h.  Split everything related to regsets out from here...
1141         * regset.h: ...to here.  New file.
1142         * df.h: Include regset.h and sbitmap.h.
1143         * tree-flow.h: Likewise.
1144         * cfgloop.h: Likewise.
1145         * except.h: Do not include sbitmap.h.  Include hashtab.h.
1146         * cgraph.h: Include vec.h and function.h.
1147         * reload.h (struct insn_chain): Change types of live_throughout
1148         and dead_or_set from regset_head to bitmap_head.
1149         (compute_use_by_pseudos): Be defined also if regset.h is not included.
1150         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1151         spilled_regs from regset_head to bitmap_head to avoid dependency
1152         in regset.h.
1153         * sel-sched-ir.h: Include regset.h.
1154         * reload.c: Include df.h before reload.h.
1155         * caller-save.c: Likewise.
1156         * reload1.c: Likewise.
1157         * ira.c: Likewise.
1158         (mark_elimination): Update type of r to bitmap, consistent with
1159         DF_LR_IN.
1160         * dominance.c: Include bitmap.h.
1161         * modulo-sched.c: Include df.h.
1162         * cfganal.c: Include bitmap.h and sbitmap.h.
1163         * cfgbuild.c: Include sbitmap.h.
1164         * lcm.c: Include sbitmap.h.
1165         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1166         * domwalk.c: Include sbitmap.h, exclude ggc.h.
1167         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1168         * cselib.c: Include bitmap.h.
1169         * tree-optimize.c: Include regset.h.
1170         * stmt.c: Include bitmap.h.
1171         * Makefile.in: Update dependencies.
1172
1173 2010-05-22  Jan Hubicka  <jh@suse.cz>
1174
1175         * cgraph.h (struct varpool_node): Add same_comdat_group.
1176         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1177         pointer.
1178         (output_varpool): Update call of lto_output_varpool_node.
1179         (input_varpool): Read same_comdat_group pointer.
1180         (input_varpool_1): Fixup same_comdat_group pointer.
1181         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1182         group is needed, all are.
1183         * varpool.c (varpool_remove_node): Remove node from same comdat group
1184         linklist too.
1185         (varpool_analyze_pending_decls): Walk same comdat groups.
1186
1187 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1188
1189         * rtl.h (union rtunion_def): Remove rt_bit member.
1190         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1191         * print-rtl (print_rtx): Do not print the member.
1192         * gengtype.c (adjust_field_rtx_def): Do not handle it.
1193         * gengenrtl.c (type_from_format): Likewise.
1194         (accessor_from_format): Likewise.
1195
1196 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
1197
1198         * dbgcnt.c: Include toplev.h instead of errors.h.
1199         * ira-emit.c: Don't include errors.h.
1200         * ira.c: Include toplev.h instead of errors.h.
1201         * lto-compress.c: Include toplev.h instead of errors.h.
1202         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1203         ira.o, dbgcnt.o): Update dependencies.
1204
1205 2010-05-22  Richard Guenther  <rguenther@suse.de>
1206
1207         * gimple.c (gimple_types_compatible_p): Check type qualifications
1208         before merging pointer to complete and pointer to incomplete type.
1209         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1210         we use our own resolution algorithm.  The gold linker plugin
1211         doesn't do the job we want it to do here.
1212
1213 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
1214
1215         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1216         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1217         (sparc_mode_dependent_address_p): New function.
1218
1219 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1220
1221         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1222
1223         * timevar.c: Do not include any core headers.
1224         (timevar_print): De-i18n-ize.
1225         (print_time): Likewise.
1226         * timevar.h (timevar_push, timevar_pop): Make inline functions.
1227
1228 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1229
1230         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1231         langhooks-def.h.
1232         (diagnostic_initialize): Initialize x_data not last_function.
1233         (diagnostic_report_current_function): Move to tree-diagnostic.c.
1234         (default_diagnostic_starter): Call
1235         diagnostic_report_current_module not
1236         diagnostic_report_current_function.
1237         (diagnostic_report_diagnostic): Initialize x_data not
1238         abstract_origin.
1239         (verbatim): Likewise.
1240         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1241         x_data.
1242         (struct diagnostic_context): Change last_function to x_data.
1243         (diagnostic_auxiliary_data): Replace with
1244         diagnostic_context_auxiliary_data and
1245         diagnostic_info_auxiliary_data.
1246         (diagnostic_last_function_changed, diagnostic_set_last_function,
1247         diagnostic_report_current_function): Move to tree-diagnostic.h.
1248         (print_declaration, dump_generic_node, print_generic_stmt,
1249         print_generic_stmt_indented, print_generic_expr,
1250         print_generic_decl, debug_c_tree, dump_omp_clauses,
1251         print_call_name, debug_generic_expr, debug_generic_stmt,
1252         debug_tree_chain, default_tree_printer): Move to
1253         tree-pretty-print.h.
1254         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1255         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1256         gimple-pretty-print.h.
1257         * pretty-print.c: Don't include tree.h
1258         (pp_base_format): Don't handle %K here.
1259         (pp_base_tree_identifier): Move to tree-pretty-print.c.
1260         * pretty-print.h (text_info): Change abstract_origin to x_data.
1261         (pp_tree_identifier, pp_unsupported_tree,
1262         pp_base_tree_identifier): Move to tree-pretty-print.h.
1263         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1264         tree-pretty-print.h: New files.
1265         * tree-pretty-print.c: Include tree-pretty-print.h.
1266         (percent_K_format): New.  Moved from pretty-print.c.
1267         (pp_base_tree_identifier): Move from pretty-print.c.
1268         * c-objc-common.c: Include tree-pretty-print.h.
1269         (c_tree_printer): Handle %K here.
1270         * langhooks.c: Include tree-diagnostic.h.
1271         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1272         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1273         (default_tree_printer): Handle %K using percent_K_format.
1274         (general_init): Use default_tree_diagnostic_starter.
1275         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1276         (free_lang_data): Use default_tree_diagnostic_starter.
1277         * c-pretty-print.c: Include tree-pretty-print.h.
1278         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1279         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1280         * dwarf2out.c: Include tree-pretty-print.h.
1281         * except.c: Include tree-pretty-print.h.
1282         * gimple-pretty-print.c: Include tree-pretty-print.h and
1283         gimple-pretty-print.h.
1284         * gimplify.c: Include tree-pretty-print.h.
1285         * graphite-poly.c: Include tree-pretty-print.h and
1286         gimple-pretty-print.h.
1287         * ipa-cp.c: Include tree-pretty-print.h.
1288         * ipa-inline.c: Include gimple-pretty-print.h.
1289         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1290         * ipa-pure-const.c: Include gimple-pretty-print.h.
1291         * ipa-struct-reorg.c: Include tree-pretty-print.h and
1292         gimple-pretty-print.h.
1293         * ipa-type-escape.c: Include tree-pretty-print.h.
1294         * print-rtl.c: Include tree-pretty-print.h.
1295         * print-tree.c: Include gimple-pretty-print.h.
1296         * sese.c: Include tree-pretty-print.h.
1297         * tree-affine.c: Include tree-pretty-print.h.
1298         * tree-browser.c: Include tree-pretty-print.h.
1299         * tree-call-cdce.c: Include gimple-pretty-print.h.
1300         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1301         * tree-chrec.c: Include tree-pretty-print.h.
1302         * tree-data-ref.c: Include tree-pretty-print.h and
1303         gimple-pretty-print.h.
1304         * tree-dfa.c: Include tree-pretty-print.h.
1305         * tree-if-conv.c: Include tree-pretty-print.h and
1306         gimple-pretty-print.h.
1307         * tree-inline.c: Include tree-pretty-print.h.
1308         * tree-into-ssa.c: Include tree-pretty-print.h and
1309         gimple-pretty-print.h.
1310         * tree-nrv.c: Include tree-pretty-print.h.
1311         * tree-object-size.c: Include tree-pretty-print.h and
1312         gimple-pretty-print.h.
1313         * tree-outof-ssa.c: Include tree-pretty-print.h and
1314         gimple-pretty-print.h.
1315         * tree-parloops.c: Include tree-pretty-print.h and
1316         gimple-pretty-print.h.
1317         * tree-predcom.c: Include tree-pretty-print.h and
1318         gimple-pretty-print.h.
1319         * tree-scalar-evolution.c: Include tree-pretty-print.h and
1320         gimple-pretty-print.h.
1321         * tree-sra.c: Include tree-pretty-print.h.
1322         * tree-ssa-address.c: Include tree-pretty-print.h.
1323         * tree-ssa-alias.c: Include tree-pretty-print.h.
1324         * tree-ssa-ccp.c: Include tree-pretty-print.h and
1325         gimple-pretty-print.h.
1326         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1327         * tree-ssa-copy.c: Include tree-pretty-print.h and
1328         gimple-pretty-print.h.
1329         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1330         * tree-ssa-dce.c: Include tree-pretty-print.h and
1331         gimple-pretty-print.h.
1332         * tree-ssa-dom.c: Include tree-pretty-print.h and
1333         gimple-pretty-print.h.
1334         * tree-ssa-dse.c: Include gimple-pretty-print.h.
1335         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1336         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1337         * tree-ssa-live.c: Include tree-pretty-print.h and
1338         gimple-pretty-print.h.
1339         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1340         gimple-pretty-print.h.
1341         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1342         gimple-pretty-print.h.
1343         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1344         gimple-pretty-print.h.
1345         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1346         gimple-pretty-print.h.
1347         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1348         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1349         * tree-ssa-operands.c: Include tree-pretty-print.h and
1350         gimple-pretty-print.h.
1351         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1352         gimple-pretty-print.h.
1353         * tree-ssa-pre.c: Include tree-pretty-print.h and
1354         gimple-pretty-print.h.
1355         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1356         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1357         gimple-pretty-print.h.
1358         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1359         gimple-pretty-print.h.
1360         * tree-ssa-sink.c: Include gimple-pretty-print.h.
1361         * tree-ssa-ter.c: Include tree-pretty-print.h and
1362         gimple-pretty-print.h.
1363         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1364         * tree-ssa.c: Include tree-pretty-print.h and
1365         gimple-pretty-print.h.
1366         * tree-stdarg.c: Include gimple-pretty-print.h.
1367         * tree-switch-conversion.c: Include gimple-pretty-print.h.
1368         * tree-tailcall.c: Include tree-pretty-print.h and
1369         gimple-pretty-print.h.
1370         * tree-vect-data-refs.c: Include tree-pretty-print.h and
1371         gimple-pretty-print.h.
1372         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1373         gimple-pretty-print.h.
1374         * tree-vect-loop.c: Include tree-pretty-print.h and
1375         gimple-pretty-print.h.
1376         * tree-vect-patterns.c: Include gimple-pretty-print.h.
1377         * tree-vect-slp.c: Include tree-pretty-print.h and
1378         gimple-pretty-print.h.
1379         * tree-vect-stmts.c: Include tree-pretty-print.h and
1380         gimple-pretty-print.h.
1381         * tree-vectorizer.c: Include tree-pretty-print.h.
1382         * tree-vrp.c: Include tree-pretty-print.h and
1383         gimple-pretty-print.h.
1384         * value-prof.c: Include tree-pretty-print.h and
1385         gimple-pretty-print.h.
1386         * var-tracking.c: Include tree-pretty-print.h.
1387         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1388         (tree-diagnostic.o): New dependencies.
1389         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1390         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1391         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1392         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1393         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1394         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1395         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1396         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1397         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1398         tree-ssa-address.o, tree-ssa-loop-niter.o,
1399         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1400         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1401         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1402         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1403         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1404         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1405         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1406         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1407         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1408         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1409         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1410         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1411         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1412         tree-switch-conversion.o, var-tracking.o, value-prof.o,
1413         cfgexpand.o, pretty-print.o): Update dependencies.
1414
1415 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
1416
1417         * tree-ssa-structalias.c: Remove tm_p.h from include.
1418
1419 2010-05-21  Jeff Law  <law@redhat.com>
1420
1421         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1422
1423 2010-05-21  Jason Merrill  <jason@redhat.com>
1424
1425         * tree-eh.c (cleanup_is_dead_in): New.
1426         (lower_try_finally): Don't generate a dead cleanup region.
1427         (lower_cleanup): Likewise.
1428
1429 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1430
1431         PR debug/44223
1432         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1433         unchain each use from the cyclic next_regno_use chain first.
1434
1435 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1436
1437         * real: Do not include gmp.h, mpfr.h, and mpc.h.
1438         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1439         (real_value_negate, real_value_abs): New prototypes.
1440         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1441         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1442         new include file for interface between MPFR and REAL_VALUE_TYPE.
1443         * real.c: Include realmpfr.h.
1444         (real_arithmetic2): Remove legacy function.
1445         (real_value_negate): New.
1446         (real_value_abs): New.
1447         (mfpr_from_real, real_from_mpfr): Move from here...
1448         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1449         * builtins.c: Include realmpfr.h.
1450         * fold-const.c: Include realmpfr.h.
1451         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1452         (fold_negate_const): Likewise.
1453         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1454         * toplev.c: Include realmpfr.h.
1455         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1456         and real_value_negate.
1457         * fixed-value.c (check_real_for_fixed_mode): Likewise.
1458         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1459         (vfp3_const_double_index): Likewise.
1460         (arm_print_operand): Likewise.
1461         * Makefile.in: Update dependencies.
1462
1463 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1464
1465         * config/s390/s390.c (override_options): Increase the default
1466         of max-completely-peel-times.
1467
1468 2010-05-21  Julian Brown  <julian@codesourcery.com>
1469             Mark Mitchell  <mark@codesourcery.com>
1470
1471         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1472         sibling calls for Thumb-1.
1473         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1474         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1475         Thumb-2.
1476         (*call_insn, *call_value_insn): Don't use for Thumb-2.
1477         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1478         for Thumb-2.
1479         (return): New expander.
1480         (*arm_return): New name for ARM return insn.
1481         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1482
1483 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1484
1485         * config.gcc (sparc64-*-rtems*): New target.
1486
1487 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
1488
1489         * tree.c (build_function_decl_skip_args): Fix grammar.
1490         (build_function_type_list_1): Fix typos, adjust formatting.
1491
1492 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1493
1494         * tree.h: Include real.h and fixed-value.h as basic datatypes.
1495         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1496         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1497         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1498         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1499         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1500         tree-pretty-print.c, tree-loop-distribution.c,
1501         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1502         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1503         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1504         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1505         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1506         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1507         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1508         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1509         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1510         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1511         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1512         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1513         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1514         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1515         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1516         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1517         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1518         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1519         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1520         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1521         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1522         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1523         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1524         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1525         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1526         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1527         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1528         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1529         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1530         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1531         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1532         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1533         config/score/score7.c, config/score/score.c, config/arm/arm.c,
1534         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1535         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1536         config/bfin/bfin.c: Clean up redundant includes.
1537         * Makefile.in: Update accordingly.
1538
1539 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
1540
1541         PR middle-end/44204
1542         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1543         statement has no arguments.
1544
1545 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
1546
1547         PR/44139
1548         * varasm.c (emutls_decl): Merge attributes to new decl.
1549
1550 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1551
1552         PR middle-end/44101
1553         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1554         around the uniquized constructor if its type requires a conversion.
1555
1556 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1557
1558         PR debug/44205
1559         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1560         at -O0 goto_locus of any of the incoming edges differs from
1561         goto_locus of outgoing edge, or gimple_location of any of the
1562         labels differs.
1563
1564 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
1565
1566         * ira.c (ira_non_ordered_class_hard_regs): Define.
1567         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1568         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1569         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1570         cost of unaligned hard regs when allocating multi-reg pseudos.
1571
1572 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
1573
1574         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1575         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1576         for TARGET_NO_FLOAT.
1577         * config/mips/mips.c (mips_file_start): Expand conditional expression
1578         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1579         (mips_override_options): Move -mno-float override -msoft-float and
1580         -mhard-float.
1581         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1582         Condition(TARGET_SUPPORTS_NO_FLOAT).
1583         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1584         __mips_no_float here.
1585         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1586         (TARGET_SUPPORTS_NO_FLOAT): Define.
1587         * config/mips/sdemtk.opt: Delete.
1588
1589 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
1590
1591         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1592
1593 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
1594
1595         PR target/43733
1596         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1597         * configure: Regenerate.
1598         * config.in: Regenerate.
1599         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1600         instead of sahf only for 64bit targets.
1601
1602 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
1603
1604         PR debug/44178
1605         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1606         setup_ref_regs for DEBUG_INSNs.
1607
1608 2010-05-20  Jan Hubicka  <jh@suse.cz>
1609
1610         PR middle-end/44197
1611         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1612
1613 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1614
1615         PR bootstrap/43870
1616         * df-scan.c (df_ref_compare): Stabilize sort.
1617
1618 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
1619
1620         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1621         argument.  Don't use DW_OP_piece if offset is non-zero,
1622         put offset into second DW_OP_bit_piece argument.
1623         (dw_sra_loc_expr): Adjust callers.  For memory expressions
1624         compute offset.
1625
1626 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
1627
1628         PR target/44202
1629         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1630         settings for 16-bit-constant "addo" alternative.
1631
1632 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
1633
1634         * config/mips/mips-dsp.md (add<DSPV:mode>3,
1635         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1636
1637         PR target/43764
1638         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
1639         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1640         Use it.
1641
1642 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
1643
1644         * diagnostic.c (FLOAT, FFS): Don't undefine.
1645         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1646         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1647         include ordering.
1648
1649 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
1650
1651         * combine.c (propagate_for_debug): Call make_compound_operation
1652         on the source value.
1653         (try_combine): When implementing a split chosen by find_split_point,
1654         either copy i2src or set it to null.  Assert that i2src is not null
1655         before substituting into CALL_INSN_FUNCTION_USAGE.
1656
1657 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
1658
1659         * double-int.h (double_int_ior): New function.
1660         * tree.h (build_int_cst_wide_type): Remove.
1661         * tree.c (build_int_cst_wide_type): Remove.
1662         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1663         of build_int_cst_wide_type.
1664         * stor-layout.c (set_sizetype): (Ditto.).
1665         * dojump.c (do_jump): Use build_int_cstu instead of
1666         build_int_cst_wide_type.
1667
1668 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1669
1670         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1671         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1672         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1673         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1674         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
1675         propagate the 'data' argument to copy_tree_r.
1676         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1677         Propagate 'data' argument to walk_tree.
1678         (copy_if_shared): New function.
1679         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1680         (unmark_visited): New function.
1681         (unshare_body): Call copy_if_shared instead of doing it manually.
1682         (unvisit_body): Call unmark_visited instead of doing it manually.
1683
1684 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
1685
1686         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1687         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
1688         * hooks.c: Likewise.
1689         * target-def.h (TARGET_FOLD_BUILTIN): Define to
1690         hook_tree_tree_int_treep_bool_null.
1691         * target.h (struct gcc_target): Update signature of fold_builtin
1692         field.
1693         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
1694         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
1695         instead of the call expression.
1696         (fold_builtin_call_array): Pass n and argarray directly.
1697         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
1698         consing a list.
1699         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
1700         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
1701         `i' and use it in place of `arity'.
1702         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
1703         Dereference `args' directly.
1704         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
1705
1706 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1707
1708         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1709         3dnow, sse3, sse2.
1710         (Directives): Document optional dg-require-effective-target
1711         selector.
1712
1713 2010-05-19  Richard Guenther  <rguenther@suse.de>
1714
1715         PR lto/44196
1716         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1717
1718 2010-05-19  Richard Guenther  <rguenther@suse.de>
1719
1720         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
1721         * common.opt (fwhopr=): New.
1722         * opts.c (common_handle_option): Handle OPT_fwhopr.
1723         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
1724         * collect2.c (main): Match -fwhopr*.
1725         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
1726         Execute ltrans stage in parallel when jobs is bigger than 1.
1727
1728 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1729
1730         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1731         pentiumpro on Solaris 8/x86 with Sun as.
1732         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1733         hidden alias bug.
1734         (gcc_cv_as_ix86_quad): Check for .quad directive.
1735         * configure: Regenerate.
1736         * config.in: Regenerate.
1737         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1738
1739 2010-05-19  Martin Jambor  <mjambor@suse.cz>
1740
1741         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
1742         also for indirect edges.  Actual printing moved...
1743         (ipa_print_node_jump_functions_for_edge): ...here.
1744         (ipa_compute_jump_functions): Renamed to
1745         ipa_compute_jump_functions_for_edge and made static.
1746         (ipa_compute_jump_functions): New function.
1747         (make_edge_direct_to_target): Check if the number of arguments on
1748         the newly direct edge is the same as the number of parametrs of
1749         the callee.
1750         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
1751         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
1752         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1753         analysis functions unconditionally, call the new
1754         ipa_analyze_params_uses on the node instead of every edge.
1755
1756 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
1757
1758         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
1759         to tree.
1760         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
1761         also checks for a constant int vs.  non-constant but
1762         loop-invariant steps.
1763         (find_or_create_group): Change the sort algorithm to only consider
1764         steps that are constant ints.
1765         (idx_analyze_ref): Adopt code to handle a tree instead of a
1766         HOST_WIDE_INT for step.
1767         (gather_memory_references_ref): Handle tree instead of int and be
1768         prepared to see a NULL_TREE.
1769         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
1770         prefetches if the step cannot be calculated at compile time.
1771         (issue_prefetch_ref): Issue prefetches for non-constant but
1772         loop-invariant steps.
1773
1774 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1775
1776         Revert:
1777         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1778
1779         * tree.h (build_call_list): Remove.
1780         * tree.c (build_call_list): Remove.
1781
1782 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1783
1784         * tree.h (build_call_list): Remove.
1785         * tree.c (build_call_list): Remove.
1786
1787 2010-05-18  Jan Hubicka  <jh@suse.cz>
1788
1789         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
1790
1791 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
1792
1793         PR rtl-optimization/43332
1794         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
1795
1796 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
1797
1798         * tree.h (build_int_cstu): Implement as static inline.
1799         * tree.c (build_int_cstu): Remove function.
1800         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
1801         sign extended.
1802
1803 2010-05-18  Richard Guenther  <rguenther@suse.de>
1804
1805         PR lto/44143
1806         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
1807         (debug): Initialize from -save-temps.
1808         (collect_execute): Print command-line when verbose.
1809         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
1810         for ltrans invocation.  Produce -dumpbase flag again.
1811         (process_args): Remove.
1812         (main): Simplify.
1813         * collect2.c (maybe_run_lto_and_relink): Only pass object
1814         files to lto-wrapper.
1815         * gcc.c (LINK_COMMAND_SPEC): Likewise.
1816
1817 2010-05-18  Jan Hubicka  <jh@suse.cz>
1818
1819         * opts.c (decode_options): Do not disable whopr at ipa_cp.
1820         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
1821
1822 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
1823
1824         PR lto/44184
1825         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1826         in a GIMPLE_ASM.
1827         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1828         in a GIMPLE_ASM.
1829
1830 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
1831
1832         PR debug/41371
1833         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
1834         rtx_equal_p inline.
1835
1836 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
1837
1838         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
1839         lto-macho as lto_binary_reader.
1840
1841         * darwin.c (darwin_asm_named_section): Do not add assembler comment
1842         after .section directive; just print it before the directive instead.
1843
1844 2010-05-17  Jan Hubicka  <jh@suse.cz>
1845
1846         * cgraph.c (cgraph_create_virtual_clone): Only check
1847         versionable_function_p when not in wpa and checking is enabled.
1848         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
1849         there are no more functions to materialize.
1850
1851 2010-05-17  Jan Hubicka  <jh@suse.cz>
1852
1853         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
1854         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
1855         New functions.
1856         (output_cgraph): Call output_cgraph_opt_summary.
1857         (input_cgrpah): Call input_cgraph_opt_summary.
1858         (output_cgraph_opt_summary_p, output_node_opt_summary,
1859         input_node_opt_summary, input_cgraph_opt_section): New functions.
1860         * lto-section-in.c (lto_section_name): Add cgraphopt.
1861         * tree-inline.c (tree_function_versioning): Handle parm_num.
1862         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
1863         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
1864
1865 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
1866
1867         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
1868         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
1869         the insn to prefetch ratio heuristic to loops with known trip count.
1870
1871 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
1872
1873         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
1874         (schedule_prefetches): Do not generate a prefetch if the unroll factor
1875         is far from what is required by the prefetch.
1876
1877 2010-05-17  Jan Hubicka  <jh@suse.cz>
1878
1879         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
1880         (ipcp_estimate_growth): Likewise.
1881         (ipcp_const_param_count): Likewise.
1882         (ipcp_insert_stage): Likewise.
1883         * ipa-prop.c (visit_load_for_mod_analysis): New function.
1884         (visit_store_addr_for_mod_analysis): Set used flag.
1885         (ipa_detect_param_modifications): Set used flag for SSE params;
1886         update use of walk_stmt_load_store_addr_ops.
1887         (ipa_print_node_params): Print used flag.
1888         (ipa_write_node_info): Stream used flag.
1889         (ipa_read_node_info): Likewise.
1890         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
1891         (ipa_is_param_used): New function.
1892         (lto_ipa_fixup_call_notes): Remove unused declaration.
1893
1894 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1895
1896         PR target/44074
1897         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1898         * configure: Regenerate.
1899         * config.in: Regenerate.
1900         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
1901         !HAVE_AS_IX86_REP_LOCK_PREFIX.
1902         Don't emit whitespace.
1903         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1904         (*rep_movsi): Likewise.
1905         (*rep_movsi_rex64): Likewise.
1906         (*rep_movqi): Likewise.
1907         (*rep_movqi_rex64): Likewise.
1908         (*rep_stosdi_rex64): Likewise.
1909         (*rep_stossi): Likewise.
1910         (*rep_stossi_rex64): Likewise.
1911         (*rep_stosqi): Likewise.
1912         (*rep_stosqi_rex64): Likewise.
1913         (*cmpstrnqi_nz_1): Use {%;} after repz.
1914         (*cmpstrnqi_nz_rex_1): Likewise.
1915         (*cmpstrnqi_1): Likewise.
1916         (*cmpstrnqi_rex_1): Likewise.
1917         (*strlenqi_1): Use {%;} after repnz.
1918         (*strlenqi_rex_1): Likewise.
1919         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
1920         (*sync_compare_and_swap<mode>): Likewise.
1921         (sync_double_compare_and_swap<mode>): Likewise.
1922         (*sync_double_compare_and_swapdi_pic): Likewise.
1923         (sync_old_add<mode>): Likewise.
1924         (sync_add<mode>): Likewise.
1925         (sync_sub<mode>): Likewise.
1926         (sync_<code><mode>): Likewise.
1927
1928 2010-05-17  Martin Jambor  <mjambor@suse.cz>
1929
1930         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
1931         otr_token and polymorphic.
1932         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
1933         (cgraph_clone_edge): Copy the above fields.
1934         * tree.c (get_binfo_at_offset): New function.
1935         * tree.h (get_binfo_at_offset): Declare.
1936         * ipa-prop.h (enum jump_func_type): Added known_type jump function
1937         type, reordered items, updated comments.
1938         (union jump_func_value): Added base_type field, reordered fields.
1939         (enum ipa_lattice_type): Moved down in the file.
1940         (struct ipa_param_descriptor): New field polymorphic.
1941         (ipa_is_param_polymorphic): New function.
1942         * ipa-prop.c: Include gimple.h and gimple-fold.h.
1943         (ipa_print_node_jump_functions): Print known type jump functions.
1944         (compute_complex_pass_through): Renamed to...
1945         (compute_complex_assign_jump_func): this.
1946         (compute_complex_ancestor_jump_func): New function.
1947         (compute_known_type_jump_func): Likewise.
1948         (compute_scalar_jump_functions): Create known type and complex ancestor
1949         jump functions.
1950         (ipa_note_param_call): New parameter polymorphic, set the corresponding
1951         flag in the call note accordingly.
1952         (ipa_analyze_call_uses): Renamed to...
1953         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
1954         variable var only in the block where it is used.
1955         (ipa_analyze_virtual_call_uses): New function.
1956         (ipa_analyze_call_uses): Likewise.
1957         (combine_known_type_and_ancestor_jfs): Likewise.
1958         (update_jump_functions_after_inlining): Implemented handling of a
1959         number of new jump function types combination.
1960         (print_edge_addition_message): Removed.
1961         (make_edge_direct_to_target): New function.
1962         (try_make_edge_direct_simple_call): Likewise.
1963         (try_make_edge_direct_virtual_call): Likewise.
1964         (update_call_notes_after_inlining): Renamed to...
1965         (update_indirect_edges_after_inlining): this.  Moved edge creation for
1966         indirect calls to try_make_edge_direct_simple_call, also calls
1967         try_make_edge_direct_virtual_call for virtual calls.
1968         (ipa_print_node_params): Changed the header message.
1969         (ipa_write_jump_function): Stream also known type jump functions.
1970         (ipa_read_jump_function): Likewise.
1971         (ipa_write_indirect_edge_info): Stream new fields in
1972         cgraph_indirect_call_info.
1973         (ipa_read_indirect_edge_info): Likewise.
1974         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
1975         GIMPLE_FOLD_H.
1976
1977 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1978
1979         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
1980
1981 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
1982
1983         * tree.h (CALL_EXPR_ARGS): Delete.
1984         (call_expr_arglist): Delete.
1985         * tree.c (call_expr_arglist): Delete.
1986         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
1987         targetm.fold_builtin.
1988         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
1989         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
1990         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
1991         arglist parameter.  Use CALL_EXPR_ARG.
1992         (picochip_expand_builtin_3op): Likewise.
1993         (picochip_expand_builtin_2opvoid): Likewise.
1994         (picochip_expand_array_get): Likewise.
1995         (picochip_expand_array_put): Likewise.
1996         (picochip_expand_array_testport): Likewise.
1997         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
1998         rather than arglist.
1999         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2000         CALL_EXPR_ARGS.
2001         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2002         than TREE_VALUE and TREE_CHAIN.
2003         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2004         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2005         the arglist.
2006
2007 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2008
2009         PR bootstrap/42347
2010         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2011         to have no fallthru edge.
2012
2013         PR middle-end/44102
2014         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2015         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2016         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2017         add BARRIER after previous bb if needed.
2018
2019 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2020
2021         * tree.c (build_function_type_list_1): Remove bogus assert condition.
2022
2023 2010-05-17  Alan Modra  <amodra@gmail.com>
2024
2025         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2026         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
2027         with copy_reg rtx param.
2028         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2029         Correct cases where code for ABI_V4 did not initialise the reg
2030         used to access frame.  Also leave frame_reg_rtx as sp for large
2031         frames that save no regs.
2032
2033 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2034
2035         PR middle-end/44133
2036         * tree-sra.c (create_access_replacement): New parameter rename, mark
2037         the replaement for renaming only when it is true.
2038         (get_access_replacement): Pass true in the rename parameter of
2039         create_access_replacement.
2040         (get_unrenamed_access_replacement): New function.
2041         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2042         replacement declaration from it.
2043
2044 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
2045
2046         * function.c (try_fit_stack_local, add_frame_space): New static
2047         functions.
2048         (assign_stack_local_1): Use them.  Look for opportunities to use
2049         space previously wasted on alignment.
2050         * function.h (struct frame_space): New.
2051         (struct rtl_data): Add FRAME_SPACE_LIST member.
2052         * reload1.c (something_was_spilled): New static variable.
2053         (alter_reg): Set it.
2054         (reload): Test it in addition to testing if the frame size changed.
2055
2056 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
2057
2058         * config/s390/s390.c: Define sane prefetch settings and activate
2059         flag_prefetch_loop_arrays on -O3.
2060         * config/s390/s390.h: Declare that read can use write prefetch.
2061
2062 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2065         build.
2066
2067 2010-05-16  Jan Hubicka  <jh@suse.cz>
2068
2069         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2070         function body; do not check stdarg field of struct function.
2071
2072 2010-05-16  Jan Hubicka  <jh@suse.cz>
2073
2074         * cgraph.c (dump_cgraph_node): Dump versionable flag.
2075         * cgraph.h (cgraph_local_info): Add versionable flag.
2076         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2077         (ipcp_versionable_function_p): Use it.
2078         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2079         versionable flag.
2080
2081 2010-05-16  Jan Hubicka  <jh@suse.cz>
2082
2083         * cgraph.c (cgraph_clone_node): Take decl argument and insert
2084         clone into hash when it is different from orig.
2085         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2086         * cgraph.h (cgraph_clone_node): Update prototype.
2087         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2088         (lto_cgraph_encoder_delete): Delete body map.
2089         (lto_cgraph_encoder_size): Move to header.
2090         (lto_cgraph_encoder_encode_body_p,
2091         lto_set_cgraph_encoder_encode_body): New.
2092         (lto_output_node): Do not take written_decls argument; output clone_of
2093         pointer.
2094         (add_node_to): Add include_body_argument; call
2095         lto_set_cgraph_encoder_encode_body on master of the clone.
2096         (add_references): Update use of add_node_to.
2097         (compute_ltrans_boundary): Likewise.
2098         (output_cgraph): Do not create written_decls bitmap.
2099         (input_node): Take nodes argument; stream in clone_of correctly.
2100         (input_cgraph_1): Update use of input_node.
2101         * lto-streamer-out.c (lto_output): Use encoder info to decide
2102         what bodies to output.
2103         * ipa-inline.c (cgraph_clone_inlined_nodes,
2104         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2105         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2106         (lto_cgraph_encoder_size): Define here.
2107         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2108         Declare.
2109
2110 2010-05-16  Richard Guenther  <rguenther@suse.de>
2111
2112         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2113         -fipa-type-escape.
2114         * ipa-type-escape.c (gate_type_escape_vars): Run when
2115         -fipa-struct-reorg runs.
2116         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2117         * common.opt (fipa-type-escape): Remove.
2118
2119 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2120
2121         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2122         (decode_options): Likewise.
2123         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2124
2125 2010-05-16  Jan Hubicka  <jh@suse.cz>
2126
2127         * ipa.c (function_and_variable_visibility): Also bring local all
2128         aliases.
2129
2130 2010-05-16  Richard Guenther  <rguenther@suse.de>
2131
2132         * alias.c (nonoverlapping_memrefs_p): Remove use of
2133         IPA type-escape information.
2134
2135 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
2136
2137         * c-common.c (c_common_reswords): Add _Static_assert for C.
2138         * c-parser.c (c_token_starts_declaration,
2139         c_parser_next_token_starts_declaration,
2140         c_parser_static_assert_declaration_no_semi,
2141         c_parser_static_assert_declaration): New.
2142         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2143         Handle static assertions if static_assert_ok.
2144         (c_parser_external_declaration, c_parser_declaration_or_fndef,
2145         c_parser_compound_statement_nostart, c_parser_label,
2146         c_parser_for_statement, c_parser_objc_methodprotolist,
2147         c_parser_omp_for_loop): All callers of
2148         c_parser_declaration_or_fndef changed.
2149         (c_parser_struct_declaration): Handle static assertions.
2150         (c_parser_compound_statement_nostart): Use
2151         c_parser_next_token_starts_declaration and
2152         c_token_starts_declaration to detect start of declarations.
2153         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2154         Likewise.
2155
2156 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
2157
2158         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2159         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2160         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2161         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2162         (mmix_function_outgoing_value): Rename to...
2163         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2164         (mmix_function_value_regno_p): Make static.
2165         (mmix_libcall_value): New function.
2166         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2167         mmix_function_value_regno_p): Remove declaration.
2168
2169 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2170
2171         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2172         BUILT_IN_ALLOCA if stack checking is enabled.
2173
2174 2010-05-16  Richard Guenther  <rguenther@suse.de>
2175
2176         * var-tracking.c (vars_copy_1): Inline ...
2177         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2178         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
2179         (variable_merge_over_cur): Adjust.  Merge asserts.
2180         (variable_merge_over_src): Likewise.
2181         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2182         (variable_post_merge_new_vals): Merge asserts.
2183         (variable_post_merge_perm_vals): Likewise.
2184         (find_mem_expr_in_1pdv): Likewise.
2185         (dataflow_set_different_value): Remove.
2186         (onepart_variable_different_p): Merge asserts.
2187         (variable_different_p): Likewise.
2188         (dataflow_set_different_1): Inline ...
2189         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2190         (emit_notes_for_differences_1): Merge asserts.
2191
2192 2010-05-16  Richard Guenther  <rguenther@suse.de>
2193
2194         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2195         * optabs.c (libfunc_decl_hash): Likewise.
2196         * varasm.c (emutls_decl): Likewise.
2197
2198 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
2199
2200         * c-decl.c: Don't include gimple.h.
2201         (merge_decls): Do not copy gimple_body.
2202
2203 2010-05-15  Jason Merrill  <jason@redhat.com>
2204
2205         * c.opt: Add -fnothrow-opt.
2206
2207 2010-05-15  Jan Hubicka  <jh@suse.cz>
2208
2209         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2210         analyzed.
2211         * passes.c (ipa_write_summaries): Write all analyzed nodes.
2212
2213 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
2214
2215         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2216         * Makefile.in: Add it.
2217         Fix all other Makefile dependencies for changes below.
2218         * tree.h: Include it instead of defining VEC primitives here.
2219         * gimple.h: Likewise.
2220         * rtl.h: Likewise.
2221         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2222         * except.h: Include vecir.h, break dependence on tree.h.
2223
2224         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2225         Move from here...
2226         * tree-iterator.c: ...to here.
2227         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
2228
2229         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
2230         tm_p.h.
2231         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2232         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2233         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2234         tree-mudflap.h, and target.h.
2235         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2236         predict.h, tree-inline.h, gimple.h, and langhooks.h.
2237         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2238         Add FIXME for why gimple.h is still included (should be unnecessary
2239         since GCC 4.5 gimplification unit-at-a-time).
2240         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2241         * c-pragma.c: Add FIXME for why function.h needs to be included just
2242         for cfun, at front-end level.
2243         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2244         Do not include ggc.h, but include vecprim.h for VEC(char).
2245         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2246         Explain why target.h is included.
2247         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2248         Explain why gimple.h is included.
2249         * c-ppoutput.c: Do not include tm.h.
2250         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
2251         * c-parses.c: Explain why rtl.h is included, and that this (and only
2252         this) is also why tm.h must be included.
2253         Do not include except.h.
2254         * c-lang.c: Do not include ggc.h.
2255
2256 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
2257
2258         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2259
2260 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
2261
2262         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2263         unions by default if those structs and unions have no tags.  Do
2264         not condition anonymous struct and unions handling on flag_iso.
2265         Allow anonymous structs and unions for C1X.
2266         (finish_struct): Do not diagnose lack of named fields when
2267         anonymous structs and unions present for C1X.  Accept flexible
2268         array members in structure with anonymous structs or unions but no
2269         directly named fields.
2270         * doc/extend.texi (Unnamed Fields): Update.
2271
2272 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
2273
2274         * gimple.h (compare_field_offset): Rename into...
2275         (gimple_compare_field_offset): ...this.
2276         * gimple.c (compare_field_offset): Rename into...
2277         (gimple_compare_field_offset): ...this.  Compare the full access if
2278         the offset is self-referential.
2279         (gimple_types_compatible_p): Adjust for above renaming.
2280         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
2281         DECL_NONADDRESSABLE_P flag of fields before merging them.
2282
2283 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
2284
2285         * tree.h (ctor_to_list): Delete.
2286         * tree.c (ctor_to_list): Delete.
2287
2288 2010-05-15  Jan Hubicka  <jh@suse.cz>
2289
2290         * ipa-reference.c: Include toplev.h
2291         (is_proper_for_analysis): Only add to all_module_statics
2292         if it is allocated.
2293         (write_node_summary_p, stream_out_bitmap,
2294         ipa_reference_write_optimization_summary,
2295         ipa_reference_read_optimization_summary): New.
2296         (struct ipa_opt_pass_d pass_ipa_reference): Add
2297         optimization summary streaming.
2298         * lto-cgraph.c (referenced_from_this_partition_p,
2299         reachable_from_this_partition_p): New functions.
2300         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2301         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2302         * opts.c (decode_options): Enable ipa_reference.
2303         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2304         * lto-streamer.h (referenced_from_this_partition_p,
2305         reachable_from_this_partition_p): Declare.
2306
2307 2010-05-15  Richard Guenther  <rguenther@suse.de>
2308
2309         PR tree-optimization/44038
2310         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2311         taking the address of a V_C_E of a constant.
2312
2313 2010-05-14  Jan Hubicka  <jh@suse.cz>
2314
2315         * tree.h (memory_identifier_string): Remove.
2316         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2317         (ipa_reference_global_vars_info_d): Remove statics_not_read and
2318         statics_not_written.
2319         (ipa_reference_optimization_summary_d): New structure.
2320         (ipa_reference_optimization_summary_t): New type and vector.
2321         (ipa_reference_vars_info_d): Embedd structures instead of using
2322         pointers.
2323         (reference_vars_to_consider): Remove out of GGC space.
2324         (module_statics_escape): Remove.
2325         (global_info_obstack): Rename to ...
2326         (optimization_summary_obstack): ... this one.
2327         (initialization_status_t): Remove.
2328         (memory_identifier_string): Remove.
2329         (get_reference_vars_info): Fix indenting.
2330         (set_reference_vars_info): Likewise.
2331         (get_reference_optimization_summary): New.
2332         (set_reference_optimization_summary): New.
2333         (get_global_reference_vars_info): Remove.
2334         (ipa_reference_get_read_global): Remove.
2335         (ipa_reference_get_written_global): Remove.
2336         (ipa_reference_get_not_read_global): Update.
2337         (ipa_reference_get_not_written_global): Update.
2338         (is_proper_for_analysis): Outlaw addressable.
2339         (propagate_bits): Update for new datastructures.
2340         (analyze_variable): Remove.
2341         (init_function_info): Update for new datastructures.
2342         (clean_function_local_data): Remove.
2343         (clean_function): Remove.
2344         (copy_global_bitmap): Use optimizations_summary_obstack.
2345         (duplicate_node_data): Duplicate optimization summary only.
2346         (remove_node_data): Remove optimization summary only.
2347         (generate_summary): Do not analyze variables; do not compute
2348         module_statics_escape; do not prune solutions by it.
2349         (read_write_all_from_decl): Fix typos in comments.
2350         (propagate): Doscover readonly and nonaddressable first;
2351         update for new datastructures; share global bitmaps.
2352         * ipa-reference.h (ipa_reference_get_read_global,
2353         ipa_reference_get_written_global): Remove.
2354         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2355         * Makefile.in: Remove ipa-refereference from GT files.
2356
2357 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2358
2359         PR debug/44112
2360         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2361         for all SYMBOL_REF_DECLs.
2362
2363 2010-05-14  Jan Hubicka  <jh@suse.cz>
2364
2365         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2366         (varpool_all_refs_explicit_p): New inline function.
2367         * ipa-reference.c: Update comment.
2368         (module_statics_written): Remove.
2369         (get_static_decl): Remove.
2370         (ipa_init): Do not initialize module_statics_written.
2371         (analyze_function): Likewise.
2372         (generate_summary): Likewise; do not compute module_statics_readonly
2373         and do not update variable flags.
2374         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2375         * ipa.c: Inlucde flags.h
2376         (cgraph_local_node_p): New.
2377         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2378         promote functions to local.
2379         (ipa_discover_readonly_nonaddressable_vars): New function.
2380         (function_and_variable_visibility): Use cgraph_local_node_p.
2381         * varpool.c (varpool_finalize_decl): Set force_output for
2382         DECL_PRESERVE_P vars.
2383
2384 2010-05-14  Jan Hubicka  <jh@suse.cz>
2385
2386         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2387
2388 2010-05-14  Richard Guenther  <rguenther@suse.de>
2389
2390         PR tree-optimization/44119
2391         * tree-ssa-pre.c (eliminate): Properly mark replacement of
2392         a PHI node necessary.
2393
2394 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2395
2396         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2397
2398 2010-05-14  Jason Merrill  <jason@redhat.com>
2399
2400         PR c++/44127
2401         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2402         (gimple_call_set_nothrow): New.
2403         * gimple.c (gimple_build_call_from_tree): Call it.
2404         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2405
2406         PR c++/44127
2407         * gimplify.c (gimplify_seq_add_stmt): No longer static.
2408         * gimple.h: Declare it.
2409         * gimple.c (gimple_build_eh_filter): No ops.
2410
2411 2010-05-14  Jan Hubicka  <jh@suse.cz>
2412
2413         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2414         nodes already in queue.
2415         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2416         re-enqueueing node.
2417
2418 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2419
2420         PR debug/44136
2421         * cfgexpand.c (expand_debug_expr): If non-memory op0
2422         has BLKmode, return NULL.
2423
2424 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
2425
2426         * config.gcc: Add support for --with-cpu option for bdver1.
2427         * config/i386/i386.h (TARGET_BDVER1): New macro.
2428         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2429         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2430         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2431         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2432         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2433         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2434         (processor_type): Add PROCESSOR_BDVER1.
2435         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2436         processor_type in config/i386/i386.h.
2437         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2438         movaps <reg, reg> instead of movapd <reg, reg> when replacing
2439         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2440         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2441         to emit packed xor instead of packed double/packed integer
2442         xor for SSE and AVX when moving a zero value.
2443         * config/i386/sse.md: Add check for
2444         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2445         movapd/movdqa for SSE and AVX.
2446         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2447         single logical operations i.e and, or and xor instead of packed double
2448         logical operations for SSE and AVX.
2449         * config/i386/i386-c.c (ix86_target_macros_internal):
2450         Add PROCESSOR_BDVER1.
2451         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2452         (has_fma4, has_xop): New.
2453         * config/i386/i386.c (bdver1_cost): New variable.
2454         (m_BDVER1): New macro.
2455         (m_AMD_MULTIPLE): Add m_BDVER1.
2456         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2457         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2458         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2459         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2460         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2461         x86_tune_sse_partial_reg_dependency,
2462         x86_tune_sse_unaligned_load_optimal,
2463         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2464         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2465         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2466         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2467         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2468         Enable/disable for bdver1.
2469         (processor_target_table): Add bdver1_cost.
2470         (cpu_names): Add bdver1.
2471         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2472          processor_alias_table.
2473         (ix86_expand_vector_move_misalign): Change.
2474         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2475         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2476         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2477         of movupd/movdqu for SSE and AVX.
2478         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2479         (ix86_tune_adjust_cost): Add code for bdver1.
2480         (standard_sse_constant_opcode): Add check for
2481         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2482         of packed double xor for SSE and AVX.
2483
2484 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
2485
2486         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2487         result to unsigned.
2488
2489 2010-05-14  Tristan Gingold  <gingold@adacore.com>
2490
2491         * toplev.c (default_debug_hooks): Remove this variable.
2492         (process_options): Remove assignments to default_debug_hooks.
2493
2494 2010-05-14  Martin Jambor  <mjambor@suse.cz>
2495
2496         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2497         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2498         * langhooks.h (struct lang_hooks_for_decls): Removed field
2499         fold_obj_type_ref.
2500         * tree.c (free_lang_data): Remove assignment to
2501         lang_hooks.fold_obj_type_ref.
2502         * tree.def (OBJ_TYPE_REF): Update comment.
2503
2504 2010-05-14  Richard Guenther  <rguenther@suse.de>
2505
2506         PR tree-optimization/44124
2507         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2508
2509 2010-05-14  Alan Modra  <amodra@gmail.com>
2510
2511         PR target/44075
2512         * config/rs6000/rs6000.c (struct machine_function): Reorder
2513         fields for better packing.  Add lr_save_state.
2514         (rs6000_ra_ever_killed): Return lr_save_state if set.
2515         (rs6000_emit_eh_reg_restore): Set lr_save_state.
2516
2517 2010-05-13  Jan Hubicka  <jh@suse.cz>
2518
2519         * varpool.c (decide_is_variable_needed): Drop code checking
2520         TREE_SYMBOL_REFERENCED.
2521
2522 2010-05-13  Jan Hubicka  <jh@suse.cz>
2523
2524         * final.c (output_addr_const): Do not call mark_decl_referenced.
2525         * cgraphunit.c (process_function_and_variable_attributes): Use
2526         mark_needed_node dirrectly.
2527         (assemble_thunk): Do not call mark_decl_referenced.
2528
2529 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
2530
2531         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2532
2533 2010-05-13  Jeff Law  <law@redhat.com>
2534
2535         * ira-conflicts.c (print_allocno_conflicts): New function broken out
2536         from...
2537         (print_conflicts): Call print_allocno_conflicts.
2538
2539 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
2540
2541         PR debug/44104
2542         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2543         if it is NULL.
2544
2545 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
2546
2547         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2548         t-mingw-w64 or t-mingw-w32 for multilib configuration.
2549         * config/i386/t-mingw-w32: New.
2550         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2551
2552 2010-05-13  Martin Jambor  <mjambor@suse.cz>
2553
2554         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2555         gimple-fold.c).
2556         * gimple-fold.c (get_base_binfo_for_type): New function.
2557         (gimple_get_relevant_ref_binfo): Likewise.
2558         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2559         (gimple_fold_obj_type_ref): Likewise.
2560         (fold_gimple_call): Simplify condition for folding virtual calls
2561         and call gimple_fold_obj_type_ref.
2562         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2563         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2564
2565 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
2566
2567         * config/rs6000/rs6000-protos.h
2568         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2569         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2570         (rs6000_debug_mode_dependent_address)
2571         (rs6000_mode_dependent_address_ptr): Likewise.
2572
2573 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
2574
2575         PR debug/43983
2576         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2577         by SRA.
2578         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2579         * tree-sra.c (create_access_replacement): Call unshare_expr before
2580         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2581         * dwarf2out.c: Include tree-flow.h.
2582         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2583         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2584         Handle DW_OP_bit_piece.
2585         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2586         construct_piece_list, adjust_piece_list): New functions.
2587         (add_var_loc_to_decl): Handle SRA optimized variables.
2588         Adjust for var_loc_note to loc field renaming.
2589         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2590         in VAR_LOCATION note.
2591         (new_loc_descr_op_bit_piece): New function.
2592         (dw_sra_loc_expr): New function.
2593         (dw_loc_list): Use it.  Don't handle the last range after the
2594         loop, handle it inside of the loop.  Adjust for var_loc_note
2595         to loc field renaming.
2596         (add_location_or_const_value_attribute): Only special case
2597         single entry loc lists if loc is NOTE_P.  Adjust for
2598         var_loc_note to loc field renaming.
2599         (dwarf2out_var_location): Don't set newloc->var_loc_note
2600         and newloc->next here.
2601
2602 2010-05-12  Jan Hubicka  <jh@suse.cz>
2603
2604         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2605         flag.
2606         * cgraph.h (cgraph_only_called_directly_p,
2607         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2608         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2609         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2610         (assemble
2611         * ipa.c (cgraph_remove_unreachable_nodes): Use
2612         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2613         flags.
2614         * tree-inline.c (copy_bb): Check address_taken flag.
2615         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
2616         externally_visible flag.
2617
2618 2010-05-12  Jason Merrill  <jason@redhat.com>
2619
2620         PR bootstrap/44048
2621         PR target/44099
2622         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2623         * sdbout.c (plain_type_1): Likewise.
2624         * dwarf2out.c (is_base_type): Likewise.
2625         (gen_type_die_with_usage): Likewise.  Generate
2626         DW_TAG_unspecified_type for any LANG_TYPE.
2627
2628 2010-05-12  Jan Hubicka  <jh@suse.cz>
2629
2630         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2631         indrect edges too.
2632         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2633         (cgraph_clone_edge): Update.
2634         (cgraph_node_remove_callees): Remove indirect calls too.
2635         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2636         (cgraph_create_indirect_edge): Update prototype.
2637         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2638         is_proper_for_analysis.
2639         (add_new_function, visited_nodes, function_insertion_hook_holder,
2640         get_local_reference_vars_info, mark_address_taken, mark_address,
2641         mark_load, mark_store, check_asm_memory_clobber, check_call,
2642         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2643         (ipa_init): Do not initialize visited_nodes;
2644         function_insertion_hook_holder.
2645         (analyze_variable): Rewrite.
2646         (analyze_function): Rewrite.
2647         (copy_local_bitmap): Remove.
2648         (duplicate_node_dat): Do not duplicate local info.
2649         (generate_summary): Simplify to only walk cgraph.
2650         (write_node_summary_p, ipa_reference_write_summary,
2651         ipa_reference_read_summary): Remove.
2652         (propagate): Do not remove function insertion;
2653         generate summary.
2654         (pass_ipa_reference): NULLify summary handling fields.
2655         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2656         (input_edge): Input ecf_flags.
2657         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2658         (update_indirect_edges_after_inlining): Ignore edges with unknown
2659         param.
2660
2661 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
2662
2663         * implicit-zee.c: New file.
2664         * tree-pass.h (pass_implicit_zee): Declare.
2665         * passes.c (init_optimization_passes): Add zee pass.
2666         * common.opt (fzee): New flag.
2667         * timevar.def (TV_ZEE): Define.
2668         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2669         and beyond.
2670         * Makefile.in (implicit-zee.o): Add new build file.
2671
2672 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2673             Nathan Froyd  <froydnj@codesourcery.com>
2674
2675         * c-common.c (sync_resolve_params): Remove write-only variable.
2676
2677 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
2678
2679         * target.h (struct gcc_target): Add mode_dependent_address_p field.
2680         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2681         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2682         * targhooks.c (default_mode_dependent_address_p): New function.
2683         * targhooks.h (default_mode_dependent_address_p): Declare function.
2684         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2685         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2686         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
2687         target hook. Change return type to bool.
2688         * recog.h (mode_dependent_address_p): Change return type to bool.
2689
2690 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2691             Nathan Froyd  <froydnj@codesourcery.com>
2692
2693         * tree-mudflap.c (build_function_type_0, build_function_type_1,
2694         build_function_type_2, build_function_type_3): Remove.
2695         (mudflap_init): Use build_function_type_list.
2696
2697 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2698             Nathan Froyd  <froydnj@codesourcery.com>
2699
2700         * coverage.c (build_fn_info_value): Call build_constructor instead of
2701         build_constructor_from_list.
2702         (build_ctr_info_value): Likewise.
2703         (build_gcov_info): Likewise.
2704
2705 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
2706
2707         * tree.c (build_constructor): Compute TREE_CONSTANT for the
2708         resultant constructor.
2709         (build_constructor_single): Don't set TREE_CONSTANT.
2710         (build_constructor_from_list): Don't compute TREE_CONSTANT.
2711
2712 2010-05-12  Jan Hubicka  <jh@suse.cz>
2713
2714         * cgraph.h (struct varpool_node): Add aux.
2715         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
2716         * varpool.c (varpool_remove_node): Do not remove initializer.
2717         (varpool_reset_queue): Export.
2718         (varpool_finalize_decl): Volatile vars are forced to be output.
2719         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
2720         replaced decl.
2721         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
2722         process_references, varpool_can_remove_if_no_refs): New functions.
2723         (cgraph_remove_unreachable_nodes): Handle variables too.
2724
2725 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2726
2727         PR target/44088
2728         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
2729
2730 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
2731
2732         PR middle-end/44085
2733         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
2734         change value of ORT_TASK.
2735         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
2736         (omp_notice_threadprivate_variable): New function.
2737         (omp_notice_variable): Call it for threadprivate variables.
2738         If enclosing ctx is a task, print enclosing task rather than
2739         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
2740         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
2741         if task has untied clause.
2742
2743         PR debug/42278
2744         * dwarf2out.c (base_type_die): Don't add name attribute here.
2745         (modified_type_die): Instead of sizetype use
2746         its underlying original type.  If a DW_TAG_base_type doesn't
2747         have name added, add __unknown__.
2748         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
2749         always call force_type_die instead.
2750
2751 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
2752
2753         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
2754         for __stack_chk_guard.
2755
2756 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
2757
2758         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
2759         don't call start_source_file debug hook here...
2760         (finish_options): ... but here, after outputting predefined and
2761         command line defines and undefs.
2762
2763         PR middle-end/44071
2764         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
2765         no fallthru edge.
2766         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
2767         optimizing away empty bb with no successors, move over its
2768         footer chain to fallthru predecessor.
2769         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
2770         (rtl_split_edge): For asm goto call patch_jump_insn even if
2771         splitting fallthru edge.
2772
2773         PR c++/44059
2774         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
2775         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
2776         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2777         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
2778         on DW.ref.* decls.
2779
2780         PR c++/44062
2781         * c-parser.c (c_parser_expression): Mark LHS of a comma
2782         expression as read if it is a decl, handled component or
2783         COMPOUND_EXPR with that on the RHS.
2784         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
2785         if it is a decl or handled component.
2786
2787 2010-05-11  Jan Hubicka  <jh@suse.cz>
2788
2789         * lto-symtab.c (lto_symtab_free): New function.
2790         * lto-streamer.h (lto_symtab_free): Declare.
2791
2792 2010-05-11  Jan Hubicka  <jh@suse.cz>
2793
2794         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
2795         that if function is needed it is reachable.
2796         (lto_output_node): See if it the function is reachable or referenced.
2797         (output_cgraph): Update call of lto_output_node.
2798         * lto-streamer.h (reachable_from_other_partition_p): Declare.
2799
2800 2010-05-11  Jan Hubicka  <jh@suse.cz>
2801
2802         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
2803         Mark as used.
2804
2805 2010-05-11  Jan Hubicka  <jh@suse.cz>
2806
2807         PR tree-optimize/44063
2808         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
2809         queue.
2810         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
2811         limits.
2812         (estimate_function_body_sizes): Compute sizes even when disregarding.
2813
2814 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
2815
2816         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
2817
2818 2010-05-11  Jan Hubicka  <jh@suse.cz>
2819
2820         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
2821         into every boundary.
2822
2823 2010-05-11  Jan Hubicka  <jh@suse.cz>
2824
2825         * matrix-reorg.c (matrix_reorg): Rebuild edges.
2826
2827 2010-05-11  Jan Hubicka  <jh@suse.cz>
2828
2829         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
2830         lto_streamer_cache_delete): Put nodes into heap.
2831         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
2832         heap.
2833
2834 2010-05-11  Jan Hubicka  <jh@suse.cz>
2835
2836         * cgraphbuild.c (cgraph_rebuild_references): New.
2837         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
2838         out extern inlines.
2839         * cgraph.h (cgraph_rebuild_references): Declare.
2840         * tree-inline.c (tree_function_versioning): Use it.
2841         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
2842
2843 2010-05-11  Jan Hubicka  <jh@suse.cz>
2844
2845         * cgraph.c: Include ipa-utils.h
2846         (cgraph_create_virtual_clone): Update references.
2847         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
2848
2849 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
2850
2851         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
2852         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
2853         cache size.
2854
2855 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
2856
2857         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
2858
2859 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
2860
2861         * gcc.c (execute): For -### don't quote arguments that
2862         contain just alphanumerics and _/-. characters.
2863         * doc/invoke.texi: Document that change for -###.
2864
2865         PR debug/44023
2866         * df-problems.c (struct dead_debug): Add to_rescan field.
2867         (dead_debug_init): Clear to_rescan field.
2868         (dead_debug_finish): Rescan all debug insns in to_rescan
2869         bitmap and free the bitmap.
2870         (dead_debug_insert_before): Instead of rescanning debug insns
2871         immediately queue their rescanning until dead_debug_finish.
2872         (df_note_bb_compute): After dead_debug_add do continue instead
2873         of break.
2874
2875 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
2876
2877         PR debug/44028
2878         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
2879         clear also INSN_REG_USE_LIST.
2880
2881 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2882
2883         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
2884
2885 2010-05-10  Jan Hubicka  <jh@suse.cz>
2886
2887         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
2888         commited change.
2889
2890 2010-05-10  Jan Hubicka  <jh@suse.cz>
2891
2892         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
2893         Allocate encoders.
2894         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
2895         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
2896         (lto_streamer_cache_create): Init alloc pool.
2897         (lto_streamer_cache_delete): Free alloc pool.
2898         * lto-streamer.h: Include alloc pool.
2899         (lto_streamer_cache_d): Use alloc pool.
2900         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
2901
2902 2010-05-10  Jan Hubicka  <jh@suse.cz>
2903
2904         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
2905         * cgraphbuild.c: Include except.h
2906         (record_type_list, record_eh_tables): New function.
2907         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
2908
2909 2010-05-10  Jan Hubicka  <jh@suse.cz>
2910
2911         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
2912         __frame_dummy_init_array_entry, force_to_data): Attribute as used
2913         rather than unused.
2914
2915 2010-05-10  Michael Matz  <matz@suse.de>
2916
2917         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
2918         (can_reassociate_p): Use FLOAT_TYPE_P.
2919         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
2920         (vect_force_simple_reduction): ... this.
2921         * tree-parloops.c (gather_scalar_reductions): Use
2922         vect_force_simple_reduction.
2923         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
2924         vect_is_simple_reduction, add modify argument, if true rewrite
2925         "a-b" into "a+(-b)".
2926         (vect_is_simple_reduction, vect_force_simple_reduction): New
2927         functions.
2928         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
2929
2930 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2931             Vladimir Makarov  <vmakarov@redhat.com>
2932
2933         PR rtl-optimization/44012
2934         * ira-build.c (remove_unnecessary_allocnos): Nullify
2935         regno_allocno_map of the removed allocno.
2936
2937 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2938
2939         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
2940         to /dev/null.
2941         * configure: Regenerate.
2942
2943 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2944
2945         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
2946         unused.
2947         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
2948         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
2949         support in Sun ld.
2950         * configure: Regenerate.
2951
2952 2010-05-10  Richard Guenther  <rguenther@suse.de>
2953
2954         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
2955         marked if the entry identifier is marked.
2956
2957 2010-05-10  Richard Guenther  <rguenther@suse.de>
2958
2959         * c-common.c (struct c_common_attributes): Add fnspec attribute.
2960         (handle_fnspec_attribute): New function.
2961         * gimple.h (gimple_call_return_flags): Declare.
2962         (gimple_call_arg_flags): Likewise.
2963         * gimple.c (gimple_call_arg_flags): New function.
2964         (gimple_call_return_flags): Likewise.
2965         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
2966         New argument flags.
2967         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
2968         return value flags.
2969         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
2970         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
2971         main work to ...
2972         (make_heapvar_for): ... this new function.
2973         (handle_rhs_call): Handle fnspec attribute argument specifiers.
2974         (handle_lhs_call): Likewise.
2975         (find_func_aliases): Adjust.
2976
2977 2010-05-10  Richard Guenther  <rguenther@suse.de>
2978
2979         PR tree-optimization/44050
2980         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
2981
2982 2010-05-10  Wei Guozhi  <carrot@google.com>
2983
2984         PR target/42879
2985         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
2986
2987 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
2988
2989         PR c/10676
2990         * c-typeck.c (lookup_field): Take a type directly.  Update
2991         recursive calls.
2992         (build_component_ref): Update call to lookup_field.
2993         (set_init_label): Use lookup_field to find initialized field.
2994         Handle returned list of fields like a sequence of designators.
2995
2996 2010-05-09  Richard Guenther  <rguenther@suse.de>
2997
2998         PR middle-end/44024
2999         * fold-const.c (tree_single_nonzero_warnv_p): Properly
3000         handle &FUNCTION_DECL.
3001
3002 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3003
3004         PR c/4784
3005         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
3006         structures and unions recursively.
3007         (detect_field_duplicates): Move duplicate detection with a hash to
3008         detect_field_duplicates_hash.  Always use a hash if anonymous
3009         structures or unions are present.
3010         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3011         give errors.
3012
3013 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3014
3015         PR target/44046
3016         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3017         detect Atom, Core 2 and Core i7.
3018
3019 2010-05-09  Richard Guenther  <rguenther@suse.de>
3020
3021         * gcc.c (store_arg): Handle temporary file deletion for
3022         joined arguments.
3023
3024 2010-05-09  Richard Guenther  <rguenther@suse.de>
3025
3026         PR middle-end/44043
3027         * ipa-inline.c (estimate_function_body_sizes): Return after
3028         disregarding inline limits.
3029
3030 2010-05-09  Richard Guenther  <rguenther@suse.de>
3031
3032         * gcc.c (store_arg): Revert last change.
3033
3034 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3035
3036         PR middle-end/28685
3037         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3038         (optimize_ops_list): Call it.
3039
3040 2010-05-08  Richard Guenther  <rguenther@suse.de>
3041
3042         PR tree-optimization/44030
3043         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
3044         NECESSARY flag if we propagate from a inserted expression.
3045
3046 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3047
3048         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3049         domain types as equal if they are both PLACEHOLDER_EXPRs.
3050
3051 2010-05-08  Richard Guenther  <rguenther@suse.de>
3052
3053         * lto-wrapper.c (run_gcc): Remove linker output from
3054         command line for LTRANS invocation.
3055
3056 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3057
3058         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3059         lto-macho as lto_binary_reader.
3060         * target.h (struct gcc_target): New hooks lto_start and lto_end.
3061         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3062         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3063         in lto_start and lto_end calls.
3064         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
3065         magic numbers.
3066         (scan_prog_file): Update is_elf_or_coff call.
3067         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3068
3069         * collect2.c (main): Fix enum comparison.
3070
3071         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3072         Add prototypes.
3073         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3074         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
3075         and TARGET_ASM_LTO_END.
3076         * darwin.c: Include obstack.h and lto-streamer.h.
3077         (lto_section_names_offset, lto_section_names_obstack,
3078         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3079         global variables.
3080         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3081         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
3082         to a temporary file.
3083         (darwin_asm_lto_end): New function.  Restore asm_out_file.
3084         (darwin_asm_named_section): For LTO sections, replace the name with
3085         the offset of the section name in a string table, and build this
3086         table.
3087         (darwin_file_start): Initialize global vars for LTO support.
3088         (darwin_file_end): If output to asm_out_file was redirected, append it
3089         to the proper asm_out_file here.  Add the section names section.
3090
3091 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3092
3093         * c-pragma.c (pending_weak_d, pending_weak): New.
3094         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3095         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3096         handle_pragma_weak): Update the uses of pending_weaks.
3097
3098 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3099
3100         PR documentation/44016
3101         * doc/standards.texi (Standards): Link to unversioned
3102         cxx0x_status.html page.
3103
3104 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
3105
3106         PR target/43708
3107         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3108         in addition to TREE_USED, to avoid "set but unused" warnings.
3109
3110 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3111
3112         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3113         (is_loop_prefetching_profitable): Do not insert prefetches
3114         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3115         times the prefetch ahead distance.
3116
3117 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3118
3119         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3120         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3121         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3122         the unroll_factor.
3123
3124 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3125
3126         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3127         a diagnostic info when the insn-to-mem ratio is too small.
3128
3129 2010-05-07  Richard Guenther <rguenther@suse.de>
3130
3131         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3132         the linker plugin.
3133         (store_arg): Queue temp_filename for deletion instead of
3134         the whole argument.
3135
3136 2010-05-07  Richard Guenther  <rguenther@suse.de>
3137
3138         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3139         (run_gcc): Handle LTRANS phase invocation.
3140         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3141
3142 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
3143
3144         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3145         this is also meaningful on PARM_DECLs and RESULT_DECLs.
3146
3147 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3148
3149         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3150
3151 2010-05-07  Richard Guenther  <rguenther@suse.de>
3152
3153         PR tree-optimization/44020
3154         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3155         code when PRE is not yet initialized.
3156
3157 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3158
3159         * config/mips/dbxmdebug.h: Remove.
3160         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3161
3162 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
3163
3164         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3165         with null pointer and also warn about ordered comparison of zero with
3166         pointer if -Wextra.
3167
3168 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3169
3170         * graphite-blocking.c
3171         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3172         * graphite-clast-to-gimple.c
3173         (clast_to_gcc_expression): Same.
3174         (precision_for_value): Same.
3175         (precision_for_interval): Same.
3176         (gcc_type_for_interval): Same.
3177         (graphite_create_new_guard): Same.
3178         (compute_bounds_for_level): Same.
3179         (graphite_create_new_loop_guard): Same.
3180         * graphite-interchange.c
3181         (build_linearized_memory_access): Same.
3182         (pdr_stride_in_loop): Same.
3183         (memory_strides_in_loop_1): Same.
3184         (memory_strides_in_loop): Same.
3185         (extend_scattering): Same.
3186         (psct_scattering_dim_for_loop_depth): Same.
3187         (pbb_number_of_iterations): Same.
3188         * graphite-poly.h
3189         (debug_iteration_domains): Same.
3190         * graphite-ppl.c
3191         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3192         (ppl_set_inhomogeneous_gmp): Same.
3193         (ppl_strip_loop): Same.
3194         (ppl_lexico_compare_linear_expressions): Same.
3195         (ppl_read_polyhedron_matrix): Same.
3196         (ppl_max_for_le_pointset): Same.
3197         * graphite-ppl.h
3198         (ppl_read_polyhedron_matrix): Same.
3199         (tree_int_to_gmp): Same.
3200         (gmp_cst_to_tree): Same.
3201         (ppl_set_inhomogeneous): Same.
3202         (ppl_set_inhomogeneous_tree): Same.
3203         (ppl_set_coef): Same.
3204         (ppl_set_coef_tree): Same.
3205         * graphite-sese-to-poly.c
3206         (build_pbb_scattering_polyhedrons): Same.
3207         (build_scop_scattering): Same.
3208         (scan_tree_for_params_right_scev): Same.
3209         (scan_tree_for_params): Same.
3210         (find_params_in_bb): Same.
3211         (find_scop_parameters): Same.
3212         (add_upper_bounds_from_estimated_nit): Same.
3213         (build_loop_iteration_domains): Same.
3214         (add_condition_to_domain): Same.
3215         (pdr_add_memory_accesses): Same.
3216
3217 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3218
3219         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3220         CLooG's value_* macros to their respective mpz_* counterparts.
3221         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3222         (graphite_create_new_loop_guard): Same.
3223         * graphite-interchange.c (build_linearized_memory_access): Same.
3224         (pdr_stride_in_loop): Same.
3225         (memory_strides_in_loop_1): Same.
3226         (1st_interchange_profitable_p): Same.
3227         * graphite-poly.c (extend_scattering): Same.
3228         (psct_scattering_dim_for_loop_depth): Same.
3229         (pbb_number_of_iterations): Same.
3230         (pbb_number_of_iterations_at_time): Same.
3231         * graphite-poly.h (new_1st_loop): Same.
3232         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3233         (oppose_constraint): Same.
3234         (insert_constraint_into_matrix): Same.
3235         (ppl_set_inhomogeneous_gmp): Same.
3236         (ppl_set_coef_gmp): Same.
3237         (ppl_strip_loop): Same.
3238         (ppl_lexico_compare_linear_expressions): Same.
3239         (ppl_max_for_le_pointset): Same.
3240         (ppl_min_for_le_pointset): Same.
3241         (ppl_build_realtion): Same.
3242         * graphite-ppl.h (gmp_cst_to_tree): Same.
3243         (ppl_set_inhomogeneous): Same.
3244         (ppl_set_inhomogeneous_tree): Same.
3245         (ppl_set_coef): Same.
3246         (ppl_set_coef_tree): Same.
3247         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3248         (build_scop_scattering): Same.
3249         (add_value_to_dim): Same.
3250         (scan_tree_for_params_right_scev): Same.
3251         (scan_tree_for_params_int): Same.
3252         (scan_tree_for_params): Same.
3253         (find_params_in_bb): Same.
3254         (find_scop_parameters): Same.
3255         (add_upper_bounds_from_estimated_nit): Same.
3256         (build_loop_iteration_domains): Same.
3257         (create_linear_expr_from_tree): Same.
3258         (add_condition_to_domain): Same.
3259         (pdr_add_memory_accesses): Same.
3260
3261 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
3262             Jason Merrill  <jason@redhat.com>
3263
3264         * c-common.c (c_common_reswords): Add nullptr.
3265         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
3266         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3267         (gen_type_die_with_usage): Likewise.
3268         * dbxout.c (dbxout_type): Likewise.
3269         * sdbout.c (plain_type_1): Likewise.
3270
3271 2010-05-06  Jason Merrill  <jason@redhat.com>
3272
3273         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3274         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
3275         ret appropriately.
3276         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3277
3278         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3279         stripping WITH_SIZE_EXPR.
3280         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3281         change.
3282
3283 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3284
3285         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3286         list of obsolete configurations.
3287         Disabled check for obsolete configurations.
3288         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3289         Removed support for previous versions.
3290         * config/mips/iris.h: Removed.
3291         * config/mips/iris5.h: Removed.
3292         * config/mips/iris6.h: Merged old iris.h contents.
3293         (TARGET_IRIX): Removed.
3294         (DRIVER_SELF_SPECS): Removed mabi=32.
3295         (IDENT_ASM_OP): Removed undef.
3296         (STARTFILE_SPEC): Removed mabi=32.
3297         (ENDFILE_SPEC): Likewise.
3298         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3299         (MACHINE_TYPE): Update for IRIX 6.5.
3300         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3301         TARGET_IRIX by TARGET_IRIX6.
3302         (mips_file_start): Likewise.
3303         (mips_output_external): Remove IRIX 5/6 O32 support.
3304         (mips_output_function_prologue): Likewise.
3305         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3306         TARGET_IRIX6.
3307         (TARGET_CPU_CPP_BUILTINS): Likewise.
3308         (TARGET_IRIX): Removed.
3309         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3310         (MULTILIB_DIRNAMES): Removed 32.
3311         (MULTILIB_OSDIRNAMES): Removed ../lib.
3312         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3313         (Specific, mips-sgi-irix5): Document removal.
3314         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3315         Remove references to older IRIX 6 releases and the O32 ABI.
3316
3317 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
3318
3319         PR bootstrap/43994
3320         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3321         instead of DF_REF_REAL_REG.
3322
3323 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
3324
3325         PR target/43888
3326         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3327         handling to still return true for x64 targets.
3328
3329 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3330
3331         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3332
3333 2010-05-06  Jan Hubicka  <jh@suse.cz>
3334
3335         PR tree-optimization/43791
3336         * ipa-inline.c (update_caller_keys): Remove bogus
3337         disregard_inline_limits check.
3338
3339 2010-05-06  Michael Matz  <matz@suse.de>
3340
3341         PR tree-optimization/43984
3342         * tree-ssa-pre.c (inserted_phi_names): Remove.
3343         (inserted_exprs): Change to bitmap.
3344         (create_expression_by_pieces): Set bits, don't append to vector.
3345         (insert_into_preds_of_block): Don't handle inserted_phi_names.
3346         (eliminate): Don't look at inserted_phi_names, remove deleted
3347         insns from inserted_exprs.
3348         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3349         (init_pre, fini_pre): Allocate and free bitmaps.
3350         (execute_pre): Insert insns on edges before elimination.
3351
3352 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3353
3354         * tree.c (initializer_zerop): Handle STRING_CST.
3355
3356 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3357
3358         PR 40989
3359         * doc/invoke.texi (Wimplicit): Document as C only.
3360         * opts.c (common_handle_option): Add argument kind.
3361         (handle_option): Rename as read_cmdline_option. Factor out code to...
3362         (handle_option): ... here. New.
3363         (handle_options): Rename as read_cmdline_options.
3364         (decode_options): Update call.
3365         (set_option): Use option index instead of option pointer. Classify
3366         diagnostics correctly.
3367         (enable_warning_as_error): Call handle_option.
3368         * opts.h (set_option): Update declaration.
3369         (handle_option): Declare.
3370         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3371         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3372         * c-opts.c (set_Wimplicit): Delete.
3373         (c_family_lang_mask): New static constant.
3374         (c_common_handle_option): Add argument kind. Use handle_option
3375         instead of set_Wimplicit.
3376         (c_common_post_options): warn_implicit and warn_implicit_int
3377         are disabled by default.
3378         * c-common.c (warn_implicit): Do not define here.
3379         * c-common.h (warn_implicit): Do not declare here.
3380         (c_common_handle_option): Update declaration.
3381         * lto-opts.c (lto_reissue_options): Update call to set_option.
3382
3383 2010-05-06  Richard Guenther  <rguenther@suse.de>
3384
3385         PR tree-optimization/43571
3386         * domwalk.c (walk_dominator_tree): Walk the dominator
3387         sons in more optimal order.
3388
3389 2010-05-06  Richard Guenther  <rguenther@suse.de>
3390
3391         PR tree-optimization/43934
3392         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3393         (stmt_cost): Likewise.
3394         (extract_true_false_args_from_phi): New helper.
3395         (determine_max_movement): For PHI nodes verify we can hoist them
3396         and compute their cost.
3397         (determine_invariantness_stmt): Handle PHI nodes.
3398         (move_computations_stmt): Likewise.  Hoist PHI nodes in
3399         if-converted form using COND_EXPRs.
3400         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3401         (tree_ssa_lim): Likewise.
3402         * tree-flow.h (tree_ssa_lim): Adjust prototype.
3403         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3404
3405 2010-05-06  Richard Guenther  <rguenther@suse.de>
3406
3407         PR tree-optimization/43987
3408         * tree-ssa-structalias.c (could_have_pointers): For possibly
3409         address-taken variables force pointers to be recorded.
3410         (create_variable_info_for_1): Likewise.
3411         (push_fields_onto_fieldstack): Pass in wheter all fields
3412         must have pointers.
3413         (find_func_aliases): Query types instead of vars whether
3414         they contain pointers where appropriate.
3415
3416 2010-05-06  Jan Hubicka  <jh@suse.cz>
3417
3418         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3419         (record_reference, mark_address, mark_load, mark_store): Record
3420         references.
3421         (record_references_in_initializer): Update call of record_references.
3422         (rebuild_cgraph_edges): Remove all references before rebuiding.
3423         * cgraph.c (cgraph_create_node): Clear ref list.
3424         (cgraph_remove_node): Remove references.
3425         (dump_cgraph_node): Dump references.
3426         (cgraph_clone_node): Clone references.
3427         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3428         (struct cgraph_node, varpool_node): Add ref_lst.
3429         * ipa-ref.c: New file.
3430         * ipa-ref.h: New file.
3431         * ipa-ref-inline.h: New file.
3432         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3433         (referenced_from_other_partition_p): New function.
3434         (lto_output_varpool_node): Take set arugment; call
3435         referenced_from_other_partition.
3436         (lto_output_ref): New.
3437         (add_references): New.
3438         (output_refs): New.
3439         (output_cgraph): Compute boundary based on references; output refs.
3440         (output_varpool): Accept cgraph_node_set argument.
3441         (input_ref): New.
3442         (input_refs): New.
3443         (input_cgraph): Call input_refs.
3444         * lto-section-in.c (lto_section_name): Add refs.
3445         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3446         (ipa-ref.o): New file.
3447         * varpool.c (varpool_node): Clear ipa ref list.
3448         (varpool_remove_node): Remove references.
3449         (dump_varpool_node): Dump references.
3450         (varpool_assemble_decl): Only compile finalized ones.
3451         (varpool_extra_name_alias): Initialize ref list.
3452         * lto-streamer.c (lto-get_section_name): Add .refs section.
3453         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3454         (referenced_from_other_partition_p): Declared.
3455
3456 2010-05-06  Ira Rosen  <irar@il.ibm.com>
3457
3458         PR tree-optimization/43901
3459         * tree-vect-stmts.c (vectorizable_call): Assert that vector
3460         type is not NULL if it's transformation phase, and return
3461         FALSE if it's analysis.
3462         (vectorizable_conversion, vectorizable_operation,
3463         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3464
3465 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
3466
3467         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3468         Delete.
3469         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3470         New define.
3471         * config/mips/mips-protos.h
3472         (mips_small_register_classes_for_mode_p): Delete prototype.
3473
3474 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
3475
3476         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3477         * config/arm/arm.c (multiple_operation_profitable_p,
3478         compute_offset_order): New static functions.
3479         (load_multiple_sequence, store_multiple_sequence): Use them.
3480         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
3481         memory offsets, not register numbers.
3482         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3483
3484 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3485
3486         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3487         (get_pending_sizes, put_pending_size, put_pending_sizes):
3488         Update the uses of pending_sizes.
3489         * c-decl.c (store_parm_decls): Likewise.
3490         * c-tree.h (struct c_arg_info): Likewise.
3491         * tree.h: Update the prototype for get_pending_sizes and
3492         put_pending_sizes.
3493
3494 2010-05-05  Jason Merrill  <jason@redhat.com>
3495
3496         PR debug/43370
3497         * c-common.c (handle_aligned_attribute): Respect
3498         ATTR_FLAG_TYPE_IN_PLACE.
3499
3500         PR testsuite/43758
3501         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3502         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3503         (TARGET_INITIALIZER): Use it.
3504         * c-common.c (attribute_takes_identifier_p): Call it.
3505         * c-common.h: Update prototype.
3506         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3507         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3508
3509 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
3510
3511         PR debug/43950
3512         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3513         DW_ID_down_case for Fortran compilation units.
3514
3515 2010-05-05  Jan Hubicka  <jh@suse.cz>
3516
3517         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3518         handle aliases.
3519
3520 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3521
3522         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3523         a variable-sized RESULT_DECL.
3524
3525 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
3526
3527         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3528
3529 2010-05-05  Jason Merrill  <jason@redhat.com>
3530
3531         PR c++/43787
3532         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3533         returns GS_OK.
3534         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3535
3536 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
3537             Jakub Jelinek  <jakub@redhat.com>
3538
3539         PR debug/43478
3540         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3541         (dead_debug_init, dead_debug_finish): New functions.
3542         (dead_debug_add, dead_debug_insert_before): Likewise.
3543         (df_note_bb_compute): Initialize a dead_debug object, add dead
3544         debug uses to it, insert debug bind insns before death insns,
3545         reset debug insns that refer to pending uses at the end.
3546         * rtl.h (make_debug_expr_from_rtl): New prototype.
3547         * varasm.c (make_debug_expr_from_rtl): New function.
3548
3549 2010-05-05  Jan Hubicka  <jh@suse.cz>
3550
3551         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3552         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3553         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3554         lto_varpool_encoder_deref, lto_varpool_encoder_size,
3555         lto_varpool_encoder_encode_initializer_p,
3556         lto_set_varpool_encoder_encode_initializer): New functions.
3557         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3558         call output_varpool.
3559         (input_varpool_node): Do not always set analyzed.
3560         (input_cgraph_1): Return vector of cgraph nodes.
3561         (input_varpool_1): Return vector of varpools.
3562         (input_cgraph): Free the vectors.
3563         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3564         output only initializers needed.
3565         (lto_output): Only call output_cgraph.
3566         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3567         * lto-section-out.c (lto_new_out_decl_state): Initialize
3568         state->varpool_node_encoder.
3569         * lto-streamer.h (lto_varpool_encoder_d): New.
3570         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3571         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3572         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3573         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3574         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3575         Declare.
3576         (output_varpool, input_varpool): Remove declarations.
3577
3578 2010-05-05  Jan Hubicka  <jh@suse.cz>
3579
3580         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3581         with body can prevail.
3582
3583 2010-05-05  Jan Hubicka  <jh@suse.cz>
3584
3585         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3586         size.
3587
3588 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3589
3590         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3591
3592         * gengtype.h (erro_at_line): Constify pos argument.
3593
3594         * gengtype.c: Include hashtab.h.
3595         (enum gc_used): Document GC_MAYBE_POINTED_TO.
3596         (error_at_line): Constify pos argument.
3597         (do_typedef): Initialize p->opt field.
3598         (get_file_gtfilename): Fix comment typo.
3599         (struct walk_type_data): Constify line field.
3600         (get_output_file_for_structure): New function.
3601         (write_local_func_for_structure): Constify orig_s argument.
3602         Use get_output_file_for_structure.
3603         (write_func_for_structure): Use get_output_file_for_structure.
3604         (INDENT): New define.
3605         (dump_pair, dump_type, dump_type_list, dump_typekind)
3606         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3607         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3608         functions.
3609         (seen_types): New variable.
3610         (main): New variable do_dump.  Process "-d" command line option.
3611         Call dump_everything if dump requested.
3612
3613 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
3614
3615         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
3616         in a temporary instead of invoking the macro multiple times.
3617         (track_expr_p): Likewise.
3618
3619 2010-05-04  Neil Vachharajani <nvachhar@google.com>
3620
3621         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3622         per new semantics.
3623         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3624         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
3625         conditions for printing notes.
3626         * common.opt (-Wcoverage-mismatch): Allow negative, default to
3627         true, update documentation.
3628         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3629
3630 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
3631
3632         PR c/43981
3633         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3634         on dimen.
3635
3636 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3637
3638         PR target/43799
3639         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3640         (*sse_prologue_save_insn1): Likewise.
3641         (SSE prologue save splitter): Likewise.
3642
3643 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3644
3645         * tree.c (free_lang_data_in_one_sizepos): New inline function.
3646         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3647         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3648         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3649         all decls.  Call it on DECL_FIELD_OFFSET of fields.
3650         (find_decls_types_r): Follow DECL_VALUE_EXPR.
3651         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3652
3653 2010-05-04  Martin Jambor  <mjambor@suse.cz>
3654
3655         * tree-sra.c (build_access_from_expr_1): The first parameter type
3656         changed to simple tree.
3657         (build_access_from_expr): Likewise, gsi parameter was eliminated.
3658         (scan_assign_result): Renamed to assignment_mod_result, enum elements
3659         renamed as well.
3660         (build_accesses_from_assign): Removed all parameters except for a
3661         simple gimple statement.  Now returns a simple bool.
3662         (scan_function): All non-analysis parts moved to separate functions
3663         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
3664         parameters and updated both callers.
3665         (sra_modify_expr): Removed parameter data.
3666         (sra_modify_function_body): New function.
3667         (perform_intra_sra): Call sra_modify_function_body to modify the
3668         function body.
3669         (replace_removed_params_ssa_names): Parameter data changed into
3670         adjustments vector.
3671         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
3672         changed the parameter dont_convert to convert with the opposite
3673         meaning.
3674         (sra_ipa_modify_assign): Parameter data changed into adjustments
3675         vector, return value changed to bool.
3676         (ipa_sra_modify_function_body): New function.
3677         (sra_ipa_reset_debug_stmts): Updated a comment.
3678         (modify_function): Use ipa_sra_modify_function_body to modify function
3679         body.
3680
3681 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3682
3683         PR middle-end/43671
3684         * alias.c (true_dependence): Handle the same VALUE in x and mem.
3685         (canon_true_dependence): Likewise.
3686         (write_dependence_p): Likewise.
3687
3688 2010-05-04  Jan Hubicka  <jh@suse.cz>
3689
3690         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
3691         * cgraphbuild.c: Include ipa-utils.h
3692         (record_reference_ctx): New struct.
3693         (record_reference): Simplify to work on initializers; not statements.
3694         (mark_address, mark_load, mark_store): New.
3695         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3696         walk PHI nodes too.
3697         (record_references_in_initializer): Update use of record_reference.
3698         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3699         walk PHI nodes too.
3700
3701 2010-05-04  Jan Hubicka  <jh@suse.cz>
3702
3703         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
3704         node will be removed anyway.
3705         (lto_varpool_replace_node): Allow also unanalyzed nodes;
3706         relink aliases of node into prevailing node.
3707         * varpool.c (varpool_remove_node): Remove aliases properly;
3708         when removing node, remove all its aliases too; remove DECL_INITIAL
3709         of removed node; ggc_free the varpool node.
3710
3711 2010-05-04  Richard Guenther  <rguenther@suse.de>
3712
3713         PR tree-optimization/43879
3714         * tree-ssa-structalias.c (alias_get_name): Use
3715         DECL_ASSEMBLER_NAME if available.
3716         (create_function_info_for): Return the varinfo node.
3717         (ipa_pta_execute): Associate same-body aliases and extra names
3718         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
3719
3720 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3721
3722         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
3723
3724 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
3725
3726         PR bootstrap/43964
3727         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
3728         only if HONOR_REG_ALLOC_ORDER is not defined.
3729
3730 2010-05-04  Richard Guenther  <rguenther@suse.de>
3731
3732         PR tree-optimization/43949
3733         * tree-vrp.c (extract_range_from_binary_expr): Only handle
3734         TRUNC_MOD_EXPR.
3735
3736 2010-04-26  Jason Merrill  <jason@redhat.com>
3737
3738         * c.opt (-fstrict-enums): New.
3739         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
3740
3741 2010-05-03  David Ung <davidu@mips.com>
3742             James E. Wilson  <wilson@codesourcery.com>
3743
3744         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
3745         emit the trap instruction before the divide for TUNE_74K.
3746
3747 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
3748
3749         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
3750         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
3751         based on the above, for new target hook.
3752
3753         * hooks.c (hook_bool_mode_true): New generic hook.
3754         * hooks.h (hook_bool_mode_true): Add prototype.
3755
3756         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
3757         target hook.
3758         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
3759         target hook, set to hook_bool_mode_false.
3760         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
3761         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
3762         with targetm.small_register_classes_for_mode_p.
3763         (find_reusable_reload): Likewise.
3764         (combine_reloads): Likewise.
3765         * reload1.c (reload_as_needed): Likewise.
3766         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
3767         * ifcvt.c (noce_process_if_block, check_cond_move_block,
3768         dead_or_predicable): Likewise.
3769         * regmove.c (optimize_reg_copy_1): Likewise.
3770         * calls.c (prepare_call_address): Likewise.
3771         (precompute_register_parameters): Likewise.
3772
3773         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
3774         hook definition.
3775         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
3776         implementation of the hook that considers all register classes
3777         small except for SH64.
3778         (sh_override_options): Use the new hook.
3779         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
3780         Add prototype.
3781
3782         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
3783         hook definition.
3784         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
3785         implementation of the hook that considers all register classes
3786         small for THUMB1.
3787         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
3788         Add prototype.
3789
3790         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
3791         hook definition.
3792         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
3793         implementation of the hook that considers all register classes
3794         small for MIPS16.
3795         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
3796         Add prototype.
3797
3798         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
3799         hook definition.
3800         * config/m32c/m32c.h: Likewise.
3801         * config/pdp11/pdp11.h: Likewise.
3802         * config/avr/avr.h: Likewise.
3803         * config/xtensa/xtensa.h: Likewise.
3804         * config/m68hc11/m68hc11.h: Likewise.
3805         * config/mn10300/mn10300.h: Likewise.
3806         * config/mcore/mcore.h: Likewise.
3807         * config/h8300/h8300.h: Likewise.
3808         * config/bfin/bfin.h: Likewise.
3809
3810         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
3811         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
3812
3813 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
3814
3815         * double-int.h (tree_to_double_int): Remove macro.
3816         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
3817         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3818         (tree_to_double_int): New function.
3819         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
3820         Move ...
3821         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3822
3823 2010-05-03  Richard Guenther  <rguenther@suse.de>
3824
3825         PR tree-optimization/43971
3826         * tree-ssa-structalias.c (get_constraint_for_1): Fix
3827         constraints in the !flag_delete_null_pointer_checks case.
3828
3829 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
3830
3831         PR debug/43972
3832         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
3833         result mode matches original rtl mode.
3834
3835 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
3836
3837         PR target/43888
3838         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
3839
3840 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3841
3842         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
3843         when processing flag options.
3844
3845 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3846
3847         * gcov-iov.c (main): Change format string placeholder
3848         from %#08x to 0x%08x.
3849         * genchecksum.c (dosum): Change format string placeholder
3850         from %#02x to 0x%02x.
3851
3852 2010-05-02  Richard Guenther  <rguenther@suse.de>
3853
3854         PR tree-optimization/43879
3855         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
3856
3857 2010-05-02  Bruno Haible  <bruno@clisp.org>
3858
3859         * doc/extend.texi (Function Attributes): Fix a typo.
3860
3861 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3862
3863         Revert:
3864         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
3865         placeholder from 0x%x to %#x.
3866         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3867         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3868         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3869         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3870         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3871         * config/i386/i386.c (ix86_target_string): Ditto.
3872         * config/i386/i386.c (output_pic_addr_const): Ditto.
3873         (print_operand): Ditto.
3874
3875 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3876
3877         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
3878         placeholder from 0x%x to %#x.
3879         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
3880         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
3881         (ASM_OUTPUT_DEBUG_DATA): Ditto.
3882         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
3883         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
3884         * optc-gen.awk: Ditto.
3885         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
3886         (HOST_WIDE_INT_PRINT_HEX): Ditto.
3887         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
3888         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3889
3890 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
3891
3892         * target.h (struct calls): Add function_value_regno_p field.
3893         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3894         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
3895         * targhooks.c (default_function_value_regno_p): New function.
3896         * targhooks.h (default_function_value_regno_p): Declare function.
3897         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
3898         * builtins.c. (apply_result_size): (Ditto.).
3899         * combine.c. (likely_spilled_retval_p): (Ditto.).
3900         * mode-switching.c. Include 'target.h'.
3901         (create_pre_exit): Use function_value_regno_p hook.
3902         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
3903         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
3904         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
3905
3906         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
3907         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
3908         (ix86_function_value_regno_p): Declare as static, change argument
3909         type to const unsigned int.
3910         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
3911
3912 2010-05-01  Richard Guenther  <rguenther@suse.de>
3913
3914         PR tree-optimization/43949
3915         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
3916         types.
3917         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
3918
3919 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
3920
3921         * rtl.h (CONST_DOUBLE_P): Define.
3922         (rtx_to_double_int): Declare.
3923         * emit-rtl.c (rtx_to_double_int): New function.
3924         * dwarf2out.c (insert_double): New function.
3925         (loc_descriptor, add_const_value_attribute): Clean up, use
3926         rtx_to_double_int and insert_double functions.
3927
3928 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
3929
3930         * doc/extend.texi (Inline): Add missing return keyword to examples.
3931         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
3932         "command-line".
3933
3934 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
3935
3936         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
3937         the variable part of the offset as well.  Use highest_pow2_factor for
3938         all alignment checks.
3939
3940 2010-04-30  Richard Guenther  <rguenther@suse.de>
3941
3942         PR tree-optimization/43879
3943         * tree-ssa-structalias.c (type_could_have_pointers): Functions
3944         can have pointers.
3945
3946 2010-04-30  Jan Hubicka  <jh@suse.cz>
3947
3948         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
3949         varpool.
3950         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
3951
3952 2010-04-30  Jan Hubicka  <jh@suse.cz>
3953
3954         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
3955         New.
3956         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
3957         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
3958         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
3959         cgraph_node_set_needs_ltrans_p): Remove.
3960
3961 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3962
3963         * sdbout.c: Include vec.h, do not include varray.h.
3964         (deferred_global_decls, sdbout_global_decl,
3965         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
3966         * toplev.c: Do not include varray.h.
3967         (dump_memory_report): Do not dump VARRAY statistics.
3968         * gengtype.c (open_base_file): Ignore varray.h.
3969         * Makefile.in: Update for abovementioned changes.
3970         Remove all traces of varray.c and varray.h.
3971         * varray.c: Remove file.
3972         * varray.h: Remove file.
3973
3974 2010-04-30  Jan Hubicka  <jh@suse.cz>
3975
3976         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
3977         references.
3978
3979 2010-04-30  Jan Hubicka  <jh@suse.cz>
3980
3981         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
3982         needed.
3983
3984 2010-04-30  Richard Guenther  <rguenther@suse.de>
3985
3986         * tree-ssa-structalias.c (get_constraint_for_1): Generate
3987         constraints for CONSTRUCTOR.
3988
3989 2010-04-30  Richard Guenther  <rguenther@suse.de>
3990
3991         PR lto/43946
3992         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
3993         first after all lowering passes.
3994
3995 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3996
3997         * toplev.c: Include varray.h for statistics dumping.
3998         * tree.h: Do not declare varray_head_tag.
3999         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4000         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4001         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4002         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4003         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4004         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4005         c-common.c, c-common.h, reg-stack.c, basic-block.h,
4006         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4007         include varray.h.
4008         * Makefile.in: Update for abovementioned changes.
4009
4010 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
4011
4012         PR debug/43942
4013         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4014
4015 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4016
4017         * config/picochip/picochip.c (picochip_legitimize_address): Define.
4018         Use this function to do machine-specific conversion.
4019         (picochip_legitimize_reload_address): Likewise.
4020         (picochip_legitimate_address_p): Check valid base register only if
4021         strict.
4022         (picochip_check_conditional_copy): Check for modw only if opnd is
4023         register.
4024         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4025         to call the function in c.
4026         * config/picochip/picochip-protos.h
4027         (picochip_legitimize_reload_address): Define.
4028         * config/picochip/picochip.md (supported_compare1): Define.
4029
4030 2010-04-30  Jan Hubicka  <jh@suse.cz>
4031
4032         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4033         (cgraph_global_info): Remove inlined.
4034         (LTO_cgraph_tag_names): Remove.
4035         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4036         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4037         simplify cgraph tags and document.
4038         (lto_output_node): Use only LTO_cgraph_unavail_node and
4039         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4040         for_functions_valid, global info, process and output flags.
4041         (input_overwrite_node): Initialize estimated stack size and
4042         estimated growth.  Do not read flags we no longer store.
4043         (input_node): Likewise do not read info no longer stored.
4044         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4045         flag.
4046
4047 2010-04-30  Richard Guenther  <rguenther@suse.de>
4048
4049         PR tree-optimization/43879
4050         * tree-ssa-structalias.c (get_constraint_for_1): Properly
4051         handle non-zero initializers.
4052
4053 2010-04-30  Richard Guenther  <rguenther@suse.de>
4054
4055         * builtins.c (fold_builtin_1): Delete free (0).
4056
4057 2010-04-29  Jan Hubicka  <jh@suse.cz>
4058
4059         * gengtype.c (open_base_files): Add lto-streamer.h
4060         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4061         (pass_ipa_cp): GGC collect.
4062         * toplev. (compile_file): Do not output symbols.
4063         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4064         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4065         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4066         * lto-section-in.c: Include ggc.h
4067         (lto_new_in_decl_state): Alloc in GGC.
4068         (lto_delete_in_decl_state): Likewise.
4069         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4070         Collect.
4071
4072 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4073
4074         PR target/42895
4075         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4076         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
4077         (HONOR_REG_ALLOC_ORDER): Describe new macro.
4078         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4079         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4080         account only if HONOR_REG_ALLOC_ORDER is not defined.
4081         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4082         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4083
4084 2010-04-29  Jon Grant  <04@jguk.org>
4085
4086         * collect2.c (vflag): Change type from int to bool.
4087         (debug): Likewise.
4088         (helpflag): New global bool.
4089         (main): Set vflag and debug with boolean, not integer truth values.
4090         Accept new "--help" option and output usage text if found.
4091         * collect2.h (vflag): Update prototype.
4092         (debug): Likewise.
4093
4094 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4095
4096         PR bootstrap/43936
4097         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4098
4099 2010-04-29  Richard Guenther  <rguenther@suse.de>
4100
4101         PR bootstrap/43935
4102         * plugin.h (invoke_plugin_callbacks): Annotate arguments
4103         with ATTRIBUTE_UNUSED.
4104
4105 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4106
4107         PR target/43921
4108         * config/i386/i386.c (get_some_local_dynamic_name): Replace
4109         INSN_P with NONDEBUG_INSN_P.
4110         (distance_non_agu_define): Likewise.
4111         (distance_agu_use): Likewise.
4112
4113 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4114
4115         From Dominique d'Humieres <dominiq@lps.ens.fr>
4116         PR bootstrap/43858
4117         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4118         test_set.
4119
4120 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
4121
4122         * plugin.h (invoke_plugin_callbacks): New inline function.
4123         * plugin.c (flag_plugin_added): New global flag.
4124         (add_new_plugin): Initialize above flag.
4125         (invoke_plugin_callbacks): Rename to ...
4126         (invoke_plugin_callbacks_full): ... this.
4127
4128 2010-04-28  Jan Hubicka  <jh@suse.cz>
4129
4130         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4131         (lto_varpool_replace_node): New.
4132         (lto_symtab_resolve_symbols): Resolve varpool nodes.
4133         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4134         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4135         * cgraph.h (varpool_node_ptr): New type.
4136         (varpool_node_ptr): New vector.
4137         (varpool_node_set_def): New structure.
4138         (varpool_node_set): New type.
4139         (varpool_node_set): New vector.
4140         (varpool_node_set_element_def): New structure.
4141         (varpool_node_set_element, const_varpool_node_set_element): New types.
4142         (varpool_node_set_iterator): New type.
4143         (varpool_node): Add prev pointers, add used_from_other_partition,
4144         in_other_partition.
4145         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4146         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4147         varpool_get_node, varpool_remove_node): Declare.
4148         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4149         varpool_node_set_size): New inlines.
4150         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4151         * tree-pass.h (varpool_node_set_def): Forward declare.
4152         (ipa_opt_pass_d): Summary writting takes vnode sets too.
4153         (ipa_write_optimization_summaries): Update prototype.
4154         * ipa-cp.c (ipcp_write_summary): Update.
4155         * ipa-reference.c (ipa_reference_write_summary): Update.
4156         * lto-cgraph.c (lto_output_varpool_node): New static function.
4157         (output_varpool): New function.
4158         (input_varpool_node): New static function.
4159         (input_varpool_1): New function.
4160         (input_cgraph): Input varpool.
4161         * ipa-pure-const.c (pure_const_write_summary): Update.
4162         * lto-streamer-out.c (lto_output): Update, output varpool too.
4163         (write_global_stream): Kill WPA hack.
4164         (produce_asm_for_decls): Update.
4165         (output_alias_pair_p): Handle variables.
4166         (output_unreferenced_globals): Output only needed partition of varpool.
4167         * ipa-inline.c (inline_write_summary): Update.
4168         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4169         cgraph.
4170         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4171         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4172         varpool_node_set_new, varpool_node_set_add,
4173         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4174         debug_varpool_node_set): New functions.
4175         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4176         (execute_one_pass): Process new decls too.
4177         (ipa_write_summaries_2): Pass around vsets.
4178         (ipa_write_summaries_1): Likewise.
4179         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4180         to add.
4181         (ipa_write_optimization_summaries_1): Pass around vsets.
4182         (ipa_write_optimization_summaries): Likewise.
4183         * varpool.c (varpool_get_node): New.
4184         (varpool_node): Update doubly linked lists.
4185         (varpool_remove_node): New.
4186         (dump_varpool_node): More dumping.
4187         (varpool_enqueue_needed_node): Update doubly linked lists.
4188         (decide_is_variable_needed): Kill ltrans hack.
4189         (varpool_finalize_decl): Kill lto hack.
4190         (varpool_assemble_decl): Skip decls in other partitions.
4191         (varpool_assemble_pending_decls): Update doubly linkes lists.
4192         (varpool_empty_needed_queue): Likewise.
4193         (varpool_extra_name_alias): Likewise.
4194         * lto-streamer.c (lto_get_section_name): Add vars section.
4195         * lto-streamer.h (lto_section_type): Update.
4196         (output_varpool, input_varpool): Declare.
4197
4198 2010-04-28  Mike Stump  <mikestump@comcast.net>
4199
4200         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4201
4202 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4203
4204         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4205         record or union type with RECORD_OR_UNION_TYPE_P predicate.
4206         (lto_input_ts_type_tree_pointers): Likewise.
4207         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4208         (lto_output_ts_type_tree_pointers): Likewise.
4209
4210 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4211
4212         Uniquization of constants at the Tree level
4213         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4214         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4215         bit to the end.
4216         (tree_output_constant_def): Declare.
4217         * gimplify.c (gimplify_init_constructor): When using block copy, first
4218         uniquize the constant constructor on the RHS.
4219         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4220         DECL_IN_CONSTANT_POOL flag.
4221         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4222         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4223         constant pool.
4224         (assemble_variable): Deal with symbols belonging to the tree constant
4225         pool.
4226         (get_constant_section): Add ALIGN parameter and simplify.
4227         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4228         (assemble_constant_contents): Use the expression of the VAR_DECL.
4229         (output_constant_def_contents): Use the alignment of the VAR_DECL.
4230         (tree_output_constant_def): New global function.
4231         (mark_constant): Use the expression of the VAR_DECL.
4232         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4233         its expression.
4234         (output_object_block): Likewise and assemble the expression.
4235
4236 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4237
4238         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4239         hash_tree, eq_tree): New tree hash table.
4240         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4241         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4242         lto_orig_address_remove): Reimplement.
4243
4244 2010-04-28  Xinliang David Li  <davidxl@google.com>
4245
4246         PR c/42643
4247         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4248         (compute_uninit_opnds_pos): New function.
4249         (is_non_loop_exit_postdominating): New function.
4250         (compute_control_dep_chain): New function.
4251         (find_pdom): New function.
4252         (convert_control_dep_chain_into_preds): New function.
4253         (find_predicates): New function.
4254         (find_control_equiv_block): New function.
4255         (collect_phi_def_edges): New function.
4256         (find_def_preds): New function.
4257         (find_dom): New function.
4258         (dump_predicates): New function.
4259         (get_cmp_code): New function.
4260         (is_value_included_in): New function.
4261         (find_matching_predicate_in_rest_chains): New function.
4262         (use_pred_not_overlap_with_undef_path_pred): New function.
4263         (is_use_properly_guarded): New function.
4264         (normalize_cond_1): New function.
4265         (is_and_or_or): New function.
4266         (normalize_cond): New function.
4267         (is_gcond_subset_of): New function.
4268         (is_subset_of_any): New function.
4269         (is_or_set_subset_of): New function.
4270         (is_and_set_subset_of): New function.
4271         (is_norm_cond_subset_of): New function.
4272         (is_pred_expr_subset_of): New function.
4273         (is_pred_chain_subset_of): New function.
4274         (is_included_in): New function.
4275         (is_superset_of): New function.
4276         (find_uninit_use): New function.
4277         (warn_uninitialized_phi): New function.
4278         (compute_possibly_undefined_names): New function.
4279         (ssa_undefined_value_p): New function.
4280         (execute_late_warn_uninitialized): New function.
4281         * tree-ssa.c (ssa_undefined_value_p): Removed.
4282         (warn_uninit): Changed to extern.
4283         (warn_uninitialized_phi): Removed.
4284         (warn_uninitialized_vars): Changed to extern.
4285         (execute_late_warn_uninitialized): Removed
4286         * tree-flow.h: Add new prototypes.
4287         * timevar.def: Add new time variable.
4288         * Makefile.in: Add new build file.
4289
4290 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
4291
4292         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4293         type if available.
4294
4295 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4296
4297         PR target/22224
4298         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4299
4300 2010-04-28  Martin Jambor  <mjambor@suse.cz>
4301
4302         * cgraph.h (struct cgraph_node): New field indirect_calls.
4303         (struct cgraph_indirect_call_info): New type.
4304         (struct cgraph_edge): Removed field indirect_call. New fields
4305         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4306         (cgraph_create_indirect_edge): Declare.
4307         (cgraph_make_edge_direct): Likewise.
4308         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4309         * ipa-prop.h (struct ipa_param_call_note): Removed.
4310         (struct ipa_node_params): Removed field param_calls.
4311         (ipa_create_all_structures_for_iinln): Declare.
4312         * cgraph.c: Described indirect edges and uids in initial comment.
4313         (cgraph_add_edge_to_call_site_hash): New function.
4314         (cgraph_edge): Search also among the indirect edges, use
4315         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4316         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4317         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4318         site hash.
4319         (initialize_inline_failed): Assign a reason to indirect edges.
4320         (cgraph_create_edge_1): New function.
4321         (cgraph_create_edge): Moved some functionality to
4322         cgraph_create_edge_1.
4323         (cgraph_create_indirect_edge): New function.
4324         (cgraph_edge_remove_callee): Add an assert checking for
4325         non-indirectness.
4326         (cgraph_edge_remove_caller): Special-case indirect edges.
4327         (cgraph_remove_edge): Likewise.
4328         (cgraph_set_edge_callee): New function.
4329         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4330         (cgraph_make_edge_direct): New function.
4331         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4332         the declaration of the call statement matches.
4333         (cgraph_node_remove_callees): Special-case indirect edges.
4334         (cgraph_clone_edge): Likewise.
4335         (cgraph_clone_node): Clone also the indirect edges.
4336         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4337         indirect_call, dump count of indirect_calls edges.
4338         * ipa-prop.c (iinlining_processed_edges): New variable.
4339         (ipa_note_param_call): Create indirect edges instead of
4340         creating notes.  New parameter node.
4341         (ipa_analyze_call_uses): New parameter node, pass it on to
4342         ipa_note_param_call.
4343         (ipa_analyze_stmt_uses): Likewise.
4344         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4345         (print_edge_addition_message): Work on edges rather than on notes.
4346         (update_call_notes_after_inlining): Likewise, renamed to
4347         update_indirect_edges_after_inlining.
4348         (ipa_create_all_structures_for_iinln): New function.
4349         (ipa_free_node_params_substructures): Do not free notes.
4350         (ipa_edge_duplication_hook): Propagate bits within
4351         iinlining_processed_edges bitmap.
4352         (ipa_node_duplication_hook): Do not duplicate notes.
4353         (free_all_ipa_structures_after_ipa_cp): Renamed to
4354         ipa_free_all_structures_after_ipa_cp.
4355         (free_all_ipa_structures_after_iinln): Renamed to
4356         ipa_free_all_structures_after_iinln.
4357         (ipa_write_param_call_note): Removed.
4358         (ipa_read_param_call_note): Removed.
4359         (ipa_write_indirect_edge_info): New function.
4360         (ipa_read_indirect_edge_info): Likewise.
4361         (ipa_write_node_info): Do not stream notes, do stream information
4362         in indirect edges.
4363         (ipa_read_node_info): Likewise.
4364         (lto_ipa_fixup_call_notes): Removed.
4365         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4366         * ipa-inline.c (pass_ipa_inline): Likewise.
4367         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4368         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4369         * tree-inline.c (copy_bb): Removed an unnecessary double check for
4370         is_gimple_call.
4371         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4372         edges.
4373         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4374         (output_cgraph): Stream also indirect edges.
4375         (lto_output_edge): Added capability to stream indirect edges.
4376         (input_edge): Likewise.
4377         (input_cgraph_1): Likewise.
4378         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4379         of indirect edges.
4380
4381 2010-04-28  Richard Guenther  <rguenther@suse.de>
4382
4383         PR tree-optimization/43879
4384         PR tree-optimization/43909
4385         * tree-ssa-structalias.c (struct variable_info): Add
4386         only_restrict_pointers flag.
4387         (new_var_info): Initialize it.  Increment stats.total_vars here.
4388         (create_function_info_for): Do not increment stats.total_vars here.
4389         (get_function_part_constraint): Fix build with C++.
4390         (insert_into_field_list): Remove.
4391         (push_fields_onto_fieldstack): Properly merge fields.
4392         (create_variable_info_for): Split and simplify.
4393         (create_variable_info_for_1): New piece.
4394         (intra_create_variable_infos): Properly make restrict constraints
4395         from parameters.
4396
4397 2010-04-28  Richard Guenther  <rguenther@suse.de>
4398
4399         PR c++/43880
4400         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4401
4402 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4403             Jan Hubicka <hubicka@ucw.cz>
4404
4405         * doc/invoke.texi (-Wsuggest-attribute=const,
4406         -Wsuggest-attribute=pure): Document.
4407         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4408         (function_always_visible_to_compiler_p,
4409         suggest_attribute, warn_function_pure, warn_function_const):
4410         New functions.
4411         (check_call): Improve debug info.
4412         (analyze_function): Do not check availability.
4413         (add_new_function): Check availability.
4414         (propagate): Output warnings.
4415         (skip_function_for_local_pure_const): New function.
4416         (local_pure_const): Use it; output warnings.
4417         * common.opt (Wsuggest-attribute=const,
4418         Wsuggest-attribute=pure): New.
4419
4420 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4421
4422         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4423         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4424         or DW_CFA_def_cfa_offset{,_sf}.
4425
4426 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4427
4428         * tree.h: Fix truncated long macros.
4429
4430 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
4431
4432         * collect2.c (TARGET_64BIT): Redefine to target's default.
4433         * tlink.c: Likewise.
4434         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4435         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4436         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4437         for underscoring __USER_LABEL_PREFIX__.
4438         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4439         (SUB_LINK_ENTRY32): New.
4440         (SUB_LINK_ENTRY64): New.
4441         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4442         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4443         (SUB_LINK_ENTRY64): New.
4444         (SUB_LINK_ENTRY): New.
4445         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4446         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4447         x64 target is choosen.
4448         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4449         * configure: Regenerated.
4450         * configure.ac (leading-mingw64-underscores): Option added.
4451
4452 2010-04-27  Jan Hubicka  <jh@suse.cz>
4453
4454         * doc/invoke.texi (-fipa-profile): Document.
4455         * opts.c (decode_options): Enable ipa-profile at -O1.
4456         * timevar.def (TV_IPA_PROFILE): Define.
4457         * common.opt (fipa-profile): Add.
4458         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4459         flag for clones.
4460         (cgraph_propagate_frequency): Handle only local ones.
4461         * tree-pass.h (pass_ipa_profile): Declare.
4462         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4463         (pass_ipa_profile): Use TV_IPA_PROFILE.
4464         * ipa.c (ipa_profile): New function.
4465         (gate_ipa_profile): Likewise.
4466         (pass_ipa_profile): New global variable.
4467         * passes.c (pass_ipa_profile): New.
4468
4469 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
4470
4471         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4472
4473 2010-04-27  Martin Jambor  <mjambor@suse.cz>
4474
4475         PR middle-end/43812
4476         * ipa.c (dissolve_same_comdat_group_list): New function.
4477         (function_and_variable_visibility): Call
4478         dissolve_same_comdat_group_list when comdat group contains external or
4479         newly local nodes.
4480         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4481         lists are circular and that they contain only DECL_ONE_ONLY nodes.
4482
4483 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4484
4485         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4486         (const_hash_1) <VECTOR_CST>: New case.
4487         (compare_constant) <VECTOR_CST>: Likewise.
4488         <ADDR_EXPR>: Deal with LABEL_REFs.
4489         (copy_constant) <VECTOR_CST>: New case.
4490
4491 2010-04-27  Jan Hubicka  <jh@suse.cz>
4492
4493         * cgraph.c (cgraph_propagate_frequency): New function.
4494         * cgraph.h (cgraph_propagate_frequency): Declare.
4495         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4496         cgraph_propagate_frequency.
4497
4498 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4499
4500         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4501
4502 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
4503
4504         PR target/40657
4505         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4506         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4507         here to determine which regs to push and how much stack to reserve.
4508
4509 2010-04-27  Jie Zhang  <jie@codesourcery.com>
4510
4511         * doc/gimple.texi (gimple_statement_with_ops): Remove
4512         addresses_taken field.
4513         (gimple_statement_with_memory_ops): Likewise.
4514
4515 2010-04-27  Jan Hubicka  <jh@suse.cz>
4516
4517         * tree-inline.c (eni_inlining_weights): Remove.
4518         (estimate_num_insns): Special case more builtins.
4519
4520 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
4521
4522         PR c/32207
4523         * c-typeck.c (build_binary_op): Move forward check for comparison
4524         pointer with null pointer constant and adjust the diagnostic message.
4525
4526 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
4527
4528         PR lto/42776
4529         * configure.ac (gcc_cv_as_section_has_align): Set if installed
4530         binutils supports extended .section directive needed by LTO, or
4531         warn if older binutils found.
4532         (LTO_BINARY_READER): New AC_SUBST'd variable.
4533         (LTO_USE_LIBELF): Likewise.
4534         * gcc/config.gcc (lto_binary_reader): New target-specific configure
4535         variable.
4536         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4537         (LTO_USE_LIBELF): Likewise.
4538         * configure: Regenerate.
4539
4540         * collect2.c (is_elf): Rename from this ...
4541         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4542          object files in addition to ELF-formatted ones.
4543         (scan_prog_file): Caller updated.  Also allow for LTO info marker
4544         symbol to be prefixed or not by an extra underscore.
4545
4546         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4547         * config/i386/winnt.c: Also #include lto-streamer.h
4548         (i386_pe_asm_named_section): Specify 1-byte section alignment for
4549         LTO named sections.
4550         (i386_pe_asm_output_aligned_decl_common): Add comment.
4551         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4552
4553 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
4554
4555         PR target/43889
4556         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4557         Add missing earlyclobber for second alternative.
4558
4559 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
4560
4561         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4562         bits for artificial defs at the top of the block.
4563         * fwprop.c (single_def_use_enter_block): Don't call it.
4564
4565 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
4566
4567         PR 43715
4568         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4569         instead of "$gcc_cv_objdump -T".
4570         Use "-undefined dynamic_lookup" on darwin.
4571         * gcc/configure: Regenerate.
4572
4573 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
4574
4575         PR c/43893
4576         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4577
4578 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
4579
4580         * c-parser.c (struct c_token): Move location field up.
4581         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4582         (struct c_declspecs): Convert typespec_word, storage_class, and
4583         default_int_p into bitfields.
4584         (struct c_declarator): Move loc field up.
4585
4586 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
4587
4588         * cfgloop.h (struct loop): Move can_be_parallel field up.
4589         * ipa-prop.h (struct ip_node_params): Move bitfields up.
4590         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4591         down.
4592         (struct iv_cand): Convert pos field into a bitfield.
4593         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4594         field up.
4595         (struct _stmt_vec_info): Shuffle fields for better packing.
4596
4597 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
4598
4599         * varasm.c (IN_NAMED_SECTION): Remove guard.
4600         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4601         (IN_NAMED_SECTION_P): ...this.
4602         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4603         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4604
4605 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
4606
4607         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4608         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
4609         of shadowing it.  Fix comments.
4610
4611 2010-04-26  Jan Hubicka  <jh@suse.cz>
4612
4613         * cgraph.c (cgraph_create_node): Set node frequency to normal.
4614         (cgraph_clone_node): Copy function frequency.
4615         * cgraph.h (node_frequency): New enum
4616         (struct cgraph_node): Add.
4617         * final.c (rest_of_clean_state): Update.
4618         * lto-cgraph.c (lto_output_node): Output node frequency.
4619         (input_overwrite_node): Input node frequency.
4620         * tre-ssa-loop-ivopts (computation_cost): Update.
4621         * lto-streamer-out.c (output_function): Do not output function
4622         frequency.
4623         * predict.c (maybe_hot_frequency_p): Update and handle functions
4624         executed once.
4625         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4626         attribute lookup.
4627         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4628         (compute_function_frequency): Set noreturn functions to be executed
4629         once.
4630         (choose_function_section): Update.
4631         * lto-streamer-in.c (input_function): Do not input function frequency.
4632         * function.c (allocate_struct_function): Do not initialize function
4633         frequency.
4634         * function.h (function_frequency): Remove.
4635         (struct function): Remove function frequency.
4636         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4637         (try_update): Update.
4638         * tree-inline.c (initialize_cfun): Do not update function frequency.
4639         * passes.c (pass_init_dump_file): Update.
4640         * i386.c (ix86_compute_frame_layout): Update.
4641         (ix86_pad_returns): Update.
4642
4643 2010-04-26  Jie Zhang  <jie@codesourcery.com>
4644
4645         PR tree-optimization/43833
4646         * tree-vrp.c (range_int_cst_p): New.
4647         (range_int_cst_singleton_p): New.
4648         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4649         when both operands are constants.  Use range_int_cst_p in
4650         BIT_IOR_EXPR case.
4651
4652 2010-04-26  Jan Hubicka  <jh@suse.cz>
4653
4654         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4655
4656 2010-04-26  Richard Guenther  <rguenther@suse.de>
4657
4658         PR lto/43080
4659         * gimple.c (gimple_decl_printable_name): Deal gracefully
4660         with a NULL DECL_NAME.
4661
4662 2010-04-26  Richard Guenther  <rguenther@suse.de>
4663
4664         PR lto/42425
4665         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4666         if emitting debug information and it is either a function
4667         or a namespace decl.
4668
4669 2010-04-26  Ira Rosen  <irar@il.ibm.com>
4670
4671         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4672         determine if the statement is vectorizable, and a macro to access it.
4673         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4674         Skip statements that can't be vectorized. If the analysis fails,
4675         mark the statement as unvectorizable if vectorizing basic block.
4676         (vect_compute_data_refs_alignment): Likewise.
4677         (vect_verify_datarefs_alignment): Skip statements marked as
4678         unvectorizable. Add print.
4679         (vect_analyze_group_access): Skip statements that can't be
4680         vectorized. If the analysis fails, mark the statement as
4681         unvectorizable if vectorizing basic block.
4682         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4683         * tree-vect-stmts.c (vectorizable_store): Fix the number of
4684         generated stmts for SLP.
4685         (new_stmt_vec_info): Initialize the new field.
4686         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4687         statements marked as unvectorizable.
4688
4689 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
4690
4691         * c-common.c (flag_isoc1x): New.
4692         (flag_isoc99): Update comment.
4693         * c-common.h (flag_isoc1x): New.
4694         (flag_isoc99): Update comment.
4695         * c-cppbuiltin.c (builtin_define_float_constants): Also define
4696         __<type>_DECIMAL_DIG__.
4697         * c-opts.c (set_std_c1x): New.
4698         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
4699         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
4700         * c.opt (-std=c1x, -std=gnu1x): New options.
4701         * doc/cpp.texi: Mention -std=c1x.
4702         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
4703         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
4704         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
4705         * doc/standards.texi: Mention C1X.
4706         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
4707         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
4708         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4709         Define for C1X.
4710
4711 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
4712
4713         * config/i386/gmon-sol2.c (_mcleanup): Change format string
4714         placeholder from 0x%x to %#x.
4715         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4716         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4717         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4718         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4719         * config/i386/i386.c (ix86_target_string): Ditto.
4720         (output_pic_addr_const): Ditto.
4721         (print_operand): Ditto.
4722
4723 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
4724
4725         * combine.c (find_split_point): Add third argument.  Use it
4726         to find nested multiply-accumulate instructions.  Adjust calls.
4727         (try_combine): Adjust call to find_split_point.
4728
4729 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4730
4731         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
4732
4733 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
4734
4735         PR tree-optimization/41442
4736         * fold-const.c (merge_truthop_with_opposite_arm): New function.
4737         (fold_binary_loc): Call it.
4738
4739 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4740
4741         * toplev.c (general_init): Set default for fdiagnostics-show-option.
4742         * opts.c (common_handle_option): Allow disabling it.
4743         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
4744
4745 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
4746
4747         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
4748         between modes if both types are integral.
4749
4750 2010-04-23  Richard Guenther  <rguenther@suse.de>
4751
4752         PR tree-optimization/43572
4753         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
4754
4755 2010-04-23  Richard Guenther  <rguenther@suse.de>
4756
4757         PR lto/43455
4758         * tree-inline.c (tree_can_inline_p): Also check compatibility
4759         of return types.
4760
4761 2010-04-23  Martin Jambor  <mjambor@suse.cz>
4762
4763         PR tree-optimization/43846
4764         * tree-sra.c (struct access): New flag grp_assignment_read.
4765         (build_accesses_from_assign): Set grp_assignment_read.
4766         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
4767         (enum mark_read_status): New type.
4768         (analyze_access_subtree): Propagate grp_assignment_read, create
4769         accesses also if both direct_read and root->grp_assignment_read.
4770
4771 2010-04-23  Martin Jambor  <mjambor@suse.cz>
4772
4773         PR middle-end/43835
4774         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
4775         function does not have type attributes.
4776
4777 2010-04-23  Richard Guenther  <rguenther@suse.de>
4778
4779         PR lto/42653
4780         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
4781         of FUNCTION_DECLs.
4782
4783 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4784
4785         * sese.h (create_if_region_on_edge): Remove.
4786
4787         * sese.c (create_if_region_on_edge): Make static.
4788
4789         * tree-inline.c: Do not include ggc.h.
4790
4791         * expr.c: Do not include ggc.h.
4792
4793         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
4794         dependencies.
4795
4796 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4797
4798         PR target/43744
4799         * config/sh/sh.c (find_barrier): Don't emit a constant pool
4800         in the middle of insns for casesi_worker_2.
4801
4802 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
4803
4804         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
4805
4806 2010-04-22  Ira Rosen  <irar@il.ibm.com>
4807
4808         PR tree-optimization/43842
4809         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4810         loop unrolling in update of exit phis. Fix comment.
4811         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
4812         least two reduction statements in the loop before starting SLP
4813         analysis.
4814
4815 2010-04-22  Nick Clifton  <nickc@redhat.com>
4816
4817         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
4818
4819 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
4820
4821         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
4822         to simplify a + ~a.
4823
4824 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4825
4826         * tree-parloops.c (loop_parallel_p): New argument
4827         parloop_obstack.  Pass it down.
4828         (parallelize_loops): New variable parloop_obstack.  Initialize it,
4829         pass it down, free it.
4830
4831         * tree-loop-linear.c (linear_transform_loops): Pass down
4832         lambda_obstack.
4833
4834         * tree-data-ref.h (lambda_compute_access_matrices): New argument
4835         of type struct obstack *.
4836
4837         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
4838         scratch_obstack.  Initialize it, pass down, free it.
4839
4840         * lambda.h (lambda_loop_new): Remove.
4841         (lambda_matrix_new, lambda_matrix_inverse)
4842         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
4843         argument of type struct obstack *.
4844
4845         * lambda-trans.c (lambda_trans_matrix_new): New argument
4846         lambda_obstack.  Pass it down, use obstack allocation for ret.
4847         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
4848         it down.
4849
4850         * lambda-mat.c (lambda_matrix_get_column)
4851         (lambda_matrix_project_to_null): Remove.
4852         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
4853         allocation for mat.
4854         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
4855         lambda_obstack.
4856
4857         * lambda-code.c (lambda_loop_new): New function.
4858         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
4859         (lambda_compute_auxillary_space, lambda_compute_target_space)
4860         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
4861         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
4862         (build_access_matrix): New argument lambda_obstack.  Use obstack
4863         allocation for am.
4864         (lambda_compute_step_signs, lambda_compute_access_matrices): New
4865         argument lambda_obstack.  Pass it down.
4866
4867 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
4868
4869         * optabs.h (expand_widening_mult): Declare.
4870
4871 2010-04-22  Richard Guenther  <rguenther@suse.de>
4872
4873         PR tree-optimization/43845
4874         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
4875         lookup the CALL_EXPR function and arguments.
4876
4877 2010-04-22  Nick Clifton  <nickc@redhat.com>
4878
4879         * config/stormy16/stormy16.c
4880         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
4881         * config/stormy16/stormy16.h: Tidy up formatting.
4882         (DONT_USE_BUILTIN_SETJMP): Remove definition.
4883         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
4884         (ineqbranchsi): Delete pattern.
4885         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
4886         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
4887         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4888         stormy16-lib2-ucmpsi2.c.
4889
4890 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
4891
4892         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
4893         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
4894         extra set merge_set_noclobber, and use it to relax the final test
4895         slightly.
4896         * df.h (df_simulate_find_noclobber_defs): Declare.
4897         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
4898         conditional defs.
4899         (df_simulate_find_noclobber_defs): New function.
4900
4901 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
4902
4903         * config/i386/i386.md: Use {} around multi-line preparation statements.
4904
4905 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4906
4907         * c-tree.h (push_init_level, pop_init_level, set_init_index)
4908         (process_init_element): New argument of type struct obstack *.
4909
4910         * c-typeck.c (push_init_level, pop_init_level, set_designator)
4911         (set_init_index, set_init_label, set_nonincremental_init)
4912         (set_nonincremental_init_from_string, find_init_member)
4913         (output_init_element, output_pending_init_elements)
4914         (process_init_element): New argument braced_init_obstack.  Pass it
4915         down.
4916         (push_range_stack, add_pending_init): New argument
4917         braced_init_obstack.  Use obstack allocation.
4918
4919         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
4920         braced_init_obstack.  Pass it down.
4921         (c_parser_braced_init): New variables ret, braced_init_obstack.
4922         Initialize obstack, pass it down and finally free it.
4923
4924 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
4925
4926         PR middle-end/29274
4927         * tree-pass.h (pass_optimize_widening_mul): Declare.
4928         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
4929         gate_optimize_widening_mul): New static functions.
4930         (pass_optimize_widening_mul): New.
4931         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
4932         <case MULT_EXPR>: Remove support for widening multiplies.
4933         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
4934         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
4935         simplify_gen_unary rather than directly building extensions.
4936         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
4937         WIDEN_MULT_EXPR.
4938         * expmed.c (expand_widening_mult): New function.
4939         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
4940
4941 2010-04-21  Jan Hubicka  <jh@suse.cz>
4942
4943         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
4944         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
4945         * lto-wpa-fixup.c: Remove.
4946         * Makefile.in (lto-wpa-fixup.o): Remove.
4947         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
4948         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
4949         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
4950
4951 2010-04-21  Jan Hubicka  <jh@suse.cz>
4952
4953         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
4954         add write_optimization_summary, read_optimization_summary.
4955         (ipa_write_summaries_of_cgraph_node_set): Remove.
4956         (ipa_write_optimization_summaries): Declare.
4957         (ipa_read_optimization_summaries): Declare.
4958         * ipa-cp.c (pass_ipa_cp): Update.
4959         * ipa-reference.c (pass_ipa_reference): Update.
4960         * ipa-pure-const.c (pass_ipa_pure_const): Update.
4961         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
4962         Update.
4963         * ipa-inline.c (pass_ipa_inline): Update.
4964         * ipa.c (pass_ipa_whole_program): Update.
4965         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
4966         * passes.c (ipa_write_summaries_1): Do not test wpa.
4967         (ipa_write_optimization_summaries_1): New.
4968         (ipa_write_optimization_summaries): New.
4969         (ipa_read_summaries): Do not test ltrans.
4970         (ipa_read_optimization_summaries_1): New.
4971         (ipa_read_optimization_summaries): New.
4972
4973 2010-04-21  Jan Hubicka  <jh@suse.cz>
4974
4975         * lto-cgraph.c (lto_output_node): Do not output comdat groups
4976         for boundary nodes.
4977         (output_cgraph): Do not arrange comdat groups for boundary nodes.
4978
4979 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
4980
4981         PR debug/40040
4982         * dwarf2out.c (add_name_and_src_coords_attributes): Add
4983         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
4984
4985 2010-04-21  Jan Hubicka  <jh@suse.cz>
4986
4987         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
4988
4989 2010-04-21  Jan Hubicka  <jh@suse.cz>
4990
4991         * varpool.c (decide_is_variable_needed): Variable is always needed
4992         during ltrans.
4993
4994 2010-04-21  Jan Hubicka  <jh@suse.cz>
4995
4996         * opts.c (decode_options): Enable pure-const pass for whopr.
4997
4998 2010-04-21  Jan Hubicka  <jh@suse.cz>
4999
5000         * cgraph.c (dump_cgraph_node): Dump also assembler name.
5001         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5002         at WPA dumping.
5003         (cgraph_decide_inlining): Do not expect callee to be removed in all
5004         cases.
5005
5006 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
5007
5008         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5009
5010 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5011
5012         * config/i386/i386.md (x86_shrd): Add athlon_decode and
5013         amdfam10_decode attributes.
5014
5015 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5016
5017         PR middle-end/43570
5018         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5019         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5020         (lower_copyprivate_clauses): Use private var in outer
5021         context instead of original var.  Make sure the types
5022         are correct for VLAs.
5023
5024 2010-04-21  Richard Guenther  <rguenther@suse.de>
5025
5026         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5027         to non-pointer objects.
5028
5029 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5030
5031         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
5032         last chain entry if it starts with the still current label.
5033         (add_location_or_const_value_attribute): Check that
5034         loc_list->first->next is NULL instead of comparing ->first with ->last.
5035         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5036         to add_var_loc_to_decl.
5037
5038         * dwarf2out.c (output_call_frame_info): For dw_cie_version
5039         >= 4 add also address size and segment size fields into CIE header.
5040
5041         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5042         long as address size is the same as sizeof (void *) and
5043         segment size is 0.
5044         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
5045         address size or segment size is unexpected, return DW_EH_PE_omit.
5046         (classify_object_over_fdes): If get_cie_encoding returned
5047         DW_EH_PE_omit, return -1.
5048         (init_object): If classify_object_over_fdes returned -1,
5049         pretend there were no FDEs at all.
5050
5051 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5052
5053         * config/i386/i386.md (bswap<mode>2): Macroize expander from
5054         bswap{si,di}2 using SWI48 mode iterator.
5055         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5056         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
5057         set modrm attribute of bswap insn to 0 and remove length attribute.
5058         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5059         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
5060         set mode attribute to <MODE> and remove length attribute.
5061
5062 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
5063
5064         PR rtl-optimization/43520
5065         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5066         zero available registers.
5067
5068 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5069
5070         * builtins.c (fold_builtin_cproj): Fold more cases.
5071
5072 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5073
5074         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5075         (fold_builtin_1): Fold builtin cproj.
5076         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5077         Use ATTR_CONST_NOTHROW_LIST.
5078
5079 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
5080
5081         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5082         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
5083         ffsi2_no_cmove for !TARGET_CMOVE.
5084         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
5085         (ffssi2): Remove expander.
5086         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5087         mode iterator.
5088         (ctz<mode>2): Ditto from ctz{si,di}2.
5089         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5090         mode iterator.
5091         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5092         mode iterator.
5093
5094 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5095
5096         * dwarf2out.c (AT_linkage_name): Define.
5097         (clone_as_declaration): Handle DW_AT_linkage_name.
5098         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5099         of DW_AT_MIPS_linkage_name.
5100         (move_linkage_attr): Likewise.
5101         (dwarf2out_finish): Likewise.
5102
5103 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
5104
5105         PR middle-end/41952
5106         * fold-const.c (fold_comparison): New folding rule.
5107
5108 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
5109
5110         * double-int.h (double_int_setbit): Declare.
5111         * double-int.c (double_int_setbit): New function.
5112         * rtl.h (immed_double_int_const): Declare.
5113         * emit-rtl.c (immed_double_int_const): New function.
5114         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5115         and immed_double_int_const functions.
5116         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5117         expand_copysign_bit):  (Ditto.).
5118         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5119         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5120         * dojump.c (prefer_and_bit_test): (Ditto.).
5121         * expr.c (convert_modes, reduce_to_bit_field_precision,
5122         const_vector_from_tree): (Ditto.).
5123         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5124
5125 2010-04-20  Jan Hubicka  <jh@suse.cz>
5126
5127         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5128         (dump_cgraph_node): Dump new flags.
5129         * cgraph.h (struct cgraph_node): Add flags
5130         reachable_from_other_partition and in_other_partition.
5131         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5132         other partition can not be removed.
5133         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5134         the other partition must be output; silence sanity checking on
5135         leaking functions bodies from other paritition.
5136         * lto-cgraph.c (reachable_from_other_partition_p): New function.
5137         (lto_output_node): Output new flags; do not sanity check that inline
5138         clones are output; drop lto_forced_extern_inline_p code; do not mock
5139         visibility flags at partition boundaries.
5140         (add_node_to): New function.
5141         (output_cgraph): Use it to sort functions so masters appear before
5142         clones.
5143         (input_overwrite_node): Input new flags.
5144         * passes.c (ipa_write_summaries): Do not call
5145         lto_new_extern_inline_states.
5146         * lto-section-out.c (forced_extern_inline,
5147         lto_new_extern_inline_states lto_delete_extern_inline_states,
5148         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5149         * lto-streamer.h (lto_new_extern_inline_states,
5150         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5151         lto_forced_extern_inline_p): Kill.
5152
5153 2010-04-20  Richard Guenther  <rguenther@suse.de>
5154
5155         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5156         from vars that can have pointers.
5157         (process_constraint): Dump useless constraints.
5158
5159 2010-04-20  Richard Guenther  <rguenther@suse.de>
5160
5161         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5162         (dump_sa_points_to_info): Remove asserts.
5163         (init_base_vars): nothing_id isn't an escape point nor does it
5164         have pointers.
5165
5166 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5167
5168         * tree.h (TYPE_REF_IS_RVALUE): Define.
5169         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5170         should_move_die_to_comdat, prune_unused_types_walk): Handle
5171         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5172         (modified_type_die, gen_reference_type_die): Emit
5173         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5174         if TYPE_REF_IS_RVALUE and -gdwarf-4.
5175
5176 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5177
5178         PR target/43635
5179         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5180         calls for -fpic -m31 if they have been sibcall optimized.
5181
5182 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
5183
5184         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5185         ar.lc fixed and call-used.
5186
5187         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5188
5189 2010-04-19  Jan Hubicka  <jh@suse.cz>
5190
5191         * opts.c (decode_options): Disable whpr incompatible passes.
5192         * lto/lto.c (lto_1_to_1_map): Skip clones.
5193         (read_cgraph_and_symbols): Do not mark everything as needed.
5194         (do_whole_program_analysis): Do map only after optimizing;
5195         set proper cgraph_state; use passmanager.
5196
5197 2010-04-19  DJ Delorie  <dj@redhat.com>
5198
5199         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5200         POINTER_PLUS_EXPR and fix them.
5201
5202 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
5203
5204         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5205         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5206         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5207         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5208         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5209         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5210         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5211         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5212         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5213         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5214         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5215
5216 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5217
5218         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5219         (check_cond_move_block): Likewise.
5220         (cond_move_process_if_block): Likewise.
5221         (noce_find_if_block): Improve formatting.
5222         (find_if_header): Pass 0 to memset and tweak conditions.
5223         (cond_exec_find_if_block): Fix long lines and tweak conditions.
5224
5225 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5226
5227         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5228         for -gdwarf-4.
5229
5230         PR middle-end/43337
5231         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5232         with non-local decl doesn't need chain.
5233
5234 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5235
5236         * ira-color.c (allocno_reload_assign): Avoid accumulating
5237         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5238
5239 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5240
5241         * gimple.h (create_tmp_reg): Declare.
5242         * gimplify.c (create_tmp_reg): New function.
5243         (gimplify_return_expr): Use create_tmp_reg.
5244         (gimplify_omp_atomic): Likewise.
5245         (gimple_regimplify_operands): Likewise.
5246         * tree-dfa.c (make_rename_temp): Likewise.
5247         * tree-predcom.c (predcom_tmp_var): Likewise.
5248         (reassociate_to_the_same_stmt): Likewise.
5249         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5250         (get_replaced_param_substitute): Likewise.
5251         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5252         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5253         * tree-ssa-pre.c (get_representative_for): Likewise.
5254         (create_expression_by_pieces): Likewise.
5255         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5256         (create_tailcall_accumulator): Likewise.
5257
5258 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5259
5260         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5261         new_stmt.
5262         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5263
5264 2010-04-19  Richard Guenther  <rguenther@suse.de>
5265
5266         PR tree-optimization/43796
5267         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5268         from SCEV in the lattice.
5269         (vrp_visit_phi_node): Dump change.
5270
5271 2010-04-19  Richard Guenther  <rguenther@suse.de>
5272
5273         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5274         * configure: Re-generated.
5275
5276 2010-04-19  Richard Guenther  <rguenther@suse.de>
5277
5278         PR tree-optimization/43783
5279         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5280         constant ARRAY_REF operands two and three if possible.
5281
5282 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
5283
5284         PR target/43766
5285         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5286
5287 2010-04-19  Jie Zhang  <jie@codesourcery.com>
5288
5289         PR target/43662
5290         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5291
5292 2010-04-19  Ira Rosen  <irar@il.ibm.com>
5293
5294         PR tree-optimization/37027
5295         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5296         and macro to access it.
5297         (vectorizable_reduction): Add argument.
5298         (vect_get_slp_defs): Likewise.
5299         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5300         statements for possible use in SLP.
5301         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5302         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5303         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5304         add new argument.
5305         (vectorizable_reduction): Likewise.
5306         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5307         vect_get_slp_defs.
5308         (vectorizable_type_demotion, vectorizable_type_promotion,
5309         vectorizable_store): Likewise.
5310         (vect_analyze_stmt): Update call to vectorizable_reduction.
5311         (vect_transform_stmt): Likewise.
5312         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5313         (vect_build_slp_tree): Fix indentation. Check that there are no loads
5314         from different interleaving chains in same node.
5315         (vect_slp_rearrange_stmts): New function.
5316         (vect_supported_load_permutation_p): Allow load permutations for
5317         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5318         inside SLP nodes if necessary.
5319         (vect_analyze_slp_instance): Handle reductions.
5320         (vect_analyze_slp): Try to build SLP instances originating from groups
5321         of reductions.
5322         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5323         (vect_get_constant_vectors): Create initial vectors for reductions
5324         according to reduction code. Add new argument.
5325         (vect_get_slp_defs): Add new argument, pass it to
5326         vect_get_constant_vectors.
5327         (vect_schedule_slp_instance): Remove SLP tree root statements.
5328
5329 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5330
5331         * tree.h (ENUM_IS_SCOPED): Define.
5332         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5333         for ENUM_IS_SCOPED enums.
5334
5335 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5336
5337         * fold-const.c (fold_comparison): Use ssizetype.
5338         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5339         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5340         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5341         * tree-object-size.c (compute_object_sizes): Use size_type_node.
5342
5343         * tree.h (initialize_sizetypes): Remove parameter.
5344         (build_common_tree_nodes): Remove second parameter.
5345         * stor-layout.c (initialize_sizetypes): Remove parameter.
5346         Always create an unsigned type.
5347         (set_sizetype): Assert that the passed type is unsigned and simplify.
5348         * tree.c (build_common_tree_nodes): Remove second parameter.
5349         Adjust call to initialize_sizetypes.
5350         * c-decl.c (c_init_decl_processing): Remove second argument in call to
5351         build_common_tree_nodes.
5352
5353 2010-04-18  Matthias Klose  <doko@ubuntu.com>
5354
5355         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5356
5357 2010-04-18  Ira Rosen  <irar@il.ibm.com>
5358
5359         PR tree-optimization/43771
5360         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5361         load permutation doesn't have gaps.
5362
5363 2010-04-18  Jan Hubicka  <jh@suse.cz>
5364
5365         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5366         (sse_prologue_save_insn expander): Use new pattern.
5367         (sse_prologue_save_insn1): New pattern and splitter.
5368         (sse_prologue_save_insn): Update to deal also with 64bit aligned
5369         blocks.
5370         * i386.c (setup_incoming_varargs_64): Do not compute jump
5371         destination here.
5372         (ix86_gimplify_va_arg): Update alignment needed.
5373         (ix86_local_alignment): Do not align all local arrays to 128bit.
5374
5375 2010-04-17  Jan Hubicka  <jh@suse.cz>
5376
5377         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5378
5379 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5380
5381         * arm.md (negdi2): Remove redundant code to force values into a
5382         register.
5383
5384 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5385
5386         * arm/bpabi.S: Add EABI alignment attributes to objects.
5387         * arm/bpabi-v6m.S: Likewise.
5388         * arm/crti.asm: Likewise.
5389         * arm/crtn.asm: Likewise.
5390         * arm/lib1funcs.asm: Likewise.
5391         * arm/libunwind.S: Likewise.
5392
5393 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5394
5395         * arm-protos.h (tune_params): New structure.
5396         * arm.c (current_tune): New variable.
5397         (arm_constant_limit): Delete.
5398         (struct processors): Add pointer to the tune parameters.
5399         (arm_slowmul_tune): New tuning option.
5400         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5401         (all_cores): Adjust to pick up the tuning model.
5402         (arm_constant_limit): New function.
5403         (arm_override_options): Select the appropriate tuning model.  Delete
5404         initialization of arm_const_limit.
5405         (arm_split_constant): Use the new constant-limit model.
5406         (arm_rtx_costs): Pick up the current tuning model.
5407         * arm.md (is_strongarm, is_xscale): Delete.
5408         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5409         for Xscale variant architectures.
5410         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5411
5412 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5413
5414         * config/arm/arm.c (arm_gen_constant): Remove unused variable
5415         can_shift.
5416         (arm_rtx_costs_1): Remove unused variable extra_cost.
5417         (arm_unwind_emit_set): Use variable offset.
5418         (thumb1_output_casesi): Remove unused variable flags.
5419
5420 2010-04-16  Jeff Law  <law@redhat.com>
5421
5422         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5423         needing assignment rather than doing a two-phase assignment.  Remove
5424         unused variable 'm'.
5425
5426 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5427
5428         PR bootstrap/43767
5429         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5430
5431 2010-04-16  Doug Kwan  <dougkwan@google.com>
5432
5433         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5434         (next_operand_entry_id): New static variable.
5435         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5436         (add_to_ops_vec): Assigned unique ID to operand entry.
5437         (struct oecount_s): New field ID.
5438         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5439         (undistribute_ops_list): Assign unique IDs to oecounts.
5440         (init_reassoc): reset next_operand_entry_id.
5441
5442 2010-04-16  Doug Kwan  <dougkwan@google.com>
5443
5444         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5445         missing left parenthesis.
5446
5447 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
5448
5449         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5450         *btdi_rex64 using SWI48 mode iterator.
5451         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5452         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5453         *jcc_btdi_mask_rex64.
5454
5455 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
5456
5457         * double-int.h (tree_to_double_int): Convert to macro.
5458         * double-int.c (tree_to_double_int): Remove.
5459
5460 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5461
5462         PR debug/43762
5463         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5464         with want_address 2 and in case a single element list might be
5465         possible, call it again with want_address 0.
5466
5467 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5468
5469         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5470         case 'W' print operands for HI mode.
5471         * config/h8300/h8300.h (Y0, Y2) : New constraints.
5472         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5473         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5474         * config/h8300/predicate.md (bit_register_indirect_operand): New.
5475
5476         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5477
5478         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5479         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5480         #xx:3 and #xx:4 mode.
5481
5482         * config/h8300/h8300.md (inverted load with HImode dest): Add
5483         support for H8300SX.
5484
5485         * config/h8300/predicate.md (bit_operand): Allow immediate values that
5486         satisfy 'U' constraint.
5487
5488 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5489
5490         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5491         * configure: Regenerate.
5492         * config.in: Regenerate.
5493         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5494         works.
5495
5496 2010-04-16  Richard Guenther  <rguenther@suse.de>
5497
5498         * tree.h (struct tree_decl_minimal): Move pt_uid ...
5499         (struct tree_decl_common): ... here.
5500         (DECL_PT_UID): Adjust.
5501         (SET_DECL_PT_UID): Likewise.
5502         (DECL_PT_UID_SET_P): Likewise.
5503
5504 2010-04-16  Richard Guenther  <rguenther@suse.de>
5505
5506         PR tree-optimization/43572
5507         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5508         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5509         * tree-flow.h (is_call_clobbered): Remove.
5510         * tree-flow-inline.h (is_call_clobbered): Likewise.
5511         * tree-dfa.c (dump_variable): Do not dump call clobber state.
5512         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5513         (execute_return_slot_opt): Adjust.
5514         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5515         check for call clobbered vars here.
5516         (find_tail_calls): Move tailcall verification to the
5517         proper place.
5518
5519 2010-04-16  Diego Novillo  <dnovillo@google.com>
5520
5521         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5522
5523 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5524
5525         PR target/40603
5526         * config/arm/arm.md (cbranchqi4): New pattern.
5527         * config/arm/predicates.md (const0_operand,
5528         cbranchqi4_comparison_operator): New predicates.
5529
5530 2010-04-16  Richard Guenther  <rguenther@suse.de>
5531
5532         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5533         (dump_gimple_stmt): Likewise.
5534
5535 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5536
5537         * recog.h (struct recog_data): New field is_operator.
5538         (struct insn_operand_data): New field is_operator.
5539         * recog.c (extract_insn): Set recog_data.is_operator.
5540         * genoutput.c (output_operand_data): Emit code to set the
5541         is_operator field.
5542         * reload.c (find_reloads): Use it rather than testing for an
5543         empty constraint string.
5544
5545         PR target/41514
5546         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5547         If the previous insn is a cbranchsi4_insn with the same arguments,
5548         omit the compare instruction.
5549
5550         * config/arm/arm.md (addsi3_cbranch): If destination is a high
5551         register, inputs must be low registers and we need a low register
5552         scratch.  Handle alternative 2 like alternative 3.
5553
5554 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5555
5556         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5557         don't call get_addr on both.  If one expression is a VALUE and
5558         the other a REG, check VALUE's locs if the REG isn't among them.
5559
5560 2010-04-16  Christian Bruel  <christian.bruel@st.com>
5561
5562         * config/sh/sh.h (sh_frame_pointer_required): New function.
5563         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5564         (flag_omit_frame_pointer) Set.
5565         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5566         (rounded_frame_size): Adjust size with outgoing_args_size.
5567         (sh_set_return_address): Must return from stack pointer.
5568         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5569         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5570         (ACCUMULATE_OUTGOING_ARGS): Define.
5571         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5572         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5573
5574 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
5575
5576         PR target/43471
5577         * config/sh/sh.c (sh_legitimize_reload_address): Use
5578         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5579         Remove a unneeded check for offset_base.
5580
5581 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5582
5583         * configure: Regenerated.
5584
5585 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5586
5587         * config/s390/s390.c (s390_call_save_register_used): Switch back
5588         to HARD_REGNO_NREGS.
5589
5590 2010-04-15  Richard Guenther  <rguenther@suse.de>
5591
5592         * alias.c (alias_set_subset_of): Handle alias-set zero
5593         child properly.
5594
5595 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
5596             Julian Brown  <julian@codesourcery.com>
5597
5598         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5599         alternatives according to use of high and low regs.
5600         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5601         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5602         optimizing for size on Thumb-2.
5603
5604 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
5605
5606         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5607
5608 2010-04-15  Richard Guenther  <rguenther@suse.de>
5609
5610         * tree-ssa-structalias.c (struct variable_info): Add
5611         is_fn_info flag.
5612         (new_var_info): Initialize it.
5613         (dump_constraints): Support printing last added constraints.
5614         (debug_constraints): Adjust.
5615         (dump_constraint_graph): Likewise.
5616         (make_heapvar_for): Check for NULL cfun.
5617         (get_function_part_constraint): New function.
5618         (get_fi_for_callee): Likewise.
5619         (find_func_aliases): Properly implement IPA PTA constraints.
5620         (process_ipa_clobber): New function.
5621         (find_func_clobbers): Likewise.
5622         (insert_into_field_list_sorted): Remove.
5623         (create_function_info_for): Properly allocate vars for IPA mode.
5624         Do not use insert_into_field_list_sorted.
5625         (create_variable_info_for): Properly generate constraints for
5626         global vars in IPA mode.
5627         (dump_solution_for_var): Always dump the solution.
5628         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5629         (find_what_var_points_to): Adjust.
5630         (pt_solution_set): Change.
5631         (pt_solution_ior_into): New function.
5632         (pt_solution_empty_p): Export.
5633         (pt_solution_includes_global): Adjust.
5634         (pt_solution_includes_1): Likewise.
5635         (pt_solutions_intersect_1): Likewise.
5636         (dump_sa_points_to_info): Check some invariants.
5637         (solve_constraints): Move constraint dumping ...
5638         (compute_points_to_sets): ... here.
5639         (ipa_pta_execute): ... and here.
5640         (compute_may_aliases): Do not re-compute points-to info
5641         locally if IPA info is available.
5642         (ipa_escaped_pt): New global var.
5643         (ipa_pta_execute): Properly implement IPA PTA.
5644         * tree-into-ssa.c (dump_decl_set): Support dumping
5645         decls not in referenced-vars.
5646         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5647         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5648         (dump_points_to_solution): Likewise.
5649         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5650         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5651         (remap_gimple_stmt): Reset call clobber/use information if necessary.
5652         (copy_decl_to_var): Copy DECL_PT_UID.
5653         (copy_result_decl_to_var): Likewise.
5654         * tree.c (make_node_stat): Initialize DECL_PT_UID.
5655         (copy_node_stat): Copy it.
5656         * tree.h (DECL_PT_UID): New macro.
5657         (SET_DECL_PT_UID): Likewise.
5658         (DECL_PT_UID_SET_P): Likewise.
5659         (struct tree_decl_minimal): Add pt_uid member.
5660         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5661         (pt_solution_empty_p): Declare.
5662         (pt_solution_set): Adjust.
5663         (ipa_escaped_pt): Declare.
5664         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5665         * gimple-pretty-print.c (pp_points_to_solution): New function.
5666         (dump_gimple_call): Dump call clobber/use information.
5667         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5668         * tree-pass.h (TDF_ALIAS): New dump option.
5669         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5670         * doc/invoke.texi (-fipa-pta): Update documentation.
5671
5672 2010-04-15  Richard Guenther  <rguenther@suse.de>
5673
5674         * Makefile.in (OBJS-common): Add gimple-fold.o.
5675         (gimple-fold.o): New rule.
5676         * tree.h (maybe_fold_offset_to_reference,
5677         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5678         prototypes ...
5679         * gimple.h: ... here.
5680         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5681         may_propagate_address_into_dereference): Move prototypes ...
5682         * gimple.h: ... here.
5683         * tree-ssa-ccp.c (get_symbol_constant_value,
5684         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5685         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5686         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5687         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5688         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
5689         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
5690         gimplify_and_update_call_from_tree): Move ...
5691         * gimple-fold.c: ... here.  New file.
5692         (ccp_fold_builtin): Rename to ...
5693         (gimple_fold_builtin): ... this.
5694         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
5695
5696 2010-04-15  Richard Guenther  <rguenther@suse.de>
5697
5698         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
5699         fit_double_type, force_fit_type_double, add_double_with_sign,
5700         neg_double, mul_double_with_sign, lshift_double, rshift_double,
5701         lrotate_double, rrotate_double, div_and_round_double): Move ...
5702         * double-int.c: ... here.
5703         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
5704         add_double, neg_double, mul_double_with_sign, mul_double,
5705         lshift_double, rshift_double, lrotate_double, rrotate_double,
5706         div_and_round_double): Move prototypes ...
5707         * double-int.h: ... here.
5708
5709 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
5710
5711         PR target/43742
5712         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
5713         matching constraints to ensure inputs match the output.
5714
5715 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
5716
5717         PR target/43742
5718         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
5719         in an input-only operand.
5720
5721 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
5722
5723         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
5724         (double_int_not, double_int_lshift, double_int_rshift): Declare.
5725         (double_int_negative_p): Convert to static inline function.
5726         * double-int.c (double_int_lshift, double_int_lshift): New functions.
5727         (double_int_negative_p): Remove.
5728         * tree.h (lshift_double, rshift_double):
5729         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
5730         * fold-const.c (fold_convert_const_int_from_real,
5731         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
5732         (lshift_double): Change type of arith argument to bool.
5733         (rshift_double): Change type of arith argument to bool. Correct
5734         comment.
5735         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5736
5737 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
5738
5739         PR target/21803
5740         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
5741         at the start and end of the then/else blocks, and omit them from the
5742         conversion.
5743         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
5744         argument; all callers changed.  Pass zero to old_insns_match_p instead.
5745         (flow_find_head_matching_sequence): New function.
5746         (old_insns_match_p): Check REG_EH_REGION notes for calls.
5747         * basic-block.h (flow_find_cross_jump,
5748         flow_find_head_matching_sequence): Declare functions.
5749
5750 2010-04-14  Jason Merrill  <jason@redhat.com>
5751
5752         PR c++/36625
5753         * c-common.c (attribute_takes_identifier_p): New fn.
5754         * c-common.h: Declare it.
5755
5756 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5757
5758         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
5759         splitter condition.
5760         (*udivmod<mode>4): Ditto.
5761
5762 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5763
5764         * config/i386/i386.md (maxmin_int): Rename code attribute from
5765         maxminiprefix and update all users.
5766         (maxmin_float): Ditto from maxminfprefix.
5767         (logic): Ditto from logicprefix.
5768         (absneg_mnemonic): Ditto from absnegprefix.
5769         * config/i386/mmx.md: Update all users of maxminiprefix,
5770         maxminfprefix and logicprefix for rename.
5771         * config/i386/sse.md: Ditto.
5772         * config/i386/sync.md (sync_<code><mode>): Update for
5773         logicprefix rename.
5774
5775 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5776
5777         PR 42966
5778         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
5779         warnings converted to errors.
5780
5781 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5782
5783         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
5784         used insn_type variable.
5785         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
5786         to avoid set-but-not-used warning.
5787
5788 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5789
5790         * df-core.c (df_ref_debug): Change format string placeholder
5791         from 0x%x to %#x.
5792         * dwarf2asm.c (dw2_asm_output_data_raw,
5793         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
5794         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
5795         * dwarf2out.c (output_cfi, output_cfi_directive,
5796         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
5797         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
5798         Ditto.
5799         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
5800         * print-rtl.c (print_rtx): Ditto.
5801
5802 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5803
5804         PR middle-end/42694
5805         * builtins.c (expand_builtin_pow_root): New function to expand pow
5806         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
5807         series of sqrt and cbrt calls under -ffast-math.
5808         (expand_builtin_pow): Call it.
5809
5810 2010-04-14  Michael Matz  <matz@suse.de>
5811
5812         PR tree-optimization/42963
5813         * tree-cfg.c (touched_switch_bbs): New static variable.
5814         (group_case_labels_stmt): New function broken out from ...
5815         (group_case_labels): ... here, use the above.
5816         (start_recording_case_labels): Allocate touched_switch_bbs.
5817         (end_recording_case_labels): Deallocate it, call
5818         group_case_labels_stmt.
5819         (gimple_redirect_edge_and_branch): Remember index of affected BB.
5820
5821 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5822
5823         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
5824         from insn template.
5825
5826 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5827
5828         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
5829
5830 2010-04-13  Jan Hubicka  <jh@suse.cz>
5831
5832         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
5833         of optimized out static functions.
5834         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
5835         cost computation.  Also sanity check for overflows.
5836         (update_caller_keys): Update cgraph_edge_badness call; properly
5837         update fibheap and sanity check that it is up to date.
5838         (add_new_edges_to_heap): Update cgraph_edge_badness.
5839         (cgraph_decide_inlining_of_small_function): Likewise;
5840         add sanity checking that badness in heap is up to date;
5841         improve dumping of reason; Update badness of calls to the
5842         offline copy of function currently inlined; dump badness
5843         of functions not inlined because of unit growth limits.
5844
5845 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
5846
5847         PR middle-end/32628
5848         * c-common.c (pointer_int_sum): Disregard overflow that occured only
5849         because of sign-extension change when converting to sizetype here...
5850         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
5851
5852         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
5853         the folding to constants.  Remove redundant final conversion.
5854         (fold_binary) <associate>: Do not associate if the re-association of
5855         constants alone overflows.
5856         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
5857         to the end of the list.
5858         (multiple_of_p) <COND_EXPR>: New case.
5859
5860 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5861
5862         * opt-functions.awk (opt_sanitized_name): New.
5863         (opt_enum): New.
5864         * optc-gen.awk: Use it
5865         * opth-gen.awk: Use it.
5866
5867 2010-04-13  Martin Jambor  <mjambor@suse.cz>
5868
5869         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
5870         (sra_modify_assign): Delete stmts loading dead data even if racc has no
5871         children.  Call replace_uses_with_default_def_ssa_name to handle
5872         SSA_NAES on lhs.
5873
5874 2010-04-13  Michael Matz  <matz@suse.de>
5875
5876         PR middle-end/43730
5877         * builtins.c (expand_builtin_interclass_mathfn): Also create
5878         a register if the predicate doesn't match.
5879
5880 2010-04-13  Diego Novillo  <dnovillo@google.com>
5881
5882         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
5883         * c-pch.c: Include timevar.h.
5884         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
5885         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
5886         * ggc-common.c: Include timevar.h.
5887         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
5888         * timevar.def (TV_PCH_SAVE): Define.
5889         (TV_PCH_CPP_SAVE): Define.
5890         (TV_PCH_PTR_REALLOC): Define.
5891         (TV_PCH_PTR_SORT): Define.
5892         (TV_PCH_RESTORE): Define.
5893         (TV_PCH_CPP_RESTORE): Define.
5894
5895 2010-04-13  Michael Matz  <matz@suse.de>
5896
5897         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
5898         into MINUS_EXPRs.
5899         (can_reassociate_p): New function.
5900         (break_up_subtract_bb, reassociate_bb): Use it.
5901
5902 2010-04-13  Richard Guenther  <rguenther@suse.de>
5903
5904         PR bootstrap/43737
5905         * builtins.c (c_readstr): Fix assert.
5906
5907 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
5908
5909         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
5910         when generating cltd insn.
5911
5912         (*ashl<mode>3_1): Remove special handling for register operand 2.
5913         (*ashlsi3_1_zext): Ditto.
5914         (*ashlhi3_1): Ditto.
5915         (*ashlhi3_1_lea): Ditto.
5916         (*ashlqi3_1): Ditto.
5917         (*ashlqi3_1_lea): Ditto.
5918         (*<shiftrt_insn><mode>3_1): Ditto.
5919         (*<shiftrt_insn>si3_1_zext): Ditto.
5920         (*<shiftrt_insn>qi3_1_slp): Ditto.
5921         (*<rotate_insn><mode>3_1): Ditto.
5922         (*<rotate_insn>si3_1_zext): Ditto.
5923         (*<rotate_insn>qi3_1_slp): Ditto.
5924
5925 2010-04-13  Richard Guenther  <rguenther@suse.de>
5926
5927         * tree-ssa-structalias.c (callused_id): Remove.
5928         (call_stmt_vars): New.
5929         (get_call_vi): Likewise.
5930         (lookup_call_use_vi): Likewise.
5931         (lookup_call_clobber_vi): Likewise.
5932         (get_call_use_vi): Likewise.
5933         (get_call_clobber_vi): Likewise.
5934         (make_transitive_closure_constraints): Likewise.
5935         (handle_const_call): Adjust to do per-call call-used handling.
5936         (handle_pure_call): Likewise.
5937         (find_what_var_points_to): Remove general callused handling.
5938         (init_base_vars): Likewise.
5939         (init_alias_vars): Initialize call_stmt_vars.
5940         (compute_points_to_sets): Process call-used and call-clobbered
5941         vars for call statements.
5942         (delete_points_to_sets): Free call_stmt_vars.
5943
5944 2010-04-13  Richard Guenther  <rguenther@suse.de>
5945
5946         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5947         Only add RW dependence for dependence distance zero.
5948         Adjust maximal vectorization factor according to dependences.
5949         Move alignment handling ...
5950         (vect_find_same_alignment_drs): ... here.  New function.
5951         (vect_analyze_data_ref_dependences): Adjust.
5952         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
5953         (vect_analyze_data_refs): Adjust minimal vectorization factor
5954         according to data references.
5955         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
5956         dependences before determining the vectorization factor.
5957         Analyze alignment after determining the vectorization factor.
5958         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
5959         dependences before alignment.
5960         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
5961         Adjust prototype.
5962         (vect_analyze_data_refs): Likewise.
5963         (MAX_VECTORIZATION_FACTOR): New define.
5964
5965 2010-04-13  Duncan Sands  <baldrick@free.fr>
5966
5967         * except.h (lang_eh_type_covers): Remove.
5968         * except.c (lang_eh_type_covers): Likewise.
5969
5970 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5971             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5972
5973         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
5974         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
5975         UNITS_PER_LONG where it is ABI relevant.
5976         (s390_return_addr_rtx): Likewise.
5977         (s390_back_chain_rtx): Likewise.
5978         (s390_frame_area): Likewise.
5979         (s390_frame_info): Likewise.
5980         (s390_initial_elimination_offset): Likewise.
5981         (save_gprs): Likewise.
5982         (s390_emit_prologue): Likewise.
5983         (s390_emit_epilogue): Likewise.
5984         (s390_function_arg_advance): Likewise.
5985         (s390_function_arg): Likewise.
5986         (s390_va_start): Likewise.
5987         (s390_gimplify_va_arg): Likewise.
5988         (s390_function_profiler): Likewise.
5989         (s390_optimize_prologue): Likewise.
5990         (s390_rtx_costs): Likewise.
5991         (s390_secondary_reload): Likewise.
5992         (s390_promote_function_mode): Likewise.
5993         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
5994         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
5995         registers available.
5996         (s390_unwind_word_mode): New function.
5997         (s390_function_value): Split 64 bit values into register pair if
5998         used as return value.
5999         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6000         function call parameters.  Handle parallels.
6001         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6002         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6003         (DWARF_CIE_DATA_ALIGNMENT): New macro.
6004         (s390_expand_setmem): Remove unused variable src_addr.
6005         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6006         deal with 64 bit registers.
6007         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6008         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6009         (UNITS_PER_LONG): New macro.
6010         * libjava/include/s390-signal.h: Define extended ucontext
6011         structure containing the upper halfs of the 64 bit registers.
6012
6013 2010-04-13  Simon Baldwin  <simonb@google.com>
6014
6015         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6016
6017 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6018
6019         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6020         rvalue on the RHS if the LHS is of a non-renamable type.
6021         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6022
6023 2010-04-13  Matthias Klose  <doko@ubuntu.com>
6024
6025         * gcc.c (cc1_options): Handle -iplugindir before processing
6026         the cc1 spec. Only add -iplugindir once.
6027         (cpp_unique_options): Add -iplugindir option if -fplugin* options
6028         found.
6029         * common.opt (iplugindir): Remove `Separate' property, initialize.
6030         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6031         option.
6032         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6033         (distclean): Remove plugin dir.
6034         * doc/invoke.texi: Document -iplugindir.
6035
6036 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
6037
6038         * doc/plugins.texi (Loading Plugins): Document short
6039         -fplugin=foo option.
6040         (Plugin API): Mention default_plugin_dir_name function.
6041
6042         * gcc.c (find_file_spec_function): Add new declaration.
6043         (static_spec_func): Use it for "find-file".
6044         (find_file_spec_function): Add new function.
6045         (cc1_options): Add -iplugindir option if -fplugin* options found.
6046
6047         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6048
6049         * plugin.c (add_new_plugin): Updated comment, and handle short
6050         plugin name.
6051         (default_plugin_dir_name): Added new function.
6052
6053         * common.opt (iplugindir): New option to set the plugin directory.
6054
6055 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
6056
6057         * config/i386/i386.md (any_rotate): New code iterator.
6058         (rotate_insn): New code attribute.
6059         (rotate): Ditto.
6060         (SWIM124): New mode iterator.
6061         (<rotate_insn>ti3): New expander.
6062         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6063         any_rotate code iterator.
6064         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6065         using any_rotate code iterator and SWIM124 mode iterator.
6066         (ix86_rotlti3): New insn_and_split pattern.
6067         (ix86_rotrti3): Ditto.
6068         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6069         ix86_rotl{di,ti}3 patterns.
6070         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6071         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6072         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6073         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6074         code iterator and SWI mode iterator.
6075         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6076         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6077         code iterator.
6078         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6079         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6080         (bswap rotatert splitter): Add splitter.
6081         (bswap splitter): Macroize splitter using any_rotate code iterator.
6082         Add insn predicate to split only for TARGET_USE_XCHGB or when
6083         optimizing function for size.
6084
6085 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6086
6087         * config/pa/pa.c (emit_move_sequence): Remove use of
6088         deleted variable flag_argument_noalias.
6089
6090 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6091
6092         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6093         configurations.
6094         Add to unsupported targets list.
6095         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6096         sparc*-sun-solaris2.[567]* from target lists.
6097         * configure: Regenerate.
6098         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6099         removal.
6100         Remove Solaris 7 patch references.
6101         (Specific, sparc-sun-solaris2.7): Removed.
6102         (sparc-sun-solaris2*): Update Solaris 7 example.
6103         (sparc64-*-solaris2*): Likewise.
6104
6105 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6106
6107         * config.build (alpha*-dec-osf4*): Remove.
6108         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6109         of obsolete configurations.
6110         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6111         support.
6112         * config/alpha/t-osf4: Renamed to ...
6113         * config/alpha/t-osf5: ... this.
6114         * config/alpha/osf.h: Renamed to ...
6115         * config/alpha/osf5.h: ... this.
6116         Merged old osf5.h contents.
6117         Update comments.
6118         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6119         (EXTRA_SPECS): Removed.
6120         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6121         reflect removal of Tru64 UNIX V4.0/V5.0 support.
6122         Document that.
6123
6124 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6125
6126         * doc/contrib.texi (Contributors, Rainer Orth): Update.
6127
6128 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
6129
6130         PR/43702
6131         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6132         __thiscall convention.
6133
6134 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6135
6136         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6137         orig_base.
6138         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6139
6140 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6141
6142         * function.c (assign_parms_initialize_all): Add unused attribute
6143         to fntype.
6144
6145 2010-04-12  Richard Guenther  <rguenther@suse.de>
6146
6147         * gsstruct.def (GSS_CALL): New.
6148         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6149         * gimple.h: Include tree-ssa-alias.h.
6150         (struct gimple_statement_call): New.
6151         (union gimple_statement_struct_d): Add gimple_call member.
6152         (gimple_call_reset_alias_info): Declare.
6153         (gimple_call_use_set): New function.
6154         (gimple_call_clobber_set): Likewise.
6155         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6156         * gimple.c (gimple_call_reset_alias_info): New function.
6157         (gimple_build_call_1): Call it.
6158         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6159         * tree-inline.c (remap_gimple_stmt): Likewise.
6160         (expand_call_inline): Remove callused handling.
6161         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6162         * tree-dfa.c (dump_variable): Likewise.
6163         * tree-parloops.c (parallelize_loops): Likewise.
6164         * tree-ssa.c (init_tree_ssa): Likewise.
6165         (delete_tree_ssa): Likewise.
6166         * tree-flow-inline.h (is_call_used): Remove.
6167         * tree-flow.h (struct gimple_df): Remove callused member.
6168         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6169         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6170         (ref_maybe_used_by_call_p_1): Simplify.
6171         (call_may_clobber_ref_p_1): Likewise.
6172         * tree-ssa-structalias.c (compute_points_to_sets): Set
6173         the call stmt used and clobbered sets.
6174         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6175         (find_tail_calls): Verify the tail call.
6176
6177 2010-04-12  Richard Guenther  <rguenther@suse.de>
6178
6179         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6180         single-iteration always-inline inlining.
6181         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6182         (cgraph_decide_inlining): Do not handle always-inline specially.
6183         (try_inline): Remove always-inline cycle detection special case.
6184         Do not recurse on always-inlines.
6185         (cgraph_early_inlining): Do not iterate if not optimizing.
6186         (cgraph_gate_early_inlining): remove.
6187         (pass_early_inline): Run unconditionally.
6188         (gate_cgraph_decide_inlining): New function.
6189         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
6190         not inlining or optimizing.
6191         (cgraph_decide_inlining_of_small_functions): Also consider
6192         always-inline functions.
6193         (cgraph_default_inline_p): Return true for nodes which should
6194         disregard inline limits.
6195         (estimate_function_body_sizes): Assume zero size and time for
6196         nodes which are marked as disregarding inline limits.
6197         (cgraph_decide_recursive_inlining): Do not perform recursive
6198         inlining on always-inline nodes.
6199
6200 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
6201
6202         PR bootstrap/43699
6203         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6204         for exprs satisfying handled_component_p.
6205
6206 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
6207
6208         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6209         non-constant aggregate elements.
6210
6211         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6212         is a real initialization.
6213
6214 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
6215
6216         PR c/36774
6217         * c-decl.c (start_function): Move forward check for nested function.
6218
6219 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6220
6221         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6222         * config/sh/sh.c: Include reload.h.
6223         (sh_legitimize_reload_address): New.
6224         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6225         sh_legitimize_reload_address.
6226
6227 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6228
6229         * config/sh/sh.md (*movqi_pop): New insn pattern.
6230         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6231
6232 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6233
6234         * config/i386/i386.md (any_shiftrt): New code iterator.
6235         (shiftrt_insn): New code attribute.
6236         (shiftrt): Ditto.
6237         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6238         using any_shiftrt code iterator.
6239         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6240         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6241         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6242         pattern from corresponding peephole2 patterns.
6243         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6244         using any_shiftrt code iterator.
6245         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6246         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6247         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6248         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6249         *{ashr,lshr}<mode>3_cmp_zext.
6250         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6251
6252 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6253
6254         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6255         scratch register.
6256         (*lshr<mode>3_cconly): Ditto.
6257
6258 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6259
6260         * config/i386/i386.md (lshr<mode>3): Macroize expander from
6261         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6262         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6263         pattern from *lshr{di,ti}3_1 and corresponding splitters using
6264         DWI mode iterator.
6265         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6266         from corresponding peephole2 patterns.
6267         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6268         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6269         and *lshrdi3_1_rex64 using SWI mode iterator.
6270         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6271         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6272         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6273         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6274         and *lshrdi3_cmp_rex64 using SWI mode iterator.
6275         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6276         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6277         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6278         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6279         SWI mode iterator.
6280
6281 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
6282
6283         * config/i386/i386.md (ashr<mode>3): Macroize expander from
6284         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6285         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6286         pattern from *ashr{di,ti}3_1 and corresponding splitters using
6287         DWI mode iterator.
6288         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6289         from corresponding peephole2 patterns.
6290         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6291         (ashrsi3_cvt): Rename from ashrsi3_31.
6292         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6293         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6294         and x86_64_shift_adj_3 using SWI48 mode iterator.
6295         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6296         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6297         and *ashrdi3_1_rex64 using SWI mode iterator.
6298         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6299         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6300         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6301         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6302         and *ashrdi3_cmp_rex64 using SWI mode iterator.
6303         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6304         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6305         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6306         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6307         SWI mode iterator.
6308         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6309         * config/i386/i386.c (ix86_split_ashr): Update for renamed
6310         x86_shift<mode>_adj_3 expanders.
6311
6312 2010-04-10  Wei Guozhi  <carrot@google.com>
6313
6314         PR target/42601
6315         * config/arm/arm.c (arm_pic_static_addr): New function.
6316         (legitimize_pic_address): Call arm_pic_static_addr when it detects
6317         a static symbol.
6318         (arm_output_addr_const_extra): Output expression for new pattern.
6319         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6320
6321 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
6322
6323         * ira-costs.c (record_reg_classes): Ignore alternatives that are
6324         not enabled.
6325
6326         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6327         * web.c: Include "insn-config.h" and "recog.h".
6328         (union_match_dups): New function.
6329         (web_main): Call it.
6330         (union_defs): Don't try to recognize match_dups.
6331
6332         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6333         if doing so would replace the entire pattern.
6334
6335 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6336
6337         PR target/43707
6338         PR target/43709
6339         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6340         and splitter pattern.  Change splitter operand 1 predicate to
6341         nonmemory_operand.
6342
6343 2010-04-09  Martin Jambor  <mjambor@suse.cz>
6344
6345         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6346         lattices are addresses of CONST_DECLs with the same initial value.
6347         (ipcp_print_all_lattices): Print values of CONST_DECLs.
6348         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6349
6350 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
6351             Bernd Schmidt  <bernds@codesourcery.com>
6352
6353         * loop-invariant.c (replace_uses): New static function.
6354         (move_invariant_reg): Use it to ensure we can replace the uses.
6355
6356 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6357
6358         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6359         function template.
6360         (picochip_override_options): Enable section anchors only above -O1.
6361         (picochip_reorg): Fixed a couple of build warnings.
6362
6363 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6364
6365         * configure.ac (plugin -rdynamic test): Log result.
6366         * configure: Regenerate.
6367         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6368         (RDYNAMIC_SPEC): Define.
6369         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6370
6371 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6372
6373         * configure.ac: Determine Sun ld version numbers.
6374         (comdat_group): Restrict GNU ld version checks to gld.
6375         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6376         (enable_comdat): Support --enable-comdat.
6377         * configure: Regenerate.
6378         * doc/install.texi (Configuration): Document --enable-comdat.
6379
6380 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6381
6382         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
6383         * config/sol2-gld.h: ... here.
6384         * config.gcc (sparc*-*-solaris2*): Reflect this.
6385         (i[34567]86-*-solaris2*): Use it.
6386
6387 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
6388
6389         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6390         setup_clocks_p.
6391         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6392
6393 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6394
6395         PR 42965
6396         * diagnostic.c (diagnostic_initialize): Initialize
6397         some_warnings_are_errors.
6398         (diagnostic_finish): New.
6399         (diagnostic_action_after_output): Call it before exiting.
6400         (diagnostic_report_diagnostic): Do not print message here. Set
6401         some_warnings_are_errors.
6402         * diagnostic.h (diagnostic_context): Delete
6403         issue_warnings_are_errors_message. Add some_warnings_are_errors.
6404         (diagnostic_finish): Declare.
6405         * toplev.c (toplev_main): Call it before exit.
6406
6407 2010-04-09  Jason Merrill  <jason@redhat.com>
6408
6409         PR c++/42623
6410         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6411         for incomplete type.
6412
6413         PR c++/41788
6414         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6415         based on a warning flag.
6416
6417 2010-04-09  Richard Guenther  <rguenther@suse.de>
6418
6419         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6420
6421 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
6422
6423         PR bootstrap/43684
6424         * varasm.c (default_assemble_visibility): Wrap vars that are
6425         set, but unused, by targets without GAS.
6426         * config/rs6000/rs6000.c (paired_emit_vector_compare):
6427         Remove set, but unused, vars.
6428         (rs6000_legitimize_tls_address): Likewise.
6429         (altivec_expand_dst_builtin): Likewise.
6430         * config/darwin.c (machopic_classify_symbol): Likewise.
6431         (machopic_indirection_name): Likewise.
6432
6433 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6434
6435         * config/i386/i386.md (DWI): New mode iterator.
6436         (S): New mode attribute.
6437         (shift_operand): Ditto.
6438         (shift_immediate_operand): Ditto.
6439         (ashl_input_operand): Ditto.
6440         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6441         using SDWIM mode iterator.
6442         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6443         pattern from *ashl{di,ti}3_1 and corresponding splitters using
6444         DWI mode iterator.
6445         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6446         from corresponding peephole2 patterns.
6447         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6448         and x86_64_shift_adj_1 using SWI48 mode iterator.
6449         (x86_shift<mode>_adj_2): Ditto.
6450         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6451         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6452         using SWI48 mode iterator.
6453         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6454         *ashldi3_cmp_rex64 using SWI mode iterator.
6455         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6456         *ashldi3_cconly_rex64 using SWI mode iterator.
6457         * config/i386/i386.c (ix86_split_ashl): Update for renamed
6458         x86_shift<mode>_adj_{1,2}.
6459         (ix86_split_ashr): Ditto.
6460         (ix86_split_lshr): Ditto.
6461
6462 2010-04-09  Richard Guenther  <rguenther@suse.de>
6463
6464         * target.h (builtin_conversion): Pass in input and output types.
6465         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6466         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6467         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6468         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6469
6470         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6471         Handle AVX modes.
6472         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6473
6474 2010-04-09  Richard Guenther  <rguenther@suse.de>
6475
6476         PR target/43152
6477         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6478
6479 2010-04-09  Richard Guenther  <rguenther@suse.de>
6480
6481         * tree-vectorizer.h (struct _stmt_vec_info): Document
6482         that vectype is the type of the LHS.
6483         (supportable_widening_operation, supportable_narrowing_operation):
6484         Get both input and output vector types as arguments.
6485         (vect_is_simple_use_1): Declare.
6486         (get_same_sized_vectype): Likewise.
6487         * tree-vect-loop.c (vect_determine_vectorization_factor):
6488         Set STMT_VINFO_VECTYPE to the vector type of the def.
6489         (vectorizable_reduction): Adjust.
6490         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6491         Adjust.  Specify the output vector type.
6492         (vect_pattern_recog_1): Adjust.
6493         * tree-vect-stmts.c (get_same_sized_vectype): New function.
6494         (vectorizable_call): Adjust.
6495         (vectorizable_conversion): Likewise.
6496         (vectorizable_operation): Likewise.
6497         (vectorizable_type_demotion): Likewise.
6498         (vectorizable_type_promotion): Likewise.
6499         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6500         the def.
6501         (vect_is_simple_use_1): New function.
6502         (supportable_widening_operation): Get both input and output
6503         vector types.
6504         (supportable_narrowing_operation): Likewise.
6505         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6506
6507 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
6508
6509         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6510         __thiscall and _thiscall as predefined macros.
6511         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6512         thiscall attribute handling.
6513         (ix86_comp_type_attributes): Likewise.
6514         (ix86_function_regparm): Likewise.
6515         (ix86_return_pops_args): Likewise.
6516         (init_cumulative_args): Likewise.
6517         (find_drap_reg): Likewise.
6518         (ix86_static_chain): Likewise.
6519         (x86_this_parameter): Likewise.
6520         (x86_output_mi_thunk): Likewise.
6521         (ix86_attribute_table): Add description for thiscall attribute.
6522         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6523         * doc/extend.texi: Add documentation for thiscall.
6524
6525 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6526
6527         PR c++/28584
6528         * c.opt (Wint-to-pointer-cast): Available in C++.
6529         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6530
6531 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6532
6533         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6534         * calls.c (expand_call): Pass the function type to aggregate_value_p.
6535         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6536         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
6537         function type instead.  Reorder and simplify checks.
6538
6539         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6540
6541 2010-04-08  Jing Yu  <jingyu@google.com>
6542             Zdenek Dvorak  <ook@ucw.cz>
6543
6544         PR tree-optimization/42720
6545         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6546         loop unswitch conditions here from ...
6547         (tree_unswitch_single_loop): ... here.
6548
6549 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
6550
6551         * tree-if-conv.c: Fix comments and simplify logic.
6552
6553 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
6554
6555         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6556         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
6557         (main_tree_if_conversion): Update call to tree_if_conversion.
6558
6559 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6560
6561         PR 42485
6562         * doc/invoke.texi (-b,-V): Delete.
6563         * doc/tm.texi: Do not mention -b.
6564         * gcc.c (display_help): Delete -b and -V.
6565         (process_command): Delete -b and -V.
6566         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6567
6568 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
6569             Wolfgang Gellerich  <gellerich@de.ibm.com>
6570
6571         Implement target hook for loop unrolling
6572         * target.h (loop_unroll_adjust): Add a new target hook function.
6573         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6574         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6575         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6576         (s390_loop_unroll_adjust): Implement the new target hook for s390.
6577         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6578         target hook.
6579         (decide_unroll_stupid): Likewise.
6580
6581 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6582
6583         PR target/43643
6584         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6585
6586 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6587
6588         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6589         (Specific, *-*-solaris2*): Likewise.
6590         Don't prefer Sun as over GNU as.
6591
6592 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
6593
6594         * config/s390/s390.c (override_options): Adjust the z10 defaults
6595         for max-unroll-times, max-completely-peeled-insns
6596         and max-completely-peel-times.
6597
6598 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6599
6600         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6601         instructions for z10.
6602         (s390_expand_setmem): Likewise.
6603         (s390_expand_cmpmem): Likewise.
6604
6605 2010-04-08  Richard Guenther  <rguenther@suse.de>
6606
6607         PR tree-optimization/43679
6608         * tree-ssa-pre.c (eliminate): Only propagate copies.
6609
6610 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
6611
6612         PR bootstrap/43681
6613         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
6614         set but not used variable warning.
6615
6616 2010-04-08  Wei Guozhi  <carrot@google.com>
6617
6618         PR target/41653
6619         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6620         (arm_size_rtx_costs): Call the new function when optimized for size.
6621
6622 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
6623
6624         PR debug/43670
6625         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6626         op0 is not a MEM, just return NULL instead of assertion
6627         failure.
6628         (discover_nonconstant_array_refs): Don't walk debug stmts.
6629
6630 2010-04-08  Doug Kwan  <dougkwan@google.com>
6631
6632         * configure.ac: Recognize gold and do not use its version number
6633         to test ld features.
6634         * configure: Regenerate.
6635
6636 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
6637
6638         PR middle-end/40815
6639         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6640         (negate_value): Move code to push elements to broken_up_substracts ...
6641         (eliminate_plus_minus_pair): ... here.  Push operands that have no
6642         negative pair to plus_negates.
6643         (repropagate_negates, init_reassoc, fini_reassoc): Update.
6644
6645 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6646
6647         * doc/install.texi (Configuration): Move description of
6648         --enable-lto, --with-libelf*, --enable-gold from Java section to
6649         general section.
6650
6651         * doc/generic.texi (Working with declarations)
6652         (Function Properties, C and C++ Trees): Fix typos.
6653         * doc/sourcebuild.texi (Top Level): Likewise.
6654
6655 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
6656
6657         PR c/18624
6658         * tree.h (DECL_READ_P): Define.
6659         (struct tree_decl_common): Add decl_read_flag.
6660         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6661         a set but not used warning.
6662         (merge_decls): Merge DECL_READ_P flag.
6663         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6664         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6665         * c-common.c (handle_used_attribute, handle_unused_attribute):
6666         Likewise.
6667         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6668         New prototypes.
6669         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6670         New functions.
6671         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6672         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6673         c_parser_binary_expression, c_parser_cast_expression,
6674         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6675         Call default_function_array_read_conversion instead of
6676         default_function_array_conversion where needed.
6677         (c_parser_unary_expression, c_parser_conditional_expression,
6678         c_parser_postfix_expression_after_primary, c_parser_initelt):
6679         Likewise.  Call mark_exp_read where needed.
6680         (c_parser_statement_after_labels, c_parser_asm_operands,
6681         c_parser_typeof_specifier, c_parser_sizeof_expression,
6682         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
6683         where needed.
6684         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6685         New.
6686         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6687         (warn_unused_but_set_parameter): Default to warn_unused
6688         && extra_warnings.
6689         * doc/invoke.texi: Document -Wunused-but-set-variable and
6690         -Wunused-but-set-parameter.
6691
6692         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
6693         used count variable.
6694         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
6695         when operandN variables aren't used in the body of the expander
6696         or splitter.
6697         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
6698         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
6699         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
6700         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
6701         FOR_EACH_IMM_USE_ON_STMT): Likewise.
6702         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
6703         * tree.c (PROCESS_ARG): Likewise.
6704
6705 2010-04-07  Simon Baldwin  <simonb@google.com>
6706
6707         * diagnostic.h (diagnostic_override_option_index): New macro to
6708         set a diagnostic's option_index.
6709         * c-tree.h (c_cpp_error): Add warning reason argument.
6710         * opts.c (_warning_as_error_callback): New.
6711         (register_warning_as_error_callback): Store callback for
6712         warnings enabled via enable_warning_as_error.
6713         (enable_warning_as_error): Call callback, minor code tidy.
6714         * opts.h (register_warning_as_error_callback): Declare.
6715         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
6716         response to -Werror=.
6717         (c_common_init_options): Register warning_as_error_callback in opts.c.
6718         * common.opt: Add -Wno-cpp option.
6719         * c-common.c (struct reason_option_codes_t): Map cpp warning
6720         reason codes to gcc option indexes.
6721         * (c_option_controlling_cpp_error): New function, lookup the gcc
6722         option index for a cpp warning reason code.
6723         * (c_cpp_error): Add warning reason argument, call
6724         c_option_controlling_cpp_error for diagnostic_override_option_index.
6725         * doc/invoke.texi: Document -Wno-cpp.
6726
6727 2010-04-07  Richard Guenther  <rguenther@suse.de>
6728
6729         * ipa-reference.c (mark_load): Use get_base_address.
6730         (mark_store): Likewise.
6731
6732         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
6733         inserting GIMPLE_NOPs into the IL.
6734         * tree-ssa-structalias.c (get_constraint_for_component_ref):
6735         Explicitly strip handled components and indirect references.
6736
6737         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
6738         folding address expressions.
6739         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
6740         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
6741         operand_equal_p to compare decls.
6742         (ptr_deref_may_alias_decl_p): Likewise.
6743         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
6744         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
6745         Handle reversed comparison ops.
6746         * tree-sra.c (asm_visit_addr): Use get_base_address.
6747         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
6748         * ipa-reference.c (mark_address): Use get_base_address.
6749
6750 2010-04-07  Richard Guenther  <rguenther@suse.de>
6751
6752         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
6753         Propagate constants everywhere.
6754
6755 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
6756
6757         PR debug/43516
6758         * tree.c (MAX_INT_CACHED_PREC): Define.
6759         (nonstandard_integer_type_cache): New array.
6760         (build_nonstandard_integer_type): Cache results for precision
6761         <= MAX_INT_CACHED_PREC.
6762
6763 2010-04-07  Richard Guenther  <rguenther@suse.de>
6764
6765         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
6766         -fargument-noalias-global, -fargument-noalias-anything): Remove.
6767         * common.opt: Likewise.
6768         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
6769         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
6770         (nonoverlapping_memrefs_p): Likewise.
6771         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6772         * opts.c (common_handle_option): Handle OPT_fargument_alias,
6773         OPT_fargument_noalias, OPT_fargument_noalias_anything and
6774         OPT_fargument_noalias_global for backward compatibility.
6775
6776 2010-04-07  Richard Guenther  <rguenther@suse.de>
6777
6778         PR tree-optimization/43270
6779         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
6780         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
6781         * tree-ssa-pre.c (phi_translate_1): Adjust.
6782         (fully_constant_expression): Split out vn_reference handling to ...
6783         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
6784         Fold reads from constant strings.
6785         (vn_reference_lookup): Handle fully constant references.
6786         (vn_reference_lookup_pieces): Likewise.
6787         * Makefile.in (expmed.o-warn): Add -Wno-error.
6788
6789 2010-04-07  Martin Jambor  <mjambor@suse.cz>
6790
6791         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
6792
6793 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
6794
6795         PR driver/41594
6796         * gcc.c: Add -static-libstdc++ to list of recognized options.
6797
6798 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6799
6800         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
6801
6802 2010-04-07  Richard Guenther  <rguenther@suse.de>
6803
6804         PR middle-end/42617
6805         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
6806         bases build simple mem attributes to retain points-to information.
6807
6808 2010-04-07  Richard Guenther  <rguenther@suse.de>
6809
6810         PR middle-end/42617
6811         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
6812         preserve points-to related information.
6813
6814 2010-04-07  Richard Guenther  <rguenther@suse.de>
6815
6816         PR middle-end/42617
6817         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
6818         discard plain indirect references.
6819         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
6820         * tree.c (tree_nop_conversion): Likewise.
6821
6822 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
6823
6824         PR debug/43628
6825         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
6826
6827 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
6828
6829         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
6830         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
6831
6832 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
6833
6834         * tree-if-conv.c: Fix indentation and comments.
6835
6836 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
6837
6838         * tree-if-conv.c: Sort static functions in topological order.
6839
6840 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
6841
6842         * tree-if-conv.c: Fix indentation and comments.
6843
6844 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6845
6846         PR middle-end/43519
6847         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
6848         lang_hooks.types.type_for_size instead of
6849         build_nonstandard_integer_type.
6850         When converting an unsigned type to signed, double its precision.
6851         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
6852         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
6853         (graphite_create_new_loop_guard): When ub + 1 wraps around,
6854         use lb <= ub.
6855
6856 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6857
6858         PR middle-end/43519
6859         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6860         POINTER_PLUS_EXPR for pointer types.
6861
6862 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6863
6864         PR middle-end/43519
6865         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
6866         * graphite-clast-to-gimple.c: Include langhooks.h.
6867         (max_signed_precision_type): New.
6868         (max_precision_type): Takes two types as arguments.
6869         (precision_for_value): New.
6870         (precision_for_interval): New.
6871         (gcc_type_for_interval): New.
6872         (gcc_type_for_value): New.
6873         (gcc_type_for_clast_term): New.
6874         (gcc_type_for_clast_red): New.
6875         (gcc_type_for_clast_bin): New.
6876         (gcc_type_for_clast_expr): Split up into several functions.
6877         (gcc_type_for_clast_eq): Rewritten.
6878         (compute_bounds_for_level): New.
6879         (compute_type_for_level_1): New.
6880         (compute_type_for_level): New.
6881         (gcc_type_for_cloog_iv): Removed.
6882         (gcc_type_for_iv_of_clast_loop): Rewritten.
6883         (graphite_create_new_loop): Compute the lower and upper bound types
6884         with gcc_type_for_clast_expr.
6885         (graphite_create_new_loop_guard): Same.
6886         (find_cloog_iv_in_expr): Removed.
6887         (compute_cloog_iv_types_1): Removed.
6888         (compute_cloog_iv_types): Removed.
6889         (gloog): Do not call compute_cloog_iv_types.
6890         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
6891         GBB_CLOOG_IV_TYPES.
6892         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
6893         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
6894         (GBB_CLOOG_IV_TYPES): Removed.
6895
6896 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6897
6898         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
6899         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
6900         (detect_commutative_reduction): Same.
6901
6902 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6903
6904         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
6905         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
6906         argument.
6907         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
6908         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
6909         (rewrite_commutative_reductions_out_of_ssa): Same.
6910         * passes.c (execute_function_todo): Call verify_ssa for every pass
6911         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
6912         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
6913         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
6914         with an extra argument.
6915         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
6916         verify_ssa only when the extra argument is true.
6917         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
6918         with an extra argument.
6919         (tree_transform_and_unroll_loop): Same.
6920
6921 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6922
6923         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
6924         for all the passes of the LNO having LOOP_CLOSED_SSA.
6925         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
6926         * tree-loop-distribution.c (pass_loop_distribution): Same.
6927         * tree-pass.h (TODO_verify_loops): Removed.
6928         * tree-ssa-loop.c (pass_tree_loop_init): Same.
6929         (pass_lim): Same.
6930         (pass_tree_unswitch): Same.
6931         (pass_predcom): Same.
6932         (pass_vectorize): Same.
6933         (pass_linear_transform): Same.
6934         (pass_graphite_transforms): Same.
6935         (pass_iv_canon): Same.
6936         (pass_complete_unroll): Same.
6937         (pass_complete_unrolli): Same.
6938         (pass_parallelize_loops): Same.
6939         (pass_loop_prefetch): Same.
6940         (pass_iv_optimize): Same.
6941
6942 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
6943
6944         PR middle-end/32824
6945         * passes.c (init_optimization_passes): Move pass_lim before
6946         pass_copy_prop and pass_dce_loop.
6947
6948 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
6949
6950         PR target/43667
6951         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
6952         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
6953         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
6954         MULTI_* defines for 4 argument vpermil2p* builtins.
6955
6956 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
6957
6958         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
6959         * config/i386/i386.c (x86_maybe_negate_const_int): New.
6960         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
6961         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
6962         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
6963         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
6964         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
6965         Use x86_maybe_negate_const_int to output insn mnemonic.
6966         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
6967         check from instruction predicate.  Update comments.
6968         * config/i386/sync.md (sync_add<mode>): Use
6969         x86_maybe_negate_const_int to output insn mnemonic.
6970
6971 2010-04-06  Jan Hubicka  <jh@suse.cz>
6972
6973         PR tree-optimization/42906
6974         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
6975         IGNORE_SELF argument.  Set visited_control_parents for fully
6976         processed BBs.
6977         (find_obviously_necessary_stmts): Update call of
6978         mark_control_dependent_edges_necessary.
6979         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
6980
6981 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
6982
6983         * config/i386/i386.md: Remove comment about 'e' and 'E'
6984         operand modifier.
6985
6986 2010-04-06  Richard Guenther  <rguenther@suse.de>
6987
6988         PR tree-optimization/43627
6989         * tree-vrp.c (extract_range_from_unary_expr): Widenings
6990         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
6991         not varying.
6992
6993 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
6994
6995         * BASE-VER: Change to 4.6.0.
6996
6997         PR target/43638
6998         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
6999         handling.
7000
7001 2010-04-06  Richard Guenther  <rguenther@suse.de>
7002
7003         PR middle-end/43661
7004         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7005
7006 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7007
7008         * doc/invoke.texi (Optimize Options): Document that LTO
7009         won't remove object access purely due to incompatible
7010         declarations.
7011
7012 2010-04-04  Matthias Klose  <doko@ubuntu.com>
7013
7014         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7015         Initialize variable.
7016
7017 2010-04-03  Richard Guenther  <rguenther@suse.de>
7018
7019         PR middle-end/42509
7020         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7021         require a non-NULL MEM_OFFSET.
7022
7023 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
7024
7025         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7026         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7027         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7028         config/alpha/predicates.md, config/arm/arm.md,
7029         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7030         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7031         config/darwin9.h, config/darwin.c, config/darwin.h,
7032         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7033         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7034         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7035         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7036         config/mips/mips.md, config/mn10300/mn10300.c,
7037         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7038         config/rs6000/aix.h, config/rs6000/dfp.md,
7039         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7040         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7041         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7042         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7043         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7044         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7045         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7046         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7047         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7048         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7049         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7050         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7051         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7052         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7053         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7054         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7055         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7056         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7057         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7058         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7059         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7060         opt-functions.awk, opth-gen.awk, params.def, passes.c,
7061         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7062         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7063         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7064         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7065         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7066         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7067         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7068         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7069         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7070         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7071         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7072         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7073         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7074         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7075
7076 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7077
7078         PR other/43620
7079         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7080         * aclocal.m4: Regenerate.
7081
7082 2010-04-02  Richard Guenther  <rguenther@suse.de>
7083
7084         PR tree-optimization/43629
7085         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7086         if we have seen a constant value.
7087
7088 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
7089
7090         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7091
7092 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
7093
7094         PR target/43469
7095         * arm.c (legitimize_tls_address): Adjust call to
7096         gen_tls_load_dot_plus_four.
7097         (arm_note_pic_base): New function.
7098         (arm_cannot_copy_insn_p): Use it.
7099         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7100         constraint.
7101
7102 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7103
7104         PR bootstrap/43531
7105
7106         Revert:
7107         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7108
7109         * Makefile.in ($(out_object_file)): Depend on
7110         gt-$(basename $(notdir $(out_file))).h.
7111
7112 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
7113
7114         * config.gcc (lm32-*-rtems*): Add t-lm32.
7115
7116 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
7117
7118         * config.gcc: Add lm32-*-rtems*.
7119         * config/lm32/rtems.h: New file.
7120
7121 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
7122
7123         PR target/42609
7124         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7125
7126 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
7127
7128         * dwarf2out.c (output_compilation_unit_header): For
7129         -gdwarf-4 use version 4 instead of version 3.
7130         (output_line_info): For version 4 and above emit additional
7131         maximum ops per insn header field.
7132         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7133
7134         * dwarf2out.c (is_c_family, is_java): Remove.
7135         (lower_bound_default): New function.
7136         (add_bound_info, gen_descr_array_type_die): Use it.
7137
7138 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
7139
7140         PR debug/43325
7141         * dwarf2out.c (gen_variable_die): Allow debug info for variable
7142         re-declaration when it happens in a function.
7143
7144 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
7145
7146         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7147         (cgraph_remove_function_insertion_hook): Same.
7148         (cgraph_call_function_insertion_hooks): Same.
7149
7150 2010-04-01  Richard Guenther  <rguenther@suse.de>
7151
7152         PR middle-end/43614
7153         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7154         and TREE_THIS_VOLATILE.
7155         (copy_ref_info): Likewise.
7156         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7157         * tree.c (build6_stat): Ignore side-effects of all but arg5
7158         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
7159         TARGET_MEM_REF.
7160
7161 2010-04-01  Richard Guenther  <rguenther@suse.de>
7162
7163         PR tree-optimization/43607
7164         * ipa-type-escape.c (check_call): Do not access non-existing
7165         arguments.
7166
7167 2010-04-01  Richard Guenther  <rguenther@suse.de>
7168
7169         PR middle-end/43602
7170         Revert
7171         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7172                     Jack Howarth <howarth@bromo.med.uc.edu>
7173
7174         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7175         variables TLS.
7176
7177 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7178
7179         * doc/install.texi (Prerequisites): Document libelf usability on
7180         IRIX 5/6 and Solaris 2.
7181         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7182         Update GNU as, GNU ld requirements.
7183         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7184         Document Sun Studio compiler download.
7185         Update and simplify as, ld recommendations.
7186         (Specific, *-*-solaris2.7): Note obsoletion, removal.
7187
7188 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7189
7190         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7191         with_tune_32 to pentium4.
7192
7193 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
7194
7195         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7196
7197 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7198
7199         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7200         obsoletion, removal.
7201         Update IDO URL.
7202         Document GNU as requirement.
7203         Update configure requirements.
7204         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7205         Recomment IRIX 6.5.18+.
7206         Document IDF/IDL requirement.
7207         Document GNU as requirement.
7208         Document GNU ld bootstrap failure.
7209         Remove freeware.sgi.com reference.
7210
7211 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7212
7213         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7214         UNIX V4.0, V5.0 obsoletion, removal.
7215         Remove --with-gc=simple reference.
7216         Update VM requirements during bootstrap.
7217         Remove -oldas bootstrap description.
7218         Update binutils reference.
7219         Remove comparison failure note.
7220
7221 2010-03-31  Richard Guenther  <rguenther@suse.de>
7222             Zdenek Dvorak  <ook@ucw.cz>
7223             Sebastian Pop  <sebastian.pop@amd.com>
7224
7225         PR middle-end/43464
7226         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7227         with multiple arguments.
7228         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7229
7230 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7231
7232         * graphite-dependences.c (print_pddr): Call print_pdr with an
7233         extra argument.
7234         * graphite-poly.c (debug_pdr): Add an extra argument for the
7235         verbosity level.
7236         (print_pdr): Same.
7237         (print_pbb_domain): Same.
7238         (print_pbb): Same.
7239         (print_scop_context): Same.
7240         (print_scop): Same.
7241         (print_cloog): Same.
7242         (debug_pbb_domain): Same.
7243         (debug_pbb): Same.
7244         (print_pdrs): Same.
7245         (debug_pdrs): Same.
7246         (debug_scop_context): Same.
7247         (debug_scop): Same.
7248         (debug_cloog): Same.
7249         (print_scop_params): Same.
7250         (debug_scop_params): Same.
7251         (print_iteration_domain): Same.
7252         (print_iteration_domains): Same.
7253         (debug_iteration_domain): Same.
7254         (debug_iteration_domains): Same.
7255         (print_scattering_function): Same.
7256         (print_scattering_functions): Same.
7257         (debug_scattering_function): Same.
7258         (debug_scattering_functions): Same.
7259         * graphite-poly.h (debug_pdr): Update declaration.
7260         (print_pdr): Same.
7261         (print_pbb_domain): Same.
7262         (print_pbb): Same.
7263         (print_scop_context): Same.
7264         (print_scop): Same.
7265         (print_cloog): Same.
7266         (debug_pbb_domain): Same.
7267         (debug_pbb): Same.
7268         (print_pdrs): Same.
7269         (debug_pdrs): Same.
7270         (debug_scop_context): Same.
7271         (debug_scop): Same.
7272         (debug_cloog): Same.
7273         (print_scop_params): Same.
7274         (debug_scop_params): Same.
7275         (print_iteration_domain): Same.
7276         (print_iteration_domains): Same.
7277         (debug_iteration_domain): Same.
7278         (debug_iteration_domains): Same.
7279         (print_scattering_function): Same.
7280         (print_scattering_functions): Same.
7281         (debug_scattering_function): Same.
7282         (debug_scattering_functions): Same.
7283
7284 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7285
7286         * graphite-poly.c (print_scattering_function_1): New.
7287         (print_scattering_function): Call it.
7288         (print_scop_params): Remove spaces at the end of lines.
7289         (print_cloog): New.
7290         (debug_cloog): New.
7291         * graphite-poly.h (print_cloog): Declared.
7292         (debug_cloog): Declared.
7293
7294 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7295
7296         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7297         in loop->header.
7298         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7299         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7300         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7301         to switch between adding the IV bump in loop->latch or in loop->header.
7302
7303 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7304
7305         * graphite-poly.c (print_scattering_function): Pretty print following
7306         the scoplib format.
7307         (print_pdr): Same.
7308         (print_pbb_domain): Same.
7309         (dump_gbb_cases): Same.
7310         (dump_gbb_conditions): Same.
7311         (print_pdrs): Same.
7312         (print_pbb): Same.
7313         (print_scop_params): Same.
7314         (print_scop_context): Same.
7315         (print_scop): Same.
7316         (print_pbb_body): New.
7317         (lst_indent_to): New.
7318         (print_lst): Start new lines with a #.
7319         * graphite-poly.h (pbb_bb): New.
7320         (pbb_index): Use pbb_bb.
7321         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7322         disjuncts.
7323         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7324
7325 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7326
7327         * dwarf2out.c (size_of_die): For -gdwarf-4 use
7328         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7329         and 0 instead of 1 for dw_val_class_flag.
7330         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7331         dw_val_class_range_list, dw_val_class_loc_list,
7332         dw_val_class_lineptr and dw_val_class_macptr, use
7333         DW_FORM_flag_present for dw_val_class_flag and
7334         DW_FORM_exprloc for dw_val_class_loc.
7335         (output_die): For -gdwarf-4 print dw_val_class_loc
7336         size as uleb128 instead of 1 or 2 bytes and don't print
7337         anything for dw_val_class_flag.
7338
7339         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7340         instead of cselib_lookup following by tweaking locs->setting_insn.
7341
7342         PR bootstrap/43596
7343         * cselib.c (cselib_process_insn): Clear cselib_current_insn
7344         even before returning from label, setjmp call or volatile asm
7345         handling.
7346
7347 2010-03-31  Richard Guenther  <rguenther@suse.de>
7348
7349         PR middle-end/43600
7350         * cgraphunit.c (cgraph_output_in_order): Do not allocate
7351         temporary data on stack.
7352
7353 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7354
7355         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7356         (PUSHSECTION_ASM_OP): Remove.
7357         (POPSECTION_ASM_OP): Remove.
7358         (PUSHSECTION_FORMAT): Remove.
7359         * config/sol2.h (PUSHSECTION_FORMAT): Define.
7360         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7361         * config/sol2.c (solaris_output_init_fini): Use it.
7362
7363 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7364
7365         PR 43574
7366         * opt-functions.awk (var_type_struct): Use signed char type
7367         for simple variables.
7368
7369 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7370
7371         * config/sol2.c: Include output.h.
7372         (solaris_assemble_visibility): New function.
7373         * config/t-sol2 (sol2.o): Add output.h dependency.
7374         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7375         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7376         Redefine.
7377
7378 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7379
7380         PR target/43580
7381         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7382         V2SImode or XFmode on PRE_DEC.
7383
7384         PR debug/43557
7385         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7386         BLKmode.
7387
7388 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7389
7390         PR 43562
7391         * reload.h (caller_save_initialized_p): Declare.
7392         * toplev.c (backend_init_target): Don't call
7393         init_caller_save but set caller_save_initialized_p to false.
7394         * caller-save.c (caller_save_initialized_p): Define.
7395         (init_caller_save): Check caller_save_initialized_p.
7396         * ira.c (ira): Call init_caller_save if flag_caller_saves.
7397
7398 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7399
7400         PR target/39048
7401         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7402         and soft-fp/t-softfp to tmake_file.
7403         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7404         (LIBGCC2_TF_CEXT): Define.
7405         (TF_SIZE): Define.
7406
7407 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
7408
7409         PR debug/42977
7410         * cselib.c (n_useless_values): Document handling of debug locs.
7411         (n_useless_debug_values, n_debug_values): New variables.
7412         (new_elt_loc_list): Don't add to debug values, keep count.
7413         (promote_debug_loc): New.
7414         (cselib_reset_table): Zero new variables.
7415         (entry_and_rtx_equal_p): Promote debug locs.
7416         (discard_useless_locs): Increment n_useless_debug_values for
7417         debug values.
7418         (remove_useless_values): Adjust n_useless_values and n_debug_values
7419         with n_useless_debug_values.
7420         (add_mem_for_addr): Promote debug locs.
7421         (cselib_lookup_mem): Likewise.
7422         (cselib_lookup_addr): Renamed to...
7423         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
7424         (cselib_log_lookup): ... this.  Turn into...
7425         (cselib_lookup_addr): ... new wrapper.
7426         (cselib_lookup_from_insn): New.
7427         (cselib_invalidate_regno): Increment n_useless_debug_values for
7428         debug values.
7429         (cselib_invalidate_mem): Likewise.
7430         (cselib_process_insn): Take n_deleted and n_debug_values into
7431         account to guard remove_useless_value call.
7432         (cselib_finish): Zero n_useless_debug_values.
7433         * cselib.h (cselib_lookup_from_insn): Declare.
7434         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7435         (sched_analyze_2): Likewise.
7436
7437 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
7438
7439         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7440         functions.
7441         (adjust_mems): Replace narrowing SUBREG of expression containing
7442         just PLUS, MINUS, MULT and ASHIFT of registers and constants
7443         with operations in the narrower mode.
7444
7445         PR debug/43593
7446         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7447         regs_invalidated_by_call instead all call_used_reg_set registers.
7448
7449 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
7450
7451         PR middle-end/43430
7452         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7453         pointer comparisons with types_compatible_p.
7454         * tree-vect-stmts.c (vectorizable_call): Same.
7455         (vectorizable_condition): Same.
7456
7457 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7458
7459         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7460         stack check if the mask would be zero.
7461
7462 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7463             Jack Howarth <howarth@bromo.med.uc.edu>
7464
7465         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7466         variables TLS.
7467
7468 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
7469
7470         PR other/25232
7471         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
7472         and __unordtf2.
7473         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7474         Include ___unordxf2 and ___unordtf2.
7475         * config/i386/libgcc-glibc.ver: Do not define inheritance from
7476         GCC_4.4.0 here.
7477
7478 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
7479
7480         * config/lm32/t-lm32: New file.
7481         * config.gcc: Use the above file when targetting lm32.
7482
7483 2010-03-28  Duncan Sands  <baldrick@free.fr>
7484
7485         * Makefile.in (PLUGIN_HEADERS): Add except.h.
7486
7487 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
7488
7489         PR middle-end/43431
7490         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7491         Improve vectorization cost model diagnostic.
7492
7493 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
7494
7495         PR middle-end/43436
7496         * tree-vect-data-refs.c (vect_analyze_data_refs): When
7497         compute_data_dependences_for_loop returns false, early exit
7498         and output an extra diagnostic for the failed data reference
7499         analysis.
7500
7501 2010-03-29  Richard Guenther  <rguenther@suse.de>
7502
7503         PR tree-optimization/43560
7504         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7505         (can_sm_ref_p): Treat stores to readonly locations as trapping.
7506
7507 2010-03-29  Jie Zhang  <jie@codesourcery.com>
7508
7509         PR 43564
7510         * toplev.c (process_options): Set optimization_default_node
7511         and optimization_current_node.
7512         * opts.c (decode_options): Don't set optimization_default_node
7513         and optimization_current_node.
7514
7515 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
7516
7517         * config/rtems.h: Abandon -qrtems_debug.
7518
7519 2010-03-28  Jan Hubicka  <jh@suse.cz>
7520
7521         PR tree-optimization/43505
7522         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7523         map should not be copied.
7524
7525 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7526
7527         PR middle-end/41674
7528         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7529         cdtors, set DECL_PRESERVE_P.
7530         * ipa.c (cgraph_externally_visible_p): Return true if declaration
7531         should be preseved.
7532
7533 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
7534
7535         PR tree-optimization/43528
7536         * stor-layout.c (place_field): Check that constant fits into
7537         unsigned HWI when skipping calculation of MS bitfield layout.
7538
7539 2010-03-27  Jan Hubicka  <jh@suse.cz>
7540
7541         PR middle-end/43391
7542         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7543         notice_global_symbol work.
7544
7545 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
7546
7547         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7548         instead of dwarf2out_decl.
7549         (struct var_loc_node): Remove section_label field.
7550         (dwarf2out_function_decl): New function.
7551         (dwarf2out_var_location): Don't set section_label field.
7552         (dwarf2out_begin_function): Don't empty decl_loc_table here.
7553
7554 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7555
7556         PR tree-optimization/43544
7557         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7558         First argument for builtin vectorized function hook is now a
7559         tree to be able to distinguish between machine specific and
7560         standard builtins.
7561         * targhooks.c (default_builtin_vectorized_function): Ditto.
7562         * targhooks.h (default_builtin_vectorized_function): Ditto.
7563         * target.h (struct gcc_target): Ditto.
7564         * tree-vect-stmts.c (vectorizable_function): Ditto.
7565         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7566         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7567         Ditto.
7568
7569 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
7570
7571         PR c/43381
7572         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7573         nested binding iff it is a FUNCTION_DECL.
7574         (store_parm_decls_newstyle): Pass nested=true to bind for
7575         FUNCTION_DECLs amongst parameters.
7576
7577 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
7578
7579         * var-tracking.c (vt_expand_loc_callback): Don't run
7580         cselib_expand_value_rtx_cb in dummy mode if
7581         cselib_dummy_expand_value_rtx_cb returned false.
7582
7583         * var-tracking.c (emit_note_insn_var_location): For one part
7584         notes with offset 0, don't add EXPR_LIST around the location.
7585         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7586         add_location_or_const_value_attribute): Adjust for that change.
7587
7588         PR debug/43540
7589         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7590         into first operand and location into second.
7591         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7592         dw_cfi_oprnd_loc for DW_CFA_expression.
7593         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7594         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7595         assume first argument is regnum and second argument is location.
7596
7597 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
7598
7599         PR target/42113
7600         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7601         of scratch register to DImode.  Split to DImode comparison operator.
7602         Use SImode subreg of scratch register in the multiplication.
7603         (*cmp_sadd_sidi): Ditto.
7604         (*cmp_ssub_si): Ditto.
7605         (*cmp_ssub_sidi): Ditto.
7606
7607 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
7608
7609         PR target/43524
7610         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7611         Remove invalid assert and wrong comment.
7612
7613 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
7614
7615         PR debug/43516
7616         * flags.h (final_insns_dump_p): New extern.
7617         * final.c (final_insns_dump_p): New variable.
7618         (rest_of_clean_state): Set it before -fdump-final-insns=
7619         dumping, clear afterwards.
7620         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7621         MEM_ALIAS_SET on MEMs.
7622
7623 2010-03-26  David S. Miller  <davem@davemloft.net>
7624
7625         * configure.ac: Fix sparc GOTDATA_OP bug check.
7626         * configure: Rebuild.
7627
7628 2010-03-26  Alan Modra  <amodra@gmail.com>
7629
7630         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7631
7632 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7633
7634         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7635         TLS_SECTION_ASM_FLAG.
7636
7637 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
7638
7639         PR bootstrap/43511
7640         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7641         Clear first_function_block_is_cold.
7642
7643         PR c/43385
7644         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7645         argument if the argument is truth_value_p.
7646
7647 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7648
7649         * config/rs6000/constraints.md: Update copyright year for my changes.
7650
7651         PR target/43484
7652         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7653         used in reg+reg addressing, swap registers.
7654
7655 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
7656
7657         PR debug/43293
7658         * target.h (struct gcc_target): Add code_end hook.
7659         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7660         if not yet defined.
7661         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7662         * toplev.c (compile_file): Call targetm.asm_out.code_end
7663         hook before unwind info/debug info output.
7664         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7665         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7666         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7667         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7668         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7669         * config/i386/i386.c (ix86_file_end): Renamed to...
7670         (ix86_code_end): ... this.  Make static.  Don't call
7671         file_end_indicate_exec_stack.  Emit unwind info using
7672         final_start_function/final_end_function.
7673         (darwin_x86_file_end): Remove.
7674         (TARGET_ASM_CODE_END): Define.
7675         * config/i386/i386.h (TARGET_ASM_FILE_END,
7676         NEED_INDICATE_EXEC_STACK): Don't define.
7677         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7678         (TARGET_ASM_FILE_END): Define to darwin_file_end.
7679         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7680         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7681
7682         PR target/43498
7683         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
7684         at the beginning and final_end_function at the end.
7685         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7686
7687 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7688
7689         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
7690         and Sun as TLS syntax.
7691         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
7692         * configure: Regenerate.
7693         * config.in: Regenerate.
7694         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
7695         (default_elf_asm_named_section): Use it.
7696         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
7697         (i386_output_dwarf_dtprel): Likewise.
7698         (output_addr_const_extra): Likewise.
7699         (output_pic_addr_const): Lowercase @GOTTPOFF.
7700         (output_addr_const_extra): Likewise.
7701         (output_pic_addr_const): Lowercase @GOTNTPOFF.
7702         (output_addr_const_extra): Likewise.
7703         (output_pic_addr_const): Lowercase @INDNTPOFF.
7704         (output_addr_const_extra): Likewise.
7705         (output_pic_addr_const): Lowercase @NTPOFF.
7706         (output_addr_const_extra): Likewise.
7707         (output_pic_addr_const): Lowercase @TPOFF.
7708         (output_addr_const_extra): Likewise.
7709         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
7710         (*tls_global_dynamic_64): Likewise.
7711         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
7712         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
7713
7714         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
7715         (ASM_OUTPUT_TLS_COMMON): Use it.
7716         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
7717
7718         PR target/38118
7719         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
7720         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7721         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
7722         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
7723         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7724         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
7725
7726 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7727
7728         * config/i386/i386.c (override_options): Don't accept
7729         -mtls-dialect=sun any longer.
7730         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
7731         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
7732         (*tls_local_dynamic_base_32_sun): Likewise.
7733         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7734
7735 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
7736
7737         PR debug/43508
7738         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7739         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
7740
7741         PR debug/43479
7742         * ira.c (adjust_cleared_regs): New function.
7743         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
7744
7745         PR debug/19192
7746         PR debug/43479
7747         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
7748         from gimple_block.
7749         * expr.c (expand_expr_real): Restore previous
7750         curr_insn_source_location and curr_insn_block after
7751         expand_expr_real_1 call.
7752         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
7753         instead of expand_expr_real_1.
7754
7755 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
7756
7757         PR rtl-optimization/43413
7758         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
7759         hard regs too.
7760
7761 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
7762
7763         PR target/43348
7764         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
7765         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
7766
7767 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7768
7769         * config/i386/i386.c (ix86_target_string): Add -mfma.
7770         Fix a typo in comment.
7771
7772 2010-03-22  Mike Stump  <mikestump@comcast.net>
7773
7774         PR target/23071
7775         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
7776         Don't overly align based upon packed packed fields.
7777
7778 2010-03-22  Jason Merrill  <jason@redhat.com>
7779
7780         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
7781         Use () rather than [], and move before the element type.
7782
7783 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7784
7785         * doc/configfiles.texi (Configuration Files): Removed
7786         fixinc/Makefile*, intl/Makefile.*.
7787         * doc/makefile.texi: Fixed markup. Abstract from version
7788         control system used.
7789         (Makefile): Removed obsolete gcc/java/parse.y example.
7790         * doc/sourcebuild.texi: Likewise.
7791         (Top Level): Added config, gnattools, libdecnumber, libgcc,
7792         libgomp, libssp.  Removed fastjar.
7793         (Miscellaneous Docs): Clarify location.
7794         Added COPYING3, COPYING3.LIB.
7795         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
7796
7797 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7798
7799         PR target/38085
7800         * config/i386/i386.c (x86_function_profiler)
7801         [!NO_PROFILE_COUNTERS]: Fix typo.
7802         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
7803         instead of callq.
7804
7805 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
7806             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7807
7808         * doc/sourcebuild.texi (Test Directives): Split into six
7809         subsections, with most of the current text in new subsections
7810         Directives, Selectors, and Final Actions.
7811         (Directives): Split list of test directives into multiple
7812         subsubsections.
7813         (Selectors): Describe use and syntax of selectors.
7814         (Effective-Target Keywords): Describe all existing keywords.
7815         (Add Options): Describe features for dg-add-options.
7816         (Require Support): Describe variants of dg-require-support.
7817         (Final Actions): Describe commands to use in dg-final.
7818
7819 2010-03-22  Michael Matz  <matz@suse.de>
7820
7821         PR middle-end/43475
7822         * recog.c (validate_replace_rtx_group): Replace also in
7823         REG_EQUAL and REG_EQUIV notes.
7824
7825 2010-03-22  Richard Guenther  <rguenther@suse.de>
7826
7827         PR tree-optimization/43390
7828         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
7829         sure vector extracts are type correct.
7830
7831 2010-03-22  Richard Guenther  <rguenther@suse.de>
7832
7833         PR middle-end/40106
7834         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
7835         x * sqrt (x) even when optimizing for size if the target
7836         has native support for sqrt.
7837
7838 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
7839
7840         * varasm.c (make_decl_rtl_for_debug): Also clear
7841         flag_mudflap for the duration of make_decl_rtl call.
7842
7843         PR debug/43443
7844         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
7845         locs from preserved VALUEs.
7846
7847 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7848
7849         PR middle-end/42718
7850         * pa.md (movmemsi): Set align to one if zero.
7851         (movmemdi): Likewise.
7852
7853 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
7854
7855         PR target/42321
7856         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
7857         with their corresponding prologue pushes.
7858
7859 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
7860
7861         PR target/43156
7862         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
7863         at the begining or end.
7864         (spu_expand_epilogue): Likewise.
7865
7866 2010-03-20  Richard Guenther  <rguenther@suse.de>
7867
7868         PR rtl-optimization/43438
7869         * combine.c (make_extraction): Properly zero-/sign-extend an
7870         extraction of the low part of a CONST_INT.  Also handle
7871         CONST_DOUBLE.
7872
7873 2010-03-19  Mike Stump  <mikestump@comcast.net>
7874
7875         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
7876         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
7877         (override_options): Use SUBTARGET32_DEFAULT_CPU.
7878
7879 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
7880
7881         PR c/43211
7882         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
7883         an error.
7884
7885 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
7886
7887         PR rtl-optimization/42258
7888         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
7889         use that may match DEF.
7890
7891         PR target/40697
7892         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
7893         the cost of loading the constant rather than assuming
7894         COSTS_N_INSNS (1).
7895         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
7896         outer code is AND, do the same tests as the andsi3 expander and
7897         return COSTS_N_INSNS (1) if and is cheap.
7898
7899         * optabs.c (avoid_expensive_constant): Fix formatting.
7900
7901 2010-03-19  Michael Matz  <matz@suse.de>
7902
7903         PR c++/43116
7904         * attribs.c (decl_attributes): When rebuilding a function pointer
7905         type use the same qualifiers as the original pointer type.
7906
7907 2010-03-19  Martin Jambor  <mjambor@suse.cz>
7908
7909         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
7910         and is_gimple_ip_invariant_address.
7911
7912 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7913
7914         Revert
7915         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7916
7917         * config/arm/arm.c (arm_override_options): Turn off
7918         flag_dwarf2_cfi_asm for AAPCS variants.
7919
7920 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7921
7922         PR target/43399
7923         * config/arm/arm.c (emit_multi_reg_push): Update comments.
7924         Use PRE_MODIFY instead of PRE_DEC.
7925         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
7926         (vfp_emit_fstmd): Likewise.
7927
7928 2010-03-19  Michael Matz  <matz@suse.de>
7929
7930         PR target/43305
7931         * builtins.c (expand_builtin_interclass_mathfn,
7932         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
7933         if that fails.
7934
7935 2010-03-19  Richard Guenther  <rguenther@suse.de>
7936
7937         PR tree-optimization/43415
7938         * tree-ssa-pre.c (phi_translate): Split out worker to ...
7939         (phi_translate_1): ... this.
7940         (phi_translate): Move all caching here.  Cache all NARY
7941         and REFERENCE translations.
7942
7943 2010-03-19  David S. Miller  <davem@davemloft.net>
7944
7945         With help from Eric Botcazou.
7946         * config/sparc/sparc.c: Include dwarf2out.h.
7947         (emit_pic_helper): Delete.
7948         (pic_helper_symbol_name): Delete.
7949         (pic_helper_emitted_p): Delete.
7950         (pic_helper_needed): New.
7951         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
7952         (get_pc_thunk_name): New.
7953         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
7954         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
7955         Set pic_helper_needed to true.  Don't call emit_pic_helper.
7956         (sparc_expand_prologue): Update load_pic_register call.
7957         (sparc_output_mi_thunk): Likewise.
7958         (sparc_file_end): Emit a hidden comdat symbol for the PIC
7959         thunk if possible.  Output CFI information as needed.
7960
7961 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7962             Jack Howarth <howarth@bromo.med.uc.edu>
7963
7964         PR target/36399
7965         * config/i386/i386.h: Fix ABI on darwin x86-32.
7966
7967 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
7968
7969         * tree.h: Declare make_decl_rtl_for_debug.
7970         * varasm.c (make_decl_rtl_for_debug): New.
7971         * dwarf2out.c (rtl_for_decl_location): Call it.
7972         * cfgexpand.c (expand_debug_expr): Call it.
7973
7974 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
7975
7976         PR bootstrap/43399
7977         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
7978         mem_mode.
7979
7980         PR bootstrap/43403
7981         * var-tracking.c (vt_init_cfa_base): Do nothing if
7982         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
7983
7984 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
7985
7986         PR debug/42873
7987         * var-tracking.c (canonicalize_vars_star): New.
7988         (dataflow_post_merge_adjust): Use it.
7989
7990 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
7991
7992         PR debug/43058
7993         * var-tracking.c (non_suitable_const): New function.
7994         (add_uses): For DEBUG_INSNs with constants, don't record any
7995         value, instead just the constant value itself.
7996         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
7997         is not VAR_LOC_UNKNOWN_P, set var to the constant.
7998         (emit_notes_in_bb): Likewise.
7999         (emit_note_insn_var_location): For onepart variables if
8000         cur_loc is a VOIDmode constant, use DECL_MODE.
8001
8002 2010-03-18  Martin Jambor  <mjambor@suse.cz>
8003
8004         PR middle-end/42450
8005         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8006         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8007         all non-clones.  Moved call redirection...
8008         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8009         (cgraph_materialize_all_clones): Dispose of all
8010         combined_args_to_skip bitmaps.
8011         (verify_cgraph_node): Do not check for edges pointing to wrong
8012         nodes in inline clones.
8013         * tree-inline.c (copy_bb): Call
8014         cgraph_redirect_edge_call_stmt_to_callee.
8015         * ipa.c (cgraph_remove_unreachable_nodes): Call
8016         cgraph_node_remove_callees even when there are used clones.
8017
8018 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8019
8020         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8021
8022 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8023
8024         PR target/43383
8025         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8026         for 32bit.
8027
8028 2010-03-18  Michael Matz  <matz@suse.de>
8029
8030         PR middle-end/43419
8031         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8032         into sqrt(x) if we need to preserve signed zeros.
8033
8034 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
8035             Eric Botcazou  <ebotcazou@adacore.com>
8036
8037         PR rtl-optimization/43360
8038         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8039         note if we don't know its invariant status.
8040
8041 2010-03-18  Michael Matz  <matz@suse.de>
8042
8043         PR tree-optimization/43402
8044         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8045         PHI chains of ssa names registered for update.
8046
8047 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
8048
8049         PR target/42427
8050         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8051         non-offsettable and pre_modify update addressing.
8052         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8053         and "2" alternatives "#".
8054         (*movdd_softfloat32): Make all alternatives "#";
8055         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8056         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8057         (*movdf_softfloat32): Make all alternatives "#";
8058         (movdi): Use the new DIFD mode iterator to create a common splitter
8059         for movdi, movdf and movdd patterns.
8060
8061 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
8062
8063         * common.opt (dumpdir): Remove redundant tab.
8064
8065 2010-03-17  Martin Jambor  <mjambor@suse.cz>
8066
8067         PR tree-optimization/43347
8068         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8069         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8070
8071 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
8072
8073         PR rtl-optimization/42216
8074         * regrename.c (create_new_chain): New function, broken out from...
8075         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
8076         appending a use to an empty chain.
8077         (build_def_use): Remove previous changes that convert OP_INOUT to
8078         OP_OUT operands; instead detect the case where an OP_INOUT operand
8079         uses a previously untracked register and create an empty chain for it.
8080
8081 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8082
8083         * doc/extend.texi (Function Attributes): Rewrite unfinished
8084         sentence in ms_abi documentation.
8085
8086 2010-03-17  Alan Modra  <amodra@gmail.com>
8087
8088         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8089         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8090         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8091         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8092
8093 2010-03-16  Richard Henderson  <rth@redhat.com>
8094
8095         PR middle-end/43365
8096         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8097         (lower_try_finally): Save and restore eh_seq around the expansion
8098         of the try-finally.
8099
8100 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8101
8102         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8103         statements before splitting block.
8104
8105 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8106
8107         * doc/sourcebuild.texi (Testsuites): Fix markup.
8108         Use pathnames relative to gcc/testsuite.
8109         (Test Directives): Move description of how timeout is determined.
8110         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8111         (C Tests): Correct gcc.misc-tests directory.
8112         Framework tests now live in gcc.test-framework.
8113
8114 2010-03-16  Richard Guenther  <rguenther@suse.de>
8115
8116         PR middle-end/43379
8117         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8118         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8119
8120 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8121             Alexandre Oliva  <aoliva@redhat.com>
8122
8123         PR tree-optimization/42917
8124         * lambda-code.c (remove_iv): Skip debug statements.
8125         (lambda_loopnest_to_gcc_loopnest): Likewise.
8126         (not_interesting_stmt): Debug statements are not interesting.
8127
8128 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
8129
8130         PR debug/43051
8131         PR debug/43092
8132         * cselib.c (cselib_preserve_constants,
8133         cfa_base_preserved_val): New static variables.
8134         (preserve_only_constants): New function.
8135         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8136         clear its REG_VALUES.  If cselib_preserve_constants, don't
8137         empty the whole hash table, but preserve there VALUEs with constants,
8138         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8139         (cselib_preserve_cfa_base_value): New function.
8140         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8141         (cselib_init): Change argument to int bitfield.  Set
8142         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8143         is in it.
8144         (cselib_finish): Clear cselib_preserve_constants and
8145         cfa_base_preserved_val.
8146         * cselib.h (enum cselib_record_what): New enum.
8147         (cselib_init): Change argument to int.
8148         (cselib_preserve_cfa_base_value): New prototype.
8149         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8150         * dse.c (dse_step1): Likewise.
8151         * cfgcleanup.c (thread_jump): Likewise.
8152         * sched-deps.c (sched_analyze): Likewise.
8153         * gcse.c (local_cprop_pass): Likewise.
8154         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8155         If FN is non-NULL, call the callback always and whenever it returns
8156         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
8157         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8158         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8159         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8160         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8161         * var-tracking.c: Include recog.h.
8162         (bb_stack_adjust_offset): Remove.
8163         (vt_stack_adjustments): Don't call it, instead just gather the
8164         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8165         (adjust_stack_reference): Remove.
8166         (compute_cfa_pointer): New function.
8167         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8168         (struct adjust_mem_data): New type.
8169         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8170         functions.
8171         (get_address_mode): New function.
8172         (replace_expr_with_values): Use it.
8173         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8174         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
8175         (adjust_sets): Remove.
8176         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8177         Use get_address_mode.
8178         (get_adjusted_src): Remove.
8179         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
8180         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
8181         (add_with_sets): Don't call adjust_sets.
8182         (fp_setter, vt_init_cfa_base): New functions.
8183         (vt_initialize): Change return type to bool.  Move most of pool etc.
8184         initialization to the beginning of the function from end.  Pass
8185         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8186         If !frame_pointer_needed, call vt_stack_adjustment before mos
8187         vector is filled, call vt_init_cfa_base if argp/framep has been
8188         eliminated to sp.  If frame_pointer_needed and argp/framep has
8189         been eliminated to hard frame pointer, set
8190         hard_frame_pointer_adjustment and call vt_init_cfa_base after
8191         encountering fp setter in the prologue.  For MO_ADJUST, call
8192         log_op_type before pusing the op into mos vector, not afterwards.
8193         Call adjust_insn before cselib_process_insn/add_with_sets,
8194         call cancel_changes (0) afterwards.
8195         (variable_tracking_main_1): Adjust for vt_initialize calling
8196         vt_stack_adjustments and returning whether it succeeded or not.
8197
8198 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
8199
8200         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8201         debug statements.
8202
8203 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
8204
8205         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8206         has been set.
8207         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8208         drap_reg has not been set.
8209
8210 2010-03-15  Michael Matz  <matz@suse.de>
8211
8212         PR middle-end/43300
8213         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8214         use it to expand block copies.
8215         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8216         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8217         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8218
8219 2010-03-15  Richard Guenther  <rguenther@suse.de>
8220
8221         PR tree-optimization/43367
8222         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8223         elimination check.
8224
8225 2010-03-15  Richard Guenther  <rguenther@suse.de>
8226
8227         PR tree-optimization/43317
8228         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8229
8230 2010-03-15  Martin Jambor  <mjambor@suse.cz>
8231
8232         PR tree-optimization/43141
8233         * tree-sra.c (create_abstract_origin): New function.
8234         (modify_function): Call create_abstract_origin.
8235
8236 2010-03-15  Chris Demetriou  <cgd@google.com>
8237
8238         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8239         wasn't copied.
8240
8241 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8242
8243         PR middle-end/43354
8244         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8245         call insert_out_of_ssa_copy for default definitions.
8246
8247 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8248
8249         * graphite-clast-to-gimple.c (my_long_long): Defined.
8250         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8251         * graphite-sese-to-poly.c (my_long_long): Defined.
8252         (scop_ivs_can_be_represented): Use it.
8253
8254 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8255
8256         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8257         graphite-max-bbs-per-function, and loop-block-tile-size.
8258         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8259         with "maximum".
8260         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8261
8262 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8263
8264         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8265         forward declaration.
8266         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8267         (add_upper_bounds_from_estimated_nit): New.
8268         (build_loop_iteration_domains): Use it.
8269
8270 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8271
8272         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8273
8274 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8275
8276         PR middle-end/43306
8277         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8278         should be an INTEGER_CST.  Also handle CASE_CONVERT.
8279
8280 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8281
8282         * graphite.c (graphite_initialize): To bound the number of bbs per
8283         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8284         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8285         * doc/invoke.texi: Document it.
8286
8287 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8288
8289         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8290         * graphite-sese-to-poly.h (build_poly_scop): Same.
8291
8292 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8293
8294         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8295         the number of parameters in the scop.  Use as an upper bound
8296         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8297         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8298         * doc/invoke.texi: Document it.
8299
8300 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
8301
8302         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8303         * doc/c-tree.texi: Remove.
8304         * doc/generic.texi: Merge c-tree.texi here.
8305         * doc/gccint.texi (Trees): Remove menu entry.
8306         (c-tree.texi): Remove @include.
8307         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8308         * doc/languages.texi (Reading RTL): Ditto.
8309
8310 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
8311
8312         PR target/42869
8313         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8314
8315 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8316
8317         PR middle-end/42431
8318         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8319         code added to work around reload clobbering CONST insns.
8320
8321 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
8322
8323         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8324         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8325         (cselib_preserve_only_values): Remove retain argument, don't
8326         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8327         * cselib.h (cselib_preserve_only_values): Remove retain argument.
8328         * var-tracking.c (micro_operation): Move insn field before union.
8329         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8330         (struct variable_tracking_info_def): Remove n_mos field, change
8331         mos into a vector of micro_operations.
8332         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8333         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8334         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8335         changing into a vector.
8336         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
8337         come before all other uops generated by add_stores.
8338         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8339         argument removal.
8340         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
8341         a vector.  Run just one pass over the bbs instead of separate counting
8342         and computation phase.
8343         (vt_finalize): Free VTI (bb)->mos vector instead of array.
8344
8345         PR debug/43329
8346         * tree-inline.c (remap_decls): Put old_var rather than origin_var
8347         into *nonlocalized_list vector.
8348         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8349         even if origin is non-NULL.
8350         (gen_variable_die): Likewise.
8351         (process_scope_var): Don't change origin.
8352         (gen_decl_die): Likewise.
8353         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8354         before adding new edges instead of after it, fix moving over
8355         debug stmts.
8356
8357 2010-03-11  David S. Miller  <davem@davemloft.net>
8358
8359         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8360         of four.
8361         * configure: Rebuild.
8362
8363 2010-03-11  Martin Jambor  <mjambor@suse.cz>
8364
8365         PR tree-optimization/43257
8366         * tree.c (assign_assembler_name_if_neeeded): New function.
8367         (free_lang_data_in_cgraph): Assembler name assignment moved to the
8368         above new function.
8369         * tree.h (assign_assembler_name_if_neeeded): Declare.
8370         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8371         the function if needed.
8372
8373 2010-03-11  Chris Demetriou  <cgd@google.com>
8374
8375         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8376         include/stdint-gcc.h, and include/stdint.h world-readable.
8377
8378 2010-03-11  Richard Guenther  <rguenther@suse.de>
8379
8380         PR tree-optimization/43255
8381         * tree-vrp.c (process_assert_insertions_for): Do not insert
8382         asserts for trivial conditions.
8383
8384 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8385
8386         PR tree-optimization/43280
8387         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8388         generation.  Move calculation of size out of the if branch.
8389         (find_bswap): Modify compare number generation.
8390
8391 2010-03-11  Richard Guenther  <rguenther@suse.de>
8392
8393         PR lto/43200
8394         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8395         (input_gimple_stmt): Fixup handled component types during
8396         operand read.  Also fix up decls in ADDR_EXPRs.
8397
8398 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
8399
8400         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8401         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8402
8403 2010-03-10  Jan Hubicka  <jh@suse.cz>
8404
8405         PR c/43288
8406         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8407         * varasm.c (get_variable_section): Don't do that here...
8408         (make_decl_rtl): ... and here.
8409         (do_assemble_alias): Produce decl RTL.
8410         (assemble_alias): Likewise.
8411
8412 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8413
8414         PR debug/43290
8415         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8416         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8417         of fde->vdrap_reg.
8418         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8419         (based_loc_descr): Only express drap or vdrap regno based expressions
8420         using DW_OP_fbreg when not optimizing.
8421         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8422         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8423         REG_CFA_SET_VDRAP note.
8424
8425 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
8426
8427         PR tree-optimization/43236
8428         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8429         error in calculation of base address in reverse iteration case.
8430         (generate_builtin): Take number of latch executions if the statement
8431         is in the latch.
8432
8433 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
8434
8435         PR middle-end/42859
8436         * tree-eh.c: Include pointer-set.h.
8437         (lower_eh_dispatch): Filter out duplicate case labels and
8438         remove the unneeded edge when the label is unused.  Return
8439         true when some edges are removed.
8440         (execute_lower_eh_dispatch): When any lowering resulted in
8441         removing an edge, also delete unreachable blocks.
8442
8443 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8444
8445         PR bootstrap/43287
8446         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8447         UNSPEC_MACHOPIC_OFFSET.
8448
8449 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
8450
8451         PR target/43294
8452         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8453         (m68k_delegitimize_address): New function.
8454
8455 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
8456
8457         PR debug/43299
8458         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8459
8460         PR debug/43299
8461         * var-tracking.c (adjust_sets): New function.
8462         (count_with_sets, add_with_sets): Use it.
8463         (get_adjusted_src): New inline function.
8464         (add_stores): Use it.
8465
8466         PR debug/43304
8467         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8468         call cselib_dummy_expand_value_rtx_cb instead of
8469         cselib_expand_value_rtx_cb.
8470
8471         PR debug/43293
8472         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8473         * config/i386/i386.c: Include debug.h and dwarf2out.h.
8474         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8475         and .cfi_endproc around the pic thunks.
8476         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8477         all queued unwind info register saves are saved before the call.
8478         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8479         considered as sp-=4 for unwind info and the pop as sp+=4 which
8480         also clobbers dest, but doesn't actually restore it.
8481
8482         PR debug/43290
8483         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8484         RTX_FRAME_RELATED_P.
8485
8486 2010-03-09  Jie Zhang  <jie@codesourcery.com>
8487
8488         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8489         whitespaces in output template.
8490
8491 2010-03-09  Jie Zhang  <jie@codesourcery.com>
8492
8493         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8494         out array boundary.
8495
8496 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
8497
8498         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8499         builtins.exp in a separate job.
8500
8501 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8502
8503         * graphite-sese-to-poly.c (add_param_constraints): Use
8504         lower_bound_in_type and upper_bound_in_type.
8505
8506 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8507
8508         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8509         instead of unsigned_type_node.
8510
8511 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8512             Reza Yazdani  <reza.yazdani@amd.com>
8513
8514         PR middle-end/43065
8515         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8516         on pointer type parameters.
8517
8518 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8519
8520         PR middle-end/42644
8521         PR middle-end/42130
8522         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8523         handle conversions from pointer to integers.
8524         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8525         induction variable, to be able to work with code generated by CLooG.
8526         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8527         (build_poly_scop): Bail out if we cannot codegen a loop.
8528
8529 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8530
8531         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8532         code generation with gloog_error.
8533
8534 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8535
8536         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8537         Call fold_convert on all the returned values.
8538         (expand_scalar_variables_expr): Pass to
8539         expand_scalar_variables_ssa_name the type of the resulting expression.
8540
8541 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8542
8543         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8544         ppl_min_for_le_pointset.
8545         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8546         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8547
8548 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8549
8550         * graphite-dependences.c (map_into_dep_poly): Removed.
8551         (dependence_polyhedron_1): Use combine_context_id_scat.
8552
8553 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8554
8555         * graphite-poly.h (struct poly_scattering): Add layout documentation.
8556         (struct poly_bb): Same.
8557         (combine_context_id_scat): New.
8558
8559 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8560
8561         PR middle-end/42326
8562         * sese.c (name_defined_in_loop_p): Return false for default
8563         definitions.
8564
8565 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8566
8567         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8568         and clean up the logic.
8569
8570 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8571
8572         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8573         early return.
8574
8575 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
8576
8577         * var-tracking.c (remove_cselib_value_chains): Define only for
8578         ENABLE_CHECKING.
8579         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8580         delete_slot_part, emit_notes_for_differences_1): Don't call
8581         remove_cselib_value_chains here.
8582         (set_slot_part, emit_notes_for_differences_2): Don't call
8583         add_cselib_value_chains here.
8584         (preserved_values): New vector.
8585         (preserve_value): New function.
8586         (add_uses, add_stores, vt_add_function_parameters): Use it
8587         instead of cselib_preserve_value.
8588         (changed_values_stack): New vector.
8589         (check_changed_vars_0): New function.
8590         (check_changed_vars_1, check_changed_vars_2): Use it.
8591         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8592         changed_values_stack VALUEs.
8593         (vt_emit_notes): For all preserved_values call
8594         add_cselib_value_chains.  If ENABLE_CHECKING call
8595         remove_cselib_value_chains before verifying value_chains is empty.
8596         Initialize and free changed_values_stack.
8597         (vt_initialize): Initialize preserved_values.
8598         (vt_finalize): Free preserved_values.
8599
8600 2010-03-08  Richard Guenther  <rguenther@suse.de>
8601
8602         PR tree-optimization/43269
8603         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8604         region detection.
8605
8606 2010-03-08  Martin Jambor  <mjambor@suse.cz>
8607
8608         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8609         (ipa_is_param_called): Removed.
8610         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8611         (ipa_print_node_params): Do not print the called flag.
8612         (ipa_write_node_info): Do not stream the called flag.
8613         (ipa_read_node_info): Likewise.
8614
8615 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
8616
8617         PR debug/43176
8618         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8619         * cselib.c (struct expand_value_data): Add dummy field.
8620         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8621         dummy to false.
8622         (cselib_dummy_expand_value_rtx_cb): New function.
8623         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8624         any rtl.
8625         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8626         * var-tracking.c: Include pointer-set.h.
8627         (variable): Change n_var_parts to char from int.  Add
8628         cur_loc_changed and in_changed_variables fields.
8629         (variable_canonicalize): Remove.
8630         (shared_var_p): New inline function.
8631         (unshare_variable): Maintain cur_loc_changed and
8632         in_changed_variables fields.  If var was in changed_variables,
8633         replace it there with new_var.  Just copy cur_loc instead of
8634         resetting it to something else.
8635         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
8636         (dataflow_set_union): Don't call variable_canonicalize.
8637         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8638         of their DEBUG_EXPR_TREE_DECLs.
8639         (canonicalize_loc_order_check): Verify that cur_loc is NULL
8640         and in_changed_variables and cur_loc_changed is false.
8641         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8642         and cur_loc_changed.  Don't update cur_loc here.
8643         (variable_merge_over_src): Don't call variable_canonicalize.
8644         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
8645         removing loc that is equal to cur_loc, clear cur_loc,
8646         set cur_loc_changed and ensure variable_was_changed is called.
8647         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
8648         compare pointers in cur_loc check, if it is equal to loc,
8649         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
8650         (variable_different_p): Remove compare_current_location argument,
8651         don't compare cur_loc.
8652         (dataflow_set_different_1): Adjust variable_different_p caller.
8653         (variable_was_changed): If dv had some var in changed_variables
8654         already, reset in_changed_variables flag for it and propagate
8655         cur_loc_changed over to the new variable.  On empty var
8656         always set cur_loc_changed.  Set in_changed_variables on whatever
8657         var is added to changed_variables.
8658         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8659         Use shared_var_p.  When removing loc that is equal to cur_loc,
8660         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
8661         end, don't set it to something else, just call variable_was_changed.
8662         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
8663         loc being removed, clear cur_loc and set cur_loc_changed.
8664         Set cur_loc_changed if all locations have been removed.
8665         (struct expand_loc_callback_data): New type.
8666         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8667         allocated.  Always create SUBREGs if simplify_subreg failed.
8668         Prefer to use cur_loc, when that fails and still in
8669         changed_variables (and seen first time) recompute it.  Set
8670         cur_loc_changed of variables which had to change cur_loc and
8671         compute elcd->cur_loc_changed if any of the subexpressions used
8672         had to change cur_loc.
8673         (vt_expand_loc): Adjust to pass arguments in
8674         expand_loc_callback_data structure.
8675         (vt_expand_loc_dummy): New function.
8676         (emitted_notes): New variable.
8677         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8678         that weren't used for any other decl in current
8679         emit_notes_for_changes call call vt_expand_loc_dummy to update
8680         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
8681         first loc_chain location if NULL before.  Always use just
8682         cur_loc instead of first loc_chain location.  When cur_loc_changed
8683         is false, when not --enable-checking=rtl just don't emit any note.
8684         When rtl checking, compute the note and assert it is the same
8685         as previous note.  Clear cur_loc_changed and in_changed_variables
8686         at the end before removing from changed_variables.
8687         (check_changed_vars_3): New function.
8688         (emit_notes_for_changes): Traverse changed_vars to call
8689         check_changed_vars_3 on each changed var.
8690         (emit_notes_for_differences_1): Clear cur_loc_changed and
8691         in_changed_variables.  Recompute cur_loc of new_var.
8692         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
8693         (vt_emit_notes): Initialize and destroy emitted_notes.
8694
8695 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
8696
8697         PR rtl-optimization/42220
8698         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
8699         Use verify_reg_tracked to determine if we should use OP_OUT rather
8700         than OP_INOUT.
8701         (build_def_use): If we see an in-out operand for a register that we
8702         know nothing about, treat is an output if possible, fail the block if
8703         not.
8704
8705 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
8706
8707         PR debug/42897
8708         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
8709         permanently.
8710
8711 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
8712
8713         PR debug/42897
8714         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
8715         uses of relevant DEFs that are dead outside the loop too.
8716
8717 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
8718
8719         * var-tracking.c (dataflow_set_merge): Swap src and src2.
8720         Reverted:
8721         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
8722         PR debug/41371
8723         * var-tracking.c (values_to_unmark): New variable.
8724         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8725         values_to_unmark vector.  Moved body to...
8726         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
8727         instead queue it into values_to_unmark vector.
8728         (vt_find_locations): Free values_to_unmark vector.
8729
8730 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
8731
8732         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
8733         (site.exp): Export them when plugins are enabled.
8734
8735 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
8736
8737         PR middle-end/42326
8738         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
8739         that contain scevs.
8740         (chrec_fold_multiply): Same.
8741
8742 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
8743
8744         PR c/43248
8745         * c-decl.c (build_compound_literal): Return early if init is
8746         an error_mark_node.
8747
8748 2010-03-04  Martin Jambor  <mjambor@suse.cz>
8749
8750         PR tree-optimization/43164
8751         PR tree-optimization/43191
8752         * tree-sra.c (type_consists_of_records_p): Reject records with
8753         zero-size bit-fields at the end.
8754
8755 2010-03-04  Mike Stump  <mikestump@comcast.net>
8756
8757         * Makefile.in (TAGS): Remove *.y.
8758
8759 2010-03-04  Richard Guenther  <rguenther@suse.de>
8760
8761         PR tree-optimization/40761
8762         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
8763         in reverse order.
8764         (my_rev_post_order_compute): New function.
8765         (init_pre): Call it.
8766
8767 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
8768
8769         PR middle-end/43209
8770         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
8771         decrease the cost of an IV candidate when the cost is infinite.
8772
8773 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8774
8775         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
8776         Use '3DNow!' for the extension of that name, ensure normal space
8777         after the string.
8778         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
8779
8780 2010-03-03  Jeff Law  <law@redhat.com>
8781
8782         * PR middle-end/32693
8783         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
8784         than gen_rtx_SUBREG.
8785         (extract_bit_field_1): Likewise.
8786
8787 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
8788
8789         * doc/sourcebuild.texi (Test directives): Document that arguments
8790         include-opts and exclude-opts are now optional for dg-skip-if,
8791         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
8792
8793 2010-03-03  Jason Merrill  <jason@redhat.com>
8794
8795         PR c++/12909
8796         * cgraph.h (varpool_node): Add extra_name field.
8797         * varpool.c (varpool_extra_name_alias): New.
8798         (varpool_assemble_decl): Emit extra name aliases.
8799         (varpool_mark_needed_node): Look past an extra name alias.
8800         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
8801         * lto-streamer-in.c (lto_input_tree): Read it.
8802         * lto-streamer-out.c (output_unreferenced_globals): Write it.
8803
8804 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
8805
8806         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
8807         (sparc*-*-solaris2*): ...this.
8808
8809 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
8810
8811         PR debug/43229
8812         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
8813         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
8814         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
8815         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
8816
8817         PR debug/43237
8818         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
8819         fallthrough to default handling, just with want_address 0 instead of 2.
8820         For single element lists, add_AT_loc directly, otherwise create an
8821         artificial variable DIE and stick location list to it.
8822
8823         PR debug/43177
8824         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
8825         (VAL_EXPR_HAS_REVERSE): Define.
8826         (reverse_op): New function.
8827         (add_stores): For reversible operations add an extra MO_VAL_USE.
8828
8829 2010-03-02  Jason Merrill  <jason@redhat.com>
8830
8831         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
8832
8833 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
8834
8835         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
8836         (sparc64-*-linux*): Likewise.
8837         (sparc64-*-solaris2*): Include assembler files before linker ones.
8838         (sparc-*-solaris2*): Simplify and reorder to match previous case.
8839         * config/sparc/gas.h: Delete.
8840         * config/sparc/sol2-64.h: Add copyright notice.
8841         * config/sparc/sol2-gas-bi.h: Likewise.
8842         * config/sparc/sol2-gld.h: Likewise.
8843         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
8844         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
8845         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
8846         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
8847         (sparc_elf_asm_named_section): Rename into...
8848         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
8849
8850 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
8851
8852         * config/alpha/alpha.c (override_options): Fix -mtune error message.
8853
8854 2010-03-02  Jeff Law  <law@redhat.com>
8855
8856         PR middle-end/42431
8857         * reload1.c (rtx_p, substitute_stack): Declare.
8858         (substitute): Record addresses of changed rtxs.
8859         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
8860         Restore the original rtx when complete.
8861         (reload): Free subsitute_stack when complete.
8862
8863 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
8864
8865         * doc/gccint.texi (menu): Add Testsuites as a chapter.
8866         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
8867         new chapter.
8868         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
8869         LTO Testing, gcov Testing, profopt Testing, compat Testing,
8870         Torture Tests): Change from subsection to section.
8871
8872 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
8873             Steven Bosscher  <steven@gcc.gnu.org>
8874
8875         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
8876         instead of bb.
8877
8878 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
8879
8880         PR middle-end/42640
8881         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
8882         the assignment from the new induction variable to the assignment
8883         of the value from the original loop PHI function.
8884
8885 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
8886             Daniel Jacobowitz  <dan@codesourcery.com>
8887
8888         * doc/sourcebuild.texi (Test directives): Clarify options to
8889         dg-skip-if.
8890
8891 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8892
8893         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
8894         Disable cfi directives unless GCC and gas agree on using read-only
8895         .eh_frame sections for 64-bit.
8896         * configure: Regenerate.
8897
8898 2010-03-01  Richard Guenther  <rguenther@suse.de>
8899
8900         PR tree-optimization/43220
8901         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
8902         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
8903
8904 2010-03-01  Richard Guenther  <rguenther@suse.de>
8905             Martin Jambor  <mjambor@suse.cz>
8906
8907         PR middle-end/41250
8908         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
8909         gimplified parameters.
8910
8911 2010-03-01  Christian Bruel  <christian.bruel@st.com>
8912
8913         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
8914
8915 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8916
8917         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
8918
8919 2010-03-01  Richard Guenther  <rguenther@suse.de>
8920
8921         PR middle-end/43213
8922         * expr.c (expand_assignment): Use the alias-oracle to tell
8923         if the rhs aliases the result decl.
8924
8925 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8926
8927         PR pch/14940
8928         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
8929         to sol_gt_pch_get_address.
8930         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
8931         64-bit, SPARC and x86.
8932         (sol_gt_pch_get_address): New function.
8933
8934 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
8935
8936         * toplev.h (inform_n, error_n): Declare.
8937         * diagnostic.c (inform_n, error_n): New function.
8938
8939 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
8940
8941         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
8942         has no rtl yet when processing local_decls, queue it and recheck
8943         if deferred stack allocation hasn't assigned it rtl.
8944
8945 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8946
8947         * config/sh/sh.c (unspec_bbr_uid): New.
8948         (gen_block_redirect): Use it instead of INSN_UID.
8949         (gen_far_branch): Likewise.
8950
8951 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
8952
8953         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
8954         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
8955
8956 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8957
8958         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
8959         (Warning Options): -Wno-conversion-null is valid for
8960         Objective-C++ as well.
8961         * doc/tm.texi (Named Address Spaces): Likewise.
8962         * doc/plugins.texi (Plugins): Replace TABs with spaces.
8963         * doc/tree-ssa.texi (Tree SSA): Likewise.
8964
8965 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
8966
8967         PR bootstrap/43202
8968         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
8969         by default.  Don't set the default arch for
8970         i[34567]86-*-darwin*|x86_64-*-darwin*.
8971
8972 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
8973
8974         PR bootstrap/43202
8975         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
8976         default.  Set the default 32bit/64bit archs with $with_arch
8977         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
8978
8979 2010-02-27  Richard Guenther  <rguenther@suse.de>
8980
8981         PR tree-optimization/43186
8982         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
8983         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
8984         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
8985         unroller iterations.
8986
8987 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
8988
8989         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
8990         required and i[34567]86-*-* targets don't support 64bit ISA.
8991
8992 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
8993
8994         PR ada/43096
8995         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8996         the same alias set.
8997
8998 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
8999
9000         * config.gcc: Set the default arch at least to Prescott for
9001         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9002         if SSE math is enabled.
9003
9004 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9005
9006         * diagnostic.c (diagnostic_initialize): Update.
9007         (diagnostic_report_diagnostic): Test inhibit_notes_p for
9008         informative notes.
9009         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9010         (diagnostic_inhibit_notes): New.
9011         * toplev.c (process_options): inhibit notes with -fcompare-debug.
9012
9013 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9014
9015         PR c/20631
9016         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9017         * doc/standards.texi: Likewise.
9018         * doc/extend.texi: Likewise.
9019         * doc/trouble.texi: Likewise.
9020         * doc/cppopts.texi: Likewise.
9021         * doc/install.texi: Likewise.
9022         * c.opt (std=c90,std=gnu90): New options.
9023         * c-opts.c (c_common_handle_option): Handle them.
9024
9025 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9026
9027         PR c/24577
9028         * c-decl.c (undeclared_variable): Use an informative note.
9029
9030 2010-02-26  Richard Guenther  <rguenther@suse.de>
9031
9032         PR tree-optimization/43186
9033         * gimple.h (gimple_fold): Remove.
9034         * gimple.c (gimple_fold): Remove.  Inline into single user ...
9035         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9036         Try harder for conditions.
9037
9038 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9039
9040         PR debug/43190
9041         * function.c (used_types_insert): Don't skip through named pointer
9042         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
9043         and it is different from the main variant's type.
9044
9045 2010-02-26  Nick Clifton  <nickc@redhat.com>
9046
9047         * config/rx/rx.md (sminsi3): Remove bogus alternative.
9048
9049 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9050
9051         * config.gcc: Support --with-fpmath=sse for x86.
9052
9053         * config/i386/ssemath.h: New.
9054
9055         * doc/install.texi (--with-fpmath=sse): Documented.
9056
9057 2010-02-26  Richard Guenther  <rguenther@suse.de>
9058
9059         PR tree-optimization/43188
9060         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9061         vector types of over-aligned element type.
9062
9063 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
9064
9065         PR target/43175
9066         * config/i386/i386.c (expand_vec_perm_blend): Use correct
9067         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
9068
9069 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9070
9071         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9072
9073 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9074
9075         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9076         * var-tracking.c: Include diagnostic.h.
9077         (debug_dv): New function.
9078         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9079
9080         PR debug/43160
9081         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9082         (add_value_chain, add_value_chains, remove_value_chain,
9083         remove_value_chains): Handle DEBUG_EXPRs.
9084         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9085
9086         PR debug/43161
9087         * regcprop.c (struct queued_debug_insn_change): New type.
9088         (struct value_data_entry): Add debug_insn_changes field.
9089         (struct value_data): Add n_debug_insn_changes field.
9090         (debug_insn_changes_pool): New variable.
9091         (free_debug_insn_changes, apply_debug_insn_changes,
9092         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9093         (kill_value_one_regno): Call free_debug_insn_changes if needed.
9094         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9095         fields.
9096         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9097         changes for them.
9098         (copyprop_hardreg_forward_1): Don't call apply_change_group for
9099         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
9100         changes, call cprop_find_used_regs via note_stores.
9101         (copyprop_hardreg_forward): When copying vd from predecessor
9102         which has any queued DEBUG_INSN changes, make sure the pointers are
9103         cleared.  At the end call df_analyze and then if there are any
9104         DEBUG_INSN changes queued at the end of some basic block for still
9105         live registers, apply them.
9106         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9107
9108 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
9109
9110         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9111         (arm*-*-*): Ditto.
9112
9113 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
9114
9115         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9116         targets.  Set the default with_cpu/with_arch from arch/cpu.
9117         Allow x86-64 and native for with_cpu/with_arch.
9118
9119 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
9120
9121         * ebitmap.c: Change calls to verify_popcount with calls to
9122         sbitmap_verify_popcount.
9123         (ebitmap_clear_bit): Fixed map->cacheindex test and
9124         map>cache update when bit clearing results in an empty
9125         element.
9126
9127 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9128
9129         PR target/43154
9130         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9131         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9132         and support both V2DF and V2DI modes.
9133         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9134         support both V2DF and V2DI modes.
9135         (general): Delete trailing whitespace from a few patterns.
9136
9137         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9138         V2DF/V2DI interleave high/low builtins.
9139
9140         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9141         new VSX builtins.
9142
9143         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9144         interleave high/low functions.
9145
9146 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9147
9148         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9149         #pragma extern_prefix.
9150
9151 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
9152
9153         PR debug/43166
9154         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9155         BLKmode, assert op0 is a MEM and just adjust its mode.
9156
9157         PR debug/43165
9158         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9159         if bitpos isn't multiple of mode's bitsize.
9160
9161 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9162
9163         * c.opt (-ftemplate-depth=): New.
9164         (-ftemplate-depth-): Deprecate.
9165         * optc-gen.awk: Handle -ftemplate-depth=.
9166         * opth-gen.awk: Likewise.
9167         * c-opts.c (c_common_handle_option): Likewise.
9168         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9169
9170 2010-02-24  Jason Merrill  <jason@redhat.com>
9171
9172         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9173
9174 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9175
9176         * cfg.c (alloc_aux_for_block): Remove inline.
9177         (alloc_aux_for_edge): Likewise.
9178
9179 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9180
9181         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9182
9183 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9184
9185         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9186         * config/i386/sol2-gas.h: New file.
9187         * config.gcc (i[34567]86-*-solaris2*): Use it.
9188
9189 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9190
9191         PR c/43128
9192         * c-typeck.c (ep_convert_and_check): New.
9193         (build_conditional_expr): Use it.
9194         (build_binary_op): Likewise.
9195
9196 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
9197
9198         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9199
9200         PR debug/43150
9201         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9202         bounds even for -O+.
9203         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9204         expr needs to have DECL_NAME set.
9205
9206 2010-02-24  Nick Clifton  <nickc@redhat.com>
9207
9208         * config/mep/mep.c: Include gimple.h.
9209         (mep_function_uses_sp): Delete unused function.
9210         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9211         parameters.  Use unsigned integers to count args.  Return a
9212         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
9213
9214 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9215
9216         PR target/43107
9217         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9218         greater or equal to nelt instead of 2 * nelt.
9219         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9220         with nelt - 1.
9221
9222 2010-02-23  Jason Merrill  <jason@redhat.com>
9223
9224         PR debug/42800
9225         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9226         in cfun->local_decls even if they have register types.
9227
9228         PR c++/42837
9229         * stor-layout.c (place_field): Don't warn about unnecessary
9230         DECL_PACKED if the type is packed.
9231
9232 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9233
9234         PR target/43139
9235         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9236         GOTOFF relocs, even when the base reg isn't pic pointer.
9237
9238 2010-02-23  Michael Matz  <matz@suse.de>
9239
9240         PR debug/43077
9241         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9242         (expand_gimple_basic_block): Generate and use debug temps if there
9243         are debug uses left after the last real use of TERed ssa names.
9244         Unlink debug immediate uses when they are expanded.
9245
9246 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9247
9248         PR 43123
9249         * config/i386/i386.c (override_options): Reorganise to provide
9250         better error messages.
9251
9252 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9253
9254         PR middle-end/43083
9255         * graphite-scop-detection.c (create_single_exit_edge): Move
9256         the call to find_single_exit_edge to....
9257         (create_sese_edges): ...here.  Don't handle multiple edges
9258         exiting the function.
9259         (build_graphite_scops): Don't handle multiple edges
9260         exiting the function.
9261
9262 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9263
9264         PR middle-end/43097
9265         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9266         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9267
9268 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9269
9270         PR middle-end/43026
9271         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9272
9273 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9274
9275         PR c++/43126
9276         * c-typeck.c (convert_arguments): Print declaration location.
9277         * c-common.c (validate_nargs): Rename as
9278         builtin_function_validate_nargs.
9279         (check_builtin_function_arguments): Update.
9280
9281 2010-02-22  Richard Guenther  <rguenther@suse.de>
9282
9283         PR lto/43045
9284         * tree-inline.c (declare_return_variable): Use the type of
9285         the call stmt lhs if available.
9286
9287 2010-02-22  Duncan Sands  <baldrick@free.fr>
9288
9289         * passes.c (register_pass): Always consider all pass lists when
9290         ref_pass_instance_number is zero.
9291
9292 2010-02-22  Richard Guenther  <rguenther@suse.de>
9293
9294         PR tree-optimization/42749
9295         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9296         parameter.  Do arithmetic in the original type.
9297         (update_accumulator_with_ops): Likewise.
9298         (adjust_accumulator_values): Adjust.
9299
9300 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9301
9302         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9303         (QI to BLKmode splitter): New splitter.
9304
9305 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
9306
9307         * config/i386/i386.c (initial_ix86_tune_features): Turn on
9308         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9309
9310 2010-02-22  Richard Guenther  <rguenther@suse.de>
9311
9312         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9313
9314 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
9315
9316         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9317         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9318         ($(T)crti.o, $(T)crtn.o): Remove rules.
9319
9320 2010-02-21  Tobias Burnus  <burnus@net-b.de>
9321
9322         PR fortran/35259
9323         * doc/invoke.texi (-fassociative-math): Document that this
9324         option is automatically enabled for Fortran.
9325
9326 2010-02-20  David S. Miller  <davem@davemloft.net>
9327
9328         * configure.ac: Test if linker and assembler properly support
9329         GOTDATA_OP relocations.
9330         * configure: Rebuild.
9331         * config.in: Likewise.
9332         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9333         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9334         (movsi_high_pic): Likewise.
9335         (movdi_lo_sum_pic): Likewise.
9336         (movdi_high_pic): Likewise.
9337         (movsi_pic_gotdata_op): New pattern.
9338         (movdi_pic_gotdata_op): Likewise.
9339         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9340         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9341
9342 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
9343
9344         PR target/43067
9345         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9346         attribute to ssemul.
9347         (xop_mulv2div2di3_high): Ditto.
9348
9349 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9350
9351         PR c++/35669
9352         * c.opt (Wconversion-null): New option.
9353         * doc/invoke.texi (Wconversion-null): Document.
9354
9355 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9356
9357         * common.opt (Wlarger-than-): Add Undocumented.
9358
9359 2010-02-19  Mike Stump  <mikestump@comcast.net>
9360
9361         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9362
9363 2010-02-19  Jason Merrill  <jason@redhat.com>
9364
9365         PR target/40332
9366         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9367         * configure: Likewise.
9368
9369 2010-02-20  Alan Modra  <amodra@gmail.com>
9370
9371         PR middle-end/42344
9372         * cgraph.h (cgraph_make_decl_local): Declare.
9373         * cgraph.c (cgraph_make_decl_local): New function.
9374         (cgraph_make_node_local): Use it.
9375         * cgraphunit.c (cgraph_function_versioning): Likewise.
9376         * ipa.c (function_and_variable_visibility): Likewise.
9377
9378 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9379
9380         PR bootstrap/43121
9381         * except.c (sjlj_emit_function_enter): Don't call
9382         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9383         directly.
9384         * rtl.h (add_reg_br_prob_note): Remove prototype.
9385
9386 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9387
9388         PR 41779
9389         * c-common.c (conversion_warning): Remove widening conversions
9390         before checking the conversion of integers to reals.
9391
9392 2010-02-19  Mike Stump  <mikestump@comcast.net>
9393
9394         PR middle-end/43125
9395         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9396
9397         PR objc/43061
9398         * cgraphunit.c (process_function_and_variable_attributes): Check
9399         DECL_PRESERVE_P instead of looking up attribute "used".
9400         * ipa-pure-const.c (check_decl): Likewise.
9401         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9402         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9403         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9404         instead of attribute "used".
9405         * config/sol2-c.c (solaris_pragma_init): Likewise.
9406         (solaris_pragma_fini): Likewise.
9407
9408 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9409
9410         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9411         Use XCNEW instead of xcalloc.
9412         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9413         XNEW instead of xmalloc.
9414         (get_fields): Use XNEWVEC instead of xmalloc.
9415
9416         PR debug/43084
9417         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9418         populate vars array.
9419         (create_new_general_access): For debug stmts just reset value.
9420         (get_stmt_accesses): For accesses within debug stmts just record them
9421         using add_access_to_acc_sites instead of preventing the peeling or
9422         counting them as accesses.
9423
9424         PR middle-end/42233
9425         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9426
9427 2010-02-19  Richard Guenther  <rguenther@suse.de>
9428
9429         PR tree-optimization/42916
9430         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9431         instructions.
9432
9433 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9434
9435         * configure.ac: Replace all uses of changequote in macro arguments
9436         with proper quoting.
9437
9438 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9439
9440         PR middle-end/42233
9441         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9442
9443 2010-02-19  Richard Guenther  <rguenther@suse.de>
9444
9445         PR tree-optimization/42944
9446         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9447         test for aliasing with errno.
9448
9449 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9450
9451         PR middle-end/42233
9452         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9453         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9454         * dojump.c: Include output.h.
9455         (inv): New inline function.
9456         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9457         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9458         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9459         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9460         argument, pass it down to other calls.
9461         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
9462         add REG_BR_PROB note to the conditional jump.
9463         * cfgexpand.c (add_reg_br_prob_note): Removed.
9464         (expand_gimple_cond): Don't call it, add the probability
9465         as last argument to jumpif_1/jumpifnot_1.
9466         * Makefile.in (dojump.o): Depend on output.h.
9467         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9468         callers.
9469         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9470         * stmt.c (do_jump_if_equal): Likewise.
9471         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9472         * loop-unswitch.c (compare_and_jump_seq): Likewise.
9473         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9474         Likewise.
9475         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9476         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9477         jumpifnot_1 callers.
9478         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9479         callers.
9480         (store_expr): Adjust jumpifnot caller.
9481         (store_constructor): Adjust jumpif caller.
9482
9483         PR middle-end/42233
9484         * gimplify.c (gimple_boolify): For __builtin_expect call
9485         gimple_boolify also on its first argument.
9486
9487 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
9488
9489         * configure.ac (gnu-unique-object): Wrap regexps using [] in
9490         changequote block.
9491         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
9492         * configure: Regenerated.
9493
9494 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9495
9496         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9497         lang_hooks.types_compatible_p instead of comptypes.
9498
9499 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
9500
9501         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9502         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9503         if __prefer_thumb__ is defined.
9504
9505 2010-02-18  Martin Jambor  <mjambor@suse.cz>
9506
9507         PR tree-optimization/43066
9508         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9509         array with zero-sized element type.
9510
9511 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
9512
9513         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9514         rtx, allocate struct var_loc_node here and return it to the
9515         caller, and only if it is actually needed.
9516         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9517         move it earlier and return immediately if it returns NULL.
9518
9519 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
9520
9521         * config/sparc/gas.h: New file.  Restore
9522         TARGET_ASM_NAMED_SECTION to its ELF default.
9523         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9524         check !HAVE_GNU_AS.
9525         * config/sparc/sparc.c (sparc_elf_asm_named_section):
9526         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
9527         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9528         after sparc/sysv4.h.
9529
9530 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
9531
9532         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9533
9534 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
9535
9536         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9537         patterns from predicated pattern.
9538
9539 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
9540
9541         PR target/43103
9542         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9543         for insn mnemonic suffix.
9544
9545 2010-02-17  Richard Guenther  <rguenther@suse.de>
9546
9547         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9548         to loop PHI nodes.
9549
9550 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
9551
9552         PR debug/42918
9553         * caller-save.c (save_call_clobbered_regs): If BB ends with
9554         a DEBUG_INSN, move any notes in between last real insn and the last
9555         DEBUG_INSN after the last DEBUG_INSN.
9556
9557 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9558
9559         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9560         Fix return type.  Fix argument type.  Explain meaning of return value.
9561
9562 2010-02-16  Richard Guenther  <rguenther@suse.de>
9563
9564         PR tree-optimization/41043
9565         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
9566         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9567         statements ...
9568         (vrp_visit_phi_node): ... but only for loop PHI nodes.
9569
9570 2010-02-16  Ira Rosen  <irar@il.ibm.com>
9571
9572         PR tree-optimization/43074
9573         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9574         * tree-vect-loop.c (vect_analyze_loop_operations): Add
9575         vectorizable cycles in hybrid SLP check.
9576         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9577
9578 2010-02-16  Richard Guenther  <rguenther@suse.de>
9579
9580         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9581         (true_dependence): If memrefs_conflict_p computes must-alias
9582         trust it.  Move TBAA check after offset-based disambiguation.
9583         (canon_true_dependence): Likewise.
9584
9585 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
9586
9587         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9588         * doc/invoke.texi: Document it.
9589         * var-tracking.c: Include toplev.h and params.h.
9590         (vt_find_locations): Return bool indicating success.  Compute
9591         hash sizes unconditionally.  Check new parameter, report.
9592         (variable_tracking_main_1): Check vt_find_locations results and
9593         retry.  Renamed from...
9594         (variable_tracking_main): ... this.  New wrapper to preserve
9595         flag_var_tracking_assignments.
9596         * Makefile.in (var-tracking.o): Adjust dependencies.
9597
9598 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
9599             Jakub Jelinek <jakub@redhat.com>
9600
9601         PR target/42854
9602         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9603         if weak_import attribute is present.
9604         * config/darwin.c (machopic_select_section): Likewise.
9605
9606 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
9607
9608         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9609         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9610         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9611         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9612
9613         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
9614         types.
9615
9616         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9617         Fix argument types.
9618
9619         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9620         Rewrite text to refer to the names.
9621
9622 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
9623
9624         * config/i386/i386-builtin-types.def
9625         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9626         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9627         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9628         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9629         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9630         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9631         IX86_BUILTIN_VPERMIL2PS256.
9632         (MULTI_ARG_4_DF2_DI_I): Defined.
9633         (MULTI_ARG_4_DF2_DI_I1): Defined.
9634         (MULTI_ARG_4_SF2_SI_I): Defined.
9635         (MULTI_ARG_4_SF2_SI_I1): Defined.
9636         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9637         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9638         __builtin_ia32_vpermil2ps256.
9639         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9640         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9641         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
9642         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9643         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9644         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
9645         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9646         CODE_FOR_xop_vpermil2v8sf3.
9647         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9648         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9649         * config/i386/xopintrin.h (_mm_permute2_pd): New.
9650         (_mm256_permute2_pd): New.
9651         (_mm_permute2_ps): New.
9652         (_mm256_permute2_ps): New.
9653
9654 2010-02-15  Nick Clifton  <nickc@redhat.com>
9655
9656         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9657         boolean parameters.  Use emit_jump_insn when emitting a pop
9658         instruction containing a return insn.
9659         (push): Use 'true' rather than '1' as second parameter to F.
9660         (h8300_expand_prologue): Likewise.
9661         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9662         (h8300_expand_epilogue): Likewise.
9663
9664 2010-02-15  Richard Guenther  <rguenther@suse.de>
9665
9666         PR middle-end/43068
9667         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9668         if that is zero.
9669
9670 2010-02-15  Nick Clifton  <nickc@redhat.com>
9671
9672         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9673         delta.
9674
9675 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
9676
9677         * intl.c (fake_ngettext): New function.
9678         * intl.h (fake_ngettext): Declare.
9679         (ngettext): Define macro.
9680         * collect2.c (notice_translated): New function.
9681         (main): Use notice_translated and ngettext.
9682         * collect2.h (notice_translated): Declare.
9683
9684 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
9685
9686         * reorg.c (delete_computation): Comment fixes.
9687         * caller-save.c (setup_save_areas): Idem.
9688         * sel-sched-dump.c (dump_lv_set): Idem.
9689         * rtl.def: Idem.
9690
9691 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9692
9693         * config/s390/s390.c (s390_sched_init): New function.
9694         (TARGET_SCHED_INIT): Target hook defined.
9695
9696 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
9697             Jack Howarth  <howarth@bromo.med.uc.edu>
9698             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9699
9700         PR target/42982
9701         Partial revert of unintended change in fix for PR41605.
9702         * config/darwin.h: Fix typo.
9703         * config/darwin9.h: Same.
9704
9705 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
9706
9707         * c-pch.c (pch_init): Clear v.
9708
9709 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9710
9711         PR middle-end/42930
9712         * graphite-scop-detection.c (graphite_can_represent_scev): Call
9713         graphite_can_represent_init for MULT_EXPR.
9714
9715 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9716
9717         PR middle-end/42914
9718         PR middle-end/42530
9719         * graphite-sese-to-poly.c (remove_phi): New.
9720         (translate_scalar_reduction_to_array): Call remove_phi.
9721
9722 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9723
9724         PR middle-end/42771
9725         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
9726         * graphite-clast-to-gimple.h (gloog): Update declaration.
9727         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
9728         * graphite-poly.h (struct poly_bb): Add missing comments.
9729         (struct scop): Add poly_scop_p field.
9730         (POLY_SCOP_P): New.
9731         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
9732         * graphite.c (graphite_transform_loops): Build the polyhedral
9733         representation for each scop before code generation.
9734         * sese.c (rename_variables_in_operand): Removed.
9735         (rename_variables_in_expr): Return the renamed expression.
9736         (rename_sese_parameters): New.
9737         * sese.h (rename_sese_parameters): Declared.
9738
9739 2010-02-11  Richard Guenther  <rguenther@suse.de>
9740
9741         PR tree-optimization/42998
9742         * tree-ssa-pre.c (create_expression_by_pieces): Treat
9743         POINTER_PLUS_EXPR properly.
9744
9745 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9746             Changpeng Fang  <changpeng.fang@amd.com>
9747
9748         PR middle-end/40886
9749         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
9750         the cost of an IV candidate when the IV is used in a test against zero.
9751
9752         * gcc.dg/tree-ssa/ivopts-3.c: New.
9753
9754 2010-02-11  Richard Guenther  <rguenther@suse.de>
9755
9756         PR lto/41664
9757         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
9758         pointer-vs-decl case by swapping refs.  Handle some cases
9759         of pointer-vs-decl disambiguations more conservatively.
9760         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
9761         to false after expanding.
9762
9763 2010-02-11  Richard Guenther  <rguenther@suse.de>
9764
9765         PR driver/43021
9766         * gcc.c (process_command): Handle LTO file@offset case more
9767         appropriately.
9768
9769 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
9770
9771         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
9772         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
9773         of DEBUG_INSNs.
9774         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
9775
9776         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
9777         if MEM's mode size isn't DWARF2_ADDR_SIZE.
9778         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
9779         Optimize eq/ne comparisons when both arguments are known to be
9780         zero-extended.
9781         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
9782         Don't mask operands unnecessarily if they are known to be already
9783         zero-extended.
9784
9785 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
9786
9787         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
9788         instead of loop.
9789
9790 2010-02-10  Richard Guenther  <rguenther@suse.de>
9791
9792         PR tree-optimization/43017
9793         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
9794         for wrapping signed arithmetic.
9795
9796 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
9797
9798         PR debug/43010
9799         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
9800         if no debug info should be emitted for it.
9801
9802 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
9803
9804         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
9805         note when flag_exceptions is set.
9806
9807 2010-02-10  Duncan Sands  <baldrick@free.fr>
9808
9809         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
9810
9811 2010-02-10  Richard Guenther  <rguenther@suse.de>
9812
9813         PR c/43007
9814         * tree.c (get_unwidened): Handle constants.
9815         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
9816
9817 2010-02-10  Martin Jambor  <mjambor@suse.cz>
9818
9819         PR lto/42985
9820         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
9821         check for variable argument counts independently.
9822
9823 2010-02-10  Christian Bruel  <christian.bruel@st.com>
9824
9825         PR target/42841
9826         * config/sh/sh.c (find_barrier): Increase length for non delayed
9827         conditional branches.
9828
9829 2010-02-10  Christian Bruel  <christian.bruel@st.com>
9830
9831         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
9832
9833 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
9834
9835         * builtins.c (set_builtin_user_assembler_name): Also handle
9836         ffs if int is smaller than word.
9837
9838 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
9839
9840         PR middle-end/42973
9841         * ira-conflicts.c (get_dup): Remove.
9842         (process_reg_shuffles): Add new parameter.  Use it as an
9843         additional guard for copy generation.
9844         (add_insn_allocno_copies): Rewrite.
9845
9846 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
9847
9848         * common.opt (fsched2-use-traces): Preserved for backward
9849         compatibility.
9850         * doc/invoke.texi: Remove the documentation about option
9851         -fsched2-use-traces.
9852         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
9853         flag_sched2_use_traces.
9854         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
9855         the backward compatibility flag section.
9856
9857 2010-02-09  Richard Guenther  <rguenther@suse.de>
9858
9859         PR tree-optimization/43008
9860         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
9861         make HEAP variables initialized from global memory if they
9862         are not known builtin functions.
9863         (find_func_aliases): Adjust.
9864
9865 2010-02-09  Richard Guenther  <rguenther@suse.de>
9866
9867         PR tree-optimization/43000
9868         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
9869         arithmetic manually.
9870
9871 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
9872
9873         PR tree-optimization/42931
9874         * tree-loop-linear.c (try_interchange_loops): Don't call
9875         double_int_mul if estimated_loop_iterations failed.
9876
9877 2010-02-08  Martin Jambor  <mjambor@suse.cz>
9878
9879         PR middle-end/42898
9880         * tree-sra.c (build_accesses_from_assign): Do not mark in
9881         should_scalarize_away_bitmap if stmt has volatile ops.
9882         (sra_modify_assign): Do not process assigns piecemeal if if stmt
9883         has volatile ops.
9884
9885 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
9886
9887         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
9888
9889 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
9890
9891         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
9892         before the pattern.
9893
9894 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
9895
9896         PR middle-end/42946
9897         * df-core.c (df_finish_pass): Change type of saved_flags to int.
9898
9899 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
9900
9901         PR middle-end/42988
9902         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
9903         to unknown_dependence.
9904         (graphite_legal_transform_dr): Handle the unknown_dependence.
9905         (graphite_carried_dependence_level_k): Same.
9906
9907 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
9908
9909         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
9910
9911 2010-02-07  Richard Guenther  <rguenther@suse.de>
9912
9913         PR middle-end/42991
9914         * expr.c (get_inner_reference): Always initialize *pbitsize.
9915
9916 2010-02-07  Richard Guenther  <rguenther@suse.de>
9917
9918         PR middle-end/42956
9919         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
9920         new ARRAY_REFs on variable size element or minimal index arrays.
9921         Complete.
9922         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
9923         gimple_fold_indirect_ref.
9924
9925 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
9926
9927         PR target/42957
9928         * arm.c (arm_override_options): Just return if the user has specified
9929         an invalid fpu name.
9930
9931 2010-02-03  Jason Merrill  <jason@redhat.com>
9932
9933         PR c++/42870
9934         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
9935         i386_pe_maybe_record_exported_symbol.
9936
9937 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
9938
9939         PR target/42924
9940         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9941         (pa_delegitimize_address): New function.
9942
9943 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
9944
9945         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
9946         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
9947
9948 2010-02-05  Richard Guenther  <rguenther@suse.de>
9949
9950         PR lto/42762
9951         * lto-streamer-in.c (get_resolution): Deal with references
9952         to undefined functions.
9953
9954 2010-02-05  Richard Guenther  <rguenther@suse.de>
9955
9956         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
9957         (fold_const_aggregate_ref): Likewise.
9958         (ccp_fold_stmt): Substitute loads.
9959         (maybe_fold_reference): Verify types before substituting.
9960         Unshare properly.
9961         (fold_gimple_assign): Unshare properly.
9962         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
9963
9964 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
9965
9966         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
9967         for rs6000_gen_cell_microcode.
9968
9969 2010-02-04  Richard Guenther  <rguenther@suse.de>
9970
9971         PR rtl-optimization/42952
9972         * dse.c (const_or_frame_p): Remove MEM handling.
9973
9974 2010-02-04  Nick Clifton  <nickc@redhat.com>
9975
9976         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9977         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9978         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
9979         (mn10300_asm_output_mi_thunk): New function.
9980         (mn10300_can_output_mu_thunk): New function.
9981         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
9982         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
9983         (FUNCTION_ARG): Delete incorrect comment.
9984
9985 2010-02-03  Jason Merrill  <jason@redhat.com>
9986
9987         PR c++/40138
9988         * fold-const.c (operand_equal_p): Handle erroneous types.
9989
9990 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9991
9992         * config/h8300/h8300.md (can_delay): Fix attibute condition.
9993
9994 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
9995
9996         PR rtl-optimization/42941
9997         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
9998         of xmalloc.
9999
10000 2010-02-03  Jason Merrill  <jason@redhat.com>
10001
10002         PR c++/35652
10003         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10004
10005 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
10006
10007         PR debug/42896
10008         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
10009         (cselib_reset_table): Renamed from...
10010         (cselib_reset_table_with_next_value): ... this.
10011         (cselib_get_next_uid): Renamed from...
10012         (cselib_get_next_unknown_value): ... this.
10013         * cselib.c (next_uid): Renamed from...
10014         (next_unknown_value): ... this.
10015         (cselib_clear_table): Adjust.
10016         (cselib_reset_table): Adjust.  Renamed from...
10017         (cselib_reset_table_with_next_value): ... this.
10018         (cselib_get_next_uid): Adjust.  Renamed from...
10019         (cselib_get_next_unknown_value): ... this.
10020         (get_value_hash): Use hash.
10021         (cselib_hash_rtx): Likewise.
10022         (new_cselib_val): Adjust.  Set and dump uid.
10023         (cselib_lookup_mem): Pass next_uid as hash.
10024         (cselib_subst_to_values): Likewise.
10025         (cselib_log_lookup): Dump uid.
10026         (cselib_lookup): Pass next_uid as hash.  Adjust.
10027         (cselib_process_insn): Adjust.
10028         (cselib_init): Initialize next_uid.
10029         (cselib_finish): Adjust.
10030         (dump_cselib_table): Likewise.
10031         * dse.c (canon_address): Dump value uid.
10032         * print-rtl.c (print_rtx): Print value uid.
10033         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10034         (dvuid): New type.
10035         (dv_uid): New function, sort of renamed from...
10036         (dv_htab_hash): ... this, reimplemented in terms of it and...
10037         (dv_uid2hash): ... this.  New.
10038         (variable_htab_eq): Drop excess assertions.
10039         (tie_break_pointers): Removed.
10040         (canon_value_cmp): Compare uids.
10041         (variable_post_merge_New_vals): Print uids.
10042         (vt_add_function_parameters): Adjust.
10043         (vt_initialize): Reset table.  Adjust.
10044
10045 2010-02-03  Richard Guenther  <rguenther@suse.de>
10046
10047         PR tree-optimization/42944
10048         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10049         (call_may_clobber_ref_p_1): Likewise.  Properly handle
10050         malloc and calloc clobbering errno.
10051
10052 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
10053
10054         * doc/invoke.texi: Fix name of sched1 dump.
10055
10056         * opts.c (decode_options): Set flag_tree_switch_conversion
10057         only conditionally on optimize >= 2.
10058
10059         * gcse.c: Assorted comment fixes in pass description.
10060
10061 2010-02-03  Anthony Green  <green@moxielogic.com>
10062
10063         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10064         nop padding in order to maintain alignment of storage location of
10065         target function address.
10066         (moxie_trampoline_init): Store target function address at newly
10067         aligned location.
10068         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10069         to 32.
10070         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10071
10072 2010-02-03  Richard Guenther  <rguenther@suse.de>
10073
10074         PR middle-end/42927
10075         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10076
10077 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10078
10079         * config.gcc: Reenable check for obsolete targets.
10080         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10081         mips-sgi-irix6.[0-4]*.
10082
10083 2010-02-02  Nick Clifton  <nickc@redhat.com>
10084
10085         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10086         constant size of 4 as being the same as 0.
10087         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10088         can take values in the range 0..4.
10089
10090 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
10091
10092         PR java/41991
10093         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10094         as _darwin10_Unwind_FindEnclosingFunction().
10095         * libgcc-libsystem.ver: New.
10096
10097 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
10098
10099         PR target/41399
10100         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10101         implicitly set registers.
10102
10103 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
10104
10105         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10106         (arm_override_options): Allow automatic selection of the thread
10107         pointer register if thumb2.
10108         (legitimize_pic_address): Improve code sequences for Thumb2.
10109         (arm_call_tls_get_addr): Likewise.
10110         (legitimize_tls_address): Likewise.
10111         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
10112         (pic_load_addr_32bit): ... this.  New named pattern.
10113         * thumb2.md (pic_load_addr_thumb2): Delete.
10114         (pic_load_dot_plus_four): Delete.
10115         (tls_load_dot_plus_four): New named pattern.
10116
10117 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10118
10119         PR libgomp/29986
10120         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10121         Document fix for TLS bug.
10122
10123 2010-01-31  Richard Guenther  <rguenther@suse.de>
10124
10125         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10126         conservatively correct.
10127
10128 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10129
10130         PR target/42850
10131         Revert:
10132         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10133
10134         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10135
10136 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10137
10138         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10139
10140 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
10141
10142         * config.gcc: Adjust order of makefile fragments for mingw targets.
10143
10144 2010-01-31  Richard Guenther  <rguenther@suse.de>
10145
10146         PR middle-end/42898
10147         * gimplify.c (gimplify_init_constructor): For volatile LHS
10148         initialize a temporary.
10149
10150 2010-01-31  Matthias Klose  <doko@ubuntu.com>
10151
10152         * configure.ac: Fix __stack_chk_fail check for cross builds configured
10153         --with-headers
10154         * configure: Regenerate.
10155
10156 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
10157
10158         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10159         the same alias set and their sizes different constantness.
10160         (aliasing_component_refs_p): Revert 2009-10-24 change.
10161
10162 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10163
10164         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10165         unused.
10166
10167 2010-01-29  Richard Guenther  <rguenther@suse.de>
10168
10169         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10170         Assert we successfully updated the call.
10171
10172 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
10173
10174         PR rtl-optimization/42889
10175         * df.h (df_set_bb_dirty_nonlr): New prototype.
10176         * df-core.c (df_set_bb_dirty_nonlr): New function.
10177         * df-scan.c (df_insn_rescan): Call it instead of
10178         df_set_bb_dirty for DEBUG_INSNs.
10179
10180 2010-01-29  Richard Guenther  <rguenther@suse.de>
10181
10182         PR middle-end/37448
10183         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10184         quadratic behavior in most cases.
10185
10186 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
10187
10188         PR target/42891
10189         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10190         in the call to gen_x86_movsicc_0_m1.
10191
10192 2010-01-28  Richard Guenther  <rguenther@suse.de>
10193
10194         PR tree-optimization/42871
10195         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10196
10197 2010-01-28  Richard Guenther  <rguenther@suse.de>
10198
10199         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10200         into call arguments.
10201
10202 2010-01-28  Richard Guenther  <rguenther@suse.de>
10203
10204         PR middle-end/42883
10205         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10206         the forwarder if the destination is an EH landing pad.
10207
10208 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
10209
10210         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10211         block list passed to gimple_duplicate_sese_tail.
10212         (parallelize_loops): Avoid parallelization when the function
10213         has_nonlocal_label.
10214         Avoid parallelization when the preheader is IRREDUCIBLE.
10215         Try to optimize when estimated_loop_iterations_int is unresolved.
10216         Add the loop's location to the dump file.
10217         * tree-cfg.c (add_phi_args_after_redirect): Remove.
10218         (gimple_duplicate_sese_tail): Remove the check for the latch.
10219         Redirect nexits to the exit block.
10220         Remove handling of the incoming edges to the latch.
10221         Redirect the backedge from the copied latch to the exit bb.
10222
10223 2010-01-28  Michael Matz  <matz@suse.de>
10224
10225         PR target/42881
10226         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10227         Wrap force_reg into a sequence, emit it before user.
10228
10229 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
10230
10231         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10232         (arm_rev): New.
10233         (arm_legacy_rev): Likewise.
10234         (thumb_legacy_rev): Likewise.
10235
10236 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10237
10238         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10239         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
10240         on MEM's address failed, try avoid_constant_pool_reference and
10241         recurse if it returned something different.
10242         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10243         address, try avoid_constant_pool_reference and recurse if it
10244         returned something different.
10245         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10246         address and avoid_constant_pool_reference returned something
10247         different, don't set have_address.
10248
10249 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
10250
10251         PR debug/42861
10252         * var-tracking.c (val_store): Add modified argument, obey it.
10253         Adjust callers.
10254         (count_uses): Move down logging of main.
10255         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10256         don't need resolution.
10257         (emit_notes_in_bb): Likewise.
10258
10259 2010-01-27  Richard Guenther  <rguenther@suse.de>
10260
10261         PR middle-end/42878
10262         * tree-inline.c (remap_decl): Delay remapping of SSA name
10263         default definitions until we need them.
10264
10265 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10266
10267         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10268         (rs6000_delegitimize_address): New function.
10269
10270         * config/s390/s390.c (s390_delegitimize_address): Call
10271         delegitimize_mem_from_attrs.
10272
10273         PR middle-end/42874
10274         * tree-inline.c (cannot_copy_type_1): Removed.
10275         (copy_forbidden): Don't forbid copying of functions containing
10276         records/unions with variable length fields.
10277
10278 2010-01-27  Christian Bruel  <christian.bruel@st.com>
10279
10280         Revert:
10281         PR target/42841
10282         * config/sh/sh.c (find_barrier): Increase length for non delayed
10283         conditional branches.
10284
10285 2010-01-27  Matthias Klose  <doko@ubuntu.com>
10286
10287         * configure.ac (gnu-unique-object): Fix ldd version check.
10288         * configure: Regenerate.
10289
10290 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10291
10292         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10293         HAVE_GNU_AS value.
10294         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10295         Test for HAVE_GNU_AS value.
10296
10297 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10298
10299         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10300         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10301         INT64_TYPE): Define.
10302         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10303         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10304         INT_LEAST64_TYPE): Define.
10305         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10306         UINT_LEAST64_TYPE): Define.
10307         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10308         INT_FAST64_TYPE): Define.
10309         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10310         UINT_FAST64_TYPE): Define.
10311         (INTMAX_TYPE, UINTMAX_TYPE): Define.
10312         (INTPTR_TYPE, UINTPTR_TYPE): Define.
10313         (SIG_ATOMIC_TYPE): Define.
10314
10315 2010-01-26  Richard Guenther  <rguenther@suse.de>
10316
10317         * df-scan.c (df_scan_set_bb_info): Remove assert.
10318         (df_insn_rescan_debug_internal): Merge asserts.
10319         (df_install_ref): Likewise.
10320         (df_mark_reg): Use bitmap_set_range.
10321         (df_hard_reg_used_p): Remove assert.
10322         (df_hard_reg_used_count): Likewise.
10323
10324 2010-01-26  Richard Guenther  <rguenther@suse.de>
10325
10326         PR rtl-optimization/42685
10327         * web.c (web_main): Ignore DEBUG_INSNs.
10328
10329 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
10330
10331         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10332
10333         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10334         Fix types of fndecl and arglist parameters.
10335
10336 2010-01-26  Richard Guenther  <rguenther@suse.de>
10337
10338         PR middle-end/42806
10339         * tree-eh.c (unsplit_eh): Skip debug insns.
10340
10341 2010-01-26  Richard Guenther  <rguenther@suse.de>
10342
10343         PR tree-optimization/42250
10344         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10345
10346 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10347
10348         PR fortran/42866
10349         * omp-low.c (expand_omp_sections): Only use single_pred if
10350         l2_bb is single_pred_p.
10351
10352 2010-01-25  Christian Bruel  <christian.bruel@st.com>
10353
10354         PR target/42841
10355         * config/sh/sh.c (find_barrier): Increase length for non delayed
10356         conditional branches.
10357         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10358
10359 2010-01-24  David S. Miller  <davem@davemloft.net>
10360
10361         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10362         define if not using GAS.
10363         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10364         Likewise.  Delete SECTION_MERGE code, which is only applicable
10365         when using GAS.
10366
10367 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
10368
10369         PR c++/42748
10370         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10371         mangling of va_list in system headers.
10372
10373 2010-01-23  Toon Moene  <toon@moene.org>
10374
10375         * tree-predcom.c (combine_chains): Return NULL, not false.
10376
10377 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
10378
10379         * tree-loop-distribution.c (distribute_loop): Fix declaration and
10380         initialization of variable res to agree with return type.
10381
10382 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
10383
10384         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10385         * tree-sra.c: Add include of expr.h.
10386
10387 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
10388
10389         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10390         insert the debug stmt on the single non-EH edge from the stmt.
10391
10392 2010-01-22  Richard Henderson  <rth@redhat.com>
10393
10394         PR tree-opt/42833
10395         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10396         the RHS until after generate_subtree_copies has insertted its
10397         code before the current statement.
10398
10399 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
10400
10401         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10402
10403         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10404
10405 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10406
10407         PR tree-optimization/42585
10408         * tree-sra.c (struct access): New field grp_total_scalarization.
10409         (dump_access): Dump the new field.
10410         (should_scalarize_away_bitmap): New variable.
10411         (cannot_scalarize_away_bitmap): Likewise.
10412         (sra_initialize): Allocate new bitmaps.
10413         (sra_deinitialize): Free new bitmaps.
10414         (create_access_1): New function.
10415         (create_access): Parts moved to create_access_1.
10416         (type_consists_of_records_p): New function.
10417         (completely_scalarize_record): Likewise.
10418         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10419         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10420         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10421         access.
10422         (analyze_all_variable_accesses): Completely scalarize small eligible
10423         records.
10424
10425 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10426
10427         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10428
10429 2010-01-21  Andrew Haley  <aph@redhat.com>
10430
10431         * gcc.c (process_command): Move lang_specific_driver before
10432         setting cc_libexec_prefix.
10433
10434 2010-01-21  Richard Guenther  <rguenther@suse.de>
10435
10436         PR middle-end/19988
10437         * fold-const.c (negate_expr_p): Pretend only negative
10438         real constants are easily negatable.
10439
10440 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
10441             Jason Merrill  <jason@redhat.com>
10442
10443         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10444         (TYPE_TRANSPARENT_AGGR): this, for union and record.
10445         * calls.c (initialize argument_information): Handle it.
10446         * c-common.c (handle_transparent_union_attribute): Use new name.
10447         * c-decl.c (finish_struct): Ditto.
10448         * c-typeck.c (type_lists_compatible_p): Ditto.
10449         (convert_for_assignment): Use new name and also handle record.
10450         * function.c (aggregate_value_p): Handle it.
10451         (pass_by_reference): Ditto.
10452         (assign_parm_data_types): Ditto.
10453         * print-tree.c (print_node): Ditto.
10454         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10455         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10456         * tree.c (first_field): New fn.
10457
10458 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
10459
10460         PR target/42818
10461         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10462         even when linking statically, for now.
10463
10464 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10465
10466         PR debug/42715
10467         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10468         without a cselib val.
10469         (count_uses): Accept MO_VAL_SET with no val on stores.
10470         (add_stores): Likewise.
10471
10472 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10473
10474         * var-tracking.c (check_value_val): Add a compile time assertion.
10475         (dv_is_decl_p): Simplify.
10476         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10477         gcc_assert if ENABLE_CHECKING.
10478
10479 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10480
10481         PR debug/42782
10482         * var-tracking.c: Include tree-flow.h.
10483         (mem_dies_at_call): New.
10484         (dataflow_set_preserve_mem_locs): Use it.
10485         (dataflow_set_remove_mem_locs): Likewise.
10486         (dump_var): Renamed from dump_variable.  Adjust all callers.
10487         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
10488         * Makefile.in (var-tracking.o): Adjust deps.
10489
10490 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
10491
10492         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10493
10494 2010-01-20  Richard Guenther  <rguenther@suse.de>
10495
10496         PR tree-optimization/42717
10497         * tree-ssa-dce.c (get_live_post_dom): Remove.
10498         (forward_edge_to_pdom): Take an arbitrary edge to copy
10499         degenerate PHI args from.
10500         (remove_dead_stmt): Use the first post-dominator even if it
10501         does not contain live statements as redirection destination.
10502
10503 2010-01-20  Richard Guenther  <rguenther@suse.de>
10504
10505         * tree-inline.c (estimate_num_insns): Handle EH builtins.
10506
10507 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10508
10509         * sel-sched.c (create_speculation_check): Remove set but not used
10510         variable twin.
10511         (try_transformation_cache): Remove set but not used variable ds.
10512         (calculate_privileged_insns): Remove set but not used variables
10513         cur_insn and min_spec_insn.
10514         (find_best_expr): Remove set but not used variable avail_n.
10515         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10516         variable e.
10517         * cgraphunit.c (assemble_thunk): Remove set but not used variable
10518         false_label.
10519         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10520         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10521         new_scop_exit_edge.
10522
10523 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
10524
10525         PR bootstrap/42786
10526         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10527         cpu types.  Add support for *-sse3 cpu types.
10528         (x86_64-*-*): Ditto.
10529
10530 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10531
10532         PR middle-end/42803
10533         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10534         argument, call initializer_constant_valid_p_1 instead of
10535         initializer_constant_valid_p, pass CACHE to it, return NULL
10536         immediately if first call returns NULL.
10537         (initializer_constant_valid_p_1): New function.
10538         (initializer_constant_valid_p): Use it.
10539
10540 2010-01-20  Thomas Quinot  <quinot@adacore.com>
10541
10542         * tree.def (PLACEHOLDER_EXPR): Fix comment.
10543
10544 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10545
10546         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10547         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10548         (loc_list_from_tree): Don't handle unsigned division.  Handle
10549         signed modulo using DW_OP_{over,over,div,mul,minus}.
10550         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10551         modulo instead of signed.
10552
10553 2010-01-20  DJ Delorie  <dj@redhat.com>
10554
10555         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10556         (Fpa): Pass it
10557         (h8300_emit_stack_adjustment): Propogate it.
10558         (push): Pass it.
10559         (h8300_expand_prologue): Likewise.
10560         (h8300_expand_epilogue): Likewise.
10561
10562 2010-01-19  Michael Matz  <matz@suse.de>
10563
10564         PR tree-optimization/41783
10565         * tree-data-ref.c (toplevel): Include flags.h.
10566         (dump_data_dependence_relation):  Also dump the inputs if the
10567         result will be unknown.
10568         (split_constant_offset_1): Look through some conversions.
10569         * tree-predcom.c (determine_roots_comp): Restart a new chain if
10570         the offset from last element is too large.
10571         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10572         (reassociate_to_the_same_stmt): Handle vector registers.
10573         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10574         (e.g. conversions).
10575         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10576         wide_prolog_niters argument, emit widening instructions.
10577         (vect_do_peeling_for_alignment): Adjust caller, use widened
10578         variant of the iteration cound.
10579         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10580
10581 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10582
10583         PR target/38697
10584         * config/arm/neon-testgen.m (emit_automatics): New parameter
10585         features. Adjust for Fixed_return_reg feature.
10586         (test_intrinsic): Call emit_automatics with new feature.
10587         * config/arm/neon.ml: Update copyright years.
10588         (features): New Fixed_return_reg feature.
10589         (ops): Update feature for Vget_low.
10590
10591 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
10592
10593         PR tree-optimization/42719
10594         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10595         stmt uses.
10596
10597         PR debug/42728
10598         * fwprop.c (all_uses_available_at): Return false if def_set dest
10599         is a REG that is used in def_insn.
10600
10601 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
10602
10603         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10604
10605         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10606         Add argument names.
10607
10608         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10609
10610         * target.h (struct gcc_target) <secondary_reload>: Change type
10611         of last argument to secondary_reload_info *.
10612
10613 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
10614
10615         PR target/42774
10616         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
10617         memory references with unaligned offsets.  Remove CQImode handling.
10618         (unaligned_memory_operand): Return 1 for memory references with
10619         unaligned offsets.  Remove CQImode handling.
10620
10621 2010-01-18  Richard Guenther  <rguenther@suse.de>
10622
10623         PR middle-end/39954
10624         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10625         builtin calls.
10626
10627 2010-01-18  Richard Guenther  <rguenther@suse.de>
10628
10629         PR tree-optimization/42781
10630         * tree-ssa-structalias.c (find_what_var_points_to): Skip
10631         restrict processing only if the original variable was artificial.
10632
10633 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
10634
10635         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10636         find number of popped argument bytes.
10637
10638         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10639         Fix the text that describes the return value for invalid insns.
10640
10641         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
10642
10643         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10644         Clarify what 'cost of the -dependence' is.  Fix quoting.
10645
10646         * toplev.c (default_get_pch_validity): Rename argument to "sz".
10647         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10648
10649 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
10650
10651         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10652         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10653
10654 2010-01-17  Richard Guenther  <rguenther@suse.de>
10655
10656         PR middle-end/42248
10657         * function.c (split_complex_args): Take a VEC to modify.
10658         (assign_parms_augmented_arg_list): Build a VEC instead of
10659         a chain of PARM_DECLs.
10660         (assign_parms_unsplit_complex): Take a VEC of arguments.
10661         Do not fixup unmodified parms.
10662         (assign_parms): Deal with the VEC.
10663         (gimplify_parameters): Likewise.
10664
10665 2010-01-17  Richard Guenther  <rguenther@suse.de>
10666
10667         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10668         node existence check.
10669         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10670         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10671         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10672         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10673         (gimple_execute_on_growing_pred): Likewise.
10674
10675 2010-01-17  Richard Guenther  <rguenther@suse.de>
10676
10677         PR tree-optimization/42773
10678         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10679         (compute_antic_aux): Likewise.
10680         (compute_partial_antic_aux): Likewise.
10681
10682 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
10683
10684         PR debug/42767
10685         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10686         and US_TRUNCATE.
10687
10688 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
10689
10690         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
10691         appearance.
10692
10693         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
10694         Fix markup for strict argument.
10695
10696         (TARGET_SCHED_REORDER2): Fix argument types.
10697
10698         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
10699         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
10700
10701         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
10702         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
10703
10704         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
10705         Add argument name.
10706
10707         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
10708         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
10709         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
10710         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
10711         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
10712
10713         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
10714
10715         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
10716
10717         (TARGET_ASM_RELOC_RW_MASK): Add return type.
10718         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
10719
10720         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
10721
10722         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
10723         Use prototype.
10724
10725         (TARGET_ASM_NAMED_SECTION): Fix argument list.
10726
10727         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
10728         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
10729
10730         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
10731
10732         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
10733
10734         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
10735         referring to it.  Fix language.
10736
10737         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
10738
10739         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
10740
10741         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
10742
10743         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
10744
10745         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
10746         '@var{stream}.  Remove stray 'and'.
10747
10748         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
10749
10750         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
10751
10752         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
10753
10754         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
10755         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
10756
10757         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
10758         Fix description of return value.
10759         Rename argument "sz" to "len."
10760
10761         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
10762         Clarify meaning of 'true' return value.
10763
10764         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
10765
10766         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
10767         rep_mode versus mode_rep.
10768
10769         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
10770
10771         (TARGET_BUILTIN_DECL): Fix name.
10772
10773         (TARGET_COMMUTATIVE_P): Fix type of first argument.
10774
10775         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
10776
10777         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
10778
10779         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
10780
10781         (TARGET_RELAXED_ORDERING): Use @deftypevr.
10782
10783         (TARGET_GET_DRAP_RTX): Note that this is a hook.
10784         Clarify language.
10785
10786         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
10787         Rename argument tm_fn to md_fn.
10788
10789         (TARGET_OPTION_PRINT): Fix argument list.
10790
10791 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
10792
10793         PR target/42664
10794         * config/i386/i386.c (ix86_fixup_binary_operands):
10795         Revert FMA4 fixup of operands.
10796
10797 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10798
10799         PR gcc/42525
10800         * Makefile.in (write_entries_to_file, install-plugin):
10801         Use \012 instead of \n with tr.
10802
10803 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
10804
10805         * configure.ac (HAVE_AS_REF): New C macro.
10806         * configure: Regenerate.
10807         * config.in: Likewise.
10808         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
10809         if HAVE_AS_REF.
10810         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
10811         if HAVE_AS_REF.
10812
10813 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
10814
10815         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
10816
10817         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
10818
10819         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
10820
10821         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
10822
10823         (TARGET_IN_SMALL_DATA_P): Fix argument type.
10824
10825         (TARGET_BINDS_LOCAL_P): Fix argument type.
10826
10827         (TARGET_ASM_FILE_END): Use prototype.
10828
10829         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
10830
10831         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
10832
10833         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
10834
10835         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
10836
10837         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
10838         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
10839
10840         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
10841         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
10842
10843         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
10844         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
10845         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
10846         (TARGET_ADDR_SPACE_CONVERT): Likewise.
10847
10848         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
10849
10850         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
10851
10852         (TARGET_INIT_BUILTINS): Use prototype.
10853
10854         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
10855         Put 'const char *' in braces.  Fix parameter types.
10856         (TARGET_INVALID_CONVERSION): Fix parameter types.
10857         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
10858         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
10859
10860         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
10861         Fix argument type.
10862
10863         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
10864
10865         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
10866
10867 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
10868
10869         * doc/tm.texi (TARGET_HELP): Fix return type.
10870
10871         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
10872         in braces.  Fix argument types.
10873
10874         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
10875
10876         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
10877
10878         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
10879
10880         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
10881         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
10882
10883         (TARGET_MANGLE_TYPE): Fix argument types.
10884
10885         (TARGET_IRA_COVER_CLASSES): Use prototype.
10886
10887         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
10888
10889         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
10890
10891         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
10892
10893         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
10894
10895         (TARGET_CALLEE_COPIES): Fix argument types.
10896
10897         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
10898
10899         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
10900
10901         (TARGET_FUNCTION_VALUE): Fix argument types.
10902
10903         (TARGET_RETURN_IN_MSB): Fix argument type.
10904
10905         (TARGET_RETURN_IN_MEMORY): Fix argument types.
10906
10907         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
10908
10909         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
10910
10911         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
10912         agree with return type.
10913
10914         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
10915
10916 2010-01-15  Jing Yu  <jingyu@google.com>
10917
10918         PR rtl-optimization/42691
10919         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
10920         a pseudo to a constant and are merged, and adjust comments.
10921
10922 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10923
10924         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
10925
10926 2010-01-15  Richard Guenther  <rguenther@suse.de>
10927
10928         PR middle-end/42739
10929         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
10930         labels of computed or non-local gotos to the destination.
10931         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
10932         landing pad label is the first label.
10933
10934 2010-01-15  Richard Guenther  <rguenther@suse.de>
10935
10936         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
10937
10938 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10939
10940         PR target/42747
10941         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
10942         to allow generation of the xssqrtdp instruction on power7.
10943         (sqrtdf2_fpr): Ditto.
10944
10945 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
10946
10947         PR middle-end/42674
10948         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
10949         functions with noreturn attribute.
10950
10951         PR c++/42608
10952         * varasm.c (declare_weak): Add weak attribute to decl if it
10953         doesn't have one already.
10954         (assemble_external): Only add decls to weak_decls if they also
10955         have weak attribute.
10956
10957 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
10958
10959         * var-tracking.c (var_reg_delete): Don't delete the association
10960         between REGs and values or one-part variables if the register
10961         isn't clobbered.
10962
10963 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
10964
10965         PR debug/42657
10966         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
10967         because its first operand is a non-localized variable.
10968
10969 2010-01-14  Martin Jambor  <mjambor@suse.cz>
10970
10971         PR tree-optimization/42706
10972         * tree-sra.c (encountered_recursive_call): New variable.
10973         (encountered_unchangable_recursive_call): Likewise.
10974         (sra_initialize): Initialize both new variables.
10975         (callsite_has_enough_arguments_p): New function.
10976         (scan_function): Call decl and flags check only for IPA-SRA, check
10977         whether there is a recursive call and whether it has enough arguments.
10978         (all_callers_have_enough_arguments_p): New function.
10979         (convert_callers): Look for recursive calls only when
10980         encountered_recursive_call is set.
10981         (ipa_early_sra): Bail out either if
10982         !all_callers_have_enough_arguments_p or
10983         encountered_unchangable_recursive_call.
10984
10985 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10986
10987         * sel-sched.c: Add 2010 to copyright years.
10988         * sel-sched-ir.c: Likewise.
10989         * sel-sched-ir.h: Likewise.
10990
10991 2010-01-14  Martin Jambor  <mjambor@suse.cz>
10992
10993         PR tree-optimization/42714
10994         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
10995         constructors specially.
10996
10997 2010-01-14  Andi Kleen  <ak@linux.intel.com>
10998
10999         * config/i386/drivers-i386.c (detect_caches_intel):
11000         Add l2sizekb parameter and fill in.
11001         (host_detect_local_cpu): Add l2sizekb, fill in.
11002         Add Atom small cache heuristic.
11003
11004 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11005
11006         * config/i386/drivers-i386.c (detect_caches_cpuid4):
11007         Add level3 parameter and fill in.
11008         (detect_caches_intel): Handle level3 cache.
11009
11010 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11011
11012         * config/i386/drivers-i386.c (host_detect_local_cpu):
11013         Fix core duo detection.
11014
11015 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11016
11017         * config/i386/drivers-i386.c (host_detect_local_cpu):
11018         Fix Atom detection.
11019
11020 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11021
11022         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11023         (rs6000_variable_issue_1): this.  Use...
11024         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
11025
11026 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11027
11028         * sel-sched-ir.c (sel_restore_other_notes): Rename to
11029         sel_restore_notes.  Update all callers.  Call reemit_notes
11030         for all insns.
11031
11032 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11033
11034         PR rtl-optimization/42246
11035         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11036         loops.
11037
11038 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11039
11040         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11041         all successors is the same as number of successors in current region.
11042
11043 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11044
11045         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11046         to rename is not separable.  Otherwise check that its LHS is not NULL.
11047
11048 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11049
11050         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
11051
11052 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11053
11054         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11055         available registers when failed to discover LHS register class.
11056         Fix indentation.  Update comment.
11057
11058 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11059             Alexander Monakov  <amonakov@ispras.ru>
11060
11061         PR rtl-optimization/42389
11062         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11063         to can_issue_more.
11064         (advance_state_on_fence): Likewise.
11065         (sel_target_adjust_priority): Print debug output only when
11066         sched_verbose >= 4, not 2.
11067         (get_expr_cost): Do not issue all unique insns on the next cycle.
11068         (fill_insns): Initialize can_issue_more from the value saved
11069         with the fence.
11070         * sel-sched-ir.c (flist_add): New parameter issue_more.
11071         Init FENCE_ISSUE_MORE with it.
11072         (merge_fences): Likewise.
11073         (init_fences): Update call to flist_add.
11074         (add_to_fences, add_clean_fence_to_fences)
11075         (add_dirty_fence_to_fences): Likewise.
11076         (move_fence_to_fences): Update call to merge_fences.
11077         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11078         sched groups.
11079         * sel-sched-ir.h (struct _fence): New field issue_more.
11080         (FENCE_ISSUE_MORE): New accessor macro.
11081
11082 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11083
11084         PR rtl-optimization/42388
11085         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11086         that have no predecessors nor successors.  Do not call move_bb_info
11087         for empty blocks outside of current region.
11088
11089 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11090
11091         PR rtl-optimization/42294
11092         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11093         * sel-sched.c (move_exprs_to_boundary): Transitively add all
11094         originators' originators.
11095
11096 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11097
11098         PR rtl-optimization/39453
11099         PR rtl-optimization/42246
11100         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11101         for pipelining_p.
11102         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11103
11104 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11105             Alexander Monakov  <amonakov@ispras.ru>
11106
11107         PR middle-end/42245
11108         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
11109         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
11110         argument.  Update all callers.
11111         (tidy_control_flow): ... and here.  Recompute topological order
11112         of basic blocks in region if necessary.
11113         (sel_redirect_edge_and_branch): Change return type.  Return true
11114         if topological order might have been invalidated.
11115         (purge_empty_blocks): Export and move from...
11116         * sel-sched.c (purge_empty_blocks): ... here.
11117         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11118         (maybe_tidy_empty_bb): Delete prototype.
11119         (purge_empty_blocks): Declare.
11120
11121 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
11122
11123         PR rtl-optimization/42249
11124         * sel-sched.c (try_replace_dest_reg): When chosen register
11125         and original register is the same, do not bail out early, but
11126         still check all original insns for validity of replacing destination
11127         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11128         in this case.
11129
11130 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11131
11132         PR c/42721
11133         Port from no-undefined-overflow branch:
11134         2009-03-09  Richard Guenther  <rguenther@suse.de>
11135
11136         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11137
11138 2010-01-14  Richard Guenther  <rguenther@suse.de>
11139
11140         PR lto/42665
11141         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11142
11143 2010-01-14  Ira Rosen  <irar@il.ibm.com>
11144
11145         PR tree-optimization/42709
11146         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11147         as scalar type in creation of constant vector operand.
11148
11149 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11150
11151         PR testsuite/42414
11152         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11153         (check-parallel-%): Match `testsuite' directory component only
11154         at the end.
11155
11156 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
11157
11158         PR translation/39521
11159         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11160         strings with _().
11161
11162 2010-01-13  Richard Guenther  <rguenther@suse.de>
11163
11164         PR tree-optimization/42730
11165         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11166         offset zero.
11167
11168 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
11169
11170         PR target/pr42542
11171         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11172         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11173         them signed.
11174
11175 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11176
11177         * config/bfin/libgcc-bfin.ver: Regenerate based on current
11178         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
11179         ___umulsi3_highpart.
11180
11181         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11182         rather than schedule_insns if the pass is enabled.
11183
11184 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11185
11186         PR tree-optimization/42704
11187         * tree-sra.c (sra_modify_assign): Do not delete assignments to
11188         SSA_NAMEs.
11189
11190 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11191
11192         PR tree-optimization/42703
11193         * tree-sra.c (analyze_access_subtree): Check that we can build a
11194         reference to the original data within the aggregate.
11195
11196 2010-01-13  Richard Guenther  <rguenther@suse.de>
11197
11198         PR tree-optimization/42705
11199         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11200
11201 2010-01-13  Richard Guenther  <rguenther@suse.de>
11202
11203         PR middle-end/42716
11204         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11205
11206 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
11207
11208         PR debug/41371
11209         * var-tracking.c (values_to_unmark): New variable.
11210         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11211         values_to_unmark vector.  Moved body to...
11212         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
11213         instead queue it into values_to_unmark vector.
11214         (vt_find_locations): Free values_to_unmark vector.
11215
11216 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
11217
11218         * config/s390/s390.c (override_options): Set
11219         default of max-pending-list-length to 256
11220
11221 2010-01-13  Richard Guenther  <rguenther@suse.de>
11222
11223         PR lto/42678
11224         * tree-pass.h (PROP_gimple_lcx): New.
11225         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11226         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11227         before the final cleanup_eh.
11228         (dump_properties): Dump PROP_gimple_lcx.
11229         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11230         (tree_lower_complex_O0): Remove.
11231         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11232         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
11233         tree_lower_complex, schedule TODO_update_ssa.
11234         * lto-streamer-out.c (output_function): Stream the functions
11235         properties.
11236         * lto-streamer-in.c (input_function): Likewise.
11237         (lto_read_body): Do not override them here.
11238
11239 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
11240
11241         PR c/42708
11242         * c-typeck.c (build_c_cast): Fold value cast to union type before
11243         wrapping it in a CONSTRUCTOR.
11244
11245 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11246
11247         PR rtl-optimization/42699
11248         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11249         involved.
11250
11251 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11252
11253         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11254         SUBTARGET_WARN_UNUSED_SPEC): Move ...
11255         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11256         SUBTARGET_WARN_UNUSED_SPEC): ... here
11257         * config/mips/iris5.h (LIBGCC_SPEC): Define.
11258
11259 2010-01-12  Julian Brown  <julian@codesourcery.com>
11260
11261         * config/arm/neon-schedgen.ml (Utils): Don't try to
11262         open missing module.
11263         (find_with_result): New.
11264
11265 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11266
11267         PR debug/42662
11268         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11269         sharing when canonicalizing ({lt,ge}u (plus a b) b).
11270
11271         PR tree-optimization/42645
11272         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
11273         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11274         decl_map, set processing_debug_stmt to -1 and return name without
11275         any remapping.
11276
11277 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
11278
11279         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11280         binutils version, and reword target configuration description.
11281
11282 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11283
11284         * config/avr/avr.h (LINKER_NAME): Remove.
11285
11286 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
11287
11288         PR target/42416
11289         * config/rs6000/rs6000.c (rs6000_override_options): On targets
11290         that support VSX, warn for -mno-altivec if vsx is not disabled,
11291         and disable vsx.
11292
11293 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
11294             Shujing Zhao  <pearly.zhao@oracle.com>
11295
11296         PR translation/42469
11297         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11298         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11299         character between option name and help text.
11300         * c.opt (imultilib): Likewise.
11301
11302 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
11303
11304         * lto-streamer-out.c (output_unreferenced_globals): Output static
11305         variables.
11306
11307 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
11308
11309         PR rtl-optimization/42621
11310         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11311         optimizing for size.
11312         (duplicate_computed_gotos): Remove now-redundant check.
11313
11314 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
11315
11316         PR target/37454
11317         * configure.ac: Save and restore LDFLAGS and LIBS
11318         * configure: Regenerate.
11319
11320 2010-01-10  Richard Guenther  <rguenther@suse.de>
11321
11322         PR middle-end/42667
11323         * builtins.c (fold_builtin_strlen): Add type argument and
11324         convert the resulting length to it.
11325         (fold_builtin_1): Adjust.
11326
11327 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11328
11329         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11330         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11331         1 insn.
11332         (num_insns_constant_wide): Adjust for that change.
11333
11334 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11335
11336         PR debug/42631
11337         * web.c (union_defs): Add used argument, to combine uses of
11338         uninitialized regs.
11339         (entry_register): Adjust type and tests of used argument.
11340         (web_main): Widen used for new use.  Pass it to union_defs.
11341         * df.h (union_defs): Adjust prototype.
11342
11343 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11344
11345         PR debug/42630
11346         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11347         uses in new incoming argument.  Free body.
11348         (reset_debug_uses_in_loop): New.
11349         (analyze_insn_to_expand_var): Call the latter if the former found
11350         anything.  Fix whitespace.  Reject invalid dest overlaps before
11351         going through all insns in the loop.
11352
11353 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11354
11355         PR debug/42629
11356         * haifa-sched.c (dying_use_p): Debug insns don't count.
11357
11358 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11359
11360         PR middle-end/42363
11361         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11362         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11363         (verify_gimple_call): Reject LHS in noreturn calls.
11364
11365 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11366
11367         PR debug/42604
11368         PR debug/42395
11369         * tree-vect-loop-manip.c (adjust_info): New type.
11370         (adjust_vec): New pointer to vector.
11371         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11372         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11373         (slpeel_update_phis_for_duplicate_loop): Use them.
11374         (slpeel_update_phi_nodes_for_guard1): Likewise.
11375         (slpeel_update_phi_nodes_for_guard2): Likewise.
11376         (slpeel_tree_peel_loop_to_edge): Likewise.
11377         (vect_update_ivs_after_vectorizer): Likewise.
11378
11379 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11380
11381         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11382         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11383
11384 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11385
11386         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11387         bogus uninitialized warning.
11388
11389 2010-01-09  Richard Guenther  <rguenther@suse.de>
11390
11391         PR middle-end/42512
11392         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11393         the evolution is compatible with the initial condition.
11394
11395 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11396
11397         * gcc.c (process_command): Update copyright notice dates.
11398         * gcov.c (print_version): Likewise.
11399         * gcov-dump.c (print_version): Likewise.
11400         * mips-tfile.c (main): Likewise.
11401         * mips-tdump.c (main): Likewise.
11402
11403 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11404
11405         PR target/41885
11406         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11407         (rotlhi3): Delete.
11408         (rotlhi3_8): Delete.
11409         (rotlsi3): Delete.
11410         (rotlsi3_8): Delete.
11411         (rotlsi3_16): Delete.
11412         (rotlsi3_24): Delete.
11413         (rotl<mode>3): New.
11414         (*rotw<mode>3): New.
11415         (*rotb<mode>3): New.
11416         * config/avr/avr.c (avr_rotate_bytes): New function.
11417         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11418
11419 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
11420
11421         PR target/37454
11422         * configure.ac: Modify -rdynamic check.
11423         * configure: Regenerate.
11424
11425 2010-01-08  DJ Delorie  <dj@redhat.com>
11426
11427         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11428         register popping order.
11429
11430 2010-01-08  Richard Guenther  <rguenther@suse.de>
11431
11432         PR lto/42528
11433         * c.opt (fsigned-char): Also let LTO handle this option.
11434         (funsigned-char): Likewise.
11435
11436 2010-01-07  Richard Guenther  <rguenther@suse.de>
11437
11438         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11439         (gimple_op): Likewise.
11440         (gimple_op_ptr): Likewise.
11441         (gimple_assign_set_lhs): Remove gcc_assert.
11442         (gimple_assign_set_rhs1): Likewise.
11443         (gimple_assign_set_rhs2): Likewise.
11444         (gimple_call_set_lhs): Likewise.
11445         (gimple_call_set_fn): Likewise.
11446         (gimple_call_set_fndecl): Likewise.
11447         (gimple_call_fndecl): Likewise.
11448         (gimple_call_return_type): Likewise.
11449         (gimple_call_set_chain): Likewise.
11450         (gimple_call_num_args): Likewise.
11451         (gimple_call_set_arg): Likewise.
11452         (gimple_cond_set_code): Likewise.
11453         (gimple_cond_set_lhs): Likewise.
11454         (gimple_cond_set_rhs): Likewise.
11455         (gimple_cond_set_true_label): Likewise.
11456         (gimple_cond_set_false_label): Likewise.
11457         (gimple_label_set_label): Likewise.
11458         (gimple_goto_set_dest): Likewise.
11459         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11460         (gimple_debug_bind_get_value): Likewise.
11461         (gimple_debug_bind_get_value_ptr): Likewise.
11462         (gimple_debug_bind_set_var): Likewise.
11463         (gimple_debug_bind_set_value): Likewise.
11464         (gimple_debug_bind_reset_value): Likewise.
11465         (gimple_debug_bind_has_value_p): Likewise.
11466         (gimple_return_retval_ptr): Remove gcc_assert.
11467         (gimple_return_retval): Likewise.
11468         (gimple_return_set_retval): Likewise.
11469         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11470         (safe_referenced_var_iterator): Remove.
11471         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11472         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11473         (fill_referenced_var_vec): Remove.
11474         (first_readonly_imm_use): Remove redundant gcc_assert.
11475         (phi_arg_index_from_use): Combine gcc_asserts.
11476         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11477         (first_imm_use_stmt): Remove redundant gcc_assert.
11478         * tree-cfg.c (verify_gimple_call): Verify function and chain
11479         operands.  Verify arguments.
11480         (verify_types_in_gimple_stmt): Verify condition code and labels.
11481
11482 2010-01-07  Richard Guenther  <rguenther@suse.de>
11483
11484         PR tree-optimization/42641
11485         * sese.c (rename_map_elt_info): Use the SSA name version, do
11486         not hash pointers.
11487
11488 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
11489
11490         PR tree-optimization/42625
11491         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11492         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11493
11494 2010-01-07  Duncan Sands  <baldrick@free.fr>
11495
11496         * Makefile.in (PLUGIN_HEADERS): Add version.h.
11497
11498 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
11499
11500         PR target/42511
11501         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11502         note itself is not function_invariant_p.
11503
11504 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
11505
11506         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11507         Do not add the DF_NOTE problem.
11508         * store-motion.c (execute_rtl_store_motion): Likewise.
11509
11510 2010-01-07  Martin Jambor  <mjambor@suse.cz>
11511
11512         PR tree-optimization/42157
11513         * tree-sra.c (compare_access_positions): Stabilize sort if both
11514         accesses have integer types, return zero immediately if they are the
11515         same.
11516
11517 2010-01-06  Richard Henderson  <rth@redhat.com>
11518
11519         PR middle-end/41883
11520         * haifa-sched.c (add_to_note_list): Merge into ...
11521         (concat_note_lists): ... here, and ...
11522         (unlink_other_notes, rm_other_notes): Merge into...
11523         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
11524         NOTE_INSN_EPILOGUE_BEG.
11525
11526 2010-01-06  Richard Guenther  <rguenther@suse.de>
11527
11528         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11529         not inline regular functions into always-inline functions.
11530
11531 2010-01-06  Nick Clifton  <nickc@redhat.com>
11532
11533         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11534         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11535         used together.
11536         (OVERRIDE_OPTIONS): Delete.
11537         (OPTIMIZATION_OPTIONS): Define.
11538         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11539         * config/rx/rx.c (rx_handle_option): Issue an error message if
11540         -mcpu=rx200 and -fpu are used together.
11541         (rx_set_optimization_options): New function.  Issue an error
11542         message if an optimization attribute attempts to reset the FPU/
11543         math optimization pairing.
11544         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11545         * config/rx/rx.opt: Set the default to 32-bit doubles.
11546         * config/rx/t-rx: Add multilibs for -nofpu option.
11547         * doc/invoke.texi: Update documentation of RX options.
11548
11549 2010-01-06  Richard Guenther  <rguenther@suse.de>
11550
11551         * tree-ssa-pre.c (name_to_id): New global.
11552         (alloc_expression_id): Simplify SSA name handling.
11553         (lookup_expression_id): Likewise.
11554         (init_pre): Zero name_to_id.
11555         (fini_pre): Free it.
11556
11557 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
11558
11559         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11560
11561 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11562
11563         PR target/42542
11564         * config/i386/sse.md (smaxv2di3): New.
11565         (umaxv2di3): Likewise.
11566         (sminv2di3): Likewise.
11567         (uminv2di3): Likewise.
11568
11569 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11570
11571         PR target/42564
11572         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11573         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11574         (legitimize_tls_address): Likewise.
11575         (sparc_tls_referenced_p): Likewise.
11576         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11577         and adjust calls to legitimize_pic_address.
11578         (legitimate_constant_p) Use sparc_tls_referenced_p.
11579         (legitimate_pic_operand_p): Likewise.
11580         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11581         (sparc_tls_symbol_ref_1): Delete.
11582         (sparc_tls_referenced_p): Make static, recognize specific patterns.
11583         (legitimize_tls_address): Make static, handle CONST patterns.
11584         (legitimize_pic_address): Make static, remove unused parameter and
11585         adjust recursive calls.
11586         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11587         and adjust call to legitimize_pic_address.
11588         (sparc_output_mi_thunk): Likewise.
11589
11590 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
11591             H.J. Lu  <hongjiu.lu@intel.com>
11592
11593         PR target/42542
11594         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11595         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11596         operands to make them signed.
11597
11598         Revert:
11599         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11600
11601         PR target/42542
11602         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11603         GTU to GT for V4SI and V2DI.
11604
11605         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11606         (umin<mode>3): Removed.
11607         (uminv8hi3): New.
11608         (uminv4si3): Likewise.
11609
11610 2010-01-05  Martin Jambor  <mjambor@suse.cz>
11611
11612         PR tree-optimization/42462
11613         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
11614         current_function_decl to helper functions and macros.
11615
11616 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11617
11618         PR bootstrap/41771
11619         * flags.h: Don't include real.h.
11620         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11621         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11622         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11623         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11624         * dominance.c: Update copyright.
11625         * gimple.c (walk_gimple_op): Remove inline.
11626         * tree-ssa-reassoc.c: Include real.h.
11627         * Makefile.in (FLAGS_H): Remove $(REAL_H).
11628         (tree-ssa-reassoc.o): Depend on $(REAL_H).
11629
11630 2010-01-05  Nick Clifton  <nickc@redhat.com>
11631
11632         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11633         register to push into the stack frame when the accumulator has to
11634         be saved during interrupts.
11635
11636 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
11637
11638         * doc/invoke.texi: Remove the documentation about option
11639         -Wunreachable-code.
11640         * common.opt (Wunreachable-code):  Preserved for backward
11641         compatibility.
11642         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11643         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11644         the backward compatibility flag section.
11645
11646 2010-01-05  Richard Guenther  <rguenther@suse.de>
11647
11648         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11649
11650 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
11651
11652         PR other/42611
11653         * cfgexpand.c (expand_one_var): Diagnose too large variables.
11654
11655         PR tree-optimization/42508
11656         * tree-sra.c (convert_callers): Check for recursive call
11657         by comparing cgraph nodes instead of decls.
11658         (modify_function): Call ipa_modify_formal_parameters also
11659         on all same_body aliases.
11660
11661         * cgraphunit.c (cgraph_materialize_all_clones): Compare
11662         cgraph nodes when checking for same_body aliases.
11663
11664 2010-01-05  Richard Guenther  <rguenther@suse.de>
11665
11666         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11667         allocation and lookup.
11668         (get_or_alloc_expr_for_constant): Likewise.
11669         (phi_translate): Sink allocation.
11670
11671 2010-01-04  Richard Guenther  <rguenther@suse.de>
11672
11673         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11674         a new entry only if needed.
11675         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11676         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11677         hashtable lookup.
11678         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11679         the result array.
11680         (phi_translate): Handle CONSTANTs early.
11681
11682 2010-01-04  Martin Jambor  <mjambor@suse.cz>
11683
11684         PR tree-optimization/42398
11685         * tree-sra.c (struct access): Removed flag grp_different_types.
11686         (dump_access): Do not dump the removed flag.
11687         (sort_and_splice_var_accesses): Do not set the removed flag.
11688         (sra_modify_expr): Check for type compatibility directly.
11689
11690 2010-01-04  Martin Jambor  <mjambor@suse.cz>
11691
11692         PR tree-optimization/42366
11693         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
11694         edges with variable number of parameters.
11695         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
11696         flag instead of asserting it.
11697         (ipa_read_node_info): Read uses_analysis_done flag.
11698
11699 2010-01-04  Richard Guenther  <rguenther@suse.de>
11700
11701         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
11702         iterative_hash_* as intended.
11703         (vn_reference_compute_hash): Likewise.  Simplify hashing
11704         SSA names.
11705         (vn_reference_lookup_2): Likewise.
11706         (vn_nary_op_compute_hash): Likewise.
11707         (vn_phi_compute_hash): Likewise.
11708         (expressions_equal_p): Remove strange code.
11709         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
11710         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
11711         (bitmap_insert_into_set_1): Take value-id as parameter.
11712         (add_to_value): Pass it.
11713         (bitmap_insert_into_set): Likewise.
11714         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
11715
11716 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
11717
11718         PR driver/42442
11719         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
11720         (do_self_spec): For switches with SWITCH_IGNORE set set also
11721         SWITCH_IGNORE_PERMANENTLY.
11722         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
11723         of SWITCH_IGNORE.
11724
11725 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
11726
11727         * lto-streamer-out.c (output_unreferenced_globals): Output the full
11728         tree of an unreferenced global var.
11729
11730 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11731
11732         PR target/42542
11733         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11734         GTU to GT for V4SI and V2DI.
11735
11736         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11737         (umin<mode>3): Removed.
11738         (uminv8hi3): New.
11739         (uminv4si3): Likewise.
11740
11741 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11742
11743         PR lto/42581
11744         * collect2.c (main): Turn on trace in collect2 if -v is passed
11745         to gcc with LTO.
11746
11747 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
11748
11749         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
11750         description of expression operand.
11751
11752 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
11753
11754         * configure.ac: Add install-html to target_list for Make-hooks.
11755         * configure: Regenerate.
11756         * fortran/Make-lang.in (F95_HTMLFILES): New.
11757         (fortran.html): Use it.
11758         (fortran.install-html): New.
11759         * Makefile.in (install-html): Add lang.install-html.
11760         * java/Make-lang.in (JAVA_HTMLFILES): New.
11761         (java.html): Use it.
11762         (java.install-html): New.
11763         * objc/Make-lang.in (objc.install-html): New.
11764         * objcp/Make-lang.in (obj-c++.install-html): New.
11765         * cp/Make-lang.in (c++.install-html): New.
11766         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
11767         * lto/Make-lang.in (lto.install-html): New.
11768
11769 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11770
11771         PR lto/42520
11772         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
11773
11774 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
11775
11776         PR rtl-optimization/41862
11777         * store-motion.c (store_killed_in_insn, compute_store_table,
11778         remove_reachable_equiv_notes, replace_store_insn,
11779         build_store_vectors): Ignore all DEBUG_INSNs.
11780
11781 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11782
11783         PR lto/41564
11784         * common.opt: Add dumpdir.
11785
11786         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
11787         isn't specified.
11788         (option_map): Add --dumpdir.
11789
11790         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
11791
11792         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
11793
11794         * opts.c (decode_options): Try dump_dir_name first if
11795         dump_base_name isn't an absolute path.
11796         (common_handle_option): Handle OPT_dumpdir.
11797
11798         * toplev.c (dump_dir_name): New.
11799         (print_switch_values): Also ignore -dumpdir.
11800
11801         * toplev.h (dump_dir_name): New.
11802
11803 2010-01-03  Richard Guenther  <rguenther@suse.de>
11804
11805         PR tree-optimization/42589
11806         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
11807         double-word expansion of bswap32.
11808
11809 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
11810
11811         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
11812         with BLOCK_FOR_INSN.
11813         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
11814         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
11815         noce_process_if_block): Likewise.
11816         * gcse.c (compute_local_properties, insert_expr_in_table,
11817         insert_set_in_table, canon_list_insert, find_avail_set,
11818         pre_insert_copy_insn): Likewise.
11819
11820         * basic-block.h (BLOCK_NUM): Move from here...
11821         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
11822
11823 2010-01-03  Richard Guenther  <rguenther@suse.de>
11824
11825         PR tree-optimization/42438
11826         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
11827         contains_may_not_return_call flag.
11828         (BB_MAY_NOTRETURN): New.
11829         (valid_in_sets): Trapping nary operations are not valid
11830         in blocks that may not return.
11831         (insert_into_preds_of_block): Remove check for trapping expressions.
11832         (compute_avail): Compute also BB_MAY_NOTRETURN.
11833
11834 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
11835
11836         * doc/invoke.texi: Add 2010 to copyright years.
11837
11838 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11839
11840         * config/sparc/sparc.c: Fix formatting nits.
11841
11842 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
11843             Alexander Monakov  <amonakov@ispras.ru>
11844
11845         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
11846
11847 2010-01-02  Richard Guenther  <rguenther@suse.de>
11848
11849         PR middle-end/42577
11850         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
11851         (simplify_switch_using_ranges): Mark to be removed edges
11852         as non-executable.
11853
11854 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11855
11856         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11857
11858         * collect2.c (scan_libraries): Add missing argument in call to
11859         scan_prog_file.
11860
11861 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
11862
11863         PR target/42448
11864         * config/alpha/predicates.md (aligned_memory_operand): Return false
11865         for CQImode.
11866         (unaligned_memory_operand): Return true for CQImode.
11867         * config/alpha/alpha.c (get_aligned_mem): Assert that location
11868         doesn not cross aligned SImode word boundary.
11869
11870 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
11871
11872         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
11873         Remove.
11874         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
11875         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
11876
11877 2010-01-02  Richard Guenther  <rguenther@suse.de>
11878
11879         PR lto/41597
11880         * toplev.c (compile_file): Emit LTO marker properly.  Change
11881         it to __gnu_lto_v1.
11882         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
11883
11884 2010-01-01  Richard Guenther  <rguenther@suse.de>
11885
11886         PR debug/42455
11887         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
11888
11889 2010-01-01  Richard Guenther  <rguenther@suse.de>
11890
11891         PR c/42570
11892         * c-decl.c (grokdeclarator): For zero-size arrays force
11893         structural equality checks as layout_type does.
11894
11895 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
11896
11897         * builtins.c: Update copyright to 2010.
11898
11899 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
11900
11901         PR lto/42531
11902         * lto-streamer-out.c (produce_asm): Revert the last change.
11903         (copy_function): Likewise.
11904
11905         * lto-streamer.c (lto_get_section_name): Skip any leading
11906         asterisk in name.
11907
11908 2010-01-01  Richard Guenther  <rguenther@suse.de>
11909
11910         PR middle-end/42559
11911         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
11912         for LABEL_DECLs.
11913
11914 \f
11915 Copyright (C) 2010 Free Software Foundation, Inc.
11916
11917 Copying and distribution of this file, with or without modification,
11918 are permitted in any medium without royalty provided the copyright
11919 notice and this notice are preserved.