OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-28  Julian Brown  <julian@codesourcery.com>
2
3         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4         (*thumb2_addsi3_compare0_scratch): New.
5         * config/arm/constraints.md (Pv): New.
6         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7         for ARM mode only.
8         (*addsi3_compare0_scratch): Likewise.
9
10 2010-05-28  Jan Hubicka  <jh@suse.cz>
11
12         * ipa-reference.c (add_static_var): Remove redundant all_module_statics check.
13         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis only
14         on local statics.
15
16 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17
18         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
19
20 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
21
22         PR bootstrap/44314
23         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
24         (OPTION_GLIBC): Define.
25
26 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27
28         PR debug/41048
29         * dwarf2out.c (double_int_type_size_in_bits): New function.
30         (round_up_to_align): Change first argument and return value to
31         double_int.
32         (field_byte_offset): Work internally on double_ints.
33
34         PR target/43636
35         * builtins.c (expand_movstr): Use a temporary pseudo instead
36         of target even when target is not NULL and not const0_rtx, but
37         fails movstr predicate.
38         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
39
40 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
41
42         * final.c (rest_of_clean_state): Use %m in errors instead of
43         strerror (errno).
44         * gengtype.c (read_input_list, close_output_files): Use xstrerror
45         instead of strerror.
46         * toplev.c (process_options): Use %m in errors instead of strerror
47         (errno).
48         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
49         (errno).
50
51 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
52
53         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
54         (ix86_canonical_va_list_type): Make static.  Add declaration.
55         (ix86_enum_va_list): Make static.  Reindent.
56         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
57         (ix86_canonical_va_list_type): Ditto.
58         (ix86_enum_va_list): Ditto.
59
60 2010-05-28  Richard Guenther  <rguenther@suse.de>
61
62         * lto-wrapper.c (run_gcc): With -save-temps generate a
63         user-visible ltrans filename.  Fixup ltrans unit numbering.
64
65 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
66
67         * c-common.c (c_common_nodes_and_builtins): Replace use
68         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
69         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
70         to ix86_enum_va_list.
71         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
72         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
73         (TARGET_ENUM_VA_LIST_P): Add hook description.
74         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
75         * target.h (gcc_target): Add enum_va_list hook.
76
77         PR bootstrap/44299
78         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
79         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
80         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
81
82 2010-05-28  Alan Modra  <amodra@gmail.com>
83
84         PR target/44266
85         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
86         emit_library_call machinery to set up __tls_get_addr calls.
87
88 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89
90         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
91
92 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
93
94         revert fix for PR c++/44188
95         * c-common.c (is_typedef_decl): Revert the moving of  this
96         definition ...
97         * tree.c (is_typedef_decl): ... here.
98         (typdef_variant_p): Revert the moving of this  definition
99         here from gcc/cp/tree.c.
100         * c-common.h (is_typedef_decl): Revert the moving of this
101         declaration ...
102         * tree.h (is_typedef_decl): ... here.
103         (typedef_variant_p): Revert the moving of this  declaration here
104         from gcc/cp/cp-tree.h
105         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
106         (gen_tagged_type_die): Revert the splitting out of ...
107         (gen_type_die_with_usage): ... this function. Revert the anonymous
108         tagged type handling.
109         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
110         typedefs naming anonymous tagged types.
111
112
113 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
114
115         * config/rs6000/rs6000-modes.def (PSImode): Delete.
116
117 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
118
119         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
120         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
121         throughout.
122         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
123         "xer" to "ca".
124         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
125         XER_REGS to CA_REGS throughout.
126         * config/rs6000/rs6000.h: Same.
127         (ADDITIONAL_REGISTER_NAMES): Add "xer".
128         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
129         that mode_iterator "P" is the size for arithmetic carries as well.
130         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
131
132 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
133
134         PR bootstrap/44255
135         * combine.c (struct rtx_subst_pair): Define unconditionally.
136         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
137         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
138         Call make_compound_operation on pair->to.
139         (propagate_for_debug): Don't call make_compound_operation here.
140         Always use simplify_replace_fn_rtx.
141
142 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
143
144         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
145         * config/xtensa/xtensa.c (override_options): Check
146           TARGET_FORCE_NO_PIC and set flag_pic.
147         * config/xtensa/xtensa.opt: Document -mforce-no-pic
148
149 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
150
151         PR bootstrap/44299
152         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
153         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
154
155 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
156
157         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
158         toplev.h.
159         * diagnostic.c: Don't include toplev.h.
160         (progname): Define.  Moved from toplev.c.
161         (seen_error): New function.
162         * diagnostic.h: Include diagnostic-core.h.
163         (diagnostic_t, emit_diagnostic): Don't declare here.
164         * toplev.c (progname): Move to toplev.c.
165         (emit_debug_global_declarations, compile_file, finalize,
166         do_compile, toplev_main): Use seen_error.
167         * toplev.h: Include diagnostic-core.h.
168         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
169         internal_error, warning, warning_at, error, error_n, error_at,
170         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
171         verbatim, fnotice, progname): Move to diagnostic-core.h.
172         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
173         (expand_builtin_expect): Use seen_error.
174         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
175         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
176         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
177         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
178         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
179         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
180         errorcount for errors.
181         * c-opts.c (c_common_finish): Use seen_error.
182         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
183         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
184         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
185         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
186         (get_coverage_counts): Use seen_error.
187         * dwarf2out.c (dwarf2out_finish): Use seen_error.
188         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
189         gimplify_body): Use seen_error.
190         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
191         * ipa-pure-const.c (gate_pure_const): Use seen_error.
192         * ipa-reference.c (gate_reference): Use seen_error.
193         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
194         * lambda-code.c: Include diagnostic-core.h instead of
195         diagnostic.h.
196         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
197         * lto-compress.c: Include diagnostic-core.h instead of
198         diagnostic.h.
199         * lto-section-in.c: Include diagnostic-core.h instead of
200         diagnostic.h.
201         * lto-streamer-out.c: Include diagnostic-core.h instead of
202         diagnostic.h.
203         * lto-streamer.c: Include diagnostic-core.h instead of
204         diagnostic.h.
205         (gate_lto_out): Use seen_error.
206         * matrix-reorg.c: Include diagnostic-core.h instead of
207         diagnostic.h.
208         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
209         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
210         (gate_expand_omp, lower_omp_1): Use seen_error.
211         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
212         (rest_of_decl_compilation, rest_of_type_compilation,
213         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
214         * tree-cfg.c (label_to_block_fn): Use seen_error.
215         * tree-inline.c (optimize_inline_calls): Use seen_error.
216         * tree-mudflap.c (mudflap_finish_file): Use
217         seen_error.
218         * tree-optimize.c (gate_all_optimizations,
219         gate_all_early_local_passes, gate_all_early_optimizations): Use
220         seen_error.
221         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
222         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
223         (varpool_remove_unreferenced_decls,
224         varpool_assemble_pending_decls): Use seen_error.
225         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
226         (TOPLEV_H, DIAGNOSTIC_H): Update.
227         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
228         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
229         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
230         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
231         coverage.o, lambda-code.o): Update dependencies.
232
233 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
234
235         PR c++/44188
236         * c-common.c (is_typedef_decl): Move this definition ...
237         * tree.c (is_typedef_decl): ... here.
238         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
239         * c-common.h (is_typedef_decl): Move this declaration ...
240         * tree.h (is_typedef_decl): ... here.
241         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
242         * dwarf2out.c (is_naming_typedef_decl): New function.
243         (gen_tagged_type_die): Split out of ...
244         (gen_type_die_with_usage): ... this function. When an anonymous
245         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
246         is emitted for the typedef.
247         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
248         anonymous tagged types.
249
250 2010-05-27  Jason Merrill  <jason@redhat.com>
251
252         * print-tree.c (debug_vec_tree): New fn.
253         (print_vec_tree): New fn.
254         * tree.h: Declare them.
255         * gdbinit.in (pvt): New command.
256
257         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
258
259         * gdbinit.in (pdd): New command.
260
261 2010-05-27  Jan Hubicka  <jh@suse.cz>
262
263         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
264         (update_caller_keys): Return early if there are no callers;
265         only update fibheap when decresing the key.
266         (update_callee_keys): Avoid recursion.
267         (decide_inlining_of_small_functions): When badness does not match;
268         re-insert into fibheap.
269
270 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
271
272         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
273         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
274         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
275         (ALL_HOST_OBJS): Now a union of the above two.
276         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
277         all files in ALL_HOST_FRONTEND_OBJS.
278         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
279
280         * c-common.c: Pretend to be a backend file by undefining
281         IN_GCC_FRONTEND (still need rtl.h here).
282
283 2010-05-27  Jan Hubicka  <jh@suse.cz>
284
285         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
286         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
287
288 2010-05-27  Jan Hubicka  <jh@suse.cz>
289
290         * sched-ebb.c: Rename struct deps to struct deps_desc.
291         * ddg.c: Likewise.
292         * sel-sched-ir.c: Likewise.
293         * sched-deps.c: Likewise.
294         * sched-int.h: Likewise.
295         * sched-rgn.c: Likewise.
296
297 2010-05-27  Jon Beniston <jon@beniston.com>
298
299         PR 43726
300         * config/lm32/lm32.h: Remove definition of 
301         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
302
303 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
304
305         PR lto/44230
306         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
307
308 2010-05-27  Richard Guenther  <rguenther@suse.de>
309
310         PR tree-optimization/44284
311         * tree-vect-stmts.c (vectorizable_assignment): Handle
312         sign-changing conversions as simple copy.
313
314 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
315
316         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
317         Bionic C library.
318         (__gthread_active_p): Check for pthread_create if compiling against
319         Bionic C library.
320
321 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
322
323         Support compilation for Android platform.  Reimplement -mandroid.
324
325         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
326         (*android*): Set ANDROID_DEFAULT.
327         (arm*-*-linux*): Include linux-android.h.
328         (arm*-*-eabi*): Don't include previous -mandroid implementation.
329         * config/arm/eabi.h: Remove, move Android-specific parts ...
330         * config/linux-android.h: ... here.  New file.
331         * config/arm/eabi.opt: Rename to ...
332         * config/linux-android.opt: ... this.
333         (mandroid): Allow -mno-android option.  Initialize based on
334         ANDROID_DEFAULT.
335         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
336         Move logic to corresponding LINUX_TARGET_* macros.
337         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
338         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
339         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
340         Android definitions.
341         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
342         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
343         Document.
344
345 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
346
347         Add support for Bionic C library
348
349         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
350         macro.
351         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
352         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
353
354         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
355         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
356         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
357         to support multiple C libraries.  Handle Bionic.
358         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
359         (BIONIC_DYNAMIC_LINKER64): Define.
360         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
361         Update.
362         (TARGET_HAS_SINCOS): Enable for Bionic.
363
364         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
365         the last option specified on command line take effect.
366         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
367         (mbionic): New.
368         (mglibc, muclibc): Update.
369
370         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
371         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
372         DEFAULT_LIBC.
373
374         * doc/invoke.texi (-mglibc, -muclibc): Update.
375         (-mbionic): Document.
376
377 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
378
379         * c-common.h (c_register_addr_space): Add prototype.
380         (ADDR_SPACE_KEYWORD): Remove.
381         * c-common.c (c_register_addr_space): New function.
382         (c_addr_space_name): Reimplement.
383         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
384
385         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
386         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
387
388         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
389         Remove TARGET_ADDR_SPACE_KEYWORDS.
390
391 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
392
393         * input.c: New file.
394         * input.h (main_input_filename): Move declaration to toplev.h.
395         * toplev.c (input_location, line_table): Move to input.c
396         * toplev.h (main_input_filename): Move declaration from input.h.
397         * tree.c (expand_location): Move to input.c.
398         * Makefile.in (OBJS-common): Add input.o.
399         (input.o): Add dependencies.
400
401 2010-05-27  Richard Guenther  <rguenther@suse.de>
402
403         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
404         for non-existant files.
405         (fork_execute): Mark args_name file as deleted.
406
407 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
408
409         PR bootstrp/44287
410         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
411         (narrow_signed_type): Likewise.
412
413 2010-05-26  Jan Hubicka  <jh@suse.cz>
414
415         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
416         edge only when checking is enabled; check using former_clone_of;
417         check inline clones too.
418         (cgraph_materialize_clone): Record former_clone_of pointer.
419         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
420         combining redirections; dump args_to_skip bitmap
421         (cgraph_materialize_all_clones): Do no redirection here.
422         * ipa-inline.c (inline_transform): Do redirection here.
423         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
424         cheking only).
425
426 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
427
428         * config/avr/avr-c.c: Do not include regs.h.
429         Include cpplib.h for cpp_define and tree.h for c-common.h.
430         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
431         * config/avr/t-avr: Fix dependencies for avr-c.o.
432
433 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
434
435         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
436         string instead of SYMBOL_REF rtx.
437         * rtl.h (set_stack_check_libfunc): Move prototype from here...
438         * libfuncs.h: ...to here.  Adjust for explow.c change.
439
440 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
441
442         * pretty-print.c: Don't include ggc.h.
443         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
444         (identifier_to_locale): Use them for allocation.
445         * pretty-print.h (identifier_to_locale_alloc,
446         identifier_to_locale_free): Declare.
447         * toplev.c (alloc_for_identifier_to_locale): New.
448         (general_init): Set identifier_to_locale_alloc and
449         identifier_to_locale_free.
450         * Makefile.in (pretty-print.o): Update dependencies.
451
452 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
453
454         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
455         pointer types if they have different alignment or mode.
456
457 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
458
459         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
460         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
461         * config/sparc/sparc-protos.h (function_value): Remove declaration.
462         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
463         sparc_function_value_regno_p): New functions.
464         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
465         TARGET_FUNCTION_VALUE_REGNO_P): Define.
466         (function_value): Rename to...
467         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
468         argument to 'outgoing'.
469         (function_arg_record_value, function_arg_union_value,
470         function_arg_vector_value): Update comment.
471
472 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
473
474         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
475         (fde_needed_for_eh_p): New predicate.
476         (output_call_frame_info): Use it throughout to decide whether FDEs
477         are needed for EH purpose.
478         (dwarf2out_begin_prologue): Reorder assignments.
479
480 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
481
482         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
483         special case loop->header.
484         (is_predicated): New.
485         (if_convertible_loop_p): Call it.
486
487 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
488
489         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
490         iterator in parameter.  Do not generate code during the analysis.
491         (tree_if_convert_cond_stmt): Removed.
492         (tree_if_convert_stmt): Removed.
493         (predicate_bbs): New.
494         (if_convertible_loop_p): Call predicate_bbs.
495         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
496         now contains all the analysis part.
497
498 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
499
500         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
501         statements in the analysis part.
502         (tree_if_convert_stmt): Update comment.
503         (remove_conditions_and_labels): New.
504         (combine_blocks): Call remove_conditions_and_labels.
505         (tree_if_conversion): Update comment.
506
507 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
508
509         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
510         than 2 predecessors or more than 2 successors.
511
512 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
513
514         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
515         of loops in which the data dependence analysis fails.
516
517 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
518
519         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
520         CDI_POST_DOMINATORS.
521         (tree_if_conversion): Same.
522
523 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
524
525         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
526
527 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
528
529         * tree-if-conv.c: Update copyright years.  Fix comments.
530         Fix indentation.
531
532 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
533
534         * builtin-types.def (BT_INT128): New primitive type.
535         (BT_UINT128): Likewise.
536         * c-common.c (c_common_r): Add __int128 keyword.
537         (c_common_type_for_size): Handle __int128.
538         (c_common_type_for_mode): Likewise.
539         (c_common_signed_or_unsigned_type): Likewise.
540         (c_common_nodes_and_builtins): Add builtin type
541         if target supports 128-bit integer scalar.
542         * c-common.h (enum rid): Add RID_INT128.
543         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
544         if target supports 128-bit integer scalar.
545         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
546         (finish_declspecs): Likewise.
547         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
548         (c_token_starts_declspecs): Likewise.
549         (c_parser_declspecs): Likewise.
550         (c_parser_attributes): Likewise.
551         (c_parser_objc_selector): Likewise.
552         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
553         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
554         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
555         * tree.c (make_or_reuse_type): Likewise.
556         (make_unsigned_type): Likewise.
557         (build_common_tree_nodes_2): Likewise.
558         * tree.h (enum integer_type_kind): Add itk_int128 and
559         itk_unsigned_int128.
560         (int128_integer_type_node): New define.
561         (int128_unsigned_type_node): New define.
562         * doc/extend.texi: Add documentation about __int128 type.
563
564 2010-05-26  Richard Guenther  <rguenther@suse.de>
565
566         * tree-ssa-sccvn.c (copy_nary): Adjust.
567         (copy_phis): Rename to ...
568         (copy_phi): ... this.  Adjust.
569         (copy_references): Rename to ...
570         (copy_reference): ... this.  Adjust.
571         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
572         result into the valid table.
573
574 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
575
576         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
577         insn-config.h, insn-codes.h, recog.h, and optabs.h.
578
579 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
580
581         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
582
583 2010-05-26  Richard Guenther  <rguenther@suse.de>
584
585         * opts.c (common_handle_option): Handle OPT_Ofast.
586
587 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
588
589         * diagnostic.c: Don't include opts.h.
590         (permissive_error_option): Define.
591         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
592         for classify_diagnostic.  Don't use memset for
593         classify_diagnostic.  Initialize new and recently added fields.
594         (diagnostic_classify_diagnostic): Use context->n_opts instead of
595         N_OPTS.
596         (diagnostic_report_diagnostic): Pass context parameter to
597         diagnostic_report_warnings_p.  Use option_enabled and option_name
598         hooks from context.
599         (emit_diagnostic): Use permissive_error_option.
600         (permerror): Likewise.
601         * diagnostic.h: Don't include options.h.
602         (struct diagnostic_context): Add n_opts, opt_permissive,
603         inhibit_warnings, warn_system_headers, option_enabled and
604         option_name fields.  Change classify_diagnostic to a pointer.
605         * opts-diagnostic.h: New file.
606         * opts.c: Include opts-diagnostic.h.
607         (common_handle_option): Set global_dc fields for -Wfatal-errors,
608         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
609         (option_name): New function.
610         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
611         (c_common_handle_option): Set global_dc->permissive for
612         -fpermissive.
613         * c-common.c (c_cpp_error): Save and restore
614         global_dc->warn_system_headers, not variable warn_system_headers.
615         * toplev.c: Include opts-diagnostic.h.
616         (general_init): Update call to diagnostic_initialize.  Set
617         global_dc->show_column, global_dc->option_enabled and
618         global_dc->option_name.
619         (process_options): Don't set global_dc fields here.
620         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
621         (diagnostic.o, opts.o, toplev.o): Update dependencies.
622
623 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
624
625         * config/picochip/picochip.md (movsi): Split a movsi from a
626         const after reload.
627
628 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
629
630         * ggc-zone.c: Update copyright year.
631         (poison_region): Mark memory for Valgrind as undefined before
632         memset () call and inaccessible afterwards.
633         (ggc_pch_total_size): Change type of i to int.
634
635 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
636
637         * ggc-common.c (ggc_free_overhead): Allow empty slot.
638
639 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
640
641         * ggc-common.c: Update copyright year.
642         (ggc_rlimit_bound): Remove prototype.  Compile only if
643         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
644         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
645         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
646         (ggc_min_heapsize_heuristic): Likewise.
647
648 2010-05-26  Richard Guenther  <rguenther@suse.de>
649
650         PR rtl-optimization/44164
651         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
652         no-common access-path disambiguation.
653         (indirect_ref_may_alias_decl_p): Adjust.
654         (indirect_refs_may_alias_p): Likewise.
655         (refs_may_alias_p_1): Likewise.
656
657 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
658
659         * c-typeck.c: Do not include expr.h.
660
661 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
662
663         * rtl.h (decl_default_tls_model): Move prototype from here...
664         * output.h: ...to here.
665         * c-decl.c: Do not include rtl.h.
666         * c-pragma.c: Likewise.
667         * c-parser.c: Likewise.
668         * c-gimplify.c: Likewise.  And also not hard-reg-set.
669         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
670         FIXME note for it.  Add a FIXME note for expr.h.
671         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
672         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
673         defined.
674
675 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
676
677         PR target/44199
678         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
679         or total_size is larger than red zone size for non-V4 ABI, emit a
680         stack_tie resp. frame_tie insn before stack pointer restore.
681         * config/rs6000/rs6000.md (frame_tie): New insn.
682
683 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
684
685         * function.h (struct function): Add can_throw_non_call_exceptions bit.
686         * lto-streamer-in.c (input_function): Stream it in.
687         * lto-streamer-out.c (output_function): Stream it out.
688         * function.c (allocate_struct_function): Set it.
689         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
690         for flag_non_call_exceptions.
691         * cfgbuild.c (control_flow_insn_p): Likewise.
692         (make_edges): Likewise.
693         * cfgexpand.c (expand_stack_alignment): Likewise.
694         * combine.c (distribute_notes): Likewise.
695         * cse.c (cse_extended_basic_block): Likewise.
696         * except.c (insn_could_throw_p): Likewise.
697         * gcse.c (simple_mem): Likewise.
698         * ipa-pure-const.c (check_call): Likewise.
699         (check_stmt ): Likewise.
700         * lower-subreg.c (lower-subreg.c): Likewise.
701         * optabs.c (emit_libcall_block): Likewise.
702         (prepare_cmp_insn): Likewise.
703         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
704         * postreload.c (rest_of_handle_postreload): Likewise.
705         * reload1.c (reload_as_needed): Likewise.
706         (emit_input_reload_insns): Likewise.
707         (emit_output_reload_insns): Likewise.
708         (fixup_abnormal_edges): Likewise.
709         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
710         * store-motion.c (find_moveable_store): Likewise.
711         * tree-eh.c (stmt_could_throw_p): Likewise.
712         (tree_could_throw_p): Likewise.
713         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
714         * config/arm/arm.c (arm_expand_prologue): Likewise.
715         (thumb1_expand_prologue): Likewise.
716         * config/rx/rx.md (cbranchsf4): Likewise.
717         (cmpsf): Likewise.
718         * config/s390/s390.c (s390_emit_prologue): Likewise.
719         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
720         (inline_forbidden_into_p): New predicate.
721         (expand_call_inline): Use it to forbid inlining.
722         (tree_can_inline_p): Likewise.
723
724 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
725
726         * config/i386/i386-c.c: Do not include rtl.h.
727         * config/i386/t-i386: Update dependencies.
728
729 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
730
731         * attribs.c: Do not include rtl.h.
732         * Makefile.in: Update dependencies.
733
734 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
735
736         * double-int.h (double_int_and): New.
737         * combine.c (try_combine): Clean up, use double_int_* and
738         immed_double_int_const functions.
739
740 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
741
742         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
743         stderr to /dev/null instead of grep -q.
744         * configure: Regenerate.
745
746 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
747
748         * Makefile.in (EXCEPT_H): Fix typo.
749
750 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
751
752         * ira-build.c (update_conflict_hard_reg_costs): New.
753         (ira_build): Call update_conflict_hard_reg_costs.
754
755 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
756
757         PR debug/41371
758         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
759         ENABLE_CHECKING.
760         (intersect_loc_chains): Walk the s2var's loc_chain together
761         with s1node chain as long as the locations are equal, don't
762         call find_loc_in_1pdv in that case.
763
764         PR debug/42801
765         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
766         (copy_bind_expr): ... instead of here.
767         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
768         if the block hasn't been remapped.
769         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
770         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
771
772 2010-05-25  Richard Guenther  <rguenther@suse.de>
773
774         PR middle-end/44069
775         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
776         out-of-bounds array accesses.
777
778 2010-05-25  Richard Guenther  <rguenther@suse.de>
779
780         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
781         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
782         (run_gcc): Re-organize to make cleanup easier.
783
784 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
785
786         * config/s390/s390.c (optimization_options): Fix and move the
787         flag_prefetch_loop_arrays override ...
788         (override_options): ... here.
789
790 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
791
792         * diagnostic.c: Don't include plugin.h.
793         (diagnostic_report_diagnostic): Don't handle plugins specially
794         here.  Pass context to internal_error callback.
795         * diagnostic.h (struct diagnostic_context): Add context parameter
796         to internal_error callback.
797         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
798         * plugin.h (struct diagnostic_context): Declare.
799         (warn_if_plugins, plugins_internal_error_function): Declare.
800         * toplev.c (general_init): Set global_dc->internal_error.
801         * Makefile.in (diagnostic.o): Update dependencies.
802
803 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
804
805         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
806         * config/rs6000/t-darwin64: New.
807         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
808         build crt2.
809
810 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
811
812         PR 44203
813         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
814         match the original (and intended) behaviour before r159557.  This
815         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
816         in two ways.
817
818 2010-05-25  Richard Guenther  <rguenther@suse.de>
819
820         * doc/invoke.texi: Document -Ofast.
821         * target.h (struct gcc_target): Add handle_ofast.
822         * target-def.h (TARGET_HANDLE_OFAST): Add.
823         (TARGET_INITIALIZER): Adjust.
824         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
825         * common.opt (Ofast): Add.
826
827 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
828
829         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
830         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
831
832 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
833
834         PR target/43610
835         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
836         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
837         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
838         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
839
840 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
841
842         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
843         DW_OP_minus with negated offset instead of DW_OP_plus.
844         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
845
846 2010-05-25  Wei Guozhi  <carrot@google.com>
847
848         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
849         tst instruction and a new alternative.
850         * config/arm/constraints.md (Pu): New constraint.
851
852 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
853
854         * function.c (assign_stack_local_1): Initialize variable
855         to avoid warning when bootstrapping at -O3.
856
857 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
858
859         * configure.ac (all_lang_makefiles): Remove everything related to it.
860         * configure: Regenerate.
861         * Makefile.in: Fix reference to ada Make-lang.in.
862         Remove support for LANG_MAKEFILES.
863
864 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
865             Sandra Loosemore  <sandra@codesourcery.com>
866
867         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
868         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
869         description.  Add arm_neon_fp16_ok.
870         (Add Options): Add arm_neon and arm_neon_fp16.
871
872 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
873
874         * diagnostic.c: Don't include flags.h.
875         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
876         context parameters.  Check flags in the context passed as a parameter.
877         (diagnostic_build_prefix): Add context parameter.  Check
878         show_column flag in context.
879         (diagnostic_action_after_output): Check fatal_errors flag in context.
880         (diagnostic_report_current_module): Check show_column flag in context.
881         (default_diagnostic_starter): Update call to
882         diagnostic_build_prefix.
883         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
884         (emit_diagnostic): Pass context to permissive_error_kind.
885         (permerror): Pass context to permissive_error_kind.
886         * diagnostic.h (struct diagnostic_context): Add show_column,
887         pedantic_errors, permissive and fatal_errors fields.
888         (diagnostic_build_prefix): Update prototype.
889         * langhooks.c
890         * toplev.c (process_options): Set flags in global_dc from
891         flag_show_column, flag_pedantic_errors, flag_permissive,
892         flag_fatal_errors.
893         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
894         to diagnostic_build_prefix.
895         * Makefile.in (diagnostic.o): Update dependencies.
896
897 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
898
899         * config/i386/ia32intrin.h (__crc32q): Define only if
900         __SSE4_2__ is defined.
901
902 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
903
904         PR target/44132
905         PR middle-end/43602
906         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
907         DECL_VISIBILITY_SPECIFIED.
908         (emutls_decl): Set DECL_PRESERVE_P and copy
909         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
910         (emutls_finalize_control_var): New callback.
911         (emutls_finish): Finalize emutls control variables.
912         * toplev.c (compile_file): Move the call to emutls_finish ()
913         before varpool_assemble_pending_decls ().
914
915 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
916
917         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
918         added to the preprocessor condition.
919
920 2010-05-24  Paul Brook  <paul@codesourcery.com>
921
922         * gengtype-lex.l: Add HARD_REG_SET.
923         * expr.c (expand_expr_real_1): Record writes to hard registers.
924         * function.c (rtl_data): Add asm_clobbers.
925         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
926         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
927         Use crtl->asm_clobbers.
928
929 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
930
931         * doc/makefile.texi (Makefile): Mention stages 'profile'
932         and 'feedback' for profiledbootstrap.
933
934 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
935
936         PR target/44245
937         * config/i386/i386.c (def_builtin): Properly check
938         OPTION_MASK_ISA_64BIT.
939
940 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
941
942         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
943         typedefs with different but compatible types.  Allow duplicate
944         typedefs with the same type except for pedantic non-C1X, but give
945         warning for variably modified types.
946         * c-typeck.c (tagged_types_tu_compatible_p,
947         function_types_compatible_p, type_lists_compatible_p,
948         comptypes_internal): Add parameter different_types_p; set
949         *different_types_p for different but compatible types.  All
950         callers changed.
951         (comptypes_check_different_types): New.
952         * c-tree.h (comptypes_check_different_types): Declare.
953
954 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
955
956         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
957         * jump.c: Include basic-block.h.
958         * profile.c: Likewise.
959         * tree-profile.c: Likewise.
960         * coverage.c: Likewise.
961         * basic-block.h (optimize_function_for_size_p): Move to function.h.
962         (optimize_function_for_speed_p): Likewise.
963         * function.h (optimize_function_for_size_p,
964         optimize_function_for_speed_p): Moved here from basic-block.h.
965         * Makefile.in: Update dependencies.
966
967 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
968
969         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
970         before calling make; allow override through $MAKE.
971         * doc/invoke.texi (Optimize Options): Document override.
972
973 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
974
975         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
976         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
977         (rs6000_mode_dependent_address_ptr): Make static.
978         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
979         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
980         Remove.
981
982 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
983
984         PR target/43869
985         * config/i386/i386.c: Make sure that the correct regparm is passed.
986
987 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
988
989         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
990         * sbitmap.c: ...to here to internalize sbitmap element access.
991         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
992         Explain why basic-block.h is included.
993         * function.h: Include tm.h for CUMULATIVE_ARGS.
994         * Makefile.in: Update dependencies.
995
996 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
997
998         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
999         New core types.
1000         * sbitmap.h (struct sbitmap_def): Do not typedef here.
1001         * sbitmap.c: Include sbitmap.h.
1002         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1003         hard-reg-set.h.  Split everything related to regsets out from here...
1004         * regset.h: ...to here.  New file.
1005         * df.h: Include regset.h and sbitmap.h.
1006         * tree-flow.h: Likewise.
1007         * cfgloop.h: Likewise.
1008         * except.h: Do not include sbitmap.h.  Include hashtab.h.
1009         * cgraph.h: Include vec.h and function.h.
1010         * reload.h (struct insn_chain): Change types of live_throughout
1011         and dead_or_set from regset_head to bitmap_head.
1012         (compute_use_by_pseudos): Be defined also if regset.h is not included.
1013         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1014         spilled_regs from regset_head to bitmap_head to avoid dependency
1015         in regset.h.
1016         * sel-sched-ir.h: Include regset.h.
1017         * reload.c: Include df.h before reload.h.
1018         * caller-save.c: Likewise.
1019         * reload1.c: Likewise.
1020         * ira.c: Likewise.
1021         (mark_elimination): Update type of r to bitmap, consistent with
1022         DF_LR_IN.
1023         * dominance.c: Include bitmap.h.
1024         * modulo-sched.c: Include df.h.
1025         * cfganal.c: Include bitmap.h and sbitmap.h.
1026         * cfgbuild.c: Include sbitmap.h.
1027         * lcm.c: Include sbitmap.h.
1028         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1029         * domwalk.c: Include sbitmap.h, exclude ggc.h.
1030         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1031         * cselib.c: Include bitmap.h.
1032         * tree-optimize.c: Include regset.h.
1033         * stmt.c: Include bitmap.h.
1034         * Makefile.in: Update dependencies.
1035
1036 2010-05-22  Jan Hubicka  <jh@suse.cz>
1037
1038         * cgraph.h (struct varpool_node): Add same_comdat_group.
1039         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1040         pointer.
1041         (output_varpool): Update call of lto_output_varpool_node.
1042         (input_varpool): Read same_comdat_group pointer.
1043         (input_varpool_1): Fixup same_comdat_group pointer.
1044         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1045         group is needed, all are.
1046         * varpool.c (varpool_remove_node): Remove node from same comdat group
1047         linklist too.
1048         (varpool_analyze_pending_decls): Walk same comdat groups.
1049
1050 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1051
1052         * rtl.h (union rtunion_def): Remove rt_bit member.
1053         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1054         * print-rtl (print_rtx): Do not print the member.
1055         * gengtype.c (adjust_field_rtx_def): Do not handle it.
1056         * gengenrtl.c (type_from_format): Likewise.
1057         (accessor_from_format): Likewise.
1058
1059 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
1060
1061         * dbgcnt.c: Include toplev.h instead of errors.h.
1062         * ira-emit.c: Don't include errors.h.
1063         * ira.c: Include toplev.h instead of errors.h.
1064         * lto-compress.c: Include toplev.h instead of errors.h.
1065         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1066         ira.o, dbgcnt.o): Update dependencies.
1067
1068 2010-05-22  Richard Guenther  <rguenther@suse.de>
1069
1070         * gimple.c (gimple_types_compatible_p): Check type qualifications
1071         before merging pointer to complete and pointer to incomplete type.
1072         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1073         we use our own resolution algorithm.  The gold linker plugin
1074         doesn't do the job we want it to do here.
1075
1076 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
1077
1078         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1079         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1080         (sparc_mode_dependent_address_p): New function.
1081
1082 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1083
1084         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1085
1086         * timevar.c: Do not include any core headers.
1087         (timevar_print): De-i18n-ize.
1088         (print_time): Likewise.
1089         * timevar.h (timevar_push, timevar_pop): Make inline functions.
1090
1091 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1092
1093         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1094         langhooks-def.h.
1095         (diagnostic_initialize): Initialize x_data not last_function.
1096         (diagnostic_report_current_function): Move to tree-diagnostic.c.
1097         (default_diagnostic_starter): Call
1098         diagnostic_report_current_module not
1099         diagnostic_report_current_function.
1100         (diagnostic_report_diagnostic): Initialize x_data not
1101         abstract_origin.
1102         (verbatim): Likewise.
1103         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1104         x_data.
1105         (struct diagnostic_context): Change last_function to x_data.
1106         (diagnostic_auxiliary_data): Replace with
1107         diagnostic_context_auxiliary_data and
1108         diagnostic_info_auxiliary_data.
1109         (diagnostic_last_function_changed, diagnostic_set_last_function,
1110         diagnostic_report_current_function): Move to tree-diagnostic.h.
1111         (print_declaration, dump_generic_node, print_generic_stmt,
1112         print_generic_stmt_indented, print_generic_expr,
1113         print_generic_decl, debug_c_tree, dump_omp_clauses,
1114         print_call_name, debug_generic_expr, debug_generic_stmt,
1115         debug_tree_chain, default_tree_printer): Move to
1116         tree-pretty-print.h.
1117         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1118         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1119         gimple-pretty-print.h.
1120         * pretty-print.c: Don't include tree.h
1121         (pp_base_format): Don't handle %K here.
1122         (pp_base_tree_identifier): Move to tree-pretty-print.c.
1123         * pretty-print.h (text_info): Change abstract_origin to x_data.
1124         (pp_tree_identifier, pp_unsupported_tree,
1125         pp_base_tree_identifier): Move to tree-pretty-print.h.
1126         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1127         tree-pretty-print.h: New files.
1128         * tree-pretty-print.c: Include tree-pretty-print.h.
1129         (percent_K_format): New.  Moved from pretty-print.c.
1130         (pp_base_tree_identifier): Move from pretty-print.c.
1131         * c-objc-common.c: Include tree-pretty-print.h.
1132         (c_tree_printer): Handle %K here.
1133         * langhooks.c: Include tree-diagnostic.h.
1134         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1135         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1136         (default_tree_printer): Handle %K using percent_K_format.
1137         (general_init): Use default_tree_diagnostic_starter.
1138         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1139         (free_lang_data): Use default_tree_diagnostic_starter.
1140         * c-pretty-print.c: Include tree-pretty-print.h.
1141         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1142         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1143         * dwarf2out.c: Include tree-pretty-print.h.
1144         * except.c: Include tree-pretty-print.h.
1145         * gimple-pretty-print.c: Include tree-pretty-print.h and
1146         gimple-pretty-print.h.
1147         * gimplify.c: Include tree-pretty-print.h.
1148         * graphite-poly.c: Include tree-pretty-print.h and
1149         gimple-pretty-print.h.
1150         * ipa-cp.c: Include tree-pretty-print.h.
1151         * ipa-inline.c: Include gimple-pretty-print.h.
1152         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1153         * ipa-pure-const.c: Include gimple-pretty-print.h.
1154         * ipa-struct-reorg.c: Include tree-pretty-print.h and
1155         gimple-pretty-print.h.
1156         * ipa-type-escape.c: Include tree-pretty-print.h.
1157         * print-rtl.c: Include tree-pretty-print.h.
1158         * print-tree.c: Include gimple-pretty-print.h.
1159         * sese.c: Include tree-pretty-print.h.
1160         * tree-affine.c: Include tree-pretty-print.h.
1161         * tree-browser.c: Include tree-pretty-print.h.
1162         * tree-call-cdce.c: Include gimple-pretty-print.h.
1163         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1164         * tree-chrec.c: Include tree-pretty-print.h.
1165         * tree-data-ref.c: Include tree-pretty-print.h and
1166         gimple-pretty-print.h.
1167         * tree-dfa.c: Include tree-pretty-print.h.
1168         * tree-if-conv.c: Include tree-pretty-print.h and
1169         gimple-pretty-print.h.
1170         * tree-inline.c: Include tree-pretty-print.h.
1171         * tree-into-ssa.c: Include tree-pretty-print.h and
1172         gimple-pretty-print.h.
1173         * tree-nrv.c: Include tree-pretty-print.h.
1174         * tree-object-size.c: Include tree-pretty-print.h and
1175         gimple-pretty-print.h.
1176         * tree-outof-ssa.c: Include tree-pretty-print.h and
1177         gimple-pretty-print.h.
1178         * tree-parloops.c: Include tree-pretty-print.h and
1179         gimple-pretty-print.h.
1180         * tree-predcom.c: Include tree-pretty-print.h and
1181         gimple-pretty-print.h.
1182         * tree-scalar-evolution.c: Include tree-pretty-print.h and
1183         gimple-pretty-print.h.
1184         * tree-sra.c: Include tree-pretty-print.h.
1185         * tree-ssa-address.c: Include tree-pretty-print.h.
1186         * tree-ssa-alias.c: Include tree-pretty-print.h.
1187         * tree-ssa-ccp.c: Include tree-pretty-print.h and
1188         gimple-pretty-print.h.
1189         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1190         * tree-ssa-copy.c: Include tree-pretty-print.h and
1191         gimple-pretty-print.h.
1192         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1193         * tree-ssa-dce.c: Include tree-pretty-print.h and
1194         gimple-pretty-print.h.
1195         * tree-ssa-dom.c: Include tree-pretty-print.h and
1196         gimple-pretty-print.h.
1197         * tree-ssa-dse.c: Include gimple-pretty-print.h.
1198         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1199         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1200         * tree-ssa-live.c: Include tree-pretty-print.h and
1201         gimple-pretty-print.h.
1202         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1203         gimple-pretty-print.h.
1204         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1205         gimple-pretty-print.h.
1206         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1207         gimple-pretty-print.h.
1208         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1209         gimple-pretty-print.h.
1210         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1211         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1212         * tree-ssa-operands.c: Include tree-pretty-print.h and
1213         gimple-pretty-print.h.
1214         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1215         gimple-pretty-print.h.
1216         * tree-ssa-pre.c: Include tree-pretty-print.h and
1217         gimple-pretty-print.h.
1218         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1219         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1220         gimple-pretty-print.h.
1221         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1222         gimple-pretty-print.h.
1223         * tree-ssa-sink.c: Include gimple-pretty-print.h.
1224         * tree-ssa-ter.c: Include tree-pretty-print.h and
1225         gimple-pretty-print.h.
1226         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1227         * tree-ssa.c: Include tree-pretty-print.h and
1228         gimple-pretty-print.h.
1229         * tree-stdarg.c: Include gimple-pretty-print.h.
1230         * tree-switch-conversion.c: Include gimple-pretty-print.h.
1231         * tree-tailcall.c: Include tree-pretty-print.h and
1232         gimple-pretty-print.h.
1233         * tree-vect-data-refs.c: Include tree-pretty-print.h and
1234         gimple-pretty-print.h.
1235         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1236         gimple-pretty-print.h.
1237         * tree-vect-loop.c: Include tree-pretty-print.h and
1238         gimple-pretty-print.h.
1239         * tree-vect-patterns.c: Include gimple-pretty-print.h.
1240         * tree-vect-slp.c: Include tree-pretty-print.h and
1241         gimple-pretty-print.h.
1242         * tree-vect-stmts.c: Include tree-pretty-print.h and
1243         gimple-pretty-print.h.
1244         * tree-vectorizer.c: Include tree-pretty-print.h.
1245         * tree-vrp.c: Include tree-pretty-print.h and
1246         gimple-pretty-print.h.
1247         * value-prof.c: Include tree-pretty-print.h and
1248         gimple-pretty-print.h.
1249         * var-tracking.c: Include tree-pretty-print.h.
1250         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1251         (tree-diagnostic.o): New dependencies.
1252         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1253         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1254         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1255         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1256         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1257         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1258         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1259         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1260         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1261         tree-ssa-address.o, tree-ssa-loop-niter.o,
1262         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1263         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1264         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1265         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1266         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1267         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1268         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1269         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1270         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1271         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1272         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1273         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1274         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1275         tree-switch-conversion.o, var-tracking.o, value-prof.o,
1276         cfgexpand.o, pretty-print.o): Update dependencies.
1277
1278 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
1279
1280         * tree-ssa-structalias.c: Remove tm_p.h from include.
1281
1282 2010-05-21  Jeff Law  <law@redhat.com>
1283
1284         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1285
1286 2010-05-21  Jason Merrill  <jason@redhat.com>
1287
1288         * tree-eh.c (cleanup_is_dead_in): New.
1289         (lower_try_finally): Don't generate a dead cleanup region.
1290         (lower_cleanup): Likewise.
1291
1292 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1293
1294         PR debug/44223
1295         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1296         unchain each use from the cyclic next_regno_use chain first.
1297
1298 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1299
1300         * real: Do not include gmp.h, mpfr.h, and mpc.h.
1301         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1302         (real_value_negate, real_value_abs): New prototypes.
1303         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1304         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1305         new include file for interface between MPFR and REAL_VALUE_TYPE.
1306         * real.c: Include realmpfr.h.
1307         (real_arithmetic2): Remove legacy function.
1308         (real_value_negate): New.
1309         (real_value_abs): New.
1310         (mfpr_from_real, real_from_mpfr): Move from here...
1311         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1312         * builtins.c: Include realmpfr.h.
1313         * fold-const.c: Include realmpfr.h.
1314         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1315         (fold_negate_const): Likewise.
1316         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1317         * toplev.c: Include realmpfr.h.
1318         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1319         and real_value_negate.
1320         * fixed-value.c (check_real_for_fixed_mode): Likewise.
1321         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1322         (vfp3_const_double_index): Likewise.
1323         (arm_print_operand): Likewise.
1324         * Makefile.in: Update dependencies.
1325
1326 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1327
1328         * config/s390/s390.c (override_options): Increase the default
1329         of max-completely-peel-times.
1330
1331 2010-05-21  Julian Brown  <julian@codesourcery.com>
1332             Mark Mitchell  <mark@codesourcery.com>
1333
1334         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1335         sibling calls for Thumb-1.
1336         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1337         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1338         Thumb-2.
1339         (*call_insn, *call_value_insn): Don't use for Thumb-2.
1340         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1341         for Thumb-2.
1342         (return): New expander.
1343         (*arm_return): New name for ARM return insn.
1344         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1345
1346 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1347
1348         * config.gcc (sparc64-*-rtems*): New target.
1349
1350 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
1351
1352         * tree.c (build_function_decl_skip_args): Fix grammar.
1353         (build_function_type_list_1): Fix typos, adjust formatting.
1354
1355 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1356
1357         * tree.h: Include real.h and fixed-value.h as basic datatypes.
1358         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1359         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1360         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1361         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1362         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1363         tree-pretty-print.c, tree-loop-distribution.c,
1364         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1365         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1366         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1367         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1368         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1369         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1370         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1371         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1372         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1373         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1374         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1375         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1376         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1377         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1378         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1379         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1380         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1381         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1382         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1383         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1384         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1385         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1386         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1387         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1388         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1389         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1390         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1391         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1392         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1393         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1394         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1395         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1396         config/score/score7.c, config/score/score.c, config/arm/arm.c,
1397         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1398         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1399         config/bfin/bfin.c: Clean up redundant includes.
1400         * Makefile.in: Update accordingly.
1401
1402 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
1403
1404         PR middle-end/44204
1405         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1406         statement has no arguments.
1407
1408 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
1409
1410         PR/44139
1411         * varasm.c (emutls_decl): Merge attributes to new decl.
1412
1413 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1414
1415         PR middle-end/44101
1416         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1417         around the uniquized constructor if its type requires a conversion.
1418
1419 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1420
1421         PR debug/44205
1422         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1423         at -O0 goto_locus of any of the incoming edges differs from
1424         goto_locus of outgoing edge, or gimple_location of any of the
1425         labels differs.
1426
1427 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
1428
1429         * ira.c (ira_non_ordered_class_hard_regs): Define.
1430         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1431         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1432         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1433         cost of unaligned hard regs when allocating multi-reg pseudos.
1434
1435 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
1436
1437         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1438         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1439         for TARGET_NO_FLOAT.
1440         * config/mips/mips.c (mips_file_start): Expand conditional expression
1441         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1442         (mips_override_options): Move -mno-float override -msoft-float and
1443         -mhard-float.
1444         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1445         Condition(TARGET_SUPPORTS_NO_FLOAT).
1446         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1447         __mips_no_float here.
1448         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1449         (TARGET_SUPPORTS_NO_FLOAT): Define.
1450         * config/mips/sdemtk.opt: Delete.
1451
1452 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
1453
1454         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1455
1456 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
1457
1458         PR target/43733
1459         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1460         * configure: Regenerate.
1461         * config.in: Regenerate.
1462         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1463         instead of sahf only for 64bit targets.
1464
1465 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
1466
1467         PR debug/44178
1468         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1469         setup_ref_regs for DEBUG_INSNs.
1470
1471 2010-05-20  Jan Hubicka  <jh@suse.cz>
1472
1473         PR middle-end/44197
1474         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1475
1476 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1477
1478         PR bootstrap/43870
1479         * df-scan.c (df_ref_compare): Stabilize sort.
1480
1481 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
1482
1483         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1484         argument.  Don't use DW_OP_piece if offset is non-zero,
1485         put offset into second DW_OP_bit_piece argument.
1486         (dw_sra_loc_expr): Adjust callers.  For memory expressions
1487         compute offset.
1488
1489 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
1490
1491         PR target/44202
1492         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1493         settings for 16-bit-constant "addo" alternative.
1494
1495 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
1496
1497         * config/mips/mips-dsp.md (add<DSPV:mode>3,
1498         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1499
1500         PR target/43764
1501         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
1502         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1503         Use it.
1504
1505 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
1506
1507         * diagnostic.c (FLOAT, FFS): Don't undefine.
1508         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1509         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1510         include ordering.
1511
1512 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
1513
1514         * combine.c (propagate_for_debug): Call make_compound_operation
1515         on the source value.
1516         (try_combine): When implementing a split chosen by find_split_point,
1517         either copy i2src or set it to null.  Assert that i2src is not null
1518         before substituting into CALL_INSN_FUNCTION_USAGE.
1519
1520 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
1521
1522         * double-int.h (double_int_ior): New function.
1523         * tree.h (build_int_cst_wide_type): Remove.
1524         * tree.c (build_int_cst_wide_type): Remove.
1525         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1526         of build_int_cst_wide_type.
1527         * stor-layout.c (set_sizetype): (Ditto.).
1528         * dojump.c (do_jump): Use build_int_cstu instead of
1529         build_int_cst_wide_type.
1530
1531 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1532
1533         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1534         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1535         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1536         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1537         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
1538         propagate the 'data' argument to copy_tree_r.
1539         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1540         Propagate 'data' argument to walk_tree.
1541         (copy_if_shared): New function.
1542         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1543         (unmark_visited): New function.
1544         (unshare_body): Call copy_if_shared instead of doing it manually.
1545         (unvisit_body): Call unmark_visited instead of doing it manually.
1546
1547 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
1548
1549         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
1550         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
1551         * hooks.c: Likewise.
1552         * target-def.h (TARGET_FOLD_BUILTIN): Define to
1553         hook_tree_tree_int_treep_bool_null.
1554         * target.h (struct gcc_target): Update signature of fold_builtin
1555         field.
1556         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
1557         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
1558         instead of the call expression.
1559         (fold_builtin_call_array): Pass n and argarray directly.
1560         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
1561         consing a list.
1562         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
1563         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
1564         `i' and use it in place of `arity'.
1565         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
1566         Dereference `args' directly.
1567         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
1568
1569 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1570
1571         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1572         3dnow, sse3, sse2.
1573         (Directives): Document optional dg-require-effective-target
1574         selector.
1575
1576 2010-05-19  Richard Guenther  <rguenther@suse.de>
1577
1578         PR lto/44196
1579         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1580
1581 2010-05-19  Richard Guenther  <rguenther@suse.de>
1582
1583         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
1584         * common.opt (fwhopr=): New.
1585         * opts.c (common_handle_option): Handle OPT_fwhopr.
1586         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
1587         * collect2.c (main): Match -fwhopr*.
1588         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
1589         Execute ltrans stage in parallel when jobs is bigger than 1.
1590
1591 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1592
1593         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1594         pentiumpro on Solaris 8/x86 with Sun as.
1595         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1596         hidden alias bug.
1597         (gcc_cv_as_ix86_quad): Check for .quad directive.
1598         * configure: Regenerate.
1599         * config.in: Regenerate.
1600         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1601
1602 2010-05-19  Martin Jambor  <mjambor@suse.cz>
1603
1604         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
1605         also for indirect edges.  Actual printing moved...
1606         (ipa_print_node_jump_functions_for_edge): ...here.
1607         (ipa_compute_jump_functions): Renamed to
1608         ipa_compute_jump_functions_for_edge and made static.
1609         (ipa_compute_jump_functions): New function.
1610         (make_edge_direct_to_target): Check if the number of arguments on
1611         the newly direct edge is the same as the number of parametrs of
1612         the callee.
1613         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
1614         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
1615         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1616         analysis functions unconditionally, call the new
1617         ipa_analyze_params_uses on the node instead of every edge.
1618
1619 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
1620
1621         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
1622         to tree.
1623         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
1624         also checks for a constant int vs.  non-constant but
1625         loop-invariant steps.
1626         (find_or_create_group): Change the sort algorithm to only consider
1627         steps that are constant ints.
1628         (idx_analyze_ref): Adopt code to handle a tree instead of a
1629         HOST_WIDE_INT for step.
1630         (gather_memory_references_ref): Handle tree instead of int and be
1631         prepared to see a NULL_TREE.
1632         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
1633         prefetches if the step cannot be calculated at compile time.
1634         (issue_prefetch_ref): Issue prefetches for non-constant but
1635         loop-invariant steps.
1636
1637 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1638
1639         Revert:
1640         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1641
1642         * tree.h (build_call_list): Remove.
1643         * tree.c (build_call_list): Remove.
1644
1645 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
1646
1647         * tree.h (build_call_list): Remove.
1648         * tree.c (build_call_list): Remove.
1649
1650 2010-05-18  Jan Hubicka  <jh@suse.cz>
1651
1652         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
1653
1654 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
1655
1656         PR rtl-optimization/43332
1657         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
1658
1659 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
1660
1661         * tree.h (build_int_cstu): Implement as static inline.
1662         * tree.c (build_int_cstu): Remove function.
1663         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
1664         sign extended.
1665
1666 2010-05-18  Richard Guenther  <rguenther@suse.de>
1667
1668         PR lto/44143
1669         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
1670         (debug): Initialize from -save-temps.
1671         (collect_execute): Print command-line when verbose.
1672         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
1673         for ltrans invocation.  Produce -dumpbase flag again.
1674         (process_args): Remove.
1675         (main): Simplify.
1676         * collect2.c (maybe_run_lto_and_relink): Only pass object
1677         files to lto-wrapper.
1678         * gcc.c (LINK_COMMAND_SPEC): Likewise.
1679
1680 2010-05-18  Jan Hubicka  <jh@suse.cz>
1681
1682         * opts.c (decode_options): Do not disable whopr at ipa_cp.
1683         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
1684
1685 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
1686
1687         PR lto/44184
1688         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1689         in a GIMPLE_ASM.
1690         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1691         in a GIMPLE_ASM.
1692
1693 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
1694
1695         PR debug/41371
1696         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
1697         rtx_equal_p inline.
1698
1699 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
1700
1701         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
1702         lto-macho as lto_binary_reader.
1703
1704         * darwin.c (darwin_asm_named_section): Do not add assembler comment
1705         after .section directive; just print it before the directive instead.
1706
1707 2010-05-17  Jan Hubicka  <jh@suse.cz>
1708
1709         * cgraph.c (cgraph_create_virtual_clone): Only check
1710         versionable_function_p when not in wpa and checking is enabled.
1711         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
1712         there are no more functions to materialize.
1713
1714 2010-05-17  Jan Hubicka  <jh@suse.cz>
1715
1716         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
1717         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
1718         New functions.
1719         (output_cgraph): Call output_cgraph_opt_summary.
1720         (input_cgrpah): Call input_cgraph_opt_summary.
1721         (output_cgraph_opt_summary_p, output_node_opt_summary,
1722         input_node_opt_summary, input_cgraph_opt_section): New functions.
1723         * lto-section-in.c (lto_section_name): Add cgraphopt.
1724         * tree-inline.c (tree_function_versioning): Handle parm_num.
1725         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
1726         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
1727
1728 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
1729
1730         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
1731         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
1732         the insn to prefetch ratio heuristic to loops with known trip count.
1733
1734 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
1735
1736         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
1737         (schedule_prefetches): Do not generate a prefetch if the unroll factor
1738         is far from what is required by the prefetch.
1739
1740 2010-05-17  Jan Hubicka  <jh@suse.cz>
1741
1742         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
1743         (ipcp_estimate_growth): Likewise.
1744         (ipcp_const_param_count): Likewise.
1745         (ipcp_insert_stage): Likewise.
1746         * ipa-prop.c (visit_load_for_mod_analysis): New function.
1747         (visit_store_addr_for_mod_analysis): Set used flag.
1748         (ipa_detect_param_modifications): Set used flag for SSE params;
1749         update use of walk_stmt_load_store_addr_ops.
1750         (ipa_print_node_params): Print used flag.
1751         (ipa_write_node_info): Stream used flag.
1752         (ipa_read_node_info): Likewise.
1753         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
1754         (ipa_is_param_used): New function.
1755         (lto_ipa_fixup_call_notes): Remove unused declaration.
1756
1757 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1758
1759         PR target/44074
1760         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1761         * configure: Regenerate.
1762         * config.in: Regenerate.
1763         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
1764         !HAVE_AS_IX86_REP_LOCK_PREFIX.
1765         Don't emit whitespace.
1766         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1767         (*rep_movsi): Likewise.
1768         (*rep_movsi_rex64): Likewise.
1769         (*rep_movqi): Likewise.
1770         (*rep_movqi_rex64): Likewise.
1771         (*rep_stosdi_rex64): Likewise.
1772         (*rep_stossi): Likewise.
1773         (*rep_stossi_rex64): Likewise.
1774         (*rep_stosqi): Likewise.
1775         (*rep_stosqi_rex64): Likewise.
1776         (*cmpstrnqi_nz_1): Use {%;} after repz.
1777         (*cmpstrnqi_nz_rex_1): Likewise.
1778         (*cmpstrnqi_1): Likewise.
1779         (*cmpstrnqi_rex_1): Likewise.
1780         (*strlenqi_1): Use {%;} after repnz.
1781         (*strlenqi_rex_1): Likewise.
1782         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
1783         (*sync_compare_and_swap<mode>): Likewise.
1784         (sync_double_compare_and_swap<mode>): Likewise.
1785         (*sync_double_compare_and_swapdi_pic): Likewise.
1786         (sync_old_add<mode>): Likewise.
1787         (sync_add<mode>): Likewise.
1788         (sync_sub<mode>): Likewise.
1789         (sync_<code><mode>): Likewise.
1790
1791 2010-05-17  Martin Jambor  <mjambor@suse.cz>
1792
1793         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
1794         otr_token and polymorphic.
1795         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
1796         (cgraph_clone_edge): Copy the above fields.
1797         * tree.c (get_binfo_at_offset): New function.
1798         * tree.h (get_binfo_at_offset): Declare.
1799         * ipa-prop.h (enum jump_func_type): Added known_type jump function
1800         type, reordered items, updated comments.
1801         (union jump_func_value): Added base_type field, reordered fields.
1802         (enum ipa_lattice_type): Moved down in the file.
1803         (struct ipa_param_descriptor): New field polymorphic.
1804         (ipa_is_param_polymorphic): New function.
1805         * ipa-prop.c: Include gimple.h and gimple-fold.h.
1806         (ipa_print_node_jump_functions): Print known type jump functions.
1807         (compute_complex_pass_through): Renamed to...
1808         (compute_complex_assign_jump_func): this.
1809         (compute_complex_ancestor_jump_func): New function.
1810         (compute_known_type_jump_func): Likewise.
1811         (compute_scalar_jump_functions): Create known type and complex ancestor
1812         jump functions.
1813         (ipa_note_param_call): New parameter polymorphic, set the corresponding
1814         flag in the call note accordingly.
1815         (ipa_analyze_call_uses): Renamed to...
1816         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
1817         variable var only in the block where it is used.
1818         (ipa_analyze_virtual_call_uses): New function.
1819         (ipa_analyze_call_uses): Likewise.
1820         (combine_known_type_and_ancestor_jfs): Likewise.
1821         (update_jump_functions_after_inlining): Implemented handling of a
1822         number of new jump function types combination.
1823         (print_edge_addition_message): Removed.
1824         (make_edge_direct_to_target): New function.
1825         (try_make_edge_direct_simple_call): Likewise.
1826         (try_make_edge_direct_virtual_call): Likewise.
1827         (update_call_notes_after_inlining): Renamed to...
1828         (update_indirect_edges_after_inlining): this.  Moved edge creation for
1829         indirect calls to try_make_edge_direct_simple_call, also calls
1830         try_make_edge_direct_virtual_call for virtual calls.
1831         (ipa_print_node_params): Changed the header message.
1832         (ipa_write_jump_function): Stream also known type jump functions.
1833         (ipa_read_jump_function): Likewise.
1834         (ipa_write_indirect_edge_info): Stream new fields in
1835         cgraph_indirect_call_info.
1836         (ipa_read_indirect_edge_info): Likewise.
1837         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
1838         GIMPLE_FOLD_H.
1839
1840 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1841
1842         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
1843
1844 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
1845
1846         * tree.h (CALL_EXPR_ARGS): Delete.
1847         (call_expr_arglist): Delete.
1848         * tree.c (call_expr_arglist): Delete.
1849         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
1850         targetm.fold_builtin.
1851         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
1852         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
1853         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
1854         arglist parameter.  Use CALL_EXPR_ARG.
1855         (picochip_expand_builtin_3op): Likewise.
1856         (picochip_expand_builtin_2opvoid): Likewise.
1857         (picochip_expand_array_get): Likewise.
1858         (picochip_expand_array_put): Likewise.
1859         (picochip_expand_array_testport): Likewise.
1860         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
1861         rather than arglist.
1862         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
1863         CALL_EXPR_ARGS.
1864         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
1865         than TREE_VALUE and TREE_CHAIN.
1866         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1867         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
1868         the arglist.
1869
1870 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
1871
1872         PR bootstrap/42347
1873         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
1874         to have no fallthru edge.
1875
1876         PR middle-end/44102
1877         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
1878         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
1879         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
1880         add BARRIER after previous bb if needed.
1881
1882 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
1883
1884         * tree.c (build_function_type_list_1): Remove bogus assert condition.
1885
1886 2010-05-17  Alan Modra  <amodra@gmail.com>
1887
1888         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
1889         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
1890         with copy_reg rtx param.
1891         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
1892         Correct cases where code for ABI_V4 did not initialise the reg
1893         used to access frame.  Also leave frame_reg_rtx as sp for large
1894         frames that save no regs.
1895
1896 2010-05-17  Martin Jambor  <mjambor@suse.cz>
1897
1898         PR middle-end/44133
1899         * tree-sra.c (create_access_replacement): New parameter rename, mark
1900         the replaement for renaming only when it is true.
1901         (get_access_replacement): Pass true in the rename parameter of
1902         create_access_replacement.
1903         (get_unrenamed_access_replacement): New function.
1904         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
1905         replacement declaration from it.
1906
1907 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
1908
1909         * function.c (try_fit_stack_local, add_frame_space): New static
1910         functions.
1911         (assign_stack_local_1): Use them.  Look for opportunities to use
1912         space previously wasted on alignment.
1913         * function.h (struct frame_space): New.
1914         (struct rtl_data): Add FRAME_SPACE_LIST member.
1915         * reload1.c (something_was_spilled): New static variable.
1916         (alter_reg): Set it.
1917         (reload): Test it in addition to testing if the frame size changed.
1918
1919 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
1920
1921         * config/s390/s390.c: Define sane prefetch settings and activate
1922         flag_prefetch_loop_arrays on -O3.
1923         * config/s390/s390.h: Declare that read can use write prefetch.
1924
1925 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
1926
1927         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
1928         build.
1929
1930 2010-05-16  Jan Hubicka  <jh@suse.cz>
1931
1932         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
1933         function body; do not check stdarg field of struct function.
1934
1935 2010-05-16  Jan Hubicka  <jh@suse.cz>
1936
1937         * cgraph.c (dump_cgraph_node): Dump versionable flag.
1938         * cgraph.h (cgraph_local_info): Add versionable flag.
1939         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
1940         (ipcp_versionable_function_p): Use it.
1941         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
1942         versionable flag.
1943
1944 2010-05-16  Jan Hubicka  <jh@suse.cz>
1945
1946         * cgraph.c (cgraph_clone_node): Take decl argument and insert
1947         clone into hash when it is different from orig.
1948         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
1949         * cgraph.h (cgraph_clone_node): Update prototype.
1950         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
1951         (lto_cgraph_encoder_delete): Delete body map.
1952         (lto_cgraph_encoder_size): Move to header.
1953         (lto_cgraph_encoder_encode_body_p,
1954         lto_set_cgraph_encoder_encode_body): New.
1955         (lto_output_node): Do not take written_decls argument; output clone_of
1956         pointer.
1957         (add_node_to): Add include_body_argument; call
1958         lto_set_cgraph_encoder_encode_body on master of the clone.
1959         (add_references): Update use of add_node_to.
1960         (compute_ltrans_boundary): Likewise.
1961         (output_cgraph): Do not create written_decls bitmap.
1962         (input_node): Take nodes argument; stream in clone_of correctly.
1963         (input_cgraph_1): Update use of input_node.
1964         * lto-streamer-out.c (lto_output): Use encoder info to decide
1965         what bodies to output.
1966         * ipa-inline.c (cgraph_clone_inlined_nodes,
1967         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
1968         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
1969         (lto_cgraph_encoder_size): Define here.
1970         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
1971         Declare.
1972
1973 2010-05-16  Richard Guenther  <rguenther@suse.de>
1974
1975         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
1976         -fipa-type-escape.
1977         * ipa-type-escape.c (gate_type_escape_vars): Run when
1978         -fipa-struct-reorg runs.
1979         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
1980         * common.opt (fipa-type-escape): Remove.
1981
1982 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
1983
1984         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
1985         (decode_options): Likewise.
1986         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
1987
1988 2010-05-16  Jan Hubicka  <jh@suse.cz>
1989
1990         * ipa.c (function_and_variable_visibility): Also bring local all
1991         aliases.
1992
1993 2010-05-16  Richard Guenther  <rguenther@suse.de>
1994
1995         * alias.c (nonoverlapping_memrefs_p): Remove use of
1996         IPA type-escape information.
1997
1998 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
1999
2000         * c-common.c (c_common_reswords): Add _Static_assert for C.
2001         * c-parser.c (c_token_starts_declaration,
2002         c_parser_next_token_starts_declaration,
2003         c_parser_static_assert_declaration_no_semi,
2004         c_parser_static_assert_declaration): New.
2005         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2006         Handle static assertions if static_assert_ok.
2007         (c_parser_external_declaration, c_parser_declaration_or_fndef,
2008         c_parser_compound_statement_nostart, c_parser_label,
2009         c_parser_for_statement, c_parser_objc_methodprotolist,
2010         c_parser_omp_for_loop): All callers of
2011         c_parser_declaration_or_fndef changed.
2012         (c_parser_struct_declaration): Handle static assertions.
2013         (c_parser_compound_statement_nostart): Use
2014         c_parser_next_token_starts_declaration and
2015         c_token_starts_declaration to detect start of declarations.
2016         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2017         Likewise.
2018
2019 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
2020
2021         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2022         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2023         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2024         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2025         (mmix_function_outgoing_value): Rename to...
2026         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2027         (mmix_function_value_regno_p): Make static.
2028         (mmix_libcall_value): New function.
2029         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2030         mmix_function_value_regno_p): Remove declaration.
2031
2032 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2033
2034         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2035         BUILT_IN_ALLOCA if stack checking is enabled.
2036
2037 2010-05-16  Richard Guenther  <rguenther@suse.de>
2038
2039         * var-tracking.c (vars_copy_1): Inline ...
2040         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2041         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
2042         (variable_merge_over_cur): Adjust.  Merge asserts.
2043         (variable_merge_over_src): Likewise.
2044         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2045         (variable_post_merge_new_vals): Merge asserts.
2046         (variable_post_merge_perm_vals): Likewise.
2047         (find_mem_expr_in_1pdv): Likewise.
2048         (dataflow_set_different_value): Remove.
2049         (onepart_variable_different_p): Merge asserts.
2050         (variable_different_p): Likewise.
2051         (dataflow_set_different_1): Inline ...
2052         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2053         (emit_notes_for_differences_1): Merge asserts.
2054
2055 2010-05-16  Richard Guenther  <rguenther@suse.de>
2056
2057         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2058         * optabs.c (libfunc_decl_hash): Likewise.
2059         * varasm.c (emutls_decl): Likewise.
2060
2061 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
2062
2063         * c-decl.c: Don't include gimple.h.
2064         (merge_decls): Do not copy gimple_body.
2065
2066 2010-05-15  Jason Merrill  <jason@redhat.com>
2067
2068         * c.opt: Add -fnothrow-opt.
2069
2070 2010-05-15  Jan Hubicka  <jh@suse.cz>
2071
2072         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2073         analyzed.
2074         * passes.c (ipa_write_summaries): Write all analyzed nodes.
2075
2076 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
2077
2078         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2079         * Makefile.in: Add it.
2080         Fix all other Makefile dependencies for changes below.
2081         * tree.h: Include it instead of defining VEC primitives here.
2082         * gimple.h: Likewise.
2083         * rtl.h: Likewise.
2084         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2085         * except.h: Include vecir.h, break dependence on tree.h.
2086
2087         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2088         Move from here...
2089         * tree-iterator.c: ...to here.
2090         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
2091
2092         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
2093         tm_p.h.
2094         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2095         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2096         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2097         tree-mudflap.h, and target.h.
2098         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2099         predict.h, tree-inline.h, gimple.h, and langhooks.h.
2100         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2101         Add FIXME for why gimple.h is still included (should be unnecessary
2102         since GCC 4.5 gimplification unit-at-a-time).
2103         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2104         * c-pragma.c: Add FIXME for why function.h needs to be included just
2105         for cfun, at front-end level.
2106         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2107         Do not include ggc.h, but include vecprim.h for VEC(char).
2108         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2109         Explain why target.h is included.
2110         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2111         Explain why gimple.h is included.
2112         * c-ppoutput.c: Do not include tm.h.
2113         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
2114         * c-parses.c: Explain why rtl.h is included, and that this (and only
2115         this) is also why tm.h must be included.
2116         Do not include except.h.
2117         * c-lang.c: Do not include ggc.h.
2118
2119 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
2120
2121         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2122
2123 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
2124
2125         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2126         unions by default if those structs and unions have no tags.  Do
2127         not condition anonymous struct and unions handling on flag_iso.
2128         Allow anonymous structs and unions for C1X.
2129         (finish_struct): Do not diagnose lack of named fields when
2130         anonymous structs and unions present for C1X.  Accept flexible
2131         array members in structure with anonymous structs or unions but no
2132         directly named fields.
2133         * doc/extend.texi (Unnamed Fields): Update.
2134
2135 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
2136
2137         * gimple.h (compare_field_offset): Rename into...
2138         (gimple_compare_field_offset): ...this.
2139         * gimple.c (compare_field_offset): Rename into...
2140         (gimple_compare_field_offset): ...this.  Compare the full access if
2141         the offset is self-referential.
2142         (gimple_types_compatible_p): Adjust for above renaming.
2143         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
2144         DECL_NONADDRESSABLE_P flag of fields before merging them.
2145
2146 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
2147
2148         * tree.h (ctor_to_list): Delete.
2149         * tree.c (ctor_to_list): Delete.
2150
2151 2010-05-15  Jan Hubicka  <jh@suse.cz>
2152
2153         * ipa-reference.c: Include toplev.h
2154         (is_proper_for_analysis): Only add to all_module_statics
2155         if it is allocated.
2156         (write_node_summary_p, stream_out_bitmap,
2157         ipa_reference_write_optimization_summary,
2158         ipa_reference_read_optimization_summary): New.
2159         (struct ipa_opt_pass_d pass_ipa_reference): Add
2160         optimization summary streaming.
2161         * lto-cgraph.c (referenced_from_this_partition_p,
2162         reachable_from_this_partition_p): New functions.
2163         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2164         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2165         * opts.c (decode_options): Enable ipa_reference.
2166         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2167         * lto-streamer.h (referenced_from_this_partition_p,
2168         reachable_from_this_partition_p): Declare.
2169
2170 2010-05-15  Richard Guenther  <rguenther@suse.de>
2171
2172         PR tree-optimization/44038
2173         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2174         taking the address of a V_C_E of a constant.
2175
2176 2010-05-14  Jan Hubicka  <jh@suse.cz>
2177
2178         * tree.h (memory_identifier_string): Remove.
2179         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2180         (ipa_reference_global_vars_info_d): Remove statics_not_read and
2181         statics_not_written.
2182         (ipa_reference_optimization_summary_d): New structure.
2183         (ipa_reference_optimization_summary_t): New type and vector.
2184         (ipa_reference_vars_info_d): Embedd structures instead of using
2185         pointers.
2186         (reference_vars_to_consider): Remove out of GGC space.
2187         (module_statics_escape): Remove.
2188         (global_info_obstack): Rename to ...
2189         (optimization_summary_obstack): ... this one.
2190         (initialization_status_t): Remove.
2191         (memory_identifier_string): Remove.
2192         (get_reference_vars_info): Fix indenting.
2193         (set_reference_vars_info): Likewise.
2194         (get_reference_optimization_summary): New.
2195         (set_reference_optimization_summary): New.
2196         (get_global_reference_vars_info): Remove.
2197         (ipa_reference_get_read_global): Remove.
2198         (ipa_reference_get_written_global): Remove.
2199         (ipa_reference_get_not_read_global): Update.
2200         (ipa_reference_get_not_written_global): Update.
2201         (is_proper_for_analysis): Outlaw addressable.
2202         (propagate_bits): Update for new datastructures.
2203         (analyze_variable): Remove.
2204         (init_function_info): Update for new datastructures.
2205         (clean_function_local_data): Remove.
2206         (clean_function): Remove.
2207         (copy_global_bitmap): Use optimizations_summary_obstack.
2208         (duplicate_node_data): Duplicate optimization summary only.
2209         (remove_node_data): Remove optimization summary only.
2210         (generate_summary): Do not analyze variables; do not compute
2211         module_statics_escape; do not prune solutions by it.
2212         (read_write_all_from_decl): Fix typos in comments.
2213         (propagate): Doscover readonly and nonaddressable first;
2214         update for new datastructures; share global bitmaps.
2215         * ipa-reference.h (ipa_reference_get_read_global,
2216         ipa_reference_get_written_global): Remove.
2217         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2218         * Makefile.in: Remove ipa-refereference from GT files.
2219
2220 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2221
2222         PR debug/44112
2223         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2224         for all SYMBOL_REF_DECLs.
2225
2226 2010-05-14  Jan Hubicka  <jh@suse.cz>
2227
2228         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2229         (varpool_all_refs_explicit_p): New inline function.
2230         * ipa-reference.c: Update comment.
2231         (module_statics_written): Remove.
2232         (get_static_decl): Remove.
2233         (ipa_init): Do not initialize module_statics_written.
2234         (analyze_function): Likewise.
2235         (generate_summary): Likewise; do not compute module_statics_readonly
2236         and do not update variable flags.
2237         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2238         * ipa.c: Inlucde flags.h
2239         (cgraph_local_node_p): New.
2240         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2241         promote functions to local.
2242         (ipa_discover_readonly_nonaddressable_vars): New function.
2243         (function_and_variable_visibility): Use cgraph_local_node_p.
2244         * varpool.c (varpool_finalize_decl): Set force_output for
2245         DECL_PRESERVE_P vars.
2246
2247 2010-05-14  Jan Hubicka  <jh@suse.cz>
2248
2249         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2250
2251 2010-05-14  Richard Guenther  <rguenther@suse.de>
2252
2253         PR tree-optimization/44119
2254         * tree-ssa-pre.c (eliminate): Properly mark replacement of
2255         a PHI node necessary.
2256
2257 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2258
2259         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2260
2261 2010-05-14  Jason Merrill  <jason@redhat.com>
2262
2263         PR c++/44127
2264         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2265         (gimple_call_set_nothrow): New.
2266         * gimple.c (gimple_build_call_from_tree): Call it.
2267         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2268
2269         PR c++/44127
2270         * gimplify.c (gimplify_seq_add_stmt): No longer static.
2271         * gimple.h: Declare it.
2272         * gimple.c (gimple_build_eh_filter): No ops.
2273
2274 2010-05-14  Jan Hubicka  <jh@suse.cz>
2275
2276         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2277         nodes already in queue.
2278         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2279         re-enqueueing node.
2280
2281 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2282
2283         PR debug/44136
2284         * cfgexpand.c (expand_debug_expr): If non-memory op0
2285         has BLKmode, return NULL.
2286
2287 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
2288
2289         * config.gcc: Add support for --with-cpu option for bdver1.
2290         * config/i386/i386.h (TARGET_BDVER1): New macro.
2291         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2292         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2293         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2294         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2295         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2296         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2297         (processor_type): Add PROCESSOR_BDVER1.
2298         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2299         processor_type in config/i386/i386.h.
2300         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2301         movaps <reg, reg> instead of movapd <reg, reg> when replacing
2302         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2303         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2304         to emit packed xor instead of packed double/packed integer
2305         xor for SSE and AVX when moving a zero value.
2306         * config/i386/sse.md: Add check for
2307         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2308         movapd/movdqa for SSE and AVX.
2309         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2310         single logical operations i.e and, or and xor instead of packed double
2311         logical operations for SSE and AVX.
2312         * config/i386/i386-c.c (ix86_target_macros_internal):
2313         Add PROCESSOR_BDVER1.
2314         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2315         (has_fma4, has_xop): New.
2316         * config/i386/i386.c (bdver1_cost): New variable.
2317         (m_BDVER1): New macro.
2318         (m_AMD_MULTIPLE): Add m_BDVER1.
2319         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2320         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2321         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2322         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2323         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2324         x86_tune_sse_partial_reg_dependency,
2325         x86_tune_sse_unaligned_load_optimal,
2326         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2327         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2328         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2329         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2330         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2331         Enable/disable for bdver1.
2332         (processor_target_table): Add bdver1_cost.
2333         (cpu_names): Add bdver1.
2334         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2335          processor_alias_table.
2336         (ix86_expand_vector_move_misalign): Change.
2337         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2338         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2339         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2340         of movupd/movdqu for SSE and AVX.
2341         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2342         (ix86_tune_adjust_cost): Add code for bdver1.
2343         (standard_sse_constant_opcode): Add check for
2344         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2345         of packed double xor for SSE and AVX.
2346
2347 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
2348
2349         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2350         result to unsigned.
2351
2352 2010-05-14  Tristan Gingold  <gingold@adacore.com>
2353
2354         * toplev.c (default_debug_hooks): Remove this variable.
2355         (process_options): Remove assignments to default_debug_hooks.
2356
2357 2010-05-14  Martin Jambor  <mjambor@suse.cz>
2358
2359         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2360         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2361         * langhooks.h (struct lang_hooks_for_decls): Removed field
2362         fold_obj_type_ref.
2363         * tree.c (free_lang_data): Remove assignment to
2364         lang_hooks.fold_obj_type_ref.
2365         * tree.def (OBJ_TYPE_REF): Update comment.
2366
2367 2010-05-14  Richard Guenther  <rguenther@suse.de>
2368
2369         PR tree-optimization/44124
2370         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2371
2372 2010-05-14  Alan Modra  <amodra@gmail.com>
2373
2374         PR target/44075
2375         * config/rs6000/rs6000.c (struct machine_function): Reorder
2376         fields for better packing.  Add lr_save_state.
2377         (rs6000_ra_ever_killed): Return lr_save_state if set.
2378         (rs6000_emit_eh_reg_restore): Set lr_save_state.
2379
2380 2010-05-13  Jan Hubicka  <jh@suse.cz>
2381
2382         * varpool.c (decide_is_variable_needed): Drop code checking
2383         TREE_SYMBOL_REFERENCED.
2384
2385 2010-05-13  Jan Hubicka  <jh@suse.cz>
2386
2387         * final.c (output_addr_const): Do not call mark_decl_referenced.
2388         * cgraphunit.c (process_function_and_variable_attributes): Use
2389         mark_needed_node dirrectly.
2390         (assemble_thunk): Do not call mark_decl_referenced.
2391
2392 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
2393
2394         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2395
2396 2010-05-13  Jeff Law  <law@redhat.com>
2397
2398         * ira-conflicts.c (print_allocno_conflicts): New function broken out
2399         from...
2400         (print_conflicts): Call print_allocno_conflicts.
2401
2402 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
2403
2404         PR debug/44104
2405         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2406         if it is NULL.
2407
2408 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
2409
2410         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2411         t-mingw-w64 or t-mingw-w32 for multilib configuration.
2412         * config/i386/t-mingw-w32: New.
2413         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2414
2415 2010-05-13  Martin Jambor  <mjambor@suse.cz>
2416
2417         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2418         gimple-fold.c).
2419         * gimple-fold.c (get_base_binfo_for_type): New function.
2420         (gimple_get_relevant_ref_binfo): Likewise.
2421         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2422         (gimple_fold_obj_type_ref): Likewise.
2423         (fold_gimple_call): Simplify condition for folding virtual calls
2424         and call gimple_fold_obj_type_ref.
2425         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2426         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2427
2428 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
2429
2430         * config/rs6000/rs6000-protos.h
2431         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2432         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2433         (rs6000_debug_mode_dependent_address)
2434         (rs6000_mode_dependent_address_ptr): Likewise.
2435
2436 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
2437
2438         PR debug/43983
2439         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2440         by SRA.
2441         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2442         * tree-sra.c (create_access_replacement): Call unshare_expr before
2443         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2444         * dwarf2out.c: Include tree-flow.h.
2445         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2446         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2447         Handle DW_OP_bit_piece.
2448         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2449         construct_piece_list, adjust_piece_list): New functions.
2450         (add_var_loc_to_decl): Handle SRA optimized variables.
2451         Adjust for var_loc_note to loc field renaming.
2452         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2453         in VAR_LOCATION note.
2454         (new_loc_descr_op_bit_piece): New function.
2455         (dw_sra_loc_expr): New function.
2456         (dw_loc_list): Use it.  Don't handle the last range after the
2457         loop, handle it inside of the loop.  Adjust for var_loc_note
2458         to loc field renaming.
2459         (add_location_or_const_value_attribute): Only special case
2460         single entry loc lists if loc is NOTE_P.  Adjust for
2461         var_loc_note to loc field renaming.
2462         (dwarf2out_var_location): Don't set newloc->var_loc_note
2463         and newloc->next here.
2464
2465 2010-05-12  Jan Hubicka  <jh@suse.cz>
2466
2467         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2468         flag.
2469         * cgraph.h (cgraph_only_called_directly_p,
2470         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2471         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2472         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2473         (assemble
2474         * ipa.c (cgraph_remove_unreachable_nodes): Use
2475         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2476         flags.
2477         * tree-inline.c (copy_bb): Check address_taken flag.
2478         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
2479         externally_visible flag.
2480
2481 2010-05-12  Jason Merrill  <jason@redhat.com>
2482
2483         PR bootstrap/44048
2484         PR target/44099
2485         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2486         * sdbout.c (plain_type_1): Likewise.
2487         * dwarf2out.c (is_base_type): Likewise.
2488         (gen_type_die_with_usage): Likewise.  Generate
2489         DW_TAG_unspecified_type for any LANG_TYPE.
2490
2491 2010-05-12  Jan Hubicka  <jh@suse.cz>
2492
2493         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2494         indrect edges too.
2495         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2496         (cgraph_clone_edge): Update.
2497         (cgraph_node_remove_callees): Remove indirect calls too.
2498         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2499         (cgraph_create_indirect_edge): Update prototype.
2500         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2501         is_proper_for_analysis.
2502         (add_new_function, visited_nodes, function_insertion_hook_holder,
2503         get_local_reference_vars_info, mark_address_taken, mark_address,
2504         mark_load, mark_store, check_asm_memory_clobber, check_call,
2505         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2506         (ipa_init): Do not initialize visited_nodes;
2507         function_insertion_hook_holder.
2508         (analyze_variable): Rewrite.
2509         (analyze_function): Rewrite.
2510         (copy_local_bitmap): Remove.
2511         (duplicate_node_dat): Do not duplicate local info.
2512         (generate_summary): Simplify to only walk cgraph.
2513         (write_node_summary_p, ipa_reference_write_summary,
2514         ipa_reference_read_summary): Remove.
2515         (propagate): Do not remove function insertion;
2516         generate summary.
2517         (pass_ipa_reference): NULLify summary handling fields.
2518         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2519         (input_edge): Input ecf_flags.
2520         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2521         (update_indirect_edges_after_inlining): Ignore edges with unknown
2522         param.
2523
2524 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
2525
2526         * implicit-zee.c: New file.
2527         * tree-pass.h (pass_implicit_zee): Declare.
2528         * passes.c (init_optimization_passes): Add zee pass.
2529         * common.opt (fzee): New flag.
2530         * timevar.def (TV_ZEE): Define.
2531         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2532         and beyond.
2533         * Makefile.in (implicit-zee.o): Add new build file.
2534
2535 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2536             Nathan Froyd  <froydnj@codesourcery.com>
2537
2538         * c-common.c (sync_resolve_params): Remove write-only variable.
2539
2540 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
2541
2542         * target.h (struct gcc_target): Add mode_dependent_address_p field.
2543         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2544         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2545         * targhooks.c (default_mode_dependent_address_p): New function.
2546         * targhooks.h (default_mode_dependent_address_p): Declare function.
2547         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2548         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
2549         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
2550         target hook. Change return type to bool.
2551         * recog.h (mode_dependent_address_p): Change return type to bool.
2552
2553 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2554             Nathan Froyd  <froydnj@codesourcery.com>
2555
2556         * tree-mudflap.c (build_function_type_0, build_function_type_1,
2557         build_function_type_2, build_function_type_3): Remove.
2558         (mudflap_init): Use build_function_type_list.
2559
2560 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
2561             Nathan Froyd  <froydnj@codesourcery.com>
2562
2563         * coverage.c (build_fn_info_value): Call build_constructor instead of
2564         build_constructor_from_list.
2565         (build_ctr_info_value): Likewise.
2566         (build_gcov_info): Likewise.
2567
2568 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
2569
2570         * tree.c (build_constructor): Compute TREE_CONSTANT for the
2571         resultant constructor.
2572         (build_constructor_single): Don't set TREE_CONSTANT.
2573         (build_constructor_from_list): Don't compute TREE_CONSTANT.
2574
2575 2010-05-12  Jan Hubicka  <jh@suse.cz>
2576
2577         * cgraph.h (struct varpool_node): Add aux.
2578         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
2579         * varpool.c (varpool_remove_node): Do not remove initializer.
2580         (varpool_reset_queue): Export.
2581         (varpool_finalize_decl): Volatile vars are forced to be output.
2582         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
2583         replaced decl.
2584         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
2585         process_references, varpool_can_remove_if_no_refs): New functions.
2586         (cgraph_remove_unreachable_nodes): Handle variables too.
2587
2588 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2589
2590         PR target/44088
2591         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
2592
2593 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
2594
2595         PR middle-end/44085
2596         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
2597         change value of ORT_TASK.
2598         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
2599         (omp_notice_threadprivate_variable): New function.
2600         (omp_notice_variable): Call it for threadprivate variables.
2601         If enclosing ctx is a task, print enclosing task rather than
2602         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
2603         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
2604         if task has untied clause.
2605
2606         PR debug/42278
2607         * dwarf2out.c (base_type_die): Don't add name attribute here.
2608         (modified_type_die): Instead of sizetype use
2609         its underlying original type.  If a DW_TAG_base_type doesn't
2610         have name added, add __unknown__.
2611         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
2612         always call force_type_die instead.
2613
2614 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
2615
2616         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
2617         for __stack_chk_guard.
2618
2619 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
2620
2621         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
2622         don't call start_source_file debug hook here...
2623         (finish_options): ... but here, after outputting predefined and
2624         command line defines and undefs.
2625
2626         PR middle-end/44071
2627         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
2628         no fallthru edge.
2629         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
2630         optimizing away empty bb with no successors, move over its
2631         footer chain to fallthru predecessor.
2632         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
2633         (rtl_split_edge): For asm goto call patch_jump_insn even if
2634         splitting fallthru edge.
2635
2636         PR c++/44059
2637         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
2638         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
2639         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2640         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
2641         on DW.ref.* decls.
2642
2643         PR c++/44062
2644         * c-parser.c (c_parser_expression): Mark LHS of a comma
2645         expression as read if it is a decl, handled component or
2646         COMPOUND_EXPR with that on the RHS.
2647         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
2648         if it is a decl or handled component.
2649
2650 2010-05-11  Jan Hubicka  <jh@suse.cz>
2651
2652         * lto-symtab.c (lto_symtab_free): New function.
2653         * lto-streamer.h (lto_symtab_free): Declare.
2654
2655 2010-05-11  Jan Hubicka  <jh@suse.cz>
2656
2657         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
2658         that if function is needed it is reachable.
2659         (lto_output_node): See if it the function is reachable or referenced.
2660         (output_cgraph): Update call of lto_output_node.
2661         * lto-streamer.h (reachable_from_other_partition_p): Declare.
2662
2663 2010-05-11  Jan Hubicka  <jh@suse.cz>
2664
2665         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
2666         Mark as used.
2667
2668 2010-05-11  Jan Hubicka  <jh@suse.cz>
2669
2670         PR tree-optimize/44063
2671         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
2672         queue.
2673         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
2674         limits.
2675         (estimate_function_body_sizes): Compute sizes even when disregarding.
2676
2677 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
2678
2679         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
2680
2681 2010-05-11  Jan Hubicka  <jh@suse.cz>
2682
2683         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
2684         into every boundary.
2685
2686 2010-05-11  Jan Hubicka  <jh@suse.cz>
2687
2688         * matrix-reorg.c (matrix_reorg): Rebuild edges.
2689
2690 2010-05-11  Jan Hubicka  <jh@suse.cz>
2691
2692         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
2693         lto_streamer_cache_delete): Put nodes into heap.
2694         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
2695         heap.
2696
2697 2010-05-11  Jan Hubicka  <jh@suse.cz>
2698
2699         * cgraphbuild.c (cgraph_rebuild_references): New.
2700         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
2701         out extern inlines.
2702         * cgraph.h (cgraph_rebuild_references): Declare.
2703         * tree-inline.c (tree_function_versioning): Use it.
2704         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
2705
2706 2010-05-11  Jan Hubicka  <jh@suse.cz>
2707
2708         * cgraph.c: Include ipa-utils.h
2709         (cgraph_create_virtual_clone): Update references.
2710         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
2711
2712 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
2713
2714         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
2715         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
2716         cache size.
2717
2718 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
2719
2720         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
2721
2722 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
2723
2724         * gcc.c (execute): For -### don't quote arguments that
2725         contain just alphanumerics and _/-. characters.
2726         * doc/invoke.texi: Document that change for -###.
2727
2728         PR debug/44023
2729         * df-problems.c (struct dead_debug): Add to_rescan field.
2730         (dead_debug_init): Clear to_rescan field.
2731         (dead_debug_finish): Rescan all debug insns in to_rescan
2732         bitmap and free the bitmap.
2733         (dead_debug_insert_before): Instead of rescanning debug insns
2734         immediately queue their rescanning until dead_debug_finish.
2735         (df_note_bb_compute): After dead_debug_add do continue instead
2736         of break.
2737
2738 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
2739
2740         PR debug/44028
2741         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
2742         clear also INSN_REG_USE_LIST.
2743
2744 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2745
2746         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
2747
2748 2010-05-10  Jan Hubicka  <jh@suse.cz>
2749
2750         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
2751         commited change.
2752
2753 2010-05-10  Jan Hubicka  <jh@suse.cz>
2754
2755         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
2756         Allocate encoders.
2757         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
2758         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
2759         (lto_streamer_cache_create): Init alloc pool.
2760         (lto_streamer_cache_delete): Free alloc pool.
2761         * lto-streamer.h: Include alloc pool.
2762         (lto_streamer_cache_d): Use alloc pool.
2763         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
2764
2765 2010-05-10  Jan Hubicka  <jh@suse.cz>
2766
2767         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
2768         * cgraphbuild.c: Include except.h
2769         (record_type_list, record_eh_tables): New function.
2770         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
2771
2772 2010-05-10  Jan Hubicka  <jh@suse.cz>
2773
2774         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
2775         __frame_dummy_init_array_entry, force_to_data): Attribute as used
2776         rather than unused.
2777
2778 2010-05-10  Michael Matz  <matz@suse.de>
2779
2780         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
2781         (can_reassociate_p): Use FLOAT_TYPE_P.
2782         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
2783         (vect_force_simple_reduction): ... this.
2784         * tree-parloops.c (gather_scalar_reductions): Use
2785         vect_force_simple_reduction.
2786         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
2787         vect_is_simple_reduction, add modify argument, if true rewrite
2788         "a-b" into "a+(-b)".
2789         (vect_is_simple_reduction, vect_force_simple_reduction): New
2790         functions.
2791         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
2792
2793 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2794             Vladimir Makarov  <vmakarov@redhat.com>
2795
2796         PR rtl-optimization/44012
2797         * ira-build.c (remove_unnecessary_allocnos): Nullify
2798         regno_allocno_map of the removed allocno.
2799
2800 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2801
2802         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
2803         to /dev/null.
2804         * configure: Regenerate.
2805
2806 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2807
2808         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
2809         unused.
2810         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
2811         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
2812         support in Sun ld.
2813         * configure: Regenerate.
2814
2815 2010-05-10  Richard Guenther  <rguenther@suse.de>
2816
2817         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
2818         marked if the entry identifier is marked.
2819
2820 2010-05-10  Richard Guenther  <rguenther@suse.de>
2821
2822         * c-common.c (struct c_common_attributes): Add fnspec attribute.
2823         (handle_fnspec_attribute): New function.
2824         * gimple.h (gimple_call_return_flags): Declare.
2825         (gimple_call_arg_flags): Likewise.
2826         * gimple.c (gimple_call_arg_flags): New function.
2827         (gimple_call_return_flags): Likewise.
2828         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
2829         New argument flags.
2830         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
2831         return value flags.
2832         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
2833         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
2834         main work to ...
2835         (make_heapvar_for): ... this new function.
2836         (handle_rhs_call): Handle fnspec attribute argument specifiers.
2837         (handle_lhs_call): Likewise.
2838         (find_func_aliases): Adjust.
2839
2840 2010-05-10  Richard Guenther  <rguenther@suse.de>
2841
2842         PR tree-optimization/44050
2843         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
2844
2845 2010-05-10  Wei Guozhi  <carrot@google.com>
2846
2847         PR target/42879
2848         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
2849
2850 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
2851
2852         PR c/10676
2853         * c-typeck.c (lookup_field): Take a type directly.  Update
2854         recursive calls.
2855         (build_component_ref): Update call to lookup_field.
2856         (set_init_label): Use lookup_field to find initialized field.
2857         Handle returned list of fields like a sequence of designators.
2858
2859 2010-05-09  Richard Guenther  <rguenther@suse.de>
2860
2861         PR middle-end/44024
2862         * fold-const.c (tree_single_nonzero_warnv_p): Properly
2863         handle &FUNCTION_DECL.
2864
2865 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
2866
2867         PR c/4784
2868         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
2869         structures and unions recursively.
2870         (detect_field_duplicates): Move duplicate detection with a hash to
2871         detect_field_duplicates_hash.  Always use a hash if anonymous
2872         structures or unions are present.
2873         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
2874         give errors.
2875
2876 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2877
2878         PR target/44046
2879         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
2880         detect Atom, Core 2 and Core i7.
2881
2882 2010-05-09  Richard Guenther  <rguenther@suse.de>
2883
2884         * gcc.c (store_arg): Handle temporary file deletion for
2885         joined arguments.
2886
2887 2010-05-09  Richard Guenther  <rguenther@suse.de>
2888
2889         PR middle-end/44043
2890         * ipa-inline.c (estimate_function_body_sizes): Return after
2891         disregarding inline limits.
2892
2893 2010-05-09  Richard Guenther  <rguenther@suse.de>
2894
2895         * gcc.c (store_arg): Revert last change.
2896
2897 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
2898
2899         PR middle-end/28685
2900         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
2901         (optimize_ops_list): Call it.
2902
2903 2010-05-08  Richard Guenther  <rguenther@suse.de>
2904
2905         PR tree-optimization/44030
2906         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
2907         NECESSARY flag if we propagate from a inserted expression.
2908
2909 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2910
2911         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
2912         domain types as equal if they are both PLACEHOLDER_EXPRs.
2913
2914 2010-05-08  Richard Guenther  <rguenther@suse.de>
2915
2916         * lto-wrapper.c (run_gcc): Remove linker output from
2917         command line for LTRANS invocation.
2918
2919 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
2920
2921         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2922         lto-macho as lto_binary_reader.
2923         * target.h (struct gcc_target): New hooks lto_start and lto_end.
2924         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
2925         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
2926         in lto_start and lto_end calls.
2927         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
2928         magic numbers.
2929         (scan_prog_file): Update is_elf_or_coff call.
2930         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
2931
2932         * collect2.c (main): Fix enum comparison.
2933
2934         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
2935         Add prototypes.
2936         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
2937         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
2938         and TARGET_ASM_LTO_END.
2939         * darwin.c: Include obstack.h and lto-streamer.h.
2940         (lto_section_names_offset, lto_section_names_obstack,
2941         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
2942         global variables.
2943         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
2944         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
2945         to a temporary file.
2946         (darwin_asm_lto_end): New function.  Restore asm_out_file.
2947         (darwin_asm_named_section): For LTO sections, replace the name with
2948         the offset of the section name in a string table, and build this
2949         table.
2950         (darwin_file_start): Initialize global vars for LTO support.
2951         (darwin_file_end): If output to asm_out_file was redirected, append it
2952         to the proper asm_out_file here.  Add the section names section.
2953
2954 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
2955
2956         * c-pragma.c (pending_weak_d, pending_weak): New.
2957         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
2958         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
2959         handle_pragma_weak): Update the uses of pending_weaks.
2960
2961 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2962
2963         PR documentation/44016
2964         * doc/standards.texi (Standards): Link to unversioned
2965         cxx0x_status.html page.
2966
2967 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
2968
2969         PR target/43708
2970         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
2971         in addition to TREE_USED, to avoid "set but unused" warnings.
2972
2973 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
2974
2975         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
2976         (is_loop_prefetching_profitable): Do not insert prefetches
2977         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
2978         times the prefetch ahead distance.
2979
2980 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
2981
2982         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
2983         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
2984         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
2985         the unroll_factor.
2986
2987 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
2988
2989         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
2990         a diagnostic info when the insn-to-mem ratio is too small.
2991
2992 2010-05-07  Richard Guenther <rguenther@suse.de>
2993
2994         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
2995         the linker plugin.
2996         (store_arg): Queue temp_filename for deletion instead of
2997         the whole argument.
2998
2999 2010-05-07  Richard Guenther  <rguenther@suse.de>
3000
3001         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3002         (run_gcc): Handle LTRANS phase invocation.
3003         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3004
3005 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
3006
3007         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3008         this is also meaningful on PARM_DECLs and RESULT_DECLs.
3009
3010 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3011
3012         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3013
3014 2010-05-07  Richard Guenther  <rguenther@suse.de>
3015
3016         PR tree-optimization/44020
3017         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3018         code when PRE is not yet initialized.
3019
3020 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3021
3022         * config/mips/dbxmdebug.h: Remove.
3023         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3024
3025 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
3026
3027         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3028         with null pointer and also warn about ordered comparison of zero with
3029         pointer if -Wextra.
3030
3031 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3032
3033         * graphite-blocking.c
3034         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3035         * graphite-clast-to-gimple.c
3036         (clast_to_gcc_expression): Same.
3037         (precision_for_value): Same.
3038         (precision_for_interval): Same.
3039         (gcc_type_for_interval): Same.
3040         (graphite_create_new_guard): Same.
3041         (compute_bounds_for_level): Same.
3042         (graphite_create_new_loop_guard): Same.
3043         * graphite-interchange.c
3044         (build_linearized_memory_access): Same.
3045         (pdr_stride_in_loop): Same.
3046         (memory_strides_in_loop_1): Same.
3047         (memory_strides_in_loop): Same.
3048         (extend_scattering): Same.
3049         (psct_scattering_dim_for_loop_depth): Same.
3050         (pbb_number_of_iterations): Same.
3051         * graphite-poly.h
3052         (debug_iteration_domains): Same.
3053         * graphite-ppl.c
3054         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3055         (ppl_set_inhomogeneous_gmp): Same.
3056         (ppl_strip_loop): Same.
3057         (ppl_lexico_compare_linear_expressions): Same.
3058         (ppl_read_polyhedron_matrix): Same.
3059         (ppl_max_for_le_pointset): Same.
3060         * graphite-ppl.h
3061         (ppl_read_polyhedron_matrix): Same.
3062         (tree_int_to_gmp): Same.
3063         (gmp_cst_to_tree): Same.
3064         (ppl_set_inhomogeneous): Same.
3065         (ppl_set_inhomogeneous_tree): Same.
3066         (ppl_set_coef): Same.
3067         (ppl_set_coef_tree): Same.
3068         * graphite-sese-to-poly.c
3069         (build_pbb_scattering_polyhedrons): Same.
3070         (build_scop_scattering): Same.
3071         (scan_tree_for_params_right_scev): Same.
3072         (scan_tree_for_params): Same.
3073         (find_params_in_bb): Same.
3074         (find_scop_parameters): Same.
3075         (add_upper_bounds_from_estimated_nit): Same.
3076         (build_loop_iteration_domains): Same.
3077         (add_condition_to_domain): Same.
3078         (pdr_add_memory_accesses): Same.
3079
3080 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3081
3082         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3083         CLooG's value_* macros to their respective mpz_* counterparts.
3084         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3085         (graphite_create_new_loop_guard): Same.
3086         * graphite-interchange.c (build_linearized_memory_access): Same.
3087         (pdr_stride_in_loop): Same.
3088         (memory_strides_in_loop_1): Same.
3089         (1st_interchange_profitable_p): Same.
3090         * graphite-poly.c (extend_scattering): Same.
3091         (psct_scattering_dim_for_loop_depth): Same.
3092         (pbb_number_of_iterations): Same.
3093         (pbb_number_of_iterations_at_time): Same.
3094         * graphite-poly.h (new_1st_loop): Same.
3095         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3096         (oppose_constraint): Same.
3097         (insert_constraint_into_matrix): Same.
3098         (ppl_set_inhomogeneous_gmp): Same.
3099         (ppl_set_coef_gmp): Same.
3100         (ppl_strip_loop): Same.
3101         (ppl_lexico_compare_linear_expressions): Same.
3102         (ppl_max_for_le_pointset): Same.
3103         (ppl_min_for_le_pointset): Same.
3104         (ppl_build_realtion): Same.
3105         * graphite-ppl.h (gmp_cst_to_tree): Same.
3106         (ppl_set_inhomogeneous): Same.
3107         (ppl_set_inhomogeneous_tree): Same.
3108         (ppl_set_coef): Same.
3109         (ppl_set_coef_tree): Same.
3110         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3111         (build_scop_scattering): Same.
3112         (add_value_to_dim): Same.
3113         (scan_tree_for_params_right_scev): Same.
3114         (scan_tree_for_params_int): Same.
3115         (scan_tree_for_params): Same.
3116         (find_params_in_bb): Same.
3117         (find_scop_parameters): Same.
3118         (add_upper_bounds_from_estimated_nit): Same.
3119         (build_loop_iteration_domains): Same.
3120         (create_linear_expr_from_tree): Same.
3121         (add_condition_to_domain): Same.
3122         (pdr_add_memory_accesses): Same.
3123
3124 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
3125             Jason Merrill  <jason@redhat.com>
3126
3127         * c-common.c (c_common_reswords): Add nullptr.
3128         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
3129         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3130         (gen_type_die_with_usage): Likewise.
3131         * dbxout.c (dbxout_type): Likewise.
3132         * sdbout.c (plain_type_1): Likewise.
3133
3134 2010-05-06  Jason Merrill  <jason@redhat.com>
3135
3136         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3137         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
3138         ret appropriately.
3139         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3140
3141         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3142         stripping WITH_SIZE_EXPR.
3143         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3144         change.
3145
3146 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3147
3148         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3149         list of obsolete configurations.
3150         Disabled check for obsolete configurations.
3151         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3152         Removed support for previous versions.
3153         * config/mips/iris.h: Removed.
3154         * config/mips/iris5.h: Removed.
3155         * config/mips/iris6.h: Merged old iris.h contents.
3156         (TARGET_IRIX): Removed.
3157         (DRIVER_SELF_SPECS): Removed mabi=32.
3158         (IDENT_ASM_OP): Removed undef.
3159         (STARTFILE_SPEC): Removed mabi=32.
3160         (ENDFILE_SPEC): Likewise.
3161         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3162         (MACHINE_TYPE): Update for IRIX 6.5.
3163         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3164         TARGET_IRIX by TARGET_IRIX6.
3165         (mips_file_start): Likewise.
3166         (mips_output_external): Remove IRIX 5/6 O32 support.
3167         (mips_output_function_prologue): Likewise.
3168         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3169         TARGET_IRIX6.
3170         (TARGET_CPU_CPP_BUILTINS): Likewise.
3171         (TARGET_IRIX): Removed.
3172         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3173         (MULTILIB_DIRNAMES): Removed 32.
3174         (MULTILIB_OSDIRNAMES): Removed ../lib.
3175         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3176         (Specific, mips-sgi-irix5): Document removal.
3177         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3178         Remove references to older IRIX 6 releases and the O32 ABI.
3179
3180 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
3181
3182         PR bootstrap/43994
3183         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3184         instead of DF_REF_REAL_REG.
3185
3186 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
3187
3188         PR target/43888
3189         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3190         handling to still return true for x64 targets.
3191
3192 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3193
3194         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3195
3196 2010-05-06  Jan Hubicka  <jh@suse.cz>
3197
3198         PR tree-optimization/43791
3199         * ipa-inline.c (update_caller_keys): Remove bogus
3200         disregard_inline_limits check.
3201
3202 2010-05-06  Michael Matz  <matz@suse.de>
3203
3204         PR tree-optimization/43984
3205         * tree-ssa-pre.c (inserted_phi_names): Remove.
3206         (inserted_exprs): Change to bitmap.
3207         (create_expression_by_pieces): Set bits, don't append to vector.
3208         (insert_into_preds_of_block): Don't handle inserted_phi_names.
3209         (eliminate): Don't look at inserted_phi_names, remove deleted
3210         insns from inserted_exprs.
3211         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3212         (init_pre, fini_pre): Allocate and free bitmaps.
3213         (execute_pre): Insert insns on edges before elimination.
3214
3215 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3216
3217         * tree.c (initializer_zerop): Handle STRING_CST.
3218
3219 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3220
3221         PR 40989
3222         * doc/invoke.texi (Wimplicit): Document as C only.
3223         * opts.c (common_handle_option): Add argument kind.
3224         (handle_option): Rename as read_cmdline_option. Factor out code to...
3225         (handle_option): ... here. New.
3226         (handle_options): Rename as read_cmdline_options.
3227         (decode_options): Update call.
3228         (set_option): Use option index instead of option pointer. Classify
3229         diagnostics correctly.
3230         (enable_warning_as_error): Call handle_option.
3231         * opts.h (set_option): Update declaration.
3232         (handle_option): Declare.
3233         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3234         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3235         * c-opts.c (set_Wimplicit): Delete.
3236         (c_family_lang_mask): New static constant.
3237         (c_common_handle_option): Add argument kind. Use handle_option
3238         instead of set_Wimplicit.
3239         (c_common_post_options): warn_implicit and warn_implicit_int
3240         are disabled by default.
3241         * c-common.c (warn_implicit): Do not define here.
3242         * c-common.h (warn_implicit): Do not declare here.
3243         (c_common_handle_option): Update declaration.
3244         * lto-opts.c (lto_reissue_options): Update call to set_option.
3245
3246 2010-05-06  Richard Guenther  <rguenther@suse.de>
3247
3248         PR tree-optimization/43571
3249         * domwalk.c (walk_dominator_tree): Walk the dominator
3250         sons in more optimal order.
3251
3252 2010-05-06  Richard Guenther  <rguenther@suse.de>
3253
3254         PR tree-optimization/43934
3255         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3256         (stmt_cost): Likewise.
3257         (extract_true_false_args_from_phi): New helper.
3258         (determine_max_movement): For PHI nodes verify we can hoist them
3259         and compute their cost.
3260         (determine_invariantness_stmt): Handle PHI nodes.
3261         (move_computations_stmt): Likewise.  Hoist PHI nodes in
3262         if-converted form using COND_EXPRs.
3263         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3264         (tree_ssa_lim): Likewise.
3265         * tree-flow.h (tree_ssa_lim): Adjust prototype.
3266         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3267
3268 2010-05-06  Richard Guenther  <rguenther@suse.de>
3269
3270         PR tree-optimization/43987
3271         * tree-ssa-structalias.c (could_have_pointers): For possibly
3272         address-taken variables force pointers to be recorded.
3273         (create_variable_info_for_1): Likewise.
3274         (push_fields_onto_fieldstack): Pass in wheter all fields
3275         must have pointers.
3276         (find_func_aliases): Query types instead of vars whether
3277         they contain pointers where appropriate.
3278
3279 2010-05-06  Jan Hubicka  <jh@suse.cz>
3280
3281         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3282         (record_reference, mark_address, mark_load, mark_store): Record
3283         references.
3284         (record_references_in_initializer): Update call of record_references.
3285         (rebuild_cgraph_edges): Remove all references before rebuiding.
3286         * cgraph.c (cgraph_create_node): Clear ref list.
3287         (cgraph_remove_node): Remove references.
3288         (dump_cgraph_node): Dump references.
3289         (cgraph_clone_node): Clone references.
3290         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3291         (struct cgraph_node, varpool_node): Add ref_lst.
3292         * ipa-ref.c: New file.
3293         * ipa-ref.h: New file.
3294         * ipa-ref-inline.h: New file.
3295         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3296         (referenced_from_other_partition_p): New function.
3297         (lto_output_varpool_node): Take set arugment; call
3298         referenced_from_other_partition.
3299         (lto_output_ref): New.
3300         (add_references): New.
3301         (output_refs): New.
3302         (output_cgraph): Compute boundary based on references; output refs.
3303         (output_varpool): Accept cgraph_node_set argument.
3304         (input_ref): New.
3305         (input_refs): New.
3306         (input_cgraph): Call input_refs.
3307         * lto-section-in.c (lto_section_name): Add refs.
3308         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3309         (ipa-ref.o): New file.
3310         * varpool.c (varpool_node): Clear ipa ref list.
3311         (varpool_remove_node): Remove references.
3312         (dump_varpool_node): Dump references.
3313         (varpool_assemble_decl): Only compile finalized ones.
3314         (varpool_extra_name_alias): Initialize ref list.
3315         * lto-streamer.c (lto-get_section_name): Add .refs section.
3316         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3317         (referenced_from_other_partition_p): Declared.
3318
3319 2010-05-06  Ira Rosen  <irar@il.ibm.com>
3320
3321         PR tree-optimization/43901
3322         * tree-vect-stmts.c (vectorizable_call): Assert that vector
3323         type is not NULL if it's transformation phase, and return
3324         FALSE if it's analysis.
3325         (vectorizable_conversion, vectorizable_operation,
3326         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3327
3328 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
3329
3330         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3331         Delete.
3332         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3333         New define.
3334         * config/mips/mips-protos.h
3335         (mips_small_register_classes_for_mode_p): Delete prototype.
3336
3337 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
3338
3339         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3340         * config/arm/arm.c (multiple_operation_profitable_p,
3341         compute_offset_order): New static functions.
3342         (load_multiple_sequence, store_multiple_sequence): Use them.
3343         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
3344         memory offsets, not register numbers.
3345         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3346
3347 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3348
3349         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3350         (get_pending_sizes, put_pending_size, put_pending_sizes):
3351         Update the uses of pending_sizes.
3352         * c-decl.c (store_parm_decls): Likewise.
3353         * c-tree.h (struct c_arg_info): Likewise.
3354         * tree.h: Update the prototype for get_pending_sizes and
3355         put_pending_sizes.
3356
3357 2010-05-05  Jason Merrill  <jason@redhat.com>
3358
3359         PR debug/43370
3360         * c-common.c (handle_aligned_attribute): Respect
3361         ATTR_FLAG_TYPE_IN_PLACE.
3362
3363         PR testsuite/43758
3364         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3365         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3366         (TARGET_INITIALIZER): Use it.
3367         * c-common.c (attribute_takes_identifier_p): Call it.
3368         * c-common.h: Update prototype.
3369         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3370         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3371
3372 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
3373
3374         PR debug/43950
3375         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3376         DW_ID_down_case for Fortran compilation units.
3377
3378 2010-05-05  Jan Hubicka  <jh@suse.cz>
3379
3380         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3381         handle aliases.
3382
3383 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3384
3385         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3386         a variable-sized RESULT_DECL.
3387
3388 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
3389
3390         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3391
3392 2010-05-05  Jason Merrill  <jason@redhat.com>
3393
3394         PR c++/43787
3395         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3396         returns GS_OK.
3397         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3398
3399 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
3400             Jakub Jelinek  <jakub@redhat.com>
3401
3402         PR debug/43478
3403         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3404         (dead_debug_init, dead_debug_finish): New functions.
3405         (dead_debug_add, dead_debug_insert_before): Likewise.
3406         (df_note_bb_compute): Initialize a dead_debug object, add dead
3407         debug uses to it, insert debug bind insns before death insns,
3408         reset debug insns that refer to pending uses at the end.
3409         * rtl.h (make_debug_expr_from_rtl): New prototype.
3410         * varasm.c (make_debug_expr_from_rtl): New function.
3411
3412 2010-05-05  Jan Hubicka  <jh@suse.cz>
3413
3414         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3415         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3416         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3417         lto_varpool_encoder_deref, lto_varpool_encoder_size,
3418         lto_varpool_encoder_encode_initializer_p,
3419         lto_set_varpool_encoder_encode_initializer): New functions.
3420         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3421         call output_varpool.
3422         (input_varpool_node): Do not always set analyzed.
3423         (input_cgraph_1): Return vector of cgraph nodes.
3424         (input_varpool_1): Return vector of varpools.
3425         (input_cgraph): Free the vectors.
3426         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3427         output only initializers needed.
3428         (lto_output): Only call output_cgraph.
3429         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3430         * lto-section-out.c (lto_new_out_decl_state): Initialize
3431         state->varpool_node_encoder.
3432         * lto-streamer.h (lto_varpool_encoder_d): New.
3433         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3434         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3435         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3436         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3437         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3438         Declare.
3439         (output_varpool, input_varpool): Remove declarations.
3440
3441 2010-05-05  Jan Hubicka  <jh@suse.cz>
3442
3443         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3444         with body can prevail.
3445
3446 2010-05-05  Jan Hubicka  <jh@suse.cz>
3447
3448         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3449         size.
3450
3451 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3452
3453         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3454
3455         * gengtype.h (erro_at_line): Constify pos argument.
3456
3457         * gengtype.c: Include hashtab.h.
3458         (enum gc_used): Document GC_MAYBE_POINTED_TO.
3459         (error_at_line): Constify pos argument.
3460         (do_typedef): Initialize p->opt field.
3461         (get_file_gtfilename): Fix comment typo.
3462         (struct walk_type_data): Constify line field.
3463         (get_output_file_for_structure): New function.
3464         (write_local_func_for_structure): Constify orig_s argument.
3465         Use get_output_file_for_structure.
3466         (write_func_for_structure): Use get_output_file_for_structure.
3467         (INDENT): New define.
3468         (dump_pair, dump_type, dump_type_list, dump_typekind)
3469         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3470         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3471         functions.
3472         (seen_types): New variable.
3473         (main): New variable do_dump.  Process "-d" command line option.
3474         Call dump_everything if dump requested.
3475
3476 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
3477
3478         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
3479         in a temporary instead of invoking the macro multiple times.
3480         (track_expr_p): Likewise.
3481
3482 2010-05-04  Neil Vachharajani <nvachhar@google.com>
3483
3484         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3485         per new semantics.
3486         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3487         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
3488         conditions for printing notes.
3489         * common.opt (-Wcoverage-mismatch): Allow negative, default to
3490         true, update documentation.
3491         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3492
3493 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
3494
3495         PR c/43981
3496         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3497         on dimen.
3498
3499 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3500
3501         PR target/43799
3502         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3503         (*sse_prologue_save_insn1): Likewise.
3504         (SSE prologue save splitter): Likewise.
3505
3506 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3507
3508         * tree.c (free_lang_data_in_one_sizepos): New inline function.
3509         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3510         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3511         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3512         all decls.  Call it on DECL_FIELD_OFFSET of fields.
3513         (find_decls_types_r): Follow DECL_VALUE_EXPR.
3514         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3515
3516 2010-05-04  Martin Jambor  <mjambor@suse.cz>
3517
3518         * tree-sra.c (build_access_from_expr_1): The first parameter type
3519         changed to simple tree.
3520         (build_access_from_expr): Likewise, gsi parameter was eliminated.
3521         (scan_assign_result): Renamed to assignment_mod_result, enum elements
3522         renamed as well.
3523         (build_accesses_from_assign): Removed all parameters except for a
3524         simple gimple statement.  Now returns a simple bool.
3525         (scan_function): All non-analysis parts moved to separate functions
3526         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
3527         parameters and updated both callers.
3528         (sra_modify_expr): Removed parameter data.
3529         (sra_modify_function_body): New function.
3530         (perform_intra_sra): Call sra_modify_function_body to modify the
3531         function body.
3532         (replace_removed_params_ssa_names): Parameter data changed into
3533         adjustments vector.
3534         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
3535         changed the parameter dont_convert to convert with the opposite
3536         meaning.
3537         (sra_ipa_modify_assign): Parameter data changed into adjustments
3538         vector, return value changed to bool.
3539         (ipa_sra_modify_function_body): New function.
3540         (sra_ipa_reset_debug_stmts): Updated a comment.
3541         (modify_function): Use ipa_sra_modify_function_body to modify function
3542         body.
3543
3544 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         PR middle-end/43671
3547         * alias.c (true_dependence): Handle the same VALUE in x and mem.
3548         (canon_true_dependence): Likewise.
3549         (write_dependence_p): Likewise.
3550
3551 2010-05-04  Jan Hubicka  <jh@suse.cz>
3552
3553         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
3554         * cgraphbuild.c: Include ipa-utils.h
3555         (record_reference_ctx): New struct.
3556         (record_reference): Simplify to work on initializers; not statements.
3557         (mark_address, mark_load, mark_store): New.
3558         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3559         walk PHI nodes too.
3560         (record_references_in_initializer): Update use of record_reference.
3561         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
3562         walk PHI nodes too.
3563
3564 2010-05-04  Jan Hubicka  <jh@suse.cz>
3565
3566         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
3567         node will be removed anyway.
3568         (lto_varpool_replace_node): Allow also unanalyzed nodes;
3569         relink aliases of node into prevailing node.
3570         * varpool.c (varpool_remove_node): Remove aliases properly;
3571         when removing node, remove all its aliases too; remove DECL_INITIAL
3572         of removed node; ggc_free the varpool node.
3573
3574 2010-05-04  Richard Guenther  <rguenther@suse.de>
3575
3576         PR tree-optimization/43879
3577         * tree-ssa-structalias.c (alias_get_name): Use
3578         DECL_ASSEMBLER_NAME if available.
3579         (create_function_info_for): Return the varinfo node.
3580         (ipa_pta_execute): Associate same-body aliases and extra names
3581         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
3582
3583 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3584
3585         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
3586
3587 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
3588
3589         PR bootstrap/43964
3590         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
3591         only if HONOR_REG_ALLOC_ORDER is not defined.
3592
3593 2010-05-04  Richard Guenther  <rguenther@suse.de>
3594
3595         PR tree-optimization/43949
3596         * tree-vrp.c (extract_range_from_binary_expr): Only handle
3597         TRUNC_MOD_EXPR.
3598
3599 2010-04-26  Jason Merrill  <jason@redhat.com>
3600
3601         * c.opt (-fstrict-enums): New.
3602         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
3603
3604 2010-05-03  David Ung <davidu@mips.com>
3605             James E. Wilson  <wilson@codesourcery.com>
3606
3607         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
3608         emit the trap instruction before the divide for TUNE_74K.
3609
3610 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
3611
3612         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
3613         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
3614         based on the above, for new target hook.
3615
3616         * hooks.c (hook_bool_mode_true): New generic hook.
3617         * hooks.h (hook_bool_mode_true): Add prototype.
3618
3619         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
3620         target hook.
3621         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
3622         target hook, set to hook_bool_mode_false.
3623         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
3624         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
3625         with targetm.small_register_classes_for_mode_p.
3626         (find_reusable_reload): Likewise.
3627         (combine_reloads): Likewise.
3628         * reload1.c (reload_as_needed): Likewise.
3629         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
3630         * ifcvt.c (noce_process_if_block, check_cond_move_block,
3631         dead_or_predicable): Likewise.
3632         * regmove.c (optimize_reg_copy_1): Likewise.
3633         * calls.c (prepare_call_address): Likewise.
3634         (precompute_register_parameters): Likewise.
3635
3636         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
3637         hook definition.
3638         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
3639         implementation of the hook that considers all register classes
3640         small except for SH64.
3641         (sh_override_options): Use the new hook.
3642         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
3643         Add prototype.
3644
3645         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
3646         hook definition.
3647         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
3648         implementation of the hook that considers all register classes
3649         small for THUMB1.
3650         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
3651         Add prototype.
3652
3653         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
3654         hook definition.
3655         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
3656         implementation of the hook that considers all register classes
3657         small for MIPS16.
3658         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
3659         Add prototype.
3660
3661         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
3662         hook definition.
3663         * config/m32c/m32c.h: Likewise.
3664         * config/pdp11/pdp11.h: Likewise.
3665         * config/avr/avr.h: Likewise.
3666         * config/xtensa/xtensa.h: Likewise.
3667         * config/m68hc11/m68hc11.h: Likewise.
3668         * config/mn10300/mn10300.h: Likewise.
3669         * config/mcore/mcore.h: Likewise.
3670         * config/h8300/h8300.h: Likewise.
3671         * config/bfin/bfin.h: Likewise.
3672
3673         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
3674         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
3675
3676 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
3677
3678         * double-int.h (tree_to_double_int): Remove macro.
3679         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
3680         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3681         (tree_to_double_int): New function.
3682         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
3683         Move ...
3684         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
3685
3686 2010-05-03  Richard Guenther  <rguenther@suse.de>
3687
3688         PR tree-optimization/43971
3689         * tree-ssa-structalias.c (get_constraint_for_1): Fix
3690         constraints in the !flag_delete_null_pointer_checks case.
3691
3692 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
3693
3694         PR debug/43972
3695         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
3696         result mode matches original rtl mode.
3697
3698 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
3699
3700         PR target/43888
3701         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
3702
3703 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3704
3705         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
3706         when processing flag options.
3707
3708 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3709
3710         * gcov-iov.c (main): Change format string placeholder
3711         from %#08x to 0x%08x.
3712         * genchecksum.c (dosum): Change format string placeholder
3713         from %#02x to 0x%02x.
3714
3715 2010-05-02  Richard Guenther  <rguenther@suse.de>
3716
3717         PR tree-optimization/43879
3718         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
3719
3720 2010-05-02  Bruno Haible  <bruno@clisp.org>
3721
3722         * doc/extend.texi (Function Attributes): Fix a typo.
3723
3724 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3725
3726         Revert:
3727         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
3728         placeholder from 0x%x to %#x.
3729         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3730         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3731         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3732         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3733         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3734         * config/i386/i386.c (ix86_target_string): Ditto.
3735         * config/i386/i386.c (output_pic_addr_const): Ditto.
3736         (print_operand): Ditto.
3737
3738 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
3739
3740         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
3741         placeholder from 0x%x to %#x.
3742         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
3743         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
3744         (ASM_OUTPUT_DEBUG_DATA): Ditto.
3745         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
3746         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
3747         * optc-gen.awk: Ditto.
3748         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
3749         (HOST_WIDE_INT_PRINT_HEX): Ditto.
3750         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
3751         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
3752
3753 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
3754
3755         * target.h (struct calls): Add function_value_regno_p field.
3756         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3757         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
3758         * targhooks.c (default_function_value_regno_p): New function.
3759         * targhooks.h (default_function_value_regno_p): Declare function.
3760         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
3761         * builtins.c. (apply_result_size): (Ditto.).
3762         * combine.c. (likely_spilled_retval_p): (Ditto.).
3763         * mode-switching.c. Include 'target.h'.
3764         (create_pre_exit): Use function_value_regno_p hook.
3765         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
3766         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
3767         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
3768
3769         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
3770         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
3771         (ix86_function_value_regno_p): Declare as static, change argument
3772         type to const unsigned int.
3773         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
3774
3775 2010-05-01  Richard Guenther  <rguenther@suse.de>
3776
3777         PR tree-optimization/43949
3778         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
3779         types.
3780         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
3781
3782 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
3783
3784         * rtl.h (CONST_DOUBLE_P): Define.
3785         (rtx_to_double_int): Declare.
3786         * emit-rtl.c (rtx_to_double_int): New function.
3787         * dwarf2out.c (insert_double): New function.
3788         (loc_descriptor, add_const_value_attribute): Clean up, use
3789         rtx_to_double_int and insert_double functions.
3790
3791 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
3792
3793         * doc/extend.texi (Inline): Add missing return keyword to examples.
3794         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
3795         "command-line".
3796
3797 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
3798
3799         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
3800         the variable part of the offset as well.  Use highest_pow2_factor for
3801         all alignment checks.
3802
3803 2010-04-30  Richard Guenther  <rguenther@suse.de>
3804
3805         PR tree-optimization/43879
3806         * tree-ssa-structalias.c (type_could_have_pointers): Functions
3807         can have pointers.
3808
3809 2010-04-30  Jan Hubicka  <jh@suse.cz>
3810
3811         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
3812         varpool.
3813         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
3814
3815 2010-04-30  Jan Hubicka  <jh@suse.cz>
3816
3817         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
3818         New.
3819         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
3820         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
3821         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
3822         cgraph_node_set_needs_ltrans_p): Remove.
3823
3824 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3825
3826         * sdbout.c: Include vec.h, do not include varray.h.
3827         (deferred_global_decls, sdbout_global_decl,
3828         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
3829         * toplev.c: Do not include varray.h.
3830         (dump_memory_report): Do not dump VARRAY statistics.
3831         * gengtype.c (open_base_file): Ignore varray.h.
3832         * Makefile.in: Update for abovementioned changes.
3833         Remove all traces of varray.c and varray.h.
3834         * varray.c: Remove file.
3835         * varray.h: Remove file.
3836
3837 2010-04-30  Jan Hubicka  <jh@suse.cz>
3838
3839         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
3840         references.
3841
3842 2010-04-30  Jan Hubicka  <jh@suse.cz>
3843
3844         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
3845         needed.
3846
3847 2010-04-30  Richard Guenther  <rguenther@suse.de>
3848
3849         * tree-ssa-structalias.c (get_constraint_for_1): Generate
3850         constraints for CONSTRUCTOR.
3851
3852 2010-04-30  Richard Guenther  <rguenther@suse.de>
3853
3854         PR lto/43946
3855         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
3856         first after all lowering passes.
3857
3858 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3859
3860         * toplev.c: Include varray.h for statistics dumping.
3861         * tree.h: Do not declare varray_head_tag.
3862         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
3863         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
3864         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
3865         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
3866         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
3867         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
3868         c-common.c, c-common.h, reg-stack.c, basic-block.h,
3869         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
3870         include varray.h.
3871         * Makefile.in: Update for abovementioned changes.
3872
3873 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
3874
3875         PR debug/43942
3876         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
3877
3878 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
3879
3880         * config/picochip/picochip.c (picochip_legitimize_address): Define.
3881         Use this function to do machine-specific conversion.
3882         (picochip_legitimize_reload_address): Likewise.
3883         (picochip_legitimate_address_p): Check valid base register only if
3884         strict.
3885         (picochip_check_conditional_copy): Check for modw only if opnd is
3886         register.
3887         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
3888         to call the function in c.
3889         * config/picochip/picochip-protos.h
3890         (picochip_legitimize_reload_address): Define.
3891         * config/picochip/picochip.md (supported_compare1): Define.
3892
3893 2010-04-30  Jan Hubicka  <jh@suse.cz>
3894
3895         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
3896         (cgraph_global_info): Remove inlined.
3897         (LTO_cgraph_tag_names): Remove.
3898         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
3899         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
3900         simplify cgraph tags and document.
3901         (lto_output_node): Use only LTO_cgraph_unavail_node and
3902         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
3903         for_functions_valid, global info, process and output flags.
3904         (input_overwrite_node): Initialize estimated stack size and
3905         estimated growth.  Do not read flags we no longer store.
3906         (input_node): Likewise do not read info no longer stored.
3907         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
3908         flag.
3909
3910 2010-04-30  Richard Guenther  <rguenther@suse.de>
3911
3912         PR tree-optimization/43879
3913         * tree-ssa-structalias.c (get_constraint_for_1): Properly
3914         handle non-zero initializers.
3915
3916 2010-04-30  Richard Guenther  <rguenther@suse.de>
3917
3918         * builtins.c (fold_builtin_1): Delete free (0).
3919
3920 2010-04-29  Jan Hubicka  <jh@suse.cz>
3921
3922         * gengtype.c (open_base_files): Add lto-streamer.h
3923         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
3924         (pass_ipa_cp): GGC collect.
3925         * toplev. (compile_file): Do not output symbols.
3926         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
3927         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
3928         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
3929         * lto-section-in.c: Include ggc.h
3930         (lto_new_in_decl_state): Alloc in GGC.
3931         (lto_delete_in_decl_state): Likewise.
3932         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
3933         Collect.
3934
3935 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
3936
3937         PR target/42895
3938         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
3939         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
3940         (HONOR_REG_ALLOC_ORDER): Describe new macro.
3941         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
3942         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
3943         account only if HONOR_REG_ALLOC_ORDER is not defined.
3944         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
3945         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
3946
3947 2010-04-29  Jon Grant  <04@jguk.org>
3948
3949         * collect2.c (vflag): Change type from int to bool.
3950         (debug): Likewise.
3951         (helpflag): New global bool.
3952         (main): Set vflag and debug with boolean, not integer truth values.
3953         Accept new "--help" option and output usage text if found.
3954         * collect2.h (vflag): Update prototype.
3955         (debug): Likewise.
3956
3957 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
3958
3959         PR bootstrap/43936
3960         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
3961
3962 2010-04-29  Richard Guenther  <rguenther@suse.de>
3963
3964         PR bootstrap/43935
3965         * plugin.h (invoke_plugin_callbacks): Annotate arguments
3966         with ATTRIBUTE_UNUSED.
3967
3968 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
3969
3970         PR target/43921
3971         * config/i386/i386.c (get_some_local_dynamic_name): Replace
3972         INSN_P with NONDEBUG_INSN_P.
3973         (distance_non_agu_define): Likewise.
3974         (distance_agu_use): Likewise.
3975
3976 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
3977
3978         From Dominique d'Humieres <dominiq@lps.ens.fr>
3979         PR bootstrap/43858
3980         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
3981         test_set.
3982
3983 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
3984
3985         * plugin.h (invoke_plugin_callbacks): New inline function.
3986         * plugin.c (flag_plugin_added): New global flag.
3987         (add_new_plugin): Initialize above flag.
3988         (invoke_plugin_callbacks): Rename to ...
3989         (invoke_plugin_callbacks_full): ... this.
3990
3991 2010-04-28  Jan Hubicka  <jh@suse.cz>
3992
3993         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
3994         (lto_varpool_replace_node): New.
3995         (lto_symtab_resolve_symbols): Resolve varpool nodes.
3996         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
3997         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
3998         * cgraph.h (varpool_node_ptr): New type.
3999         (varpool_node_ptr): New vector.
4000         (varpool_node_set_def): New structure.
4001         (varpool_node_set): New type.
4002         (varpool_node_set): New vector.
4003         (varpool_node_set_element_def): New structure.
4004         (varpool_node_set_element, const_varpool_node_set_element): New types.
4005         (varpool_node_set_iterator): New type.
4006         (varpool_node): Add prev pointers, add used_from_other_partition,
4007         in_other_partition.
4008         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4009         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4010         varpool_get_node, varpool_remove_node): Declare.
4011         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4012         varpool_node_set_size): New inlines.
4013         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4014         * tree-pass.h (varpool_node_set_def): Forward declare.
4015         (ipa_opt_pass_d): Summary writting takes vnode sets too.
4016         (ipa_write_optimization_summaries): Update prototype.
4017         * ipa-cp.c (ipcp_write_summary): Update.
4018         * ipa-reference.c (ipa_reference_write_summary): Update.
4019         * lto-cgraph.c (lto_output_varpool_node): New static function.
4020         (output_varpool): New function.
4021         (input_varpool_node): New static function.
4022         (input_varpool_1): New function.
4023         (input_cgraph): Input varpool.
4024         * ipa-pure-const.c (pure_const_write_summary): Update.
4025         * lto-streamer-out.c (lto_output): Update, output varpool too.
4026         (write_global_stream): Kill WPA hack.
4027         (produce_asm_for_decls): Update.
4028         (output_alias_pair_p): Handle variables.
4029         (output_unreferenced_globals): Output only needed partition of varpool.
4030         * ipa-inline.c (inline_write_summary): Update.
4031         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4032         cgraph.
4033         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4034         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4035         varpool_node_set_new, varpool_node_set_add,
4036         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4037         debug_varpool_node_set): New functions.
4038         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4039         (execute_one_pass): Process new decls too.
4040         (ipa_write_summaries_2): Pass around vsets.
4041         (ipa_write_summaries_1): Likewise.
4042         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4043         to add.
4044         (ipa_write_optimization_summaries_1): Pass around vsets.
4045         (ipa_write_optimization_summaries): Likewise.
4046         * varpool.c (varpool_get_node): New.
4047         (varpool_node): Update doubly linked lists.
4048         (varpool_remove_node): New.
4049         (dump_varpool_node): More dumping.
4050         (varpool_enqueue_needed_node): Update doubly linked lists.
4051         (decide_is_variable_needed): Kill ltrans hack.
4052         (varpool_finalize_decl): Kill lto hack.
4053         (varpool_assemble_decl): Skip decls in other partitions.
4054         (varpool_assemble_pending_decls): Update doubly linkes lists.
4055         (varpool_empty_needed_queue): Likewise.
4056         (varpool_extra_name_alias): Likewise.
4057         * lto-streamer.c (lto_get_section_name): Add vars section.
4058         * lto-streamer.h (lto_section_type): Update.
4059         (output_varpool, input_varpool): Declare.
4060
4061 2010-04-28  Mike Stump  <mikestump@comcast.net>
4062
4063         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4064
4065 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4066
4067         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4068         record or union type with RECORD_OR_UNION_TYPE_P predicate.
4069         (lto_input_ts_type_tree_pointers): Likewise.
4070         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4071         (lto_output_ts_type_tree_pointers): Likewise.
4072
4073 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4074
4075         Uniquization of constants at the Tree level
4076         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4077         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4078         bit to the end.
4079         (tree_output_constant_def): Declare.
4080         * gimplify.c (gimplify_init_constructor): When using block copy, first
4081         uniquize the constant constructor on the RHS.
4082         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4083         DECL_IN_CONSTANT_POOL flag.
4084         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4085         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4086         constant pool.
4087         (assemble_variable): Deal with symbols belonging to the tree constant
4088         pool.
4089         (get_constant_section): Add ALIGN parameter and simplify.
4090         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4091         (assemble_constant_contents): Use the expression of the VAR_DECL.
4092         (output_constant_def_contents): Use the alignment of the VAR_DECL.
4093         (tree_output_constant_def): New global function.
4094         (mark_constant): Use the expression of the VAR_DECL.
4095         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4096         its expression.
4097         (output_object_block): Likewise and assemble the expression.
4098
4099 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4100
4101         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4102         hash_tree, eq_tree): New tree hash table.
4103         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4104         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4105         lto_orig_address_remove): Reimplement.
4106
4107 2010-04-28  Xinliang David Li  <davidxl@google.com>
4108
4109         PR c/42643
4110         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4111         (compute_uninit_opnds_pos): New function.
4112         (is_non_loop_exit_postdominating): New function.
4113         (compute_control_dep_chain): New function.
4114         (find_pdom): New function.
4115         (convert_control_dep_chain_into_preds): New function.
4116         (find_predicates): New function.
4117         (find_control_equiv_block): New function.
4118         (collect_phi_def_edges): New function.
4119         (find_def_preds): New function.
4120         (find_dom): New function.
4121         (dump_predicates): New function.
4122         (get_cmp_code): New function.
4123         (is_value_included_in): New function.
4124         (find_matching_predicate_in_rest_chains): New function.
4125         (use_pred_not_overlap_with_undef_path_pred): New function.
4126         (is_use_properly_guarded): New function.
4127         (normalize_cond_1): New function.
4128         (is_and_or_or): New function.
4129         (normalize_cond): New function.
4130         (is_gcond_subset_of): New function.
4131         (is_subset_of_any): New function.
4132         (is_or_set_subset_of): New function.
4133         (is_and_set_subset_of): New function.
4134         (is_norm_cond_subset_of): New function.
4135         (is_pred_expr_subset_of): New function.
4136         (is_pred_chain_subset_of): New function.
4137         (is_included_in): New function.
4138         (is_superset_of): New function.
4139         (find_uninit_use): New function.
4140         (warn_uninitialized_phi): New function.
4141         (compute_possibly_undefined_names): New function.
4142         (ssa_undefined_value_p): New function.
4143         (execute_late_warn_uninitialized): New function.
4144         * tree-ssa.c (ssa_undefined_value_p): Removed.
4145         (warn_uninit): Changed to extern.
4146         (warn_uninitialized_phi): Removed.
4147         (warn_uninitialized_vars): Changed to extern.
4148         (execute_late_warn_uninitialized): Removed
4149         * tree-flow.h: Add new prototypes.
4150         * timevar.def: Add new time variable.
4151         * Makefile.in: Add new build file.
4152
4153 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
4154
4155         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4156         type if available.
4157
4158 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4159
4160         PR target/22224
4161         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4162
4163 2010-04-28  Martin Jambor  <mjambor@suse.cz>
4164
4165         * cgraph.h (struct cgraph_node): New field indirect_calls.
4166         (struct cgraph_indirect_call_info): New type.
4167         (struct cgraph_edge): Removed field indirect_call. New fields
4168         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4169         (cgraph_create_indirect_edge): Declare.
4170         (cgraph_make_edge_direct): Likewise.
4171         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4172         * ipa-prop.h (struct ipa_param_call_note): Removed.
4173         (struct ipa_node_params): Removed field param_calls.
4174         (ipa_create_all_structures_for_iinln): Declare.
4175         * cgraph.c: Described indirect edges and uids in initial comment.
4176         (cgraph_add_edge_to_call_site_hash): New function.
4177         (cgraph_edge): Search also among the indirect edges, use
4178         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4179         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4180         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4181         site hash.
4182         (initialize_inline_failed): Assign a reason to indirect edges.
4183         (cgraph_create_edge_1): New function.
4184         (cgraph_create_edge): Moved some functionality to
4185         cgraph_create_edge_1.
4186         (cgraph_create_indirect_edge): New function.
4187         (cgraph_edge_remove_callee): Add an assert checking for
4188         non-indirectness.
4189         (cgraph_edge_remove_caller): Special-case indirect edges.
4190         (cgraph_remove_edge): Likewise.
4191         (cgraph_set_edge_callee): New function.
4192         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4193         (cgraph_make_edge_direct): New function.
4194         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4195         the declaration of the call statement matches.
4196         (cgraph_node_remove_callees): Special-case indirect edges.
4197         (cgraph_clone_edge): Likewise.
4198         (cgraph_clone_node): Clone also the indirect edges.
4199         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4200         indirect_call, dump count of indirect_calls edges.
4201         * ipa-prop.c (iinlining_processed_edges): New variable.
4202         (ipa_note_param_call): Create indirect edges instead of
4203         creating notes.  New parameter node.
4204         (ipa_analyze_call_uses): New parameter node, pass it on to
4205         ipa_note_param_call.
4206         (ipa_analyze_stmt_uses): Likewise.
4207         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4208         (print_edge_addition_message): Work on edges rather than on notes.
4209         (update_call_notes_after_inlining): Likewise, renamed to
4210         update_indirect_edges_after_inlining.
4211         (ipa_create_all_structures_for_iinln): New function.
4212         (ipa_free_node_params_substructures): Do not free notes.
4213         (ipa_edge_duplication_hook): Propagate bits within
4214         iinlining_processed_edges bitmap.
4215         (ipa_node_duplication_hook): Do not duplicate notes.
4216         (free_all_ipa_structures_after_ipa_cp): Renamed to
4217         ipa_free_all_structures_after_ipa_cp.
4218         (free_all_ipa_structures_after_iinln): Renamed to
4219         ipa_free_all_structures_after_iinln.
4220         (ipa_write_param_call_note): Removed.
4221         (ipa_read_param_call_note): Removed.
4222         (ipa_write_indirect_edge_info): New function.
4223         (ipa_read_indirect_edge_info): Likewise.
4224         (ipa_write_node_info): Do not stream notes, do stream information
4225         in indirect edges.
4226         (ipa_read_node_info): Likewise.
4227         (lto_ipa_fixup_call_notes): Removed.
4228         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4229         * ipa-inline.c (pass_ipa_inline): Likewise.
4230         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4231         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4232         * tree-inline.c (copy_bb): Removed an unnecessary double check for
4233         is_gimple_call.
4234         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4235         edges.
4236         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4237         (output_cgraph): Stream also indirect edges.
4238         (lto_output_edge): Added capability to stream indirect edges.
4239         (input_edge): Likewise.
4240         (input_cgraph_1): Likewise.
4241         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4242         of indirect edges.
4243
4244 2010-04-28  Richard Guenther  <rguenther@suse.de>
4245
4246         PR tree-optimization/43879
4247         PR tree-optimization/43909
4248         * tree-ssa-structalias.c (struct variable_info): Add
4249         only_restrict_pointers flag.
4250         (new_var_info): Initialize it.  Increment stats.total_vars here.
4251         (create_function_info_for): Do not increment stats.total_vars here.
4252         (get_function_part_constraint): Fix build with C++.
4253         (insert_into_field_list): Remove.
4254         (push_fields_onto_fieldstack): Properly merge fields.
4255         (create_variable_info_for): Split and simplify.
4256         (create_variable_info_for_1): New piece.
4257         (intra_create_variable_infos): Properly make restrict constraints
4258         from parameters.
4259
4260 2010-04-28  Richard Guenther  <rguenther@suse.de>
4261
4262         PR c++/43880
4263         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4264
4265 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4266             Jan Hubicka <hubicka@ucw.cz>
4267
4268         * doc/invoke.texi (-Wsuggest-attribute=const,
4269         -Wsuggest-attribute=pure): Document.
4270         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4271         (function_always_visible_to_compiler_p,
4272         suggest_attribute, warn_function_pure, warn_function_const):
4273         New functions.
4274         (check_call): Improve debug info.
4275         (analyze_function): Do not check availability.
4276         (add_new_function): Check availability.
4277         (propagate): Output warnings.
4278         (skip_function_for_local_pure_const): New function.
4279         (local_pure_const): Use it; output warnings.
4280         * common.opt (Wsuggest-attribute=const,
4281         Wsuggest-attribute=pure): New.
4282
4283 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4284
4285         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4286         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4287         or DW_CFA_def_cfa_offset{,_sf}.
4288
4289 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4290
4291         * tree.h: Fix truncated long macros.
4292
4293 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
4294
4295         * collect2.c (TARGET_64BIT): Redefine to target's default.
4296         * tlink.c: Likewise.
4297         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4298         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4299         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4300         for underscoring __USER_LABEL_PREFIX__.
4301         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4302         (SUB_LINK_ENTRY32): New.
4303         (SUB_LINK_ENTRY64): New.
4304         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4305         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4306         (SUB_LINK_ENTRY64): New.
4307         (SUB_LINK_ENTRY): New.
4308         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4309         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4310         x64 target is choosen.
4311         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4312         * configure: Regenerated.
4313         * configure.ac (leading-mingw64-underscores): Option added.
4314
4315 2010-04-27  Jan Hubicka  <jh@suse.cz>
4316
4317         * doc/invoke.texi (-fipa-profile): Document.
4318         * opts.c (decode_options): Enable ipa-profile at -O1.
4319         * timevar.def (TV_IPA_PROFILE): Define.
4320         * common.opt (fipa-profile): Add.
4321         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4322         flag for clones.
4323         (cgraph_propagate_frequency): Handle only local ones.
4324         * tree-pass.h (pass_ipa_profile): Declare.
4325         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4326         (pass_ipa_profile): Use TV_IPA_PROFILE.
4327         * ipa.c (ipa_profile): New function.
4328         (gate_ipa_profile): Likewise.
4329         (pass_ipa_profile): New global variable.
4330         * passes.c (pass_ipa_profile): New.
4331
4332 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
4333
4334         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4335
4336 2010-04-27  Martin Jambor  <mjambor@suse.cz>
4337
4338         PR middle-end/43812
4339         * ipa.c (dissolve_same_comdat_group_list): New function.
4340         (function_and_variable_visibility): Call
4341         dissolve_same_comdat_group_list when comdat group contains external or
4342         newly local nodes.
4343         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4344         lists are circular and that they contain only DECL_ONE_ONLY nodes.
4345
4346 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4347
4348         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4349         (const_hash_1) <VECTOR_CST>: New case.
4350         (compare_constant) <VECTOR_CST>: Likewise.
4351         <ADDR_EXPR>: Deal with LABEL_REFs.
4352         (copy_constant) <VECTOR_CST>: New case.
4353
4354 2010-04-27  Jan Hubicka  <jh@suse.cz>
4355
4356         * cgraph.c (cgraph_propagate_frequency): New function.
4357         * cgraph.h (cgraph_propagate_frequency): Declare.
4358         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4359         cgraph_propagate_frequency.
4360
4361 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4362
4363         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4364
4365 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
4366
4367         PR target/40657
4368         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4369         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4370         here to determine which regs to push and how much stack to reserve.
4371
4372 2010-04-27  Jie Zhang  <jie@codesourcery.com>
4373
4374         * doc/gimple.texi (gimple_statement_with_ops): Remove
4375         addresses_taken field.
4376         (gimple_statement_with_memory_ops): Likewise.
4377
4378 2010-04-27  Jan Hubicka  <jh@suse.cz>
4379
4380         * tree-inline.c (eni_inlining_weights): Remove.
4381         (estimate_num_insns): Special case more builtins.
4382
4383 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
4384
4385         PR c/32207
4386         * c-typeck.c (build_binary_op): Move forward check for comparison
4387         pointer with null pointer constant and adjust the diagnostic message.
4388
4389 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
4390
4391         PR lto/42776
4392         * configure.ac (gcc_cv_as_section_has_align): Set if installed
4393         binutils supports extended .section directive needed by LTO, or
4394         warn if older binutils found.
4395         (LTO_BINARY_READER): New AC_SUBST'd variable.
4396         (LTO_USE_LIBELF): Likewise.
4397         * gcc/config.gcc (lto_binary_reader): New target-specific configure
4398         variable.
4399         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4400         (LTO_USE_LIBELF): Likewise.
4401         * configure: Regenerate.
4402
4403         * collect2.c (is_elf): Rename from this ...
4404         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4405          object files in addition to ELF-formatted ones.
4406         (scan_prog_file): Caller updated.  Also allow for LTO info marker
4407         symbol to be prefixed or not by an extra underscore.
4408
4409         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4410         * config/i386/winnt.c: Also #include lto-streamer.h
4411         (i386_pe_asm_named_section): Specify 1-byte section alignment for
4412         LTO named sections.
4413         (i386_pe_asm_output_aligned_decl_common): Add comment.
4414         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4415
4416 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
4417
4418         PR target/43889
4419         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4420         Add missing earlyclobber for second alternative.
4421
4422 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
4423
4424         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4425         bits for artificial defs at the top of the block.
4426         * fwprop.c (single_def_use_enter_block): Don't call it.
4427
4428 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
4429
4430         PR 43715
4431         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4432         instead of "$gcc_cv_objdump -T".
4433         Use "-undefined dynamic_lookup" on darwin.
4434         * gcc/configure: Regenerate.
4435
4436 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
4437
4438         PR c/43893
4439         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4440
4441 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
4442
4443         * c-parser.c (struct c_token): Move location field up.
4444         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4445         (struct c_declspecs): Convert typespec_word, storage_class, and
4446         default_int_p into bitfields.
4447         (struct c_declarator): Move loc field up.
4448
4449 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
4450
4451         * cfgloop.h (struct loop): Move can_be_parallel field up.
4452         * ipa-prop.h (struct ip_node_params): Move bitfields up.
4453         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4454         down.
4455         (struct iv_cand): Convert pos field into a bitfield.
4456         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4457         field up.
4458         (struct _stmt_vec_info): Shuffle fields for better packing.
4459
4460 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
4461
4462         * varasm.c (IN_NAMED_SECTION): Remove guard.
4463         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4464         (IN_NAMED_SECTION_P): ...this.
4465         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4466         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4467
4468 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
4469
4470         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4471         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
4472         of shadowing it.  Fix comments.
4473
4474 2010-04-26  Jan Hubicka  <jh@suse.cz>
4475
4476         * cgraph.c (cgraph_create_node): Set node frequency to normal.
4477         (cgraph_clone_node): Copy function frequency.
4478         * cgraph.h (node_frequency): New enum
4479         (struct cgraph_node): Add.
4480         * final.c (rest_of_clean_state): Update.
4481         * lto-cgraph.c (lto_output_node): Output node frequency.
4482         (input_overwrite_node): Input node frequency.
4483         * tre-ssa-loop-ivopts (computation_cost): Update.
4484         * lto-streamer-out.c (output_function): Do not output function
4485         frequency.
4486         * predict.c (maybe_hot_frequency_p): Update and handle functions
4487         executed once.
4488         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4489         attribute lookup.
4490         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4491         (compute_function_frequency): Set noreturn functions to be executed
4492         once.
4493         (choose_function_section): Update.
4494         * lto-streamer-in.c (input_function): Do not input function frequency.
4495         * function.c (allocate_struct_function): Do not initialize function
4496         frequency.
4497         * function.h (function_frequency): Remove.
4498         (struct function): Remove function frequency.
4499         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4500         (try_update): Update.
4501         * tree-inline.c (initialize_cfun): Do not update function frequency.
4502         * passes.c (pass_init_dump_file): Update.
4503         * i386.c (ix86_compute_frame_layout): Update.
4504         (ix86_pad_returns): Update.
4505
4506 2010-04-26  Jie Zhang  <jie@codesourcery.com>
4507
4508         PR tree-optimization/43833
4509         * tree-vrp.c (range_int_cst_p): New.
4510         (range_int_cst_singleton_p): New.
4511         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4512         when both operands are constants.  Use range_int_cst_p in
4513         BIT_IOR_EXPR case.
4514
4515 2010-04-26  Jan Hubicka  <jh@suse.cz>
4516
4517         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4518
4519 2010-04-26  Richard Guenther  <rguenther@suse.de>
4520
4521         PR lto/43080
4522         * gimple.c (gimple_decl_printable_name): Deal gracefully
4523         with a NULL DECL_NAME.
4524
4525 2010-04-26  Richard Guenther  <rguenther@suse.de>
4526
4527         PR lto/42425
4528         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4529         if emitting debug information and it is either a function
4530         or a namespace decl.
4531
4532 2010-04-26  Ira Rosen  <irar@il.ibm.com>
4533
4534         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4535         determine if the statement is vectorizable, and a macro to access it.
4536         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4537         Skip statements that can't be vectorized. If the analysis fails,
4538         mark the statement as unvectorizable if vectorizing basic block.
4539         (vect_compute_data_refs_alignment): Likewise.
4540         (vect_verify_datarefs_alignment): Skip statements marked as
4541         unvectorizable. Add print.
4542         (vect_analyze_group_access): Skip statements that can't be
4543         vectorized. If the analysis fails, mark the statement as
4544         unvectorizable if vectorizing basic block.
4545         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4546         * tree-vect-stmts.c (vectorizable_store): Fix the number of
4547         generated stmts for SLP.
4548         (new_stmt_vec_info): Initialize the new field.
4549         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
4550         statements marked as unvectorizable.
4551
4552 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
4553
4554         * c-common.c (flag_isoc1x): New.
4555         (flag_isoc99): Update comment.
4556         * c-common.h (flag_isoc1x): New.
4557         (flag_isoc99): Update comment.
4558         * c-cppbuiltin.c (builtin_define_float_constants): Also define
4559         __<type>_DECIMAL_DIG__.
4560         * c-opts.c (set_std_c1x): New.
4561         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
4562         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
4563         * c.opt (-std=c1x, -std=gnu1x): New options.
4564         * doc/cpp.texi: Mention -std=c1x.
4565         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
4566         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
4567         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
4568         * doc/standards.texi: Mention C1X.
4569         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
4570         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
4571         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4572         Define for C1X.
4573
4574 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
4575
4576         * config/i386/gmon-sol2.c (_mcleanup): Change format string
4577         placeholder from 0x%x to %#x.
4578         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4579         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4580         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4581         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4582         * config/i386/i386.c (ix86_target_string): Ditto.
4583         (output_pic_addr_const): Ditto.
4584         (print_operand): Ditto.
4585
4586 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
4587
4588         * combine.c (find_split_point): Add third argument.  Use it
4589         to find nested multiply-accumulate instructions.  Adjust calls.
4590         (try_combine): Adjust call to find_split_point.
4591
4592 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4593
4594         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
4595
4596 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
4597
4598         PR tree-optimization/41442
4599         * fold-const.c (merge_truthop_with_opposite_arm): New function.
4600         (fold_binary_loc): Call it.
4601
4602 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4603
4604         * toplev.c (general_init): Set default for fdiagnostics-show-option.
4605         * opts.c (common_handle_option): Allow disabling it.
4606         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
4607
4608 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
4609
4610         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
4611         between modes if both types are integral.
4612
4613 2010-04-23  Richard Guenther  <rguenther@suse.de>
4614
4615         PR tree-optimization/43572
4616         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
4617
4618 2010-04-23  Richard Guenther  <rguenther@suse.de>
4619
4620         PR lto/43455
4621         * tree-inline.c (tree_can_inline_p): Also check compatibility
4622         of return types.
4623
4624 2010-04-23  Martin Jambor  <mjambor@suse.cz>
4625
4626         PR tree-optimization/43846
4627         * tree-sra.c (struct access): New flag grp_assignment_read.
4628         (build_accesses_from_assign): Set grp_assignment_read.
4629         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
4630         (enum mark_read_status): New type.
4631         (analyze_access_subtree): Propagate grp_assignment_read, create
4632         accesses also if both direct_read and root->grp_assignment_read.
4633
4634 2010-04-23  Martin Jambor  <mjambor@suse.cz>
4635
4636         PR middle-end/43835
4637         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
4638         function does not have type attributes.
4639
4640 2010-04-23  Richard Guenther  <rguenther@suse.de>
4641
4642         PR lto/42653
4643         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
4644         of FUNCTION_DECLs.
4645
4646 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4647
4648         * sese.h (create_if_region_on_edge): Remove.
4649
4650         * sese.c (create_if_region_on_edge): Make static.
4651
4652         * tree-inline.c: Do not include ggc.h.
4653
4654         * expr.c: Do not include ggc.h.
4655
4656         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
4657         dependencies.
4658
4659 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4660
4661         PR target/43744
4662         * config/sh/sh.c (find_barrier): Don't emit a constant pool
4663         in the middle of insns for casesi_worker_2.
4664
4665 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
4666
4667         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
4668
4669 2010-04-22  Ira Rosen  <irar@il.ibm.com>
4670
4671         PR tree-optimization/43842
4672         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
4673         loop unrolling in update of exit phis. Fix comment.
4674         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
4675         least two reduction statements in the loop before starting SLP
4676         analysis.
4677
4678 2010-04-22  Nick Clifton  <nickc@redhat.com>
4679
4680         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
4681
4682 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
4683
4684         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
4685         to simplify a + ~a.
4686
4687 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4688
4689         * tree-parloops.c (loop_parallel_p): New argument
4690         parloop_obstack.  Pass it down.
4691         (parallelize_loops): New variable parloop_obstack.  Initialize it,
4692         pass it down, free it.
4693
4694         * tree-loop-linear.c (linear_transform_loops): Pass down
4695         lambda_obstack.
4696
4697         * tree-data-ref.h (lambda_compute_access_matrices): New argument
4698         of type struct obstack *.
4699
4700         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
4701         scratch_obstack.  Initialize it, pass down, free it.
4702
4703         * lambda.h (lambda_loop_new): Remove.
4704         (lambda_matrix_new, lambda_matrix_inverse)
4705         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
4706         argument of type struct obstack *.
4707
4708         * lambda-trans.c (lambda_trans_matrix_new): New argument
4709         lambda_obstack.  Pass it down, use obstack allocation for ret.
4710         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
4711         it down.
4712
4713         * lambda-mat.c (lambda_matrix_get_column)
4714         (lambda_matrix_project_to_null): Remove.
4715         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
4716         allocation for mat.
4717         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
4718         lambda_obstack.
4719
4720         * lambda-code.c (lambda_loop_new): New function.
4721         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
4722         (lambda_compute_auxillary_space, lambda_compute_target_space)
4723         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
4724         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
4725         (build_access_matrix): New argument lambda_obstack.  Use obstack
4726         allocation for am.
4727         (lambda_compute_step_signs, lambda_compute_access_matrices): New
4728         argument lambda_obstack.  Pass it down.
4729
4730 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
4731
4732         * optabs.h (expand_widening_mult): Declare.
4733
4734 2010-04-22  Richard Guenther  <rguenther@suse.de>
4735
4736         PR tree-optimization/43845
4737         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
4738         lookup the CALL_EXPR function and arguments.
4739
4740 2010-04-22  Nick Clifton  <nickc@redhat.com>
4741
4742         * config/stormy16/stormy16.c
4743         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
4744         * config/stormy16/stormy16.h: Tidy up formatting.
4745         (DONT_USE_BUILTIN_SETJMP): Remove definition.
4746         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
4747         (ineqbranchsi): Delete pattern.
4748         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
4749         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
4750         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4751         stormy16-lib2-ucmpsi2.c.
4752
4753 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
4754
4755         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
4756         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
4757         extra set merge_set_noclobber, and use it to relax the final test
4758         slightly.
4759         * df.h (df_simulate_find_noclobber_defs): Declare.
4760         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
4761         conditional defs.
4762         (df_simulate_find_noclobber_defs): New function.
4763
4764 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
4765
4766         * config/i386/i386.md: Use {} around multi-line preparation statements.
4767
4768 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4769
4770         * c-tree.h (push_init_level, pop_init_level, set_init_index)
4771         (process_init_element): New argument of type struct obstack *.
4772
4773         * c-typeck.c (push_init_level, pop_init_level, set_designator)
4774         (set_init_index, set_init_label, set_nonincremental_init)
4775         (set_nonincremental_init_from_string, find_init_member)
4776         (output_init_element, output_pending_init_elements)
4777         (process_init_element): New argument braced_init_obstack.  Pass it
4778         down.
4779         (push_range_stack, add_pending_init): New argument
4780         braced_init_obstack.  Use obstack allocation.
4781
4782         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
4783         braced_init_obstack.  Pass it down.
4784         (c_parser_braced_init): New variables ret, braced_init_obstack.
4785         Initialize obstack, pass it down and finally free it.
4786
4787 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
4788
4789         PR middle-end/29274
4790         * tree-pass.h (pass_optimize_widening_mul): Declare.
4791         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
4792         gate_optimize_widening_mul): New static functions.
4793         (pass_optimize_widening_mul): New.
4794         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
4795         <case MULT_EXPR>: Remove support for widening multiplies.
4796         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
4797         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
4798         simplify_gen_unary rather than directly building extensions.
4799         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
4800         WIDEN_MULT_EXPR.
4801         * expmed.c (expand_widening_mult): New function.
4802         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
4803
4804 2010-04-21  Jan Hubicka  <jh@suse.cz>
4805
4806         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
4807         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
4808         * lto-wpa-fixup.c: Remove.
4809         * Makefile.in (lto-wpa-fixup.o): Remove.
4810         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
4811         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
4812         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
4813
4814 2010-04-21  Jan Hubicka  <jh@suse.cz>
4815
4816         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
4817         add write_optimization_summary, read_optimization_summary.
4818         (ipa_write_summaries_of_cgraph_node_set): Remove.
4819         (ipa_write_optimization_summaries): Declare.
4820         (ipa_read_optimization_summaries): Declare.
4821         * ipa-cp.c (pass_ipa_cp): Update.
4822         * ipa-reference.c (pass_ipa_reference): Update.
4823         * ipa-pure-const.c (pass_ipa_pure_const): Update.
4824         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
4825         Update.
4826         * ipa-inline.c (pass_ipa_inline): Update.
4827         * ipa.c (pass_ipa_whole_program): Update.
4828         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
4829         * passes.c (ipa_write_summaries_1): Do not test wpa.
4830         (ipa_write_optimization_summaries_1): New.
4831         (ipa_write_optimization_summaries): New.
4832         (ipa_read_summaries): Do not test ltrans.
4833         (ipa_read_optimization_summaries_1): New.
4834         (ipa_read_optimization_summaries): New.
4835
4836 2010-04-21  Jan Hubicka  <jh@suse.cz>
4837
4838         * lto-cgraph.c (lto_output_node): Do not output comdat groups
4839         for boundary nodes.
4840         (output_cgraph): Do not arrange comdat groups for boundary nodes.
4841
4842 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
4843
4844         PR debug/40040
4845         * dwarf2out.c (add_name_and_src_coords_attributes): Add
4846         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
4847
4848 2010-04-21  Jan Hubicka  <jh@suse.cz>
4849
4850         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
4851
4852 2010-04-21  Jan Hubicka  <jh@suse.cz>
4853
4854         * varpool.c (decide_is_variable_needed): Variable is always needed
4855         during ltrans.
4856
4857 2010-04-21  Jan Hubicka  <jh@suse.cz>
4858
4859         * opts.c (decode_options): Enable pure-const pass for whopr.
4860
4861 2010-04-21  Jan Hubicka  <jh@suse.cz>
4862
4863         * cgraph.c (dump_cgraph_node): Dump also assembler name.
4864         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
4865         at WPA dumping.
4866         (cgraph_decide_inlining): Do not expect callee to be removed in all
4867         cases.
4868
4869 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
4870
4871         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
4872
4873 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
4874
4875         * config/i386/i386.md (x86_shrd): Add athlon_decode and
4876         amdfam10_decode attributes.
4877
4878 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
4879
4880         PR middle-end/43570
4881         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
4882         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
4883         (lower_copyprivate_clauses): Use private var in outer
4884         context instead of original var.  Make sure the types
4885         are correct for VLAs.
4886
4887 2010-04-21  Richard Guenther  <rguenther@suse.de>
4888
4889         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
4890         to non-pointer objects.
4891
4892 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
4893
4894         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
4895         last chain entry if it starts with the still current label.
4896         (add_location_or_const_value_attribute): Check that
4897         loc_list->first->next is NULL instead of comparing ->first with ->last.
4898         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
4899         to add_var_loc_to_decl.
4900
4901         * dwarf2out.c (output_call_frame_info): For dw_cie_version
4902         >= 4 add also address size and segment size fields into CIE header.
4903
4904         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
4905         long as address size is the same as sizeof (void *) and
4906         segment size is 0.
4907         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
4908         address size or segment size is unexpected, return DW_EH_PE_omit.
4909         (classify_object_over_fdes): If get_cie_encoding returned
4910         DW_EH_PE_omit, return -1.
4911         (init_object): If classify_object_over_fdes returned -1,
4912         pretend there were no FDEs at all.
4913
4914 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
4915
4916         * config/i386/i386.md (bswap<mode>2): Macroize expander from
4917         bswap{si,di}2 using SWI48 mode iterator.
4918         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
4919         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
4920         set modrm attribute of bswap insn to 0 and remove length attribute.
4921         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
4922         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
4923         set mode attribute to <MODE> and remove length attribute.
4924
4925 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
4926
4927         PR rtl-optimization/43520
4928         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
4929         zero available registers.
4930
4931 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4932
4933         * builtins.c (fold_builtin_cproj): Fold more cases.
4934
4935 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4936
4937         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
4938         (fold_builtin_1): Fold builtin cproj.
4939         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
4940         Use ATTR_CONST_NOTHROW_LIST.
4941
4942 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
4943
4944         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
4945         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
4946         ffsi2_no_cmove for !TARGET_CMOVE.
4947         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
4948         (ffssi2): Remove expander.
4949         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
4950         mode iterator.
4951         (ctz<mode>2): Ditto from ctz{si,di}2.
4952         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
4953         mode iterator.
4954         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
4955         mode iterator.
4956
4957 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
4958
4959         * dwarf2out.c (AT_linkage_name): Define.
4960         (clone_as_declaration): Handle DW_AT_linkage_name.
4961         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
4962         of DW_AT_MIPS_linkage_name.
4963         (move_linkage_attr): Likewise.
4964         (dwarf2out_finish): Likewise.
4965
4966 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
4967
4968         PR middle-end/41952
4969         * fold-const.c (fold_comparison): New folding rule.
4970
4971 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
4972
4973         * double-int.h (double_int_setbit): Declare.
4974         * double-int.c (double_int_setbit): New function.
4975         * rtl.h (immed_double_int_const): Declare.
4976         * emit-rtl.c (immed_double_int_const): New function.
4977         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
4978         and immed_double_int_const functions.
4979         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
4980         expand_copysign_bit):  (Ditto.).
4981         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
4982         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
4983         * dojump.c (prefer_and_bit_test): (Ditto.).
4984         * expr.c (convert_modes, reduce_to_bit_field_precision,
4985         const_vector_from_tree): (Ditto.).
4986         * expmed.c (mask_rtx, lshift_value): (Ditto.).
4987
4988 2010-04-20  Jan Hubicka  <jh@suse.cz>
4989
4990         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
4991         (dump_cgraph_node): Dump new flags.
4992         * cgraph.h (struct cgraph_node): Add flags
4993         reachable_from_other_partition and in_other_partition.
4994         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
4995         other partition can not be removed.
4996         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
4997         the other partition must be output; silence sanity checking on
4998         leaking functions bodies from other paritition.
4999         * lto-cgraph.c (reachable_from_other_partition_p): New function.
5000         (lto_output_node): Output new flags; do not sanity check that inline
5001         clones are output; drop lto_forced_extern_inline_p code; do not mock
5002         visibility flags at partition boundaries.
5003         (add_node_to): New function.
5004         (output_cgraph): Use it to sort functions so masters appear before
5005         clones.
5006         (input_overwrite_node): Input new flags.
5007         * passes.c (ipa_write_summaries): Do not call
5008         lto_new_extern_inline_states.
5009         * lto-section-out.c (forced_extern_inline,
5010         lto_new_extern_inline_states lto_delete_extern_inline_states,
5011         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5012         * lto-streamer.h (lto_new_extern_inline_states,
5013         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5014         lto_forced_extern_inline_p): Kill.
5015
5016 2010-04-20  Richard Guenther  <rguenther@suse.de>
5017
5018         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5019         from vars that can have pointers.
5020         (process_constraint): Dump useless constraints.
5021
5022 2010-04-20  Richard Guenther  <rguenther@suse.de>
5023
5024         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5025         (dump_sa_points_to_info): Remove asserts.
5026         (init_base_vars): nothing_id isn't an escape point nor does it
5027         have pointers.
5028
5029 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5030
5031         * tree.h (TYPE_REF_IS_RVALUE): Define.
5032         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5033         should_move_die_to_comdat, prune_unused_types_walk): Handle
5034         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5035         (modified_type_die, gen_reference_type_die): Emit
5036         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5037         if TYPE_REF_IS_RVALUE and -gdwarf-4.
5038
5039 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5040
5041         PR target/43635
5042         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5043         calls for -fpic -m31 if they have been sibcall optimized.
5044
5045 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
5046
5047         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5048         ar.lc fixed and call-used.
5049
5050         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5051
5052 2010-04-19  Jan Hubicka  <jh@suse.cz>
5053
5054         * opts.c (decode_options): Disable whpr incompatible passes.
5055         * lto/lto.c (lto_1_to_1_map): Skip clones.
5056         (read_cgraph_and_symbols): Do not mark everything as needed.
5057         (do_whole_program_analysis): Do map only after optimizing;
5058         set proper cgraph_state; use passmanager.
5059
5060 2010-04-19  DJ Delorie  <dj@redhat.com>
5061
5062         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5063         POINTER_PLUS_EXPR and fix them.
5064
5065 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
5066
5067         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5068         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5069         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5070         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5071         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5072         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5073         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5074         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5075         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5076         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5077         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5078
5079 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5080
5081         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5082         (check_cond_move_block): Likewise.
5083         (cond_move_process_if_block): Likewise.
5084         (noce_find_if_block): Improve formatting.
5085         (find_if_header): Pass 0 to memset and tweak conditions.
5086         (cond_exec_find_if_block): Fix long lines and tweak conditions.
5087
5088 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5089
5090         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5091         for -gdwarf-4.
5092
5093         PR middle-end/43337
5094         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5095         with non-local decl doesn't need chain.
5096
5097 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5098
5099         * ira-color.c (allocno_reload_assign): Avoid accumulating
5100         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5101
5102 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5103
5104         * gimple.h (create_tmp_reg): Declare.
5105         * gimplify.c (create_tmp_reg): New function.
5106         (gimplify_return_expr): Use create_tmp_reg.
5107         (gimplify_omp_atomic): Likewise.
5108         (gimple_regimplify_operands): Likewise.
5109         * tree-dfa.c (make_rename_temp): Likewise.
5110         * tree-predcom.c (predcom_tmp_var): Likewise.
5111         (reassociate_to_the_same_stmt): Likewise.
5112         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5113         (get_replaced_param_substitute): Likewise.
5114         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5115         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5116         * tree-ssa-pre.c (get_representative_for): Likewise.
5117         (create_expression_by_pieces): Likewise.
5118         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5119         (create_tailcall_accumulator): Likewise.
5120
5121 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5122
5123         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5124         new_stmt.
5125         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5126
5127 2010-04-19  Richard Guenther  <rguenther@suse.de>
5128
5129         PR tree-optimization/43796
5130         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5131         from SCEV in the lattice.
5132         (vrp_visit_phi_node): Dump change.
5133
5134 2010-04-19  Richard Guenther  <rguenther@suse.de>
5135
5136         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5137         * configure: Re-generated.
5138
5139 2010-04-19  Richard Guenther  <rguenther@suse.de>
5140
5141         PR tree-optimization/43783
5142         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5143         constant ARRAY_REF operands two and three if possible.
5144
5145 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
5146
5147         PR target/43766
5148         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5149
5150 2010-04-19  Jie Zhang  <jie@codesourcery.com>
5151
5152         PR target/43662
5153         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5154
5155 2010-04-19  Ira Rosen  <irar@il.ibm.com>
5156
5157         PR tree-optimization/37027
5158         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5159         and macro to access it.
5160         (vectorizable_reduction): Add argument.
5161         (vect_get_slp_defs): Likewise.
5162         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5163         statements for possible use in SLP.
5164         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5165         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5166         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5167         add new argument.
5168         (vectorizable_reduction): Likewise.
5169         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5170         vect_get_slp_defs.
5171         (vectorizable_type_demotion, vectorizable_type_promotion,
5172         vectorizable_store): Likewise.
5173         (vect_analyze_stmt): Update call to vectorizable_reduction.
5174         (vect_transform_stmt): Likewise.
5175         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5176         (vect_build_slp_tree): Fix indentation. Check that there are no loads
5177         from different interleaving chains in same node.
5178         (vect_slp_rearrange_stmts): New function.
5179         (vect_supported_load_permutation_p): Allow load permutations for
5180         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5181         inside SLP nodes if necessary.
5182         (vect_analyze_slp_instance): Handle reductions.
5183         (vect_analyze_slp): Try to build SLP instances originating from groups
5184         of reductions.
5185         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5186         (vect_get_constant_vectors): Create initial vectors for reductions
5187         according to reduction code. Add new argument.
5188         (vect_get_slp_defs): Add new argument, pass it to
5189         vect_get_constant_vectors.
5190         (vect_schedule_slp_instance): Remove SLP tree root statements.
5191
5192 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5193
5194         * tree.h (ENUM_IS_SCOPED): Define.
5195         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5196         for ENUM_IS_SCOPED enums.
5197
5198 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5199
5200         * fold-const.c (fold_comparison): Use ssizetype.
5201         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5202         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5203         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5204         * tree-object-size.c (compute_object_sizes): Use size_type_node.
5205
5206         * tree.h (initialize_sizetypes): Remove parameter.
5207         (build_common_tree_nodes): Remove second parameter.
5208         * stor-layout.c (initialize_sizetypes): Remove parameter.
5209         Always create an unsigned type.
5210         (set_sizetype): Assert that the passed type is unsigned and simplify.
5211         * tree.c (build_common_tree_nodes): Remove second parameter.
5212         Adjust call to initialize_sizetypes.
5213         * c-decl.c (c_init_decl_processing): Remove second argument in call to
5214         build_common_tree_nodes.
5215
5216 2010-04-18  Matthias Klose  <doko@ubuntu.com>
5217
5218         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5219
5220 2010-04-18  Ira Rosen  <irar@il.ibm.com>
5221
5222         PR tree-optimization/43771
5223         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5224         load permutation doesn't have gaps.
5225
5226 2010-04-18  Jan Hubicka  <jh@suse.cz>
5227
5228         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5229         (sse_prologue_save_insn expander): Use new pattern.
5230         (sse_prologue_save_insn1): New pattern and splitter.
5231         (sse_prologue_save_insn): Update to deal also with 64bit aligned
5232         blocks.
5233         * i386.c (setup_incoming_varargs_64): Do not compute jump
5234         destination here.
5235         (ix86_gimplify_va_arg): Update alignment needed.
5236         (ix86_local_alignment): Do not align all local arrays to 128bit.
5237
5238 2010-04-17  Jan Hubicka  <jh@suse.cz>
5239
5240         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5241
5242 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5243
5244         * arm.md (negdi2): Remove redundant code to force values into a
5245         register.
5246
5247 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5248
5249         * arm/bpabi.S: Add EABI alignment attributes to objects.
5250         * arm/bpabi-v6m.S: Likewise.
5251         * arm/crti.asm: Likewise.
5252         * arm/crtn.asm: Likewise.
5253         * arm/lib1funcs.asm: Likewise.
5254         * arm/libunwind.S: Likewise.
5255
5256 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5257
5258         * arm-protos.h (tune_params): New structure.
5259         * arm.c (current_tune): New variable.
5260         (arm_constant_limit): Delete.
5261         (struct processors): Add pointer to the tune parameters.
5262         (arm_slowmul_tune): New tuning option.
5263         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5264         (all_cores): Adjust to pick up the tuning model.
5265         (arm_constant_limit): New function.
5266         (arm_override_options): Select the appropriate tuning model.  Delete
5267         initialization of arm_const_limit.
5268         (arm_split_constant): Use the new constant-limit model.
5269         (arm_rtx_costs): Pick up the current tuning model.
5270         * arm.md (is_strongarm, is_xscale): Delete.
5271         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5272         for Xscale variant architectures.
5273         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5274
5275 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5276
5277         * config/arm/arm.c (arm_gen_constant): Remove unused variable
5278         can_shift.
5279         (arm_rtx_costs_1): Remove unused variable extra_cost.
5280         (arm_unwind_emit_set): Use variable offset.
5281         (thumb1_output_casesi): Remove unused variable flags.
5282
5283 2010-04-16  Jeff Law  <law@redhat.com>
5284
5285         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5286         needing assignment rather than doing a two-phase assignment.  Remove
5287         unused variable 'm'.
5288
5289 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5290
5291         PR bootstrap/43767
5292         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5293
5294 2010-04-16  Doug Kwan  <dougkwan@google.com>
5295
5296         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5297         (next_operand_entry_id): New static variable.
5298         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5299         (add_to_ops_vec): Assigned unique ID to operand entry.
5300         (struct oecount_s): New field ID.
5301         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5302         (undistribute_ops_list): Assign unique IDs to oecounts.
5303         (init_reassoc): reset next_operand_entry_id.
5304
5305 2010-04-16  Doug Kwan  <dougkwan@google.com>
5306
5307         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5308         missing left parenthesis.
5309
5310 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
5311
5312         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5313         *btdi_rex64 using SWI48 mode iterator.
5314         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5315         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5316         *jcc_btdi_mask_rex64.
5317
5318 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
5319
5320         * double-int.h (tree_to_double_int): Convert to macro.
5321         * double-int.c (tree_to_double_int): Remove.
5322
5323 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5324
5325         PR debug/43762
5326         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5327         with want_address 2 and in case a single element list might be
5328         possible, call it again with want_address 0.
5329
5330 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5331
5332         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5333         case 'W' print operands for HI mode.
5334         * config/h8300/h8300.h (Y0, Y2) : New constraints.
5335         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5336         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5337         * config/h8300/predicate.md (bit_register_indirect_operand): New.
5338
5339         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5340
5341         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5342         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5343         #xx:3 and #xx:4 mode.
5344
5345         * config/h8300/h8300.md (inverted load with HImode dest): Add
5346         support for H8300SX.
5347
5348         * config/h8300/predicate.md (bit_operand): Allow immediate values that
5349         satisfy 'U' constraint.
5350
5351 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5352
5353         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5354         * configure: Regenerate.
5355         * config.in: Regenerate.
5356         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5357         works.
5358
5359 2010-04-16  Richard Guenther  <rguenther@suse.de>
5360
5361         * tree.h (struct tree_decl_minimal): Move pt_uid ...
5362         (struct tree_decl_common): ... here.
5363         (DECL_PT_UID): Adjust.
5364         (SET_DECL_PT_UID): Likewise.
5365         (DECL_PT_UID_SET_P): Likewise.
5366
5367 2010-04-16  Richard Guenther  <rguenther@suse.de>
5368
5369         PR tree-optimization/43572
5370         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5371         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5372         * tree-flow.h (is_call_clobbered): Remove.
5373         * tree-flow-inline.h (is_call_clobbered): Likewise.
5374         * tree-dfa.c (dump_variable): Do not dump call clobber state.
5375         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5376         (execute_return_slot_opt): Adjust.
5377         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5378         check for call clobbered vars here.
5379         (find_tail_calls): Move tailcall verification to the
5380         proper place.
5381
5382 2010-04-16  Diego Novillo  <dnovillo@google.com>
5383
5384         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5385
5386 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5387
5388         PR target/40603
5389         * config/arm/arm.md (cbranchqi4): New pattern.
5390         * config/arm/predicates.md (const0_operand,
5391         cbranchqi4_comparison_operator): New predicates.
5392
5393 2010-04-16  Richard Guenther  <rguenther@suse.de>
5394
5395         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5396         (dump_gimple_stmt): Likewise.
5397
5398 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5399
5400         * recog.h (struct recog_data): New field is_operator.
5401         (struct insn_operand_data): New field is_operator.
5402         * recog.c (extract_insn): Set recog_data.is_operator.
5403         * genoutput.c (output_operand_data): Emit code to set the
5404         is_operator field.
5405         * reload.c (find_reloads): Use it rather than testing for an
5406         empty constraint string.
5407
5408         PR target/41514
5409         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5410         If the previous insn is a cbranchsi4_insn with the same arguments,
5411         omit the compare instruction.
5412
5413         * config/arm/arm.md (addsi3_cbranch): If destination is a high
5414         register, inputs must be low registers and we need a low register
5415         scratch.  Handle alternative 2 like alternative 3.
5416
5417 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5418
5419         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5420         don't call get_addr on both.  If one expression is a VALUE and
5421         the other a REG, check VALUE's locs if the REG isn't among them.
5422
5423 2010-04-16  Christian Bruel  <christian.bruel@st.com>
5424
5425         * config/sh/sh.h (sh_frame_pointer_required): New function.
5426         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5427         (flag_omit_frame_pointer) Set.
5428         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5429         (rounded_frame_size): Adjust size with outgoing_args_size.
5430         (sh_set_return_address): Must return from stack pointer.
5431         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5432         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5433         (ACCUMULATE_OUTGOING_ARGS): Define.
5434         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5435         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5436
5437 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
5438
5439         PR target/43471
5440         * config/sh/sh.c (sh_legitimize_reload_address): Use
5441         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5442         Remove a unneeded check for offset_base.
5443
5444 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5445
5446         * configure: Regenerated.
5447
5448 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5449
5450         * config/s390/s390.c (s390_call_save_register_used): Switch back
5451         to HARD_REGNO_NREGS.
5452
5453 2010-04-15  Richard Guenther  <rguenther@suse.de>
5454
5455         * alias.c (alias_set_subset_of): Handle alias-set zero
5456         child properly.
5457
5458 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
5459             Julian Brown  <julian@codesourcery.com>
5460
5461         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5462         alternatives according to use of high and low regs.
5463         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5464         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5465         optimizing for size on Thumb-2.
5466
5467 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
5468
5469         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5470
5471 2010-04-15  Richard Guenther  <rguenther@suse.de>
5472
5473         * tree-ssa-structalias.c (struct variable_info): Add
5474         is_fn_info flag.
5475         (new_var_info): Initialize it.
5476         (dump_constraints): Support printing last added constraints.
5477         (debug_constraints): Adjust.
5478         (dump_constraint_graph): Likewise.
5479         (make_heapvar_for): Check for NULL cfun.
5480         (get_function_part_constraint): New function.
5481         (get_fi_for_callee): Likewise.
5482         (find_func_aliases): Properly implement IPA PTA constraints.
5483         (process_ipa_clobber): New function.
5484         (find_func_clobbers): Likewise.
5485         (insert_into_field_list_sorted): Remove.
5486         (create_function_info_for): Properly allocate vars for IPA mode.
5487         Do not use insert_into_field_list_sorted.
5488         (create_variable_info_for): Properly generate constraints for
5489         global vars in IPA mode.
5490         (dump_solution_for_var): Always dump the solution.
5491         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5492         (find_what_var_points_to): Adjust.
5493         (pt_solution_set): Change.
5494         (pt_solution_ior_into): New function.
5495         (pt_solution_empty_p): Export.
5496         (pt_solution_includes_global): Adjust.
5497         (pt_solution_includes_1): Likewise.
5498         (pt_solutions_intersect_1): Likewise.
5499         (dump_sa_points_to_info): Check some invariants.
5500         (solve_constraints): Move constraint dumping ...
5501         (compute_points_to_sets): ... here.
5502         (ipa_pta_execute): ... and here.
5503         (compute_may_aliases): Do not re-compute points-to info
5504         locally if IPA info is available.
5505         (ipa_escaped_pt): New global var.
5506         (ipa_pta_execute): Properly implement IPA PTA.
5507         * tree-into-ssa.c (dump_decl_set): Support dumping
5508         decls not in referenced-vars.
5509         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5510         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5511         (dump_points_to_solution): Likewise.
5512         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5513         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5514         (remap_gimple_stmt): Reset call clobber/use information if necessary.
5515         (copy_decl_to_var): Copy DECL_PT_UID.
5516         (copy_result_decl_to_var): Likewise.
5517         * tree.c (make_node_stat): Initialize DECL_PT_UID.
5518         (copy_node_stat): Copy it.
5519         * tree.h (DECL_PT_UID): New macro.
5520         (SET_DECL_PT_UID): Likewise.
5521         (DECL_PT_UID_SET_P): Likewise.
5522         (struct tree_decl_minimal): Add pt_uid member.
5523         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5524         (pt_solution_empty_p): Declare.
5525         (pt_solution_set): Adjust.
5526         (ipa_escaped_pt): Declare.
5527         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5528         * gimple-pretty-print.c (pp_points_to_solution): New function.
5529         (dump_gimple_call): Dump call clobber/use information.
5530         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5531         * tree-pass.h (TDF_ALIAS): New dump option.
5532         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5533         * doc/invoke.texi (-fipa-pta): Update documentation.
5534
5535 2010-04-15  Richard Guenther  <rguenther@suse.de>
5536
5537         * Makefile.in (OBJS-common): Add gimple-fold.o.
5538         (gimple-fold.o): New rule.
5539         * tree.h (maybe_fold_offset_to_reference,
5540         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5541         prototypes ...
5542         * gimple.h: ... here.
5543         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5544         may_propagate_address_into_dereference): Move prototypes ...
5545         * gimple.h: ... here.
5546         * tree-ssa-ccp.c (get_symbol_constant_value,
5547         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
5548         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
5549         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
5550         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
5551         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
5552         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
5553         gimplify_and_update_call_from_tree): Move ...
5554         * gimple-fold.c: ... here.  New file.
5555         (ccp_fold_builtin): Rename to ...
5556         (gimple_fold_builtin): ... this.
5557         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
5558
5559 2010-04-15  Richard Guenther  <rguenther@suse.de>
5560
5561         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
5562         fit_double_type, force_fit_type_double, add_double_with_sign,
5563         neg_double, mul_double_with_sign, lshift_double, rshift_double,
5564         lrotate_double, rrotate_double, div_and_round_double): Move ...
5565         * double-int.c: ... here.
5566         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
5567         add_double, neg_double, mul_double_with_sign, mul_double,
5568         lshift_double, rshift_double, lrotate_double, rrotate_double,
5569         div_and_round_double): Move prototypes ...
5570         * double-int.h: ... here.
5571
5572 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
5573
5574         PR target/43742
5575         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
5576         matching constraints to ensure inputs match the output.
5577
5578 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
5579
5580         PR target/43742
5581         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
5582         in an input-only operand.
5583
5584 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
5585
5586         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
5587         (double_int_not, double_int_lshift, double_int_rshift): Declare.
5588         (double_int_negative_p): Convert to static inline function.
5589         * double-int.c (double_int_lshift, double_int_lshift): New functions.
5590         (double_int_negative_p): Remove.
5591         * tree.h (lshift_double, rshift_double):
5592         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
5593         * fold-const.c (fold_convert_const_int_from_real,
5594         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
5595         (lshift_double): Change type of arith argument to bool.
5596         (rshift_double): Change type of arith argument to bool. Correct
5597         comment.
5598         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5599
5600 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
5601
5602         PR target/21803
5603         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
5604         at the start and end of the then/else blocks, and omit them from the
5605         conversion.
5606         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
5607         argument; all callers changed.  Pass zero to old_insns_match_p instead.
5608         (flow_find_head_matching_sequence): New function.
5609         (old_insns_match_p): Check REG_EH_REGION notes for calls.
5610         * basic-block.h (flow_find_cross_jump,
5611         flow_find_head_matching_sequence): Declare functions.
5612
5613 2010-04-14  Jason Merrill  <jason@redhat.com>
5614
5615         PR c++/36625
5616         * c-common.c (attribute_takes_identifier_p): New fn.
5617         * c-common.h: Declare it.
5618
5619 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5620
5621         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
5622         splitter condition.
5623         (*udivmod<mode>4): Ditto.
5624
5625 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5626
5627         * config/i386/i386.md (maxmin_int): Rename code attribute from
5628         maxminiprefix and update all users.
5629         (maxmin_float): Ditto from maxminfprefix.
5630         (logic): Ditto from logicprefix.
5631         (absneg_mnemonic): Ditto from absnegprefix.
5632         * config/i386/mmx.md: Update all users of maxminiprefix,
5633         maxminfprefix and logicprefix for rename.
5634         * config/i386/sse.md: Ditto.
5635         * config/i386/sync.md (sync_<code><mode>): Update for
5636         logicprefix rename.
5637
5638 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5639
5640         PR 42966
5641         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
5642         warnings converted to errors.
5643
5644 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5645
5646         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
5647         used insn_type variable.
5648         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
5649         to avoid set-but-not-used warning.
5650
5651 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5652
5653         * df-core.c (df_ref_debug): Change format string placeholder
5654         from 0x%x to %#x.
5655         * dwarf2asm.c (dw2_asm_output_data_raw,
5656         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
5657         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
5658         * dwarf2out.c (output_cfi, output_cfi_directive,
5659         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
5660         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
5661         Ditto.
5662         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
5663         * print-rtl.c (print_rtx): Ditto.
5664
5665 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5666
5667         PR middle-end/42694
5668         * builtins.c (expand_builtin_pow_root): New function to expand pow
5669         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
5670         series of sqrt and cbrt calls under -ffast-math.
5671         (expand_builtin_pow): Call it.
5672
5673 2010-04-14  Michael Matz  <matz@suse.de>
5674
5675         PR tree-optimization/42963
5676         * tree-cfg.c (touched_switch_bbs): New static variable.
5677         (group_case_labels_stmt): New function broken out from ...
5678         (group_case_labels): ... here, use the above.
5679         (start_recording_case_labels): Allocate touched_switch_bbs.
5680         (end_recording_case_labels): Deallocate it, call
5681         group_case_labels_stmt.
5682         (gimple_redirect_edge_and_branch): Remember index of affected BB.
5683
5684 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5685
5686         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
5687         from insn template.
5688
5689 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
5690
5691         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
5692
5693 2010-04-13  Jan Hubicka  <jh@suse.cz>
5694
5695         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
5696         of optimized out static functions.
5697         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
5698         cost computation.  Also sanity check for overflows.
5699         (update_caller_keys): Update cgraph_edge_badness call; properly
5700         update fibheap and sanity check that it is up to date.
5701         (add_new_edges_to_heap): Update cgraph_edge_badness.
5702         (cgraph_decide_inlining_of_small_function): Likewise;
5703         add sanity checking that badness in heap is up to date;
5704         improve dumping of reason; Update badness of calls to the
5705         offline copy of function currently inlined; dump badness
5706         of functions not inlined because of unit growth limits.
5707
5708 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
5709
5710         PR middle-end/32628
5711         * c-common.c (pointer_int_sum): Disregard overflow that occured only
5712         because of sign-extension change when converting to sizetype here...
5713         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
5714
5715         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
5716         the folding to constants.  Remove redundant final conversion.
5717         (fold_binary) <associate>: Do not associate if the re-association of
5718         constants alone overflows.
5719         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
5720         to the end of the list.
5721         (multiple_of_p) <COND_EXPR>: New case.
5722
5723 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5724
5725         * opt-functions.awk (opt_sanitized_name): New.
5726         (opt_enum): New.
5727         * optc-gen.awk: Use it
5728         * opth-gen.awk: Use it.
5729
5730 2010-04-13  Martin Jambor  <mjambor@suse.cz>
5731
5732         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
5733         (sra_modify_assign): Delete stmts loading dead data even if racc has no
5734         children.  Call replace_uses_with_default_def_ssa_name to handle
5735         SSA_NAES on lhs.
5736
5737 2010-04-13  Michael Matz  <matz@suse.de>
5738
5739         PR middle-end/43730
5740         * builtins.c (expand_builtin_interclass_mathfn): Also create
5741         a register if the predicate doesn't match.
5742
5743 2010-04-13  Diego Novillo  <dnovillo@google.com>
5744
5745         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
5746         * c-pch.c: Include timevar.h.
5747         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
5748         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
5749         * ggc-common.c: Include timevar.h.
5750         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
5751         * timevar.def (TV_PCH_SAVE): Define.
5752         (TV_PCH_CPP_SAVE): Define.
5753         (TV_PCH_PTR_REALLOC): Define.
5754         (TV_PCH_PTR_SORT): Define.
5755         (TV_PCH_RESTORE): Define.
5756         (TV_PCH_CPP_RESTORE): Define.
5757
5758 2010-04-13  Michael Matz  <matz@suse.de>
5759
5760         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
5761         into MINUS_EXPRs.
5762         (can_reassociate_p): New function.
5763         (break_up_subtract_bb, reassociate_bb): Use it.
5764
5765 2010-04-13  Richard Guenther  <rguenther@suse.de>
5766
5767         PR bootstrap/43737
5768         * builtins.c (c_readstr): Fix assert.
5769
5770 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
5771
5772         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
5773         when generating cltd insn.
5774
5775         (*ashl<mode>3_1): Remove special handling for register operand 2.
5776         (*ashlsi3_1_zext): Ditto.
5777         (*ashlhi3_1): Ditto.
5778         (*ashlhi3_1_lea): Ditto.
5779         (*ashlqi3_1): Ditto.
5780         (*ashlqi3_1_lea): Ditto.
5781         (*<shiftrt_insn><mode>3_1): Ditto.
5782         (*<shiftrt_insn>si3_1_zext): Ditto.
5783         (*<shiftrt_insn>qi3_1_slp): Ditto.
5784         (*<rotate_insn><mode>3_1): Ditto.
5785         (*<rotate_insn>si3_1_zext): Ditto.
5786         (*<rotate_insn>qi3_1_slp): Ditto.
5787
5788 2010-04-13  Richard Guenther  <rguenther@suse.de>
5789
5790         * tree-ssa-structalias.c (callused_id): Remove.
5791         (call_stmt_vars): New.
5792         (get_call_vi): Likewise.
5793         (lookup_call_use_vi): Likewise.
5794         (lookup_call_clobber_vi): Likewise.
5795         (get_call_use_vi): Likewise.
5796         (get_call_clobber_vi): Likewise.
5797         (make_transitive_closure_constraints): Likewise.
5798         (handle_const_call): Adjust to do per-call call-used handling.
5799         (handle_pure_call): Likewise.
5800         (find_what_var_points_to): Remove general callused handling.
5801         (init_base_vars): Likewise.
5802         (init_alias_vars): Initialize call_stmt_vars.
5803         (compute_points_to_sets): Process call-used and call-clobbered
5804         vars for call statements.
5805         (delete_points_to_sets): Free call_stmt_vars.
5806
5807 2010-04-13  Richard Guenther  <rguenther@suse.de>
5808
5809         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5810         Only add RW dependence for dependence distance zero.
5811         Adjust maximal vectorization factor according to dependences.
5812         Move alignment handling ...
5813         (vect_find_same_alignment_drs): ... here.  New function.
5814         (vect_analyze_data_ref_dependences): Adjust.
5815         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
5816         (vect_analyze_data_refs): Adjust minimal vectorization factor
5817         according to data references.
5818         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
5819         dependences before determining the vectorization factor.
5820         Analyze alignment after determining the vectorization factor.
5821         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
5822         dependences before alignment.
5823         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
5824         Adjust prototype.
5825         (vect_analyze_data_refs): Likewise.
5826         (MAX_VECTORIZATION_FACTOR): New define.
5827
5828 2010-04-13  Duncan Sands  <baldrick@free.fr>
5829
5830         * except.h (lang_eh_type_covers): Remove.
5831         * except.c (lang_eh_type_covers): Likewise.
5832
5833 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5834             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5835
5836         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
5837         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
5838         UNITS_PER_LONG where it is ABI relevant.
5839         (s390_return_addr_rtx): Likewise.
5840         (s390_back_chain_rtx): Likewise.
5841         (s390_frame_area): Likewise.
5842         (s390_frame_info): Likewise.
5843         (s390_initial_elimination_offset): Likewise.
5844         (save_gprs): Likewise.
5845         (s390_emit_prologue): Likewise.
5846         (s390_emit_epilogue): Likewise.
5847         (s390_function_arg_advance): Likewise.
5848         (s390_function_arg): Likewise.
5849         (s390_va_start): Likewise.
5850         (s390_gimplify_va_arg): Likewise.
5851         (s390_function_profiler): Likewise.
5852         (s390_optimize_prologue): Likewise.
5853         (s390_rtx_costs): Likewise.
5854         (s390_secondary_reload): Likewise.
5855         (s390_promote_function_mode): Likewise.
5856         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
5857         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
5858         registers available.
5859         (s390_unwind_word_mode): New function.
5860         (s390_function_value): Split 64 bit values into register pair if
5861         used as return value.
5862         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
5863         function call parameters.  Handle parallels.
5864         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
5865         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
5866         (DWARF_CIE_DATA_ALIGNMENT): New macro.
5867         (s390_expand_setmem): Remove unused variable src_addr.
5868         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
5869         deal with 64 bit registers.
5870         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
5871         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
5872         (UNITS_PER_LONG): New macro.
5873         * libjava/include/s390-signal.h: Define extended ucontext
5874         structure containing the upper halfs of the 64 bit registers.
5875
5876 2010-04-13  Simon Baldwin  <simonb@google.com>
5877
5878         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
5879
5880 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
5881
5882         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
5883         rvalue on the RHS if the LHS is of a non-renamable type.
5884         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
5885
5886 2010-04-13  Matthias Klose  <doko@ubuntu.com>
5887
5888         * gcc.c (cc1_options): Handle -iplugindir before processing
5889         the cc1 spec. Only add -iplugindir once.
5890         (cpp_unique_options): Add -iplugindir option if -fplugin* options
5891         found.
5892         * common.opt (iplugindir): Remove `Separate' property, initialize.
5893         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
5894         option.
5895         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
5896         (distclean): Remove plugin dir.
5897         * doc/invoke.texi: Document -iplugindir.
5898
5899 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
5900
5901         * doc/plugins.texi (Loading Plugins): Document short
5902         -fplugin=foo option.
5903         (Plugin API): Mention default_plugin_dir_name function.
5904
5905         * gcc.c (find_file_spec_function): Add new declaration.
5906         (static_spec_func): Use it for "find-file".
5907         (find_file_spec_function): Add new function.
5908         (cc1_options): Add -iplugindir option if -fplugin* options found.
5909
5910         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
5911
5912         * plugin.c (add_new_plugin): Updated comment, and handle short
5913         plugin name.
5914         (default_plugin_dir_name): Added new function.
5915
5916         * common.opt (iplugindir): New option to set the plugin directory.
5917
5918 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
5919
5920         * config/i386/i386.md (any_rotate): New code iterator.
5921         (rotate_insn): New code attribute.
5922         (rotate): Ditto.
5923         (SWIM124): New mode iterator.
5924         (<rotate_insn>ti3): New expander.
5925         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
5926         any_rotate code iterator.
5927         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
5928         using any_rotate code iterator and SWIM124 mode iterator.
5929         (ix86_rotlti3): New insn_and_split pattern.
5930         (ix86_rotrti3): Ditto.
5931         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
5932         ix86_rotl{di,ti}3 patterns.
5933         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
5934         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
5935         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
5936         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
5937         code iterator and SWI mode iterator.
5938         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
5939         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
5940         code iterator.
5941         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
5942         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
5943         (bswap rotatert splitter): Add splitter.
5944         (bswap splitter): Macroize splitter using any_rotate code iterator.
5945         Add insn predicate to split only for TARGET_USE_XCHGB or when
5946         optimizing function for size.
5947
5948 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
5949
5950         * config/pa/pa.c (emit_move_sequence): Remove use of
5951         deleted variable flag_argument_noalias.
5952
5953 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5954
5955         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
5956         configurations.
5957         Add to unsupported targets list.
5958         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
5959         sparc*-sun-solaris2.[567]* from target lists.
5960         * configure: Regenerate.
5961         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
5962         removal.
5963         Remove Solaris 7 patch references.
5964         (Specific, sparc-sun-solaris2.7): Removed.
5965         (sparc-sun-solaris2*): Update Solaris 7 example.
5966         (sparc64-*-solaris2*): Likewise.
5967
5968 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5969
5970         * config.build (alpha*-dec-osf4*): Remove.
5971         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
5972         of obsolete configurations.
5973         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
5974         support.
5975         * config/alpha/t-osf4: Renamed to ...
5976         * config/alpha/t-osf5: ... this.
5977         * config/alpha/osf.h: Renamed to ...
5978         * config/alpha/osf5.h: ... this.
5979         Merged old osf5.h contents.
5980         Update comments.
5981         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
5982         (EXTRA_SPECS): Removed.
5983         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
5984         reflect removal of Tru64 UNIX V4.0/V5.0 support.
5985         Document that.
5986
5987 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5988
5989         * doc/contrib.texi (Contributors, Rainer Orth): Update.
5990
5991 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
5992
5993         PR/43702
5994         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
5995         __thiscall convention.
5996
5997 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
5998
5999         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6000         orig_base.
6001         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6002
6003 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6004
6005         * function.c (assign_parms_initialize_all): Add unused attribute
6006         to fntype.
6007
6008 2010-04-12  Richard Guenther  <rguenther@suse.de>
6009
6010         * gsstruct.def (GSS_CALL): New.
6011         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6012         * gimple.h: Include tree-ssa-alias.h.
6013         (struct gimple_statement_call): New.
6014         (union gimple_statement_struct_d): Add gimple_call member.
6015         (gimple_call_reset_alias_info): Declare.
6016         (gimple_call_use_set): New function.
6017         (gimple_call_clobber_set): Likewise.
6018         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6019         * gimple.c (gimple_call_reset_alias_info): New function.
6020         (gimple_build_call_1): Call it.
6021         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6022         * tree-inline.c (remap_gimple_stmt): Likewise.
6023         (expand_call_inline): Remove callused handling.
6024         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6025         * tree-dfa.c (dump_variable): Likewise.
6026         * tree-parloops.c (parallelize_loops): Likewise.
6027         * tree-ssa.c (init_tree_ssa): Likewise.
6028         (delete_tree_ssa): Likewise.
6029         * tree-flow-inline.h (is_call_used): Remove.
6030         * tree-flow.h (struct gimple_df): Remove callused member.
6031         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6032         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6033         (ref_maybe_used_by_call_p_1): Simplify.
6034         (call_may_clobber_ref_p_1): Likewise.
6035         * tree-ssa-structalias.c (compute_points_to_sets): Set
6036         the call stmt used and clobbered sets.
6037         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6038         (find_tail_calls): Verify the tail call.
6039
6040 2010-04-12  Richard Guenther  <rguenther@suse.de>
6041
6042         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6043         single-iteration always-inline inlining.
6044         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6045         (cgraph_decide_inlining): Do not handle always-inline specially.
6046         (try_inline): Remove always-inline cycle detection special case.
6047         Do not recurse on always-inlines.
6048         (cgraph_early_inlining): Do not iterate if not optimizing.
6049         (cgraph_gate_early_inlining): remove.
6050         (pass_early_inline): Run unconditionally.
6051         (gate_cgraph_decide_inlining): New function.
6052         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
6053         not inlining or optimizing.
6054         (cgraph_decide_inlining_of_small_functions): Also consider
6055         always-inline functions.
6056         (cgraph_default_inline_p): Return true for nodes which should
6057         disregard inline limits.
6058         (estimate_function_body_sizes): Assume zero size and time for
6059         nodes which are marked as disregarding inline limits.
6060         (cgraph_decide_recursive_inlining): Do not perform recursive
6061         inlining on always-inline nodes.
6062
6063 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
6064
6065         PR bootstrap/43699
6066         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6067         for exprs satisfying handled_component_p.
6068
6069 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
6070
6071         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6072         non-constant aggregate elements.
6073
6074         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6075         is a real initialization.
6076
6077 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
6078
6079         PR c/36774
6080         * c-decl.c (start_function): Move forward check for nested function.
6081
6082 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6083
6084         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6085         * config/sh/sh.c: Include reload.h.
6086         (sh_legitimize_reload_address): New.
6087         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6088         sh_legitimize_reload_address.
6089
6090 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6091
6092         * config/sh/sh.md (*movqi_pop): New insn pattern.
6093         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6094
6095 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6096
6097         * config/i386/i386.md (any_shiftrt): New code iterator.
6098         (shiftrt_insn): New code attribute.
6099         (shiftrt): Ditto.
6100         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6101         using any_shiftrt code iterator.
6102         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6103         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6104         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6105         pattern from corresponding peephole2 patterns.
6106         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6107         using any_shiftrt code iterator.
6108         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6109         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6110         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6111         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6112         *{ashr,lshr}<mode>3_cmp_zext.
6113         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6114
6115 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6116
6117         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6118         scratch register.
6119         (*lshr<mode>3_cconly): Ditto.
6120
6121 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6122
6123         * config/i386/i386.md (lshr<mode>3): Macroize expander from
6124         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6125         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6126         pattern from *lshr{di,ti}3_1 and corresponding splitters using
6127         DWI mode iterator.
6128         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6129         from corresponding peephole2 patterns.
6130         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6131         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6132         and *lshrdi3_1_rex64 using SWI mode iterator.
6133         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6134         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6135         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6136         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6137         and *lshrdi3_cmp_rex64 using SWI mode iterator.
6138         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6139         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6140         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6141         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6142         SWI mode iterator.
6143
6144 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
6145
6146         * config/i386/i386.md (ashr<mode>3): Macroize expander from
6147         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6148         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6149         pattern from *ashr{di,ti}3_1 and corresponding splitters using
6150         DWI mode iterator.
6151         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6152         from corresponding peephole2 patterns.
6153         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6154         (ashrsi3_cvt): Rename from ashrsi3_31.
6155         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6156         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6157         and x86_64_shift_adj_3 using SWI48 mode iterator.
6158         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6159         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6160         and *ashrdi3_1_rex64 using SWI mode iterator.
6161         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6162         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6163         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6164         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6165         and *ashrdi3_cmp_rex64 using SWI mode iterator.
6166         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6167         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6168         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6169         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6170         SWI mode iterator.
6171         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6172         * config/i386/i386.c (ix86_split_ashr): Update for renamed
6173         x86_shift<mode>_adj_3 expanders.
6174
6175 2010-04-10  Wei Guozhi  <carrot@google.com>
6176
6177         PR target/42601
6178         * config/arm/arm.c (arm_pic_static_addr): New function.
6179         (legitimize_pic_address): Call arm_pic_static_addr when it detects
6180         a static symbol.
6181         (arm_output_addr_const_extra): Output expression for new pattern.
6182         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6183
6184 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
6185
6186         * ira-costs.c (record_reg_classes): Ignore alternatives that are
6187         not enabled.
6188
6189         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6190         * web.c: Include "insn-config.h" and "recog.h".
6191         (union_match_dups): New function.
6192         (web_main): Call it.
6193         (union_defs): Don't try to recognize match_dups.
6194
6195         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6196         if doing so would replace the entire pattern.
6197
6198 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6199
6200         PR target/43707
6201         PR target/43709
6202         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6203         and splitter pattern.  Change splitter operand 1 predicate to
6204         nonmemory_operand.
6205
6206 2010-04-09  Martin Jambor  <mjambor@suse.cz>
6207
6208         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6209         lattices are addresses of CONST_DECLs with the same initial value.
6210         (ipcp_print_all_lattices): Print values of CONST_DECLs.
6211         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6212
6213 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
6214             Bernd Schmidt  <bernds@codesourcery.com>
6215
6216         * loop-invariant.c (replace_uses): New static function.
6217         (move_invariant_reg): Use it to ensure we can replace the uses.
6218
6219 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6220
6221         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6222         function template.
6223         (picochip_override_options): Enable section anchors only above -O1.
6224         (picochip_reorg): Fixed a couple of build warnings.
6225
6226 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6227
6228         * configure.ac (plugin -rdynamic test): Log result.
6229         * configure: Regenerate.
6230         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6231         (RDYNAMIC_SPEC): Define.
6232         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6233
6234 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6235
6236         * configure.ac: Determine Sun ld version numbers.
6237         (comdat_group): Restrict GNU ld version checks to gld.
6238         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6239         (enable_comdat): Support --enable-comdat.
6240         * configure: Regenerate.
6241         * doc/install.texi (Configuration): Document --enable-comdat.
6242
6243 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6244
6245         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
6246         * config/sol2-gld.h: ... here.
6247         * config.gcc (sparc*-*-solaris2*): Reflect this.
6248         (i[34567]86-*-solaris2*): Use it.
6249
6250 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
6251
6252         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6253         setup_clocks_p.
6254         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6255
6256 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6257
6258         PR 42965
6259         * diagnostic.c (diagnostic_initialize): Initialize
6260         some_warnings_are_errors.
6261         (diagnostic_finish): New.
6262         (diagnostic_action_after_output): Call it before exiting.
6263         (diagnostic_report_diagnostic): Do not print message here. Set
6264         some_warnings_are_errors.
6265         * diagnostic.h (diagnostic_context): Delete
6266         issue_warnings_are_errors_message. Add some_warnings_are_errors.
6267         (diagnostic_finish): Declare.
6268         * toplev.c (toplev_main): Call it before exit.
6269
6270 2010-04-09  Jason Merrill  <jason@redhat.com>
6271
6272         PR c++/42623
6273         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6274         for incomplete type.
6275
6276         PR c++/41788
6277         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6278         based on a warning flag.
6279
6280 2010-04-09  Richard Guenther  <rguenther@suse.de>
6281
6282         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6283
6284 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
6285
6286         PR bootstrap/43684
6287         * varasm.c (default_assemble_visibility): Wrap vars that are
6288         set, but unused, by targets without GAS.
6289         * config/rs6000/rs6000.c (paired_emit_vector_compare):
6290         Remove set, but unused, vars.
6291         (rs6000_legitimize_tls_address): Likewise.
6292         (altivec_expand_dst_builtin): Likewise.
6293         * config/darwin.c (machopic_classify_symbol): Likewise.
6294         (machopic_indirection_name): Likewise.
6295
6296 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6297
6298         * config/i386/i386.md (DWI): New mode iterator.
6299         (S): New mode attribute.
6300         (shift_operand): Ditto.
6301         (shift_immediate_operand): Ditto.
6302         (ashl_input_operand): Ditto.
6303         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6304         using SDWIM mode iterator.
6305         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6306         pattern from *ashl{di,ti}3_1 and corresponding splitters using
6307         DWI mode iterator.
6308         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6309         from corresponding peephole2 patterns.
6310         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6311         and x86_64_shift_adj_1 using SWI48 mode iterator.
6312         (x86_shift<mode>_adj_2): Ditto.
6313         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6314         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6315         using SWI48 mode iterator.
6316         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6317         *ashldi3_cmp_rex64 using SWI mode iterator.
6318         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6319         *ashldi3_cconly_rex64 using SWI mode iterator.
6320         * config/i386/i386.c (ix86_split_ashl): Update for renamed
6321         x86_shift<mode>_adj_{1,2}.
6322         (ix86_split_ashr): Ditto.
6323         (ix86_split_lshr): Ditto.
6324
6325 2010-04-09  Richard Guenther  <rguenther@suse.de>
6326
6327         * target.h (builtin_conversion): Pass in input and output types.
6328         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6329         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6330         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6331         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6332
6333         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6334         Handle AVX modes.
6335         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6336
6337 2010-04-09  Richard Guenther  <rguenther@suse.de>
6338
6339         PR target/43152
6340         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6341
6342 2010-04-09  Richard Guenther  <rguenther@suse.de>
6343
6344         * tree-vectorizer.h (struct _stmt_vec_info): Document
6345         that vectype is the type of the LHS.
6346         (supportable_widening_operation, supportable_narrowing_operation):
6347         Get both input and output vector types as arguments.
6348         (vect_is_simple_use_1): Declare.
6349         (get_same_sized_vectype): Likewise.
6350         * tree-vect-loop.c (vect_determine_vectorization_factor):
6351         Set STMT_VINFO_VECTYPE to the vector type of the def.
6352         (vectorizable_reduction): Adjust.
6353         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6354         Adjust.  Specify the output vector type.
6355         (vect_pattern_recog_1): Adjust.
6356         * tree-vect-stmts.c (get_same_sized_vectype): New function.
6357         (vectorizable_call): Adjust.
6358         (vectorizable_conversion): Likewise.
6359         (vectorizable_operation): Likewise.
6360         (vectorizable_type_demotion): Likewise.
6361         (vectorizable_type_promotion): Likewise.
6362         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6363         the def.
6364         (vect_is_simple_use_1): New function.
6365         (supportable_widening_operation): Get both input and output
6366         vector types.
6367         (supportable_narrowing_operation): Likewise.
6368         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6369
6370 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
6371
6372         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6373         __thiscall and _thiscall as predefined macros.
6374         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6375         thiscall attribute handling.
6376         (ix86_comp_type_attributes): Likewise.
6377         (ix86_function_regparm): Likewise.
6378         (ix86_return_pops_args): Likewise.
6379         (init_cumulative_args): Likewise.
6380         (find_drap_reg): Likewise.
6381         (ix86_static_chain): Likewise.
6382         (x86_this_parameter): Likewise.
6383         (x86_output_mi_thunk): Likewise.
6384         (ix86_attribute_table): Add description for thiscall attribute.
6385         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6386         * doc/extend.texi: Add documentation for thiscall.
6387
6388 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6389
6390         PR c++/28584
6391         * c.opt (Wint-to-pointer-cast): Available in C++.
6392         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6393
6394 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6395
6396         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6397         * calls.c (expand_call): Pass the function type to aggregate_value_p.
6398         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6399         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
6400         function type instead.  Reorder and simplify checks.
6401
6402         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6403
6404 2010-04-08  Jing Yu  <jingyu@google.com>
6405             Zdenek Dvorak  <ook@ucw.cz>
6406
6407         PR tree-optimization/42720
6408         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6409         loop unswitch conditions here from ...
6410         (tree_unswitch_single_loop): ... here.
6411
6412 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
6413
6414         * tree-if-conv.c: Fix comments and simplify logic.
6415
6416 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
6417
6418         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6419         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
6420         (main_tree_if_conversion): Update call to tree_if_conversion.
6421
6422 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6423
6424         PR 42485
6425         * doc/invoke.texi (-b,-V): Delete.
6426         * doc/tm.texi: Do not mention -b.
6427         * gcc.c (display_help): Delete -b and -V.
6428         (process_command): Delete -b and -V.
6429         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6430
6431 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
6432             Wolfgang Gellerich  <gellerich@de.ibm.com>
6433
6434         Implement target hook for loop unrolling
6435         * target.h (loop_unroll_adjust): Add a new target hook function.
6436         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6437         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6438         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6439         (s390_loop_unroll_adjust): Implement the new target hook for s390.
6440         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6441         target hook.
6442         (decide_unroll_stupid): Likewise.
6443
6444 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6445
6446         PR target/43643
6447         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6448
6449 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6450
6451         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6452         (Specific, *-*-solaris2*): Likewise.
6453         Don't prefer Sun as over GNU as.
6454
6455 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
6456
6457         * config/s390/s390.c (override_options): Adjust the z10 defaults
6458         for max-unroll-times, max-completely-peeled-insns
6459         and max-completely-peel-times.
6460
6461 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6462
6463         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6464         instructions for z10.
6465         (s390_expand_setmem): Likewise.
6466         (s390_expand_cmpmem): Likewise.
6467
6468 2010-04-08  Richard Guenther  <rguenther@suse.de>
6469
6470         PR tree-optimization/43679
6471         * tree-ssa-pre.c (eliminate): Only propagate copies.
6472
6473 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
6474
6475         PR bootstrap/43681
6476         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
6477         set but not used variable warning.
6478
6479 2010-04-08  Wei Guozhi  <carrot@google.com>
6480
6481         PR target/41653
6482         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6483         (arm_size_rtx_costs): Call the new function when optimized for size.
6484
6485 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
6486
6487         PR debug/43670
6488         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6489         op0 is not a MEM, just return NULL instead of assertion
6490         failure.
6491         (discover_nonconstant_array_refs): Don't walk debug stmts.
6492
6493 2010-04-08  Doug Kwan  <dougkwan@google.com>
6494
6495         * configure.ac: Recognize gold and do not use its version number
6496         to test ld features.
6497         * configure: Regenerate.
6498
6499 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
6500
6501         PR middle-end/40815
6502         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6503         (negate_value): Move code to push elements to broken_up_substracts ...
6504         (eliminate_plus_minus_pair): ... here.  Push operands that have no
6505         negative pair to plus_negates.
6506         (repropagate_negates, init_reassoc, fini_reassoc): Update.
6507
6508 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6509
6510         * doc/install.texi (Configuration): Move description of
6511         --enable-lto, --with-libelf*, --enable-gold from Java section to
6512         general section.
6513
6514         * doc/generic.texi (Working with declarations)
6515         (Function Properties, C and C++ Trees): Fix typos.
6516         * doc/sourcebuild.texi (Top Level): Likewise.
6517
6518 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
6519
6520         PR c/18624
6521         * tree.h (DECL_READ_P): Define.
6522         (struct tree_decl_common): Add decl_read_flag.
6523         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6524         a set but not used warning.
6525         (merge_decls): Merge DECL_READ_P flag.
6526         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6527         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6528         * c-common.c (handle_used_attribute, handle_unused_attribute):
6529         Likewise.
6530         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6531         New prototypes.
6532         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6533         New functions.
6534         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6535         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6536         c_parser_binary_expression, c_parser_cast_expression,
6537         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6538         Call default_function_array_read_conversion instead of
6539         default_function_array_conversion where needed.
6540         (c_parser_unary_expression, c_parser_conditional_expression,
6541         c_parser_postfix_expression_after_primary, c_parser_initelt):
6542         Likewise.  Call mark_exp_read where needed.
6543         (c_parser_statement_after_labels, c_parser_asm_operands,
6544         c_parser_typeof_specifier, c_parser_sizeof_expression,
6545         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
6546         where needed.
6547         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
6548         New.
6549         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
6550         (warn_unused_but_set_parameter): Default to warn_unused
6551         && extra_warnings.
6552         * doc/invoke.texi: Document -Wunused-but-set-variable and
6553         -Wunused-but-set-parameter.
6554
6555         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
6556         used count variable.
6557         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
6558         when operandN variables aren't used in the body of the expander
6559         or splitter.
6560         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
6561         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
6562         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
6563         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
6564         FOR_EACH_IMM_USE_ON_STMT): Likewise.
6565         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
6566         * tree.c (PROCESS_ARG): Likewise.
6567
6568 2010-04-07  Simon Baldwin  <simonb@google.com>
6569
6570         * diagnostic.h (diagnostic_override_option_index): New macro to
6571         set a diagnostic's option_index.
6572         * c-tree.h (c_cpp_error): Add warning reason argument.
6573         * opts.c (_warning_as_error_callback): New.
6574         (register_warning_as_error_callback): Store callback for
6575         warnings enabled via enable_warning_as_error.
6576         (enable_warning_as_error): Call callback, minor code tidy.
6577         * opts.h (register_warning_as_error_callback): Declare.
6578         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
6579         response to -Werror=.
6580         (c_common_init_options): Register warning_as_error_callback in opts.c.
6581         * common.opt: Add -Wno-cpp option.
6582         * c-common.c (struct reason_option_codes_t): Map cpp warning
6583         reason codes to gcc option indexes.
6584         * (c_option_controlling_cpp_error): New function, lookup the gcc
6585         option index for a cpp warning reason code.
6586         * (c_cpp_error): Add warning reason argument, call
6587         c_option_controlling_cpp_error for diagnostic_override_option_index.
6588         * doc/invoke.texi: Document -Wno-cpp.
6589
6590 2010-04-07  Richard Guenther  <rguenther@suse.de>
6591
6592         * ipa-reference.c (mark_load): Use get_base_address.
6593         (mark_store): Likewise.
6594
6595         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
6596         inserting GIMPLE_NOPs into the IL.
6597         * tree-ssa-structalias.c (get_constraint_for_component_ref):
6598         Explicitly strip handled components and indirect references.
6599
6600         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
6601         folding address expressions.
6602         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
6603         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
6604         operand_equal_p to compare decls.
6605         (ptr_deref_may_alias_decl_p): Likewise.
6606         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
6607         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
6608         Handle reversed comparison ops.
6609         * tree-sra.c (asm_visit_addr): Use get_base_address.
6610         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
6611         * ipa-reference.c (mark_address): Use get_base_address.
6612
6613 2010-04-07  Richard Guenther  <rguenther@suse.de>
6614
6615         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
6616         Propagate constants everywhere.
6617
6618 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
6619
6620         PR debug/43516
6621         * tree.c (MAX_INT_CACHED_PREC): Define.
6622         (nonstandard_integer_type_cache): New array.
6623         (build_nonstandard_integer_type): Cache results for precision
6624         <= MAX_INT_CACHED_PREC.
6625
6626 2010-04-07  Richard Guenther  <rguenther@suse.de>
6627
6628         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
6629         -fargument-noalias-global, -fargument-noalias-anything): Remove.
6630         * common.opt: Likewise.
6631         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
6632         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
6633         (nonoverlapping_memrefs_p): Likewise.
6634         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6635         * opts.c (common_handle_option): Handle OPT_fargument_alias,
6636         OPT_fargument_noalias, OPT_fargument_noalias_anything and
6637         OPT_fargument_noalias_global for backward compatibility.
6638
6639 2010-04-07  Richard Guenther  <rguenther@suse.de>
6640
6641         PR tree-optimization/43270
6642         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
6643         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
6644         * tree-ssa-pre.c (phi_translate_1): Adjust.
6645         (fully_constant_expression): Split out vn_reference handling to ...
6646         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
6647         Fold reads from constant strings.
6648         (vn_reference_lookup): Handle fully constant references.
6649         (vn_reference_lookup_pieces): Likewise.
6650         * Makefile.in (expmed.o-warn): Add -Wno-error.
6651
6652 2010-04-07  Martin Jambor  <mjambor@suse.cz>
6653
6654         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
6655
6656 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
6657
6658         PR driver/41594
6659         * gcc.c: Add -static-libstdc++ to list of recognized options.
6660
6661 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6662
6663         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
6664
6665 2010-04-07  Richard Guenther  <rguenther@suse.de>
6666
6667         PR middle-end/42617
6668         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
6669         bases build simple mem attributes to retain points-to information.
6670
6671 2010-04-07  Richard Guenther  <rguenther@suse.de>
6672
6673         PR middle-end/42617
6674         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
6675         preserve points-to related information.
6676
6677 2010-04-07  Richard Guenther  <rguenther@suse.de>
6678
6679         PR middle-end/42617
6680         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
6681         discard plain indirect references.
6682         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
6683         * tree.c (tree_nop_conversion): Likewise.
6684
6685 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
6686
6687         PR debug/43628
6688         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
6689
6690 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
6691
6692         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
6693         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
6694
6695 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
6696
6697         * tree-if-conv.c: Fix indentation and comments.
6698
6699 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
6700
6701         * tree-if-conv.c: Sort static functions in topological order.
6702
6703 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
6704
6705         * tree-if-conv.c: Fix indentation and comments.
6706
6707 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6708
6709         PR middle-end/43519
6710         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
6711         lang_hooks.types.type_for_size instead of
6712         build_nonstandard_integer_type.
6713         When converting an unsigned type to signed, double its precision.
6714         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
6715         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
6716         (graphite_create_new_loop_guard): When ub + 1 wraps around,
6717         use lb <= ub.
6718
6719 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6720
6721         PR middle-end/43519
6722         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
6723         POINTER_PLUS_EXPR for pointer types.
6724
6725 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6726
6727         PR middle-end/43519
6728         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
6729         * graphite-clast-to-gimple.c: Include langhooks.h.
6730         (max_signed_precision_type): New.
6731         (max_precision_type): Takes two types as arguments.
6732         (precision_for_value): New.
6733         (precision_for_interval): New.
6734         (gcc_type_for_interval): New.
6735         (gcc_type_for_value): New.
6736         (gcc_type_for_clast_term): New.
6737         (gcc_type_for_clast_red): New.
6738         (gcc_type_for_clast_bin): New.
6739         (gcc_type_for_clast_expr): Split up into several functions.
6740         (gcc_type_for_clast_eq): Rewritten.
6741         (compute_bounds_for_level): New.
6742         (compute_type_for_level_1): New.
6743         (compute_type_for_level): New.
6744         (gcc_type_for_cloog_iv): Removed.
6745         (gcc_type_for_iv_of_clast_loop): Rewritten.
6746         (graphite_create_new_loop): Compute the lower and upper bound types
6747         with gcc_type_for_clast_expr.
6748         (graphite_create_new_loop_guard): Same.
6749         (find_cloog_iv_in_expr): Removed.
6750         (compute_cloog_iv_types_1): Removed.
6751         (compute_cloog_iv_types): Removed.
6752         (gloog): Do not call compute_cloog_iv_types.
6753         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
6754         GBB_CLOOG_IV_TYPES.
6755         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
6756         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
6757         (GBB_CLOOG_IV_TYPES): Removed.
6758
6759 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6760
6761         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
6762         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
6763         (detect_commutative_reduction): Same.
6764
6765 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6766
6767         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
6768         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
6769         argument.
6770         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
6771         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
6772         (rewrite_commutative_reductions_out_of_ssa): Same.
6773         * passes.c (execute_function_todo): Call verify_ssa for every pass
6774         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
6775         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
6776         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
6777         with an extra argument.
6778         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
6779         verify_ssa only when the extra argument is true.
6780         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
6781         with an extra argument.
6782         (tree_transform_and_unroll_loop): Same.
6783
6784 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
6785
6786         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
6787         for all the passes of the LNO having LOOP_CLOSED_SSA.
6788         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
6789         * tree-loop-distribution.c (pass_loop_distribution): Same.
6790         * tree-pass.h (TODO_verify_loops): Removed.
6791         * tree-ssa-loop.c (pass_tree_loop_init): Same.
6792         (pass_lim): Same.
6793         (pass_tree_unswitch): Same.
6794         (pass_predcom): Same.
6795         (pass_vectorize): Same.
6796         (pass_linear_transform): Same.
6797         (pass_graphite_transforms): Same.
6798         (pass_iv_canon): Same.
6799         (pass_complete_unroll): Same.
6800         (pass_complete_unrolli): Same.
6801         (pass_parallelize_loops): Same.
6802         (pass_loop_prefetch): Same.
6803         (pass_iv_optimize): Same.
6804
6805 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
6806
6807         PR middle-end/32824
6808         * passes.c (init_optimization_passes): Move pass_lim before
6809         pass_copy_prop and pass_dce_loop.
6810
6811 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
6812
6813         PR target/43667
6814         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
6815         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
6816         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
6817         MULTI_* defines for 4 argument vpermil2p* builtins.
6818
6819 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
6820
6821         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
6822         * config/i386/i386.c (x86_maybe_negate_const_int): New.
6823         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
6824         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
6825         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
6826         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
6827         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
6828         Use x86_maybe_negate_const_int to output insn mnemonic.
6829         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
6830         check from instruction predicate.  Update comments.
6831         * config/i386/sync.md (sync_add<mode>): Use
6832         x86_maybe_negate_const_int to output insn mnemonic.
6833
6834 2010-04-06  Jan Hubicka  <jh@suse.cz>
6835
6836         PR tree-optimization/42906
6837         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
6838         IGNORE_SELF argument.  Set visited_control_parents for fully
6839         processed BBs.
6840         (find_obviously_necessary_stmts): Update call of
6841         mark_control_dependent_edges_necessary.
6842         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
6843
6844 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
6845
6846         * config/i386/i386.md: Remove comment about 'e' and 'E'
6847         operand modifier.
6848
6849 2010-04-06  Richard Guenther  <rguenther@suse.de>
6850
6851         PR tree-optimization/43627
6852         * tree-vrp.c (extract_range_from_unary_expr): Widenings
6853         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
6854         not varying.
6855
6856 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
6857
6858         * BASE-VER: Change to 4.6.0.
6859
6860         PR target/43638
6861         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
6862         handling.
6863
6864 2010-04-06  Richard Guenther  <rguenther@suse.de>
6865
6866         PR middle-end/43661
6867         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
6868
6869 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6870
6871         * doc/invoke.texi (Optimize Options): Document that LTO
6872         won't remove object access purely due to incompatible
6873         declarations.
6874
6875 2010-04-04  Matthias Klose  <doko@ubuntu.com>
6876
6877         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
6878         Initialize variable.
6879
6880 2010-04-03  Richard Guenther  <rguenther@suse.de>
6881
6882         PR middle-end/42509
6883         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
6884         require a non-NULL MEM_OFFSET.
6885
6886 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
6887
6888         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
6889         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
6890         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
6891         config/alpha/predicates.md, config/arm/arm.md,
6892         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
6893         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
6894         config/darwin9.h, config/darwin.c, config/darwin.h,
6895         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
6896         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
6897         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
6898         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
6899         config/mips/mips.md, config/mn10300/mn10300.c,
6900         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
6901         config/rs6000/aix.h, config/rs6000/dfp.md,
6902         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
6903         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
6904         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
6905         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
6906         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
6907         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
6908         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
6909         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
6910         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
6911         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
6912         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
6913         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
6914         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
6915         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
6916         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
6917         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
6918         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
6919         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
6920         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
6921         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
6922         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
6923         opt-functions.awk, opth-gen.awk, params.def, passes.c,
6924         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
6925         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
6926         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
6927         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
6928         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
6929         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6930         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
6931         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
6932         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6933         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
6934         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
6935         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
6936         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
6937         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
6938
6939 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6940
6941         PR other/43620
6942         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
6943         * aclocal.m4: Regenerate.
6944
6945 2010-04-02  Richard Guenther  <rguenther@suse.de>
6946
6947         PR tree-optimization/43629
6948         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
6949         if we have seen a constant value.
6950
6951 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
6952
6953         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
6954
6955 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
6956
6957         PR target/43469
6958         * arm.c (legitimize_tls_address): Adjust call to
6959         gen_tls_load_dot_plus_four.
6960         (arm_note_pic_base): New function.
6961         (arm_cannot_copy_insn_p): Use it.
6962         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
6963         constraint.
6964
6965 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6966
6967         PR bootstrap/43531
6968
6969         Revert:
6970         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6971
6972         * Makefile.in ($(out_object_file)): Depend on
6973         gt-$(basename $(notdir $(out_file))).h.
6974
6975 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
6976
6977         * config.gcc (lm32-*-rtems*): Add t-lm32.
6978
6979 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
6980
6981         * config.gcc: Add lm32-*-rtems*.
6982         * config/lm32/rtems.h: New file.
6983
6984 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
6985
6986         PR target/42609
6987         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
6988
6989 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
6990
6991         * dwarf2out.c (output_compilation_unit_header): For
6992         -gdwarf-4 use version 4 instead of version 3.
6993         (output_line_info): For version 4 and above emit additional
6994         maximum ops per insn header field.
6995         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
6996
6997         * dwarf2out.c (is_c_family, is_java): Remove.
6998         (lower_bound_default): New function.
6999         (add_bound_info, gen_descr_array_type_die): Use it.
7000
7001 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
7002
7003         PR debug/43325
7004         * dwarf2out.c (gen_variable_die): Allow debug info for variable
7005         re-declaration when it happens in a function.
7006
7007 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
7008
7009         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7010         (cgraph_remove_function_insertion_hook): Same.
7011         (cgraph_call_function_insertion_hooks): Same.
7012
7013 2010-04-01  Richard Guenther  <rguenther@suse.de>
7014
7015         PR middle-end/43614
7016         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7017         and TREE_THIS_VOLATILE.
7018         (copy_ref_info): Likewise.
7019         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7020         * tree.c (build6_stat): Ignore side-effects of all but arg5
7021         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
7022         TARGET_MEM_REF.
7023
7024 2010-04-01  Richard Guenther  <rguenther@suse.de>
7025
7026         PR tree-optimization/43607
7027         * ipa-type-escape.c (check_call): Do not access non-existing
7028         arguments.
7029
7030 2010-04-01  Richard Guenther  <rguenther@suse.de>
7031
7032         PR middle-end/43602
7033         Revert
7034         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7035                     Jack Howarth <howarth@bromo.med.uc.edu>
7036
7037         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7038         variables TLS.
7039
7040 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7041
7042         * doc/install.texi (Prerequisites): Document libelf usability on
7043         IRIX 5/6 and Solaris 2.
7044         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7045         Update GNU as, GNU ld requirements.
7046         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7047         Document Sun Studio compiler download.
7048         Update and simplify as, ld recommendations.
7049         (Specific, *-*-solaris2.7): Note obsoletion, removal.
7050
7051 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7052
7053         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7054         with_tune_32 to pentium4.
7055
7056 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
7057
7058         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7059
7060 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7061
7062         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7063         obsoletion, removal.
7064         Update IDO URL.
7065         Document GNU as requirement.
7066         Update configure requirements.
7067         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7068         Recomment IRIX 6.5.18+.
7069         Document IDF/IDL requirement.
7070         Document GNU as requirement.
7071         Document GNU ld bootstrap failure.
7072         Remove freeware.sgi.com reference.
7073
7074 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7075
7076         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7077         UNIX V4.0, V5.0 obsoletion, removal.
7078         Remove --with-gc=simple reference.
7079         Update VM requirements during bootstrap.
7080         Remove -oldas bootstrap description.
7081         Update binutils reference.
7082         Remove comparison failure note.
7083
7084 2010-03-31  Richard Guenther  <rguenther@suse.de>
7085             Zdenek Dvorak  <ook@ucw.cz>
7086             Sebastian Pop  <sebastian.pop@amd.com>
7087
7088         PR middle-end/43464
7089         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7090         with multiple arguments.
7091         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7092
7093 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7094
7095         * graphite-dependences.c (print_pddr): Call print_pdr with an
7096         extra argument.
7097         * graphite-poly.c (debug_pdr): Add an extra argument for the
7098         verbosity level.
7099         (print_pdr): Same.
7100         (print_pbb_domain): Same.
7101         (print_pbb): Same.
7102         (print_scop_context): Same.
7103         (print_scop): Same.
7104         (print_cloog): Same.
7105         (debug_pbb_domain): Same.
7106         (debug_pbb): Same.
7107         (print_pdrs): Same.
7108         (debug_pdrs): Same.
7109         (debug_scop_context): Same.
7110         (debug_scop): Same.
7111         (debug_cloog): Same.
7112         (print_scop_params): Same.
7113         (debug_scop_params): Same.
7114         (print_iteration_domain): Same.
7115         (print_iteration_domains): Same.
7116         (debug_iteration_domain): Same.
7117         (debug_iteration_domains): Same.
7118         (print_scattering_function): Same.
7119         (print_scattering_functions): Same.
7120         (debug_scattering_function): Same.
7121         (debug_scattering_functions): Same.
7122         * graphite-poly.h (debug_pdr): Update declaration.
7123         (print_pdr): Same.
7124         (print_pbb_domain): Same.
7125         (print_pbb): Same.
7126         (print_scop_context): Same.
7127         (print_scop): Same.
7128         (print_cloog): Same.
7129         (debug_pbb_domain): Same.
7130         (debug_pbb): Same.
7131         (print_pdrs): Same.
7132         (debug_pdrs): Same.
7133         (debug_scop_context): Same.
7134         (debug_scop): Same.
7135         (debug_cloog): Same.
7136         (print_scop_params): Same.
7137         (debug_scop_params): Same.
7138         (print_iteration_domain): Same.
7139         (print_iteration_domains): Same.
7140         (debug_iteration_domain): Same.
7141         (debug_iteration_domains): Same.
7142         (print_scattering_function): Same.
7143         (print_scattering_functions): Same.
7144         (debug_scattering_function): Same.
7145         (debug_scattering_functions): Same.
7146
7147 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7148
7149         * graphite-poly.c (print_scattering_function_1): New.
7150         (print_scattering_function): Call it.
7151         (print_scop_params): Remove spaces at the end of lines.
7152         (print_cloog): New.
7153         (debug_cloog): New.
7154         * graphite-poly.h (print_cloog): Declared.
7155         (debug_cloog): Declared.
7156
7157 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7158
7159         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7160         in loop->header.
7161         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7162         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7163         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7164         to switch between adding the IV bump in loop->latch or in loop->header.
7165
7166 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7167
7168         * graphite-poly.c (print_scattering_function): Pretty print following
7169         the scoplib format.
7170         (print_pdr): Same.
7171         (print_pbb_domain): Same.
7172         (dump_gbb_cases): Same.
7173         (dump_gbb_conditions): Same.
7174         (print_pdrs): Same.
7175         (print_pbb): Same.
7176         (print_scop_params): Same.
7177         (print_scop_context): Same.
7178         (print_scop): Same.
7179         (print_pbb_body): New.
7180         (lst_indent_to): New.
7181         (print_lst): Start new lines with a #.
7182         * graphite-poly.h (pbb_bb): New.
7183         (pbb_index): Use pbb_bb.
7184         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7185         disjuncts.
7186         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7187
7188 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7189
7190         * dwarf2out.c (size_of_die): For -gdwarf-4 use
7191         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7192         and 0 instead of 1 for dw_val_class_flag.
7193         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7194         dw_val_class_range_list, dw_val_class_loc_list,
7195         dw_val_class_lineptr and dw_val_class_macptr, use
7196         DW_FORM_flag_present for dw_val_class_flag and
7197         DW_FORM_exprloc for dw_val_class_loc.
7198         (output_die): For -gdwarf-4 print dw_val_class_loc
7199         size as uleb128 instead of 1 or 2 bytes and don't print
7200         anything for dw_val_class_flag.
7201
7202         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7203         instead of cselib_lookup following by tweaking locs->setting_insn.
7204
7205         PR bootstrap/43596
7206         * cselib.c (cselib_process_insn): Clear cselib_current_insn
7207         even before returning from label, setjmp call or volatile asm
7208         handling.
7209
7210 2010-03-31  Richard Guenther  <rguenther@suse.de>
7211
7212         PR middle-end/43600
7213         * cgraphunit.c (cgraph_output_in_order): Do not allocate
7214         temporary data on stack.
7215
7216 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7217
7218         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7219         (PUSHSECTION_ASM_OP): Remove.
7220         (POPSECTION_ASM_OP): Remove.
7221         (PUSHSECTION_FORMAT): Remove.
7222         * config/sol2.h (PUSHSECTION_FORMAT): Define.
7223         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7224         * config/sol2.c (solaris_output_init_fini): Use it.
7225
7226 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7227
7228         PR 43574
7229         * opt-functions.awk (var_type_struct): Use signed char type
7230         for simple variables.
7231
7232 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7233
7234         * config/sol2.c: Include output.h.
7235         (solaris_assemble_visibility): New function.
7236         * config/t-sol2 (sol2.o): Add output.h dependency.
7237         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7238         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7239         Redefine.
7240
7241 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7242
7243         PR target/43580
7244         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7245         V2SImode or XFmode on PRE_DEC.
7246
7247         PR debug/43557
7248         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7249         BLKmode.
7250
7251 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7252
7253         PR 43562
7254         * reload.h (caller_save_initialized_p): Declare.
7255         * toplev.c (backend_init_target): Don't call
7256         init_caller_save but set caller_save_initialized_p to false.
7257         * caller-save.c (caller_save_initialized_p): Define.
7258         (init_caller_save): Check caller_save_initialized_p.
7259         * ira.c (ira): Call init_caller_save if flag_caller_saves.
7260
7261 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7262
7263         PR target/39048
7264         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7265         and soft-fp/t-softfp to tmake_file.
7266         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7267         (LIBGCC2_TF_CEXT): Define.
7268         (TF_SIZE): Define.
7269
7270 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
7271
7272         PR debug/42977
7273         * cselib.c (n_useless_values): Document handling of debug locs.
7274         (n_useless_debug_values, n_debug_values): New variables.
7275         (new_elt_loc_list): Don't add to debug values, keep count.
7276         (promote_debug_loc): New.
7277         (cselib_reset_table): Zero new variables.
7278         (entry_and_rtx_equal_p): Promote debug locs.
7279         (discard_useless_locs): Increment n_useless_debug_values for
7280         debug values.
7281         (remove_useless_values): Adjust n_useless_values and n_debug_values
7282         with n_useless_debug_values.
7283         (add_mem_for_addr): Promote debug locs.
7284         (cselib_lookup_mem): Likewise.
7285         (cselib_lookup_addr): Renamed to...
7286         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
7287         (cselib_log_lookup): ... this.  Turn into...
7288         (cselib_lookup_addr): ... new wrapper.
7289         (cselib_lookup_from_insn): New.
7290         (cselib_invalidate_regno): Increment n_useless_debug_values for
7291         debug values.
7292         (cselib_invalidate_mem): Likewise.
7293         (cselib_process_insn): Take n_deleted and n_debug_values into
7294         account to guard remove_useless_value call.
7295         (cselib_finish): Zero n_useless_debug_values.
7296         * cselib.h (cselib_lookup_from_insn): Declare.
7297         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7298         (sched_analyze_2): Likewise.
7299
7300 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
7301
7302         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7303         functions.
7304         (adjust_mems): Replace narrowing SUBREG of expression containing
7305         just PLUS, MINUS, MULT and ASHIFT of registers and constants
7306         with operations in the narrower mode.
7307
7308         PR debug/43593
7309         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7310         regs_invalidated_by_call instead all call_used_reg_set registers.
7311
7312 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
7313
7314         PR middle-end/43430
7315         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7316         pointer comparisons with types_compatible_p.
7317         * tree-vect-stmts.c (vectorizable_call): Same.
7318         (vectorizable_condition): Same.
7319
7320 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7321
7322         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7323         stack check if the mask would be zero.
7324
7325 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7326             Jack Howarth <howarth@bromo.med.uc.edu>
7327
7328         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7329         variables TLS.
7330
7331 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
7332
7333         PR other/25232
7334         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
7335         and __unordtf2.
7336         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7337         Include ___unordxf2 and ___unordtf2.
7338         * config/i386/libgcc-glibc.ver: Do not define inheritance from
7339         GCC_4.4.0 here.
7340
7341 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
7342
7343         * config/lm32/t-lm32: New file.
7344         * config.gcc: Use the above file when targetting lm32.
7345
7346 2010-03-28  Duncan Sands  <baldrick@free.fr>
7347
7348         * Makefile.in (PLUGIN_HEADERS): Add except.h.
7349
7350 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
7351
7352         PR middle-end/43431
7353         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7354         Improve vectorization cost model diagnostic.
7355
7356 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
7357
7358         PR middle-end/43436
7359         * tree-vect-data-refs.c (vect_analyze_data_refs): When
7360         compute_data_dependences_for_loop returns false, early exit
7361         and output an extra diagnostic for the failed data reference
7362         analysis.
7363
7364 2010-03-29  Richard Guenther  <rguenther@suse.de>
7365
7366         PR tree-optimization/43560
7367         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7368         (can_sm_ref_p): Treat stores to readonly locations as trapping.
7369
7370 2010-03-29  Jie Zhang  <jie@codesourcery.com>
7371
7372         PR 43564
7373         * toplev.c (process_options): Set optimization_default_node
7374         and optimization_current_node.
7375         * opts.c (decode_options): Don't set optimization_default_node
7376         and optimization_current_node.
7377
7378 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
7379
7380         * config/rtems.h: Abandon -qrtems_debug.
7381
7382 2010-03-28  Jan Hubicka  <jh@suse.cz>
7383
7384         PR tree-optimization/43505
7385         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7386         map should not be copied.
7387
7388 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7389
7390         PR middle-end/41674
7391         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7392         cdtors, set DECL_PRESERVE_P.
7393         * ipa.c (cgraph_externally_visible_p): Return true if declaration
7394         should be preseved.
7395
7396 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
7397
7398         PR tree-optimization/43528
7399         * stor-layout.c (place_field): Check that constant fits into
7400         unsigned HWI when skipping calculation of MS bitfield layout.
7401
7402 2010-03-27  Jan Hubicka  <jh@suse.cz>
7403
7404         PR middle-end/43391
7405         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7406         notice_global_symbol work.
7407
7408 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
7409
7410         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7411         instead of dwarf2out_decl.
7412         (struct var_loc_node): Remove section_label field.
7413         (dwarf2out_function_decl): New function.
7414         (dwarf2out_var_location): Don't set section_label field.
7415         (dwarf2out_begin_function): Don't empty decl_loc_table here.
7416
7417 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7418
7419         PR tree-optimization/43544
7420         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7421         First argument for builtin vectorized function hook is now a
7422         tree to be able to distinguish between machine specific and
7423         standard builtins.
7424         * targhooks.c (default_builtin_vectorized_function): Ditto.
7425         * targhooks.h (default_builtin_vectorized_function): Ditto.
7426         * target.h (struct gcc_target): Ditto.
7427         * tree-vect-stmts.c (vectorizable_function): Ditto.
7428         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7429         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7430         Ditto.
7431
7432 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
7433
7434         PR c/43381
7435         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7436         nested binding iff it is a FUNCTION_DECL.
7437         (store_parm_decls_newstyle): Pass nested=true to bind for
7438         FUNCTION_DECLs amongst parameters.
7439
7440 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
7441
7442         * var-tracking.c (vt_expand_loc_callback): Don't run
7443         cselib_expand_value_rtx_cb in dummy mode if
7444         cselib_dummy_expand_value_rtx_cb returned false.
7445
7446         * var-tracking.c (emit_note_insn_var_location): For one part
7447         notes with offset 0, don't add EXPR_LIST around the location.
7448         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7449         add_location_or_const_value_attribute): Adjust for that change.
7450
7451         PR debug/43540
7452         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7453         into first operand and location into second.
7454         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7455         dw_cfi_oprnd_loc for DW_CFA_expression.
7456         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7457         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7458         assume first argument is regnum and second argument is location.
7459
7460 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
7461
7462         PR target/42113
7463         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7464         of scratch register to DImode.  Split to DImode comparison operator.
7465         Use SImode subreg of scratch register in the multiplication.
7466         (*cmp_sadd_sidi): Ditto.
7467         (*cmp_ssub_si): Ditto.
7468         (*cmp_ssub_sidi): Ditto.
7469
7470 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
7471
7472         PR target/43524
7473         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7474         Remove invalid assert and wrong comment.
7475
7476 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
7477
7478         PR debug/43516
7479         * flags.h (final_insns_dump_p): New extern.
7480         * final.c (final_insns_dump_p): New variable.
7481         (rest_of_clean_state): Set it before -fdump-final-insns=
7482         dumping, clear afterwards.
7483         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7484         MEM_ALIAS_SET on MEMs.
7485
7486 2010-03-26  David S. Miller  <davem@davemloft.net>
7487
7488         * configure.ac: Fix sparc GOTDATA_OP bug check.
7489         * configure: Rebuild.
7490
7491 2010-03-26  Alan Modra  <amodra@gmail.com>
7492
7493         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7494
7495 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7496
7497         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7498         TLS_SECTION_ASM_FLAG.
7499
7500 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
7501
7502         PR bootstrap/43511
7503         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7504         Clear first_function_block_is_cold.
7505
7506         PR c/43385
7507         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7508         argument if the argument is truth_value_p.
7509
7510 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
7511
7512         * config/rs6000/constraints.md: Update copyright year for my changes.
7513
7514         PR target/43484
7515         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7516         used in reg+reg addressing, swap registers.
7517
7518 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
7519
7520         PR debug/43293
7521         * target.h (struct gcc_target): Add code_end hook.
7522         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7523         if not yet defined.
7524         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7525         * toplev.c (compile_file): Call targetm.asm_out.code_end
7526         hook before unwind info/debug info output.
7527         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7528         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7529         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7530         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7531         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7532         * config/i386/i386.c (ix86_file_end): Renamed to...
7533         (ix86_code_end): ... this.  Make static.  Don't call
7534         file_end_indicate_exec_stack.  Emit unwind info using
7535         final_start_function/final_end_function.
7536         (darwin_x86_file_end): Remove.
7537         (TARGET_ASM_CODE_END): Define.
7538         * config/i386/i386.h (TARGET_ASM_FILE_END,
7539         NEED_INDICATE_EXEC_STACK): Don't define.
7540         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7541         (TARGET_ASM_FILE_END): Define to darwin_file_end.
7542         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7543         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7544
7545         PR target/43498
7546         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
7547         at the beginning and final_end_function at the end.
7548         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7549
7550 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7551
7552         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
7553         and Sun as TLS syntax.
7554         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
7555         * configure: Regenerate.
7556         * config.in: Regenerate.
7557         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
7558         (default_elf_asm_named_section): Use it.
7559         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
7560         (i386_output_dwarf_dtprel): Likewise.
7561         (output_addr_const_extra): Likewise.
7562         (output_pic_addr_const): Lowercase @GOTTPOFF.
7563         (output_addr_const_extra): Likewise.
7564         (output_pic_addr_const): Lowercase @GOTNTPOFF.
7565         (output_addr_const_extra): Likewise.
7566         (output_pic_addr_const): Lowercase @INDNTPOFF.
7567         (output_addr_const_extra): Likewise.
7568         (output_pic_addr_const): Lowercase @NTPOFF.
7569         (output_addr_const_extra): Likewise.
7570         (output_pic_addr_const): Lowercase @TPOFF.
7571         (output_addr_const_extra): Likewise.
7572         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
7573         (*tls_global_dynamic_64): Likewise.
7574         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
7575         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
7576
7577         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
7578         (ASM_OUTPUT_TLS_COMMON): Use it.
7579         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
7580
7581         PR target/38118
7582         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
7583         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7584         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
7585         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
7586         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7587         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
7588
7589 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7590
7591         * config/i386/i386.c (override_options): Don't accept
7592         -mtls-dialect=sun any longer.
7593         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
7594         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
7595         (*tls_local_dynamic_base_32_sun): Likewise.
7596         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
7597
7598 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
7599
7600         PR debug/43508
7601         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7602         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
7603
7604         PR debug/43479
7605         * ira.c (adjust_cleared_regs): New function.
7606         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
7607
7608         PR debug/19192
7609         PR debug/43479
7610         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
7611         from gimple_block.
7612         * expr.c (expand_expr_real): Restore previous
7613         curr_insn_source_location and curr_insn_block after
7614         expand_expr_real_1 call.
7615         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
7616         instead of expand_expr_real_1.
7617
7618 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
7619
7620         PR rtl-optimization/43413
7621         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
7622         hard regs too.
7623
7624 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
7625
7626         PR target/43348
7627         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
7628         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
7629
7630 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
7631
7632         * config/i386/i386.c (ix86_target_string): Add -mfma.
7633         Fix a typo in comment.
7634
7635 2010-03-22  Mike Stump  <mikestump@comcast.net>
7636
7637         PR target/23071
7638         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
7639         Don't overly align based upon packed packed fields.
7640
7641 2010-03-22  Jason Merrill  <jason@redhat.com>
7642
7643         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
7644         Use () rather than [], and move before the element type.
7645
7646 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7647
7648         * doc/configfiles.texi (Configuration Files): Removed
7649         fixinc/Makefile*, intl/Makefile.*.
7650         * doc/makefile.texi: Fixed markup. Abstract from version
7651         control system used.
7652         (Makefile): Removed obsolete gcc/java/parse.y example.
7653         * doc/sourcebuild.texi: Likewise.
7654         (Top Level): Added config, gnattools, libdecnumber, libgcc,
7655         libgomp, libssp.  Removed fastjar.
7656         (Miscellaneous Docs): Clarify location.
7657         Added COPYING3, COPYING3.LIB.
7658         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
7659
7660 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7661
7662         PR target/38085
7663         * config/i386/i386.c (x86_function_profiler)
7664         [!NO_PROFILE_COUNTERS]: Fix typo.
7665         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
7666         instead of callq.
7667
7668 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
7669             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7670
7671         * doc/sourcebuild.texi (Test Directives): Split into six
7672         subsections, with most of the current text in new subsections
7673         Directives, Selectors, and Final Actions.
7674         (Directives): Split list of test directives into multiple
7675         subsubsections.
7676         (Selectors): Describe use and syntax of selectors.
7677         (Effective-Target Keywords): Describe all existing keywords.
7678         (Add Options): Describe features for dg-add-options.
7679         (Require Support): Describe variants of dg-require-support.
7680         (Final Actions): Describe commands to use in dg-final.
7681
7682 2010-03-22  Michael Matz  <matz@suse.de>
7683
7684         PR middle-end/43475
7685         * recog.c (validate_replace_rtx_group): Replace also in
7686         REG_EQUAL and REG_EQUIV notes.
7687
7688 2010-03-22  Richard Guenther  <rguenther@suse.de>
7689
7690         PR tree-optimization/43390
7691         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
7692         sure vector extracts are type correct.
7693
7694 2010-03-22  Richard Guenther  <rguenther@suse.de>
7695
7696         PR middle-end/40106
7697         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
7698         x * sqrt (x) even when optimizing for size if the target
7699         has native support for sqrt.
7700
7701 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
7702
7703         * varasm.c (make_decl_rtl_for_debug): Also clear
7704         flag_mudflap for the duration of make_decl_rtl call.
7705
7706         PR debug/43443
7707         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
7708         locs from preserved VALUEs.
7709
7710 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7711
7712         PR middle-end/42718
7713         * pa.md (movmemsi): Set align to one if zero.
7714         (movmemdi): Likewise.
7715
7716 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
7717
7718         PR target/42321
7719         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
7720         with their corresponding prologue pushes.
7721
7722 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
7723
7724         PR target/43156
7725         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
7726         at the begining or end.
7727         (spu_expand_epilogue): Likewise.
7728
7729 2010-03-20  Richard Guenther  <rguenther@suse.de>
7730
7731         PR rtl-optimization/43438
7732         * combine.c (make_extraction): Properly zero-/sign-extend an
7733         extraction of the low part of a CONST_INT.  Also handle
7734         CONST_DOUBLE.
7735
7736 2010-03-19  Mike Stump  <mikestump@comcast.net>
7737
7738         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
7739         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
7740         (override_options): Use SUBTARGET32_DEFAULT_CPU.
7741
7742 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
7743
7744         PR c/43211
7745         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
7746         an error.
7747
7748 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
7749
7750         PR rtl-optimization/42258
7751         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
7752         use that may match DEF.
7753
7754         PR target/40697
7755         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
7756         the cost of loading the constant rather than assuming
7757         COSTS_N_INSNS (1).
7758         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
7759         outer code is AND, do the same tests as the andsi3 expander and
7760         return COSTS_N_INSNS (1) if and is cheap.
7761
7762         * optabs.c (avoid_expensive_constant): Fix formatting.
7763
7764 2010-03-19  Michael Matz  <matz@suse.de>
7765
7766         PR c++/43116
7767         * attribs.c (decl_attributes): When rebuilding a function pointer
7768         type use the same qualifiers as the original pointer type.
7769
7770 2010-03-19  Martin Jambor  <mjambor@suse.cz>
7771
7772         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
7773         and is_gimple_ip_invariant_address.
7774
7775 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7776
7777         Revert
7778         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7779
7780         * config/arm/arm.c (arm_override_options): Turn off
7781         flag_dwarf2_cfi_asm for AAPCS variants.
7782
7783 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7784
7785         PR target/43399
7786         * config/arm/arm.c (emit_multi_reg_push): Update comments.
7787         Use PRE_MODIFY instead of PRE_DEC.
7788         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
7789         (vfp_emit_fstmd): Likewise.
7790
7791 2010-03-19  Michael Matz  <matz@suse.de>
7792
7793         PR target/43305
7794         * builtins.c (expand_builtin_interclass_mathfn,
7795         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
7796         if that fails.
7797
7798 2010-03-19  Richard Guenther  <rguenther@suse.de>
7799
7800         PR tree-optimization/43415
7801         * tree-ssa-pre.c (phi_translate): Split out worker to ...
7802         (phi_translate_1): ... this.
7803         (phi_translate): Move all caching here.  Cache all NARY
7804         and REFERENCE translations.
7805
7806 2010-03-19  David S. Miller  <davem@davemloft.net>
7807
7808         With help from Eric Botcazou.
7809         * config/sparc/sparc.c: Include dwarf2out.h.
7810         (emit_pic_helper): Delete.
7811         (pic_helper_symbol_name): Delete.
7812         (pic_helper_emitted_p): Delete.
7813         (pic_helper_needed): New.
7814         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
7815         (get_pc_thunk_name): New.
7816         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
7817         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
7818         Set pic_helper_needed to true.  Don't call emit_pic_helper.
7819         (sparc_expand_prologue): Update load_pic_register call.
7820         (sparc_output_mi_thunk): Likewise.
7821         (sparc_file_end): Emit a hidden comdat symbol for the PIC
7822         thunk if possible.  Output CFI information as needed.
7823
7824 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7825             Jack Howarth <howarth@bromo.med.uc.edu>
7826
7827         PR target/36399
7828         * config/i386/i386.h: Fix ABI on darwin x86-32.
7829
7830 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
7831
7832         * tree.h: Declare make_decl_rtl_for_debug.
7833         * varasm.c (make_decl_rtl_for_debug): New.
7834         * dwarf2out.c (rtl_for_decl_location): Call it.
7835         * cfgexpand.c (expand_debug_expr): Call it.
7836
7837 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
7838
7839         PR bootstrap/43399
7840         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
7841         mem_mode.
7842
7843         PR bootstrap/43403
7844         * var-tracking.c (vt_init_cfa_base): Do nothing if
7845         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
7846
7847 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
7848
7849         PR debug/42873
7850         * var-tracking.c (canonicalize_vars_star): New.
7851         (dataflow_post_merge_adjust): Use it.
7852
7853 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
7854
7855         PR debug/43058
7856         * var-tracking.c (non_suitable_const): New function.
7857         (add_uses): For DEBUG_INSNs with constants, don't record any
7858         value, instead just the constant value itself.
7859         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
7860         is not VAR_LOC_UNKNOWN_P, set var to the constant.
7861         (emit_notes_in_bb): Likewise.
7862         (emit_note_insn_var_location): For onepart variables if
7863         cur_loc is a VOIDmode constant, use DECL_MODE.
7864
7865 2010-03-18  Martin Jambor  <mjambor@suse.cz>
7866
7867         PR middle-end/42450
7868         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
7869         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
7870         all non-clones.  Moved call redirection...
7871         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
7872         (cgraph_materialize_all_clones): Dispose of all
7873         combined_args_to_skip bitmaps.
7874         (verify_cgraph_node): Do not check for edges pointing to wrong
7875         nodes in inline clones.
7876         * tree-inline.c (copy_bb): Call
7877         cgraph_redirect_edge_call_stmt_to_callee.
7878         * ipa.c (cgraph_remove_unreachable_nodes): Call
7879         cgraph_node_remove_callees even when there are used clones.
7880
7881 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
7882
7883         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
7884
7885 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         PR target/43383
7888         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
7889         for 32bit.
7890
7891 2010-03-18  Michael Matz  <matz@suse.de>
7892
7893         PR middle-end/43419
7894         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
7895         into sqrt(x) if we need to preserve signed zeros.
7896
7897 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
7898             Eric Botcazou  <ebotcazou@adacore.com>
7899
7900         PR rtl-optimization/43360
7901         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
7902         note if we don't know its invariant status.
7903
7904 2010-03-18  Michael Matz  <matz@suse.de>
7905
7906         PR tree-optimization/43402
7907         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
7908         PHI chains of ssa names registered for update.
7909
7910 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
7911
7912         PR target/42427
7913         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
7914         non-offsettable and pre_modify update addressing.
7915         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
7916         and "2" alternatives "#".
7917         (*movdd_softfloat32): Make all alternatives "#";
7918         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
7919         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
7920         (*movdf_softfloat32): Make all alternatives "#";
7921         (movdi): Use the new DIFD mode iterator to create a common splitter
7922         for movdi, movdf and movdd patterns.
7923
7924 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
7925
7926         * common.opt (dumpdir): Remove redundant tab.
7927
7928 2010-03-17  Martin Jambor  <mjambor@suse.cz>
7929
7930         PR tree-optimization/43347
7931         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
7932         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
7933
7934 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
7935
7936         PR rtl-optimization/42216
7937         * regrename.c (create_new_chain): New function, broken out from...
7938         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
7939         appending a use to an empty chain.
7940         (build_def_use): Remove previous changes that convert OP_INOUT to
7941         OP_OUT operands; instead detect the case where an OP_INOUT operand
7942         uses a previously untracked register and create an empty chain for it.
7943
7944 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7945
7946         * doc/extend.texi (Function Attributes): Rewrite unfinished
7947         sentence in ms_abi documentation.
7948
7949 2010-03-17  Alan Modra  <amodra@gmail.com>
7950
7951         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
7952         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
7953         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
7954         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
7955
7956 2010-03-16  Richard Henderson  <rth@redhat.com>
7957
7958         PR middle-end/43365
7959         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
7960         (lower_try_finally): Save and restore eh_seq around the expansion
7961         of the try-finally.
7962
7963 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
7964
7965         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
7966         statements before splitting block.
7967
7968 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7969
7970         * doc/sourcebuild.texi (Testsuites): Fix markup.
7971         Use pathnames relative to gcc/testsuite.
7972         (Test Directives): Move description of how timeout is determined.
7973         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
7974         (C Tests): Correct gcc.misc-tests directory.
7975         Framework tests now live in gcc.test-framework.
7976
7977 2010-03-16  Richard Guenther  <rguenther@suse.de>
7978
7979         PR middle-end/43379
7980         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
7981         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
7982
7983 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
7984             Alexandre Oliva  <aoliva@redhat.com>
7985
7986         PR tree-optimization/42917
7987         * lambda-code.c (remove_iv): Skip debug statements.
7988         (lambda_loopnest_to_gcc_loopnest): Likewise.
7989         (not_interesting_stmt): Debug statements are not interesting.
7990
7991 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
7992
7993         PR debug/43051
7994         PR debug/43092
7995         * cselib.c (cselib_preserve_constants,
7996         cfa_base_preserved_val): New static variables.
7997         (preserve_only_constants): New function.
7998         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
7999         clear its REG_VALUES.  If cselib_preserve_constants, don't
8000         empty the whole hash table, but preserve there VALUEs with constants,
8001         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8002         (cselib_preserve_cfa_base_value): New function.
8003         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8004         (cselib_init): Change argument to int bitfield.  Set
8005         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8006         is in it.
8007         (cselib_finish): Clear cselib_preserve_constants and
8008         cfa_base_preserved_val.
8009         * cselib.h (enum cselib_record_what): New enum.
8010         (cselib_init): Change argument to int.
8011         (cselib_preserve_cfa_base_value): New prototype.
8012         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8013         * dse.c (dse_step1): Likewise.
8014         * cfgcleanup.c (thread_jump): Likewise.
8015         * sched-deps.c (sched_analyze): Likewise.
8016         * gcse.c (local_cprop_pass): Likewise.
8017         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8018         If FN is non-NULL, call the callback always and whenever it returns
8019         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
8020         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8021         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8022         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8023         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8024         * var-tracking.c: Include recog.h.
8025         (bb_stack_adjust_offset): Remove.
8026         (vt_stack_adjustments): Don't call it, instead just gather the
8027         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8028         (adjust_stack_reference): Remove.
8029         (compute_cfa_pointer): New function.
8030         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8031         (struct adjust_mem_data): New type.
8032         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8033         functions.
8034         (get_address_mode): New function.
8035         (replace_expr_with_values): Use it.
8036         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8037         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
8038         (adjust_sets): Remove.
8039         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8040         Use get_address_mode.
8041         (get_adjusted_src): Remove.
8042         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
8043         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
8044         (add_with_sets): Don't call adjust_sets.
8045         (fp_setter, vt_init_cfa_base): New functions.
8046         (vt_initialize): Change return type to bool.  Move most of pool etc.
8047         initialization to the beginning of the function from end.  Pass
8048         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8049         If !frame_pointer_needed, call vt_stack_adjustment before mos
8050         vector is filled, call vt_init_cfa_base if argp/framep has been
8051         eliminated to sp.  If frame_pointer_needed and argp/framep has
8052         been eliminated to hard frame pointer, set
8053         hard_frame_pointer_adjustment and call vt_init_cfa_base after
8054         encountering fp setter in the prologue.  For MO_ADJUST, call
8055         log_op_type before pusing the op into mos vector, not afterwards.
8056         Call adjust_insn before cselib_process_insn/add_with_sets,
8057         call cancel_changes (0) afterwards.
8058         (variable_tracking_main_1): Adjust for vt_initialize calling
8059         vt_stack_adjustments and returning whether it succeeded or not.
8060
8061 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
8062
8063         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8064         debug statements.
8065
8066 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
8067
8068         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8069         has been set.
8070         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8071         drap_reg has not been set.
8072
8073 2010-03-15  Michael Matz  <matz@suse.de>
8074
8075         PR middle-end/43300
8076         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8077         use it to expand block copies.
8078         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8079         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8080         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8081
8082 2010-03-15  Richard Guenther  <rguenther@suse.de>
8083
8084         PR tree-optimization/43367
8085         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8086         elimination check.
8087
8088 2010-03-15  Richard Guenther  <rguenther@suse.de>
8089
8090         PR tree-optimization/43317
8091         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8092
8093 2010-03-15  Martin Jambor  <mjambor@suse.cz>
8094
8095         PR tree-optimization/43141
8096         * tree-sra.c (create_abstract_origin): New function.
8097         (modify_function): Call create_abstract_origin.
8098
8099 2010-03-15  Chris Demetriou  <cgd@google.com>
8100
8101         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8102         wasn't copied.
8103
8104 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8105
8106         PR middle-end/43354
8107         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8108         call insert_out_of_ssa_copy for default definitions.
8109
8110 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8111
8112         * graphite-clast-to-gimple.c (my_long_long): Defined.
8113         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8114         * graphite-sese-to-poly.c (my_long_long): Defined.
8115         (scop_ivs_can_be_represented): Use it.
8116
8117 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8118
8119         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8120         graphite-max-bbs-per-function, and loop-block-tile-size.
8121         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8122         with "maximum".
8123         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8124
8125 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8126
8127         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8128         forward declaration.
8129         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8130         (add_upper_bounds_from_estimated_nit): New.
8131         (build_loop_iteration_domains): Use it.
8132
8133 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8134
8135         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8136
8137 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8138
8139         PR middle-end/43306
8140         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8141         should be an INTEGER_CST.  Also handle CASE_CONVERT.
8142
8143 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8144
8145         * graphite.c (graphite_initialize): To bound the number of bbs per
8146         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8147         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8148         * doc/invoke.texi: Document it.
8149
8150 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8151
8152         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8153         * graphite-sese-to-poly.h (build_poly_scop): Same.
8154
8155 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8156
8157         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8158         the number of parameters in the scop.  Use as an upper bound
8159         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8160         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8161         * doc/invoke.texi: Document it.
8162
8163 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
8164
8165         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8166         * doc/c-tree.texi: Remove.
8167         * doc/generic.texi: Merge c-tree.texi here.
8168         * doc/gccint.texi (Trees): Remove menu entry.
8169         (c-tree.texi): Remove @include.
8170         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8171         * doc/languages.texi (Reading RTL): Ditto.
8172
8173 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
8174
8175         PR target/42869
8176         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8177
8178 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8179
8180         PR middle-end/42431
8181         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8182         code added to work around reload clobbering CONST insns.
8183
8184 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
8185
8186         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8187         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8188         (cselib_preserve_only_values): Remove retain argument, don't
8189         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8190         * cselib.h (cselib_preserve_only_values): Remove retain argument.
8191         * var-tracking.c (micro_operation): Move insn field before union.
8192         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8193         (struct variable_tracking_info_def): Remove n_mos field, change
8194         mos into a vector of micro_operations.
8195         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8196         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8197         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8198         changing into a vector.
8199         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
8200         come before all other uops generated by add_stores.
8201         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8202         argument removal.
8203         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
8204         a vector.  Run just one pass over the bbs instead of separate counting
8205         and computation phase.
8206         (vt_finalize): Free VTI (bb)->mos vector instead of array.
8207
8208         PR debug/43329
8209         * tree-inline.c (remap_decls): Put old_var rather than origin_var
8210         into *nonlocalized_list vector.
8211         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8212         even if origin is non-NULL.
8213         (gen_variable_die): Likewise.
8214         (process_scope_var): Don't change origin.
8215         (gen_decl_die): Likewise.
8216         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8217         before adding new edges instead of after it, fix moving over
8218         debug stmts.
8219
8220 2010-03-11  David S. Miller  <davem@davemloft.net>
8221
8222         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8223         of four.
8224         * configure: Rebuild.
8225
8226 2010-03-11  Martin Jambor  <mjambor@suse.cz>
8227
8228         PR tree-optimization/43257
8229         * tree.c (assign_assembler_name_if_neeeded): New function.
8230         (free_lang_data_in_cgraph): Assembler name assignment moved to the
8231         above new function.
8232         * tree.h (assign_assembler_name_if_neeeded): Declare.
8233         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8234         the function if needed.
8235
8236 2010-03-11  Chris Demetriou  <cgd@google.com>
8237
8238         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8239         include/stdint-gcc.h, and include/stdint.h world-readable.
8240
8241 2010-03-11  Richard Guenther  <rguenther@suse.de>
8242
8243         PR tree-optimization/43255
8244         * tree-vrp.c (process_assert_insertions_for): Do not insert
8245         asserts for trivial conditions.
8246
8247 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8248
8249         PR tree-optimization/43280
8250         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8251         generation.  Move calculation of size out of the if branch.
8252         (find_bswap): Modify compare number generation.
8253
8254 2010-03-11  Richard Guenther  <rguenther@suse.de>
8255
8256         PR lto/43200
8257         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8258         (input_gimple_stmt): Fixup handled component types during
8259         operand read.  Also fix up decls in ADDR_EXPRs.
8260
8261 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
8262
8263         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8264         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8265
8266 2010-03-10  Jan Hubicka  <jh@suse.cz>
8267
8268         PR c/43288
8269         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8270         * varasm.c (get_variable_section): Don't do that here...
8271         (make_decl_rtl): ... and here.
8272         (do_assemble_alias): Produce decl RTL.
8273         (assemble_alias): Likewise.
8274
8275 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8276
8277         PR debug/43290
8278         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8279         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8280         of fde->vdrap_reg.
8281         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8282         (based_loc_descr): Only express drap or vdrap regno based expressions
8283         using DW_OP_fbreg when not optimizing.
8284         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8285         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8286         REG_CFA_SET_VDRAP note.
8287
8288 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
8289
8290         PR tree-optimization/43236
8291         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8292         error in calculation of base address in reverse iteration case.
8293         (generate_builtin): Take number of latch executions if the statement
8294         is in the latch.
8295
8296 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
8297
8298         PR middle-end/42859
8299         * tree-eh.c: Include pointer-set.h.
8300         (lower_eh_dispatch): Filter out duplicate case labels and
8301         remove the unneeded edge when the label is unused.  Return
8302         true when some edges are removed.
8303         (execute_lower_eh_dispatch): When any lowering resulted in
8304         removing an edge, also delete unreachable blocks.
8305
8306 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8307
8308         PR bootstrap/43287
8309         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8310         UNSPEC_MACHOPIC_OFFSET.
8311
8312 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
8313
8314         PR target/43294
8315         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8316         (m68k_delegitimize_address): New function.
8317
8318 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
8319
8320         PR debug/43299
8321         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8322
8323         PR debug/43299
8324         * var-tracking.c (adjust_sets): New function.
8325         (count_with_sets, add_with_sets): Use it.
8326         (get_adjusted_src): New inline function.
8327         (add_stores): Use it.
8328
8329         PR debug/43304
8330         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8331         call cselib_dummy_expand_value_rtx_cb instead of
8332         cselib_expand_value_rtx_cb.
8333
8334         PR debug/43293
8335         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8336         * config/i386/i386.c: Include debug.h and dwarf2out.h.
8337         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8338         and .cfi_endproc around the pic thunks.
8339         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8340         all queued unwind info register saves are saved before the call.
8341         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8342         considered as sp-=4 for unwind info and the pop as sp+=4 which
8343         also clobbers dest, but doesn't actually restore it.
8344
8345         PR debug/43290
8346         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8347         RTX_FRAME_RELATED_P.
8348
8349 2010-03-09  Jie Zhang  <jie@codesourcery.com>
8350
8351         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8352         whitespaces in output template.
8353
8354 2010-03-09  Jie Zhang  <jie@codesourcery.com>
8355
8356         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8357         out array boundary.
8358
8359 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
8360
8361         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8362         builtins.exp in a separate job.
8363
8364 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8365
8366         * graphite-sese-to-poly.c (add_param_constraints): Use
8367         lower_bound_in_type and upper_bound_in_type.
8368
8369 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8370
8371         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8372         instead of unsigned_type_node.
8373
8374 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8375             Reza Yazdani  <reza.yazdani@amd.com>
8376
8377         PR middle-end/43065
8378         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8379         on pointer type parameters.
8380
8381 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8382
8383         PR middle-end/42644
8384         PR middle-end/42130
8385         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8386         handle conversions from pointer to integers.
8387         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8388         induction variable, to be able to work with code generated by CLooG.
8389         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8390         (build_poly_scop): Bail out if we cannot codegen a loop.
8391
8392 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8393
8394         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8395         code generation with gloog_error.
8396
8397 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8398
8399         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8400         Call fold_convert on all the returned values.
8401         (expand_scalar_variables_expr): Pass to
8402         expand_scalar_variables_ssa_name the type of the resulting expression.
8403
8404 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8405
8406         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8407         ppl_min_for_le_pointset.
8408         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8409         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8410
8411 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8412
8413         * graphite-dependences.c (map_into_dep_poly): Removed.
8414         (dependence_polyhedron_1): Use combine_context_id_scat.
8415
8416 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8417
8418         * graphite-poly.h (struct poly_scattering): Add layout documentation.
8419         (struct poly_bb): Same.
8420         (combine_context_id_scat): New.
8421
8422 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8423
8424         PR middle-end/42326
8425         * sese.c (name_defined_in_loop_p): Return false for default
8426         definitions.
8427
8428 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8429
8430         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8431         and clean up the logic.
8432
8433 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8434
8435         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8436         early return.
8437
8438 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
8439
8440         * var-tracking.c (remove_cselib_value_chains): Define only for
8441         ENABLE_CHECKING.
8442         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8443         delete_slot_part, emit_notes_for_differences_1): Don't call
8444         remove_cselib_value_chains here.
8445         (set_slot_part, emit_notes_for_differences_2): Don't call
8446         add_cselib_value_chains here.
8447         (preserved_values): New vector.
8448         (preserve_value): New function.
8449         (add_uses, add_stores, vt_add_function_parameters): Use it
8450         instead of cselib_preserve_value.
8451         (changed_values_stack): New vector.
8452         (check_changed_vars_0): New function.
8453         (check_changed_vars_1, check_changed_vars_2): Use it.
8454         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8455         changed_values_stack VALUEs.
8456         (vt_emit_notes): For all preserved_values call
8457         add_cselib_value_chains.  If ENABLE_CHECKING call
8458         remove_cselib_value_chains before verifying value_chains is empty.
8459         Initialize and free changed_values_stack.
8460         (vt_initialize): Initialize preserved_values.
8461         (vt_finalize): Free preserved_values.
8462
8463 2010-03-08  Richard Guenther  <rguenther@suse.de>
8464
8465         PR tree-optimization/43269
8466         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8467         region detection.
8468
8469 2010-03-08  Martin Jambor  <mjambor@suse.cz>
8470
8471         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8472         (ipa_is_param_called): Removed.
8473         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8474         (ipa_print_node_params): Do not print the called flag.
8475         (ipa_write_node_info): Do not stream the called flag.
8476         (ipa_read_node_info): Likewise.
8477
8478 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
8479
8480         PR debug/43176
8481         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8482         * cselib.c (struct expand_value_data): Add dummy field.
8483         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8484         dummy to false.
8485         (cselib_dummy_expand_value_rtx_cb): New function.
8486         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8487         any rtl.
8488         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8489         * var-tracking.c: Include pointer-set.h.
8490         (variable): Change n_var_parts to char from int.  Add
8491         cur_loc_changed and in_changed_variables fields.
8492         (variable_canonicalize): Remove.
8493         (shared_var_p): New inline function.
8494         (unshare_variable): Maintain cur_loc_changed and
8495         in_changed_variables fields.  If var was in changed_variables,
8496         replace it there with new_var.  Just copy cur_loc instead of
8497         resetting it to something else.
8498         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
8499         (dataflow_set_union): Don't call variable_canonicalize.
8500         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8501         of their DEBUG_EXPR_TREE_DECLs.
8502         (canonicalize_loc_order_check): Verify that cur_loc is NULL
8503         and in_changed_variables and cur_loc_changed is false.
8504         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8505         and cur_loc_changed.  Don't update cur_loc here.
8506         (variable_merge_over_src): Don't call variable_canonicalize.
8507         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
8508         removing loc that is equal to cur_loc, clear cur_loc,
8509         set cur_loc_changed and ensure variable_was_changed is called.
8510         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
8511         compare pointers in cur_loc check, if it is equal to loc,
8512         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
8513         (variable_different_p): Remove compare_current_location argument,
8514         don't compare cur_loc.
8515         (dataflow_set_different_1): Adjust variable_different_p caller.
8516         (variable_was_changed): If dv had some var in changed_variables
8517         already, reset in_changed_variables flag for it and propagate
8518         cur_loc_changed over to the new variable.  On empty var
8519         always set cur_loc_changed.  Set in_changed_variables on whatever
8520         var is added to changed_variables.
8521         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8522         Use shared_var_p.  When removing loc that is equal to cur_loc,
8523         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
8524         end, don't set it to something else, just call variable_was_changed.
8525         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
8526         loc being removed, clear cur_loc and set cur_loc_changed.
8527         Set cur_loc_changed if all locations have been removed.
8528         (struct expand_loc_callback_data): New type.
8529         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8530         allocated.  Always create SUBREGs if simplify_subreg failed.
8531         Prefer to use cur_loc, when that fails and still in
8532         changed_variables (and seen first time) recompute it.  Set
8533         cur_loc_changed of variables which had to change cur_loc and
8534         compute elcd->cur_loc_changed if any of the subexpressions used
8535         had to change cur_loc.
8536         (vt_expand_loc): Adjust to pass arguments in
8537         expand_loc_callback_data structure.
8538         (vt_expand_loc_dummy): New function.
8539         (emitted_notes): New variable.
8540         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8541         that weren't used for any other decl in current
8542         emit_notes_for_changes call call vt_expand_loc_dummy to update
8543         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
8544         first loc_chain location if NULL before.  Always use just
8545         cur_loc instead of first loc_chain location.  When cur_loc_changed
8546         is false, when not --enable-checking=rtl just don't emit any note.
8547         When rtl checking, compute the note and assert it is the same
8548         as previous note.  Clear cur_loc_changed and in_changed_variables
8549         at the end before removing from changed_variables.
8550         (check_changed_vars_3): New function.
8551         (emit_notes_for_changes): Traverse changed_vars to call
8552         check_changed_vars_3 on each changed var.
8553         (emit_notes_for_differences_1): Clear cur_loc_changed and
8554         in_changed_variables.  Recompute cur_loc of new_var.
8555         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
8556         (vt_emit_notes): Initialize and destroy emitted_notes.
8557
8558 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
8559
8560         PR rtl-optimization/42220
8561         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
8562         Use verify_reg_tracked to determine if we should use OP_OUT rather
8563         than OP_INOUT.
8564         (build_def_use): If we see an in-out operand for a register that we
8565         know nothing about, treat is an output if possible, fail the block if
8566         not.
8567
8568 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
8569
8570         PR debug/42897
8571         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
8572         permanently.
8573
8574 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
8575
8576         PR debug/42897
8577         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
8578         uses of relevant DEFs that are dead outside the loop too.
8579
8580 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
8581
8582         * var-tracking.c (dataflow_set_merge): Swap src and src2.
8583         Reverted:
8584         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
8585         PR debug/41371
8586         * var-tracking.c (values_to_unmark): New variable.
8587         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8588         values_to_unmark vector.  Moved body to...
8589         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
8590         instead queue it into values_to_unmark vector.
8591         (vt_find_locations): Free values_to_unmark vector.
8592
8593 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
8594
8595         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
8596         (site.exp): Export them when plugins are enabled.
8597
8598 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
8599
8600         PR middle-end/42326
8601         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
8602         that contain scevs.
8603         (chrec_fold_multiply): Same.
8604
8605 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
8606
8607         PR c/43248
8608         * c-decl.c (build_compound_literal): Return early if init is
8609         an error_mark_node.
8610
8611 2010-03-04  Martin Jambor  <mjambor@suse.cz>
8612
8613         PR tree-optimization/43164
8614         PR tree-optimization/43191
8615         * tree-sra.c (type_consists_of_records_p): Reject records with
8616         zero-size bit-fields at the end.
8617
8618 2010-03-04  Mike Stump  <mikestump@comcast.net>
8619
8620         * Makefile.in (TAGS): Remove *.y.
8621
8622 2010-03-04  Richard Guenther  <rguenther@suse.de>
8623
8624         PR tree-optimization/40761
8625         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
8626         in reverse order.
8627         (my_rev_post_order_compute): New function.
8628         (init_pre): Call it.
8629
8630 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
8631
8632         PR middle-end/43209
8633         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
8634         decrease the cost of an IV candidate when the cost is infinite.
8635
8636 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8637
8638         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
8639         Use '3DNow!' for the extension of that name, ensure normal space
8640         after the string.
8641         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
8642
8643 2010-03-03  Jeff Law  <law@redhat.com>
8644
8645         * PR middle-end/32693
8646         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
8647         than gen_rtx_SUBREG.
8648         (extract_bit_field_1): Likewise.
8649
8650 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
8651
8652         * doc/sourcebuild.texi (Test directives): Document that arguments
8653         include-opts and exclude-opts are now optional for dg-skip-if,
8654         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
8655
8656 2010-03-03  Jason Merrill  <jason@redhat.com>
8657
8658         PR c++/12909
8659         * cgraph.h (varpool_node): Add extra_name field.
8660         * varpool.c (varpool_extra_name_alias): New.
8661         (varpool_assemble_decl): Emit extra name aliases.
8662         (varpool_mark_needed_node): Look past an extra name alias.
8663         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
8664         * lto-streamer-in.c (lto_input_tree): Read it.
8665         * lto-streamer-out.c (output_unreferenced_globals): Write it.
8666
8667 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
8668
8669         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
8670         (sparc*-*-solaris2*): ...this.
8671
8672 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
8673
8674         PR debug/43229
8675         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
8676         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
8677         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
8678         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
8679
8680         PR debug/43237
8681         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
8682         fallthrough to default handling, just with want_address 0 instead of 2.
8683         For single element lists, add_AT_loc directly, otherwise create an
8684         artificial variable DIE and stick location list to it.
8685
8686         PR debug/43177
8687         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
8688         (VAL_EXPR_HAS_REVERSE): Define.
8689         (reverse_op): New function.
8690         (add_stores): For reversible operations add an extra MO_VAL_USE.
8691
8692 2010-03-02  Jason Merrill  <jason@redhat.com>
8693
8694         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
8695
8696 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
8697
8698         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
8699         (sparc64-*-linux*): Likewise.
8700         (sparc64-*-solaris2*): Include assembler files before linker ones.
8701         (sparc-*-solaris2*): Simplify and reorder to match previous case.
8702         * config/sparc/gas.h: Delete.
8703         * config/sparc/sol2-64.h: Add copyright notice.
8704         * config/sparc/sol2-gas-bi.h: Likewise.
8705         * config/sparc/sol2-gld.h: Likewise.
8706         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
8707         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
8708         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
8709         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
8710         (sparc_elf_asm_named_section): Rename into...
8711         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
8712
8713 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
8714
8715         * config/alpha/alpha.c (override_options): Fix -mtune error message.
8716
8717 2010-03-02  Jeff Law  <law@redhat.com>
8718
8719         PR middle-end/42431
8720         * reload1.c (rtx_p, substitute_stack): Declare.
8721         (substitute): Record addresses of changed rtxs.
8722         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
8723         Restore the original rtx when complete.
8724         (reload): Free subsitute_stack when complete.
8725
8726 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
8727
8728         * doc/gccint.texi (menu): Add Testsuites as a chapter.
8729         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
8730         new chapter.
8731         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
8732         LTO Testing, gcov Testing, profopt Testing, compat Testing,
8733         Torture Tests): Change from subsection to section.
8734
8735 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
8736             Steven Bosscher  <steven@gcc.gnu.org>
8737
8738         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
8739         instead of bb.
8740
8741 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
8742
8743         PR middle-end/42640
8744         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
8745         the assignment from the new induction variable to the assignment
8746         of the value from the original loop PHI function.
8747
8748 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
8749             Daniel Jacobowitz  <dan@codesourcery.com>
8750
8751         * doc/sourcebuild.texi (Test directives): Clarify options to
8752         dg-skip-if.
8753
8754 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8755
8756         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
8757         Disable cfi directives unless GCC and gas agree on using read-only
8758         .eh_frame sections for 64-bit.
8759         * configure: Regenerate.
8760
8761 2010-03-01  Richard Guenther  <rguenther@suse.de>
8762
8763         PR tree-optimization/43220
8764         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
8765         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
8766
8767 2010-03-01  Richard Guenther  <rguenther@suse.de>
8768             Martin Jambor  <mjambor@suse.cz>
8769
8770         PR middle-end/41250
8771         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
8772         gimplified parameters.
8773
8774 2010-03-01  Christian Bruel  <christian.bruel@st.com>
8775
8776         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
8777
8778 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
8779
8780         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
8781
8782 2010-03-01  Richard Guenther  <rguenther@suse.de>
8783
8784         PR middle-end/43213
8785         * expr.c (expand_assignment): Use the alias-oracle to tell
8786         if the rhs aliases the result decl.
8787
8788 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8789
8790         PR pch/14940
8791         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
8792         to sol_gt_pch_get_address.
8793         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
8794         64-bit, SPARC and x86.
8795         (sol_gt_pch_get_address): New function.
8796
8797 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
8798
8799         * toplev.h (inform_n, error_n): Declare.
8800         * diagnostic.c (inform_n, error_n): New function.
8801
8802 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
8803
8804         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
8805         has no rtl yet when processing local_decls, queue it and recheck
8806         if deferred stack allocation hasn't assigned it rtl.
8807
8808 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8809
8810         * config/sh/sh.c (unspec_bbr_uid): New.
8811         (gen_block_redirect): Use it instead of INSN_UID.
8812         (gen_far_branch): Likewise.
8813
8814 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
8815
8816         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
8817         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
8818
8819 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8820
8821         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
8822         (Warning Options): -Wno-conversion-null is valid for
8823         Objective-C++ as well.
8824         * doc/tm.texi (Named Address Spaces): Likewise.
8825         * doc/plugins.texi (Plugins): Replace TABs with spaces.
8826         * doc/tree-ssa.texi (Tree SSA): Likewise.
8827
8828 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
8829
8830         PR bootstrap/43202
8831         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
8832         by default.  Don't set the default arch for
8833         i[34567]86-*-darwin*|x86_64-*-darwin*.
8834
8835 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
8836
8837         PR bootstrap/43202
8838         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
8839         default.  Set the default 32bit/64bit archs with $with_arch
8840         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
8841
8842 2010-02-27  Richard Guenther  <rguenther@suse.de>
8843
8844         PR tree-optimization/43186
8845         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
8846         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
8847         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
8848         unroller iterations.
8849
8850 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
8851
8852         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
8853         required and i[34567]86-*-* targets don't support 64bit ISA.
8854
8855 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
8856
8857         PR ada/43096
8858         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8859         the same alias set.
8860
8861 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
8862
8863         * config.gcc: Set the default arch at least to Prescott for
8864         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
8865         if SSE math is enabled.
8866
8867 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8868
8869         * diagnostic.c (diagnostic_initialize): Update.
8870         (diagnostic_report_diagnostic): Test inhibit_notes_p for
8871         informative notes.
8872         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
8873         (diagnostic_inhibit_notes): New.
8874         * toplev.c (process_options): inhibit notes with -fcompare-debug.
8875
8876 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8877
8878         PR c/20631
8879         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
8880         * doc/standards.texi: Likewise.
8881         * doc/extend.texi: Likewise.
8882         * doc/trouble.texi: Likewise.
8883         * doc/cppopts.texi: Likewise.
8884         * doc/install.texi: Likewise.
8885         * c.opt (std=c90,std=gnu90): New options.
8886         * c-opts.c (c_common_handle_option): Handle them.
8887
8888 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8889
8890         PR c/24577
8891         * c-decl.c (undeclared_variable): Use an informative note.
8892
8893 2010-02-26  Richard Guenther  <rguenther@suse.de>
8894
8895         PR tree-optimization/43186
8896         * gimple.h (gimple_fold): Remove.
8897         * gimple.c (gimple_fold): Remove.  Inline into single user ...
8898         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
8899         Try harder for conditions.
8900
8901 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
8902
8903         PR debug/43190
8904         * function.c (used_types_insert): Don't skip through named pointer
8905         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
8906         and it is different from the main variant's type.
8907
8908 2010-02-26  Nick Clifton  <nickc@redhat.com>
8909
8910         * config/rx/rx.md (sminsi3): Remove bogus alternative.
8911
8912 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
8913
8914         * config.gcc: Support --with-fpmath=sse for x86.
8915
8916         * config/i386/ssemath.h: New.
8917
8918         * doc/install.texi (--with-fpmath=sse): Documented.
8919
8920 2010-02-26  Richard Guenther  <rguenther@suse.de>
8921
8922         PR tree-optimization/43188
8923         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
8924         vector types of over-aligned element type.
8925
8926 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
8927
8928         PR target/43175
8929         * config/i386/i386.c (expand_vec_perm_blend): Use correct
8930         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
8931
8932 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
8933
8934         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
8935
8936 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
8937
8938         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
8939         * var-tracking.c: Include diagnostic.h.
8940         (debug_dv): New function.
8941         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
8942
8943         PR debug/43160
8944         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
8945         (add_value_chain, add_value_chains, remove_value_chain,
8946         remove_value_chains): Handle DEBUG_EXPRs.
8947         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
8948
8949         PR debug/43161
8950         * regcprop.c (struct queued_debug_insn_change): New type.
8951         (struct value_data_entry): Add debug_insn_changes field.
8952         (struct value_data): Add n_debug_insn_changes field.
8953         (debug_insn_changes_pool): New variable.
8954         (free_debug_insn_changes, apply_debug_insn_changes,
8955         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
8956         (kill_value_one_regno): Call free_debug_insn_changes if needed.
8957         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
8958         fields.
8959         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
8960         changes for them.
8961         (copyprop_hardreg_forward_1): Don't call apply_change_group for
8962         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
8963         changes, call cprop_find_used_regs via note_stores.
8964         (copyprop_hardreg_forward): When copying vd from predecessor
8965         which has any queued DEBUG_INSN changes, make sure the pointers are
8966         cleared.  At the end call df_analyze and then if there are any
8967         DEBUG_INSN changes queued at the end of some basic block for still
8968         live registers, apply them.
8969         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
8970
8971 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
8972
8973         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
8974         (arm*-*-*): Ditto.
8975
8976 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
8977
8978         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
8979         targets.  Set the default with_cpu/with_arch from arch/cpu.
8980         Allow x86-64 and native for with_cpu/with_arch.
8981
8982 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
8983
8984         * ebitmap.c: Change calls to verify_popcount with calls to
8985         sbitmap_verify_popcount.
8986         (ebitmap_clear_bit): Fixed map->cacheindex test and
8987         map>cache update when bit clearing results in an empty
8988         element.
8989
8990 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
8991
8992         PR target/43154
8993         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
8994         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
8995         and support both V2DF and V2DI modes.
8996         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
8997         support both V2DF and V2DI modes.
8998         (general): Delete trailing whitespace from a few patterns.
8999
9000         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9001         V2DF/V2DI interleave high/low builtins.
9002
9003         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9004         new VSX builtins.
9005
9006         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9007         interleave high/low functions.
9008
9009 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9010
9011         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9012         #pragma extern_prefix.
9013
9014 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
9015
9016         PR debug/43166
9017         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9018         BLKmode, assert op0 is a MEM and just adjust its mode.
9019
9020         PR debug/43165
9021         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9022         if bitpos isn't multiple of mode's bitsize.
9023
9024 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9025
9026         * c.opt (-ftemplate-depth=): New.
9027         (-ftemplate-depth-): Deprecate.
9028         * optc-gen.awk: Handle -ftemplate-depth=.
9029         * opth-gen.awk: Likewise.
9030         * c-opts.c (c_common_handle_option): Likewise.
9031         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9032
9033 2010-02-24  Jason Merrill  <jason@redhat.com>
9034
9035         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9036
9037 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9038
9039         * cfg.c (alloc_aux_for_block): Remove inline.
9040         (alloc_aux_for_edge): Likewise.
9041
9042 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9043
9044         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9045
9046 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9047
9048         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9049         * config/i386/sol2-gas.h: New file.
9050         * config.gcc (i[34567]86-*-solaris2*): Use it.
9051
9052 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9053
9054         PR c/43128
9055         * c-typeck.c (ep_convert_and_check): New.
9056         (build_conditional_expr): Use it.
9057         (build_binary_op): Likewise.
9058
9059 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
9060
9061         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9062
9063         PR debug/43150
9064         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9065         bounds even for -O+.
9066         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9067         expr needs to have DECL_NAME set.
9068
9069 2010-02-24  Nick Clifton  <nickc@redhat.com>
9070
9071         * config/mep/mep.c: Include gimple.h.
9072         (mep_function_uses_sp): Delete unused function.
9073         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9074         parameters.  Use unsigned integers to count args.  Return a
9075         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
9076
9077 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9078
9079         PR target/43107
9080         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9081         greater or equal to nelt instead of 2 * nelt.
9082         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9083         with nelt - 1.
9084
9085 2010-02-23  Jason Merrill  <jason@redhat.com>
9086
9087         PR debug/42800
9088         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9089         in cfun->local_decls even if they have register types.
9090
9091         PR c++/42837
9092         * stor-layout.c (place_field): Don't warn about unnecessary
9093         DECL_PACKED if the type is packed.
9094
9095 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9096
9097         PR target/43139
9098         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9099         GOTOFF relocs, even when the base reg isn't pic pointer.
9100
9101 2010-02-23  Michael Matz  <matz@suse.de>
9102
9103         PR debug/43077
9104         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9105         (expand_gimple_basic_block): Generate and use debug temps if there
9106         are debug uses left after the last real use of TERed ssa names.
9107         Unlink debug immediate uses when they are expanded.
9108
9109 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9110
9111         PR 43123
9112         * config/i386/i386.c (override_options): Reorganise to provide
9113         better error messages.
9114
9115 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9116
9117         PR middle-end/43083
9118         * graphite-scop-detection.c (create_single_exit_edge): Move
9119         the call to find_single_exit_edge to....
9120         (create_sese_edges): ...here.  Don't handle multiple edges
9121         exiting the function.
9122         (build_graphite_scops): Don't handle multiple edges
9123         exiting the function.
9124
9125 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9126
9127         PR middle-end/43097
9128         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9129         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9130
9131 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9132
9133         PR middle-end/43026
9134         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9135
9136 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9137
9138         PR c++/43126
9139         * c-typeck.c (convert_arguments): Print declaration location.
9140         * c-common.c (validate_nargs): Rename as
9141         builtin_function_validate_nargs.
9142         (check_builtin_function_arguments): Update.
9143
9144 2010-02-22  Richard Guenther  <rguenther@suse.de>
9145
9146         PR lto/43045
9147         * tree-inline.c (declare_return_variable): Use the type of
9148         the call stmt lhs if available.
9149
9150 2010-02-22  Duncan Sands  <baldrick@free.fr>
9151
9152         * passes.c (register_pass): Always consider all pass lists when
9153         ref_pass_instance_number is zero.
9154
9155 2010-02-22  Richard Guenther  <rguenther@suse.de>
9156
9157         PR tree-optimization/42749
9158         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9159         parameter.  Do arithmetic in the original type.
9160         (update_accumulator_with_ops): Likewise.
9161         (adjust_accumulator_values): Adjust.
9162
9163 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9164
9165         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9166         (QI to BLKmode splitter): New splitter.
9167
9168 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
9169
9170         * config/i386/i386.c (initial_ix86_tune_features): Turn on
9171         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9172
9173 2010-02-22  Richard Guenther  <rguenther@suse.de>
9174
9175         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9176
9177 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
9178
9179         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9180         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9181         ($(T)crti.o, $(T)crtn.o): Remove rules.
9182
9183 2010-02-21  Tobias Burnus  <burnus@net-b.de>
9184
9185         PR fortran/35259
9186         * doc/invoke.texi (-fassociative-math): Document that this
9187         option is automatically enabled for Fortran.
9188
9189 2010-02-20  David S. Miller  <davem@davemloft.net>
9190
9191         * configure.ac: Test if linker and assembler properly support
9192         GOTDATA_OP relocations.
9193         * configure: Rebuild.
9194         * config.in: Likewise.
9195         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9196         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9197         (movsi_high_pic): Likewise.
9198         (movdi_lo_sum_pic): Likewise.
9199         (movdi_high_pic): Likewise.
9200         (movsi_pic_gotdata_op): New pattern.
9201         (movdi_pic_gotdata_op): Likewise.
9202         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9203         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9204
9205 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
9206
9207         PR target/43067
9208         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9209         attribute to ssemul.
9210         (xop_mulv2div2di3_high): Ditto.
9211
9212 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9213
9214         PR c++/35669
9215         * c.opt (Wconversion-null): New option.
9216         * doc/invoke.texi (Wconversion-null): Document.
9217
9218 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9219
9220         * common.opt (Wlarger-than-): Add Undocumented.
9221
9222 2010-02-19  Mike Stump  <mikestump@comcast.net>
9223
9224         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9225
9226 2010-02-19  Jason Merrill  <jason@redhat.com>
9227
9228         PR target/40332
9229         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9230         * configure: Likewise.
9231
9232 2010-02-20  Alan Modra  <amodra@gmail.com>
9233
9234         PR middle-end/42344
9235         * cgraph.h (cgraph_make_decl_local): Declare.
9236         * cgraph.c (cgraph_make_decl_local): New function.
9237         (cgraph_make_node_local): Use it.
9238         * cgraphunit.c (cgraph_function_versioning): Likewise.
9239         * ipa.c (function_and_variable_visibility): Likewise.
9240
9241 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9242
9243         PR bootstrap/43121
9244         * except.c (sjlj_emit_function_enter): Don't call
9245         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9246         directly.
9247         * rtl.h (add_reg_br_prob_note): Remove prototype.
9248
9249 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9250
9251         PR 41779
9252         * c-common.c (conversion_warning): Remove widening conversions
9253         before checking the conversion of integers to reals.
9254
9255 2010-02-19  Mike Stump  <mikestump@comcast.net>
9256
9257         PR middle-end/43125
9258         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9259
9260         PR objc/43061
9261         * cgraphunit.c (process_function_and_variable_attributes): Check
9262         DECL_PRESERVE_P instead of looking up attribute "used".
9263         * ipa-pure-const.c (check_decl): Likewise.
9264         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9265         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9266         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9267         instead of attribute "used".
9268         * config/sol2-c.c (solaris_pragma_init): Likewise.
9269         (solaris_pragma_fini): Likewise.
9270
9271 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9272
9273         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9274         Use XCNEW instead of xcalloc.
9275         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9276         XNEW instead of xmalloc.
9277         (get_fields): Use XNEWVEC instead of xmalloc.
9278
9279         PR debug/43084
9280         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9281         populate vars array.
9282         (create_new_general_access): For debug stmts just reset value.
9283         (get_stmt_accesses): For accesses within debug stmts just record them
9284         using add_access_to_acc_sites instead of preventing the peeling or
9285         counting them as accesses.
9286
9287         PR middle-end/42233
9288         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9289
9290 2010-02-19  Richard Guenther  <rguenther@suse.de>
9291
9292         PR tree-optimization/42916
9293         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9294         instructions.
9295
9296 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9297
9298         * configure.ac: Replace all uses of changequote in macro arguments
9299         with proper quoting.
9300
9301 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9302
9303         PR middle-end/42233
9304         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9305
9306 2010-02-19  Richard Guenther  <rguenther@suse.de>
9307
9308         PR tree-optimization/42944
9309         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9310         test for aliasing with errno.
9311
9312 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9313
9314         PR middle-end/42233
9315         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9316         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9317         * dojump.c: Include output.h.
9318         (inv): New inline function.
9319         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9320         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9321         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9322         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9323         argument, pass it down to other calls.
9324         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
9325         add REG_BR_PROB note to the conditional jump.
9326         * cfgexpand.c (add_reg_br_prob_note): Removed.
9327         (expand_gimple_cond): Don't call it, add the probability
9328         as last argument to jumpif_1/jumpifnot_1.
9329         * Makefile.in (dojump.o): Depend on output.h.
9330         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9331         callers.
9332         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9333         * stmt.c (do_jump_if_equal): Likewise.
9334         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9335         * loop-unswitch.c (compare_and_jump_seq): Likewise.
9336         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9337         Likewise.
9338         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9339         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9340         jumpifnot_1 callers.
9341         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9342         callers.
9343         (store_expr): Adjust jumpifnot caller.
9344         (store_constructor): Adjust jumpif caller.
9345
9346         PR middle-end/42233
9347         * gimplify.c (gimple_boolify): For __builtin_expect call
9348         gimple_boolify also on its first argument.
9349
9350 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
9351
9352         * configure.ac (gnu-unique-object): Wrap regexps using [] in
9353         changequote block.
9354         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
9355         * configure: Regenerated.
9356
9357 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9358
9359         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9360         lang_hooks.types_compatible_p instead of comptypes.
9361
9362 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
9363
9364         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9365         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9366         if __prefer_thumb__ is defined.
9367
9368 2010-02-18  Martin Jambor  <mjambor@suse.cz>
9369
9370         PR tree-optimization/43066
9371         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9372         array with zero-sized element type.
9373
9374 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
9375
9376         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9377         rtx, allocate struct var_loc_node here and return it to the
9378         caller, and only if it is actually needed.
9379         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9380         move it earlier and return immediately if it returns NULL.
9381
9382 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
9383
9384         * config/sparc/gas.h: New file.  Restore
9385         TARGET_ASM_NAMED_SECTION to its ELF default.
9386         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9387         check !HAVE_GNU_AS.
9388         * config/sparc/sparc.c (sparc_elf_asm_named_section):
9389         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
9390         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9391         after sparc/sysv4.h.
9392
9393 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
9394
9395         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9396
9397 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
9398
9399         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9400         patterns from predicated pattern.
9401
9402 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
9403
9404         PR target/43103
9405         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9406         for insn mnemonic suffix.
9407
9408 2010-02-17  Richard Guenther  <rguenther@suse.de>
9409
9410         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9411         to loop PHI nodes.
9412
9413 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
9414
9415         PR debug/42918
9416         * caller-save.c (save_call_clobbered_regs): If BB ends with
9417         a DEBUG_INSN, move any notes in between last real insn and the last
9418         DEBUG_INSN after the last DEBUG_INSN.
9419
9420 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9421
9422         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9423         Fix return type.  Fix argument type.  Explain meaning of return value.
9424
9425 2010-02-16  Richard Guenther  <rguenther@suse.de>
9426
9427         PR tree-optimization/41043
9428         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
9429         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9430         statements ...
9431         (vrp_visit_phi_node): ... but only for loop PHI nodes.
9432
9433 2010-02-16  Ira Rosen  <irar@il.ibm.com>
9434
9435         PR tree-optimization/43074
9436         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9437         * tree-vect-loop.c (vect_analyze_loop_operations): Add
9438         vectorizable cycles in hybrid SLP check.
9439         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9440
9441 2010-02-16  Richard Guenther  <rguenther@suse.de>
9442
9443         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9444         (true_dependence): If memrefs_conflict_p computes must-alias
9445         trust it.  Move TBAA check after offset-based disambiguation.
9446         (canon_true_dependence): Likewise.
9447
9448 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
9449
9450         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9451         * doc/invoke.texi: Document it.
9452         * var-tracking.c: Include toplev.h and params.h.
9453         (vt_find_locations): Return bool indicating success.  Compute
9454         hash sizes unconditionally.  Check new parameter, report.
9455         (variable_tracking_main_1): Check vt_find_locations results and
9456         retry.  Renamed from...
9457         (variable_tracking_main): ... this.  New wrapper to preserve
9458         flag_var_tracking_assignments.
9459         * Makefile.in (var-tracking.o): Adjust dependencies.
9460
9461 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
9462             Jakub Jelinek <jakub@redhat.com>
9463
9464         PR target/42854
9465         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9466         if weak_import attribute is present.
9467         * config/darwin.c (machopic_select_section): Likewise.
9468
9469 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
9470
9471         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9472         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9473         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9474         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9475
9476         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
9477         types.
9478
9479         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9480         Fix argument types.
9481
9482         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9483         Rewrite text to refer to the names.
9484
9485 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
9486
9487         * config/i386/i386-builtin-types.def
9488         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9489         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9490         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9491         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9492         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9493         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9494         IX86_BUILTIN_VPERMIL2PS256.
9495         (MULTI_ARG_4_DF2_DI_I): Defined.
9496         (MULTI_ARG_4_DF2_DI_I1): Defined.
9497         (MULTI_ARG_4_SF2_SI_I): Defined.
9498         (MULTI_ARG_4_SF2_SI_I1): Defined.
9499         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9500         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9501         __builtin_ia32_vpermil2ps256.
9502         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9503         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9504         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
9505         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9506         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9507         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
9508         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9509         CODE_FOR_xop_vpermil2v8sf3.
9510         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9511         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9512         * config/i386/xopintrin.h (_mm_permute2_pd): New.
9513         (_mm256_permute2_pd): New.
9514         (_mm_permute2_ps): New.
9515         (_mm256_permute2_ps): New.
9516
9517 2010-02-15  Nick Clifton  <nickc@redhat.com>
9518
9519         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9520         boolean parameters.  Use emit_jump_insn when emitting a pop
9521         instruction containing a return insn.
9522         (push): Use 'true' rather than '1' as second parameter to F.
9523         (h8300_expand_prologue): Likewise.
9524         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9525         (h8300_expand_epilogue): Likewise.
9526
9527 2010-02-15  Richard Guenther  <rguenther@suse.de>
9528
9529         PR middle-end/43068
9530         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9531         if that is zero.
9532
9533 2010-02-15  Nick Clifton  <nickc@redhat.com>
9534
9535         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9536         delta.
9537
9538 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
9539
9540         * intl.c (fake_ngettext): New function.
9541         * intl.h (fake_ngettext): Declare.
9542         (ngettext): Define macro.
9543         * collect2.c (notice_translated): New function.
9544         (main): Use notice_translated and ngettext.
9545         * collect2.h (notice_translated): Declare.
9546
9547 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
9548
9549         * reorg.c (delete_computation): Comment fixes.
9550         * caller-save.c (setup_save_areas): Idem.
9551         * sel-sched-dump.c (dump_lv_set): Idem.
9552         * rtl.def: Idem.
9553
9554 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9555
9556         * config/s390/s390.c (s390_sched_init): New function.
9557         (TARGET_SCHED_INIT): Target hook defined.
9558
9559 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
9560             Jack Howarth  <howarth@bromo.med.uc.edu>
9561             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9562
9563         PR target/42982
9564         Partial revert of unintended change in fix for PR41605.
9565         * config/darwin.h: Fix typo.
9566         * config/darwin9.h: Same.
9567
9568 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
9569
9570         * c-pch.c (pch_init): Clear v.
9571
9572 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9573
9574         PR middle-end/42930
9575         * graphite-scop-detection.c (graphite_can_represent_scev): Call
9576         graphite_can_represent_init for MULT_EXPR.
9577
9578 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9579
9580         PR middle-end/42914
9581         PR middle-end/42530
9582         * graphite-sese-to-poly.c (remove_phi): New.
9583         (translate_scalar_reduction_to_array): Call remove_phi.
9584
9585 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9586
9587         PR middle-end/42771
9588         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
9589         * graphite-clast-to-gimple.h (gloog): Update declaration.
9590         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
9591         * graphite-poly.h (struct poly_bb): Add missing comments.
9592         (struct scop): Add poly_scop_p field.
9593         (POLY_SCOP_P): New.
9594         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
9595         * graphite.c (graphite_transform_loops): Build the polyhedral
9596         representation for each scop before code generation.
9597         * sese.c (rename_variables_in_operand): Removed.
9598         (rename_variables_in_expr): Return the renamed expression.
9599         (rename_sese_parameters): New.
9600         * sese.h (rename_sese_parameters): Declared.
9601
9602 2010-02-11  Richard Guenther  <rguenther@suse.de>
9603
9604         PR tree-optimization/42998
9605         * tree-ssa-pre.c (create_expression_by_pieces): Treat
9606         POINTER_PLUS_EXPR properly.
9607
9608 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
9609             Changpeng Fang  <changpeng.fang@amd.com>
9610
9611         PR middle-end/40886
9612         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
9613         the cost of an IV candidate when the IV is used in a test against zero.
9614
9615         * gcc.dg/tree-ssa/ivopts-3.c: New.
9616
9617 2010-02-11  Richard Guenther  <rguenther@suse.de>
9618
9619         PR lto/41664
9620         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
9621         pointer-vs-decl case by swapping refs.  Handle some cases
9622         of pointer-vs-decl disambiguations more conservatively.
9623         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
9624         to false after expanding.
9625
9626 2010-02-11  Richard Guenther  <rguenther@suse.de>
9627
9628         PR driver/43021
9629         * gcc.c (process_command): Handle LTO file@offset case more
9630         appropriately.
9631
9632 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
9633
9634         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
9635         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
9636         of DEBUG_INSNs.
9637         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
9638
9639         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
9640         if MEM's mode size isn't DWARF2_ADDR_SIZE.
9641         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
9642         Optimize eq/ne comparisons when both arguments are known to be
9643         zero-extended.
9644         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
9645         Don't mask operands unnecessarily if they are known to be already
9646         zero-extended.
9647
9648 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
9649
9650         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
9651         instead of loop.
9652
9653 2010-02-10  Richard Guenther  <rguenther@suse.de>
9654
9655         PR tree-optimization/43017
9656         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
9657         for wrapping signed arithmetic.
9658
9659 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
9660
9661         PR debug/43010
9662         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
9663         if no debug info should be emitted for it.
9664
9665 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
9666
9667         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
9668         note when flag_exceptions is set.
9669
9670 2010-02-10  Duncan Sands  <baldrick@free.fr>
9671
9672         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
9673
9674 2010-02-10  Richard Guenther  <rguenther@suse.de>
9675
9676         PR c/43007
9677         * tree.c (get_unwidened): Handle constants.
9678         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
9679
9680 2010-02-10  Martin Jambor  <mjambor@suse.cz>
9681
9682         PR lto/42985
9683         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
9684         check for variable argument counts independently.
9685
9686 2010-02-10  Christian Bruel  <christian.bruel@st.com>
9687
9688         PR target/42841
9689         * config/sh/sh.c (find_barrier): Increase length for non delayed
9690         conditional branches.
9691
9692 2010-02-10  Christian Bruel  <christian.bruel@st.com>
9693
9694         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
9695
9696 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
9697
9698         * builtins.c (set_builtin_user_assembler_name): Also handle
9699         ffs if int is smaller than word.
9700
9701 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
9702
9703         PR middle-end/42973
9704         * ira-conflicts.c (get_dup): Remove.
9705         (process_reg_shuffles): Add new parameter.  Use it as an
9706         additional guard for copy generation.
9707         (add_insn_allocno_copies): Rewrite.
9708
9709 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
9710
9711         * common.opt (fsched2-use-traces): Preserved for backward
9712         compatibility.
9713         * doc/invoke.texi: Remove the documentation about option
9714         -fsched2-use-traces.
9715         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
9716         flag_sched2_use_traces.
9717         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
9718         the backward compatibility flag section.
9719
9720 2010-02-09  Richard Guenther  <rguenther@suse.de>
9721
9722         PR tree-optimization/43008
9723         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
9724         make HEAP variables initialized from global memory if they
9725         are not known builtin functions.
9726         (find_func_aliases): Adjust.
9727
9728 2010-02-09  Richard Guenther  <rguenther@suse.de>
9729
9730         PR tree-optimization/43000
9731         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
9732         arithmetic manually.
9733
9734 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
9735
9736         PR tree-optimization/42931
9737         * tree-loop-linear.c (try_interchange_loops): Don't call
9738         double_int_mul if estimated_loop_iterations failed.
9739
9740 2010-02-08  Martin Jambor  <mjambor@suse.cz>
9741
9742         PR middle-end/42898
9743         * tree-sra.c (build_accesses_from_assign): Do not mark in
9744         should_scalarize_away_bitmap if stmt has volatile ops.
9745         (sra_modify_assign): Do not process assigns piecemeal if if stmt
9746         has volatile ops.
9747
9748 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
9749
9750         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
9751
9752 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
9753
9754         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
9755         before the pattern.
9756
9757 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
9758
9759         PR middle-end/42946
9760         * df-core.c (df_finish_pass): Change type of saved_flags to int.
9761
9762 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
9763
9764         PR middle-end/42988
9765         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
9766         to unknown_dependence.
9767         (graphite_legal_transform_dr): Handle the unknown_dependence.
9768         (graphite_carried_dependence_level_k): Same.
9769
9770 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
9771
9772         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
9773
9774 2010-02-07  Richard Guenther  <rguenther@suse.de>
9775
9776         PR middle-end/42991
9777         * expr.c (get_inner_reference): Always initialize *pbitsize.
9778
9779 2010-02-07  Richard Guenther  <rguenther@suse.de>
9780
9781         PR middle-end/42956
9782         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
9783         new ARRAY_REFs on variable size element or minimal index arrays.
9784         Complete.
9785         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
9786         gimple_fold_indirect_ref.
9787
9788 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
9789
9790         PR target/42957
9791         * arm.c (arm_override_options): Just return if the user has specified
9792         an invalid fpu name.
9793
9794 2010-02-03  Jason Merrill  <jason@redhat.com>
9795
9796         PR c++/42870
9797         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
9798         i386_pe_maybe_record_exported_symbol.
9799
9800 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
9801
9802         PR target/42924
9803         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9804         (pa_delegitimize_address): New function.
9805
9806 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
9807
9808         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
9809         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
9810
9811 2010-02-05  Richard Guenther  <rguenther@suse.de>
9812
9813         PR lto/42762
9814         * lto-streamer-in.c (get_resolution): Deal with references
9815         to undefined functions.
9816
9817 2010-02-05  Richard Guenther  <rguenther@suse.de>
9818
9819         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
9820         (fold_const_aggregate_ref): Likewise.
9821         (ccp_fold_stmt): Substitute loads.
9822         (maybe_fold_reference): Verify types before substituting.
9823         Unshare properly.
9824         (fold_gimple_assign): Unshare properly.
9825         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
9826
9827 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
9828
9829         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
9830         for rs6000_gen_cell_microcode.
9831
9832 2010-02-04  Richard Guenther  <rguenther@suse.de>
9833
9834         PR rtl-optimization/42952
9835         * dse.c (const_or_frame_p): Remove MEM handling.
9836
9837 2010-02-04  Nick Clifton  <nickc@redhat.com>
9838
9839         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9840         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9841         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
9842         (mn10300_asm_output_mi_thunk): New function.
9843         (mn10300_can_output_mu_thunk): New function.
9844         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
9845         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
9846         (FUNCTION_ARG): Delete incorrect comment.
9847
9848 2010-02-03  Jason Merrill  <jason@redhat.com>
9849
9850         PR c++/40138
9851         * fold-const.c (operand_equal_p): Handle erroneous types.
9852
9853 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9854
9855         * config/h8300/h8300.md (can_delay): Fix attibute condition.
9856
9857 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
9858
9859         PR rtl-optimization/42941
9860         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
9861         of xmalloc.
9862
9863 2010-02-03  Jason Merrill  <jason@redhat.com>
9864
9865         PR c++/35652
9866         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
9867
9868 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
9869
9870         PR debug/42896
9871         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
9872         (cselib_reset_table): Renamed from...
9873         (cselib_reset_table_with_next_value): ... this.
9874         (cselib_get_next_uid): Renamed from...
9875         (cselib_get_next_unknown_value): ... this.
9876         * cselib.c (next_uid): Renamed from...
9877         (next_unknown_value): ... this.
9878         (cselib_clear_table): Adjust.
9879         (cselib_reset_table): Adjust.  Renamed from...
9880         (cselib_reset_table_with_next_value): ... this.
9881         (cselib_get_next_uid): Adjust.  Renamed from...
9882         (cselib_get_next_unknown_value): ... this.
9883         (get_value_hash): Use hash.
9884         (cselib_hash_rtx): Likewise.
9885         (new_cselib_val): Adjust.  Set and dump uid.
9886         (cselib_lookup_mem): Pass next_uid as hash.
9887         (cselib_subst_to_values): Likewise.
9888         (cselib_log_lookup): Dump uid.
9889         (cselib_lookup): Pass next_uid as hash.  Adjust.
9890         (cselib_process_insn): Adjust.
9891         (cselib_init): Initialize next_uid.
9892         (cselib_finish): Adjust.
9893         (dump_cselib_table): Likewise.
9894         * dse.c (canon_address): Dump value uid.
9895         * print-rtl.c (print_rtx): Print value uid.
9896         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
9897         (dvuid): New type.
9898         (dv_uid): New function, sort of renamed from...
9899         (dv_htab_hash): ... this, reimplemented in terms of it and...
9900         (dv_uid2hash): ... this.  New.
9901         (variable_htab_eq): Drop excess assertions.
9902         (tie_break_pointers): Removed.
9903         (canon_value_cmp): Compare uids.
9904         (variable_post_merge_New_vals): Print uids.
9905         (vt_add_function_parameters): Adjust.
9906         (vt_initialize): Reset table.  Adjust.
9907
9908 2010-02-03  Richard Guenther  <rguenther@suse.de>
9909
9910         PR tree-optimization/42944
9911         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
9912         (call_may_clobber_ref_p_1): Likewise.  Properly handle
9913         malloc and calloc clobbering errno.
9914
9915 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
9916
9917         * doc/invoke.texi: Fix name of sched1 dump.
9918
9919         * opts.c (decode_options): Set flag_tree_switch_conversion
9920         only conditionally on optimize >= 2.
9921
9922         * gcse.c: Assorted comment fixes in pass description.
9923
9924 2010-02-03  Anthony Green  <green@moxielogic.com>
9925
9926         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
9927         nop padding in order to maintain alignment of storage location of
9928         target function address.
9929         (moxie_trampoline_init): Store target function address at newly
9930         aligned location.
9931         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
9932         to 32.
9933         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
9934
9935 2010-02-03  Richard Guenther  <rguenther@suse.de>
9936
9937         PR middle-end/42927
9938         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
9939
9940 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9941
9942         * config.gcc: Reenable check for obsolete targets.
9943         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
9944         mips-sgi-irix6.[0-4]*.
9945
9946 2010-02-02  Nick Clifton  <nickc@redhat.com>
9947
9948         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
9949         constant size of 4 as being the same as 0.
9950         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
9951         can take values in the range 0..4.
9952
9953 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
9954
9955         PR java/41991
9956         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
9957         as _darwin10_Unwind_FindEnclosingFunction().
9958         * libgcc-libsystem.ver: New.
9959
9960 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
9961
9962         PR target/41399
9963         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
9964         implicitly set registers.
9965
9966 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
9967
9968         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
9969         (arm_override_options): Allow automatic selection of the thread
9970         pointer register if thumb2.
9971         (legitimize_pic_address): Improve code sequences for Thumb2.
9972         (arm_call_tls_get_addr): Likewise.
9973         (legitimize_tls_address): Likewise.
9974         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
9975         (pic_load_addr_32bit): ... this.  New named pattern.
9976         * thumb2.md (pic_load_addr_thumb2): Delete.
9977         (pic_load_dot_plus_four): Delete.
9978         (tls_load_dot_plus_four): New named pattern.
9979
9980 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9981
9982         PR libgomp/29986
9983         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
9984         Document fix for TLS bug.
9985
9986 2010-01-31  Richard Guenther  <rguenther@suse.de>
9987
9988         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
9989         conservatively correct.
9990
9991 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9992
9993         PR target/42850
9994         Revert:
9995         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9996
9997         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9998
9999 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10000
10001         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10002
10003 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
10004
10005         * config.gcc: Adjust order of makefile fragments for mingw targets.
10006
10007 2010-01-31  Richard Guenther  <rguenther@suse.de>
10008
10009         PR middle-end/42898
10010         * gimplify.c (gimplify_init_constructor): For volatile LHS
10011         initialize a temporary.
10012
10013 2010-01-31  Matthias Klose  <doko@ubuntu.com>
10014
10015         * configure.ac: Fix __stack_chk_fail check for cross builds configured
10016         --with-headers
10017         * configure: Regenerate.
10018
10019 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
10020
10021         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10022         the same alias set and their sizes different constantness.
10023         (aliasing_component_refs_p): Revert 2009-10-24 change.
10024
10025 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10026
10027         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10028         unused.
10029
10030 2010-01-29  Richard Guenther  <rguenther@suse.de>
10031
10032         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10033         Assert we successfully updated the call.
10034
10035 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
10036
10037         PR rtl-optimization/42889
10038         * df.h (df_set_bb_dirty_nonlr): New prototype.
10039         * df-core.c (df_set_bb_dirty_nonlr): New function.
10040         * df-scan.c (df_insn_rescan): Call it instead of
10041         df_set_bb_dirty for DEBUG_INSNs.
10042
10043 2010-01-29  Richard Guenther  <rguenther@suse.de>
10044
10045         PR middle-end/37448
10046         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10047         quadratic behavior in most cases.
10048
10049 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
10050
10051         PR target/42891
10052         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10053         in the call to gen_x86_movsicc_0_m1.
10054
10055 2010-01-28  Richard Guenther  <rguenther@suse.de>
10056
10057         PR tree-optimization/42871
10058         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10059
10060 2010-01-28  Richard Guenther  <rguenther@suse.de>
10061
10062         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10063         into call arguments.
10064
10065 2010-01-28  Richard Guenther  <rguenther@suse.de>
10066
10067         PR middle-end/42883
10068         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10069         the forwarder if the destination is an EH landing pad.
10070
10071 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
10072
10073         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10074         block list passed to gimple_duplicate_sese_tail.
10075         (parallelize_loops): Avoid parallelization when the function
10076         has_nonlocal_label.
10077         Avoid parallelization when the preheader is IRREDUCIBLE.
10078         Try to optimize when estimated_loop_iterations_int is unresolved.
10079         Add the loop's location to the dump file.
10080         * tree-cfg.c (add_phi_args_after_redirect): Remove.
10081         (gimple_duplicate_sese_tail): Remove the check for the latch.
10082         Redirect nexits to the exit block.
10083         Remove handling of the incoming edges to the latch.
10084         Redirect the backedge from the copied latch to the exit bb.
10085
10086 2010-01-28  Michael Matz  <matz@suse.de>
10087
10088         PR target/42881
10089         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10090         Wrap force_reg into a sequence, emit it before user.
10091
10092 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
10093
10094         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10095         (arm_rev): New.
10096         (arm_legacy_rev): Likewise.
10097         (thumb_legacy_rev): Likewise.
10098
10099 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10100
10101         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10102         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
10103         on MEM's address failed, try avoid_constant_pool_reference and
10104         recurse if it returned something different.
10105         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10106         address, try avoid_constant_pool_reference and recurse if it
10107         returned something different.
10108         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10109         address and avoid_constant_pool_reference returned something
10110         different, don't set have_address.
10111
10112 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
10113
10114         PR debug/42861
10115         * var-tracking.c (val_store): Add modified argument, obey it.
10116         Adjust callers.
10117         (count_uses): Move down logging of main.
10118         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10119         don't need resolution.
10120         (emit_notes_in_bb): Likewise.
10121
10122 2010-01-27  Richard Guenther  <rguenther@suse.de>
10123
10124         PR middle-end/42878
10125         * tree-inline.c (remap_decl): Delay remapping of SSA name
10126         default definitions until we need them.
10127
10128 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10129
10130         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10131         (rs6000_delegitimize_address): New function.
10132
10133         * config/s390/s390.c (s390_delegitimize_address): Call
10134         delegitimize_mem_from_attrs.
10135
10136         PR middle-end/42874
10137         * tree-inline.c (cannot_copy_type_1): Removed.
10138         (copy_forbidden): Don't forbid copying of functions containing
10139         records/unions with variable length fields.
10140
10141 2010-01-27  Christian Bruel  <christian.bruel@st.com>
10142
10143         Revert:
10144         PR target/42841
10145         * config/sh/sh.c (find_barrier): Increase length for non delayed
10146         conditional branches.
10147
10148 2010-01-27  Matthias Klose  <doko@ubuntu.com>
10149
10150         * configure.ac (gnu-unique-object): Fix ldd version check.
10151         * configure: Regenerate.
10152
10153 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10154
10155         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10156         HAVE_GNU_AS value.
10157         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10158         Test for HAVE_GNU_AS value.
10159
10160 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10161
10162         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10163         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10164         INT64_TYPE): Define.
10165         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10166         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10167         INT_LEAST64_TYPE): Define.
10168         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10169         UINT_LEAST64_TYPE): Define.
10170         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10171         INT_FAST64_TYPE): Define.
10172         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10173         UINT_FAST64_TYPE): Define.
10174         (INTMAX_TYPE, UINTMAX_TYPE): Define.
10175         (INTPTR_TYPE, UINTPTR_TYPE): Define.
10176         (SIG_ATOMIC_TYPE): Define.
10177
10178 2010-01-26  Richard Guenther  <rguenther@suse.de>
10179
10180         * df-scan.c (df_scan_set_bb_info): Remove assert.
10181         (df_insn_rescan_debug_internal): Merge asserts.
10182         (df_install_ref): Likewise.
10183         (df_mark_reg): Use bitmap_set_range.
10184         (df_hard_reg_used_p): Remove assert.
10185         (df_hard_reg_used_count): Likewise.
10186
10187 2010-01-26  Richard Guenther  <rguenther@suse.de>
10188
10189         PR rtl-optimization/42685
10190         * web.c (web_main): Ignore DEBUG_INSNs.
10191
10192 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
10193
10194         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10195
10196         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10197         Fix types of fndecl and arglist parameters.
10198
10199 2010-01-26  Richard Guenther  <rguenther@suse.de>
10200
10201         PR middle-end/42806
10202         * tree-eh.c (unsplit_eh): Skip debug insns.
10203
10204 2010-01-26  Richard Guenther  <rguenther@suse.de>
10205
10206         PR tree-optimization/42250
10207         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10208
10209 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10210
10211         PR fortran/42866
10212         * omp-low.c (expand_omp_sections): Only use single_pred if
10213         l2_bb is single_pred_p.
10214
10215 2010-01-25  Christian Bruel  <christian.bruel@st.com>
10216
10217         PR target/42841
10218         * config/sh/sh.c (find_barrier): Increase length for non delayed
10219         conditional branches.
10220         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10221
10222 2010-01-24  David S. Miller  <davem@davemloft.net>
10223
10224         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10225         define if not using GAS.
10226         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10227         Likewise.  Delete SECTION_MERGE code, which is only applicable
10228         when using GAS.
10229
10230 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
10231
10232         PR c++/42748
10233         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10234         mangling of va_list in system headers.
10235
10236 2010-01-23  Toon Moene  <toon@moene.org>
10237
10238         * tree-predcom.c (combine_chains): Return NULL, not false.
10239
10240 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
10241
10242         * tree-loop-distribution.c (distribute_loop): Fix declaration and
10243         initialization of variable res to agree with return type.
10244
10245 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
10246
10247         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10248         * tree-sra.c: Add include of expr.h.
10249
10250 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
10251
10252         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10253         insert the debug stmt on the single non-EH edge from the stmt.
10254
10255 2010-01-22  Richard Henderson  <rth@redhat.com>
10256
10257         PR tree-opt/42833
10258         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10259         the RHS until after generate_subtree_copies has insertted its
10260         code before the current statement.
10261
10262 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
10263
10264         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10265
10266         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10267
10268 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10269
10270         PR tree-optimization/42585
10271         * tree-sra.c (struct access): New field grp_total_scalarization.
10272         (dump_access): Dump the new field.
10273         (should_scalarize_away_bitmap): New variable.
10274         (cannot_scalarize_away_bitmap): Likewise.
10275         (sra_initialize): Allocate new bitmaps.
10276         (sra_deinitialize): Free new bitmaps.
10277         (create_access_1): New function.
10278         (create_access): Parts moved to create_access_1.
10279         (type_consists_of_records_p): New function.
10280         (completely_scalarize_record): Likewise.
10281         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10282         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10283         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10284         access.
10285         (analyze_all_variable_accesses): Completely scalarize small eligible
10286         records.
10287
10288 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10289
10290         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10291
10292 2010-01-21  Andrew Haley  <aph@redhat.com>
10293
10294         * gcc.c (process_command): Move lang_specific_driver before
10295         setting cc_libexec_prefix.
10296
10297 2010-01-21  Richard Guenther  <rguenther@suse.de>
10298
10299         PR middle-end/19988
10300         * fold-const.c (negate_expr_p): Pretend only negative
10301         real constants are easily negatable.
10302
10303 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
10304             Jason Merrill  <jason@redhat.com>
10305
10306         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10307         (TYPE_TRANSPARENT_AGGR): this, for union and record.
10308         * calls.c (initialize argument_information): Handle it.
10309         * c-common.c (handle_transparent_union_attribute): Use new name.
10310         * c-decl.c (finish_struct): Ditto.
10311         * c-typeck.c (type_lists_compatible_p): Ditto.
10312         (convert_for_assignment): Use new name and also handle record.
10313         * function.c (aggregate_value_p): Handle it.
10314         (pass_by_reference): Ditto.
10315         (assign_parm_data_types): Ditto.
10316         * print-tree.c (print_node): Ditto.
10317         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10318         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10319         * tree.c (first_field): New fn.
10320
10321 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
10322
10323         PR target/42818
10324         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10325         even when linking statically, for now.
10326
10327 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10328
10329         PR debug/42715
10330         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10331         without a cselib val.
10332         (count_uses): Accept MO_VAL_SET with no val on stores.
10333         (add_stores): Likewise.
10334
10335 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10336
10337         * var-tracking.c (check_value_val): Add a compile time assertion.
10338         (dv_is_decl_p): Simplify.
10339         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10340         gcc_assert if ENABLE_CHECKING.
10341
10342 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10343
10344         PR debug/42782
10345         * var-tracking.c: Include tree-flow.h.
10346         (mem_dies_at_call): New.
10347         (dataflow_set_preserve_mem_locs): Use it.
10348         (dataflow_set_remove_mem_locs): Likewise.
10349         (dump_var): Renamed from dump_variable.  Adjust all callers.
10350         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
10351         * Makefile.in (var-tracking.o): Adjust deps.
10352
10353 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
10354
10355         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10356
10357 2010-01-20  Richard Guenther  <rguenther@suse.de>
10358
10359         PR tree-optimization/42717
10360         * tree-ssa-dce.c (get_live_post_dom): Remove.
10361         (forward_edge_to_pdom): Take an arbitrary edge to copy
10362         degenerate PHI args from.
10363         (remove_dead_stmt): Use the first post-dominator even if it
10364         does not contain live statements as redirection destination.
10365
10366 2010-01-20  Richard Guenther  <rguenther@suse.de>
10367
10368         * tree-inline.c (estimate_num_insns): Handle EH builtins.
10369
10370 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10371
10372         * sel-sched.c (create_speculation_check): Remove set but not used
10373         variable twin.
10374         (try_transformation_cache): Remove set but not used variable ds.
10375         (calculate_privileged_insns): Remove set but not used variables
10376         cur_insn and min_spec_insn.
10377         (find_best_expr): Remove set but not used variable avail_n.
10378         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10379         variable e.
10380         * cgraphunit.c (assemble_thunk): Remove set but not used variable
10381         false_label.
10382         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10383         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10384         new_scop_exit_edge.
10385
10386 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
10387
10388         PR bootstrap/42786
10389         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10390         cpu types.  Add support for *-sse3 cpu types.
10391         (x86_64-*-*): Ditto.
10392
10393 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10394
10395         PR middle-end/42803
10396         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10397         argument, call initializer_constant_valid_p_1 instead of
10398         initializer_constant_valid_p, pass CACHE to it, return NULL
10399         immediately if first call returns NULL.
10400         (initializer_constant_valid_p_1): New function.
10401         (initializer_constant_valid_p): Use it.
10402
10403 2010-01-20  Thomas Quinot  <quinot@adacore.com>
10404
10405         * tree.def (PLACEHOLDER_EXPR): Fix comment.
10406
10407 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10408
10409         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10410         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10411         (loc_list_from_tree): Don't handle unsigned division.  Handle
10412         signed modulo using DW_OP_{over,over,div,mul,minus}.
10413         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10414         modulo instead of signed.
10415
10416 2010-01-20  DJ Delorie  <dj@redhat.com>
10417
10418         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10419         (Fpa): Pass it
10420         (h8300_emit_stack_adjustment): Propogate it.
10421         (push): Pass it.
10422         (h8300_expand_prologue): Likewise.
10423         (h8300_expand_epilogue): Likewise.
10424
10425 2010-01-19  Michael Matz  <matz@suse.de>
10426
10427         PR tree-optimization/41783
10428         * tree-data-ref.c (toplevel): Include flags.h.
10429         (dump_data_dependence_relation):  Also dump the inputs if the
10430         result will be unknown.
10431         (split_constant_offset_1): Look through some conversions.
10432         * tree-predcom.c (determine_roots_comp): Restart a new chain if
10433         the offset from last element is too large.
10434         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10435         (reassociate_to_the_same_stmt): Handle vector registers.
10436         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10437         (e.g. conversions).
10438         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10439         wide_prolog_niters argument, emit widening instructions.
10440         (vect_do_peeling_for_alignment): Adjust caller, use widened
10441         variant of the iteration cound.
10442         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10443
10444 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10445
10446         PR target/38697
10447         * config/arm/neon-testgen.m (emit_automatics): New parameter
10448         features. Adjust for Fixed_return_reg feature.
10449         (test_intrinsic): Call emit_automatics with new feature.
10450         * config/arm/neon.ml: Update copyright years.
10451         (features): New Fixed_return_reg feature.
10452         (ops): Update feature for Vget_low.
10453
10454 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
10455
10456         PR tree-optimization/42719
10457         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10458         stmt uses.
10459
10460         PR debug/42728
10461         * fwprop.c (all_uses_available_at): Return false if def_set dest
10462         is a REG that is used in def_insn.
10463
10464 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
10465
10466         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10467
10468         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10469         Add argument names.
10470
10471         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10472
10473         * target.h (struct gcc_target) <secondary_reload>: Change type
10474         of last argument to secondary_reload_info *.
10475
10476 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
10477
10478         PR target/42774
10479         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
10480         memory references with unaligned offsets.  Remove CQImode handling.
10481         (unaligned_memory_operand): Return 1 for memory references with
10482         unaligned offsets.  Remove CQImode handling.
10483
10484 2010-01-18  Richard Guenther  <rguenther@suse.de>
10485
10486         PR middle-end/39954
10487         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10488         builtin calls.
10489
10490 2010-01-18  Richard Guenther  <rguenther@suse.de>
10491
10492         PR tree-optimization/42781
10493         * tree-ssa-structalias.c (find_what_var_points_to): Skip
10494         restrict processing only if the original variable was artificial.
10495
10496 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
10497
10498         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10499         find number of popped argument bytes.
10500
10501         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10502         Fix the text that describes the return value for invalid insns.
10503
10504         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
10505
10506         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10507         Clarify what 'cost of the -dependence' is.  Fix quoting.
10508
10509         * toplev.c (default_get_pch_validity): Rename argument to "sz".
10510         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10511
10512 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
10513
10514         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10515         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10516
10517 2010-01-17  Richard Guenther  <rguenther@suse.de>
10518
10519         PR middle-end/42248
10520         * function.c (split_complex_args): Take a VEC to modify.
10521         (assign_parms_augmented_arg_list): Build a VEC instead of
10522         a chain of PARM_DECLs.
10523         (assign_parms_unsplit_complex): Take a VEC of arguments.
10524         Do not fixup unmodified parms.
10525         (assign_parms): Deal with the VEC.
10526         (gimplify_parameters): Likewise.
10527
10528 2010-01-17  Richard Guenther  <rguenther@suse.de>
10529
10530         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10531         node existence check.
10532         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10533         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10534         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10535         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10536         (gimple_execute_on_growing_pred): Likewise.
10537
10538 2010-01-17  Richard Guenther  <rguenther@suse.de>
10539
10540         PR tree-optimization/42773
10541         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10542         (compute_antic_aux): Likewise.
10543         (compute_partial_antic_aux): Likewise.
10544
10545 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
10546
10547         PR debug/42767
10548         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
10549         and US_TRUNCATE.
10550
10551 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
10552
10553         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
10554         appearance.
10555
10556         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
10557         Fix markup for strict argument.
10558
10559         (TARGET_SCHED_REORDER2): Fix argument types.
10560
10561         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
10562         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
10563
10564         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
10565         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
10566
10567         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
10568         Add argument name.
10569
10570         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
10571         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
10572         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
10573         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
10574         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
10575
10576         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
10577
10578         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
10579
10580         (TARGET_ASM_RELOC_RW_MASK): Add return type.
10581         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
10582
10583         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
10584
10585         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
10586         Use prototype.
10587
10588         (TARGET_ASM_NAMED_SECTION): Fix argument list.
10589
10590         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
10591         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
10592
10593         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
10594
10595         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
10596
10597         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
10598         referring to it.  Fix language.
10599
10600         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
10601
10602         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
10603
10604         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
10605
10606         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
10607
10608         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
10609         '@var{stream}.  Remove stray 'and'.
10610
10611         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
10612
10613         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
10614
10615         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
10616
10617         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
10618         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
10619
10620         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
10621         Fix description of return value.
10622         Rename argument "sz" to "len."
10623
10624         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
10625         Clarify meaning of 'true' return value.
10626
10627         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
10628
10629         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
10630         rep_mode versus mode_rep.
10631
10632         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
10633
10634         (TARGET_BUILTIN_DECL): Fix name.
10635
10636         (TARGET_COMMUTATIVE_P): Fix type of first argument.
10637
10638         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
10639
10640         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
10641
10642         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
10643
10644         (TARGET_RELAXED_ORDERING): Use @deftypevr.
10645
10646         (TARGET_GET_DRAP_RTX): Note that this is a hook.
10647         Clarify language.
10648
10649         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
10650         Rename argument tm_fn to md_fn.
10651
10652         (TARGET_OPTION_PRINT): Fix argument list.
10653
10654 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
10655
10656         PR target/42664
10657         * config/i386/i386.c (ix86_fixup_binary_operands):
10658         Revert FMA4 fixup of operands.
10659
10660 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10661
10662         PR gcc/42525
10663         * Makefile.in (write_entries_to_file, install-plugin):
10664         Use \012 instead of \n with tr.
10665
10666 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
10667
10668         * configure.ac (HAVE_AS_REF): New C macro.
10669         * configure: Regenerate.
10670         * config.in: Likewise.
10671         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
10672         if HAVE_AS_REF.
10673         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
10674         if HAVE_AS_REF.
10675
10676 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
10677
10678         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
10679
10680         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
10681
10682         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
10683
10684         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
10685
10686         (TARGET_IN_SMALL_DATA_P): Fix argument type.
10687
10688         (TARGET_BINDS_LOCAL_P): Fix argument type.
10689
10690         (TARGET_ASM_FILE_END): Use prototype.
10691
10692         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
10693
10694         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
10695
10696         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
10697
10698         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
10699
10700         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
10701         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
10702
10703         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
10704         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
10705
10706         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
10707         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
10708         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
10709         (TARGET_ADDR_SPACE_CONVERT): Likewise.
10710
10711         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
10712
10713         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
10714
10715         (TARGET_INIT_BUILTINS): Use prototype.
10716
10717         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
10718         Put 'const char *' in braces.  Fix parameter types.
10719         (TARGET_INVALID_CONVERSION): Fix parameter types.
10720         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
10721         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
10722
10723         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
10724         Fix argument type.
10725
10726         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
10727
10728         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
10729
10730 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
10731
10732         * doc/tm.texi (TARGET_HELP): Fix return type.
10733
10734         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
10735         in braces.  Fix argument types.
10736
10737         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
10738
10739         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
10740
10741         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
10742
10743         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
10744         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
10745
10746         (TARGET_MANGLE_TYPE): Fix argument types.
10747
10748         (TARGET_IRA_COVER_CLASSES): Use prototype.
10749
10750         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
10751
10752         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
10753
10754         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
10755
10756         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
10757
10758         (TARGET_CALLEE_COPIES): Fix argument types.
10759
10760         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
10761
10762         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
10763
10764         (TARGET_FUNCTION_VALUE): Fix argument types.
10765
10766         (TARGET_RETURN_IN_MSB): Fix argument type.
10767
10768         (TARGET_RETURN_IN_MEMORY): Fix argument types.
10769
10770         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
10771
10772         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
10773
10774         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
10775         agree with return type.
10776
10777         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
10778
10779 2010-01-15  Jing Yu  <jingyu@google.com>
10780
10781         PR rtl-optimization/42691
10782         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
10783         a pseudo to a constant and are merged, and adjust comments.
10784
10785 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10786
10787         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
10788
10789 2010-01-15  Richard Guenther  <rguenther@suse.de>
10790
10791         PR middle-end/42739
10792         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
10793         labels of computed or non-local gotos to the destination.
10794         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
10795         landing pad label is the first label.
10796
10797 2010-01-15  Richard Guenther  <rguenther@suse.de>
10798
10799         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
10800
10801 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10802
10803         PR target/42747
10804         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
10805         to allow generation of the xssqrtdp instruction on power7.
10806         (sqrtdf2_fpr): Ditto.
10807
10808 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
10809
10810         PR middle-end/42674
10811         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
10812         functions with noreturn attribute.
10813
10814         PR c++/42608
10815         * varasm.c (declare_weak): Add weak attribute to decl if it
10816         doesn't have one already.
10817         (assemble_external): Only add decls to weak_decls if they also
10818         have weak attribute.
10819
10820 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
10821
10822         * var-tracking.c (var_reg_delete): Don't delete the association
10823         between REGs and values or one-part variables if the register
10824         isn't clobbered.
10825
10826 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
10827
10828         PR debug/42657
10829         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
10830         because its first operand is a non-localized variable.
10831
10832 2010-01-14  Martin Jambor  <mjambor@suse.cz>
10833
10834         PR tree-optimization/42706
10835         * tree-sra.c (encountered_recursive_call): New variable.
10836         (encountered_unchangable_recursive_call): Likewise.
10837         (sra_initialize): Initialize both new variables.
10838         (callsite_has_enough_arguments_p): New function.
10839         (scan_function): Call decl and flags check only for IPA-SRA, check
10840         whether there is a recursive call and whether it has enough arguments.
10841         (all_callers_have_enough_arguments_p): New function.
10842         (convert_callers): Look for recursive calls only when
10843         encountered_recursive_call is set.
10844         (ipa_early_sra): Bail out either if
10845         !all_callers_have_enough_arguments_p or
10846         encountered_unchangable_recursive_call.
10847
10848 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10849
10850         * sel-sched.c: Add 2010 to copyright years.
10851         * sel-sched-ir.c: Likewise.
10852         * sel-sched-ir.h: Likewise.
10853
10854 2010-01-14  Martin Jambor  <mjambor@suse.cz>
10855
10856         PR tree-optimization/42714
10857         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
10858         constructors specially.
10859
10860 2010-01-14  Andi Kleen  <ak@linux.intel.com>
10861
10862         * config/i386/drivers-i386.c (detect_caches_intel):
10863         Add l2sizekb parameter and fill in.
10864         (host_detect_local_cpu): Add l2sizekb, fill in.
10865         Add Atom small cache heuristic.
10866
10867 2010-01-14  Andi Kleen  <ak@linux.intel.com>
10868
10869         * config/i386/drivers-i386.c (detect_caches_cpuid4):
10870         Add level3 parameter and fill in.
10871         (detect_caches_intel): Handle level3 cache.
10872
10873 2010-01-14  Andi Kleen  <ak@linux.intel.com>
10874
10875         * config/i386/drivers-i386.c (host_detect_local_cpu):
10876         Fix core duo detection.
10877
10878 2010-01-14  Andi Kleen  <ak@linux.intel.com>
10879
10880         * config/i386/drivers-i386.c (host_detect_local_cpu):
10881         Fix Atom detection.
10882
10883 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10884
10885         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
10886         (rs6000_variable_issue_1): this.  Use...
10887         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
10888
10889 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10890
10891         * sel-sched-ir.c (sel_restore_other_notes): Rename to
10892         sel_restore_notes.  Update all callers.  Call reemit_notes
10893         for all insns.
10894
10895 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
10896
10897         PR rtl-optimization/42246
10898         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
10899         loops.
10900
10901 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
10902
10903         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
10904         all successors is the same as number of successors in current region.
10905
10906 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10907
10908         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
10909         to rename is not separable.  Otherwise check that its LHS is not NULL.
10910
10911 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10912
10913         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
10914
10915 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10916
10917         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
10918         available registers when failed to discover LHS register class.
10919         Fix indentation.  Update comment.
10920
10921 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
10922             Alexander Monakov  <amonakov@ispras.ru>
10923
10924         PR rtl-optimization/42389
10925         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
10926         to can_issue_more.
10927         (advance_state_on_fence): Likewise.
10928         (sel_target_adjust_priority): Print debug output only when
10929         sched_verbose >= 4, not 2.
10930         (get_expr_cost): Do not issue all unique insns on the next cycle.
10931         (fill_insns): Initialize can_issue_more from the value saved
10932         with the fence.
10933         * sel-sched-ir.c (flist_add): New parameter issue_more.
10934         Init FENCE_ISSUE_MORE with it.
10935         (merge_fences): Likewise.
10936         (init_fences): Update call to flist_add.
10937         (add_to_fences, add_clean_fence_to_fences)
10938         (add_dirty_fence_to_fences): Likewise.
10939         (move_fence_to_fences): Update call to merge_fences.
10940         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
10941         sched groups.
10942         * sel-sched-ir.h (struct _fence): New field issue_more.
10943         (FENCE_ISSUE_MORE): New accessor macro.
10944
10945 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
10946
10947         PR rtl-optimization/42388
10948         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
10949         that have no predecessors nor successors.  Do not call move_bb_info
10950         for empty blocks outside of current region.
10951
10952 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10953
10954         PR rtl-optimization/42294
10955         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
10956         * sel-sched.c (move_exprs_to_boundary): Transitively add all
10957         originators' originators.
10958
10959 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
10960
10961         PR rtl-optimization/39453
10962         PR rtl-optimization/42246
10963         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
10964         for pipelining_p.
10965         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
10966
10967 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
10968             Alexander Monakov  <amonakov@ispras.ru>
10969
10970         PR middle-end/42245
10971         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
10972         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
10973         argument.  Update all callers.
10974         (tidy_control_flow): ... and here.  Recompute topological order
10975         of basic blocks in region if necessary.
10976         (sel_redirect_edge_and_branch): Change return type.  Return true
10977         if topological order might have been invalidated.
10978         (purge_empty_blocks): Export and move from...
10979         * sel-sched.c (purge_empty_blocks): ... here.
10980         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
10981         (maybe_tidy_empty_bb): Delete prototype.
10982         (purge_empty_blocks): Declare.
10983
10984 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
10985
10986         PR rtl-optimization/42249
10987         * sel-sched.c (try_replace_dest_reg): When chosen register
10988         and original register is the same, do not bail out early, but
10989         still check all original insns for validity of replacing destination
10990         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
10991         in this case.
10992
10993 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
10994
10995         PR c/42721
10996         Port from no-undefined-overflow branch:
10997         2009-03-09  Richard Guenther  <rguenther@suse.de>
10998
10999         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11000
11001 2010-01-14  Richard Guenther  <rguenther@suse.de>
11002
11003         PR lto/42665
11004         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11005
11006 2010-01-14  Ira Rosen  <irar@il.ibm.com>
11007
11008         PR tree-optimization/42709
11009         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11010         as scalar type in creation of constant vector operand.
11011
11012 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11013
11014         PR testsuite/42414
11015         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11016         (check-parallel-%): Match `testsuite' directory component only
11017         at the end.
11018
11019 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
11020
11021         PR translation/39521
11022         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11023         strings with _().
11024
11025 2010-01-13  Richard Guenther  <rguenther@suse.de>
11026
11027         PR tree-optimization/42730
11028         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11029         offset zero.
11030
11031 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
11032
11033         PR target/pr42542
11034         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11035         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11036         them signed.
11037
11038 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11039
11040         * config/bfin/libgcc-bfin.ver: Regenerate based on current
11041         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
11042         ___umulsi3_highpart.
11043
11044         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11045         rather than schedule_insns if the pass is enabled.
11046
11047 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11048
11049         PR tree-optimization/42704
11050         * tree-sra.c (sra_modify_assign): Do not delete assignments to
11051         SSA_NAMEs.
11052
11053 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11054
11055         PR tree-optimization/42703
11056         * tree-sra.c (analyze_access_subtree): Check that we can build a
11057         reference to the original data within the aggregate.
11058
11059 2010-01-13  Richard Guenther  <rguenther@suse.de>
11060
11061         PR tree-optimization/42705
11062         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11063
11064 2010-01-13  Richard Guenther  <rguenther@suse.de>
11065
11066         PR middle-end/42716
11067         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11068
11069 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
11070
11071         PR debug/41371
11072         * var-tracking.c (values_to_unmark): New variable.
11073         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11074         values_to_unmark vector.  Moved body to...
11075         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
11076         instead queue it into values_to_unmark vector.
11077         (vt_find_locations): Free values_to_unmark vector.
11078
11079 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
11080
11081         * config/s390/s390.c (override_options): Set
11082         default of max-pending-list-length to 256
11083
11084 2010-01-13  Richard Guenther  <rguenther@suse.de>
11085
11086         PR lto/42678
11087         * tree-pass.h (PROP_gimple_lcx): New.
11088         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11089         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11090         before the final cleanup_eh.
11091         (dump_properties): Dump PROP_gimple_lcx.
11092         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11093         (tree_lower_complex_O0): Remove.
11094         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11095         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
11096         tree_lower_complex, schedule TODO_update_ssa.
11097         * lto-streamer-out.c (output_function): Stream the functions
11098         properties.
11099         * lto-streamer-in.c (input_function): Likewise.
11100         (lto_read_body): Do not override them here.
11101
11102 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
11103
11104         PR c/42708
11105         * c-typeck.c (build_c_cast): Fold value cast to union type before
11106         wrapping it in a CONSTRUCTOR.
11107
11108 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11109
11110         PR rtl-optimization/42699
11111         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11112         involved.
11113
11114 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11115
11116         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11117         SUBTARGET_WARN_UNUSED_SPEC): Move ...
11118         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11119         SUBTARGET_WARN_UNUSED_SPEC): ... here
11120         * config/mips/iris5.h (LIBGCC_SPEC): Define.
11121
11122 2010-01-12  Julian Brown  <julian@codesourcery.com>
11123
11124         * config/arm/neon-schedgen.ml (Utils): Don't try to
11125         open missing module.
11126         (find_with_result): New.
11127
11128 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11129
11130         PR debug/42662
11131         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11132         sharing when canonicalizing ({lt,ge}u (plus a b) b).
11133
11134         PR tree-optimization/42645
11135         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
11136         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11137         decl_map, set processing_debug_stmt to -1 and return name without
11138         any remapping.
11139
11140 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
11141
11142         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11143         binutils version, and reword target configuration description.
11144
11145 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11146
11147         * config/avr/avr.h (LINKER_NAME): Remove.
11148
11149 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
11150
11151         PR target/42416
11152         * config/rs6000/rs6000.c (rs6000_override_options): On targets
11153         that support VSX, warn for -mno-altivec if vsx is not disabled,
11154         and disable vsx.
11155
11156 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
11157             Shujing Zhao  <pearly.zhao@oracle.com>
11158
11159         PR translation/42469
11160         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11161         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11162         character between option name and help text.
11163         * c.opt (imultilib): Likewise.
11164
11165 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
11166
11167         * lto-streamer-out.c (output_unreferenced_globals): Output static
11168         variables.
11169
11170 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
11171
11172         PR rtl-optimization/42621
11173         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11174         optimizing for size.
11175         (duplicate_computed_gotos): Remove now-redundant check.
11176
11177 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
11178
11179         PR target/37454
11180         * configure.ac: Save and restore LDFLAGS and LIBS
11181         * configure: Regenerate.
11182
11183 2010-01-10  Richard Guenther  <rguenther@suse.de>
11184
11185         PR middle-end/42667
11186         * builtins.c (fold_builtin_strlen): Add type argument and
11187         convert the resulting length to it.
11188         (fold_builtin_1): Adjust.
11189
11190 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11191
11192         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11193         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11194         1 insn.
11195         (num_insns_constant_wide): Adjust for that change.
11196
11197 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11198
11199         PR debug/42631
11200         * web.c (union_defs): Add used argument, to combine uses of
11201         uninitialized regs.
11202         (entry_register): Adjust type and tests of used argument.
11203         (web_main): Widen used for new use.  Pass it to union_defs.
11204         * df.h (union_defs): Adjust prototype.
11205
11206 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11207
11208         PR debug/42630
11209         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11210         uses in new incoming argument.  Free body.
11211         (reset_debug_uses_in_loop): New.
11212         (analyze_insn_to_expand_var): Call the latter if the former found
11213         anything.  Fix whitespace.  Reject invalid dest overlaps before
11214         going through all insns in the loop.
11215
11216 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11217
11218         PR debug/42629
11219         * haifa-sched.c (dying_use_p): Debug insns don't count.
11220
11221 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11222
11223         PR middle-end/42363
11224         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11225         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11226         (verify_gimple_call): Reject LHS in noreturn calls.
11227
11228 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11229
11230         PR debug/42604
11231         PR debug/42395
11232         * tree-vect-loop-manip.c (adjust_info): New type.
11233         (adjust_vec): New pointer to vector.
11234         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11235         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11236         (slpeel_update_phis_for_duplicate_loop): Use them.
11237         (slpeel_update_phi_nodes_for_guard1): Likewise.
11238         (slpeel_update_phi_nodes_for_guard2): Likewise.
11239         (slpeel_tree_peel_loop_to_edge): Likewise.
11240         (vect_update_ivs_after_vectorizer): Likewise.
11241
11242 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11243
11244         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11245         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11246
11247 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11248
11249         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11250         bogus uninitialized warning.
11251
11252 2010-01-09  Richard Guenther  <rguenther@suse.de>
11253
11254         PR middle-end/42512
11255         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11256         the evolution is compatible with the initial condition.
11257
11258 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11259
11260         * gcc.c (process_command): Update copyright notice dates.
11261         * gcov.c (print_version): Likewise.
11262         * gcov-dump.c (print_version): Likewise.
11263         * mips-tfile.c (main): Likewise.
11264         * mips-tdump.c (main): Likewise.
11265
11266 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11267
11268         PR target/41885
11269         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11270         (rotlhi3): Delete.
11271         (rotlhi3_8): Delete.
11272         (rotlsi3): Delete.
11273         (rotlsi3_8): Delete.
11274         (rotlsi3_16): Delete.
11275         (rotlsi3_24): Delete.
11276         (rotl<mode>3): New.
11277         (*rotw<mode>3): New.
11278         (*rotb<mode>3): New.
11279         * config/avr/avr.c (avr_rotate_bytes): New function.
11280         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11281
11282 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
11283
11284         PR target/37454
11285         * configure.ac: Modify -rdynamic check.
11286         * configure: Regenerate.
11287
11288 2010-01-08  DJ Delorie  <dj@redhat.com>
11289
11290         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11291         register popping order.
11292
11293 2010-01-08  Richard Guenther  <rguenther@suse.de>
11294
11295         PR lto/42528
11296         * c.opt (fsigned-char): Also let LTO handle this option.
11297         (funsigned-char): Likewise.
11298
11299 2010-01-07  Richard Guenther  <rguenther@suse.de>
11300
11301         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11302         (gimple_op): Likewise.
11303         (gimple_op_ptr): Likewise.
11304         (gimple_assign_set_lhs): Remove gcc_assert.
11305         (gimple_assign_set_rhs1): Likewise.
11306         (gimple_assign_set_rhs2): Likewise.
11307         (gimple_call_set_lhs): Likewise.
11308         (gimple_call_set_fn): Likewise.
11309         (gimple_call_set_fndecl): Likewise.
11310         (gimple_call_fndecl): Likewise.
11311         (gimple_call_return_type): Likewise.
11312         (gimple_call_set_chain): Likewise.
11313         (gimple_call_num_args): Likewise.
11314         (gimple_call_set_arg): Likewise.
11315         (gimple_cond_set_code): Likewise.
11316         (gimple_cond_set_lhs): Likewise.
11317         (gimple_cond_set_rhs): Likewise.
11318         (gimple_cond_set_true_label): Likewise.
11319         (gimple_cond_set_false_label): Likewise.
11320         (gimple_label_set_label): Likewise.
11321         (gimple_goto_set_dest): Likewise.
11322         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11323         (gimple_debug_bind_get_value): Likewise.
11324         (gimple_debug_bind_get_value_ptr): Likewise.
11325         (gimple_debug_bind_set_var): Likewise.
11326         (gimple_debug_bind_set_value): Likewise.
11327         (gimple_debug_bind_reset_value): Likewise.
11328         (gimple_debug_bind_has_value_p): Likewise.
11329         (gimple_return_retval_ptr): Remove gcc_assert.
11330         (gimple_return_retval): Likewise.
11331         (gimple_return_set_retval): Likewise.
11332         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11333         (safe_referenced_var_iterator): Remove.
11334         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11335         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11336         (fill_referenced_var_vec): Remove.
11337         (first_readonly_imm_use): Remove redundant gcc_assert.
11338         (phi_arg_index_from_use): Combine gcc_asserts.
11339         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11340         (first_imm_use_stmt): Remove redundant gcc_assert.
11341         * tree-cfg.c (verify_gimple_call): Verify function and chain
11342         operands.  Verify arguments.
11343         (verify_types_in_gimple_stmt): Verify condition code and labels.
11344
11345 2010-01-07  Richard Guenther  <rguenther@suse.de>
11346
11347         PR tree-optimization/42641
11348         * sese.c (rename_map_elt_info): Use the SSA name version, do
11349         not hash pointers.
11350
11351 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
11352
11353         PR tree-optimization/42625
11354         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11355         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11356
11357 2010-01-07  Duncan Sands  <baldrick@free.fr>
11358
11359         * Makefile.in (PLUGIN_HEADERS): Add version.h.
11360
11361 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
11362
11363         PR target/42511
11364         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11365         note itself is not function_invariant_p.
11366
11367 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
11368
11369         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11370         Do not add the DF_NOTE problem.
11371         * store-motion.c (execute_rtl_store_motion): Likewise.
11372
11373 2010-01-07  Martin Jambor  <mjambor@suse.cz>
11374
11375         PR tree-optimization/42157
11376         * tree-sra.c (compare_access_positions): Stabilize sort if both
11377         accesses have integer types, return zero immediately if they are the
11378         same.
11379
11380 2010-01-06  Richard Henderson  <rth@redhat.com>
11381
11382         PR middle-end/41883
11383         * haifa-sched.c (add_to_note_list): Merge into ...
11384         (concat_note_lists): ... here, and ...
11385         (unlink_other_notes, rm_other_notes): Merge into...
11386         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
11387         NOTE_INSN_EPILOGUE_BEG.
11388
11389 2010-01-06  Richard Guenther  <rguenther@suse.de>
11390
11391         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11392         not inline regular functions into always-inline functions.
11393
11394 2010-01-06  Nick Clifton  <nickc@redhat.com>
11395
11396         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11397         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11398         used together.
11399         (OVERRIDE_OPTIONS): Delete.
11400         (OPTIMIZATION_OPTIONS): Define.
11401         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11402         * config/rx/rx.c (rx_handle_option): Issue an error message if
11403         -mcpu=rx200 and -fpu are used together.
11404         (rx_set_optimization_options): New function.  Issue an error
11405         message if an optimization attribute attempts to reset the FPU/
11406         math optimization pairing.
11407         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11408         * config/rx/rx.opt: Set the default to 32-bit doubles.
11409         * config/rx/t-rx: Add multilibs for -nofpu option.
11410         * doc/invoke.texi: Update documentation of RX options.
11411
11412 2010-01-06  Richard Guenther  <rguenther@suse.de>
11413
11414         * tree-ssa-pre.c (name_to_id): New global.
11415         (alloc_expression_id): Simplify SSA name handling.
11416         (lookup_expression_id): Likewise.
11417         (init_pre): Zero name_to_id.
11418         (fini_pre): Free it.
11419
11420 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
11421
11422         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11423
11424 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11425
11426         PR target/42542
11427         * config/i386/sse.md (smaxv2di3): New.
11428         (umaxv2di3): Likewise.
11429         (sminv2di3): Likewise.
11430         (uminv2di3): Likewise.
11431
11432 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11433
11434         PR target/42564
11435         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11436         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11437         (legitimize_tls_address): Likewise.
11438         (sparc_tls_referenced_p): Likewise.
11439         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11440         and adjust calls to legitimize_pic_address.
11441         (legitimate_constant_p) Use sparc_tls_referenced_p.
11442         (legitimate_pic_operand_p): Likewise.
11443         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11444         (sparc_tls_symbol_ref_1): Delete.
11445         (sparc_tls_referenced_p): Make static, recognize specific patterns.
11446         (legitimize_tls_address): Make static, handle CONST patterns.
11447         (legitimize_pic_address): Make static, remove unused parameter and
11448         adjust recursive calls.
11449         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11450         and adjust call to legitimize_pic_address.
11451         (sparc_output_mi_thunk): Likewise.
11452
11453 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
11454             H.J. Lu  <hongjiu.lu@intel.com>
11455
11456         PR target/42542
11457         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11458         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11459         operands to make them signed.
11460
11461         Revert:
11462         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11463
11464         PR target/42542
11465         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11466         GTU to GT for V4SI and V2DI.
11467
11468         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11469         (umin<mode>3): Removed.
11470         (uminv8hi3): New.
11471         (uminv4si3): Likewise.
11472
11473 2010-01-05  Martin Jambor  <mjambor@suse.cz>
11474
11475         PR tree-optimization/42462
11476         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
11477         current_function_decl to helper functions and macros.
11478
11479 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11480
11481         PR bootstrap/41771
11482         * flags.h: Don't include real.h.
11483         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11484         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11485         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11486         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11487         * dominance.c: Update copyright.
11488         * gimple.c (walk_gimple_op): Remove inline.
11489         * tree-ssa-reassoc.c: Include real.h.
11490         * Makefile.in (FLAGS_H): Remove $(REAL_H).
11491         (tree-ssa-reassoc.o): Depend on $(REAL_H).
11492
11493 2010-01-05  Nick Clifton  <nickc@redhat.com>
11494
11495         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11496         register to push into the stack frame when the accumulator has to
11497         be saved during interrupts.
11498
11499 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
11500
11501         * doc/invoke.texi: Remove the documentation about option
11502         -Wunreachable-code.
11503         * common.opt (Wunreachable-code):  Preserved for backward
11504         compatibility.
11505         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11506         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11507         the backward compatibility flag section.
11508
11509 2010-01-05  Richard Guenther  <rguenther@suse.de>
11510
11511         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11512
11513 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
11514
11515         PR other/42611
11516         * cfgexpand.c (expand_one_var): Diagnose too large variables.
11517
11518         PR tree-optimization/42508
11519         * tree-sra.c (convert_callers): Check for recursive call
11520         by comparing cgraph nodes instead of decls.
11521         (modify_function): Call ipa_modify_formal_parameters also
11522         on all same_body aliases.
11523
11524         * cgraphunit.c (cgraph_materialize_all_clones): Compare
11525         cgraph nodes when checking for same_body aliases.
11526
11527 2010-01-05  Richard Guenther  <rguenther@suse.de>
11528
11529         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11530         allocation and lookup.
11531         (get_or_alloc_expr_for_constant): Likewise.
11532         (phi_translate): Sink allocation.
11533
11534 2010-01-04  Richard Guenther  <rguenther@suse.de>
11535
11536         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11537         a new entry only if needed.
11538         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11539         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11540         hashtable lookup.
11541         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11542         the result array.
11543         (phi_translate): Handle CONSTANTs early.
11544
11545 2010-01-04  Martin Jambor  <mjambor@suse.cz>
11546
11547         PR tree-optimization/42398
11548         * tree-sra.c (struct access): Removed flag grp_different_types.
11549         (dump_access): Do not dump the removed flag.
11550         (sort_and_splice_var_accesses): Do not set the removed flag.
11551         (sra_modify_expr): Check for type compatibility directly.
11552
11553 2010-01-04  Martin Jambor  <mjambor@suse.cz>
11554
11555         PR tree-optimization/42366
11556         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
11557         edges with variable number of parameters.
11558         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
11559         flag instead of asserting it.
11560         (ipa_read_node_info): Read uses_analysis_done flag.
11561
11562 2010-01-04  Richard Guenther  <rguenther@suse.de>
11563
11564         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
11565         iterative_hash_* as intended.
11566         (vn_reference_compute_hash): Likewise.  Simplify hashing
11567         SSA names.
11568         (vn_reference_lookup_2): Likewise.
11569         (vn_nary_op_compute_hash): Likewise.
11570         (vn_phi_compute_hash): Likewise.
11571         (expressions_equal_p): Remove strange code.
11572         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
11573         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
11574         (bitmap_insert_into_set_1): Take value-id as parameter.
11575         (add_to_value): Pass it.
11576         (bitmap_insert_into_set): Likewise.
11577         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
11578
11579 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
11580
11581         PR driver/42442
11582         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
11583         (do_self_spec): For switches with SWITCH_IGNORE set set also
11584         SWITCH_IGNORE_PERMANENTLY.
11585         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
11586         of SWITCH_IGNORE.
11587
11588 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
11589
11590         * lto-streamer-out.c (output_unreferenced_globals): Output the full
11591         tree of an unreferenced global var.
11592
11593 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11594
11595         PR target/42542
11596         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11597         GTU to GT for V4SI and V2DI.
11598
11599         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11600         (umin<mode>3): Removed.
11601         (uminv8hi3): New.
11602         (uminv4si3): Likewise.
11603
11604 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11605
11606         PR lto/42581
11607         * collect2.c (main): Turn on trace in collect2 if -v is passed
11608         to gcc with LTO.
11609
11610 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
11611
11612         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
11613         description of expression operand.
11614
11615 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
11616
11617         * configure.ac: Add install-html to target_list for Make-hooks.
11618         * configure: Regenerate.
11619         * fortran/Make-lang.in (F95_HTMLFILES): New.
11620         (fortran.html): Use it.
11621         (fortran.install-html): New.
11622         * Makefile.in (install-html): Add lang.install-html.
11623         * java/Make-lang.in (JAVA_HTMLFILES): New.
11624         (java.html): Use it.
11625         (java.install-html): New.
11626         * objc/Make-lang.in (objc.install-html): New.
11627         * objcp/Make-lang.in (obj-c++.install-html): New.
11628         * cp/Make-lang.in (c++.install-html): New.
11629         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
11630         * lto/Make-lang.in (lto.install-html): New.
11631
11632 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11633
11634         PR lto/42520
11635         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
11636
11637 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
11638
11639         PR rtl-optimization/41862
11640         * store-motion.c (store_killed_in_insn, compute_store_table,
11641         remove_reachable_equiv_notes, replace_store_insn,
11642         build_store_vectors): Ignore all DEBUG_INSNs.
11643
11644 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11645
11646         PR lto/41564
11647         * common.opt: Add dumpdir.
11648
11649         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
11650         isn't specified.
11651         (option_map): Add --dumpdir.
11652
11653         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
11654
11655         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
11656
11657         * opts.c (decode_options): Try dump_dir_name first if
11658         dump_base_name isn't an absolute path.
11659         (common_handle_option): Handle OPT_dumpdir.
11660
11661         * toplev.c (dump_dir_name): New.
11662         (print_switch_values): Also ignore -dumpdir.
11663
11664         * toplev.h (dump_dir_name): New.
11665
11666 2010-01-03  Richard Guenther  <rguenther@suse.de>
11667
11668         PR tree-optimization/42589
11669         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
11670         double-word expansion of bswap32.
11671
11672 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
11673
11674         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
11675         with BLOCK_FOR_INSN.
11676         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
11677         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
11678         noce_process_if_block): Likewise.
11679         * gcse.c (compute_local_properties, insert_expr_in_table,
11680         insert_set_in_table, canon_list_insert, find_avail_set,
11681         pre_insert_copy_insn): Likewise.
11682
11683         * basic-block.h (BLOCK_NUM): Move from here...
11684         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
11685
11686 2010-01-03  Richard Guenther  <rguenther@suse.de>
11687
11688         PR tree-optimization/42438
11689         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
11690         contains_may_not_return_call flag.
11691         (BB_MAY_NOTRETURN): New.
11692         (valid_in_sets): Trapping nary operations are not valid
11693         in blocks that may not return.
11694         (insert_into_preds_of_block): Remove check for trapping expressions.
11695         (compute_avail): Compute also BB_MAY_NOTRETURN.
11696
11697 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
11698
11699         * doc/invoke.texi: Add 2010 to copyright years.
11700
11701 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11702
11703         * config/sparc/sparc.c: Fix formatting nits.
11704
11705 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
11706             Alexander Monakov  <amonakov@ispras.ru>
11707
11708         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
11709
11710 2010-01-02  Richard Guenther  <rguenther@suse.de>
11711
11712         PR middle-end/42577
11713         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
11714         (simplify_switch_using_ranges): Mark to be removed edges
11715         as non-executable.
11716
11717 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11718
11719         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11720
11721         * collect2.c (scan_libraries): Add missing argument in call to
11722         scan_prog_file.
11723
11724 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
11725
11726         PR target/42448
11727         * config/alpha/predicates.md (aligned_memory_operand): Return false
11728         for CQImode.
11729         (unaligned_memory_operand): Return true for CQImode.
11730         * config/alpha/alpha.c (get_aligned_mem): Assert that location
11731         doesn not cross aligned SImode word boundary.
11732
11733 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
11734
11735         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
11736         Remove.
11737         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
11738         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
11739
11740 2010-01-02  Richard Guenther  <rguenther@suse.de>
11741
11742         PR lto/41597
11743         * toplev.c (compile_file): Emit LTO marker properly.  Change
11744         it to __gnu_lto_v1.
11745         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
11746
11747 2010-01-01  Richard Guenther  <rguenther@suse.de>
11748
11749         PR debug/42455
11750         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
11751
11752 2010-01-01  Richard Guenther  <rguenther@suse.de>
11753
11754         PR c/42570
11755         * c-decl.c (grokdeclarator): For zero-size arrays force
11756         structural equality checks as layout_type does.
11757
11758 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
11759
11760         * builtins.c: Update copyright to 2010.
11761
11762 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
11763
11764         PR lto/42531
11765         * lto-streamer-out.c (produce_asm): Revert the last change.
11766         (copy_function): Likewise.
11767
11768         * lto-streamer.c (lto_get_section_name): Skip any leading
11769         asterisk in name.
11770
11771 2010-01-01  Richard Guenther  <rguenther@suse.de>
11772
11773         PR middle-end/42559
11774         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
11775         for LABEL_DECLs.
11776
11777 \f
11778 Copyright (C) 2010 Free Software Foundation, Inc.
11779
11780 Copying and distribution of this file, with or without modification,
11781 are permitted in any medium without royalty provided the copyright
11782 notice and this notice are preserved.
11783
11784         PR bootstrap/44299
11785         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
11786         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
11787
11788 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
11789
11790         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
11791         toplev.h.
11792         * diagnostic.c: Don't include toplev.h.
11793         (progname): Define.  Moved from toplev.c.
11794         (seen_error): New function.
11795         * diagnostic.h: Include diagnostic-core.h.
11796         (diagnostic_t, emit_diagnostic): Don't declare here.
11797         * toplev.c (progname): Move to toplev.c.
11798         (emit_debug_global_declarations, compile_file, finalize,
11799         do_compile, toplev_main): Use seen_error.
11800         * toplev.h: Include diagnostic-core.h.
11801         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
11802         internal_error, warning, warning_at, error, error_n, error_at,
11803         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
11804         verbatim, fnotice, progname): Move to diagnostic-core.h.
11805         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
11806         (expand_builtin_expect): Use seen_error.
11807         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
11808         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
11809         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
11810         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
11811         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
11812         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
11813         errorcount for errors.
11814         * c-opts.c (c_common_finish): Use seen_error.
11815         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11816         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
11817         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
11818         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
11819         (get_coverage_counts): Use seen_error.
11820         * dwarf2out.c (dwarf2out_finish): Use seen_error.
11821         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
11822         gimplify_body): Use seen_error.
11823         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
11824         * ipa-pure-const.c (gate_pure_const): Use seen_error.
11825         * ipa-reference.c (gate_reference): Use seen_error.
11826         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
11827         * lambda-code.c: Include diagnostic-core.h instead of
11828         diagnostic.h.
11829         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11830         * lto-compress.c: Include diagnostic-core.h instead of
11831         diagnostic.h.
11832         * lto-section-in.c: Include diagnostic-core.h instead of
11833         diagnostic.h.
11834         * lto-streamer-out.c: Include diagnostic-core.h instead of
11835         diagnostic.h.
11836         * lto-streamer.c: Include diagnostic-core.h instead of
11837         diagnostic.h.
11838         (gate_lto_out): Use seen_error.
11839         * matrix-reorg.c: Include diagnostic-core.h instead of
11840         diagnostic.h.
11841         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
11842         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
11843         (gate_expand_omp, lower_omp_1): Use seen_error.
11844         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
11845         (rest_of_decl_compilation, rest_of_type_compilation,
11846         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
11847         * tree-cfg.c (label_to_block_fn): Use seen_error.
11848         * tree-inline.c (optimize_inline_calls): Use seen_error.
11849         * tree-mudflap.c (mudflap_finish_file): Use
11850         seen_error.
11851         * tree-optimize.c (gate_all_optimizations,
11852         gate_all_early_local_passes, gate_all_early_optimizations): Use
11853         seen_error.
11854         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
11855         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
11856         (varpool_remove_unreferenced_decls,
11857         varpool_assemble_pending_decls): Use seen_error.
11858         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
11859         (TOPLEV_H, DIAGNOSTIC_H): Update.
11860         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
11861         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
11862         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
11863         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
11864         coverage.o, lambda-code.o): Update dependencies.
11865
11866 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11867
11868         PR c++/44188
11869         * c-common.c (is_typedef_decl): Move this definition ...
11870         * tree.c (is_typedef_decl): ... here.
11871         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11872         * c-common.h (is_typedef_decl): Move this declaration ...
11873         * tree.h (is_typedef_decl): ... here.
11874         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11875         * dwarf2out.c (is_naming_typedef_decl): New function.
11876         (gen_tagged_type_die): Split out of ...
11877         (gen_type_die_with_usage): ... this function. When an anonymous
11878         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11879         is emitted for the typedef.
11880         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11881         anonymous tagged types.
11882
11883 2010-05-27  Jason Merrill  <jason@redhat.com>
11884
11885         * print-tree.c (debug_vec_tree): New fn.
11886         (print_vec_tree): New fn.
11887         * tree.h: Declare them.
11888         * gdbinit.in (pvt): New command.
11889
11890         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
11891
11892         * gdbinit.in (pdd): New command.
11893
11894 2010-05-27  Jan Hubicka  <jh@suse.cz>
11895
11896         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
11897         (update_caller_keys): Return early if there are no callers;
11898         only update fibheap when decresing the key.
11899         (update_callee_keys): Avoid recursion.
11900         (decide_inlining_of_small_functions): When badness does not match;
11901         re-insert into fibheap.
11902
11903 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
11904
11905         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
11906         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
11907         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
11908         (ALL_HOST_OBJS): Now a union of the above two.
11909         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
11910         all files in ALL_HOST_FRONTEND_OBJS.
11911         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
11912
11913         * c-common.c: Pretend to be a backend file by undefining
11914         IN_GCC_FRONTEND (still need rtl.h here).
11915
11916 2010-05-27  Jan Hubicka  <jh@suse.cz>
11917
11918         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
11919         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
11920
11921 2010-05-27  Jan Hubicka  <jh@suse.cz>
11922
11923         * sched-ebb.c: Rename struct deps to struct deps_desc.
11924         * ddg.c: Likewise.
11925         * sel-sched-ir.c: Likewise.
11926         * sched-deps.c: Likewise.
11927         * sched-int.h: Likewise.
11928         * sched-rgn.c: Likewise.
11929
11930 2010-05-27  Jon Beniston <jon@beniston.com>
11931
11932         PR 43726
11933         * config/lm32/lm32.h: Remove definition of 
11934         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
11935
11936 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11937
11938         PR lto/44230
11939         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
11940
11941 2010-05-27  Richard Guenther  <rguenther@suse.de>
11942
11943         PR tree-optimization/44284
11944         * tree-vect-stmts.c (vectorizable_assignment): Handle
11945         sign-changing conversions as simple copy.
11946
11947 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11948
11949         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
11950         Bionic C library.
11951         (__gthread_active_p): Check for pthread_create if compiling against
11952         Bionic C library.
11953
11954 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11955
11956         Support compilation for Android platform.  Reimplement -mandroid.
11957
11958         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
11959         (*android*): Set ANDROID_DEFAULT.
11960         (arm*-*-linux*): Include linux-android.h.
11961         (arm*-*-eabi*): Don't include previous -mandroid implementation.
11962         * config/arm/eabi.h: Remove, move Android-specific parts ...
11963         * config/linux-android.h: ... here.  New file.
11964         * config/arm/eabi.opt: Rename to ...
11965         * config/linux-android.opt: ... this.
11966         (mandroid): Allow -mno-android option.  Initialize based on
11967         ANDROID_DEFAULT.
11968         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
11969         Move logic to corresponding LINUX_TARGET_* macros.
11970         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
11971         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
11972         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
11973         Android definitions.
11974         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
11975         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
11976         Document.
11977
11978 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11979
11980         Add support for Bionic C library
11981
11982         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
11983         macro.
11984         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
11985         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
11986
11987         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
11988         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
11989         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
11990         to support multiple C libraries.  Handle Bionic.
11991         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
11992         (BIONIC_DYNAMIC_LINKER64): Define.
11993         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
11994         Update.
11995         (TARGET_HAS_SINCOS): Enable for Bionic.
11996
11997         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
11998         the last option specified on command line take effect.
11999         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12000         (mbionic): New.
12001         (mglibc, muclibc): Update.
12002
12003         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12004         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12005         DEFAULT_LIBC.
12006
12007         * doc/invoke.texi (-mglibc, -muclibc): Update.
12008         (-mbionic): Document.
12009
12010 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12011
12012         * c-common.h (c_register_addr_space): Add prototype.
12013         (ADDR_SPACE_KEYWORD): Remove.
12014         * c-common.c (c_register_addr_space): New function.
12015         (c_addr_space_name): Reimplement.
12016         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12017
12018         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12019         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12020
12021         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12022         Remove TARGET_ADDR_SPACE_KEYWORDS.
12023
12024 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12025
12026         * input.c: New file.
12027         * input.h (main_input_filename): Move declaration to toplev.h.
12028         * toplev.c (input_location, line_table): Move to input.c
12029         * toplev.h (main_input_filename): Move declaration from input.h.
12030         * tree.c (expand_location): Move to input.c.
12031         * Makefile.in (OBJS-common): Add input.o.
12032         (input.o): Add dependencies.
12033
12034 2010-05-27  Richard Guenther  <rguenther@suse.de>
12035
12036         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12037         for non-existant files.
12038         (fork_execute): Mark args_name file as deleted.
12039
12040 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12041
12042         PR bootstrp/44287
12043         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12044         (narrow_signed_type): Likewise.
12045
12046 2010-05-26  Jan Hubicka  <jh@suse.cz>
12047
12048         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12049         edge only when checking is enabled; check using former_clone_of;
12050         check inline clones too.
12051         (cgraph_materialize_clone): Record former_clone_of pointer.
12052         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12053         combining redirections; dump args_to_skip bitmap
12054         (cgraph_materialize_all_clones): Do no redirection here.
12055         * ipa-inline.c (inline_transform): Do redirection here.
12056         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12057         cheking only).
12058
12059 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12060
12061         * config/avr/avr-c.c: Do not include regs.h.
12062         Include cpplib.h for cpp_define and tree.h for c-common.h.
12063         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12064         * config/avr/t-avr: Fix dependencies for avr-c.o.
12065
12066 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12067
12068         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12069         string instead of SYMBOL_REF rtx.
12070         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12071         * libfuncs.h: ...to here.  Adjust for explow.c change.
12072
12073 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12074
12075         * pretty-print.c: Don't include ggc.h.
12076         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12077         (identifier_to_locale): Use them for allocation.
12078         * pretty-print.h (identifier_to_locale_alloc,
12079         identifier_to_locale_free): Declare.
12080         * toplev.c (alloc_for_identifier_to_locale): New.
12081         (general_init): Set identifier_to_locale_alloc and
12082         identifier_to_locale_free.
12083         * Makefile.in (pretty-print.o): Update dependencies.
12084
12085 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12086
12087         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12088         pointer types if they have different alignment or mode.
12089
12090 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
12091
12092         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12093         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12094         * config/sparc/sparc-protos.h (function_value): Remove declaration.
12095         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
12096         sparc_function_value_regno_p): New functions.
12097         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12098         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12099         (function_value): Rename to...
12100         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
12101         argument to 'outgoing'.
12102         (function_arg_record_value, function_arg_union_value,
12103         function_arg_vector_value): Update comment.
12104
12105 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12106
12107         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
12108         (fde_needed_for_eh_p): New predicate.
12109         (output_call_frame_info): Use it throughout to decide whether FDEs
12110         are needed for EH purpose.
12111         (dwarf2out_begin_prologue): Reorder assignments.
12112
12113 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12114
12115         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
12116         special case loop->header.
12117         (is_predicated): New.
12118         (if_convertible_loop_p): Call it.
12119
12120 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12121
12122         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
12123         iterator in parameter.  Do not generate code during the analysis.
12124         (tree_if_convert_cond_stmt): Removed.
12125         (tree_if_convert_stmt): Removed.
12126         (predicate_bbs): New.
12127         (if_convertible_loop_p): Call predicate_bbs.
12128         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
12129         now contains all the analysis part.
12130
12131 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12132
12133         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
12134         statements in the analysis part.
12135         (tree_if_convert_stmt): Update comment.
12136         (remove_conditions_and_labels): New.
12137         (combine_blocks): Call remove_conditions_and_labels.
12138         (tree_if_conversion): Update comment.
12139
12140 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12141
12142         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
12143         than 2 predecessors or more than 2 successors.
12144
12145 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12146
12147         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
12148         of loops in which the data dependence analysis fails.
12149
12150 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12151
12152         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
12153         CDI_POST_DOMINATORS.
12154         (tree_if_conversion): Same.
12155
12156 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12157
12158         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
12159
12160 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
12161
12162         * tree-if-conv.c: Update copyright years.  Fix comments.
12163         Fix indentation.
12164
12165 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
12166
12167         * builtin-types.def (BT_INT128): New primitive type.
12168         (BT_UINT128): Likewise.
12169         * c-common.c (c_common_r): Add __int128 keyword.
12170         (c_common_type_for_size): Handle __int128.
12171         (c_common_type_for_mode): Likewise.
12172         (c_common_signed_or_unsigned_type): Likewise.
12173         (c_common_nodes_and_builtins): Add builtin type
12174         if target supports 128-bit integer scalar.
12175         * c-common.h (enum rid): Add RID_INT128.
12176         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
12177         if target supports 128-bit integer scalar.
12178         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
12179         (finish_declspecs): Likewise.
12180         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
12181         (c_token_starts_declspecs): Likewise.
12182         (c_parser_declspecs): Likewise.
12183         (c_parser_attributes): Likewise.
12184         (c_parser_objc_selector): Likewise.
12185         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
12186         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
12187         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
12188         * tree.c (make_or_reuse_type): Likewise.
12189         (make_unsigned_type): Likewise.
12190         (build_common_tree_nodes_2): Likewise.
12191         * tree.h (enum integer_type_kind): Add itk_int128 and
12192         itk_unsigned_int128.
12193         (int128_integer_type_node): New define.
12194         (int128_unsigned_type_node): New define.
12195         * doc/extend.texi: Add documentation about __int128 type.
12196
12197 2010-05-26  Richard Guenther  <rguenther@suse.de>
12198
12199         * tree-ssa-sccvn.c (copy_nary): Adjust.
12200         (copy_phis): Rename to ...
12201         (copy_phi): ... this.  Adjust.
12202         (copy_references): Rename to ...
12203         (copy_reference): ... this.  Adjust.
12204         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
12205         result into the valid table.
12206
12207 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12208
12209         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
12210         insn-config.h, insn-codes.h, recog.h, and optabs.h.
12211
12212 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12213
12214         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
12215
12216 2010-05-26  Richard Guenther  <rguenther@suse.de>
12217
12218         * opts.c (common_handle_option): Handle OPT_Ofast.
12219
12220 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12221
12222         * diagnostic.c: Don't include opts.h.
12223         (permissive_error_option): Define.
12224         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
12225         for classify_diagnostic.  Don't use memset for
12226         classify_diagnostic.  Initialize new and recently added fields.
12227         (diagnostic_classify_diagnostic): Use context->n_opts instead of
12228         N_OPTS.
12229         (diagnostic_report_diagnostic): Pass context parameter to
12230         diagnostic_report_warnings_p.  Use option_enabled and option_name
12231         hooks from context.
12232         (emit_diagnostic): Use permissive_error_option.
12233         (permerror): Likewise.
12234         * diagnostic.h: Don't include options.h.
12235         (struct diagnostic_context): Add n_opts, opt_permissive,
12236         inhibit_warnings, warn_system_headers, option_enabled and
12237         option_name fields.  Change classify_diagnostic to a pointer.
12238         * opts-diagnostic.h: New file.
12239         * opts.c: Include opts-diagnostic.h.
12240         (common_handle_option): Set global_dc fields for -Wfatal-errors,
12241         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
12242         (option_name): New function.
12243         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
12244         (c_common_handle_option): Set global_dc->permissive for
12245         -fpermissive.
12246         * c-common.c (c_cpp_error): Save and restore
12247         global_dc->warn_system_headers, not variable warn_system_headers.
12248         * toplev.c: Include opts-diagnostic.h.
12249         (general_init): Update call to diagnostic_initialize.  Set
12250         global_dc->show_column, global_dc->option_enabled and
12251         global_dc->option_name.
12252         (process_options): Don't set global_dc fields here.
12253         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
12254         (diagnostic.o, opts.o, toplev.o): Update dependencies.
12255
12256 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
12257
12258         * config/picochip/picochip.md (movsi): Split a movsi from a
12259         const after reload.
12260
12261 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12262
12263         * ggc-zone.c: Update copyright year.
12264         (poison_region): Mark memory for Valgrind as undefined before
12265         memset () call and inaccessible afterwards.
12266         (ggc_pch_total_size): Change type of i to int.
12267
12268 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12269
12270         * ggc-common.c (ggc_free_overhead): Allow empty slot.
12271
12272 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12273
12274         * ggc-common.c: Update copyright year.
12275         (ggc_rlimit_bound): Remove prototype.  Compile only if
12276         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
12277         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
12278         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
12279         (ggc_min_heapsize_heuristic): Likewise.
12280
12281 2010-05-26  Richard Guenther  <rguenther@suse.de>
12282
12283         PR rtl-optimization/44164
12284         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
12285         no-common access-path disambiguation.
12286         (indirect_ref_may_alias_decl_p): Adjust.
12287         (indirect_refs_may_alias_p): Likewise.
12288         (refs_may_alias_p_1): Likewise.
12289
12290 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12291
12292         * c-typeck.c: Do not include expr.h.
12293
12294 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12295
12296         * rtl.h (decl_default_tls_model): Move prototype from here...
12297         * output.h: ...to here.
12298         * c-decl.c: Do not include rtl.h.
12299         * c-pragma.c: Likewise.
12300         * c-parser.c: Likewise.
12301         * c-gimplify.c: Likewise.  And also not hard-reg-set.
12302         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
12303         FIXME note for it.  Add a FIXME note for expr.h.
12304         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
12305         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
12306         defined.
12307
12308 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
12309
12310         PR target/44199
12311         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
12312         or total_size is larger than red zone size for non-V4 ABI, emit a
12313         stack_tie resp. frame_tie insn before stack pointer restore.
12314         * config/rs6000/rs6000.md (frame_tie): New insn.
12315
12316 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12317
12318         * function.h (struct function): Add can_throw_non_call_exceptions bit.
12319         * lto-streamer-in.c (input_function): Stream it in.
12320         * lto-streamer-out.c (output_function): Stream it out.
12321         * function.c (allocate_struct_function): Set it.
12322         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
12323         for flag_non_call_exceptions.
12324         * cfgbuild.c (control_flow_insn_p): Likewise.
12325         (make_edges): Likewise.
12326         * cfgexpand.c (expand_stack_alignment): Likewise.
12327         * combine.c (distribute_notes): Likewise.
12328         * cse.c (cse_extended_basic_block): Likewise.
12329         * except.c (insn_could_throw_p): Likewise.
12330         * gcse.c (simple_mem): Likewise.
12331         * ipa-pure-const.c (check_call): Likewise.
12332         (check_stmt ): Likewise.
12333         * lower-subreg.c (lower-subreg.c): Likewise.
12334         * optabs.c (emit_libcall_block): Likewise.
12335         (prepare_cmp_insn): Likewise.
12336         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
12337         * postreload.c (rest_of_handle_postreload): Likewise.
12338         * reload1.c (reload_as_needed): Likewise.
12339         (emit_input_reload_insns): Likewise.
12340         (emit_output_reload_insns): Likewise.
12341         (fixup_abnormal_edges): Likewise.
12342         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
12343         * store-motion.c (find_moveable_store): Likewise.
12344         * tree-eh.c (stmt_could_throw_p): Likewise.
12345         (tree_could_throw_p): Likewise.
12346         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12347         * config/arm/arm.c (arm_expand_prologue): Likewise.
12348         (thumb1_expand_prologue): Likewise.
12349         * config/rx/rx.md (cbranchsf4): Likewise.
12350         (cmpsf): Likewise.
12351         * config/s390/s390.c (s390_emit_prologue): Likewise.
12352         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
12353         (inline_forbidden_into_p): New predicate.
12354         (expand_call_inline): Use it to forbid inlining.
12355         (tree_can_inline_p): Likewise.
12356
12357 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12358
12359         * config/i386/i386-c.c: Do not include rtl.h.
12360         * config/i386/t-i386: Update dependencies.
12361
12362 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12363
12364         * attribs.c: Do not include rtl.h.
12365         * Makefile.in: Update dependencies.
12366
12367 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
12368
12369         * double-int.h (double_int_and): New.
12370         * combine.c (try_combine): Clean up, use double_int_* and
12371         immed_double_int_const functions.
12372
12373 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12374
12375         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
12376         stderr to /dev/null instead of grep -q.
12377         * configure: Regenerate.
12378
12379 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12380
12381         * Makefile.in (EXCEPT_H): Fix typo.
12382
12383 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
12384
12385         * ira-build.c (update_conflict_hard_reg_costs): New.
12386         (ira_build): Call update_conflict_hard_reg_costs.
12387
12388 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12389
12390         PR debug/41371
12391         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
12392         ENABLE_CHECKING.
12393         (intersect_loc_chains): Walk the s2var's loc_chain together
12394         with s1node chain as long as the locations are equal, don't
12395         call find_loc_in_1pdv in that case.
12396
12397         PR debug/42801
12398         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
12399         (copy_bind_expr): ... instead of here.
12400         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
12401         if the block hasn't been remapped.
12402         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
12403         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
12404
12405 2010-05-25  Richard Guenther  <rguenther@suse.de>
12406
12407         PR middle-end/44069
12408         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
12409         out-of-bounds array accesses.
12410
12411 2010-05-25  Richard Guenther  <rguenther@suse.de>
12412
12413         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
12414         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
12415         (run_gcc): Re-organize to make cleanup easier.
12416
12417 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12418
12419         * config/s390/s390.c (optimization_options): Fix and move the
12420         flag_prefetch_loop_arrays override ...
12421         (override_options): ... here.
12422
12423 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
12424
12425         * diagnostic.c: Don't include plugin.h.
12426         (diagnostic_report_diagnostic): Don't handle plugins specially
12427         here.  Pass context to internal_error callback.
12428         * diagnostic.h (struct diagnostic_context): Add context parameter
12429         to internal_error callback.
12430         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
12431         * plugin.h (struct diagnostic_context): Declare.
12432         (warn_if_plugins, plugins_internal_error_function): Declare.
12433         * toplev.c (general_init): Set global_dc->internal_error.
12434         * Makefile.in (diagnostic.o): Update dependencies.
12435
12436 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
12437
12438         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
12439         * config/rs6000/t-darwin64: New.
12440         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
12441         build crt2.
12442
12443 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
12444
12445         PR 44203
12446         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
12447         match the original (and intended) behaviour before r159557.  This
12448         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
12449         in two ways.
12450
12451 2010-05-25  Richard Guenther  <rguenther@suse.de>
12452
12453         * doc/invoke.texi: Document -Ofast.
12454         * target.h (struct gcc_target): Add handle_ofast.
12455         * target-def.h (TARGET_HANDLE_OFAST): Add.
12456         (TARGET_INITIALIZER): Adjust.
12457         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
12458         * common.opt (Ofast): Add.
12459
12460 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
12461
12462         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
12463         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
12464
12465 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
12466
12467         PR target/43610
12468         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
12469         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
12470         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
12471         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
12472
12473 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
12474
12475         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
12476         DW_OP_minus with negated offset instead of DW_OP_plus.
12477         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
12478
12479 2010-05-25  Wei Guozhi  <carrot@google.com>
12480
12481         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
12482         tst instruction and a new alternative.
12483         * config/arm/constraints.md (Pu): New constraint.
12484
12485 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
12486
12487         * function.c (assign_stack_local_1): Initialize variable
12488         to avoid warning when bootstrapping at -O3.
12489
12490 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
12491
12492         * configure.ac (all_lang_makefiles): Remove everything related to it.
12493         * configure: Regenerate.
12494         * Makefile.in: Fix reference to ada Make-lang.in.
12495         Remove support for LANG_MAKEFILES.
12496
12497 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
12498             Sandra Loosemore  <sandra@codesourcery.com>
12499
12500         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
12501         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
12502         description.  Add arm_neon_fp16_ok.
12503         (Add Options): Add arm_neon and arm_neon_fp16.
12504
12505 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
12506
12507         * diagnostic.c: Don't include flags.h.
12508         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
12509         context parameters.  Check flags in the context passed as a parameter.
12510         (diagnostic_build_prefix): Add context parameter.  Check
12511         show_column flag in context.
12512         (diagnostic_action_after_output): Check fatal_errors flag in context.
12513         (diagnostic_report_current_module): Check show_column flag in context.
12514         (default_diagnostic_starter): Update call to
12515         diagnostic_build_prefix.
12516         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
12517         (emit_diagnostic): Pass context to permissive_error_kind.
12518         (permerror): Pass context to permissive_error_kind.
12519         * diagnostic.h (struct diagnostic_context): Add show_column,
12520         pedantic_errors, permissive and fatal_errors fields.
12521         (diagnostic_build_prefix): Update prototype.
12522         * langhooks.c
12523         * toplev.c (process_options): Set flags in global_dc from
12524         flag_show_column, flag_pedantic_errors, flag_permissive,
12525         flag_fatal_errors.
12526         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
12527         to diagnostic_build_prefix.
12528         * Makefile.in (diagnostic.o): Update dependencies.
12529
12530 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12531
12532         * config/i386/ia32intrin.h (__crc32q): Define only if
12533         __SSE4_2__ is defined.
12534
12535 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
12536
12537         PR target/44132
12538         PR middle-end/43602
12539         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
12540         DECL_VISIBILITY_SPECIFIED.
12541         (emutls_decl): Set DECL_PRESERVE_P and copy
12542         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
12543         (emutls_finalize_control_var): New callback.
12544         (emutls_finish): Finalize emutls control variables.
12545         * toplev.c (compile_file): Move the call to emutls_finish ()
12546         before varpool_assemble_pending_decls ().
12547
12548 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
12549
12550         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
12551         added to the preprocessor condition.
12552
12553 2010-05-24  Paul Brook  <paul@codesourcery.com>
12554
12555         * gengtype-lex.l: Add HARD_REG_SET.
12556         * expr.c (expand_expr_real_1): Record writes to hard registers.
12557         * function.c (rtl_data): Add asm_clobbers.
12558         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
12559         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
12560         Use crtl->asm_clobbers.
12561
12562 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12563
12564         * doc/makefile.texi (Makefile): Mention stages 'profile'
12565         and 'feedback' for profiledbootstrap.
12566
12567 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12568
12569         PR target/44245
12570         * config/i386/i386.c (def_builtin): Properly check
12571         OPTION_MASK_ISA_64BIT.
12572
12573 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
12574
12575         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
12576         typedefs with different but compatible types.  Allow duplicate
12577         typedefs with the same type except for pedantic non-C1X, but give
12578         warning for variably modified types.
12579         * c-typeck.c (tagged_types_tu_compatible_p,
12580         function_types_compatible_p, type_lists_compatible_p,
12581         comptypes_internal): Add parameter different_types_p; set
12582         *different_types_p for different but compatible types.  All
12583         callers changed.
12584         (comptypes_check_different_types): New.
12585         * c-tree.h (comptypes_check_different_types): Declare.
12586
12587 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
12588
12589         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
12590         * jump.c: Include basic-block.h.
12591         * profile.c: Likewise.
12592         * tree-profile.c: Likewise.
12593         * coverage.c: Likewise.
12594         * basic-block.h (optimize_function_for_size_p): Move to function.h.
12595         (optimize_function_for_speed_p): Likewise.
12596         * function.h (optimize_function_for_size_p,
12597         optimize_function_for_speed_p): Moved here from basic-block.h.
12598         * Makefile.in: Update dependencies.
12599
12600 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12601
12602         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
12603         before calling make; allow override through $MAKE.
12604         * doc/invoke.texi (Optimize Options): Document override.
12605
12606 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
12607
12608         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
12609         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12610         (rs6000_mode_dependent_address_ptr): Make static.
12611         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12612         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
12613         Remove.
12614
12615 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
12616
12617         PR target/43869
12618         * config/i386/i386.c: Make sure that the correct regparm is passed.
12619
12620 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
12621
12622         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
12623         * sbitmap.c: ...to here to internalize sbitmap element access.
12624         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
12625         Explain why basic-block.h is included.
12626         * function.h: Include tm.h for CUMULATIVE_ARGS.
12627         * Makefile.in: Update dependencies.
12628
12629 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
12630
12631         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
12632         New core types.
12633         * sbitmap.h (struct sbitmap_def): Do not typedef here.
12634         * sbitmap.c: Include sbitmap.h.
12635         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
12636         hard-reg-set.h.  Split everything related to regsets out from here...
12637         * regset.h: ...to here.  New file.
12638         * df.h: Include regset.h and sbitmap.h.
12639         * tree-flow.h: Likewise.
12640         * cfgloop.h: Likewise.
12641         * except.h: Do not include sbitmap.h.  Include hashtab.h.
12642         * cgraph.h: Include vec.h and function.h.
12643         * reload.h (struct insn_chain): Change types of live_throughout
12644         and dead_or_set from regset_head to bitmap_head.
12645         (compute_use_by_pseudos): Be defined also if regset.h is not included.
12646         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
12647         spilled_regs from regset_head to bitmap_head to avoid dependency
12648         in regset.h.
12649         * sel-sched-ir.h: Include regset.h.
12650         * reload.c: Include df.h before reload.h.
12651         * caller-save.c: Likewise.
12652         * reload1.c: Likewise.
12653         * ira.c: Likewise.
12654         (mark_elimination): Update type of r to bitmap, consistent with
12655         DF_LR_IN.
12656         * dominance.c: Include bitmap.h.
12657         * modulo-sched.c: Include df.h.
12658         * cfganal.c: Include bitmap.h and sbitmap.h.
12659         * cfgbuild.c: Include sbitmap.h.
12660         * lcm.c: Include sbitmap.h.
12661         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
12662         * domwalk.c: Include sbitmap.h, exclude ggc.h.
12663         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
12664         * cselib.c: Include bitmap.h.
12665         * tree-optimize.c: Include regset.h.
12666         * stmt.c: Include bitmap.h.
12667         * Makefile.in: Update dependencies.
12668
12669 2010-05-22  Jan Hubicka  <jh@suse.cz>
12670
12671         * cgraph.h (struct varpool_node): Add same_comdat_group.
12672         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
12673         pointer.
12674         (output_varpool): Update call of lto_output_varpool_node.
12675         (input_varpool): Read same_comdat_group pointer.
12676         (input_varpool_1): Fixup same_comdat_group pointer.
12677         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
12678         group is needed, all are.
12679         * varpool.c (varpool_remove_node): Remove node from same comdat group
12680         linklist too.
12681         (varpool_analyze_pending_decls): Walk same comdat groups.
12682
12683 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
12684
12685         * rtl.h (union rtunion_def): Remove rt_bit member.
12686         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
12687         * print-rtl (print_rtx): Do not print the member.
12688         * gengtype.c (adjust_field_rtx_def): Do not handle it.
12689         * gengenrtl.c (type_from_format): Likewise.
12690         (accessor_from_format): Likewise.
12691
12692 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
12693
12694         * dbgcnt.c: Include toplev.h instead of errors.h.
12695         * ira-emit.c: Don't include errors.h.
12696         * ira.c: Include toplev.h instead of errors.h.
12697         * lto-compress.c: Include toplev.h instead of errors.h.
12698         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
12699         ira.o, dbgcnt.o): Update dependencies.
12700
12701 2010-05-22  Richard Guenther  <rguenther@suse.de>
12702
12703         * gimple.c (gimple_types_compatible_p): Check type qualifications
12704         before merging pointer to complete and pointer to incomplete type.
12705         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
12706         we use our own resolution algorithm.  The gold linker plugin
12707         doesn't do the job we want it to do here.
12708
12709 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
12710
12711         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12712         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12713         (sparc_mode_dependent_address_p): New function.
12714
12715 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12716
12717         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
12718
12719         * timevar.c: Do not include any core headers.
12720         (timevar_print): De-i18n-ize.
12721         (print_time): Likewise.
12722         * timevar.h (timevar_push, timevar_pop): Make inline functions.
12723
12724 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
12725
12726         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
12727         langhooks-def.h.
12728         (diagnostic_initialize): Initialize x_data not last_function.
12729         (diagnostic_report_current_function): Move to tree-diagnostic.c.
12730         (default_diagnostic_starter): Call
12731         diagnostic_report_current_module not
12732         diagnostic_report_current_function.
12733         (diagnostic_report_diagnostic): Initialize x_data not
12734         abstract_origin.
12735         (verbatim): Likewise.
12736         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
12737         x_data.
12738         (struct diagnostic_context): Change last_function to x_data.
12739         (diagnostic_auxiliary_data): Replace with
12740         diagnostic_context_auxiliary_data and
12741         diagnostic_info_auxiliary_data.
12742         (diagnostic_last_function_changed, diagnostic_set_last_function,
12743         diagnostic_report_current_function): Move to tree-diagnostic.h.
12744         (print_declaration, dump_generic_node, print_generic_stmt,
12745         print_generic_stmt_indented, print_generic_expr,
12746         print_generic_decl, debug_c_tree, dump_omp_clauses,
12747         print_call_name, debug_generic_expr, debug_generic_stmt,
12748         debug_tree_chain, default_tree_printer): Move to
12749         tree-pretty-print.h.
12750         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
12751         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
12752         gimple-pretty-print.h.
12753         * pretty-print.c: Don't include tree.h
12754         (pp_base_format): Don't handle %K here.
12755         (pp_base_tree_identifier): Move to tree-pretty-print.c.
12756         * pretty-print.h (text_info): Change abstract_origin to x_data.
12757         (pp_tree_identifier, pp_unsupported_tree,
12758         pp_base_tree_identifier): Move to tree-pretty-print.h.
12759         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
12760         tree-pretty-print.h: New files.
12761         * tree-pretty-print.c: Include tree-pretty-print.h.
12762         (percent_K_format): New.  Moved from pretty-print.c.
12763         (pp_base_tree_identifier): Move from pretty-print.c.
12764         * c-objc-common.c: Include tree-pretty-print.h.
12765         (c_tree_printer): Handle %K here.
12766         * langhooks.c: Include tree-diagnostic.h.
12767         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
12768         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
12769         (default_tree_printer): Handle %K using percent_K_format.
12770         (general_init): Use default_tree_diagnostic_starter.
12771         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
12772         (free_lang_data): Use default_tree_diagnostic_starter.
12773         * c-pretty-print.c: Include tree-pretty-print.h.
12774         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12775         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12776         * dwarf2out.c: Include tree-pretty-print.h.
12777         * except.c: Include tree-pretty-print.h.
12778         * gimple-pretty-print.c: Include tree-pretty-print.h and
12779         gimple-pretty-print.h.
12780         * gimplify.c: Include tree-pretty-print.h.
12781         * graphite-poly.c: Include tree-pretty-print.h and
12782         gimple-pretty-print.h.
12783         * ipa-cp.c: Include tree-pretty-print.h.
12784         * ipa-inline.c: Include gimple-pretty-print.h.
12785         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12786         * ipa-pure-const.c: Include gimple-pretty-print.h.
12787         * ipa-struct-reorg.c: Include tree-pretty-print.h and
12788         gimple-pretty-print.h.
12789         * ipa-type-escape.c: Include tree-pretty-print.h.
12790         * print-rtl.c: Include tree-pretty-print.h.
12791         * print-tree.c: Include gimple-pretty-print.h.
12792         * sese.c: Include tree-pretty-print.h.
12793         * tree-affine.c: Include tree-pretty-print.h.
12794         * tree-browser.c: Include tree-pretty-print.h.
12795         * tree-call-cdce.c: Include gimple-pretty-print.h.
12796         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12797         * tree-chrec.c: Include tree-pretty-print.h.
12798         * tree-data-ref.c: Include tree-pretty-print.h and
12799         gimple-pretty-print.h.
12800         * tree-dfa.c: Include tree-pretty-print.h.
12801         * tree-if-conv.c: Include tree-pretty-print.h and
12802         gimple-pretty-print.h.
12803         * tree-inline.c: Include tree-pretty-print.h.
12804         * tree-into-ssa.c: Include tree-pretty-print.h and
12805         gimple-pretty-print.h.
12806         * tree-nrv.c: Include tree-pretty-print.h.
12807         * tree-object-size.c: Include tree-pretty-print.h and
12808         gimple-pretty-print.h.
12809         * tree-outof-ssa.c: Include tree-pretty-print.h and
12810         gimple-pretty-print.h.
12811         * tree-parloops.c: Include tree-pretty-print.h and
12812         gimple-pretty-print.h.
12813         * tree-predcom.c: Include tree-pretty-print.h and
12814         gimple-pretty-print.h.
12815         * tree-scalar-evolution.c: Include tree-pretty-print.h and
12816         gimple-pretty-print.h.
12817         * tree-sra.c: Include tree-pretty-print.h.
12818         * tree-ssa-address.c: Include tree-pretty-print.h.
12819         * tree-ssa-alias.c: Include tree-pretty-print.h.
12820         * tree-ssa-ccp.c: Include tree-pretty-print.h and
12821         gimple-pretty-print.h.
12822         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
12823         * tree-ssa-copy.c: Include tree-pretty-print.h and
12824         gimple-pretty-print.h.
12825         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
12826         * tree-ssa-dce.c: Include tree-pretty-print.h and
12827         gimple-pretty-print.h.
12828         * tree-ssa-dom.c: Include tree-pretty-print.h and
12829         gimple-pretty-print.h.
12830         * tree-ssa-dse.c: Include gimple-pretty-print.h.
12831         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
12832         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
12833         * tree-ssa-live.c: Include tree-pretty-print.h and
12834         gimple-pretty-print.h.
12835         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
12836         gimple-pretty-print.h.
12837         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
12838         gimple-pretty-print.h.
12839         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
12840         gimple-pretty-print.h.
12841         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
12842         gimple-pretty-print.h.
12843         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
12844         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
12845         * tree-ssa-operands.c: Include tree-pretty-print.h and
12846         gimple-pretty-print.h.
12847         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
12848         gimple-pretty-print.h.
12849         * tree-ssa-pre.c: Include tree-pretty-print.h and
12850         gimple-pretty-print.h.
12851         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
12852         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
12853         gimple-pretty-print.h.
12854         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
12855         gimple-pretty-print.h.
12856         * tree-ssa-sink.c: Include gimple-pretty-print.h.
12857         * tree-ssa-ter.c: Include tree-pretty-print.h and
12858         gimple-pretty-print.h.
12859         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
12860         * tree-ssa.c: Include tree-pretty-print.h and
12861         gimple-pretty-print.h.
12862         * tree-stdarg.c: Include gimple-pretty-print.h.
12863         * tree-switch-conversion.c: Include gimple-pretty-print.h.
12864         * tree-tailcall.c: Include tree-pretty-print.h and
12865         gimple-pretty-print.h.
12866         * tree-vect-data-refs.c: Include tree-pretty-print.h and
12867         gimple-pretty-print.h.
12868         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
12869         gimple-pretty-print.h.
12870         * tree-vect-loop.c: Include tree-pretty-print.h and
12871         gimple-pretty-print.h.
12872         * tree-vect-patterns.c: Include gimple-pretty-print.h.
12873         * tree-vect-slp.c: Include tree-pretty-print.h and
12874         gimple-pretty-print.h.
12875         * tree-vect-stmts.c: Include tree-pretty-print.h and
12876         gimple-pretty-print.h.
12877         * tree-vectorizer.c: Include tree-pretty-print.h.
12878         * tree-vrp.c: Include tree-pretty-print.h and
12879         gimple-pretty-print.h.
12880         * value-prof.c: Include tree-pretty-print.h and
12881         gimple-pretty-print.h.
12882         * var-tracking.c: Include tree-pretty-print.h.
12883         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
12884         (tree-diagnostic.o): New dependencies.
12885         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
12886         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
12887         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
12888         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
12889         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
12890         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
12891         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
12892         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
12893         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
12894         tree-ssa-address.o, tree-ssa-loop-niter.o,
12895         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
12896         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
12897         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
12898         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
12899         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
12900         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
12901         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
12902         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
12903         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
12904         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
12905         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
12906         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
12907         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
12908         tree-switch-conversion.o, var-tracking.o, value-prof.o,
12909         cfgexpand.o, pretty-print.o): Update dependencies.
12910
12911 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
12912
12913         * tree-ssa-structalias.c: Remove tm_p.h from include.
12914
12915 2010-05-21  Jeff Law  <law@redhat.com>
12916
12917         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
12918
12919 2010-05-21  Jason Merrill  <jason@redhat.com>
12920
12921         * tree-eh.c (cleanup_is_dead_in): New.
12922         (lower_try_finally): Don't generate a dead cleanup region.
12923         (lower_cleanup): Likewise.
12924
12925 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
12926
12927         PR debug/44223
12928         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
12929         unchain each use from the cyclic next_regno_use chain first.
12930
12931 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12932
12933         * real: Do not include gmp.h, mpfr.h, and mpc.h.
12934         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
12935         (real_value_negate, real_value_abs): New prototypes.
12936         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
12937         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
12938         new include file for interface between MPFR and REAL_VALUE_TYPE.
12939         * real.c: Include realmpfr.h.
12940         (real_arithmetic2): Remove legacy function.
12941         (real_value_negate): New.
12942         (real_value_abs): New.
12943         (mfpr_from_real, real_from_mpfr): Move from here...
12944         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
12945         * builtins.c: Include realmpfr.h.
12946         * fold-const.c: Include realmpfr.h.
12947         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
12948         (fold_negate_const): Likewise.
12949         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
12950         * toplev.c: Include realmpfr.h.
12951         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
12952         and real_value_negate.
12953         * fixed-value.c (check_real_for_fixed_mode): Likewise.
12954         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
12955         (vfp3_const_double_index): Likewise.
12956         (arm_print_operand): Likewise.
12957         * Makefile.in: Update dependencies.
12958
12959 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12960
12961         * config/s390/s390.c (override_options): Increase the default
12962         of max-completely-peel-times.
12963
12964 2010-05-21  Julian Brown  <julian@codesourcery.com>
12965             Mark Mitchell  <mark@codesourcery.com>
12966
12967         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
12968         sibling calls for Thumb-1.
12969         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
12970         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
12971         Thumb-2.
12972         (*call_insn, *call_value_insn): Don't use for Thumb-2.
12973         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
12974         for Thumb-2.
12975         (return): New expander.
12976         (*arm_return): New name for ARM return insn.
12977         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
12978
12979 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
12980
12981         * config.gcc (sparc64-*-rtems*): New target.
12982
12983 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
12984
12985         * tree.c (build_function_decl_skip_args): Fix grammar.
12986         (build_function_type_list_1): Fix typos, adjust formatting.
12987
12988 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12989
12990         * tree.h: Include real.h and fixed-value.h as basic datatypes.
12991         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
12992         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
12993         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
12994         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
12995         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
12996         tree-pretty-print.c, tree-loop-distribution.c,
12997         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
12998         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
12999         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13000         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13001         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13002         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13003         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13004         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13005         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13006         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13007         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13008         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13009         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13010         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13011         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13012         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13013         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13014         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13015         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13016         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13017         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13018         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13019         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13020         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13021         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13022         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13023         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13024         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13025         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13026         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13027         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13028         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13029         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13030         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13031         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13032         config/bfin/bfin.c: Clean up redundant includes.
13033         * Makefile.in: Update accordingly.
13034
13035 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13036
13037         PR middle-end/44204
13038         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13039         statement has no arguments.
13040
13041 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13042
13043         PR/44139
13044         * varasm.c (emutls_decl): Merge attributes to new decl.
13045
13046 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13047
13048         PR middle-end/44101
13049         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13050         around the uniquized constructor if its type requires a conversion.
13051
13052 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13053
13054         PR debug/44205
13055         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13056         at -O0 goto_locus of any of the incoming edges differs from
13057         goto_locus of outgoing edge, or gimple_location of any of the
13058         labels differs.
13059
13060 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
13061
13062         * ira.c (ira_non_ordered_class_hard_regs): Define.
13063         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13064         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13065         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13066         cost of unaligned hard regs when allocating multi-reg pseudos.
13067
13068 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13069
13070         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13071         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13072         for TARGET_NO_FLOAT.
13073         * config/mips/mips.c (mips_file_start): Expand conditional expression
13074         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13075         (mips_override_options): Move -mno-float override -msoft-float and
13076         -mhard-float.
13077         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13078         Condition(TARGET_SUPPORTS_NO_FLOAT).
13079         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13080         __mips_no_float here.
13081         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13082         (TARGET_SUPPORTS_NO_FLOAT): Define.
13083         * config/mips/sdemtk.opt: Delete.
13084
13085 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13086
13087         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13088
13089 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
13090
13091         PR target/43733
13092         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
13093         * configure: Regenerate.
13094         * config.in: Regenerate.
13095         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
13096         instead of sahf only for 64bit targets.
13097
13098 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13099
13100         PR debug/44178
13101         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
13102         setup_ref_regs for DEBUG_INSNs.
13103
13104 2010-05-20  Jan Hubicka  <jh@suse.cz>
13105
13106         PR middle-end/44197
13107         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
13108
13109 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13110
13111         PR bootstrap/43870
13112         * df-scan.c (df_ref_compare): Stabilize sort.
13113
13114 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
13115
13116         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
13117         argument.  Don't use DW_OP_piece if offset is non-zero,
13118         put offset into second DW_OP_bit_piece argument.
13119         (dw_sra_loc_expr): Adjust callers.  For memory expressions
13120         compute offset.
13121
13122 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
13123
13124         PR target/44202
13125         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
13126         settings for 16-bit-constant "addo" alternative.
13127
13128 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
13129
13130         * config/mips/mips-dsp.md (add<DSPV:mode>3,
13131         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
13132
13133         PR target/43764
13134         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
13135         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
13136         Use it.
13137
13138 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
13139
13140         * diagnostic.c (FLOAT, FFS): Don't undefine.
13141         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
13142         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
13143         include ordering.
13144
13145 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13146
13147         * combine.c (propagate_for_debug): Call make_compound_operation
13148         on the source value.
13149         (try_combine): When implementing a split chosen by find_split_point,
13150         either copy i2src or set it to null.  Assert that i2src is not null
13151         before substituting into CALL_INSN_FUNCTION_USAGE.
13152
13153 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
13154
13155         * double-int.h (double_int_ior): New function.
13156         * tree.h (build_int_cst_wide_type): Remove.
13157         * tree.c (build_int_cst_wide_type): Remove.
13158         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
13159         of build_int_cst_wide_type.
13160         * stor-layout.c (set_sizetype): (Ditto.).
13161         * dojump.c (do_jump): Use build_int_cstu instead of
13162         build_int_cst_wide_type.
13163
13164 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13165
13166         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
13167         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
13168         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
13169         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
13170         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
13171         propagate the 'data' argument to copy_tree_r.
13172         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
13173         Propagate 'data' argument to walk_tree.
13174         (copy_if_shared): New function.
13175         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
13176         (unmark_visited): New function.
13177         (unshare_body): Call copy_if_shared instead of doing it manually.
13178         (unvisit_body): Call unmark_visited instead of doing it manually.
13179
13180 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
13181
13182         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
13183         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
13184         * hooks.c: Likewise.
13185         * target-def.h (TARGET_FOLD_BUILTIN): Define to
13186         hook_tree_tree_int_treep_bool_null.
13187         * target.h (struct gcc_target): Update signature of fold_builtin
13188         field.
13189         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
13190         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
13191         instead of the call expression.
13192         (fold_builtin_call_array): Pass n and argarray directly.
13193         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
13194         consing a list.
13195         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
13196         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
13197         `i' and use it in place of `arity'.
13198         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
13199         Dereference `args' directly.
13200         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
13201
13202 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13203
13204         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13205         3dnow, sse3, sse2.
13206         (Directives): Document optional dg-require-effective-target
13207         selector.
13208
13209 2010-05-19  Richard Guenther  <rguenther@suse.de>
13210
13211         PR lto/44196
13212         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
13213
13214 2010-05-19  Richard Guenther  <rguenther@suse.de>
13215
13216         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
13217         * common.opt (fwhopr=): New.
13218         * opts.c (common_handle_option): Handle OPT_fwhopr.
13219         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
13220         * collect2.c (main): Match -fwhopr*.
13221         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
13222         Execute ltrans stage in parallel when jobs is bigger than 1.
13223
13224 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13225
13226         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13227         pentiumpro on Solaris 8/x86 with Sun as.
13228         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
13229         hidden alias bug.
13230         (gcc_cv_as_ix86_quad): Check for .quad directive.
13231         * configure: Regenerate.
13232         * config.in: Regenerate.
13233         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
13234
13235 2010-05-19  Martin Jambor  <mjambor@suse.cz>
13236
13237         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
13238         also for indirect edges.  Actual printing moved...
13239         (ipa_print_node_jump_functions_for_edge): ...here.
13240         (ipa_compute_jump_functions): Renamed to
13241         ipa_compute_jump_functions_for_edge and made static.
13242         (ipa_compute_jump_functions): New function.
13243         (make_edge_direct_to_target): Check if the number of arguments on
13244         the newly direct edge is the same as the number of parametrs of
13245         the callee.
13246         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
13247         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
13248         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13249         analysis functions unconditionally, call the new
13250         ipa_analyze_params_uses on the node instead of every edge.
13251
13252 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
13253
13254         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
13255         to tree.
13256         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
13257         also checks for a constant int vs.  non-constant but
13258         loop-invariant steps.
13259         (find_or_create_group): Change the sort algorithm to only consider
13260         steps that are constant ints.
13261         (idx_analyze_ref): Adopt code to handle a tree instead of a
13262         HOST_WIDE_INT for step.
13263         (gather_memory_references_ref): Handle tree instead of int and be
13264         prepared to see a NULL_TREE.
13265         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
13266         prefetches if the step cannot be calculated at compile time.
13267         (issue_prefetch_ref): Issue prefetches for non-constant but
13268         loop-invariant steps.
13269
13270 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13271
13272         Revert:
13273         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13274
13275         * tree.h (build_call_list): Remove.
13276         * tree.c (build_call_list): Remove.
13277
13278 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
13279
13280         * tree.h (build_call_list): Remove.
13281         * tree.c (build_call_list): Remove.
13282
13283 2010-05-18  Jan Hubicka  <jh@suse.cz>
13284
13285         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
13286
13287 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
13288
13289         PR rtl-optimization/43332
13290         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
13291
13292 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
13293
13294         * tree.h (build_int_cstu): Implement as static inline.
13295         * tree.c (build_int_cstu): Remove function.
13296         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
13297         sign extended.
13298
13299 2010-05-18  Richard Guenther  <rguenther@suse.de>
13300
13301         PR lto/44143
13302         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
13303         (debug): Initialize from -save-temps.
13304         (collect_execute): Print command-line when verbose.
13305         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
13306         for ltrans invocation.  Produce -dumpbase flag again.
13307         (process_args): Remove.
13308         (main): Simplify.
13309         * collect2.c (maybe_run_lto_and_relink): Only pass object
13310         files to lto-wrapper.
13311         * gcc.c (LINK_COMMAND_SPEC): Likewise.
13312
13313 2010-05-18  Jan Hubicka  <jh@suse.cz>
13314
13315         * opts.c (decode_options): Do not disable whopr at ipa_cp.
13316         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
13317
13318 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13319
13320         PR lto/44184
13321         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
13322         in a GIMPLE_ASM.
13323         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
13324         in a GIMPLE_ASM.
13325
13326 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
13327
13328         PR debug/41371
13329         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
13330         rtx_equal_p inline.
13331
13332 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
13333
13334         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
13335         lto-macho as lto_binary_reader.
13336
13337         * darwin.c (darwin_asm_named_section): Do not add assembler comment
13338         after .section directive; just print it before the directive instead.
13339
13340 2010-05-17  Jan Hubicka  <jh@suse.cz>
13341
13342         * cgraph.c (cgraph_create_virtual_clone): Only check
13343         versionable_function_p when not in wpa and checking is enabled.
13344         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
13345         there are no more functions to materialize.
13346
13347 2010-05-17  Jan Hubicka  <jh@suse.cz>
13348
13349         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
13350         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
13351         New functions.
13352         (output_cgraph): Call output_cgraph_opt_summary.
13353         (input_cgrpah): Call input_cgraph_opt_summary.
13354         (output_cgraph_opt_summary_p, output_node_opt_summary,
13355         input_node_opt_summary, input_cgraph_opt_section): New functions.
13356         * lto-section-in.c (lto_section_name): Add cgraphopt.
13357         * tree-inline.c (tree_function_versioning): Handle parm_num.
13358         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
13359         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
13360
13361 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13362
13363         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
13364         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
13365         the insn to prefetch ratio heuristic to loops with known trip count.
13366
13367 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
13368
13369         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
13370         (schedule_prefetches): Do not generate a prefetch if the unroll factor
13371         is far from what is required by the prefetch.
13372
13373 2010-05-17  Jan Hubicka  <jh@suse.cz>
13374
13375         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
13376         (ipcp_estimate_growth): Likewise.
13377         (ipcp_const_param_count): Likewise.
13378         (ipcp_insert_stage): Likewise.
13379         * ipa-prop.c (visit_load_for_mod_analysis): New function.
13380         (visit_store_addr_for_mod_analysis): Set used flag.
13381         (ipa_detect_param_modifications): Set used flag for SSE params;
13382         update use of walk_stmt_load_store_addr_ops.
13383         (ipa_print_node_params): Print used flag.
13384         (ipa_write_node_info): Stream used flag.
13385         (ipa_read_node_info): Likewise.
13386         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
13387         (ipa_is_param_used): New function.
13388         (lto_ipa_fixup_call_notes): Remove unused declaration.
13389
13390 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13391
13392         PR target/44074
13393         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
13394         * configure: Regenerate.
13395         * config.in: Regenerate.
13396         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
13397         !HAVE_AS_IX86_REP_LOCK_PREFIX.
13398         Don't emit whitespace.
13399         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
13400         (*rep_movsi): Likewise.
13401         (*rep_movsi_rex64): Likewise.
13402         (*rep_movqi): Likewise.
13403         (*rep_movqi_rex64): Likewise.
13404         (*rep_stosdi_rex64): Likewise.
13405         (*rep_stossi): Likewise.
13406         (*rep_stossi_rex64): Likewise.
13407         (*rep_stosqi): Likewise.
13408         (*rep_stosqi_rex64): Likewise.
13409         (*cmpstrnqi_nz_1): Use {%;} after repz.
13410         (*cmpstrnqi_nz_rex_1): Likewise.
13411         (*cmpstrnqi_1): Likewise.
13412         (*cmpstrnqi_rex_1): Likewise.
13413         (*strlenqi_1): Use {%;} after repnz.
13414         (*strlenqi_rex_1): Likewise.
13415         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
13416         (*sync_compare_and_swap<mode>): Likewise.
13417         (sync_double_compare_and_swap<mode>): Likewise.
13418         (*sync_double_compare_and_swapdi_pic): Likewise.
13419         (sync_old_add<mode>): Likewise.
13420         (sync_add<mode>): Likewise.
13421         (sync_sub<mode>): Likewise.
13422         (sync_<code><mode>): Likewise.
13423
13424 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13425
13426         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
13427         otr_token and polymorphic.
13428         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
13429         (cgraph_clone_edge): Copy the above fields.
13430         * tree.c (get_binfo_at_offset): New function.
13431         * tree.h (get_binfo_at_offset): Declare.
13432         * ipa-prop.h (enum jump_func_type): Added known_type jump function
13433         type, reordered items, updated comments.
13434         (union jump_func_value): Added base_type field, reordered fields.
13435         (enum ipa_lattice_type): Moved down in the file.
13436         (struct ipa_param_descriptor): New field polymorphic.
13437         (ipa_is_param_polymorphic): New function.
13438         * ipa-prop.c: Include gimple.h and gimple-fold.h.
13439         (ipa_print_node_jump_functions): Print known type jump functions.
13440         (compute_complex_pass_through): Renamed to...
13441         (compute_complex_assign_jump_func): this.
13442         (compute_complex_ancestor_jump_func): New function.
13443         (compute_known_type_jump_func): Likewise.
13444         (compute_scalar_jump_functions): Create known type and complex ancestor
13445         jump functions.
13446         (ipa_note_param_call): New parameter polymorphic, set the corresponding
13447         flag in the call note accordingly.
13448         (ipa_analyze_call_uses): Renamed to...
13449         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
13450         variable var only in the block where it is used.
13451         (ipa_analyze_virtual_call_uses): New function.
13452         (ipa_analyze_call_uses): Likewise.
13453         (combine_known_type_and_ancestor_jfs): Likewise.
13454         (update_jump_functions_after_inlining): Implemented handling of a
13455         number of new jump function types combination.
13456         (print_edge_addition_message): Removed.
13457         (make_edge_direct_to_target): New function.
13458         (try_make_edge_direct_simple_call): Likewise.
13459         (try_make_edge_direct_virtual_call): Likewise.
13460         (update_call_notes_after_inlining): Renamed to...
13461         (update_indirect_edges_after_inlining): this.  Moved edge creation for
13462         indirect calls to try_make_edge_direct_simple_call, also calls
13463         try_make_edge_direct_virtual_call for virtual calls.
13464         (ipa_print_node_params): Changed the header message.
13465         (ipa_write_jump_function): Stream also known type jump functions.
13466         (ipa_read_jump_function): Likewise.
13467         (ipa_write_indirect_edge_info): Stream new fields in
13468         cgraph_indirect_call_info.
13469         (ipa_read_indirect_edge_info): Likewise.
13470         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
13471         GIMPLE_FOLD_H.
13472
13473 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13474
13475         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
13476
13477 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
13478
13479         * tree.h (CALL_EXPR_ARGS): Delete.
13480         (call_expr_arglist): Delete.
13481         * tree.c (call_expr_arglist): Delete.
13482         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
13483         targetm.fold_builtin.
13484         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
13485         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
13486         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
13487         arglist parameter.  Use CALL_EXPR_ARG.
13488         (picochip_expand_builtin_3op): Likewise.
13489         (picochip_expand_builtin_2opvoid): Likewise.
13490         (picochip_expand_array_get): Likewise.
13491         (picochip_expand_array_put): Likewise.
13492         (picochip_expand_array_testport): Likewise.
13493         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
13494         rather than arglist.
13495         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
13496         CALL_EXPR_ARGS.
13497         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
13498         than TREE_VALUE and TREE_CHAIN.
13499         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
13500         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
13501         the arglist.
13502
13503 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
13504
13505         PR bootstrap/42347
13506         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
13507         to have no fallthru edge.
13508
13509         PR middle-end/44102
13510         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
13511         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
13512         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
13513         add BARRIER after previous bb if needed.
13514
13515 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
13516
13517         * tree.c (build_function_type_list_1): Remove bogus assert condition.
13518
13519 2010-05-17  Alan Modra  <amodra@gmail.com>
13520
13521         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
13522         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
13523         with copy_reg rtx param.
13524         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
13525         Correct cases where code for ABI_V4 did not initialise the reg
13526         used to access frame.  Also leave frame_reg_rtx as sp for large
13527         frames that save no regs.
13528
13529 2010-05-17  Martin Jambor  <mjambor@suse.cz>
13530
13531         PR middle-end/44133
13532         * tree-sra.c (create_access_replacement): New parameter rename, mark
13533         the replaement for renaming only when it is true.
13534         (get_access_replacement): Pass true in the rename parameter of
13535         create_access_replacement.
13536         (get_unrenamed_access_replacement): New function.
13537         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
13538         replacement declaration from it.
13539
13540 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
13541
13542         * function.c (try_fit_stack_local, add_frame_space): New static
13543         functions.
13544         (assign_stack_local_1): Use them.  Look for opportunities to use
13545         space previously wasted on alignment.
13546         * function.h (struct frame_space): New.
13547         (struct rtl_data): Add FRAME_SPACE_LIST member.
13548         * reload1.c (something_was_spilled): New static variable.
13549         (alter_reg): Set it.
13550         (reload): Test it in addition to testing if the frame size changed.
13551
13552 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
13553
13554         * config/s390/s390.c: Define sane prefetch settings and activate
13555         flag_prefetch_loop_arrays on -O3.
13556         * config/s390/s390.h: Declare that read can use write prefetch.
13557
13558 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
13559
13560         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
13561         build.
13562
13563 2010-05-16  Jan Hubicka  <jh@suse.cz>
13564
13565         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
13566         function body; do not check stdarg field of struct function.
13567
13568 2010-05-16  Jan Hubicka  <jh@suse.cz>
13569
13570         * cgraph.c (dump_cgraph_node): Dump versionable flag.
13571         * cgraph.h (cgraph_local_info): Add versionable flag.
13572         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
13573         (ipcp_versionable_function_p): Use it.
13574         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
13575         versionable flag.
13576
13577 2010-05-16  Jan Hubicka  <jh@suse.cz>
13578
13579         * cgraph.c (cgraph_clone_node): Take decl argument and insert
13580         clone into hash when it is different from orig.
13581         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
13582         * cgraph.h (cgraph_clone_node): Update prototype.
13583         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
13584         (lto_cgraph_encoder_delete): Delete body map.
13585         (lto_cgraph_encoder_size): Move to header.
13586         (lto_cgraph_encoder_encode_body_p,
13587         lto_set_cgraph_encoder_encode_body): New.
13588         (lto_output_node): Do not take written_decls argument; output clone_of
13589         pointer.
13590         (add_node_to): Add include_body_argument; call
13591         lto_set_cgraph_encoder_encode_body on master of the clone.
13592         (add_references): Update use of add_node_to.
13593         (compute_ltrans_boundary): Likewise.
13594         (output_cgraph): Do not create written_decls bitmap.
13595         (input_node): Take nodes argument; stream in clone_of correctly.
13596         (input_cgraph_1): Update use of input_node.
13597         * lto-streamer-out.c (lto_output): Use encoder info to decide
13598         what bodies to output.
13599         * ipa-inline.c (cgraph_clone_inlined_nodes,
13600         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
13601         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
13602         (lto_cgraph_encoder_size): Define here.
13603         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
13604         Declare.
13605
13606 2010-05-16  Richard Guenther  <rguenther@suse.de>
13607
13608         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
13609         -fipa-type-escape.
13610         * ipa-type-escape.c (gate_type_escape_vars): Run when
13611         -fipa-struct-reorg runs.
13612         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
13613         * common.opt (fipa-type-escape): Remove.
13614
13615 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13616
13617         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
13618         (decode_options): Likewise.
13619         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
13620
13621 2010-05-16  Jan Hubicka  <jh@suse.cz>
13622
13623         * ipa.c (function_and_variable_visibility): Also bring local all
13624         aliases.
13625
13626 2010-05-16  Richard Guenther  <rguenther@suse.de>
13627
13628         * alias.c (nonoverlapping_memrefs_p): Remove use of
13629         IPA type-escape information.
13630
13631 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
13632
13633         * c-common.c (c_common_reswords): Add _Static_assert for C.
13634         * c-parser.c (c_token_starts_declaration,
13635         c_parser_next_token_starts_declaration,
13636         c_parser_static_assert_declaration_no_semi,
13637         c_parser_static_assert_declaration): New.
13638         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
13639         Handle static assertions if static_assert_ok.
13640         (c_parser_external_declaration, c_parser_declaration_or_fndef,
13641         c_parser_compound_statement_nostart, c_parser_label,
13642         c_parser_for_statement, c_parser_objc_methodprotolist,
13643         c_parser_omp_for_loop): All callers of
13644         c_parser_declaration_or_fndef changed.
13645         (c_parser_struct_declaration): Handle static assertions.
13646         (c_parser_compound_statement_nostart): Use
13647         c_parser_next_token_starts_declaration and
13648         c_token_starts_declaration to detect start of declarations.
13649         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
13650         Likewise.
13651
13652 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
13653
13654         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13655         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13656         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13657         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13658         (mmix_function_outgoing_value): Rename to...
13659         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
13660         (mmix_function_value_regno_p): Make static.
13661         (mmix_libcall_value): New function.
13662         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
13663         mmix_function_value_regno_p): Remove declaration.
13664
13665 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
13666
13667         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
13668         BUILT_IN_ALLOCA if stack checking is enabled.
13669
13670 2010-05-16  Richard Guenther  <rguenther@suse.de>
13671
13672         * var-tracking.c (vars_copy_1): Inline ...
13673         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
13674         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
13675         (variable_merge_over_cur): Adjust.  Merge asserts.
13676         (variable_merge_over_src): Likewise.
13677         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
13678         (variable_post_merge_new_vals): Merge asserts.
13679         (variable_post_merge_perm_vals): Likewise.
13680         (find_mem_expr_in_1pdv): Likewise.
13681         (dataflow_set_different_value): Remove.
13682         (onepart_variable_different_p): Merge asserts.
13683         (variable_different_p): Likewise.
13684         (dataflow_set_different_1): Inline ...
13685         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
13686         (emit_notes_for_differences_1): Merge asserts.
13687
13688 2010-05-16  Richard Guenther  <rguenther@suse.de>
13689
13690         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
13691         * optabs.c (libfunc_decl_hash): Likewise.
13692         * varasm.c (emutls_decl): Likewise.
13693
13694 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
13695
13696         * c-decl.c: Don't include gimple.h.
13697         (merge_decls): Do not copy gimple_body.
13698
13699 2010-05-15  Jason Merrill  <jason@redhat.com>
13700
13701         * c.opt: Add -fnothrow-opt.
13702
13703 2010-05-15  Jan Hubicka  <jh@suse.cz>
13704
13705         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
13706         analyzed.
13707         * passes.c (ipa_write_summaries): Write all analyzed nodes.
13708
13709 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
13710
13711         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
13712         * Makefile.in: Add it.
13713         Fix all other Makefile dependencies for changes below.
13714         * tree.h: Include it instead of defining VEC primitives here.
13715         * gimple.h: Likewise.
13716         * rtl.h: Likewise.
13717         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
13718         * except.h: Include vecir.h, break dependence on tree.h.
13719
13720         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
13721         Move from here...
13722         * tree-iterator.c: ...to here.
13723         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
13724
13725         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
13726         tm_p.h.
13727         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
13728         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
13729         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
13730         tree-mudflap.h, and target.h.
13731         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
13732         predict.h, tree-inline.h, gimple.h, and langhooks.h.
13733         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
13734         Add FIXME for why gimple.h is still included (should be unnecessary
13735         since GCC 4.5 gimplification unit-at-a-time).
13736         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
13737         * c-pragma.c: Add FIXME for why function.h needs to be included just
13738         for cfun, at front-end level.
13739         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
13740         Do not include ggc.h, but include vecprim.h for VEC(char).
13741         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
13742         Explain why target.h is included.
13743         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
13744         Explain why gimple.h is included.
13745         * c-ppoutput.c: Do not include tm.h.
13746         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
13747         * c-parses.c: Explain why rtl.h is included, and that this (and only
13748         this) is also why tm.h must be included.
13749         Do not include except.h.
13750         * c-lang.c: Do not include ggc.h.
13751
13752 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
13753
13754         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
13755
13756 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
13757
13758         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
13759         unions by default if those structs and unions have no tags.  Do
13760         not condition anonymous struct and unions handling on flag_iso.
13761         Allow anonymous structs and unions for C1X.
13762         (finish_struct): Do not diagnose lack of named fields when
13763         anonymous structs and unions present for C1X.  Accept flexible
13764         array members in structure with anonymous structs or unions but no
13765         directly named fields.
13766         * doc/extend.texi (Unnamed Fields): Update.
13767
13768 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
13769
13770         * gimple.h (compare_field_offset): Rename into...
13771         (gimple_compare_field_offset): ...this.
13772         * gimple.c (compare_field_offset): Rename into...
13773         (gimple_compare_field_offset): ...this.  Compare the full access if
13774         the offset is self-referential.
13775         (gimple_types_compatible_p): Adjust for above renaming.
13776         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
13777         DECL_NONADDRESSABLE_P flag of fields before merging them.
13778
13779 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
13780
13781         * tree.h (ctor_to_list): Delete.
13782         * tree.c (ctor_to_list): Delete.
13783
13784 2010-05-15  Jan Hubicka  <jh@suse.cz>
13785
13786         * ipa-reference.c: Include toplev.h
13787         (is_proper_for_analysis): Only add to all_module_statics
13788         if it is allocated.
13789         (write_node_summary_p, stream_out_bitmap,
13790         ipa_reference_write_optimization_summary,
13791         ipa_reference_read_optimization_summary): New.
13792         (struct ipa_opt_pass_d pass_ipa_reference): Add
13793         optimization summary streaming.
13794         * lto-cgraph.c (referenced_from_this_partition_p,
13795         reachable_from_this_partition_p): New functions.
13796         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13797         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
13798         * opts.c (decode_options): Enable ipa_reference.
13799         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
13800         * lto-streamer.h (referenced_from_this_partition_p,
13801         reachable_from_this_partition_p): Declare.
13802
13803 2010-05-15  Richard Guenther  <rguenther@suse.de>
13804
13805         PR tree-optimization/44038
13806         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
13807         taking the address of a V_C_E of a constant.
13808
13809 2010-05-14  Jan Hubicka  <jh@suse.cz>
13810
13811         * tree.h (memory_identifier_string): Remove.
13812         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
13813         (ipa_reference_global_vars_info_d): Remove statics_not_read and
13814         statics_not_written.
13815         (ipa_reference_optimization_summary_d): New structure.
13816         (ipa_reference_optimization_summary_t): New type and vector.
13817         (ipa_reference_vars_info_d): Embedd structures instead of using
13818         pointers.
13819         (reference_vars_to_consider): Remove out of GGC space.
13820         (module_statics_escape): Remove.
13821         (global_info_obstack): Rename to ...
13822         (optimization_summary_obstack): ... this one.
13823         (initialization_status_t): Remove.
13824         (memory_identifier_string): Remove.
13825         (get_reference_vars_info): Fix indenting.
13826         (set_reference_vars_info): Likewise.
13827         (get_reference_optimization_summary): New.
13828         (set_reference_optimization_summary): New.
13829         (get_global_reference_vars_info): Remove.
13830         (ipa_reference_get_read_global): Remove.
13831         (ipa_reference_get_written_global): Remove.
13832         (ipa_reference_get_not_read_global): Update.
13833         (ipa_reference_get_not_written_global): Update.
13834         (is_proper_for_analysis): Outlaw addressable.
13835         (propagate_bits): Update for new datastructures.
13836         (analyze_variable): Remove.
13837         (init_function_info): Update for new datastructures.
13838         (clean_function_local_data): Remove.
13839         (clean_function): Remove.
13840         (copy_global_bitmap): Use optimizations_summary_obstack.
13841         (duplicate_node_data): Duplicate optimization summary only.
13842         (remove_node_data): Remove optimization summary only.
13843         (generate_summary): Do not analyze variables; do not compute
13844         module_statics_escape; do not prune solutions by it.
13845         (read_write_all_from_decl): Fix typos in comments.
13846         (propagate): Doscover readonly and nonaddressable first;
13847         update for new datastructures; share global bitmaps.
13848         * ipa-reference.h (ipa_reference_get_read_global,
13849         ipa_reference_get_written_global): Remove.
13850         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
13851         * Makefile.in: Remove ipa-refereference from GT files.
13852
13853 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
13854
13855         PR debug/44112
13856         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
13857         for all SYMBOL_REF_DECLs.
13858
13859 2010-05-14  Jan Hubicka  <jh@suse.cz>
13860
13861         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
13862         (varpool_all_refs_explicit_p): New inline function.
13863         * ipa-reference.c: Update comment.
13864         (module_statics_written): Remove.
13865         (get_static_decl): Remove.
13866         (ipa_init): Do not initialize module_statics_written.
13867         (analyze_function): Likewise.
13868         (generate_summary): Likewise; do not compute module_statics_readonly
13869         and do not update variable flags.
13870         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
13871         * ipa.c: Inlucde flags.h
13872         (cgraph_local_node_p): New.
13873         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
13874         promote functions to local.
13875         (ipa_discover_readonly_nonaddressable_vars): New function.
13876         (function_and_variable_visibility): Use cgraph_local_node_p.
13877         * varpool.c (varpool_finalize_decl): Set force_output for
13878         DECL_PRESERVE_P vars.
13879
13880 2010-05-14  Jan Hubicka  <jh@suse.cz>
13881
13882         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
13883
13884 2010-05-14  Richard Guenther  <rguenther@suse.de>
13885
13886         PR tree-optimization/44119
13887         * tree-ssa-pre.c (eliminate): Properly mark replacement of
13888         a PHI node necessary.
13889
13890 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13891
13892         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
13893
13894 2010-05-14  Jason Merrill  <jason@redhat.com>
13895
13896         PR c++/44127
13897         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
13898         (gimple_call_set_nothrow): New.
13899         * gimple.c (gimple_build_call_from_tree): Call it.
13900         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
13901
13902         PR c++/44127
13903         * gimplify.c (gimplify_seq_add_stmt): No longer static.
13904         * gimple.h: Declare it.
13905         * gimple.c (gimple_build_eh_filter): No ops.
13906
13907 2010-05-14  Jan Hubicka  <jh@suse.cz>
13908
13909         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
13910         nodes already in queue.
13911         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
13912         re-enqueueing node.
13913
13914 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
13915
13916         PR debug/44136
13917         * cfgexpand.c (expand_debug_expr): If non-memory op0
13918         has BLKmode, return NULL.
13919
13920 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
13921
13922         * config.gcc: Add support for --with-cpu option for bdver1.
13923         * config/i386/i386.h (TARGET_BDVER1): New macro.
13924         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
13925         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13926         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
13927         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13928         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
13929         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
13930         (processor_type): Add PROCESSOR_BDVER1.
13931         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
13932         processor_type in config/i386/i386.h.
13933         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
13934         movaps <reg, reg> instead of movapd <reg, reg> when replacing
13935         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
13936         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
13937         to emit packed xor instead of packed double/packed integer
13938         xor for SSE and AVX when moving a zero value.
13939         * config/i386/sse.md: Add check for
13940         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
13941         movapd/movdqa for SSE and AVX.
13942         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
13943         single logical operations i.e and, or and xor instead of packed double
13944         logical operations for SSE and AVX.
13945         * config/i386/i386-c.c (ix86_target_macros_internal):
13946         Add PROCESSOR_BDVER1.
13947         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
13948         (has_fma4, has_xop): New.
13949         * config/i386/i386.c (bdver1_cost): New variable.
13950         (m_BDVER1): New macro.
13951         (m_AMD_MULTIPLE): Add m_BDVER1.
13952         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
13953         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
13954         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
13955         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
13956         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
13957         x86_tune_sse_partial_reg_dependency,
13958         x86_tune_sse_unaligned_load_optimal,
13959         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
13960         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
13961         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
13962         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
13963         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
13964         Enable/disable for bdver1.
13965         (processor_target_table): Add bdver1_cost.
13966         (cpu_names): Add bdver1.
13967         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
13968          processor_alias_table.
13969         (ix86_expand_vector_move_misalign): Change.
13970         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
13971         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
13972         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
13973         of movupd/movdqu for SSE and AVX.
13974         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
13975         (ix86_tune_adjust_cost): Add code for bdver1.
13976         (standard_sse_constant_opcode): Add check for
13977         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
13978         of packed double xor for SSE and AVX.
13979
13980 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
13981
13982         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
13983         result to unsigned.
13984
13985 2010-05-14  Tristan Gingold  <gingold@adacore.com>
13986
13987         * toplev.c (default_debug_hooks): Remove this variable.
13988         (process_options): Remove assignments to default_debug_hooks.
13989
13990 2010-05-14  Martin Jambor  <mjambor@suse.cz>
13991
13992         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
13993         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
13994         * langhooks.h (struct lang_hooks_for_decls): Removed field
13995         fold_obj_type_ref.
13996         * tree.c (free_lang_data): Remove assignment to
13997         lang_hooks.fold_obj_type_ref.
13998         * tree.def (OBJ_TYPE_REF): Update comment.
13999
14000 2010-05-14  Richard Guenther  <rguenther@suse.de>
14001
14002         PR tree-optimization/44124
14003         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14004
14005 2010-05-14  Alan Modra  <amodra@gmail.com>
14006
14007         PR target/44075
14008         * config/rs6000/rs6000.c (struct machine_function): Reorder
14009         fields for better packing.  Add lr_save_state.
14010         (rs6000_ra_ever_killed): Return lr_save_state if set.
14011         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14012
14013 2010-05-13  Jan Hubicka  <jh@suse.cz>
14014
14015         * varpool.c (decide_is_variable_needed): Drop code checking
14016         TREE_SYMBOL_REFERENCED.
14017
14018 2010-05-13  Jan Hubicka  <jh@suse.cz>
14019
14020         * final.c (output_addr_const): Do not call mark_decl_referenced.
14021         * cgraphunit.c (process_function_and_variable_attributes): Use
14022         mark_needed_node dirrectly.
14023         (assemble_thunk): Do not call mark_decl_referenced.
14024
14025 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14026
14027         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14028
14029 2010-05-13  Jeff Law  <law@redhat.com>
14030
14031         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14032         from...
14033         (print_conflicts): Call print_allocno_conflicts.
14034
14035 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14036
14037         PR debug/44104
14038         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14039         if it is NULL.
14040
14041 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14042
14043         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14044         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14045         * config/i386/t-mingw-w32: New.
14046         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14047
14048 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14049
14050         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14051         gimple-fold.c).
14052         * gimple-fold.c (get_base_binfo_for_type): New function.
14053         (gimple_get_relevant_ref_binfo): Likewise.
14054         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14055         (gimple_fold_obj_type_ref): Likewise.
14056         (fold_gimple_call): Simplify condition for folding virtual calls
14057         and call gimple_fold_obj_type_ref.
14058         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14059         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14060
14061 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14062
14063         * config/rs6000/rs6000-protos.h
14064         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14065         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14066         (rs6000_debug_mode_dependent_address)
14067         (rs6000_mode_dependent_address_ptr): Likewise.
14068
14069 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14070
14071         PR debug/43983
14072         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14073         by SRA.
14074         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14075         * tree-sra.c (create_access_replacement): Call unshare_expr before
14076         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14077         * dwarf2out.c: Include tree-flow.h.
14078         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14079         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14080         Handle DW_OP_bit_piece.
14081         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14082         construct_piece_list, adjust_piece_list): New functions.
14083         (add_var_loc_to_decl): Handle SRA optimized variables.
14084         Adjust for var_loc_note to loc field renaming.
14085         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14086         in VAR_LOCATION note.
14087         (new_loc_descr_op_bit_piece): New function.
14088         (dw_sra_loc_expr): New function.
14089         (dw_loc_list): Use it.  Don't handle the last range after the
14090         loop, handle it inside of the loop.  Adjust for var_loc_note
14091         to loc field renaming.
14092         (add_location_or_const_value_attribute): Only special case
14093         single entry loc lists if loc is NOTE_P.  Adjust for
14094         var_loc_note to loc field renaming.
14095         (dwarf2out_var_location): Don't set newloc->var_loc_note
14096         and newloc->next here.
14097
14098 2010-05-12  Jan Hubicka  <jh@suse.cz>
14099
14100         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
14101         flag.
14102         * cgraph.h (cgraph_only_called_directly_p,
14103         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
14104         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
14105         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
14106         (assemble
14107         * ipa.c (cgraph_remove_unreachable_nodes): Use
14108         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
14109         flags.
14110         * tree-inline.c (copy_bb): Check address_taken flag.
14111         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
14112         externally_visible flag.
14113
14114 2010-05-12  Jason Merrill  <jason@redhat.com>
14115
14116         PR bootstrap/44048
14117         PR target/44099
14118         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
14119         * sdbout.c (plain_type_1): Likewise.
14120         * dwarf2out.c (is_base_type): Likewise.
14121         (gen_type_die_with_usage): Likewise.  Generate
14122         DW_TAG_unspecified_type for any LANG_TYPE.
14123
14124 2010-05-12  Jan Hubicka  <jh@suse.cz>
14125
14126         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
14127         indrect edges too.
14128         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
14129         (cgraph_clone_edge): Update.
14130         (cgraph_node_remove_callees): Remove indirect calls too.
14131         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
14132         (cgraph_create_indirect_edge): Update prototype.
14133         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
14134         is_proper_for_analysis.
14135         (add_new_function, visited_nodes, function_insertion_hook_holder,
14136         get_local_reference_vars_info, mark_address_taken, mark_address,
14137         mark_load, mark_store, check_asm_memory_clobber, check_call,
14138         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
14139         (ipa_init): Do not initialize visited_nodes;
14140         function_insertion_hook_holder.
14141         (analyze_variable): Rewrite.
14142         (analyze_function): Rewrite.
14143         (copy_local_bitmap): Remove.
14144         (duplicate_node_dat): Do not duplicate local info.
14145         (generate_summary): Simplify to only walk cgraph.
14146         (write_node_summary_p, ipa_reference_write_summary,
14147         ipa_reference_read_summary): Remove.
14148         (propagate): Do not remove function insertion;
14149         generate summary.
14150         (pass_ipa_reference): NULLify summary handling fields.
14151         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
14152         (input_edge): Input ecf_flags.
14153         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
14154         (update_indirect_edges_after_inlining): Ignore edges with unknown
14155         param.
14156
14157 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
14158
14159         * implicit-zee.c: New file.
14160         * tree-pass.h (pass_implicit_zee): Declare.
14161         * passes.c (init_optimization_passes): Add zee pass.
14162         * common.opt (fzee): New flag.
14163         * timevar.def (TV_ZEE): Define.
14164         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
14165         and beyond.
14166         * Makefile.in (implicit-zee.o): Add new build file.
14167
14168 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14169             Nathan Froyd  <froydnj@codesourcery.com>
14170
14171         * c-common.c (sync_resolve_params): Remove write-only variable.
14172
14173 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
14174
14175         * target.h (struct gcc_target): Add mode_dependent_address_p field.
14176         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14177         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
14178         * targhooks.c (default_mode_dependent_address_p): New function.
14179         * targhooks.h (default_mode_dependent_address_p): Declare function.
14180         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
14181         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
14182         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
14183         target hook. Change return type to bool.
14184         * recog.h (mode_dependent_address_p): Change return type to bool.
14185
14186 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14187             Nathan Froyd  <froydnj@codesourcery.com>
14188
14189         * tree-mudflap.c (build_function_type_0, build_function_type_1,
14190         build_function_type_2, build_function_type_3): Remove.
14191         (mudflap_init): Use build_function_type_list.
14192
14193 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
14194             Nathan Froyd  <froydnj@codesourcery.com>
14195
14196         * coverage.c (build_fn_info_value): Call build_constructor instead of
14197         build_constructor_from_list.
14198         (build_ctr_info_value): Likewise.
14199         (build_gcov_info): Likewise.
14200
14201 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
14202
14203         * tree.c (build_constructor): Compute TREE_CONSTANT for the
14204         resultant constructor.
14205         (build_constructor_single): Don't set TREE_CONSTANT.
14206         (build_constructor_from_list): Don't compute TREE_CONSTANT.
14207
14208 2010-05-12  Jan Hubicka  <jh@suse.cz>
14209
14210         * cgraph.h (struct varpool_node): Add aux.
14211         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
14212         * varpool.c (varpool_remove_node): Do not remove initializer.
14213         (varpool_reset_queue): Export.
14214         (varpool_finalize_decl): Volatile vars are forced to be output.
14215         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
14216         replaced decl.
14217         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
14218         process_references, varpool_can_remove_if_no_refs): New functions.
14219         (cgraph_remove_unreachable_nodes): Handle variables too.
14220
14221 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14222
14223         PR target/44088
14224         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
14225
14226 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
14227
14228         PR middle-end/44085
14229         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
14230         change value of ORT_TASK.
14231         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
14232         (omp_notice_threadprivate_variable): New function.
14233         (omp_notice_variable): Call it for threadprivate variables.
14234         If enclosing ctx is a task, print enclosing task rather than
14235         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
14236         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
14237         if task has untied clause.
14238
14239         PR debug/42278
14240         * dwarf2out.c (base_type_die): Don't add name attribute here.
14241         (modified_type_die): Instead of sizetype use
14242         its underlying original type.  If a DW_TAG_base_type doesn't
14243         have name added, add __unknown__.
14244         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
14245         always call force_type_die instead.
14246
14247 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
14248
14249         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
14250         for __stack_chk_guard.
14251
14252 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14253
14254         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
14255         don't call start_source_file debug hook here...
14256         (finish_options): ... but here, after outputting predefined and
14257         command line defines and undefs.
14258
14259         PR middle-end/44071
14260         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
14261         no fallthru edge.
14262         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
14263         optimizing away empty bb with no successors, move over its
14264         footer chain to fallthru predecessor.
14265         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
14266         (rtl_split_edge): For asm goto call patch_jump_insn even if
14267         splitting fallthru edge.
14268
14269         PR c++/44059
14270         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
14271         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
14272         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
14273         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
14274         on DW.ref.* decls.
14275
14276         PR c++/44062
14277         * c-parser.c (c_parser_expression): Mark LHS of a comma
14278         expression as read if it is a decl, handled component or
14279         COMPOUND_EXPR with that on the RHS.
14280         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
14281         if it is a decl or handled component.
14282
14283 2010-05-11  Jan Hubicka  <jh@suse.cz>
14284
14285         * lto-symtab.c (lto_symtab_free): New function.
14286         * lto-streamer.h (lto_symtab_free): Declare.
14287
14288 2010-05-11  Jan Hubicka  <jh@suse.cz>
14289
14290         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
14291         that if function is needed it is reachable.
14292         (lto_output_node): See if it the function is reachable or referenced.
14293         (output_cgraph): Update call of lto_output_node.
14294         * lto-streamer.h (reachable_from_other_partition_p): Declare.
14295
14296 2010-05-11  Jan Hubicka  <jh@suse.cz>
14297
14298         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
14299         Mark as used.
14300
14301 2010-05-11  Jan Hubicka  <jh@suse.cz>
14302
14303         PR tree-optimize/44063
14304         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
14305         queue.
14306         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
14307         limits.
14308         (estimate_function_body_sizes): Compute sizes even when disregarding.
14309
14310 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
14311
14312         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
14313
14314 2010-05-11  Jan Hubicka  <jh@suse.cz>
14315
14316         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
14317         into every boundary.
14318
14319 2010-05-11  Jan Hubicka  <jh@suse.cz>
14320
14321         * matrix-reorg.c (matrix_reorg): Rebuild edges.
14322
14323 2010-05-11  Jan Hubicka  <jh@suse.cz>
14324
14325         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
14326         lto_streamer_cache_delete): Put nodes into heap.
14327         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
14328         heap.
14329
14330 2010-05-11  Jan Hubicka  <jh@suse.cz>
14331
14332         * cgraphbuild.c (cgraph_rebuild_references): New.
14333         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
14334         out extern inlines.
14335         * cgraph.h (cgraph_rebuild_references): Declare.
14336         * tree-inline.c (tree_function_versioning): Use it.
14337         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
14338
14339 2010-05-11  Jan Hubicka  <jh@suse.cz>
14340
14341         * cgraph.c: Include ipa-utils.h
14342         (cgraph_create_virtual_clone): Update references.
14343         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
14344
14345 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14346
14347         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
14348         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
14349         cache size.
14350
14351 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
14352
14353         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
14354
14355 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
14356
14357         * gcc.c (execute): For -### don't quote arguments that
14358         contain just alphanumerics and _/-. characters.
14359         * doc/invoke.texi: Document that change for -###.
14360
14361         PR debug/44023
14362         * df-problems.c (struct dead_debug): Add to_rescan field.
14363         (dead_debug_init): Clear to_rescan field.
14364         (dead_debug_finish): Rescan all debug insns in to_rescan
14365         bitmap and free the bitmap.
14366         (dead_debug_insert_before): Instead of rescanning debug insns
14367         immediately queue their rescanning until dead_debug_finish.
14368         (df_note_bb_compute): After dead_debug_add do continue instead
14369         of break.
14370
14371 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
14372
14373         PR debug/44028
14374         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
14375         clear also INSN_REG_USE_LIST.
14376
14377 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14378
14379         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
14380
14381 2010-05-10  Jan Hubicka  <jh@suse.cz>
14382
14383         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
14384         commited change.
14385
14386 2010-05-10  Jan Hubicka  <jh@suse.cz>
14387
14388         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
14389         Allocate encoders.
14390         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
14391         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
14392         (lto_streamer_cache_create): Init alloc pool.
14393         (lto_streamer_cache_delete): Free alloc pool.
14394         * lto-streamer.h: Include alloc pool.
14395         (lto_streamer_cache_d): Use alloc pool.
14396         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
14397
14398 2010-05-10  Jan Hubicka  <jh@suse.cz>
14399
14400         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
14401         * cgraphbuild.c: Include except.h
14402         (record_type_list, record_eh_tables): New function.
14403         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
14404
14405 2010-05-10  Jan Hubicka  <jh@suse.cz>
14406
14407         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
14408         __frame_dummy_init_array_entry, force_to_data): Attribute as used
14409         rather than unused.
14410
14411 2010-05-10  Michael Matz  <matz@suse.de>
14412
14413         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
14414         (can_reassociate_p): Use FLOAT_TYPE_P.
14415         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
14416         (vect_force_simple_reduction): ... this.
14417         * tree-parloops.c (gather_scalar_reductions): Use
14418         vect_force_simple_reduction.
14419         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
14420         vect_is_simple_reduction, add modify argument, if true rewrite
14421         "a-b" into "a+(-b)".
14422         (vect_is_simple_reduction, vect_force_simple_reduction): New
14423         functions.
14424         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
14425
14426 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14427             Vladimir Makarov  <vmakarov@redhat.com>
14428
14429         PR rtl-optimization/44012
14430         * ira-build.c (remove_unnecessary_allocnos): Nullify
14431         regno_allocno_map of the removed allocno.
14432
14433 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14434
14435         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
14436         to /dev/null.
14437         * configure: Regenerate.
14438
14439 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14440
14441         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
14442         unused.
14443         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
14444         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
14445         support in Sun ld.
14446         * configure: Regenerate.
14447
14448 2010-05-10  Richard Guenther  <rguenther@suse.de>
14449
14450         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
14451         marked if the entry identifier is marked.
14452
14453 2010-05-10  Richard Guenther  <rguenther@suse.de>
14454
14455         * c-common.c (struct c_common_attributes): Add fnspec attribute.
14456         (handle_fnspec_attribute): New function.
14457         * gimple.h (gimple_call_return_flags): Declare.
14458         (gimple_call_arg_flags): Likewise.
14459         * gimple.c (gimple_call_arg_flags): New function.
14460         (gimple_call_return_flags): Likewise.
14461         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
14462         New argument flags.
14463         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
14464         return value flags.
14465         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
14466         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
14467         main work to ...
14468         (make_heapvar_for): ... this new function.
14469         (handle_rhs_call): Handle fnspec attribute argument specifiers.
14470         (handle_lhs_call): Likewise.
14471         (find_func_aliases): Adjust.
14472
14473 2010-05-10  Richard Guenther  <rguenther@suse.de>
14474
14475         PR tree-optimization/44050
14476         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
14477
14478 2010-05-10  Wei Guozhi  <carrot@google.com>
14479
14480         PR target/42879
14481         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
14482
14483 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
14484
14485         PR c/10676
14486         * c-typeck.c (lookup_field): Take a type directly.  Update
14487         recursive calls.
14488         (build_component_ref): Update call to lookup_field.
14489         (set_init_label): Use lookup_field to find initialized field.
14490         Handle returned list of fields like a sequence of designators.
14491
14492 2010-05-09  Richard Guenther  <rguenther@suse.de>
14493
14494         PR middle-end/44024
14495         * fold-const.c (tree_single_nonzero_warnv_p): Properly
14496         handle &FUNCTION_DECL.
14497
14498 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
14499
14500         PR c/4784
14501         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
14502         structures and unions recursively.
14503         (detect_field_duplicates): Move duplicate detection with a hash to
14504         detect_field_duplicates_hash.  Always use a hash if anonymous
14505         structures or unions are present.
14506         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
14507         give errors.
14508
14509 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14510
14511         PR target/44046
14512         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
14513         detect Atom, Core 2 and Core i7.
14514
14515 2010-05-09  Richard Guenther  <rguenther@suse.de>
14516
14517         * gcc.c (store_arg): Handle temporary file deletion for
14518         joined arguments.
14519
14520 2010-05-09  Richard Guenther  <rguenther@suse.de>
14521
14522         PR middle-end/44043
14523         * ipa-inline.c (estimate_function_body_sizes): Return after
14524         disregarding inline limits.
14525
14526 2010-05-09  Richard Guenther  <rguenther@suse.de>
14527
14528         * gcc.c (store_arg): Revert last change.
14529
14530 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
14531
14532         PR middle-end/28685
14533         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
14534         (optimize_ops_list): Call it.
14535
14536 2010-05-08  Richard Guenther  <rguenther@suse.de>
14537
14538         PR tree-optimization/44030
14539         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
14540         NECESSARY flag if we propagate from a inserted expression.
14541
14542 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
14543
14544         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
14545         domain types as equal if they are both PLACEHOLDER_EXPRs.
14546
14547 2010-05-08  Richard Guenther  <rguenther@suse.de>
14548
14549         * lto-wrapper.c (run_gcc): Remove linker output from
14550         command line for LTRANS invocation.
14551
14552 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14553
14554         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14555         lto-macho as lto_binary_reader.
14556         * target.h (struct gcc_target): New hooks lto_start and lto_end.
14557         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
14558         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
14559         in lto_start and lto_end calls.
14560         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
14561         magic numbers.
14562         (scan_prog_file): Update is_elf_or_coff call.
14563         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
14564
14565         * collect2.c (main): Fix enum comparison.
14566
14567         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
14568         Add prototypes.
14569         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
14570         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
14571         and TARGET_ASM_LTO_END.
14572         * darwin.c: Include obstack.h and lto-streamer.h.
14573         (lto_section_names_offset, lto_section_names_obstack,
14574         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
14575         global variables.
14576         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
14577         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
14578         to a temporary file.
14579         (darwin_asm_lto_end): New function.  Restore asm_out_file.
14580         (darwin_asm_named_section): For LTO sections, replace the name with
14581         the offset of the section name in a string table, and build this
14582         table.
14583         (darwin_file_start): Initialize global vars for LTO support.
14584         (darwin_file_end): If output to asm_out_file was redirected, append it
14585         to the proper asm_out_file here.  Add the section names section.
14586
14587 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14588
14589         * c-pragma.c (pending_weak_d, pending_weak): New.
14590         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
14591         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
14592         handle_pragma_weak): Update the uses of pending_weaks.
14593
14594 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14595
14596         PR documentation/44016
14597         * doc/standards.texi (Standards): Link to unversioned
14598         cxx0x_status.html page.
14599
14600 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
14601
14602         PR target/43708
14603         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
14604         in addition to TREE_USED, to avoid "set but unused" warnings.
14605
14606 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
14607
14608         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
14609         (is_loop_prefetching_profitable): Do not insert prefetches
14610         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
14611         times the prefetch ahead distance.
14612
14613 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
14614
14615         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
14616         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
14617         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
14618         the unroll_factor.
14619
14620 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
14621
14622         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
14623         a diagnostic info when the insn-to-mem ratio is too small.
14624
14625 2010-05-07  Richard Guenther <rguenther@suse.de>
14626
14627         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
14628         the linker plugin.
14629         (store_arg): Queue temp_filename for deletion instead of
14630         the whole argument.
14631
14632 2010-05-07  Richard Guenther  <rguenther@suse.de>
14633
14634         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
14635         (run_gcc): Handle LTRANS phase invocation.
14636         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
14637
14638 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
14639
14640         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
14641         this is also meaningful on PARM_DECLs and RESULT_DECLs.
14642
14643 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14644
14645         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
14646
14647 2010-05-07  Richard Guenther  <rguenther@suse.de>
14648
14649         PR tree-optimization/44020
14650         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
14651         code when PRE is not yet initialized.
14652
14653 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14654
14655         * config/mips/dbxmdebug.h: Remove.
14656         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
14657
14658 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
14659
14660         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
14661         with null pointer and also warn about ordered comparison of zero with
14662         pointer if -Wextra.
14663
14664 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14665
14666         * graphite-blocking.c
14667         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
14668         * graphite-clast-to-gimple.c
14669         (clast_to_gcc_expression): Same.
14670         (precision_for_value): Same.
14671         (precision_for_interval): Same.
14672         (gcc_type_for_interval): Same.
14673         (graphite_create_new_guard): Same.
14674         (compute_bounds_for_level): Same.
14675         (graphite_create_new_loop_guard): Same.
14676         * graphite-interchange.c
14677         (build_linearized_memory_access): Same.
14678         (pdr_stride_in_loop): Same.
14679         (memory_strides_in_loop_1): Same.
14680         (memory_strides_in_loop): Same.
14681         (extend_scattering): Same.
14682         (psct_scattering_dim_for_loop_depth): Same.
14683         (pbb_number_of_iterations): Same.
14684         * graphite-poly.h
14685         (debug_iteration_domains): Same.
14686         * graphite-ppl.c
14687         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14688         (ppl_set_inhomogeneous_gmp): Same.
14689         (ppl_strip_loop): Same.
14690         (ppl_lexico_compare_linear_expressions): Same.
14691         (ppl_read_polyhedron_matrix): Same.
14692         (ppl_max_for_le_pointset): Same.
14693         * graphite-ppl.h
14694         (ppl_read_polyhedron_matrix): Same.
14695         (tree_int_to_gmp): Same.
14696         (gmp_cst_to_tree): Same.
14697         (ppl_set_inhomogeneous): Same.
14698         (ppl_set_inhomogeneous_tree): Same.
14699         (ppl_set_coef): Same.
14700         (ppl_set_coef_tree): Same.
14701         * graphite-sese-to-poly.c
14702         (build_pbb_scattering_polyhedrons): Same.
14703         (build_scop_scattering): Same.
14704         (scan_tree_for_params_right_scev): Same.
14705         (scan_tree_for_params): Same.
14706         (find_params_in_bb): Same.
14707         (find_scop_parameters): Same.
14708         (add_upper_bounds_from_estimated_nit): Same.
14709         (build_loop_iteration_domains): Same.
14710         (add_condition_to_domain): Same.
14711         (pdr_add_memory_accesses): Same.
14712
14713 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14714
14715         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
14716         CLooG's value_* macros to their respective mpz_* counterparts.
14717         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
14718         (graphite_create_new_loop_guard): Same.
14719         * graphite-interchange.c (build_linearized_memory_access): Same.
14720         (pdr_stride_in_loop): Same.
14721         (memory_strides_in_loop_1): Same.
14722         (1st_interchange_profitable_p): Same.
14723         * graphite-poly.c (extend_scattering): Same.
14724         (psct_scattering_dim_for_loop_depth): Same.
14725         (pbb_number_of_iterations): Same.
14726         (pbb_number_of_iterations_at_time): Same.
14727         * graphite-poly.h (new_1st_loop): Same.
14728         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
14729         (oppose_constraint): Same.
14730         (insert_constraint_into_matrix): Same.
14731         (ppl_set_inhomogeneous_gmp): Same.
14732         (ppl_set_coef_gmp): Same.
14733         (ppl_strip_loop): Same.
14734         (ppl_lexico_compare_linear_expressions): Same.
14735         (ppl_max_for_le_pointset): Same.
14736         (ppl_min_for_le_pointset): Same.
14737         (ppl_build_realtion): Same.
14738         * graphite-ppl.h (gmp_cst_to_tree): Same.
14739         (ppl_set_inhomogeneous): Same.
14740         (ppl_set_inhomogeneous_tree): Same.
14741         (ppl_set_coef): Same.
14742         (ppl_set_coef_tree): Same.
14743         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14744         (build_scop_scattering): Same.
14745         (add_value_to_dim): Same.
14746         (scan_tree_for_params_right_scev): Same.
14747         (scan_tree_for_params_int): Same.
14748         (scan_tree_for_params): Same.
14749         (find_params_in_bb): Same.
14750         (find_scop_parameters): Same.
14751         (add_upper_bounds_from_estimated_nit): Same.
14752         (build_loop_iteration_domains): Same.
14753         (create_linear_expr_from_tree): Same.
14754         (add_condition_to_domain): Same.
14755         (pdr_add_memory_accesses): Same.
14756
14757 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
14758             Jason Merrill  <jason@redhat.com>
14759
14760         * c-common.c (c_common_reswords): Add nullptr.
14761         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
14762         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
14763         (gen_type_die_with_usage): Likewise.
14764         * dbxout.c (dbxout_type): Likewise.
14765         * sdbout.c (plain_type_1): Likewise.
14766
14767 2010-05-06  Jason Merrill  <jason@redhat.com>
14768
14769         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
14770         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
14771         ret appropriately.
14772         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
14773
14774         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
14775         stripping WITH_SIZE_EXPR.
14776         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
14777         change.
14778
14779 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14780
14781         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
14782         list of obsolete configurations.
14783         Disabled check for obsolete configurations.
14784         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
14785         Removed support for previous versions.
14786         * config/mips/iris.h: Removed.
14787         * config/mips/iris5.h: Removed.
14788         * config/mips/iris6.h: Merged old iris.h contents.
14789         (TARGET_IRIX): Removed.
14790         (DRIVER_SELF_SPECS): Removed mabi=32.
14791         (IDENT_ASM_OP): Removed undef.
14792         (STARTFILE_SPEC): Removed mabi=32.
14793         (ENDFILE_SPEC): Likewise.
14794         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
14795         (MACHINE_TYPE): Update for IRIX 6.5.
14796         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
14797         TARGET_IRIX by TARGET_IRIX6.
14798         (mips_file_start): Likewise.
14799         (mips_output_external): Remove IRIX 5/6 O32 support.
14800         (mips_output_function_prologue): Likewise.
14801         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
14802         TARGET_IRIX6.
14803         (TARGET_CPU_CPP_BUILTINS): Likewise.
14804         (TARGET_IRIX): Removed.
14805         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
14806         (MULTILIB_DIRNAMES): Removed 32.
14807         (MULTILIB_OSDIRNAMES): Removed ../lib.
14808         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
14809         (Specific, mips-sgi-irix5): Document removal.
14810         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
14811         Remove references to older IRIX 6 releases and the O32 ABI.
14812
14813 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
14814
14815         PR bootstrap/43994
14816         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
14817         instead of DF_REF_REAL_REG.
14818
14819 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
14820
14821         PR target/43888
14822         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
14823         handling to still return true for x64 targets.
14824
14825 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
14826
14827         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
14828
14829 2010-05-06  Jan Hubicka  <jh@suse.cz>
14830
14831         PR tree-optimization/43791
14832         * ipa-inline.c (update_caller_keys): Remove bogus
14833         disregard_inline_limits check.
14834
14835 2010-05-06  Michael Matz  <matz@suse.de>
14836
14837         PR tree-optimization/43984
14838         * tree-ssa-pre.c (inserted_phi_names): Remove.
14839         (inserted_exprs): Change to bitmap.
14840         (create_expression_by_pieces): Set bits, don't append to vector.
14841         (insert_into_preds_of_block): Don't handle inserted_phi_names.
14842         (eliminate): Don't look at inserted_phi_names, remove deleted
14843         insns from inserted_exprs.
14844         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
14845         (init_pre, fini_pre): Allocate and free bitmaps.
14846         (execute_pre): Insert insns on edges before elimination.
14847
14848 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
14849
14850         * tree.c (initializer_zerop): Handle STRING_CST.
14851
14852 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14853
14854         PR 40989
14855         * doc/invoke.texi (Wimplicit): Document as C only.
14856         * opts.c (common_handle_option): Add argument kind.
14857         (handle_option): Rename as read_cmdline_option. Factor out code to...
14858         (handle_option): ... here. New.
14859         (handle_options): Rename as read_cmdline_options.
14860         (decode_options): Update call.
14861         (set_option): Use option index instead of option pointer. Classify
14862         diagnostics correctly.
14863         (enable_warning_as_error): Call handle_option.
14864         * opts.h (set_option): Update declaration.
14865         (handle_option): Declare.
14866         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
14867         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
14868         * c-opts.c (set_Wimplicit): Delete.
14869         (c_family_lang_mask): New static constant.
14870         (c_common_handle_option): Add argument kind. Use handle_option
14871         instead of set_Wimplicit.
14872         (c_common_post_options): warn_implicit and warn_implicit_int
14873         are disabled by default.
14874         * c-common.c (warn_implicit): Do not define here.
14875         * c-common.h (warn_implicit): Do not declare here.
14876         (c_common_handle_option): Update declaration.
14877         * lto-opts.c (lto_reissue_options): Update call to set_option.
14878
14879 2010-05-06  Richard Guenther  <rguenther@suse.de>
14880
14881         PR tree-optimization/43571
14882         * domwalk.c (walk_dominator_tree): Walk the dominator
14883         sons in more optimal order.
14884
14885 2010-05-06  Richard Guenther  <rguenther@suse.de>
14886
14887         PR tree-optimization/43934
14888         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
14889         (stmt_cost): Likewise.
14890         (extract_true_false_args_from_phi): New helper.
14891         (determine_max_movement): For PHI nodes verify we can hoist them
14892         and compute their cost.
14893         (determine_invariantness_stmt): Handle PHI nodes.
14894         (move_computations_stmt): Likewise.  Hoist PHI nodes in
14895         if-converted form using COND_EXPRs.
14896         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
14897         (tree_ssa_lim): Likewise.
14898         * tree-flow.h (tree_ssa_lim): Adjust prototype.
14899         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
14900
14901 2010-05-06  Richard Guenther  <rguenther@suse.de>
14902
14903         PR tree-optimization/43987
14904         * tree-ssa-structalias.c (could_have_pointers): For possibly
14905         address-taken variables force pointers to be recorded.
14906         (create_variable_info_for_1): Likewise.
14907         (push_fields_onto_fieldstack): Pass in wheter all fields
14908         must have pointers.
14909         (find_func_aliases): Query types instead of vars whether
14910         they contain pointers where appropriate.
14911
14912 2010-05-06  Jan Hubicka  <jh@suse.cz>
14913
14914         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
14915         (record_reference, mark_address, mark_load, mark_store): Record
14916         references.
14917         (record_references_in_initializer): Update call of record_references.
14918         (rebuild_cgraph_edges): Remove all references before rebuiding.
14919         * cgraph.c (cgraph_create_node): Clear ref list.
14920         (cgraph_remove_node): Remove references.
14921         (dump_cgraph_node): Dump references.
14922         (cgraph_clone_node): Clone references.
14923         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
14924         (struct cgraph_node, varpool_node): Add ref_lst.
14925         * ipa-ref.c: New file.
14926         * ipa-ref.h: New file.
14927         * ipa-ref-inline.h: New file.
14928         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
14929         (referenced_from_other_partition_p): New function.
14930         (lto_output_varpool_node): Take set arugment; call
14931         referenced_from_other_partition.
14932         (lto_output_ref): New.
14933         (add_references): New.
14934         (output_refs): New.
14935         (output_cgraph): Compute boundary based on references; output refs.
14936         (output_varpool): Accept cgraph_node_set argument.
14937         (input_ref): New.
14938         (input_refs): New.
14939         (input_cgraph): Call input_refs.
14940         * lto-section-in.c (lto_section_name): Add refs.
14941         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
14942         (ipa-ref.o): New file.
14943         * varpool.c (varpool_node): Clear ipa ref list.
14944         (varpool_remove_node): Remove references.
14945         (dump_varpool_node): Dump references.
14946         (varpool_assemble_decl): Only compile finalized ones.
14947         (varpool_extra_name_alias): Initialize ref list.
14948         * lto-streamer.c (lto-get_section_name): Add .refs section.
14949         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
14950         (referenced_from_other_partition_p): Declared.
14951
14952 2010-05-06  Ira Rosen  <irar@il.ibm.com>
14953
14954         PR tree-optimization/43901
14955         * tree-vect-stmts.c (vectorizable_call): Assert that vector
14956         type is not NULL if it's transformation phase, and return
14957         FALSE if it's analysis.
14958         (vectorizable_conversion, vectorizable_operation,
14959         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
14960
14961 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
14962
14963         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14964         Delete.
14965         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14966         New define.
14967         * config/mips/mips-protos.h
14968         (mips_small_register_classes_for_mode_p): Delete prototype.
14969
14970 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
14971
14972         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
14973         * config/arm/arm.c (multiple_operation_profitable_p,
14974         compute_offset_order): New static functions.
14975         (load_multiple_sequence, store_multiple_sequence): Use them.
14976         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
14977         memory offsets, not register numbers.
14978         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
14979
14980 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
14981
14982         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
14983         (get_pending_sizes, put_pending_size, put_pending_sizes):
14984         Update the uses of pending_sizes.
14985         * c-decl.c (store_parm_decls): Likewise.
14986         * c-tree.h (struct c_arg_info): Likewise.
14987         * tree.h: Update the prototype for get_pending_sizes and
14988         put_pending_sizes.
14989
14990 2010-05-05  Jason Merrill  <jason@redhat.com>
14991
14992         PR debug/43370
14993         * c-common.c (handle_aligned_attribute): Respect
14994         ATTR_FLAG_TYPE_IN_PLACE.
14995
14996         PR testsuite/43758
14997         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
14998         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14999         (TARGET_INITIALIZER): Use it.
15000         * c-common.c (attribute_takes_identifier_p): Call it.
15001         * c-common.h: Update prototype.
15002         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15003         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15004
15005 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15006
15007         PR debug/43950
15008         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15009         DW_ID_down_case for Fortran compilation units.
15010
15011 2010-05-05  Jan Hubicka  <jh@suse.cz>
15012
15013         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15014         handle aliases.
15015
15016 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15017
15018         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15019         a variable-sized RESULT_DECL.
15020
15021 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15022
15023         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15024
15025 2010-05-05  Jason Merrill  <jason@redhat.com>
15026
15027         PR c++/43787
15028         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15029         returns GS_OK.
15030         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15031
15032 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15033             Jakub Jelinek  <jakub@redhat.com>
15034
15035         PR debug/43478
15036         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15037         (dead_debug_init, dead_debug_finish): New functions.
15038         (dead_debug_add, dead_debug_insert_before): Likewise.
15039         (df_note_bb_compute): Initialize a dead_debug object, add dead
15040         debug uses to it, insert debug bind insns before death insns,
15041         reset debug insns that refer to pending uses at the end.
15042         * rtl.h (make_debug_expr_from_rtl): New prototype.
15043         * varasm.c (make_debug_expr_from_rtl): New function.
15044
15045 2010-05-05  Jan Hubicka  <jh@suse.cz>
15046
15047         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15048         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15049         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15050         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15051         lto_varpool_encoder_encode_initializer_p,
15052         lto_set_varpool_encoder_encode_initializer): New functions.
15053         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15054         call output_varpool.
15055         (input_varpool_node): Do not always set analyzed.
15056         (input_cgraph_1): Return vector of cgraph nodes.
15057         (input_varpool_1): Return vector of varpools.
15058         (input_cgraph): Free the vectors.
15059         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15060         output only initializers needed.
15061         (lto_output): Only call output_cgraph.
15062         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15063         * lto-section-out.c (lto_new_out_decl_state): Initialize
15064         state->varpool_node_encoder.
15065         * lto-streamer.h (lto_varpool_encoder_d): New.
15066         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15067         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15068         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15069         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15070         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15071         Declare.
15072         (output_varpool, input_varpool): Remove declarations.
15073
15074 2010-05-05  Jan Hubicka  <jh@suse.cz>
15075
15076         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15077         with body can prevail.
15078
15079 2010-05-05  Jan Hubicka  <jh@suse.cz>
15080
15081         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15082         size.
15083
15084 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15085
15086         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15087
15088         * gengtype.h (erro_at_line): Constify pos argument.
15089
15090         * gengtype.c: Include hashtab.h.
15091         (enum gc_used): Document GC_MAYBE_POINTED_TO.
15092         (error_at_line): Constify pos argument.
15093         (do_typedef): Initialize p->opt field.
15094         (get_file_gtfilename): Fix comment typo.
15095         (struct walk_type_data): Constify line field.
15096         (get_output_file_for_structure): New function.
15097         (write_local_func_for_structure): Constify orig_s argument.
15098         Use get_output_file_for_structure.
15099         (write_func_for_structure): Use get_output_file_for_structure.
15100         (INDENT): New define.
15101         (dump_pair, dump_type, dump_type_list, dump_typekind)
15102         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
15103         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
15104         functions.
15105         (seen_types): New variable.
15106         (main): New variable do_dump.  Process "-d" command line option.
15107         Call dump_everything if dump requested.
15108
15109 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15110
15111         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
15112         in a temporary instead of invoking the macro multiple times.
15113         (track_expr_p): Likewise.
15114
15115 2010-05-04  Neil Vachharajani <nvachhar@google.com>
15116
15117         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
15118         per new semantics.
15119         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
15120         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
15121         conditions for printing notes.
15122         * common.opt (-Wcoverage-mismatch): Allow negative, default to
15123         true, update documentation.
15124         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
15125
15126 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
15127
15128         PR c/43981
15129         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
15130         on dimen.
15131
15132 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15133
15134         PR target/43799
15135         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
15136         (*sse_prologue_save_insn1): Likewise.
15137         (SSE prologue save splitter): Likewise.
15138
15139 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15140
15141         * tree.c (free_lang_data_in_one_sizepos): New inline function.
15142         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
15143         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
15144         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
15145         all decls.  Call it on DECL_FIELD_OFFSET of fields.
15146         (find_decls_types_r): Follow DECL_VALUE_EXPR.
15147         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
15148
15149 2010-05-04  Martin Jambor  <mjambor@suse.cz>
15150
15151         * tree-sra.c (build_access_from_expr_1): The first parameter type
15152         changed to simple tree.
15153         (build_access_from_expr): Likewise, gsi parameter was eliminated.
15154         (scan_assign_result): Renamed to assignment_mod_result, enum elements
15155         renamed as well.
15156         (build_accesses_from_assign): Removed all parameters except for a
15157         simple gimple statement.  Now returns a simple bool.
15158         (scan_function): All non-analysis parts moved to separate functions
15159         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
15160         parameters and updated both callers.
15161         (sra_modify_expr): Removed parameter data.
15162         (sra_modify_function_body): New function.
15163         (perform_intra_sra): Call sra_modify_function_body to modify the
15164         function body.
15165         (replace_removed_params_ssa_names): Parameter data changed into
15166         adjustments vector.
15167         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
15168         changed the parameter dont_convert to convert with the opposite
15169         meaning.
15170         (sra_ipa_modify_assign): Parameter data changed into adjustments
15171         vector, return value changed to bool.
15172         (ipa_sra_modify_function_body): New function.
15173         (sra_ipa_reset_debug_stmts): Updated a comment.
15174         (modify_function): Use ipa_sra_modify_function_body to modify function
15175         body.
15176
15177 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15178
15179         PR middle-end/43671
15180         * alias.c (true_dependence): Handle the same VALUE in x and mem.
15181         (canon_true_dependence): Likewise.
15182         (write_dependence_p): Likewise.
15183
15184 2010-05-04  Jan Hubicka  <jh@suse.cz>
15185
15186         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
15187         * cgraphbuild.c: Include ipa-utils.h
15188         (record_reference_ctx): New struct.
15189         (record_reference): Simplify to work on initializers; not statements.
15190         (mark_address, mark_load, mark_store): New.
15191         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15192         walk PHI nodes too.
15193         (record_references_in_initializer): Update use of record_reference.
15194         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
15195         walk PHI nodes too.
15196
15197 2010-05-04  Jan Hubicka  <jh@suse.cz>
15198
15199         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
15200         node will be removed anyway.
15201         (lto_varpool_replace_node): Allow also unanalyzed nodes;
15202         relink aliases of node into prevailing node.
15203         * varpool.c (varpool_remove_node): Remove aliases properly;
15204         when removing node, remove all its aliases too; remove DECL_INITIAL
15205         of removed node; ggc_free the varpool node.
15206
15207 2010-05-04  Richard Guenther  <rguenther@suse.de>
15208
15209         PR tree-optimization/43879
15210         * tree-ssa-structalias.c (alias_get_name): Use
15211         DECL_ASSEMBLER_NAME if available.
15212         (create_function_info_for): Return the varinfo node.
15213         (ipa_pta_execute): Associate same-body aliases and extra names
15214         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
15215
15216 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
15217
15218         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
15219
15220 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
15221
15222         PR bootstrap/43964
15223         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
15224         only if HONOR_REG_ALLOC_ORDER is not defined.
15225
15226 2010-05-04  Richard Guenther  <rguenther@suse.de>
15227
15228         PR tree-optimization/43949
15229         * tree-vrp.c (extract_range_from_binary_expr): Only handle
15230         TRUNC_MOD_EXPR.
15231
15232 2010-04-26  Jason Merrill  <jason@redhat.com>
15233
15234         * c.opt (-fstrict-enums): New.
15235         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
15236
15237 2010-05-03  David Ung <davidu@mips.com>
15238             James E. Wilson  <wilson@codesourcery.com>
15239
15240         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
15241         emit the trap instruction before the divide for TUNE_74K.
15242
15243 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
15244
15245         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
15246         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
15247         based on the above, for new target hook.
15248
15249         * hooks.c (hook_bool_mode_true): New generic hook.
15250         * hooks.h (hook_bool_mode_true): Add prototype.
15251
15252         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
15253         target hook.
15254         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
15255         target hook, set to hook_bool_mode_false.
15256         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
15257         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
15258         with targetm.small_register_classes_for_mode_p.
15259         (find_reusable_reload): Likewise.
15260         (combine_reloads): Likewise.
15261         * reload1.c (reload_as_needed): Likewise.
15262         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
15263         * ifcvt.c (noce_process_if_block, check_cond_move_block,
15264         dead_or_predicable): Likewise.
15265         * regmove.c (optimize_reg_copy_1): Likewise.
15266         * calls.c (prepare_call_address): Likewise.
15267         (precompute_register_parameters): Likewise.
15268
15269         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
15270         hook definition.
15271         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
15272         implementation of the hook that considers all register classes
15273         small except for SH64.
15274         (sh_override_options): Use the new hook.
15275         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
15276         Add prototype.
15277
15278         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
15279         hook definition.
15280         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
15281         implementation of the hook that considers all register classes
15282         small for THUMB1.
15283         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
15284         Add prototype.
15285
15286         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
15287         hook definition.
15288         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
15289         implementation of the hook that considers all register classes
15290         small for MIPS16.
15291         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
15292         Add prototype.
15293
15294         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
15295         hook definition.
15296         * config/m32c/m32c.h: Likewise.
15297         * config/pdp11/pdp11.h: Likewise.
15298         * config/avr/avr.h: Likewise.
15299         * config/xtensa/xtensa.h: Likewise.
15300         * config/m68hc11/m68hc11.h: Likewise.
15301         * config/mn10300/mn10300.h: Likewise.
15302         * config/mcore/mcore.h: Likewise.
15303         * config/h8300/h8300.h: Likewise.
15304         * config/bfin/bfin.h: Likewise.
15305
15306         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
15307         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
15308
15309 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
15310
15311         * double-int.h (tree_to_double_int): Remove macro.
15312         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
15313         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15314         (tree_to_double_int): New function.
15315         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
15316         Move ...
15317         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
15318
15319 2010-05-03  Richard Guenther  <rguenther@suse.de>
15320
15321         PR tree-optimization/43971
15322         * tree-ssa-structalias.c (get_constraint_for_1): Fix
15323         constraints in the !flag_delete_null_pointer_checks case.
15324
15325 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
15326
15327         PR debug/43972
15328         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
15329         result mode matches original rtl mode.
15330
15331 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
15332
15333         PR target/43888
15334         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
15335
15336 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15337
15338         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
15339         when processing flag options.
15340
15341 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15342
15343         * gcov-iov.c (main): Change format string placeholder
15344         from %#08x to 0x%08x.
15345         * genchecksum.c (dosum): Change format string placeholder
15346         from %#02x to 0x%02x.
15347
15348 2010-05-02  Richard Guenther  <rguenther@suse.de>
15349
15350         PR tree-optimization/43879
15351         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
15352
15353 2010-05-02  Bruno Haible  <bruno@clisp.org>
15354
15355         * doc/extend.texi (Function Attributes): Fix a typo.
15356
15357 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15358
15359         Revert:
15360         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
15361         placeholder from 0x%x to %#x.
15362         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15363         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15364         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15365         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15366         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15367         * config/i386/i386.c (ix86_target_string): Ditto.
15368         * config/i386/i386.c (output_pic_addr_const): Ditto.
15369         (print_operand): Ditto.
15370
15371 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
15372
15373         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
15374         placeholder from 0x%x to %#x.
15375         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
15376         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
15377         (ASM_OUTPUT_DEBUG_DATA): Ditto.
15378         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
15379         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
15380         * optc-gen.awk: Ditto.
15381         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
15382         (HOST_WIDE_INT_PRINT_HEX): Ditto.
15383         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
15384         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
15385
15386 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15387
15388         * target.h (struct calls): Add function_value_regno_p field.
15389         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
15390         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
15391         * targhooks.c (default_function_value_regno_p): New function.
15392         * targhooks.h (default_function_value_regno_p): Declare function.
15393         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
15394         * builtins.c. (apply_result_size): (Ditto.).
15395         * combine.c. (likely_spilled_retval_p): (Ditto.).
15396         * mode-switching.c. Include 'target.h'.
15397         (create_pre_exit): Use function_value_regno_p hook.
15398         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
15399         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
15400         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
15401
15402         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
15403         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
15404         (ix86_function_value_regno_p): Declare as static, change argument
15405         type to const unsigned int.
15406         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
15407
15408 2010-05-01  Richard Guenther  <rguenther@suse.de>
15409
15410         PR tree-optimization/43949
15411         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
15412         types.
15413         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
15414
15415 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
15416
15417         * rtl.h (CONST_DOUBLE_P): Define.
15418         (rtx_to_double_int): Declare.
15419         * emit-rtl.c (rtx_to_double_int): New function.
15420         * dwarf2out.c (insert_double): New function.
15421         (loc_descriptor, add_const_value_attribute): Clean up, use
15422         rtx_to_double_int and insert_double functions.
15423
15424 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
15425
15426         * doc/extend.texi (Inline): Add missing return keyword to examples.
15427         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
15428         "command-line".
15429
15430 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
15431
15432         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
15433         the variable part of the offset as well.  Use highest_pow2_factor for
15434         all alignment checks.
15435
15436 2010-04-30  Richard Guenther  <rguenther@suse.de>
15437
15438         PR tree-optimization/43879
15439         * tree-ssa-structalias.c (type_could_have_pointers): Functions
15440         can have pointers.
15441
15442 2010-04-30  Jan Hubicka  <jh@suse.cz>
15443
15444         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
15445         varpool.
15446         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
15447
15448 2010-04-30  Jan Hubicka  <jh@suse.cz>
15449
15450         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
15451         New.
15452         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
15453         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
15454         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
15455         cgraph_node_set_needs_ltrans_p): Remove.
15456
15457 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
15458
15459         * sdbout.c: Include vec.h, do not include varray.h.
15460         (deferred_global_decls, sdbout_global_decl,
15461         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
15462         * toplev.c: Do not include varray.h.
15463         (dump_memory_report): Do not dump VARRAY statistics.
15464         * gengtype.c (open_base_file): Ignore varray.h.
15465         * Makefile.in: Update for abovementioned changes.
15466         Remove all traces of varray.c and varray.h.
15467         * varray.c: Remove file.
15468         * varray.h: Remove file.
15469
15470 2010-04-30  Jan Hubicka  <jh@suse.cz>
15471
15472         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
15473         references.
15474
15475 2010-04-30  Jan Hubicka  <jh@suse.cz>
15476
15477         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
15478         needed.
15479
15480 2010-04-30  Richard Guenther  <rguenther@suse.de>
15481
15482         * tree-ssa-structalias.c (get_constraint_for_1): Generate
15483         constraints for CONSTRUCTOR.
15484
15485 2010-04-30  Richard Guenther  <rguenther@suse.de>
15486
15487         PR lto/43946
15488         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
15489         first after all lowering passes.
15490
15491 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
15492
15493         * toplev.c: Include varray.h for statistics dumping.
15494         * tree.h: Do not declare varray_head_tag.
15495         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
15496         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
15497         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
15498         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
15499         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
15500         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
15501         c-common.c, c-common.h, reg-stack.c, basic-block.h,
15502         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
15503         include varray.h.
15504         * Makefile.in: Update for abovementioned changes.
15505
15506 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
15507
15508         PR debug/43942
15509         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
15510
15511 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
15512
15513         * config/picochip/picochip.c (picochip_legitimize_address): Define.
15514         Use this function to do machine-specific conversion.
15515         (picochip_legitimize_reload_address): Likewise.
15516         (picochip_legitimate_address_p): Check valid base register only if
15517         strict.
15518         (picochip_check_conditional_copy): Check for modw only if opnd is
15519         register.
15520         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
15521         to call the function in c.
15522         * config/picochip/picochip-protos.h
15523         (picochip_legitimize_reload_address): Define.
15524         * config/picochip/picochip.md (supported_compare1): Define.
15525
15526 2010-04-30  Jan Hubicka  <jh@suse.cz>
15527
15528         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
15529         (cgraph_global_info): Remove inlined.
15530         (LTO_cgraph_tag_names): Remove.
15531         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
15532         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
15533         simplify cgraph tags and document.
15534         (lto_output_node): Use only LTO_cgraph_unavail_node and
15535         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
15536         for_functions_valid, global info, process and output flags.
15537         (input_overwrite_node): Initialize estimated stack size and
15538         estimated growth.  Do not read flags we no longer store.
15539         (input_node): Likewise do not read info no longer stored.
15540         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
15541         flag.
15542
15543 2010-04-30  Richard Guenther  <rguenther@suse.de>
15544
15545         PR tree-optimization/43879
15546         * tree-ssa-structalias.c (get_constraint_for_1): Properly
15547         handle non-zero initializers.
15548
15549 2010-04-30  Richard Guenther  <rguenther@suse.de>
15550
15551         * builtins.c (fold_builtin_1): Delete free (0).
15552
15553 2010-04-29  Jan Hubicka  <jh@suse.cz>
15554
15555         * gengtype.c (open_base_files): Add lto-streamer.h
15556         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
15557         (pass_ipa_cp): GGC collect.
15558         * toplev. (compile_file): Do not output symbols.
15559         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
15560         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
15561         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
15562         * lto-section-in.c: Include ggc.h
15563         (lto_new_in_decl_state): Alloc in GGC.
15564         (lto_delete_in_decl_state): Likewise.
15565         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
15566         Collect.
15567
15568 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
15569
15570         PR target/42895
15571         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
15572         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
15573         (HONOR_REG_ALLOC_ORDER): Describe new macro.
15574         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
15575         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
15576         account only if HONOR_REG_ALLOC_ORDER is not defined.
15577         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
15578         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
15579
15580 2010-04-29  Jon Grant  <04@jguk.org>
15581
15582         * collect2.c (vflag): Change type from int to bool.
15583         (debug): Likewise.
15584         (helpflag): New global bool.
15585         (main): Set vflag and debug with boolean, not integer truth values.
15586         Accept new "--help" option and output usage text if found.
15587         * collect2.h (vflag): Update prototype.
15588         (debug): Likewise.
15589
15590 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15591
15592         PR bootstrap/43936
15593         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
15594
15595 2010-04-29  Richard Guenther  <rguenther@suse.de>
15596
15597         PR bootstrap/43935
15598         * plugin.h (invoke_plugin_callbacks): Annotate arguments
15599         with ATTRIBUTE_UNUSED.
15600
15601 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15602
15603         PR target/43921
15604         * config/i386/i386.c (get_some_local_dynamic_name): Replace
15605         INSN_P with NONDEBUG_INSN_P.
15606         (distance_non_agu_define): Likewise.
15607         (distance_agu_use): Likewise.
15608
15609 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
15610
15611         From Dominique d'Humieres <dominiq@lps.ens.fr>
15612         PR bootstrap/43858
15613         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
15614         test_set.
15615
15616 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
15617
15618         * plugin.h (invoke_plugin_callbacks): New inline function.
15619         * plugin.c (flag_plugin_added): New global flag.
15620         (add_new_plugin): Initialize above flag.
15621         (invoke_plugin_callbacks): Rename to ...
15622         (invoke_plugin_callbacks_full): ... this.
15623
15624 2010-04-28  Jan Hubicka  <jh@suse.cz>
15625
15626         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
15627         (lto_varpool_replace_node): New.
15628         (lto_symtab_resolve_symbols): Resolve varpool nodes.
15629         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
15630         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
15631         * cgraph.h (varpool_node_ptr): New type.
15632         (varpool_node_ptr): New vector.
15633         (varpool_node_set_def): New structure.
15634         (varpool_node_set): New type.
15635         (varpool_node_set): New vector.
15636         (varpool_node_set_element_def): New structure.
15637         (varpool_node_set_element, const_varpool_node_set_element): New types.
15638         (varpool_node_set_iterator): New type.
15639         (varpool_node): Add prev pointers, add used_from_other_partition,
15640         in_other_partition.
15641         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
15642         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
15643         varpool_get_node, varpool_remove_node): Declare.
15644         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
15645         varpool_node_set_size): New inlines.
15646         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
15647         * tree-pass.h (varpool_node_set_def): Forward declare.
15648         (ipa_opt_pass_d): Summary writting takes vnode sets too.
15649         (ipa_write_optimization_summaries): Update prototype.
15650         * ipa-cp.c (ipcp_write_summary): Update.
15651         * ipa-reference.c (ipa_reference_write_summary): Update.
15652         * lto-cgraph.c (lto_output_varpool_node): New static function.
15653         (output_varpool): New function.
15654         (input_varpool_node): New static function.
15655         (input_varpool_1): New function.
15656         (input_cgraph): Input varpool.
15657         * ipa-pure-const.c (pure_const_write_summary): Update.
15658         * lto-streamer-out.c (lto_output): Update, output varpool too.
15659         (write_global_stream): Kill WPA hack.
15660         (produce_asm_for_decls): Update.
15661         (output_alias_pair_p): Handle variables.
15662         (output_unreferenced_globals): Output only needed partition of varpool.
15663         * ipa-inline.c (inline_write_summary): Update.
15664         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
15665         cgraph.
15666         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
15667         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
15668         varpool_node_set_new, varpool_node_set_add,
15669         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
15670         debug_varpool_node_set): New functions.
15671         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
15672         (execute_one_pass): Process new decls too.
15673         (ipa_write_summaries_2): Pass around vsets.
15674         (ipa_write_summaries_1): Likewise.
15675         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
15676         to add.
15677         (ipa_write_optimization_summaries_1): Pass around vsets.
15678         (ipa_write_optimization_summaries): Likewise.
15679         * varpool.c (varpool_get_node): New.
15680         (varpool_node): Update doubly linked lists.
15681         (varpool_remove_node): New.
15682         (dump_varpool_node): More dumping.
15683         (varpool_enqueue_needed_node): Update doubly linked lists.
15684         (decide_is_variable_needed): Kill ltrans hack.
15685         (varpool_finalize_decl): Kill lto hack.
15686         (varpool_assemble_decl): Skip decls in other partitions.
15687         (varpool_assemble_pending_decls): Update doubly linkes lists.
15688         (varpool_empty_needed_queue): Likewise.
15689         (varpool_extra_name_alias): Likewise.
15690         * lto-streamer.c (lto_get_section_name): Add vars section.
15691         * lto-streamer.h (lto_section_type): Update.
15692         (output_varpool, input_varpool): Declare.
15693
15694 2010-04-28  Mike Stump  <mikestump@comcast.net>
15695
15696         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
15697
15698 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
15699
15700         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
15701         record or union type with RECORD_OR_UNION_TYPE_P predicate.
15702         (lto_input_ts_type_tree_pointers): Likewise.
15703         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
15704         (lto_output_ts_type_tree_pointers): Likewise.
15705
15706 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
15707
15708         Uniquization of constants at the Tree level
15709         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
15710         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
15711         bit to the end.
15712         (tree_output_constant_def): Declare.
15713         * gimplify.c (gimplify_init_constructor): When using block copy, first
15714         uniquize the constant constructor on the RHS.
15715         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
15716         DECL_IN_CONSTANT_POOL flag.
15717         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
15718         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
15719         constant pool.
15720         (assemble_variable): Deal with symbols belonging to the tree constant
15721         pool.
15722         (get_constant_section): Add ALIGN parameter and simplify.
15723         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
15724         (assemble_constant_contents): Use the expression of the VAR_DECL.
15725         (output_constant_def_contents): Use the alignment of the VAR_DECL.
15726         (tree_output_constant_def): New global function.
15727         (mark_constant): Use the expression of the VAR_DECL.
15728         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
15729         its expression.
15730         (output_object_block): Likewise and assemble the expression.
15731
15732 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
15733
15734         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
15735         hash_tree, eq_tree): New tree hash table.
15736         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
15737         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
15738         lto_orig_address_remove): Reimplement.
15739
15740 2010-04-28  Xinliang David Li  <davidxl@google.com>
15741
15742         PR c/42643
15743         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
15744         (compute_uninit_opnds_pos): New function.
15745         (is_non_loop_exit_postdominating): New function.
15746         (compute_control_dep_chain): New function.
15747         (find_pdom): New function.
15748         (convert_control_dep_chain_into_preds): New function.
15749         (find_predicates): New function.
15750         (find_control_equiv_block): New function.
15751         (collect_phi_def_edges): New function.
15752         (find_def_preds): New function.
15753         (find_dom): New function.
15754         (dump_predicates): New function.
15755         (get_cmp_code): New function.
15756         (is_value_included_in): New function.
15757         (find_matching_predicate_in_rest_chains): New function.
15758         (use_pred_not_overlap_with_undef_path_pred): New function.
15759         (is_use_properly_guarded): New function.
15760         (normalize_cond_1): New function.
15761         (is_and_or_or): New function.
15762         (normalize_cond): New function.
15763         (is_gcond_subset_of): New function.
15764         (is_subset_of_any): New function.
15765         (is_or_set_subset_of): New function.
15766         (is_and_set_subset_of): New function.
15767         (is_norm_cond_subset_of): New function.
15768         (is_pred_expr_subset_of): New function.
15769         (is_pred_chain_subset_of): New function.
15770         (is_included_in): New function.
15771         (is_superset_of): New function.
15772         (find_uninit_use): New function.
15773         (warn_uninitialized_phi): New function.
15774         (compute_possibly_undefined_names): New function.
15775         (ssa_undefined_value_p): New function.
15776         (execute_late_warn_uninitialized): New function.
15777         * tree-ssa.c (ssa_undefined_value_p): Removed.
15778         (warn_uninit): Changed to extern.
15779         (warn_uninitialized_phi): Removed.
15780         (warn_uninitialized_vars): Changed to extern.
15781         (execute_late_warn_uninitialized): Removed
15782         * tree-flow.h: Add new prototypes.
15783         * timevar.def: Add new time variable.
15784         * Makefile.in: Add new build file.
15785
15786 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
15787
15788         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
15789         type if available.
15790
15791 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15792
15793         PR target/22224
15794         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
15795
15796 2010-04-28  Martin Jambor  <mjambor@suse.cz>
15797
15798         * cgraph.h (struct cgraph_node): New field indirect_calls.
15799         (struct cgraph_indirect_call_info): New type.
15800         (struct cgraph_edge): Removed field indirect_call. New fields
15801         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
15802         (cgraph_create_indirect_edge): Declare.
15803         (cgraph_make_edge_direct): Likewise.
15804         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
15805         * ipa-prop.h (struct ipa_param_call_note): Removed.
15806         (struct ipa_node_params): Removed field param_calls.
15807         (ipa_create_all_structures_for_iinln): Declare.
15808         * cgraph.c: Described indirect edges and uids in initial comment.
15809         (cgraph_add_edge_to_call_site_hash): New function.
15810         (cgraph_edge): Search also among the indirect edges, use
15811         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
15812         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
15813         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
15814         site hash.
15815         (initialize_inline_failed): Assign a reason to indirect edges.
15816         (cgraph_create_edge_1): New function.
15817         (cgraph_create_edge): Moved some functionality to
15818         cgraph_create_edge_1.
15819         (cgraph_create_indirect_edge): New function.
15820         (cgraph_edge_remove_callee): Add an assert checking for
15821         non-indirectness.
15822         (cgraph_edge_remove_caller): Special-case indirect edges.
15823         (cgraph_remove_edge): Likewise.
15824         (cgraph_set_edge_callee): New function.
15825         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
15826         (cgraph_make_edge_direct): New function.
15827         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
15828         the declaration of the call statement matches.
15829         (cgraph_node_remove_callees): Special-case indirect edges.
15830         (cgraph_clone_edge): Likewise.
15831         (cgraph_clone_node): Clone also the indirect edges.
15832         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
15833         indirect_call, dump count of indirect_calls edges.
15834         * ipa-prop.c (iinlining_processed_edges): New variable.
15835         (ipa_note_param_call): Create indirect edges instead of
15836         creating notes.  New parameter node.
15837         (ipa_analyze_call_uses): New parameter node, pass it on to
15838         ipa_note_param_call.
15839         (ipa_analyze_stmt_uses): Likewise.
15840         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
15841         (print_edge_addition_message): Work on edges rather than on notes.
15842         (update_call_notes_after_inlining): Likewise, renamed to
15843         update_indirect_edges_after_inlining.
15844         (ipa_create_all_structures_for_iinln): New function.
15845         (ipa_free_node_params_substructures): Do not free notes.
15846         (ipa_edge_duplication_hook): Propagate bits within
15847         iinlining_processed_edges bitmap.
15848         (ipa_node_duplication_hook): Do not duplicate notes.
15849         (free_all_ipa_structures_after_ipa_cp): Renamed to
15850         ipa_free_all_structures_after_ipa_cp.
15851         (free_all_ipa_structures_after_iinln): Renamed to
15852         ipa_free_all_structures_after_iinln.
15853         (ipa_write_param_call_note): Removed.
15854         (ipa_read_param_call_note): Removed.
15855         (ipa_write_indirect_edge_info): New function.
15856         (ipa_read_indirect_edge_info): Likewise.
15857         (ipa_write_node_info): Do not stream notes, do stream information
15858         in indirect edges.
15859         (ipa_read_node_info): Likewise.
15860         (lto_ipa_fixup_call_notes): Removed.
15861         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
15862         * ipa-inline.c (pass_ipa_inline): Likewise.
15863         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
15864         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
15865         * tree-inline.c (copy_bb): Removed an unnecessary double check for
15866         is_gimple_call.
15867         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
15868         edges.
15869         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
15870         (output_cgraph): Stream also indirect edges.
15871         (lto_output_edge): Added capability to stream indirect edges.
15872         (input_edge): Likewise.
15873         (input_cgraph_1): Likewise.
15874         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
15875         of indirect edges.
15876
15877 2010-04-28  Richard Guenther  <rguenther@suse.de>
15878
15879         PR tree-optimization/43879
15880         PR tree-optimization/43909
15881         * tree-ssa-structalias.c (struct variable_info): Add
15882         only_restrict_pointers flag.
15883         (new_var_info): Initialize it.  Increment stats.total_vars here.
15884         (create_function_info_for): Do not increment stats.total_vars here.
15885         (get_function_part_constraint): Fix build with C++.
15886         (insert_into_field_list): Remove.
15887         (push_fields_onto_fieldstack): Properly merge fields.
15888         (create_variable_info_for): Split and simplify.
15889         (create_variable_info_for_1): New piece.
15890         (intra_create_variable_infos): Properly make restrict constraints
15891         from parameters.
15892
15893 2010-04-28  Richard Guenther  <rguenther@suse.de>
15894
15895         PR c++/43880
15896         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
15897
15898 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15899             Jan Hubicka <hubicka@ucw.cz>
15900
15901         * doc/invoke.texi (-Wsuggest-attribute=const,
15902         -Wsuggest-attribute=pure): Document.
15903         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
15904         (function_always_visible_to_compiler_p,
15905         suggest_attribute, warn_function_pure, warn_function_const):
15906         New functions.
15907         (check_call): Improve debug info.
15908         (analyze_function): Do not check availability.
15909         (add_new_function): Check availability.
15910         (propagate): Output warnings.
15911         (skip_function_for_local_pure_const): New function.
15912         (local_pure_const): Use it; output warnings.
15913         * common.opt (Wsuggest-attribute=const,
15914         Wsuggest-attribute=pure): New.
15915
15916 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
15917
15918         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
15919         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
15920         or DW_CFA_def_cfa_offset{,_sf}.
15921
15922 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15923
15924         * tree.h: Fix truncated long macros.
15925
15926 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
15927
15928         * collect2.c (TARGET_64BIT): Redefine to target's default.
15929         * tlink.c: Likewise.
15930         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
15931         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
15932         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
15933         for underscoring __USER_LABEL_PREFIX__.
15934         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
15935         (SUB_LINK_ENTRY32): New.
15936         (SUB_LINK_ENTRY64): New.
15937         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
15938         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
15939         (SUB_LINK_ENTRY64): New.
15940         (SUB_LINK_ENTRY): New.
15941         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
15942         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
15943         x64 target is choosen.
15944         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
15945         * configure: Regenerated.
15946         * configure.ac (leading-mingw64-underscores): Option added.
15947
15948 2010-04-27  Jan Hubicka  <jh@suse.cz>
15949
15950         * doc/invoke.texi (-fipa-profile): Document.
15951         * opts.c (decode_options): Enable ipa-profile at -O1.
15952         * timevar.def (TV_IPA_PROFILE): Define.
15953         * common.opt (fipa-profile): Add.
15954         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
15955         flag for clones.
15956         (cgraph_propagate_frequency): Handle only local ones.
15957         * tree-pass.h (pass_ipa_profile): Declare.
15958         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
15959         (pass_ipa_profile): Use TV_IPA_PROFILE.
15960         * ipa.c (ipa_profile): New function.
15961         (gate_ipa_profile): Likewise.
15962         (pass_ipa_profile): New global variable.
15963         * passes.c (pass_ipa_profile): New.
15964
15965 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
15966
15967         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
15968
15969 2010-04-27  Martin Jambor  <mjambor@suse.cz>
15970
15971         PR middle-end/43812
15972         * ipa.c (dissolve_same_comdat_group_list): New function.
15973         (function_and_variable_visibility): Call
15974         dissolve_same_comdat_group_list when comdat group contains external or
15975         newly local nodes.
15976         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
15977         lists are circular and that they contain only DECL_ONE_ONLY nodes.
15978
15979 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15980
15981         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
15982         (const_hash_1) <VECTOR_CST>: New case.
15983         (compare_constant) <VECTOR_CST>: Likewise.
15984         <ADDR_EXPR>: Deal with LABEL_REFs.
15985         (copy_constant) <VECTOR_CST>: New case.
15986
15987 2010-04-27  Jan Hubicka  <jh@suse.cz>
15988
15989         * cgraph.c (cgraph_propagate_frequency): New function.
15990         * cgraph.h (cgraph_propagate_frequency): Declare.
15991         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
15992         cgraph_propagate_frequency.
15993
15994 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
15995
15996         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
15997
15998 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
15999
16000         PR target/40657
16001         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16002         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16003         here to determine which regs to push and how much stack to reserve.
16004
16005 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16006
16007         * doc/gimple.texi (gimple_statement_with_ops): Remove
16008         addresses_taken field.
16009         (gimple_statement_with_memory_ops): Likewise.
16010
16011 2010-04-27  Jan Hubicka  <jh@suse.cz>
16012
16013         * tree-inline.c (eni_inlining_weights): Remove.
16014         (estimate_num_insns): Special case more builtins.
16015
16016 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16017
16018         PR c/32207
16019         * c-typeck.c (build_binary_op): Move forward check for comparison
16020         pointer with null pointer constant and adjust the diagnostic message.
16021
16022 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16023
16024         PR lto/42776
16025         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16026         binutils supports extended .section directive needed by LTO, or
16027         warn if older binutils found.
16028         (LTO_BINARY_READER): New AC_SUBST'd variable.
16029         (LTO_USE_LIBELF): Likewise.
16030         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16031         variable.
16032         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16033         (LTO_USE_LIBELF): Likewise.
16034         * configure: Regenerate.
16035
16036         * collect2.c (is_elf): Rename from this ...
16037         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16038          object files in addition to ELF-formatted ones.
16039         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16040         symbol to be prefixed or not by an extra underscore.
16041
16042         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16043         * config/i386/winnt.c: Also #include lto-streamer.h
16044         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16045         LTO named sections.
16046         (i386_pe_asm_output_aligned_decl_common): Add comment.
16047         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16048
16049 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16050
16051         PR target/43889
16052         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16053         Add missing earlyclobber for second alternative.
16054
16055 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16056
16057         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16058         bits for artificial defs at the top of the block.
16059         * fwprop.c (single_def_use_enter_block): Don't call it.
16060
16061 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
16062
16063         PR 43715
16064         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16065         instead of "$gcc_cv_objdump -T".
16066         Use "-undefined dynamic_lookup" on darwin.
16067         * gcc/configure: Regenerate.
16068
16069 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16070
16071         PR c/43893
16072         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16073
16074 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16075
16076         * c-parser.c (struct c_token): Move location field up.
16077         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16078         (struct c_declspecs): Convert typespec_word, storage_class, and
16079         default_int_p into bitfields.
16080         (struct c_declarator): Move loc field up.
16081
16082 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16083
16084         * cfgloop.h (struct loop): Move can_be_parallel field up.
16085         * ipa-prop.h (struct ip_node_params): Move bitfields up.
16086         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16087         down.
16088         (struct iv_cand): Convert pos field into a bitfield.
16089         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
16090         field up.
16091         (struct _stmt_vec_info): Shuffle fields for better packing.
16092
16093 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16094
16095         * varasm.c (IN_NAMED_SECTION): Remove guard.
16096         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
16097         (IN_NAMED_SECTION_P): ...this.
16098         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
16099         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
16100
16101 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
16102
16103         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
16104         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
16105         of shadowing it.  Fix comments.
16106
16107 2010-04-26  Jan Hubicka  <jh@suse.cz>
16108
16109         * cgraph.c (cgraph_create_node): Set node frequency to normal.
16110         (cgraph_clone_node): Copy function frequency.
16111         * cgraph.h (node_frequency): New enum
16112         (struct cgraph_node): Add.
16113         * final.c (rest_of_clean_state): Update.
16114         * lto-cgraph.c (lto_output_node): Output node frequency.
16115         (input_overwrite_node): Input node frequency.
16116         * tre-ssa-loop-ivopts (computation_cost): Update.
16117         * lto-streamer-out.c (output_function): Do not output function
16118         frequency.
16119         * predict.c (maybe_hot_frequency_p): Update and handle functions
16120         executed once.
16121         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
16122         attribute lookup.
16123         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
16124         (compute_function_frequency): Set noreturn functions to be executed
16125         once.
16126         (choose_function_section): Update.
16127         * lto-streamer-in.c (input_function): Do not input function frequency.
16128         * function.c (allocate_struct_function): Do not initialize function
16129         frequency.
16130         * function.h (function_frequency): Remove.
16131         (struct function): Remove function frequency.
16132         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
16133         (try_update): Update.
16134         * tree-inline.c (initialize_cfun): Do not update function frequency.
16135         * passes.c (pass_init_dump_file): Update.
16136         * i386.c (ix86_compute_frame_layout): Update.
16137         (ix86_pad_returns): Update.
16138
16139 2010-04-26  Jie Zhang  <jie@codesourcery.com>
16140
16141         PR tree-optimization/43833
16142         * tree-vrp.c (range_int_cst_p): New.
16143         (range_int_cst_singleton_p): New.
16144         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
16145         when both operands are constants.  Use range_int_cst_p in
16146         BIT_IOR_EXPR case.
16147
16148 2010-04-26  Jan Hubicka  <jh@suse.cz>
16149
16150         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
16151
16152 2010-04-26  Richard Guenther  <rguenther@suse.de>
16153
16154         PR lto/43080
16155         * gimple.c (gimple_decl_printable_name): Deal gracefully
16156         with a NULL DECL_NAME.
16157
16158 2010-04-26  Richard Guenther  <rguenther@suse.de>
16159
16160         PR lto/42425
16161         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
16162         if emitting debug information and it is either a function
16163         or a namespace decl.
16164
16165 2010-04-26  Ira Rosen  <irar@il.ibm.com>
16166
16167         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
16168         determine if the statement is vectorizable, and a macro to access it.
16169         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16170         Skip statements that can't be vectorized. If the analysis fails,
16171         mark the statement as unvectorizable if vectorizing basic block.
16172         (vect_compute_data_refs_alignment): Likewise.
16173         (vect_verify_datarefs_alignment): Skip statements marked as
16174         unvectorizable. Add print.
16175         (vect_analyze_group_access): Skip statements that can't be
16176         vectorized. If the analysis fails, mark the statement as
16177         unvectorizable if vectorizing basic block.
16178         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
16179         * tree-vect-stmts.c (vectorizable_store): Fix the number of
16180         generated stmts for SLP.
16181         (new_stmt_vec_info): Initialize the new field.
16182         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
16183         statements marked as unvectorizable.
16184
16185 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
16186
16187         * c-common.c (flag_isoc1x): New.
16188         (flag_isoc99): Update comment.
16189         * c-common.h (flag_isoc1x): New.
16190         (flag_isoc99): Update comment.
16191         * c-cppbuiltin.c (builtin_define_float_constants): Also define
16192         __<type>_DECIMAL_DIG__.
16193         * c-opts.c (set_std_c1x): New.
16194         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
16195         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
16196         * c.opt (-std=c1x, -std=gnu1x): New options.
16197         * doc/cpp.texi: Mention -std=c1x.
16198         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
16199         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
16200         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
16201         * doc/standards.texi: Mention C1X.
16202         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
16203         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
16204         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
16205         Define for C1X.
16206
16207 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
16208
16209         * config/i386/gmon-sol2.c (_mcleanup): Change format string
16210         placeholder from 0x%x to %#x.
16211         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16212         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16213         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16214         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16215         * config/i386/i386.c (ix86_target_string): Ditto.
16216         (output_pic_addr_const): Ditto.
16217         (print_operand): Ditto.
16218
16219 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
16220
16221         * combine.c (find_split_point): Add third argument.  Use it
16222         to find nested multiply-accumulate instructions.  Adjust calls.
16223         (try_combine): Adjust call to find_split_point.
16224
16225 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
16226
16227         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
16228
16229 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
16230
16231         PR tree-optimization/41442
16232         * fold-const.c (merge_truthop_with_opposite_arm): New function.
16233         (fold_binary_loc): Call it.
16234
16235 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16236
16237         * toplev.c (general_init): Set default for fdiagnostics-show-option.
16238         * opts.c (common_handle_option): Allow disabling it.
16239         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
16240
16241 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
16242
16243         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
16244         between modes if both types are integral.
16245
16246 2010-04-23  Richard Guenther  <rguenther@suse.de>
16247
16248         PR tree-optimization/43572
16249         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
16250
16251 2010-04-23  Richard Guenther  <rguenther@suse.de>
16252
16253         PR lto/43455
16254         * tree-inline.c (tree_can_inline_p): Also check compatibility
16255         of return types.
16256
16257 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16258
16259         PR tree-optimization/43846
16260         * tree-sra.c (struct access): New flag grp_assignment_read.
16261         (build_accesses_from_assign): Set grp_assignment_read.
16262         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
16263         (enum mark_read_status): New type.
16264         (analyze_access_subtree): Propagate grp_assignment_read, create
16265         accesses also if both direct_read and root->grp_assignment_read.
16266
16267 2010-04-23  Martin Jambor  <mjambor@suse.cz>
16268
16269         PR middle-end/43835
16270         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
16271         function does not have type attributes.
16272
16273 2010-04-23  Richard Guenther  <rguenther@suse.de>
16274
16275         PR lto/42653
16276         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
16277         of FUNCTION_DECLs.
16278
16279 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16280
16281         * sese.h (create_if_region_on_edge): Remove.
16282
16283         * sese.c (create_if_region_on_edge): Make static.
16284
16285         * tree-inline.c: Do not include ggc.h.
16286
16287         * expr.c: Do not include ggc.h.
16288
16289         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
16290         dependencies.
16291
16292 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
16293
16294         PR target/43744
16295         * config/sh/sh.c (find_barrier): Don't emit a constant pool
16296         in the middle of insns for casesi_worker_2.
16297
16298 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
16299
16300         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
16301
16302 2010-04-22  Ira Rosen  <irar@il.ibm.com>
16303
16304         PR tree-optimization/43842
16305         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
16306         loop unrolling in update of exit phis. Fix comment.
16307         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
16308         least two reduction statements in the loop before starting SLP
16309         analysis.
16310
16311 2010-04-22  Nick Clifton  <nickc@redhat.com>
16312
16313         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
16314
16315 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
16316
16317         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
16318         to simplify a + ~a.
16319
16320 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16321
16322         * tree-parloops.c (loop_parallel_p): New argument
16323         parloop_obstack.  Pass it down.
16324         (parallelize_loops): New variable parloop_obstack.  Initialize it,
16325         pass it down, free it.
16326
16327         * tree-loop-linear.c (linear_transform_loops): Pass down
16328         lambda_obstack.
16329
16330         * tree-data-ref.h (lambda_compute_access_matrices): New argument
16331         of type struct obstack *.
16332
16333         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
16334         scratch_obstack.  Initialize it, pass down, free it.
16335
16336         * lambda.h (lambda_loop_new): Remove.
16337         (lambda_matrix_new, lambda_matrix_inverse)
16338         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
16339         argument of type struct obstack *.
16340
16341         * lambda-trans.c (lambda_trans_matrix_new): New argument
16342         lambda_obstack.  Pass it down, use obstack allocation for ret.
16343         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
16344         it down.
16345
16346         * lambda-mat.c (lambda_matrix_get_column)
16347         (lambda_matrix_project_to_null): Remove.
16348         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
16349         allocation for mat.
16350         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
16351         lambda_obstack.
16352
16353         * lambda-code.c (lambda_loop_new): New function.
16354         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
16355         (lambda_compute_auxillary_space, lambda_compute_target_space)
16356         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
16357         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
16358         (build_access_matrix): New argument lambda_obstack.  Use obstack
16359         allocation for am.
16360         (lambda_compute_step_signs, lambda_compute_access_matrices): New
16361         argument lambda_obstack.  Pass it down.
16362
16363 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16364
16365         * optabs.h (expand_widening_mult): Declare.
16366
16367 2010-04-22  Richard Guenther  <rguenther@suse.de>
16368
16369         PR tree-optimization/43845
16370         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
16371         lookup the CALL_EXPR function and arguments.
16372
16373 2010-04-22  Nick Clifton  <nickc@redhat.com>
16374
16375         * config/stormy16/stormy16.c
16376         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
16377         * config/stormy16/stormy16.h: Tidy up formatting.
16378         (DONT_USE_BUILTIN_SETJMP): Remove definition.
16379         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
16380         (ineqbranchsi): Delete pattern.
16381         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
16382         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
16383         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16384         stormy16-lib2-ucmpsi2.c.
16385
16386 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16387
16388         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
16389         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
16390         extra set merge_set_noclobber, and use it to relax the final test
16391         slightly.
16392         * df.h (df_simulate_find_noclobber_defs): Declare.
16393         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
16394         conditional defs.
16395         (df_simulate_find_noclobber_defs): New function.
16396
16397 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
16398
16399         * config/i386/i386.md: Use {} around multi-line preparation statements.
16400
16401 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16402
16403         * c-tree.h (push_init_level, pop_init_level, set_init_index)
16404         (process_init_element): New argument of type struct obstack *.
16405
16406         * c-typeck.c (push_init_level, pop_init_level, set_designator)
16407         (set_init_index, set_init_label, set_nonincremental_init)
16408         (set_nonincremental_init_from_string, find_init_member)
16409         (output_init_element, output_pending_init_elements)
16410         (process_init_element): New argument braced_init_obstack.  Pass it
16411         down.
16412         (push_range_stack, add_pending_init): New argument
16413         braced_init_obstack.  Use obstack allocation.
16414
16415         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
16416         braced_init_obstack.  Pass it down.
16417         (c_parser_braced_init): New variables ret, braced_init_obstack.
16418         Initialize obstack, pass it down and finally free it.
16419
16420 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
16421
16422         PR middle-end/29274
16423         * tree-pass.h (pass_optimize_widening_mul): Declare.
16424         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
16425         gate_optimize_widening_mul): New static functions.
16426         (pass_optimize_widening_mul): New.
16427         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
16428         <case MULT_EXPR>: Remove support for widening multiplies.
16429         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
16430         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
16431         simplify_gen_unary rather than directly building extensions.
16432         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
16433         WIDEN_MULT_EXPR.
16434         * expmed.c (expand_widening_mult): New function.
16435         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
16436
16437 2010-04-21  Jan Hubicka  <jh@suse.cz>
16438
16439         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
16440         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
16441         * lto-wpa-fixup.c: Remove.
16442         * Makefile.in (lto-wpa-fixup.o): Remove.
16443         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
16444         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
16445         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
16446
16447 2010-04-21  Jan Hubicka  <jh@suse.cz>
16448
16449         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
16450         add write_optimization_summary, read_optimization_summary.
16451         (ipa_write_summaries_of_cgraph_node_set): Remove.
16452         (ipa_write_optimization_summaries): Declare.
16453         (ipa_read_optimization_summaries): Declare.
16454         * ipa-cp.c (pass_ipa_cp): Update.
16455         * ipa-reference.c (pass_ipa_reference): Update.
16456         * ipa-pure-const.c (pass_ipa_pure_const): Update.
16457         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
16458         Update.
16459         * ipa-inline.c (pass_ipa_inline): Update.
16460         * ipa.c (pass_ipa_whole_program): Update.
16461         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
16462         * passes.c (ipa_write_summaries_1): Do not test wpa.
16463         (ipa_write_optimization_summaries_1): New.
16464         (ipa_write_optimization_summaries): New.
16465         (ipa_read_summaries): Do not test ltrans.
16466         (ipa_read_optimization_summaries_1): New.
16467         (ipa_read_optimization_summaries): New.
16468
16469 2010-04-21  Jan Hubicka  <jh@suse.cz>
16470
16471         * lto-cgraph.c (lto_output_node): Do not output comdat groups
16472         for boundary nodes.
16473         (output_cgraph): Do not arrange comdat groups for boundary nodes.
16474
16475 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16476
16477         PR debug/40040
16478         * dwarf2out.c (add_name_and_src_coords_attributes): Add
16479         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
16480
16481 2010-04-21  Jan Hubicka  <jh@suse.cz>
16482
16483         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
16484
16485 2010-04-21  Jan Hubicka  <jh@suse.cz>
16486
16487         * varpool.c (decide_is_variable_needed): Variable is always needed
16488         during ltrans.
16489
16490 2010-04-21  Jan Hubicka  <jh@suse.cz>
16491
16492         * opts.c (decode_options): Enable pure-const pass for whopr.
16493
16494 2010-04-21  Jan Hubicka  <jh@suse.cz>
16495
16496         * cgraph.c (dump_cgraph_node): Dump also assembler name.
16497         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
16498         at WPA dumping.
16499         (cgraph_decide_inlining): Do not expect callee to be removed in all
16500         cases.
16501
16502 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
16503
16504         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
16505
16506 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
16507
16508         * config/i386/i386.md (x86_shrd): Add athlon_decode and
16509         amdfam10_decode attributes.
16510
16511 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16512
16513         PR middle-end/43570
16514         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
16515         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
16516         (lower_copyprivate_clauses): Use private var in outer
16517         context instead of original var.  Make sure the types
16518         are correct for VLAs.
16519
16520 2010-04-21  Richard Guenther  <rguenther@suse.de>
16521
16522         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
16523         to non-pointer objects.
16524
16525 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
16526
16527         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
16528         last chain entry if it starts with the still current label.
16529         (add_location_or_const_value_attribute): Check that
16530         loc_list->first->next is NULL instead of comparing ->first with ->last.
16531         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
16532         to add_var_loc_to_decl.
16533
16534         * dwarf2out.c (output_call_frame_info): For dw_cie_version
16535         >= 4 add also address size and segment size fields into CIE header.
16536
16537         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
16538         long as address size is the same as sizeof (void *) and
16539         segment size is 0.
16540         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
16541         address size or segment size is unexpected, return DW_EH_PE_omit.
16542         (classify_object_over_fdes): If get_cie_encoding returned
16543         DW_EH_PE_omit, return -1.
16544         (init_object): If classify_object_over_fdes returned -1,
16545         pretend there were no FDEs at all.
16546
16547 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
16548
16549         * config/i386/i386.md (bswap<mode>2): Macroize expander from
16550         bswap{si,di}2 using SWI48 mode iterator.
16551         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
16552         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
16553         set modrm attribute of bswap insn to 0 and remove length attribute.
16554         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
16555         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
16556         set mode attribute to <MODE> and remove length attribute.
16557
16558 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
16559
16560         PR rtl-optimization/43520
16561         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
16562         zero available registers.
16563
16564 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16565
16566         * builtins.c (fold_builtin_cproj): Fold more cases.
16567
16568 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16569
16570         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
16571         (fold_builtin_1): Fold builtin cproj.
16572         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
16573         Use ATTR_CONST_NOTHROW_LIST.
16574
16575 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
16576
16577         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
16578         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
16579         ffsi2_no_cmove for !TARGET_CMOVE.
16580         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
16581         (ffssi2): Remove expander.
16582         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
16583         mode iterator.
16584         (ctz<mode>2): Ditto from ctz{si,di}2.
16585         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
16586         mode iterator.
16587         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
16588         mode iterator.
16589
16590 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
16591
16592         * dwarf2out.c (AT_linkage_name): Define.
16593         (clone_as_declaration): Handle DW_AT_linkage_name.
16594         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
16595         of DW_AT_MIPS_linkage_name.
16596         (move_linkage_attr): Likewise.
16597         (dwarf2out_finish): Likewise.
16598
16599 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
16600
16601         PR middle-end/41952
16602         * fold-const.c (fold_comparison): New folding rule.
16603
16604 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
16605
16606         * double-int.h (double_int_setbit): Declare.
16607         * double-int.c (double_int_setbit): New function.
16608         * rtl.h (immed_double_int_const): Declare.
16609         * emit-rtl.c (immed_double_int_const): New function.
16610         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
16611         and immed_double_int_const functions.
16612         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
16613         expand_copysign_bit):  (Ditto.).
16614         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
16615         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
16616         * dojump.c (prefer_and_bit_test): (Ditto.).
16617         * expr.c (convert_modes, reduce_to_bit_field_precision,
16618         const_vector_from_tree): (Ditto.).
16619         * expmed.c (mask_rtx, lshift_value): (Ditto.).
16620
16621 2010-04-20  Jan Hubicka  <jh@suse.cz>
16622
16623         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
16624         (dump_cgraph_node): Dump new flags.
16625         * cgraph.h (struct cgraph_node): Add flags
16626         reachable_from_other_partition and in_other_partition.
16627         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
16628         other partition can not be removed.
16629         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
16630         the other partition must be output; silence sanity checking on
16631         leaking functions bodies from other paritition.
16632         * lto-cgraph.c (reachable_from_other_partition_p): New function.
16633         (lto_output_node): Output new flags; do not sanity check that inline
16634         clones are output; drop lto_forced_extern_inline_p code; do not mock
16635         visibility flags at partition boundaries.
16636         (add_node_to): New function.
16637         (output_cgraph): Use it to sort functions so masters appear before
16638         clones.
16639         (input_overwrite_node): Input new flags.
16640         * passes.c (ipa_write_summaries): Do not call
16641         lto_new_extern_inline_states.
16642         * lto-section-out.c (forced_extern_inline,
16643         lto_new_extern_inline_states lto_delete_extern_inline_states,
16644         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
16645         * lto-streamer.h (lto_new_extern_inline_states,
16646         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
16647         lto_forced_extern_inline_p): Kill.
16648
16649 2010-04-20  Richard Guenther  <rguenther@suse.de>
16650
16651         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
16652         from vars that can have pointers.
16653         (process_constraint): Dump useless constraints.
16654
16655 2010-04-20  Richard Guenther  <rguenther@suse.de>
16656
16657         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
16658         (dump_sa_points_to_info): Remove asserts.
16659         (init_base_vars): nothing_id isn't an escape point nor does it
16660         have pointers.
16661
16662 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
16663
16664         * tree.h (TYPE_REF_IS_RVALUE): Define.
16665         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
16666         should_move_die_to_comdat, prune_unused_types_walk): Handle
16667         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
16668         (modified_type_die, gen_reference_type_die): Emit
16669         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
16670         if TYPE_REF_IS_RVALUE and -gdwarf-4.
16671
16672 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16673
16674         PR target/43635
16675         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
16676         calls for -fpic -m31 if they have been sibcall optimized.
16677
16678 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
16679
16680         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
16681         ar.lc fixed and call-used.
16682
16683         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
16684
16685 2010-04-19  Jan Hubicka  <jh@suse.cz>
16686
16687         * opts.c (decode_options): Disable whpr incompatible passes.
16688         * lto/lto.c (lto_1_to_1_map): Skip clones.
16689         (read_cgraph_and_symbols): Do not mark everything as needed.
16690         (do_whole_program_analysis): Do map only after optimizing;
16691         set proper cgraph_state; use passmanager.
16692
16693 2010-04-19  DJ Delorie  <dj@redhat.com>
16694
16695         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
16696         POINTER_PLUS_EXPR and fix them.
16697
16698 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
16699
16700         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
16701         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
16702         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
16703         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
16704         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
16705         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
16706         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
16707         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
16708         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
16709         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
16710         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
16711
16712 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16713
16714         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
16715         (check_cond_move_block): Likewise.
16716         (cond_move_process_if_block): Likewise.
16717         (noce_find_if_block): Improve formatting.
16718         (find_if_header): Pass 0 to memset and tweak conditions.
16719         (cond_exec_find_if_block): Fix long lines and tweak conditions.
16720
16721 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
16722
16723         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
16724         for -gdwarf-4.
16725
16726         PR middle-end/43337
16727         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
16728         with non-local decl doesn't need chain.
16729
16730 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
16731
16732         * ira-color.c (allocno_reload_assign): Avoid accumulating
16733         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
16734
16735 2010-04-19  Martin Jambor  <mjambor@suse.cz>
16736
16737         * gimple.h (create_tmp_reg): Declare.
16738         * gimplify.c (create_tmp_reg): New function.
16739         (gimplify_return_expr): Use create_tmp_reg.
16740         (gimplify_omp_atomic): Likewise.
16741         (gimple_regimplify_operands): Likewise.
16742         * tree-dfa.c (make_rename_temp): Likewise.
16743         * tree-predcom.c (predcom_tmp_var): Likewise.
16744         (reassociate_to_the_same_stmt): Likewise.
16745         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
16746         (get_replaced_param_substitute): Likewise.
16747         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16748         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16749         * tree-ssa-pre.c (get_representative_for): Likewise.
16750         (create_expression_by_pieces): Likewise.
16751         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
16752         (create_tailcall_accumulator): Likewise.
16753
16754 2010-04-19  Martin Jambor  <mjambor@suse.cz>
16755
16756         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
16757         new_stmt.
16758         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
16759
16760 2010-04-19  Richard Guenther  <rguenther@suse.de>
16761
16762         PR tree-optimization/43796
16763         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
16764         from SCEV in the lattice.
16765         (vrp_visit_phi_node): Dump change.
16766
16767 2010-04-19  Richard Guenther  <rguenther@suse.de>
16768
16769         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
16770         * configure: Re-generated.
16771
16772 2010-04-19  Richard Guenther  <rguenther@suse.de>
16773
16774         PR tree-optimization/43783
16775         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
16776         constant ARRAY_REF operands two and three if possible.
16777
16778 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
16779
16780         PR target/43766
16781         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
16782
16783 2010-04-19  Jie Zhang  <jie@codesourcery.com>
16784
16785         PR target/43662
16786         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
16787
16788 2010-04-19  Ira Rosen  <irar@il.ibm.com>
16789
16790         PR tree-optimization/37027
16791         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
16792         and macro to access it.
16793         (vectorizable_reduction): Add argument.
16794         (vect_get_slp_defs): Likewise.
16795         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
16796         statements for possible use in SLP.
16797         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
16798         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
16799         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
16800         add new argument.
16801         (vectorizable_reduction): Likewise.
16802         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
16803         vect_get_slp_defs.
16804         (vectorizable_type_demotion, vectorizable_type_promotion,
16805         vectorizable_store): Likewise.
16806         (vect_analyze_stmt): Update call to vectorizable_reduction.
16807         (vect_transform_stmt): Likewise.
16808         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
16809         (vect_build_slp_tree): Fix indentation. Check that there are no loads
16810         from different interleaving chains in same node.
16811         (vect_slp_rearrange_stmts): New function.
16812         (vect_supported_load_permutation_p): Allow load permutations for
16813         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
16814         inside SLP nodes if necessary.
16815         (vect_analyze_slp_instance): Handle reductions.
16816         (vect_analyze_slp): Try to build SLP instances originating from groups
16817         of reductions.
16818         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
16819         (vect_get_constant_vectors): Create initial vectors for reductions
16820         according to reduction code. Add new argument.
16821         (vect_get_slp_defs): Add new argument, pass it to
16822         vect_get_constant_vectors.
16823         (vect_schedule_slp_instance): Remove SLP tree root statements.
16824
16825 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
16826
16827         * tree.h (ENUM_IS_SCOPED): Define.
16828         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
16829         for ENUM_IS_SCOPED enums.
16830
16831 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16832
16833         * fold-const.c (fold_comparison): Use ssizetype.
16834         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16835         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
16836         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
16837         * tree-object-size.c (compute_object_sizes): Use size_type_node.
16838
16839         * tree.h (initialize_sizetypes): Remove parameter.
16840         (build_common_tree_nodes): Remove second parameter.
16841         * stor-layout.c (initialize_sizetypes): Remove parameter.
16842         Always create an unsigned type.
16843         (set_sizetype): Assert that the passed type is unsigned and simplify.
16844         * tree.c (build_common_tree_nodes): Remove second parameter.
16845         Adjust call to initialize_sizetypes.
16846         * c-decl.c (c_init_decl_processing): Remove second argument in call to
16847         build_common_tree_nodes.
16848
16849 2010-04-18  Matthias Klose  <doko@ubuntu.com>
16850
16851         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
16852
16853 2010-04-18  Ira Rosen  <irar@il.ibm.com>
16854
16855         PR tree-optimization/43771
16856         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
16857         load permutation doesn't have gaps.
16858
16859 2010-04-18  Jan Hubicka  <jh@suse.cz>
16860
16861         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
16862         (sse_prologue_save_insn expander): Use new pattern.
16863         (sse_prologue_save_insn1): New pattern and splitter.
16864         (sse_prologue_save_insn): Update to deal also with 64bit aligned
16865         blocks.
16866         * i386.c (setup_incoming_varargs_64): Do not compute jump
16867         destination here.
16868         (ix86_gimplify_va_arg): Update alignment needed.
16869         (ix86_local_alignment): Do not align all local arrays to 128bit.
16870
16871 2010-04-17  Jan Hubicka  <jh@suse.cz>
16872
16873         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
16874
16875 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16876
16877         * arm.md (negdi2): Remove redundant code to force values into a
16878         register.
16879
16880 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16881
16882         * arm/bpabi.S: Add EABI alignment attributes to objects.
16883         * arm/bpabi-v6m.S: Likewise.
16884         * arm/crti.asm: Likewise.
16885         * arm/crtn.asm: Likewise.
16886         * arm/lib1funcs.asm: Likewise.
16887         * arm/libunwind.S: Likewise.
16888
16889 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16890
16891         * arm-protos.h (tune_params): New structure.
16892         * arm.c (current_tune): New variable.
16893         (arm_constant_limit): Delete.
16894         (struct processors): Add pointer to the tune parameters.
16895         (arm_slowmul_tune): New tuning option.
16896         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
16897         (all_cores): Adjust to pick up the tuning model.
16898         (arm_constant_limit): New function.
16899         (arm_override_options): Select the appropriate tuning model.  Delete
16900         initialization of arm_const_limit.
16901         (arm_split_constant): Use the new constant-limit model.
16902         (arm_rtx_costs): Pick up the current tuning model.
16903         * arm.md (is_strongarm, is_xscale): Delete.
16904         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
16905         for Xscale variant architectures.
16906         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
16907
16908 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16909
16910         * config/arm/arm.c (arm_gen_constant): Remove unused variable
16911         can_shift.
16912         (arm_rtx_costs_1): Remove unused variable extra_cost.
16913         (arm_unwind_emit_set): Use variable offset.
16914         (thumb1_output_casesi): Remove unused variable flags.
16915
16916 2010-04-16  Jeff Law  <law@redhat.com>
16917
16918         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
16919         needing assignment rather than doing a two-phase assignment.  Remove
16920         unused variable 'm'.
16921
16922 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16923
16924         PR bootstrap/43767
16925         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
16926
16927 2010-04-16  Doug Kwan  <dougkwan@google.com>
16928
16929         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
16930         (next_operand_entry_id): New static variable.
16931         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
16932         (add_to_ops_vec): Assigned unique ID to operand entry.
16933         (struct oecount_s): New field ID.
16934         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
16935         (undistribute_ops_list): Assign unique IDs to oecounts.
16936         (init_reassoc): reset next_operand_entry_id.
16937
16938 2010-04-16  Doug Kwan  <dougkwan@google.com>
16939
16940         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
16941         missing left parenthesis.
16942
16943 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
16944
16945         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
16946         *btdi_rex64 using SWI48 mode iterator.
16947         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
16948         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
16949         *jcc_btdi_mask_rex64.
16950
16951 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
16952
16953         * double-int.h (tree_to_double_int): Convert to macro.
16954         * double-int.c (tree_to_double_int): Remove.
16955
16956 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16957
16958         PR debug/43762
16959         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
16960         with want_address 2 and in case a single element list might be
16961         possible, call it again with want_address 0.
16962
16963 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16964
16965         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
16966         case 'W' print operands for HI mode.
16967         * config/h8300/h8300.h (Y0, Y2) : New constraints.
16968         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
16969         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
16970         * config/h8300/predicate.md (bit_register_indirect_operand): New.
16971
16972         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
16973
16974         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
16975         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
16976         #xx:3 and #xx:4 mode.
16977
16978         * config/h8300/h8300.md (inverted load with HImode dest): Add
16979         support for H8300SX.
16980
16981         * config/h8300/predicate.md (bit_operand): Allow immediate values that
16982         satisfy 'U' constraint.
16983
16984 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16985
16986         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
16987         * configure: Regenerate.
16988         * config.in: Regenerate.
16989         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
16990         works.
16991
16992 2010-04-16  Richard Guenther  <rguenther@suse.de>
16993
16994         * tree.h (struct tree_decl_minimal): Move pt_uid ...
16995         (struct tree_decl_common): ... here.
16996         (DECL_PT_UID): Adjust.
16997         (SET_DECL_PT_UID): Likewise.
16998         (DECL_PT_UID_SET_P): Likewise.
16999
17000 2010-04-16  Richard Guenther  <rguenther@suse.de>
17001
17002         PR tree-optimization/43572
17003         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17004         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17005         * tree-flow.h (is_call_clobbered): Remove.
17006         * tree-flow-inline.h (is_call_clobbered): Likewise.
17007         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17008         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17009         (execute_return_slot_opt): Adjust.
17010         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17011         check for call clobbered vars here.
17012         (find_tail_calls): Move tailcall verification to the
17013         proper place.
17014
17015 2010-04-16  Diego Novillo  <dnovillo@google.com>
17016
17017         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17018
17019 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17020
17021         PR target/40603
17022         * config/arm/arm.md (cbranchqi4): New pattern.
17023         * config/arm/predicates.md (const0_operand,
17024         cbranchqi4_comparison_operator): New predicates.
17025
17026 2010-04-16  Richard Guenther  <rguenther@suse.de>
17027
17028         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17029         (dump_gimple_stmt): Likewise.
17030
17031 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17032
17033         * recog.h (struct recog_data): New field is_operator.
17034         (struct insn_operand_data): New field is_operator.
17035         * recog.c (extract_insn): Set recog_data.is_operator.
17036         * genoutput.c (output_operand_data): Emit code to set the
17037         is_operator field.
17038         * reload.c (find_reloads): Use it rather than testing for an
17039         empty constraint string.
17040
17041         PR target/41514
17042         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17043         If the previous insn is a cbranchsi4_insn with the same arguments,
17044         omit the compare instruction.
17045
17046         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17047         register, inputs must be low registers and we need a low register
17048         scratch.  Handle alternative 2 like alternative 3.
17049
17050 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17051
17052         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17053         don't call get_addr on both.  If one expression is a VALUE and
17054         the other a REG, check VALUE's locs if the REG isn't among them.
17055
17056 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17057
17058         * config/sh/sh.h (sh_frame_pointer_required): New function.
17059         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17060         (flag_omit_frame_pointer) Set.
17061         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17062         (rounded_frame_size): Adjust size with outgoing_args_size.
17063         (sh_set_return_address): Must return from stack pointer.
17064         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17065         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17066         (ACCUMULATE_OUTGOING_ARGS): Define.
17067         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17068         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17069
17070 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17071
17072         PR target/43471
17073         * config/sh/sh.c (sh_legitimize_reload_address): Use
17074         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17075         Remove a unneeded check for offset_base.
17076
17077 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17078
17079         * configure: Regenerated.
17080
17081 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17082
17083         * config/s390/s390.c (s390_call_save_register_used): Switch back
17084         to HARD_REGNO_NREGS.
17085
17086 2010-04-15  Richard Guenther  <rguenther@suse.de>
17087
17088         * alias.c (alias_set_subset_of): Handle alias-set zero
17089         child properly.
17090
17091 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
17092             Julian Brown  <julian@codesourcery.com>
17093
17094         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
17095         alternatives according to use of high and low regs.
17096         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17097         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
17098         optimizing for size on Thumb-2.
17099
17100 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
17101
17102         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
17103
17104 2010-04-15  Richard Guenther  <rguenther@suse.de>
17105
17106         * tree-ssa-structalias.c (struct variable_info): Add
17107         is_fn_info flag.
17108         (new_var_info): Initialize it.
17109         (dump_constraints): Support printing last added constraints.
17110         (debug_constraints): Adjust.
17111         (dump_constraint_graph): Likewise.
17112         (make_heapvar_for): Check for NULL cfun.
17113         (get_function_part_constraint): New function.
17114         (get_fi_for_callee): Likewise.
17115         (find_func_aliases): Properly implement IPA PTA constraints.
17116         (process_ipa_clobber): New function.
17117         (find_func_clobbers): Likewise.
17118         (insert_into_field_list_sorted): Remove.
17119         (create_function_info_for): Properly allocate vars for IPA mode.
17120         Do not use insert_into_field_list_sorted.
17121         (create_variable_info_for): Properly generate constraints for
17122         global vars in IPA mode.
17123         (dump_solution_for_var): Always dump the solution.
17124         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
17125         (find_what_var_points_to): Adjust.
17126         (pt_solution_set): Change.
17127         (pt_solution_ior_into): New function.
17128         (pt_solution_empty_p): Export.
17129         (pt_solution_includes_global): Adjust.
17130         (pt_solution_includes_1): Likewise.
17131         (pt_solutions_intersect_1): Likewise.
17132         (dump_sa_points_to_info): Check some invariants.
17133         (solve_constraints): Move constraint dumping ...
17134         (compute_points_to_sets): ... here.
17135         (ipa_pta_execute): ... and here.
17136         (compute_may_aliases): Do not re-compute points-to info
17137         locally if IPA info is available.
17138         (ipa_escaped_pt): New global var.
17139         (ipa_pta_execute): Properly implement IPA PTA.
17140         * tree-into-ssa.c (dump_decl_set): Support dumping
17141         decls not in referenced-vars.
17142         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
17143         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
17144         (dump_points_to_solution): Likewise.
17145         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
17146         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
17147         (remap_gimple_stmt): Reset call clobber/use information if necessary.
17148         (copy_decl_to_var): Copy DECL_PT_UID.
17149         (copy_result_decl_to_var): Likewise.
17150         * tree.c (make_node_stat): Initialize DECL_PT_UID.
17151         (copy_node_stat): Copy it.
17152         * tree.h (DECL_PT_UID): New macro.
17153         (SET_DECL_PT_UID): Likewise.
17154         (DECL_PT_UID_SET_P): Likewise.
17155         (struct tree_decl_minimal): Add pt_uid member.
17156         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
17157         (pt_solution_empty_p): Declare.
17158         (pt_solution_set): Adjust.
17159         (ipa_escaped_pt): Declare.
17160         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
17161         * gimple-pretty-print.c (pp_points_to_solution): New function.
17162         (dump_gimple_call): Dump call clobber/use information.
17163         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
17164         * tree-pass.h (TDF_ALIAS): New dump option.
17165         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
17166         * doc/invoke.texi (-fipa-pta): Update documentation.
17167
17168 2010-04-15  Richard Guenther  <rguenther@suse.de>
17169
17170         * Makefile.in (OBJS-common): Add gimple-fold.o.
17171         (gimple-fold.o): New rule.
17172         * tree.h (maybe_fold_offset_to_reference,
17173         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
17174         prototypes ...
17175         * gimple.h: ... here.
17176         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
17177         may_propagate_address_into_dereference): Move prototypes ...
17178         * gimple.h: ... here.
17179         * tree-ssa-ccp.c (get_symbol_constant_value,
17180         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
17181         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
17182         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
17183         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
17184         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
17185         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
17186         gimplify_and_update_call_from_tree): Move ...
17187         * gimple-fold.c: ... here.  New file.
17188         (ccp_fold_builtin): Rename to ...
17189         (gimple_fold_builtin): ... this.
17190         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
17191
17192 2010-04-15  Richard Guenther  <rguenther@suse.de>
17193
17194         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
17195         fit_double_type, force_fit_type_double, add_double_with_sign,
17196         neg_double, mul_double_with_sign, lshift_double, rshift_double,
17197         lrotate_double, rrotate_double, div_and_round_double): Move ...
17198         * double-int.c: ... here.
17199         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
17200         add_double, neg_double, mul_double_with_sign, mul_double,
17201         lshift_double, rshift_double, lrotate_double, rrotate_double,
17202         div_and_round_double): Move prototypes ...
17203         * double-int.h: ... here.
17204
17205 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
17206
17207         PR target/43742
17208         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
17209         matching constraints to ensure inputs match the output.
17210
17211 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17212
17213         PR target/43742
17214         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
17215         in an input-only operand.
17216
17217 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
17218
17219         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
17220         (double_int_not, double_int_lshift, double_int_rshift): Declare.
17221         (double_int_negative_p): Convert to static inline function.
17222         * double-int.c (double_int_lshift, double_int_lshift): New functions.
17223         (double_int_negative_p): Remove.
17224         * tree.h (lshift_double, rshift_double):
17225         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
17226         * fold-const.c (fold_convert_const_int_from_real,
17227         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
17228         (lshift_double): Change type of arith argument to bool.
17229         (rshift_double): Change type of arith argument to bool. Correct
17230         comment.
17231         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17232
17233 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
17234
17235         PR target/21803
17236         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
17237         at the start and end of the then/else blocks, and omit them from the
17238         conversion.
17239         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
17240         argument; all callers changed.  Pass zero to old_insns_match_p instead.
17241         (flow_find_head_matching_sequence): New function.
17242         (old_insns_match_p): Check REG_EH_REGION notes for calls.
17243         * basic-block.h (flow_find_cross_jump,
17244         flow_find_head_matching_sequence): Declare functions.
17245
17246 2010-04-14  Jason Merrill  <jason@redhat.com>
17247
17248         PR c++/36625
17249         * c-common.c (attribute_takes_identifier_p): New fn.
17250         * c-common.h: Declare it.
17251
17252 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17253
17254         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
17255         splitter condition.
17256         (*udivmod<mode>4): Ditto.
17257
17258 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17259
17260         * config/i386/i386.md (maxmin_int): Rename code attribute from
17261         maxminiprefix and update all users.
17262         (maxmin_float): Ditto from maxminfprefix.
17263         (logic): Ditto from logicprefix.
17264         (absneg_mnemonic): Ditto from absnegprefix.
17265         * config/i386/mmx.md: Update all users of maxminiprefix,
17266         maxminfprefix and logicprefix for rename.
17267         * config/i386/sse.md: Ditto.
17268         * config/i386/sync.md (sync_<code><mode>): Update for
17269         logicprefix rename.
17270
17271 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17272
17273         PR 42966
17274         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
17275         warnings converted to errors.
17276
17277 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17278
17279         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
17280         used insn_type variable.
17281         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
17282         to avoid set-but-not-used warning.
17283
17284 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17285
17286         * df-core.c (df_ref_debug): Change format string placeholder
17287         from 0x%x to %#x.
17288         * dwarf2asm.c (dw2_asm_output_data_raw,
17289         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
17290         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
17291         * dwarf2out.c (output_cfi, output_cfi_directive,
17292         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
17293         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
17294         Ditto.
17295         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
17296         * print-rtl.c (print_rtx): Ditto.
17297
17298 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17299
17300         PR middle-end/42694
17301         * builtins.c (expand_builtin_pow_root): New function to expand pow
17302         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
17303         series of sqrt and cbrt calls under -ffast-math.
17304         (expand_builtin_pow): Call it.
17305
17306 2010-04-14  Michael Matz  <matz@suse.de>
17307
17308         PR tree-optimization/42963
17309         * tree-cfg.c (touched_switch_bbs): New static variable.
17310         (group_case_labels_stmt): New function broken out from ...
17311         (group_case_labels): ... here, use the above.
17312         (start_recording_case_labels): Allocate touched_switch_bbs.
17313         (end_recording_case_labels): Deallocate it, call
17314         group_case_labels_stmt.
17315         (gimple_redirect_edge_and_branch): Remember index of affected BB.
17316
17317 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17318
17319         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
17320         from insn template.
17321
17322 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17323
17324         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
17325
17326 2010-04-13  Jan Hubicka  <jh@suse.cz>
17327
17328         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
17329         of optimized out static functions.
17330         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
17331         cost computation.  Also sanity check for overflows.
17332         (update_caller_keys): Update cgraph_edge_badness call; properly
17333         update fibheap and sanity check that it is up to date.
17334         (add_new_edges_to_heap): Update cgraph_edge_badness.
17335         (cgraph_decide_inlining_of_small_function): Likewise;
17336         add sanity checking that badness in heap is up to date;
17337         improve dumping of reason; Update badness of calls to the
17338         offline copy of function currently inlined; dump badness
17339         of functions not inlined because of unit growth limits.
17340
17341 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17342
17343         PR middle-end/32628
17344         * c-common.c (pointer_int_sum): Disregard overflow that occured only
17345         because of sign-extension change when converting to sizetype here...
17346         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
17347
17348         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
17349         the folding to constants.  Remove redundant final conversion.
17350         (fold_binary) <associate>: Do not associate if the re-association of
17351         constants alone overflows.
17352         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
17353         to the end of the list.
17354         (multiple_of_p) <COND_EXPR>: New case.
17355
17356 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17357
17358         * opt-functions.awk (opt_sanitized_name): New.
17359         (opt_enum): New.
17360         * optc-gen.awk: Use it
17361         * opth-gen.awk: Use it.
17362
17363 2010-04-13  Martin Jambor  <mjambor@suse.cz>
17364
17365         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
17366         (sra_modify_assign): Delete stmts loading dead data even if racc has no
17367         children.  Call replace_uses_with_default_def_ssa_name to handle
17368         SSA_NAES on lhs.
17369
17370 2010-04-13  Michael Matz  <matz@suse.de>
17371
17372         PR middle-end/43730
17373         * builtins.c (expand_builtin_interclass_mathfn): Also create
17374         a register if the predicate doesn't match.
17375
17376 2010-04-13  Diego Novillo  <dnovillo@google.com>
17377
17378         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
17379         * c-pch.c: Include timevar.h.
17380         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
17381         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
17382         * ggc-common.c: Include timevar.h.
17383         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
17384         * timevar.def (TV_PCH_SAVE): Define.
17385         (TV_PCH_CPP_SAVE): Define.
17386         (TV_PCH_PTR_REALLOC): Define.
17387         (TV_PCH_PTR_SORT): Define.
17388         (TV_PCH_RESTORE): Define.
17389         (TV_PCH_CPP_RESTORE): Define.
17390
17391 2010-04-13  Michael Matz  <matz@suse.de>
17392
17393         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
17394         into MINUS_EXPRs.
17395         (can_reassociate_p): New function.
17396         (break_up_subtract_bb, reassociate_bb): Use it.
17397
17398 2010-04-13  Richard Guenther  <rguenther@suse.de>
17399
17400         PR bootstrap/43737
17401         * builtins.c (c_readstr): Fix assert.
17402
17403 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
17404
17405         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
17406         when generating cltd insn.
17407
17408         (*ashl<mode>3_1): Remove special handling for register operand 2.
17409         (*ashlsi3_1_zext): Ditto.
17410         (*ashlhi3_1): Ditto.
17411         (*ashlhi3_1_lea): Ditto.
17412         (*ashlqi3_1): Ditto.
17413         (*ashlqi3_1_lea): Ditto.
17414         (*<shiftrt_insn><mode>3_1): Ditto.
17415         (*<shiftrt_insn>si3_1_zext): Ditto.
17416         (*<shiftrt_insn>qi3_1_slp): Ditto.
17417         (*<rotate_insn><mode>3_1): Ditto.
17418         (*<rotate_insn>si3_1_zext): Ditto.
17419         (*<rotate_insn>qi3_1_slp): Ditto.
17420
17421 2010-04-13  Richard Guenther  <rguenther@suse.de>
17422
17423         * tree-ssa-structalias.c (callused_id): Remove.
17424         (call_stmt_vars): New.
17425         (get_call_vi): Likewise.
17426         (lookup_call_use_vi): Likewise.
17427         (lookup_call_clobber_vi): Likewise.
17428         (get_call_use_vi): Likewise.
17429         (get_call_clobber_vi): Likewise.
17430         (make_transitive_closure_constraints): Likewise.
17431         (handle_const_call): Adjust to do per-call call-used handling.
17432         (handle_pure_call): Likewise.
17433         (find_what_var_points_to): Remove general callused handling.
17434         (init_base_vars): Likewise.
17435         (init_alias_vars): Initialize call_stmt_vars.
17436         (compute_points_to_sets): Process call-used and call-clobbered
17437         vars for call statements.
17438         (delete_points_to_sets): Free call_stmt_vars.
17439
17440 2010-04-13  Richard Guenther  <rguenther@suse.de>
17441
17442         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17443         Only add RW dependence for dependence distance zero.
17444         Adjust maximal vectorization factor according to dependences.
17445         Move alignment handling ...
17446         (vect_find_same_alignment_drs): ... here.  New function.
17447         (vect_analyze_data_ref_dependences): Adjust.
17448         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
17449         (vect_analyze_data_refs): Adjust minimal vectorization factor
17450         according to data references.
17451         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
17452         dependences before determining the vectorization factor.
17453         Analyze alignment after determining the vectorization factor.
17454         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
17455         dependences before alignment.
17456         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
17457         Adjust prototype.
17458         (vect_analyze_data_refs): Likewise.
17459         (MAX_VECTORIZATION_FACTOR): New define.
17460
17461 2010-04-13  Duncan Sands  <baldrick@free.fr>
17462
17463         * except.h (lang_eh_type_covers): Remove.
17464         * except.c (lang_eh_type_covers): Likewise.
17465
17466 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17467             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17468
17469         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
17470         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
17471         UNITS_PER_LONG where it is ABI relevant.
17472         (s390_return_addr_rtx): Likewise.
17473         (s390_back_chain_rtx): Likewise.
17474         (s390_frame_area): Likewise.
17475         (s390_frame_info): Likewise.
17476         (s390_initial_elimination_offset): Likewise.
17477         (save_gprs): Likewise.
17478         (s390_emit_prologue): Likewise.
17479         (s390_emit_epilogue): Likewise.
17480         (s390_function_arg_advance): Likewise.
17481         (s390_function_arg): Likewise.
17482         (s390_va_start): Likewise.
17483         (s390_gimplify_va_arg): Likewise.
17484         (s390_function_profiler): Likewise.
17485         (s390_optimize_prologue): Likewise.
17486         (s390_rtx_costs): Likewise.
17487         (s390_secondary_reload): Likewise.
17488         (s390_promote_function_mode): Likewise.
17489         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
17490         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
17491         registers available.
17492         (s390_unwind_word_mode): New function.
17493         (s390_function_value): Split 64 bit values into register pair if
17494         used as return value.
17495         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
17496         function call parameters.  Handle parallels.
17497         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
17498         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
17499         (DWARF_CIE_DATA_ALIGNMENT): New macro.
17500         (s390_expand_setmem): Remove unused variable src_addr.
17501         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
17502         deal with 64 bit registers.
17503         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
17504         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
17505         (UNITS_PER_LONG): New macro.
17506         * libjava/include/s390-signal.h: Define extended ucontext
17507         structure containing the upper halfs of the 64 bit registers.
17508
17509 2010-04-13  Simon Baldwin  <simonb@google.com>
17510
17511         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
17512
17513 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
17514
17515         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
17516         rvalue on the RHS if the LHS is of a non-renamable type.
17517         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
17518
17519 2010-04-13  Matthias Klose  <doko@ubuntu.com>
17520
17521         * gcc.c (cc1_options): Handle -iplugindir before processing
17522         the cc1 spec. Only add -iplugindir once.
17523         (cpp_unique_options): Add -iplugindir option if -fplugin* options
17524         found.
17525         * common.opt (iplugindir): Remove `Separate' property, initialize.
17526         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
17527         option.
17528         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
17529         (distclean): Remove plugin dir.
17530         * doc/invoke.texi: Document -iplugindir.
17531
17532 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
17533
17534         * doc/plugins.texi (Loading Plugins): Document short
17535         -fplugin=foo option.
17536         (Plugin API): Mention default_plugin_dir_name function.
17537
17538         * gcc.c (find_file_spec_function): Add new declaration.
17539         (static_spec_func): Use it for "find-file".
17540         (find_file_spec_function): Add new function.
17541         (cc1_options): Add -iplugindir option if -fplugin* options found.
17542
17543         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
17544
17545         * plugin.c (add_new_plugin): Updated comment, and handle short
17546         plugin name.
17547         (default_plugin_dir_name): Added new function.
17548
17549         * common.opt (iplugindir): New option to set the plugin directory.
17550
17551 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
17552
17553         * config/i386/i386.md (any_rotate): New code iterator.
17554         (rotate_insn): New code attribute.
17555         (rotate): Ditto.
17556         (SWIM124): New mode iterator.
17557         (<rotate_insn>ti3): New expander.
17558         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
17559         any_rotate code iterator.
17560         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
17561         using any_rotate code iterator and SWIM124 mode iterator.
17562         (ix86_rotlti3): New insn_and_split pattern.
17563         (ix86_rotrti3): Ditto.
17564         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
17565         ix86_rotl{di,ti}3 patterns.
17566         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
17567         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
17568         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
17569         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
17570         code iterator and SWI mode iterator.
17571         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
17572         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
17573         code iterator.
17574         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
17575         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
17576         (bswap rotatert splitter): Add splitter.
17577         (bswap splitter): Macroize splitter using any_rotate code iterator.
17578         Add insn predicate to split only for TARGET_USE_XCHGB or when
17579         optimizing function for size.
17580
17581 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
17582
17583         * config/pa/pa.c (emit_move_sequence): Remove use of
17584         deleted variable flag_argument_noalias.
17585
17586 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17587
17588         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
17589         configurations.
17590         Add to unsupported targets list.
17591         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
17592         sparc*-sun-solaris2.[567]* from target lists.
17593         * configure: Regenerate.
17594         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
17595         removal.
17596         Remove Solaris 7 patch references.
17597         (Specific, sparc-sun-solaris2.7): Removed.
17598         (sparc-sun-solaris2*): Update Solaris 7 example.
17599         (sparc64-*-solaris2*): Likewise.
17600
17601 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17602
17603         * config.build (alpha*-dec-osf4*): Remove.
17604         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
17605         of obsolete configurations.
17606         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
17607         support.
17608         * config/alpha/t-osf4: Renamed to ...
17609         * config/alpha/t-osf5: ... this.
17610         * config/alpha/osf.h: Renamed to ...
17611         * config/alpha/osf5.h: ... this.
17612         Merged old osf5.h contents.
17613         Update comments.
17614         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
17615         (EXTRA_SPECS): Removed.
17616         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
17617         reflect removal of Tru64 UNIX V4.0/V5.0 support.
17618         Document that.
17619
17620 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17621
17622         * doc/contrib.texi (Contributors, Rainer Orth): Update.
17623
17624 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
17625
17626         PR/43702
17627         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
17628         __thiscall convention.
17629
17630 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
17631
17632         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
17633         orig_base.
17634         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
17635
17636 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
17637
17638         * function.c (assign_parms_initialize_all): Add unused attribute
17639         to fntype.
17640
17641 2010-04-12  Richard Guenther  <rguenther@suse.de>
17642
17643         * gsstruct.def (GSS_CALL): New.
17644         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
17645         * gimple.h: Include tree-ssa-alias.h.
17646         (struct gimple_statement_call): New.
17647         (union gimple_statement_struct_d): Add gimple_call member.
17648         (gimple_call_reset_alias_info): Declare.
17649         (gimple_call_use_set): New function.
17650         (gimple_call_clobber_set): Likewise.
17651         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
17652         * gimple.c (gimple_call_reset_alias_info): New function.
17653         (gimple_build_call_1): Call it.
17654         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17655         * tree-inline.c (remap_gimple_stmt): Likewise.
17656         (expand_call_inline): Remove callused handling.
17657         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
17658         * tree-dfa.c (dump_variable): Likewise.
17659         * tree-parloops.c (parallelize_loops): Likewise.
17660         * tree-ssa.c (init_tree_ssa): Likewise.
17661         (delete_tree_ssa): Likewise.
17662         * tree-flow-inline.h (is_call_used): Remove.
17663         * tree-flow.h (struct gimple_df): Remove callused member.
17664         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
17665         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
17666         (ref_maybe_used_by_call_p_1): Simplify.
17667         (call_may_clobber_ref_p_1): Likewise.
17668         * tree-ssa-structalias.c (compute_points_to_sets): Set
17669         the call stmt used and clobbered sets.
17670         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
17671         (find_tail_calls): Verify the tail call.
17672
17673 2010-04-12  Richard Guenther  <rguenther@suse.de>
17674
17675         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
17676         single-iteration always-inline inlining.
17677         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
17678         (cgraph_decide_inlining): Do not handle always-inline specially.
17679         (try_inline): Remove always-inline cycle detection special case.
17680         Do not recurse on always-inlines.
17681         (cgraph_early_inlining): Do not iterate if not optimizing.
17682         (cgraph_gate_early_inlining): remove.
17683         (pass_early_inline): Run unconditionally.
17684         (gate_cgraph_decide_inlining): New function.
17685         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
17686         not inlining or optimizing.
17687         (cgraph_decide_inlining_of_small_functions): Also consider
17688         always-inline functions.
17689         (cgraph_default_inline_p): Return true for nodes which should
17690         disregard inline limits.
17691         (estimate_function_body_sizes): Assume zero size and time for
17692         nodes which are marked as disregarding inline limits.
17693         (cgraph_decide_recursive_inlining): Do not perform recursive
17694         inlining on always-inline nodes.
17695
17696 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
17697
17698         PR bootstrap/43699
17699         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
17700         for exprs satisfying handled_component_p.
17701
17702 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17703
17704         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
17705         non-constant aggregate elements.
17706
17707         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
17708         is a real initialization.
17709
17710 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
17711
17712         PR c/36774
17713         * c-decl.c (start_function): Move forward check for nested function.
17714
17715 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
17716
17717         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
17718         * config/sh/sh.c: Include reload.h.
17719         (sh_legitimize_reload_address): New.
17720         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
17721         sh_legitimize_reload_address.
17722
17723 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17724
17725         * config/sh/sh.md (*movqi_pop): New insn pattern.
17726         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
17727
17728 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
17729
17730         * config/i386/i386.md (any_shiftrt): New code iterator.
17731         (shiftrt_insn): New code attribute.
17732         (shiftrt): Ditto.
17733         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
17734         using any_shiftrt code iterator.
17735         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
17736         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
17737         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
17738         pattern from corresponding peephole2 patterns.
17739         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
17740         using any_shiftrt code iterator.
17741         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
17742         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
17743         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
17744         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
17745         *{ashr,lshr}<mode>3_cmp_zext.
17746         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
17747
17748 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
17749
17750         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
17751         scratch register.
17752         (*lshr<mode>3_cconly): Ditto.
17753
17754 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
17755
17756         * config/i386/i386.md (lshr<mode>3): Macroize expander from
17757         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17758         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17759         pattern from *lshr{di,ti}3_1 and corresponding splitters using
17760         DWI mode iterator.
17761         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17762         from corresponding peephole2 patterns.
17763         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
17764         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
17765         and *lshrdi3_1_rex64 using SWI mode iterator.
17766         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
17767         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
17768         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
17769         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
17770         and *lshrdi3_cmp_rex64 using SWI mode iterator.
17771         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
17772         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
17773         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
17774         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
17775         SWI mode iterator.
17776
17777 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
17778
17779         * config/i386/i386.md (ashr<mode>3): Macroize expander from
17780         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17781         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17782         pattern from *ashr{di,ti}3_1 and corresponding splitters using
17783         DWI mode iterator.
17784         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17785         from corresponding peephole2 patterns.
17786         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
17787         (ashrsi3_cvt): Rename from ashrsi3_31.
17788         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
17789         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
17790         and x86_64_shift_adj_3 using SWI48 mode iterator.
17791         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
17792         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
17793         and *ashrdi3_1_rex64 using SWI mode iterator.
17794         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
17795         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
17796         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
17797         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
17798         and *ashrdi3_cmp_rex64 using SWI mode iterator.
17799         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
17800         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
17801         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
17802         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
17803         SWI mode iterator.
17804         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
17805         * config/i386/i386.c (ix86_split_ashr): Update for renamed
17806         x86_shift<mode>_adj_3 expanders.
17807
17808 2010-04-10  Wei Guozhi  <carrot@google.com>
17809
17810         PR target/42601
17811         * config/arm/arm.c (arm_pic_static_addr): New function.
17812         (legitimize_pic_address): Call arm_pic_static_addr when it detects
17813         a static symbol.
17814         (arm_output_addr_const_extra): Output expression for new pattern.
17815         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
17816
17817 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
17818
17819         * ira-costs.c (record_reg_classes): Ignore alternatives that are
17820         not enabled.
17821
17822         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
17823         * web.c: Include "insn-config.h" and "recog.h".
17824         (union_match_dups): New function.
17825         (web_main): Call it.
17826         (union_defs): Don't try to recognize match_dups.
17827
17828         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
17829         if doing so would replace the entire pattern.
17830
17831 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
17832
17833         PR target/43707
17834         PR target/43709
17835         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
17836         and splitter pattern.  Change splitter operand 1 predicate to
17837         nonmemory_operand.
17838
17839 2010-04-09  Martin Jambor  <mjambor@suse.cz>
17840
17841         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
17842         lattices are addresses of CONST_DECLs with the same initial value.
17843         (ipcp_print_all_lattices): Print values of CONST_DECLs.
17844         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
17845
17846 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
17847             Bernd Schmidt  <bernds@codesourcery.com>
17848
17849         * loop-invariant.c (replace_uses): New static function.
17850         (move_invariant_reg): Use it to ensure we can replace the uses.
17851
17852 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
17853
17854         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
17855         function template.
17856         (picochip_override_options): Enable section anchors only above -O1.
17857         (picochip_reorg): Fixed a couple of build warnings.
17858
17859 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17860
17861         * configure.ac (plugin -rdynamic test): Log result.
17862         * configure: Regenerate.
17863         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
17864         (RDYNAMIC_SPEC): Define.
17865         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
17866
17867 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17868
17869         * configure.ac: Determine Sun ld version numbers.
17870         (comdat_group): Restrict GNU ld version checks to gld.
17871         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
17872         (enable_comdat): Support --enable-comdat.
17873         * configure: Regenerate.
17874         * doc/install.texi (Configuration): Document --enable-comdat.
17875
17876 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17877
17878         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
17879         * config/sol2-gld.h: ... here.
17880         * config.gcc (sparc*-*-solaris2*): Reflect this.
17881         (i[34567]86-*-solaris2*): Use it.
17882
17883 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
17884
17885         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
17886         setup_clocks_p.
17887         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
17888
17889 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17890
17891         PR 42965
17892         * diagnostic.c (diagnostic_initialize): Initialize
17893         some_warnings_are_errors.
17894         (diagnostic_finish): New.
17895         (diagnostic_action_after_output): Call it before exiting.
17896         (diagnostic_report_diagnostic): Do not print message here. Set
17897         some_warnings_are_errors.
17898         * diagnostic.h (diagnostic_context): Delete
17899         issue_warnings_are_errors_message. Add some_warnings_are_errors.
17900         (diagnostic_finish): Declare.
17901         * toplev.c (toplev_main): Call it before exit.
17902
17903 2010-04-09  Jason Merrill  <jason@redhat.com>
17904
17905         PR c++/42623
17906         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
17907         for incomplete type.
17908
17909         PR c++/41788
17910         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
17911         based on a warning flag.
17912
17913 2010-04-09  Richard Guenther  <rguenther@suse.de>
17914
17915         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
17916
17917 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
17918
17919         PR bootstrap/43684
17920         * varasm.c (default_assemble_visibility): Wrap vars that are
17921         set, but unused, by targets without GAS.
17922         * config/rs6000/rs6000.c (paired_emit_vector_compare):
17923         Remove set, but unused, vars.
17924         (rs6000_legitimize_tls_address): Likewise.
17925         (altivec_expand_dst_builtin): Likewise.
17926         * config/darwin.c (machopic_classify_symbol): Likewise.
17927         (machopic_indirection_name): Likewise.
17928
17929 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
17930
17931         * config/i386/i386.md (DWI): New mode iterator.
17932         (S): New mode attribute.
17933         (shift_operand): Ditto.
17934         (shift_immediate_operand): Ditto.
17935         (ashl_input_operand): Ditto.
17936         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
17937         using SDWIM mode iterator.
17938         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17939         pattern from *ashl{di,ti}3_1 and corresponding splitters using
17940         DWI mode iterator.
17941         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
17942         from corresponding peephole2 patterns.
17943         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
17944         and x86_64_shift_adj_1 using SWI48 mode iterator.
17945         (x86_shift<mode>_adj_2): Ditto.
17946         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
17947         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
17948         using SWI48 mode iterator.
17949         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
17950         *ashldi3_cmp_rex64 using SWI mode iterator.
17951         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
17952         *ashldi3_cconly_rex64 using SWI mode iterator.
17953         * config/i386/i386.c (ix86_split_ashl): Update for renamed
17954         x86_shift<mode>_adj_{1,2}.
17955         (ix86_split_ashr): Ditto.
17956         (ix86_split_lshr): Ditto.
17957
17958 2010-04-09  Richard Guenther  <rguenther@suse.de>
17959
17960         * target.h (builtin_conversion): Pass in input and output types.
17961         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
17962         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
17963         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
17964         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
17965
17966         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
17967         Handle AVX modes.
17968         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
17969
17970 2010-04-09  Richard Guenther  <rguenther@suse.de>
17971
17972         PR target/43152
17973         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
17974
17975 2010-04-09  Richard Guenther  <rguenther@suse.de>
17976
17977         * tree-vectorizer.h (struct _stmt_vec_info): Document
17978         that vectype is the type of the LHS.
17979         (supportable_widening_operation, supportable_narrowing_operation):
17980         Get both input and output vector types as arguments.
17981         (vect_is_simple_use_1): Declare.
17982         (get_same_sized_vectype): Likewise.
17983         * tree-vect-loop.c (vect_determine_vectorization_factor):
17984         Set STMT_VINFO_VECTYPE to the vector type of the def.
17985         (vectorizable_reduction): Adjust.
17986         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
17987         Adjust.  Specify the output vector type.
17988         (vect_pattern_recog_1): Adjust.
17989         * tree-vect-stmts.c (get_same_sized_vectype): New function.
17990         (vectorizable_call): Adjust.
17991         (vectorizable_conversion): Likewise.
17992         (vectorizable_operation): Likewise.
17993         (vectorizable_type_demotion): Likewise.
17994         (vectorizable_type_promotion): Likewise.
17995         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
17996         the def.
17997         (vect_is_simple_use_1): New function.
17998         (supportable_widening_operation): Get both input and output
17999         vector types.
18000         (supportable_narrowing_operation): Likewise.
18001         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18002
18003 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18004
18005         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18006         __thiscall and _thiscall as predefined macros.
18007         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18008         thiscall attribute handling.
18009         (ix86_comp_type_attributes): Likewise.
18010         (ix86_function_regparm): Likewise.
18011         (ix86_return_pops_args): Likewise.
18012         (init_cumulative_args): Likewise.
18013         (find_drap_reg): Likewise.
18014         (ix86_static_chain): Likewise.
18015         (x86_this_parameter): Likewise.
18016         (x86_output_mi_thunk): Likewise.
18017         (ix86_attribute_table): Add description for thiscall attribute.
18018         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18019         * doc/extend.texi: Add documentation for thiscall.
18020
18021 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18022
18023         PR c++/28584
18024         * c.opt (Wint-to-pointer-cast): Available in C++.
18025         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18026
18027 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18028
18029         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18030         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18031         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18032         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18033         function type instead.  Reorder and simplify checks.
18034
18035         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18036
18037 2010-04-08  Jing Yu  <jingyu@google.com>
18038             Zdenek Dvorak  <ook@ucw.cz>
18039
18040         PR tree-optimization/42720
18041         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18042         loop unswitch conditions here from ...
18043         (tree_unswitch_single_loop): ... here.
18044
18045 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18046
18047         * tree-if-conv.c: Fix comments and simplify logic.
18048
18049 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18050
18051         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18052         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18053         (main_tree_if_conversion): Update call to tree_if_conversion.
18054
18055 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18056
18057         PR 42485
18058         * doc/invoke.texi (-b,-V): Delete.
18059         * doc/tm.texi: Do not mention -b.
18060         * gcc.c (display_help): Delete -b and -V.
18061         (process_command): Delete -b and -V.
18062         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18063
18064 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18065             Wolfgang Gellerich  <gellerich@de.ibm.com>
18066
18067         Implement target hook for loop unrolling
18068         * target.h (loop_unroll_adjust): Add a new target hook function.
18069         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18070         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18071         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18072         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18073         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18074         target hook.
18075         (decide_unroll_stupid): Likewise.
18076
18077 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18078
18079         PR target/43643
18080         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18081
18082 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18083
18084         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18085         (Specific, *-*-solaris2*): Likewise.
18086         Don't prefer Sun as over GNU as.
18087
18088 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
18089
18090         * config/s390/s390.c (override_options): Adjust the z10 defaults
18091         for max-unroll-times, max-completely-peeled-insns
18092         and max-completely-peel-times.
18093
18094 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18095
18096         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
18097         instructions for z10.
18098         (s390_expand_setmem): Likewise.
18099         (s390_expand_cmpmem): Likewise.
18100
18101 2010-04-08  Richard Guenther  <rguenther@suse.de>
18102
18103         PR tree-optimization/43679
18104         * tree-ssa-pre.c (eliminate): Only propagate copies.
18105
18106 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18107
18108         PR bootstrap/43681
18109         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
18110         set but not used variable warning.
18111
18112 2010-04-08  Wei Guozhi  <carrot@google.com>
18113
18114         PR target/41653
18115         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
18116         (arm_size_rtx_costs): Call the new function when optimized for size.
18117
18118 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
18119
18120         PR debug/43670
18121         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
18122         op0 is not a MEM, just return NULL instead of assertion
18123         failure.
18124         (discover_nonconstant_array_refs): Don't walk debug stmts.
18125
18126 2010-04-08  Doug Kwan  <dougkwan@google.com>
18127
18128         * configure.ac: Recognize gold and do not use its version number
18129         to test ld features.
18130         * configure: Regenerate.
18131
18132 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
18133
18134         PR middle-end/40815
18135         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
18136         (negate_value): Move code to push elements to broken_up_substracts ...
18137         (eliminate_plus_minus_pair): ... here.  Push operands that have no
18138         negative pair to plus_negates.
18139         (repropagate_negates, init_reassoc, fini_reassoc): Update.
18140
18141 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18142
18143         * doc/install.texi (Configuration): Move description of
18144         --enable-lto, --with-libelf*, --enable-gold from Java section to
18145         general section.
18146
18147         * doc/generic.texi (Working with declarations)
18148         (Function Properties, C and C++ Trees): Fix typos.
18149         * doc/sourcebuild.texi (Top Level): Likewise.
18150
18151 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18152
18153         PR c/18624
18154         * tree.h (DECL_READ_P): Define.
18155         (struct tree_decl_common): Add decl_read_flag.
18156         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
18157         a set but not used warning.
18158         (merge_decls): Merge DECL_READ_P flag.
18159         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
18160         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
18161         * c-common.c (handle_used_attribute, handle_unused_attribute):
18162         Likewise.
18163         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
18164         New prototypes.
18165         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
18166         New functions.
18167         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
18168         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
18169         c_parser_binary_expression, c_parser_cast_expression,
18170         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
18171         Call default_function_array_read_conversion instead of
18172         default_function_array_conversion where needed.
18173         (c_parser_unary_expression, c_parser_conditional_expression,
18174         c_parser_postfix_expression_after_primary, c_parser_initelt):
18175         Likewise.  Call mark_exp_read where needed.
18176         (c_parser_statement_after_labels, c_parser_asm_operands,
18177         c_parser_typeof_specifier, c_parser_sizeof_expression,
18178         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
18179         where needed.
18180         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
18181         New.
18182         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
18183         (warn_unused_but_set_parameter): Default to warn_unused
18184         && extra_warnings.
18185         * doc/invoke.texi: Document -Wunused-but-set-variable and
18186         -Wunused-but-set-parameter.
18187
18188         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
18189         used count variable.
18190         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
18191         when operandN variables aren't used in the body of the expander
18192         or splitter.
18193         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
18194         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
18195         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
18196         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
18197         FOR_EACH_IMM_USE_ON_STMT): Likewise.
18198         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
18199         * tree.c (PROCESS_ARG): Likewise.
18200
18201 2010-04-07  Simon Baldwin  <simonb@google.com>
18202
18203         * diagnostic.h (diagnostic_override_option_index): New macro to
18204         set a diagnostic's option_index.
18205         * c-tree.h (c_cpp_error): Add warning reason argument.
18206         * opts.c (_warning_as_error_callback): New.
18207         (register_warning_as_error_callback): Store callback for
18208         warnings enabled via enable_warning_as_error.
18209         (enable_warning_as_error): Call callback, minor code tidy.
18210         * opts.h (register_warning_as_error_callback): Declare.
18211         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
18212         response to -Werror=.
18213         (c_common_init_options): Register warning_as_error_callback in opts.c.
18214         * common.opt: Add -Wno-cpp option.
18215         * c-common.c (struct reason_option_codes_t): Map cpp warning
18216         reason codes to gcc option indexes.
18217         * (c_option_controlling_cpp_error): New function, lookup the gcc
18218         option index for a cpp warning reason code.
18219         * (c_cpp_error): Add warning reason argument, call
18220         c_option_controlling_cpp_error for diagnostic_override_option_index.
18221         * doc/invoke.texi: Document -Wno-cpp.
18222
18223 2010-04-07  Richard Guenther  <rguenther@suse.de>
18224
18225         * ipa-reference.c (mark_load): Use get_base_address.
18226         (mark_store): Likewise.
18227
18228         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
18229         inserting GIMPLE_NOPs into the IL.
18230         * tree-ssa-structalias.c (get_constraint_for_component_ref):
18231         Explicitly strip handled components and indirect references.
18232
18233         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
18234         folding address expressions.
18235         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
18236         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
18237         operand_equal_p to compare decls.
18238         (ptr_deref_may_alias_decl_p): Likewise.
18239         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
18240         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
18241         Handle reversed comparison ops.
18242         * tree-sra.c (asm_visit_addr): Use get_base_address.
18243         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
18244         * ipa-reference.c (mark_address): Use get_base_address.
18245
18246 2010-04-07  Richard Guenther  <rguenther@suse.de>
18247
18248         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
18249         Propagate constants everywhere.
18250
18251 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
18252
18253         PR debug/43516
18254         * tree.c (MAX_INT_CACHED_PREC): Define.
18255         (nonstandard_integer_type_cache): New array.
18256         (build_nonstandard_integer_type): Cache results for precision
18257         <= MAX_INT_CACHED_PREC.
18258
18259 2010-04-07  Richard Guenther  <rguenther@suse.de>
18260
18261         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
18262         -fargument-noalias-global, -fargument-noalias-anything): Remove.
18263         * common.opt: Likewise.
18264         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
18265         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
18266         (nonoverlapping_memrefs_p): Likewise.
18267         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
18268         * opts.c (common_handle_option): Handle OPT_fargument_alias,
18269         OPT_fargument_noalias, OPT_fargument_noalias_anything and
18270         OPT_fargument_noalias_global for backward compatibility.
18271
18272 2010-04-07  Richard Guenther  <rguenther@suse.de>
18273
18274         PR tree-optimization/43270
18275         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
18276         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
18277         * tree-ssa-pre.c (phi_translate_1): Adjust.
18278         (fully_constant_expression): Split out vn_reference handling to ...
18279         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
18280         Fold reads from constant strings.
18281         (vn_reference_lookup): Handle fully constant references.
18282         (vn_reference_lookup_pieces): Likewise.
18283         * Makefile.in (expmed.o-warn): Add -Wno-error.
18284
18285 2010-04-07  Martin Jambor  <mjambor@suse.cz>
18286
18287         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
18288
18289 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
18290
18291         PR driver/41594
18292         * gcc.c: Add -static-libstdc++ to list of recognized options.
18293
18294 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18295
18296         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
18297
18298 2010-04-07  Richard Guenther  <rguenther@suse.de>
18299
18300         PR middle-end/42617
18301         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
18302         bases build simple mem attributes to retain points-to information.
18303
18304 2010-04-07  Richard Guenther  <rguenther@suse.de>
18305
18306         PR middle-end/42617
18307         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
18308         preserve points-to related information.
18309
18310 2010-04-07  Richard Guenther  <rguenther@suse.de>
18311
18312         PR middle-end/42617
18313         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
18314         discard plain indirect references.
18315         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
18316         * tree.c (tree_nop_conversion): Likewise.
18317
18318 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
18319
18320         PR debug/43628
18321         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
18322
18323 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
18324
18325         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
18326         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
18327
18328 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18329
18330         * tree-if-conv.c: Fix indentation and comments.
18331
18332 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18333
18334         * tree-if-conv.c: Sort static functions in topological order.
18335
18336 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
18337
18338         * tree-if-conv.c: Fix indentation and comments.
18339
18340 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18341
18342         PR middle-end/43519
18343         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
18344         lang_hooks.types.type_for_size instead of
18345         build_nonstandard_integer_type.
18346         When converting an unsigned type to signed, double its precision.
18347         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
18348         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
18349         (graphite_create_new_loop_guard): When ub + 1 wraps around,
18350         use lb <= ub.
18351
18352 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18353
18354         PR middle-end/43519
18355         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18356         POINTER_PLUS_EXPR for pointer types.
18357
18358 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18359
18360         PR middle-end/43519
18361         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
18362         * graphite-clast-to-gimple.c: Include langhooks.h.
18363         (max_signed_precision_type): New.
18364         (max_precision_type): Takes two types as arguments.
18365         (precision_for_value): New.
18366         (precision_for_interval): New.
18367         (gcc_type_for_interval): New.
18368         (gcc_type_for_value): New.
18369         (gcc_type_for_clast_term): New.
18370         (gcc_type_for_clast_red): New.
18371         (gcc_type_for_clast_bin): New.
18372         (gcc_type_for_clast_expr): Split up into several functions.
18373         (gcc_type_for_clast_eq): Rewritten.
18374         (compute_bounds_for_level): New.
18375         (compute_type_for_level_1): New.
18376         (compute_type_for_level): New.
18377         (gcc_type_for_cloog_iv): Removed.
18378         (gcc_type_for_iv_of_clast_loop): Rewritten.
18379         (graphite_create_new_loop): Compute the lower and upper bound types
18380         with gcc_type_for_clast_expr.
18381         (graphite_create_new_loop_guard): Same.
18382         (find_cloog_iv_in_expr): Removed.
18383         (compute_cloog_iv_types_1): Removed.
18384         (compute_cloog_iv_types): Removed.
18385         (gloog): Do not call compute_cloog_iv_types.
18386         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
18387         GBB_CLOOG_IV_TYPES.
18388         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
18389         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
18390         (GBB_CLOOG_IV_TYPES): Removed.
18391
18392 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18393
18394         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
18395         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
18396         (detect_commutative_reduction): Same.
18397
18398 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18399
18400         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
18401         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
18402         argument.
18403         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
18404         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
18405         (rewrite_commutative_reductions_out_of_ssa): Same.
18406         * passes.c (execute_function_todo): Call verify_ssa for every pass
18407         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
18408         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
18409         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
18410         with an extra argument.
18411         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
18412         verify_ssa only when the extra argument is true.
18413         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
18414         with an extra argument.
18415         (tree_transform_and_unroll_loop): Same.
18416
18417 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
18418
18419         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
18420         for all the passes of the LNO having LOOP_CLOSED_SSA.
18421         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
18422         * tree-loop-distribution.c (pass_loop_distribution): Same.
18423         * tree-pass.h (TODO_verify_loops): Removed.
18424         * tree-ssa-loop.c (pass_tree_loop_init): Same.
18425         (pass_lim): Same.
18426         (pass_tree_unswitch): Same.
18427         (pass_predcom): Same.
18428         (pass_vectorize): Same.
18429         (pass_linear_transform): Same.
18430         (pass_graphite_transforms): Same.
18431         (pass_iv_canon): Same.
18432         (pass_complete_unroll): Same.
18433         (pass_complete_unrolli): Same.
18434         (pass_parallelize_loops): Same.
18435         (pass_loop_prefetch): Same.
18436         (pass_iv_optimize): Same.
18437
18438 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
18439
18440         PR middle-end/32824
18441         * passes.c (init_optimization_passes): Move pass_lim before
18442         pass_copy_prop and pass_dce_loop.
18443
18444 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18445
18446         PR target/43667
18447         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
18448         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
18449         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
18450         MULTI_* defines for 4 argument vpermil2p* builtins.
18451
18452 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
18453
18454         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
18455         * config/i386/i386.c (x86_maybe_negate_const_int): New.
18456         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
18457         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
18458         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
18459         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
18460         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
18461         Use x86_maybe_negate_const_int to output insn mnemonic.
18462         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
18463         check from instruction predicate.  Update comments.
18464         * config/i386/sync.md (sync_add<mode>): Use
18465         x86_maybe_negate_const_int to output insn mnemonic.
18466
18467 2010-04-06  Jan Hubicka  <jh@suse.cz>
18468
18469         PR tree-optimization/42906
18470         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
18471         IGNORE_SELF argument.  Set visited_control_parents for fully
18472         processed BBs.
18473         (find_obviously_necessary_stmts): Update call of
18474         mark_control_dependent_edges_necessary.
18475         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
18476
18477 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
18478
18479         * config/i386/i386.md: Remove comment about 'e' and 'E'
18480         operand modifier.
18481
18482 2010-04-06  Richard Guenther  <rguenther@suse.de>
18483
18484         PR tree-optimization/43627
18485         * tree-vrp.c (extract_range_from_unary_expr): Widenings
18486         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
18487         not varying.
18488
18489 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
18490
18491         * BASE-VER: Change to 4.6.0.
18492
18493         PR target/43638
18494         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
18495         handling.
18496
18497 2010-04-06  Richard Guenther  <rguenther@suse.de>
18498
18499         PR middle-end/43661
18500         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
18501
18502 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18503
18504         * doc/invoke.texi (Optimize Options): Document that LTO
18505         won't remove object access purely due to incompatible
18506         declarations.
18507
18508 2010-04-04  Matthias Klose  <doko@ubuntu.com>
18509
18510         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
18511         Initialize variable.
18512
18513 2010-04-03  Richard Guenther  <rguenther@suse.de>
18514
18515         PR middle-end/42509
18516         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
18517         require a non-NULL MEM_OFFSET.
18518
18519 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
18520
18521         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
18522         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
18523         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
18524         config/alpha/predicates.md, config/arm/arm.md,
18525         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
18526         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
18527         config/darwin9.h, config/darwin.c, config/darwin.h,
18528         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
18529         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
18530         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
18531         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
18532         config/mips/mips.md, config/mn10300/mn10300.c,
18533         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
18534         config/rs6000/aix.h, config/rs6000/dfp.md,
18535         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
18536         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
18537         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
18538         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
18539         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
18540         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
18541         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
18542         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
18543         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
18544         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
18545         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
18546         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
18547         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
18548         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
18549         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
18550         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
18551         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
18552         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
18553         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
18554         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
18555         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
18556         opt-functions.awk, opth-gen.awk, params.def, passes.c,
18557         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
18558         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
18559         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
18560         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
18561         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
18562         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18563         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
18564         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
18565         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
18566         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
18567         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
18568         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
18569         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
18570         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
18571
18572 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18573
18574         PR other/43620
18575         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
18576         * aclocal.m4: Regenerate.
18577
18578 2010-04-02  Richard Guenther  <rguenther@suse.de>
18579
18580         PR tree-optimization/43629
18581         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
18582         if we have seen a constant value.
18583
18584 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
18585
18586         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
18587
18588 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
18589
18590         PR target/43469
18591         * arm.c (legitimize_tls_address): Adjust call to
18592         gen_tls_load_dot_plus_four.
18593         (arm_note_pic_base): New function.
18594         (arm_cannot_copy_insn_p): Use it.
18595         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
18596         constraint.
18597
18598 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18599
18600         PR bootstrap/43531
18601
18602         Revert:
18603         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18604
18605         * Makefile.in ($(out_object_file)): Depend on
18606         gt-$(basename $(notdir $(out_file))).h.
18607
18608 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
18609
18610         * config.gcc (lm32-*-rtems*): Add t-lm32.
18611
18612 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
18613
18614         * config.gcc: Add lm32-*-rtems*.
18615         * config/lm32/rtems.h: New file.
18616
18617 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
18618
18619         PR target/42609
18620         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
18621
18622 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
18623
18624         * dwarf2out.c (output_compilation_unit_header): For
18625         -gdwarf-4 use version 4 instead of version 3.
18626         (output_line_info): For version 4 and above emit additional
18627         maximum ops per insn header field.
18628         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
18629
18630         * dwarf2out.c (is_c_family, is_java): Remove.
18631         (lower_bound_default): New function.
18632         (add_bound_info, gen_descr_array_type_die): Use it.
18633
18634 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
18635
18636         PR debug/43325
18637         * dwarf2out.c (gen_variable_die): Allow debug info for variable
18638         re-declaration when it happens in a function.
18639
18640 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
18641
18642         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
18643         (cgraph_remove_function_insertion_hook): Same.
18644         (cgraph_call_function_insertion_hooks): Same.
18645
18646 2010-04-01  Richard Guenther  <rguenther@suse.de>
18647
18648         PR middle-end/43614
18649         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
18650         and TREE_THIS_VOLATILE.
18651         (copy_ref_info): Likewise.
18652         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
18653         * tree.c (build6_stat): Ignore side-effects of all but arg5
18654         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
18655         TARGET_MEM_REF.
18656
18657 2010-04-01  Richard Guenther  <rguenther@suse.de>
18658
18659         PR tree-optimization/43607
18660         * ipa-type-escape.c (check_call): Do not access non-existing
18661         arguments.
18662
18663 2010-04-01  Richard Guenther  <rguenther@suse.de>
18664
18665         PR middle-end/43602
18666         Revert
18667         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
18668                     Jack Howarth <howarth@bromo.med.uc.edu>
18669
18670         * tree-profile.c (tree_init_ic_make_global_vars): Make static
18671         variables TLS.
18672
18673 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18674
18675         * doc/install.texi (Prerequisites): Document libelf usability on
18676         IRIX 5/6 and Solaris 2.
18677         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
18678         Update GNU as, GNU ld requirements.
18679         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
18680         Document Sun Studio compiler download.
18681         Update and simplify as, ld recommendations.
18682         (Specific, *-*-solaris2.7): Note obsoletion, removal.
18683
18684 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18685
18686         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
18687         with_tune_32 to pentium4.
18688
18689 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
18690
18691         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
18692
18693 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18694
18695         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
18696         obsoletion, removal.
18697         Update IDO URL.
18698         Document GNU as requirement.
18699         Update configure requirements.
18700         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
18701         Recomment IRIX 6.5.18+.
18702         Document IDF/IDL requirement.
18703         Document GNU as requirement.
18704         Document GNU ld bootstrap failure.
18705         Remove freeware.sgi.com reference.
18706
18707 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18708
18709         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
18710         UNIX V4.0, V5.0 obsoletion, removal.
18711         Remove --with-gc=simple reference.
18712         Update VM requirements during bootstrap.
18713         Remove -oldas bootstrap description.
18714         Update binutils reference.
18715         Remove comparison failure note.
18716
18717 2010-03-31  Richard Guenther  <rguenther@suse.de>
18718             Zdenek Dvorak  <ook@ucw.cz>
18719             Sebastian Pop  <sebastian.pop@amd.com>
18720
18721         PR middle-end/43464
18722         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
18723         with multiple arguments.
18724         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
18725
18726 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18727
18728         * graphite-dependences.c (print_pddr): Call print_pdr with an
18729         extra argument.
18730         * graphite-poly.c (debug_pdr): Add an extra argument for the
18731         verbosity level.
18732         (print_pdr): Same.
18733         (print_pbb_domain): Same.
18734         (print_pbb): Same.
18735         (print_scop_context): Same.
18736         (print_scop): Same.
18737         (print_cloog): Same.
18738         (debug_pbb_domain): Same.
18739         (debug_pbb): Same.
18740         (print_pdrs): Same.
18741         (debug_pdrs): Same.
18742         (debug_scop_context): Same.
18743         (debug_scop): Same.
18744         (debug_cloog): Same.
18745         (print_scop_params): Same.
18746         (debug_scop_params): Same.
18747         (print_iteration_domain): Same.
18748         (print_iteration_domains): Same.
18749         (debug_iteration_domain): Same.
18750         (debug_iteration_domains): Same.
18751         (print_scattering_function): Same.
18752         (print_scattering_functions): Same.
18753         (debug_scattering_function): Same.
18754         (debug_scattering_functions): Same.
18755         * graphite-poly.h (debug_pdr): Update declaration.
18756         (print_pdr): Same.
18757         (print_pbb_domain): Same.
18758         (print_pbb): Same.
18759         (print_scop_context): Same.
18760         (print_scop): Same.
18761         (print_cloog): Same.
18762         (debug_pbb_domain): Same.
18763         (debug_pbb): Same.
18764         (print_pdrs): Same.
18765         (debug_pdrs): Same.
18766         (debug_scop_context): Same.
18767         (debug_scop): Same.
18768         (debug_cloog): Same.
18769         (print_scop_params): Same.
18770         (debug_scop_params): Same.
18771         (print_iteration_domain): Same.
18772         (print_iteration_domains): Same.
18773         (debug_iteration_domain): Same.
18774         (debug_iteration_domains): Same.
18775         (print_scattering_function): Same.
18776         (print_scattering_functions): Same.
18777         (debug_scattering_function): Same.
18778         (debug_scattering_functions): Same.
18779
18780 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18781
18782         * graphite-poly.c (print_scattering_function_1): New.
18783         (print_scattering_function): Call it.
18784         (print_scop_params): Remove spaces at the end of lines.
18785         (print_cloog): New.
18786         (debug_cloog): New.
18787         * graphite-poly.h (print_cloog): Declared.
18788         (debug_cloog): Declared.
18789
18790 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18791
18792         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
18793         in loop->header.
18794         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
18795         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
18796         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
18797         to switch between adding the IV bump in loop->latch or in loop->header.
18798
18799 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18800
18801         * graphite-poly.c (print_scattering_function): Pretty print following
18802         the scoplib format.
18803         (print_pdr): Same.
18804         (print_pbb_domain): Same.
18805         (dump_gbb_cases): Same.
18806         (dump_gbb_conditions): Same.
18807         (print_pdrs): Same.
18808         (print_pbb): Same.
18809         (print_scop_params): Same.
18810         (print_scop_context): Same.
18811         (print_scop): Same.
18812         (print_pbb_body): New.
18813         (lst_indent_to): New.
18814         (print_lst): Start new lines with a #.
18815         * graphite-poly.h (pbb_bb): New.
18816         (pbb_index): Use pbb_bb.
18817         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
18818         disjuncts.
18819         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
18820
18821 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
18822
18823         * dwarf2out.c (size_of_die): For -gdwarf-4 use
18824         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
18825         and 0 instead of 1 for dw_val_class_flag.
18826         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
18827         dw_val_class_range_list, dw_val_class_loc_list,
18828         dw_val_class_lineptr and dw_val_class_macptr, use
18829         DW_FORM_flag_present for dw_val_class_flag and
18830         DW_FORM_exprloc for dw_val_class_loc.
18831         (output_die): For -gdwarf-4 print dw_val_class_loc
18832         size as uleb128 instead of 1 or 2 bytes and don't print
18833         anything for dw_val_class_flag.
18834
18835         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
18836         instead of cselib_lookup following by tweaking locs->setting_insn.
18837
18838         PR bootstrap/43596
18839         * cselib.c (cselib_process_insn): Clear cselib_current_insn
18840         even before returning from label, setjmp call or volatile asm
18841         handling.
18842
18843 2010-03-31  Richard Guenther  <rguenther@suse.de>
18844
18845         PR middle-end/43600
18846         * cgraphunit.c (cgraph_output_in_order): Do not allocate
18847         temporary data on stack.
18848
18849 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18850
18851         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
18852         (PUSHSECTION_ASM_OP): Remove.
18853         (POPSECTION_ASM_OP): Remove.
18854         (PUSHSECTION_FORMAT): Remove.
18855         * config/sol2.h (PUSHSECTION_FORMAT): Define.
18856         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
18857         * config/sol2.c (solaris_output_init_fini): Use it.
18858
18859 2010-03-31  Jie Zhang  <jie@codesourcery.com>
18860
18861         PR 43574
18862         * opt-functions.awk (var_type_struct): Use signed char type
18863         for simple variables.
18864
18865 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18866
18867         * config/sol2.c: Include output.h.
18868         (solaris_assemble_visibility): New function.
18869         * config/t-sol2 (sol2.o): Add output.h dependency.
18870         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
18871         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
18872         Redefine.
18873
18874 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
18875
18876         PR target/43580
18877         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
18878         V2SImode or XFmode on PRE_DEC.
18879
18880         PR debug/43557
18881         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
18882         BLKmode.
18883
18884 2010-03-31  Jie Zhang  <jie@codesourcery.com>
18885
18886         PR 43562
18887         * reload.h (caller_save_initialized_p): Declare.
18888         * toplev.c (backend_init_target): Don't call
18889         init_caller_save but set caller_save_initialized_p to false.
18890         * caller-save.c (caller_save_initialized_p): Define.
18891         (init_caller_save): Check caller_save_initialized_p.
18892         * ira.c (ira): Call init_caller_save if flag_caller_saves.
18893
18894 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18895
18896         PR target/39048
18897         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
18898         and soft-fp/t-softfp to tmake_file.
18899         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
18900         (LIBGCC2_TF_CEXT): Define.
18901         (TF_SIZE): Define.
18902
18903 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
18904
18905         PR debug/42977
18906         * cselib.c (n_useless_values): Document handling of debug locs.
18907         (n_useless_debug_values, n_debug_values): New variables.
18908         (new_elt_loc_list): Don't add to debug values, keep count.
18909         (promote_debug_loc): New.
18910         (cselib_reset_table): Zero new variables.
18911         (entry_and_rtx_equal_p): Promote debug locs.
18912         (discard_useless_locs): Increment n_useless_debug_values for
18913         debug values.
18914         (remove_useless_values): Adjust n_useless_values and n_debug_values
18915         with n_useless_debug_values.
18916         (add_mem_for_addr): Promote debug locs.
18917         (cselib_lookup_mem): Likewise.
18918         (cselib_lookup_addr): Renamed to...
18919         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
18920         (cselib_log_lookup): ... this.  Turn into...
18921         (cselib_lookup_addr): ... new wrapper.
18922         (cselib_lookup_from_insn): New.
18923         (cselib_invalidate_regno): Increment n_useless_debug_values for
18924         debug values.
18925         (cselib_invalidate_mem): Likewise.
18926         (cselib_process_insn): Take n_deleted and n_debug_values into
18927         account to guard remove_useless_value call.
18928         (cselib_finish): Zero n_useless_debug_values.
18929         * cselib.h (cselib_lookup_from_insn): Declare.
18930         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
18931         (sched_analyze_2): Likewise.
18932
18933 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
18934
18935         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
18936         functions.
18937         (adjust_mems): Replace narrowing SUBREG of expression containing
18938         just PLUS, MINUS, MULT and ASHIFT of registers and constants
18939         with operations in the narrower mode.
18940
18941         PR debug/43593
18942         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
18943         regs_invalidated_by_call instead all call_used_reg_set registers.
18944
18945 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
18946
18947         PR middle-end/43430
18948         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
18949         pointer comparisons with types_compatible_p.
18950         * tree-vect-stmts.c (vectorizable_call): Same.
18951         (vectorizable_condition): Same.
18952
18953 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18954
18955         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
18956         stack check if the mask would be zero.
18957
18958 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
18959             Jack Howarth <howarth@bromo.med.uc.edu>
18960
18961         * tree-profile.c (tree_init_ic_make_global_vars): Make static
18962         variables TLS.
18963
18964 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
18965
18966         PR other/25232
18967         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
18968         and __unordtf2.
18969         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
18970         Include ___unordxf2 and ___unordtf2.
18971         * config/i386/libgcc-glibc.ver: Do not define inheritance from
18972         GCC_4.4.0 here.
18973
18974 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
18975
18976         * config/lm32/t-lm32: New file.
18977         * config.gcc: Use the above file when targetting lm32.
18978
18979 2010-03-28  Duncan Sands  <baldrick@free.fr>
18980
18981         * Makefile.in (PLUGIN_HEADERS): Add except.h.
18982
18983 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
18984
18985         PR middle-end/43431
18986         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
18987         Improve vectorization cost model diagnostic.
18988
18989 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
18990
18991         PR middle-end/43436
18992         * tree-vect-data-refs.c (vect_analyze_data_refs): When
18993         compute_data_dependences_for_loop returns false, early exit
18994         and output an extra diagnostic for the failed data reference
18995         analysis.
18996
18997 2010-03-29  Richard Guenther  <rguenther@suse.de>
18998
18999         PR tree-optimization/43560
19000         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19001         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19002
19003 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19004
19005         PR 43564
19006         * toplev.c (process_options): Set optimization_default_node
19007         and optimization_current_node.
19008         * opts.c (decode_options): Don't set optimization_default_node
19009         and optimization_current_node.
19010
19011 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19012
19013         * config/rtems.h: Abandon -qrtems_debug.
19014
19015 2010-03-28  Jan Hubicka  <jh@suse.cz>
19016
19017         PR tree-optimization/43505
19018         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19019         map should not be copied.
19020
19021 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19022
19023         PR middle-end/41674
19024         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19025         cdtors, set DECL_PRESERVE_P.
19026         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19027         should be preseved.
19028
19029 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19030
19031         PR tree-optimization/43528
19032         * stor-layout.c (place_field): Check that constant fits into
19033         unsigned HWI when skipping calculation of MS bitfield layout.
19034
19035 2010-03-27  Jan Hubicka  <jh@suse.cz>
19036
19037         PR middle-end/43391
19038         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19039         notice_global_symbol work.
19040
19041 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19042
19043         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19044         instead of dwarf2out_decl.
19045         (struct var_loc_node): Remove section_label field.
19046         (dwarf2out_function_decl): New function.
19047         (dwarf2out_var_location): Don't set section_label field.
19048         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19049
19050 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19051
19052         PR tree-optimization/43544
19053         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19054         First argument for builtin vectorized function hook is now a
19055         tree to be able to distinguish between machine specific and
19056         standard builtins.
19057         * targhooks.c (default_builtin_vectorized_function): Ditto.
19058         * targhooks.h (default_builtin_vectorized_function): Ditto.
19059         * target.h (struct gcc_target): Ditto.
19060         * tree-vect-stmts.c (vectorizable_function): Ditto.
19061         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19062         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19063         Ditto.
19064
19065 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19066
19067         PR c/43381
19068         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19069         nested binding iff it is a FUNCTION_DECL.
19070         (store_parm_decls_newstyle): Pass nested=true to bind for
19071         FUNCTION_DECLs amongst parameters.
19072
19073 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19074
19075         * var-tracking.c (vt_expand_loc_callback): Don't run
19076         cselib_expand_value_rtx_cb in dummy mode if
19077         cselib_dummy_expand_value_rtx_cb returned false.
19078
19079         * var-tracking.c (emit_note_insn_var_location): For one part
19080         notes with offset 0, don't add EXPR_LIST around the location.
19081         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19082         add_location_or_const_value_attribute): Adjust for that change.
19083
19084         PR debug/43540
19085         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19086         into first operand and location into second.
19087         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19088         dw_cfi_oprnd_loc for DW_CFA_expression.
19089         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
19090         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
19091         assume first argument is regnum and second argument is location.
19092
19093 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19094
19095         PR target/42113
19096         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
19097         of scratch register to DImode.  Split to DImode comparison operator.
19098         Use SImode subreg of scratch register in the multiplication.
19099         (*cmp_sadd_sidi): Ditto.
19100         (*cmp_ssub_si): Ditto.
19101         (*cmp_ssub_sidi): Ditto.
19102
19103 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
19104
19105         PR target/43524
19106         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
19107         Remove invalid assert and wrong comment.
19108
19109 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19110
19111         PR debug/43516
19112         * flags.h (final_insns_dump_p): New extern.
19113         * final.c (final_insns_dump_p): New variable.
19114         (rest_of_clean_state): Set it before -fdump-final-insns=
19115         dumping, clear afterwards.
19116         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
19117         MEM_ALIAS_SET on MEMs.
19118
19119 2010-03-26  David S. Miller  <davem@davemloft.net>
19120
19121         * configure.ac: Fix sparc GOTDATA_OP bug check.
19122         * configure: Rebuild.
19123
19124 2010-03-26  Alan Modra  <amodra@gmail.com>
19125
19126         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
19127
19128 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19129
19130         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
19131         TLS_SECTION_ASM_FLAG.
19132
19133 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
19134
19135         PR bootstrap/43511
19136         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
19137         Clear first_function_block_is_cold.
19138
19139         PR c/43385
19140         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
19141         argument if the argument is truth_value_p.
19142
19143 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
19144
19145         * config/rs6000/constraints.md: Update copyright year for my changes.
19146
19147         PR target/43484
19148         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
19149         used in reg+reg addressing, swap registers.
19150
19151 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19152
19153         PR debug/43293
19154         * target.h (struct gcc_target): Add code_end hook.
19155         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
19156         if not yet defined.
19157         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
19158         * toplev.c (compile_file): Call targetm.asm_out.code_end
19159         hook before unwind info/debug info output.
19160         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
19161         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
19162         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19163         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
19164         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
19165         * config/i386/i386.c (ix86_file_end): Renamed to...
19166         (ix86_code_end): ... this.  Make static.  Don't call
19167         file_end_indicate_exec_stack.  Emit unwind info using
19168         final_start_function/final_end_function.
19169         (darwin_x86_file_end): Remove.
19170         (TARGET_ASM_CODE_END): Define.
19171         * config/i386/i386.h (TARGET_ASM_FILE_END,
19172         NEED_INDICATE_EXEC_STACK): Don't define.
19173         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
19174         (TARGET_ASM_FILE_END): Define to darwin_file_end.
19175         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
19176         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
19177
19178         PR target/43498
19179         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
19180         at the beginning and final_end_function at the end.
19181         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
19182
19183 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19184
19185         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
19186         and Sun as TLS syntax.
19187         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
19188         * configure: Regenerate.
19189         * config.in: Regenerate.
19190         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
19191         (default_elf_asm_named_section): Use it.
19192         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
19193         (i386_output_dwarf_dtprel): Likewise.
19194         (output_addr_const_extra): Likewise.
19195         (output_pic_addr_const): Lowercase @GOTTPOFF.
19196         (output_addr_const_extra): Likewise.
19197         (output_pic_addr_const): Lowercase @GOTNTPOFF.
19198         (output_addr_const_extra): Likewise.
19199         (output_pic_addr_const): Lowercase @INDNTPOFF.
19200         (output_addr_const_extra): Likewise.
19201         (output_pic_addr_const): Lowercase @NTPOFF.
19202         (output_addr_const_extra): Likewise.
19203         (output_pic_addr_const): Lowercase @TPOFF.
19204         (output_addr_const_extra): Likewise.
19205         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
19206         (*tls_global_dynamic_64): Likewise.
19207         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
19208         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
19209
19210         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
19211         (ASM_OUTPUT_TLS_COMMON): Use it.
19212         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
19213
19214         PR target/38118
19215         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
19216         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
19217         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
19218         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
19219         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19220         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
19221
19222 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19223
19224         * config/i386/i386.c (override_options): Don't accept
19225         -mtls-dialect=sun any longer.
19226         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
19227         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
19228         (*tls_local_dynamic_base_32_sun): Likewise.
19229         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
19230
19231 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
19232
19233         PR debug/43508
19234         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
19235         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
19236
19237         PR debug/43479
19238         * ira.c (adjust_cleared_regs): New function.
19239         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
19240
19241         PR debug/19192
19242         PR debug/43479
19243         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
19244         from gimple_block.
19245         * expr.c (expand_expr_real): Restore previous
19246         curr_insn_source_location and curr_insn_block after
19247         expand_expr_real_1 call.
19248         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
19249         instead of expand_expr_real_1.
19250
19251 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
19252
19253         PR rtl-optimization/43413
19254         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
19255         hard regs too.
19256
19257 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
19258
19259         PR target/43348
19260         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
19261         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
19262
19263 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
19264
19265         * config/i386/i386.c (ix86_target_string): Add -mfma.
19266         Fix a typo in comment.
19267
19268 2010-03-22  Mike Stump  <mikestump@comcast.net>
19269
19270         PR target/23071
19271         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
19272         Don't overly align based upon packed packed fields.
19273
19274 2010-03-22  Jason Merrill  <jason@redhat.com>
19275
19276         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
19277         Use () rather than [], and move before the element type.
19278
19279 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19280
19281         * doc/configfiles.texi (Configuration Files): Removed
19282         fixinc/Makefile*, intl/Makefile.*.
19283         * doc/makefile.texi: Fixed markup. Abstract from version
19284         control system used.
19285         (Makefile): Removed obsolete gcc/java/parse.y example.
19286         * doc/sourcebuild.texi: Likewise.
19287         (Top Level): Added config, gnattools, libdecnumber, libgcc,
19288         libgomp, libssp.  Removed fastjar.
19289         (Miscellaneous Docs): Clarify location.
19290         Added COPYING3, COPYING3.LIB.
19291         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
19292
19293 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19294
19295         PR target/38085
19296         * config/i386/i386.c (x86_function_profiler)
19297         [!NO_PROFILE_COUNTERS]: Fix typo.
19298         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
19299         instead of callq.
19300
19301 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
19302             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19303
19304         * doc/sourcebuild.texi (Test Directives): Split into six
19305         subsections, with most of the current text in new subsections
19306         Directives, Selectors, and Final Actions.
19307         (Directives): Split list of test directives into multiple
19308         subsubsections.
19309         (Selectors): Describe use and syntax of selectors.
19310         (Effective-Target Keywords): Describe all existing keywords.
19311         (Add Options): Describe features for dg-add-options.
19312         (Require Support): Describe variants of dg-require-support.
19313         (Final Actions): Describe commands to use in dg-final.
19314
19315 2010-03-22  Michael Matz  <matz@suse.de>
19316
19317         PR middle-end/43475
19318         * recog.c (validate_replace_rtx_group): Replace also in
19319         REG_EQUAL and REG_EQUIV notes.
19320
19321 2010-03-22  Richard Guenther  <rguenther@suse.de>
19322
19323         PR tree-optimization/43390
19324         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
19325         sure vector extracts are type correct.
19326
19327 2010-03-22  Richard Guenther  <rguenther@suse.de>
19328
19329         PR middle-end/40106
19330         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
19331         x * sqrt (x) even when optimizing for size if the target
19332         has native support for sqrt.
19333
19334 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
19335
19336         * varasm.c (make_decl_rtl_for_debug): Also clear
19337         flag_mudflap for the duration of make_decl_rtl call.
19338
19339         PR debug/43443
19340         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
19341         locs from preserved VALUEs.
19342
19343 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19344
19345         PR middle-end/42718
19346         * pa.md (movmemsi): Set align to one if zero.
19347         (movmemdi): Likewise.
19348
19349 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
19350
19351         PR target/42321
19352         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
19353         with their corresponding prologue pushes.
19354
19355 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
19356
19357         PR target/43156
19358         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
19359         at the begining or end.
19360         (spu_expand_epilogue): Likewise.
19361
19362 2010-03-20  Richard Guenther  <rguenther@suse.de>
19363
19364         PR rtl-optimization/43438
19365         * combine.c (make_extraction): Properly zero-/sign-extend an
19366         extraction of the low part of a CONST_INT.  Also handle
19367         CONST_DOUBLE.
19368
19369 2010-03-19  Mike Stump  <mikestump@comcast.net>
19370
19371         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
19372         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
19373         (override_options): Use SUBTARGET32_DEFAULT_CPU.
19374
19375 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19376
19377         PR c/43211
19378         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
19379         an error.
19380
19381 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
19382
19383         PR rtl-optimization/42258
19384         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
19385         use that may match DEF.
19386
19387         PR target/40697
19388         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
19389         the cost of loading the constant rather than assuming
19390         COSTS_N_INSNS (1).
19391         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
19392         outer code is AND, do the same tests as the andsi3 expander and
19393         return COSTS_N_INSNS (1) if and is cheap.
19394
19395         * optabs.c (avoid_expensive_constant): Fix formatting.
19396
19397 2010-03-19  Michael Matz  <matz@suse.de>
19398
19399         PR c++/43116
19400         * attribs.c (decl_attributes): When rebuilding a function pointer
19401         type use the same qualifiers as the original pointer type.
19402
19403 2010-03-19  Martin Jambor  <mjambor@suse.cz>
19404
19405         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
19406         and is_gimple_ip_invariant_address.
19407
19408 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19409
19410         Revert
19411         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19412
19413         * config/arm/arm.c (arm_override_options): Turn off
19414         flag_dwarf2_cfi_asm for AAPCS variants.
19415
19416 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19417
19418         PR target/43399
19419         * config/arm/arm.c (emit_multi_reg_push): Update comments.
19420         Use PRE_MODIFY instead of PRE_DEC.
19421         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
19422         (vfp_emit_fstmd): Likewise.
19423
19424 2010-03-19  Michael Matz  <matz@suse.de>
19425
19426         PR target/43305
19427         * builtins.c (expand_builtin_interclass_mathfn,
19428         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
19429         if that fails.
19430
19431 2010-03-19  Richard Guenther  <rguenther@suse.de>
19432
19433         PR tree-optimization/43415
19434         * tree-ssa-pre.c (phi_translate): Split out worker to ...
19435         (phi_translate_1): ... this.
19436         (phi_translate): Move all caching here.  Cache all NARY
19437         and REFERENCE translations.
19438
19439 2010-03-19  David S. Miller  <davem@davemloft.net>
19440
19441         With help from Eric Botcazou.
19442         * config/sparc/sparc.c: Include dwarf2out.h.
19443         (emit_pic_helper): Delete.
19444         (pic_helper_symbol_name): Delete.
19445         (pic_helper_emitted_p): Delete.
19446         (pic_helper_needed): New.
19447         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
19448         (get_pc_thunk_name): New.
19449         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
19450         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
19451         Set pic_helper_needed to true.  Don't call emit_pic_helper.
19452         (sparc_expand_prologue): Update load_pic_register call.
19453         (sparc_output_mi_thunk): Likewise.
19454         (sparc_file_end): Emit a hidden comdat symbol for the PIC
19455         thunk if possible.  Output CFI information as needed.
19456
19457 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19458             Jack Howarth <howarth@bromo.med.uc.edu>
19459
19460         PR target/36399
19461         * config/i386/i386.h: Fix ABI on darwin x86-32.
19462
19463 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
19464
19465         * tree.h: Declare make_decl_rtl_for_debug.
19466         * varasm.c (make_decl_rtl_for_debug): New.
19467         * dwarf2out.c (rtl_for_decl_location): Call it.
19468         * cfgexpand.c (expand_debug_expr): Call it.
19469
19470 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
19471
19472         PR bootstrap/43399
19473         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
19474         mem_mode.
19475
19476         PR bootstrap/43403
19477         * var-tracking.c (vt_init_cfa_base): Do nothing if
19478         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
19479
19480 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
19481
19482         PR debug/42873
19483         * var-tracking.c (canonicalize_vars_star): New.
19484         (dataflow_post_merge_adjust): Use it.
19485
19486 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
19487
19488         PR debug/43058
19489         * var-tracking.c (non_suitable_const): New function.
19490         (add_uses): For DEBUG_INSNs with constants, don't record any
19491         value, instead just the constant value itself.
19492         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
19493         is not VAR_LOC_UNKNOWN_P, set var to the constant.
19494         (emit_notes_in_bb): Likewise.
19495         (emit_note_insn_var_location): For onepart variables if
19496         cur_loc is a VOIDmode constant, use DECL_MODE.
19497
19498 2010-03-18  Martin Jambor  <mjambor@suse.cz>
19499
19500         PR middle-end/42450
19501         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
19502         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
19503         all non-clones.  Moved call redirection...
19504         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
19505         (cgraph_materialize_all_clones): Dispose of all
19506         combined_args_to_skip bitmaps.
19507         (verify_cgraph_node): Do not check for edges pointing to wrong
19508         nodes in inline clones.
19509         * tree-inline.c (copy_bb): Call
19510         cgraph_redirect_edge_call_stmt_to_callee.
19511         * ipa.c (cgraph_remove_unreachable_nodes): Call
19512         cgraph_node_remove_callees even when there are used clones.
19513
19514 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
19515
19516         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
19517
19518 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
19519
19520         PR target/43383
19521         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
19522         for 32bit.
19523
19524 2010-03-18  Michael Matz  <matz@suse.de>
19525
19526         PR middle-end/43419
19527         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
19528         into sqrt(x) if we need to preserve signed zeros.
19529
19530 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
19531             Eric Botcazou  <ebotcazou@adacore.com>
19532
19533         PR rtl-optimization/43360
19534         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
19535         note if we don't know its invariant status.
19536
19537 2010-03-18  Michael Matz  <matz@suse.de>
19538
19539         PR tree-optimization/43402
19540         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
19541         PHI chains of ssa names registered for update.
19542
19543 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
19544
19545         PR target/42427
19546         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
19547         non-offsettable and pre_modify update addressing.
19548         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
19549         and "2" alternatives "#".
19550         (*movdd_softfloat32): Make all alternatives "#";
19551         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
19552         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
19553         (*movdf_softfloat32): Make all alternatives "#";
19554         (movdi): Use the new DIFD mode iterator to create a common splitter
19555         for movdi, movdf and movdd patterns.
19556
19557 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
19558
19559         * common.opt (dumpdir): Remove redundant tab.
19560
19561 2010-03-17  Martin Jambor  <mjambor@suse.cz>
19562
19563         PR tree-optimization/43347
19564         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
19565         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
19566
19567 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
19568
19569         PR rtl-optimization/42216
19570         * regrename.c (create_new_chain): New function, broken out from...
19571         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
19572         appending a use to an empty chain.
19573         (build_def_use): Remove previous changes that convert OP_INOUT to
19574         OP_OUT operands; instead detect the case where an OP_INOUT operand
19575         uses a previously untracked register and create an empty chain for it.
19576
19577 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19578
19579         * doc/extend.texi (Function Attributes): Rewrite unfinished
19580         sentence in ms_abi documentation.
19581
19582 2010-03-17  Alan Modra  <amodra@gmail.com>
19583
19584         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
19585         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
19586         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
19587         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
19588
19589 2010-03-16  Richard Henderson  <rth@redhat.com>
19590
19591         PR middle-end/43365
19592         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
19593         (lower_try_finally): Save and restore eh_seq around the expansion
19594         of the try-finally.
19595
19596 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
19597
19598         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
19599         statements before splitting block.
19600
19601 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19602
19603         * doc/sourcebuild.texi (Testsuites): Fix markup.
19604         Use pathnames relative to gcc/testsuite.
19605         (Test Directives): Move description of how timeout is determined.
19606         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
19607         (C Tests): Correct gcc.misc-tests directory.
19608         Framework tests now live in gcc.test-framework.
19609
19610 2010-03-16  Richard Guenther  <rguenther@suse.de>
19611
19612         PR middle-end/43379
19613         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
19614         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
19615
19616 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
19617             Alexandre Oliva  <aoliva@redhat.com>
19618
19619         PR tree-optimization/42917
19620         * lambda-code.c (remove_iv): Skip debug statements.
19621         (lambda_loopnest_to_gcc_loopnest): Likewise.
19622         (not_interesting_stmt): Debug statements are not interesting.
19623
19624 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
19625
19626         PR debug/43051
19627         PR debug/43092
19628         * cselib.c (cselib_preserve_constants,
19629         cfa_base_preserved_val): New static variables.
19630         (preserve_only_constants): New function.
19631         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
19632         clear its REG_VALUES.  If cselib_preserve_constants, don't
19633         empty the whole hash table, but preserve there VALUEs with constants,
19634         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
19635         (cselib_preserve_cfa_base_value): New function.
19636         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
19637         (cselib_init): Change argument to int bitfield.  Set
19638         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
19639         is in it.
19640         (cselib_finish): Clear cselib_preserve_constants and
19641         cfa_base_preserved_val.
19642         * cselib.h (enum cselib_record_what): New enum.
19643         (cselib_init): Change argument to int.
19644         (cselib_preserve_cfa_base_value): New prototype.
19645         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
19646         * dse.c (dse_step1): Likewise.
19647         * cfgcleanup.c (thread_jump): Likewise.
19648         * sched-deps.c (sched_analyze): Likewise.
19649         * gcse.c (local_cprop_pass): Likewise.
19650         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
19651         If FN is non-NULL, call the callback always and whenever it returns
19652         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
19653         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
19654         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
19655         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
19656         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
19657         * var-tracking.c: Include recog.h.
19658         (bb_stack_adjust_offset): Remove.
19659         (vt_stack_adjustments): Don't call it, instead just gather the
19660         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
19661         (adjust_stack_reference): Remove.
19662         (compute_cfa_pointer): New function.
19663         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
19664         (struct adjust_mem_data): New type.
19665         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
19666         functions.
19667         (get_address_mode): New function.
19668         (replace_expr_with_values): Use it.
19669         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
19670         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
19671         (adjust_sets): Remove.
19672         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
19673         Use get_address_mode.
19674         (get_adjusted_src): Remove.
19675         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
19676         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
19677         (add_with_sets): Don't call adjust_sets.
19678         (fp_setter, vt_init_cfa_base): New functions.
19679         (vt_initialize): Change return type to bool.  Move most of pool etc.
19680         initialization to the beginning of the function from end.  Pass
19681         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
19682         If !frame_pointer_needed, call vt_stack_adjustment before mos
19683         vector is filled, call vt_init_cfa_base if argp/framep has been
19684         eliminated to sp.  If frame_pointer_needed and argp/framep has
19685         been eliminated to hard frame pointer, set
19686         hard_frame_pointer_adjustment and call vt_init_cfa_base after
19687         encountering fp setter in the prologue.  For MO_ADJUST, call
19688         log_op_type before pusing the op into mos vector, not afterwards.
19689         Call adjust_insn before cselib_process_insn/add_with_sets,
19690         call cancel_changes (0) afterwards.
19691         (variable_tracking_main_1): Adjust for vt_initialize calling
19692         vt_stack_adjustments and returning whether it succeeded or not.
19693
19694 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
19695
19696         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
19697         debug statements.
19698
19699 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
19700
19701         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
19702         has been set.
19703         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
19704         drap_reg has not been set.
19705
19706 2010-03-15  Michael Matz  <matz@suse.de>
19707
19708         PR middle-end/43300
19709         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
19710         use it to expand block copies.
19711         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19712         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
19713         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
19714
19715 2010-03-15  Richard Guenther  <rguenther@suse.de>
19716
19717         PR tree-optimization/43367
19718         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
19719         elimination check.
19720
19721 2010-03-15  Richard Guenther  <rguenther@suse.de>
19722
19723         PR tree-optimization/43317
19724         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
19725
19726 2010-03-15  Martin Jambor  <mjambor@suse.cz>
19727
19728         PR tree-optimization/43141
19729         * tree-sra.c (create_abstract_origin): New function.
19730         (modify_function): Call create_abstract_origin.
19731
19732 2010-03-15  Chris Demetriou  <cgd@google.com>
19733
19734         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
19735         wasn't copied.
19736
19737 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19738
19739         PR middle-end/43354
19740         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
19741         call insert_out_of_ssa_copy for default definitions.
19742
19743 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19744
19745         * graphite-clast-to-gimple.c (my_long_long): Defined.
19746         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
19747         * graphite-sese-to-poly.c (my_long_long): Defined.
19748         (scop_ivs_can_be_represented): Use it.
19749
19750 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19751
19752         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
19753         graphite-max-bbs-per-function, and loop-block-tile-size.
19754         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
19755         with "maximum".
19756         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
19757
19758 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19759
19760         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
19761         forward declaration.
19762         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
19763         (add_upper_bounds_from_estimated_nit): New.
19764         (build_loop_iteration_domains): Use it.
19765
19766 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19767
19768         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
19769
19770 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19771
19772         PR middle-end/43306
19773         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
19774         should be an INTEGER_CST.  Also handle CASE_CONVERT.
19775
19776 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19777
19778         * graphite.c (graphite_initialize): To bound the number of bbs per
19779         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
19780         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
19781         * doc/invoke.texi: Document it.
19782
19783 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19784
19785         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
19786         * graphite-sese-to-poly.h (build_poly_scop): Same.
19787
19788 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19789
19790         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
19791         the number of parameters in the scop.  Use as an upper bound
19792         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
19793         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
19794         * doc/invoke.texi: Document it.
19795
19796 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
19797
19798         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
19799         * doc/c-tree.texi: Remove.
19800         * doc/generic.texi: Merge c-tree.texi here.
19801         * doc/gccint.texi (Trees): Remove menu entry.
19802         (c-tree.texi): Remove @include.
19803         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
19804         * doc/languages.texi (Reading RTL): Ditto.
19805
19806 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
19807
19808         PR target/42869
19809         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
19810
19811 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19812
19813         PR middle-end/42431
19814         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
19815         code added to work around reload clobbering CONST insns.
19816
19817 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
19818
19819         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
19820         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
19821         (cselib_preserve_only_values): Remove retain argument, don't
19822         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
19823         * cselib.h (cselib_preserve_only_values): Remove retain argument.
19824         * var-tracking.c (micro_operation): Move insn field before union.
19825         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
19826         (struct variable_tracking_info_def): Remove n_mos field, change
19827         mos into a vector of micro_operations.
19828         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
19829         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
19830         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
19831         changing into a vector.
19832         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
19833         come before all other uops generated by add_stores.
19834         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
19835         argument removal.
19836         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
19837         a vector.  Run just one pass over the bbs instead of separate counting
19838         and computation phase.
19839         (vt_finalize): Free VTI (bb)->mos vector instead of array.
19840
19841         PR debug/43329
19842         * tree-inline.c (remap_decls): Put old_var rather than origin_var
19843         into *nonlocalized_list vector.
19844         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
19845         even if origin is non-NULL.
19846         (gen_variable_die): Likewise.
19847         (process_scope_var): Don't change origin.
19848         (gen_decl_die): Likewise.
19849         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
19850         before adding new edges instead of after it, fix moving over
19851         debug stmts.
19852
19853 2010-03-11  David S. Miller  <davem@davemloft.net>
19854
19855         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
19856         of four.
19857         * configure: Rebuild.
19858
19859 2010-03-11  Martin Jambor  <mjambor@suse.cz>
19860
19861         PR tree-optimization/43257
19862         * tree.c (assign_assembler_name_if_neeeded): New function.
19863         (free_lang_data_in_cgraph): Assembler name assignment moved to the
19864         above new function.
19865         * tree.h (assign_assembler_name_if_neeeded): Declare.
19866         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
19867         the function if needed.
19868
19869 2010-03-11  Chris Demetriou  <cgd@google.com>
19870
19871         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
19872         include/stdint-gcc.h, and include/stdint.h world-readable.
19873
19874 2010-03-11  Richard Guenther  <rguenther@suse.de>
19875
19876         PR tree-optimization/43255
19877         * tree-vrp.c (process_assert_insertions_for): Do not insert
19878         asserts for trivial conditions.
19879
19880 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19881
19882         PR tree-optimization/43280
19883         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
19884         generation.  Move calculation of size out of the if branch.
19885         (find_bswap): Modify compare number generation.
19886
19887 2010-03-11  Richard Guenther  <rguenther@suse.de>
19888
19889         PR lto/43200
19890         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
19891         (input_gimple_stmt): Fixup handled component types during
19892         operand read.  Also fix up decls in ADDR_EXPRs.
19893
19894 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
19895
19896         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
19897         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
19898
19899 2010-03-10  Jan Hubicka  <jh@suse.cz>
19900
19901         PR c/43288
19902         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
19903         * varasm.c (get_variable_section): Don't do that here...
19904         (make_decl_rtl): ... and here.
19905         (do_assemble_alias): Produce decl RTL.
19906         (assemble_alias): Likewise.
19907
19908 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
19909
19910         PR debug/43290
19911         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
19912         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
19913         of fde->vdrap_reg.
19914         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
19915         (based_loc_descr): Only express drap or vdrap regno based expressions
19916         using DW_OP_fbreg when not optimizing.
19917         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
19918         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
19919         REG_CFA_SET_VDRAP note.
19920
19921 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
19922
19923         PR tree-optimization/43236
19924         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
19925         error in calculation of base address in reverse iteration case.
19926         (generate_builtin): Take number of latch executions if the statement
19927         is in the latch.
19928
19929 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
19930
19931         PR middle-end/42859
19932         * tree-eh.c: Include pointer-set.h.
19933         (lower_eh_dispatch): Filter out duplicate case labels and
19934         remove the unneeded edge when the label is unused.  Return
19935         true when some edges are removed.
19936         (execute_lower_eh_dispatch): When any lowering resulted in
19937         removing an edge, also delete unreachable blocks.
19938
19939 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
19940
19941         PR bootstrap/43287
19942         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19943         UNSPEC_MACHOPIC_OFFSET.
19944
19945 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
19946
19947         PR target/43294
19948         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
19949         (m68k_delegitimize_address): New function.
19950
19951 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
19952
19953         PR debug/43299
19954         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
19955
19956         PR debug/43299
19957         * var-tracking.c (adjust_sets): New function.
19958         (count_with_sets, add_with_sets): Use it.
19959         (get_adjusted_src): New inline function.
19960         (add_stores): Use it.
19961
19962         PR debug/43304
19963         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
19964         call cselib_dummy_expand_value_rtx_cb instead of
19965         cselib_expand_value_rtx_cb.
19966
19967         PR debug/43293
19968         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
19969         * config/i386/i386.c: Include debug.h and dwarf2out.h.
19970         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
19971         and .cfi_endproc around the pic thunks.
19972         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
19973         all queued unwind info register saves are saved before the call.
19974         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
19975         considered as sp-=4 for unwind info and the pop as sp+=4 which
19976         also clobbers dest, but doesn't actually restore it.
19977
19978         PR debug/43290
19979         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
19980         RTX_FRAME_RELATED_P.
19981
19982 2010-03-09  Jie Zhang  <jie@codesourcery.com>
19983
19984         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
19985         whitespaces in output template.
19986
19987 2010-03-09  Jie Zhang  <jie@codesourcery.com>
19988
19989         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
19990         out array boundary.
19991
19992 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
19993
19994         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
19995         builtins.exp in a separate job.
19996
19997 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19998
19999         * graphite-sese-to-poly.c (add_param_constraints): Use
20000         lower_bound_in_type and upper_bound_in_type.
20001
20002 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20003
20004         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20005         instead of unsigned_type_node.
20006
20007 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20008             Reza Yazdani  <reza.yazdani@amd.com>
20009
20010         PR middle-end/43065
20011         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20012         on pointer type parameters.
20013
20014 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20015
20016         PR middle-end/42644
20017         PR middle-end/42130
20018         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20019         handle conversions from pointer to integers.
20020         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20021         induction variable, to be able to work with code generated by CLooG.
20022         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20023         (build_poly_scop): Bail out if we cannot codegen a loop.
20024
20025 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20026
20027         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20028         code generation with gloog_error.
20029
20030 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20031
20032         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20033         Call fold_convert on all the returned values.
20034         (expand_scalar_variables_expr): Pass to
20035         expand_scalar_variables_ssa_name the type of the resulting expression.
20036
20037 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20038
20039         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20040         ppl_min_for_le_pointset.
20041         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20042         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20043
20044 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20045
20046         * graphite-dependences.c (map_into_dep_poly): Removed.
20047         (dependence_polyhedron_1): Use combine_context_id_scat.
20048
20049 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20050
20051         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20052         (struct poly_bb): Same.
20053         (combine_context_id_scat): New.
20054
20055 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20056
20057         PR middle-end/42326
20058         * sese.c (name_defined_in_loop_p): Return false for default
20059         definitions.
20060
20061 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20062
20063         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20064         and clean up the logic.
20065
20066 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20067
20068         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20069         early return.
20070
20071 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20072
20073         * var-tracking.c (remove_cselib_value_chains): Define only for
20074         ENABLE_CHECKING.
20075         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20076         delete_slot_part, emit_notes_for_differences_1): Don't call
20077         remove_cselib_value_chains here.
20078         (set_slot_part, emit_notes_for_differences_2): Don't call
20079         add_cselib_value_chains here.
20080         (preserved_values): New vector.
20081         (preserve_value): New function.
20082         (add_uses, add_stores, vt_add_function_parameters): Use it
20083         instead of cselib_preserve_value.
20084         (changed_values_stack): New vector.
20085         (check_changed_vars_0): New function.
20086         (check_changed_vars_1, check_changed_vars_2): Use it.
20087         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20088         changed_values_stack VALUEs.
20089         (vt_emit_notes): For all preserved_values call
20090         add_cselib_value_chains.  If ENABLE_CHECKING call
20091         remove_cselib_value_chains before verifying value_chains is empty.
20092         Initialize and free changed_values_stack.
20093         (vt_initialize): Initialize preserved_values.
20094         (vt_finalize): Free preserved_values.
20095
20096 2010-03-08  Richard Guenther  <rguenther@suse.de>
20097
20098         PR tree-optimization/43269
20099         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
20100         region detection.
20101
20102 2010-03-08  Martin Jambor  <mjambor@suse.cz>
20103
20104         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
20105         (ipa_is_param_called): Removed.
20106         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
20107         (ipa_print_node_params): Do not print the called flag.
20108         (ipa_write_node_info): Do not stream the called flag.
20109         (ipa_read_node_info): Likewise.
20110
20111 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
20112
20113         PR debug/43176
20114         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
20115         * cselib.c (struct expand_value_data): Add dummy field.
20116         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
20117         dummy to false.
20118         (cselib_dummy_expand_value_rtx_cb): New function.
20119         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
20120         any rtl.
20121         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
20122         * var-tracking.c: Include pointer-set.h.
20123         (variable): Change n_var_parts to char from int.  Add
20124         cur_loc_changed and in_changed_variables fields.
20125         (variable_canonicalize): Remove.
20126         (shared_var_p): New inline function.
20127         (unshare_variable): Maintain cur_loc_changed and
20128         in_changed_variables fields.  If var was in changed_variables,
20129         replace it there with new_var.  Just copy cur_loc instead of
20130         resetting it to something else.
20131         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
20132         (dataflow_set_union): Don't call variable_canonicalize.
20133         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
20134         of their DEBUG_EXPR_TREE_DECLs.
20135         (canonicalize_loc_order_check): Verify that cur_loc is NULL
20136         and in_changed_variables and cur_loc_changed is false.
20137         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
20138         and cur_loc_changed.  Don't update cur_loc here.
20139         (variable_merge_over_src): Don't call variable_canonicalize.
20140         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
20141         removing loc that is equal to cur_loc, clear cur_loc,
20142         set cur_loc_changed and ensure variable_was_changed is called.
20143         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
20144         compare pointers in cur_loc check, if it is equal to loc,
20145         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
20146         (variable_different_p): Remove compare_current_location argument,
20147         don't compare cur_loc.
20148         (dataflow_set_different_1): Adjust variable_different_p caller.
20149         (variable_was_changed): If dv had some var in changed_variables
20150         already, reset in_changed_variables flag for it and propagate
20151         cur_loc_changed over to the new variable.  On empty var
20152         always set cur_loc_changed.  Set in_changed_variables on whatever
20153         var is added to changed_variables.
20154         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
20155         Use shared_var_p.  When removing loc that is equal to cur_loc,
20156         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
20157         end, don't set it to something else, just call variable_was_changed.
20158         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
20159         loc being removed, clear cur_loc and set cur_loc_changed.
20160         Set cur_loc_changed if all locations have been removed.
20161         (struct expand_loc_callback_data): New type.
20162         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
20163         allocated.  Always create SUBREGs if simplify_subreg failed.
20164         Prefer to use cur_loc, when that fails and still in
20165         changed_variables (and seen first time) recompute it.  Set
20166         cur_loc_changed of variables which had to change cur_loc and
20167         compute elcd->cur_loc_changed if any of the subexpressions used
20168         had to change cur_loc.
20169         (vt_expand_loc): Adjust to pass arguments in
20170         expand_loc_callback_data structure.
20171         (vt_expand_loc_dummy): New function.
20172         (emitted_notes): New variable.
20173         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
20174         that weren't used for any other decl in current
20175         emit_notes_for_changes call call vt_expand_loc_dummy to update
20176         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
20177         first loc_chain location if NULL before.  Always use just
20178         cur_loc instead of first loc_chain location.  When cur_loc_changed
20179         is false, when not --enable-checking=rtl just don't emit any note.
20180         When rtl checking, compute the note and assert it is the same
20181         as previous note.  Clear cur_loc_changed and in_changed_variables
20182         at the end before removing from changed_variables.
20183         (check_changed_vars_3): New function.
20184         (emit_notes_for_changes): Traverse changed_vars to call
20185         check_changed_vars_3 on each changed var.
20186         (emit_notes_for_differences_1): Clear cur_loc_changed and
20187         in_changed_variables.  Recompute cur_loc of new_var.
20188         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
20189         (vt_emit_notes): Initialize and destroy emitted_notes.
20190
20191 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
20192
20193         PR rtl-optimization/42220
20194         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
20195         Use verify_reg_tracked to determine if we should use OP_OUT rather
20196         than OP_INOUT.
20197         (build_def_use): If we see an in-out operand for a register that we
20198         know nothing about, treat is an output if possible, fail the block if
20199         not.
20200
20201 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20202
20203         PR debug/42897
20204         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
20205         permanently.
20206
20207 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
20208
20209         PR debug/42897
20210         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
20211         uses of relevant DEFs that are dead outside the loop too.
20212
20213 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
20214
20215         * var-tracking.c (dataflow_set_merge): Swap src and src2.
20216         Reverted:
20217         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
20218         PR debug/41371
20219         * var-tracking.c (values_to_unmark): New variable.
20220         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
20221         values_to_unmark vector.  Moved body to...
20222         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
20223         instead queue it into values_to_unmark vector.
20224         (vt_find_locations): Free values_to_unmark vector.
20225
20226 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
20227
20228         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
20229         (site.exp): Export them when plugins are enabled.
20230
20231 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
20232
20233         PR middle-end/42326
20234         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
20235         that contain scevs.
20236         (chrec_fold_multiply): Same.
20237
20238 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20239
20240         PR c/43248
20241         * c-decl.c (build_compound_literal): Return early if init is
20242         an error_mark_node.
20243
20244 2010-03-04  Martin Jambor  <mjambor@suse.cz>
20245
20246         PR tree-optimization/43164
20247         PR tree-optimization/43191
20248         * tree-sra.c (type_consists_of_records_p): Reject records with
20249         zero-size bit-fields at the end.
20250
20251 2010-03-04  Mike Stump  <mikestump@comcast.net>
20252
20253         * Makefile.in (TAGS): Remove *.y.
20254
20255 2010-03-04  Richard Guenther  <rguenther@suse.de>
20256
20257         PR tree-optimization/40761
20258         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
20259         in reverse order.
20260         (my_rev_post_order_compute): New function.
20261         (init_pre): Call it.
20262
20263 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20264
20265         PR middle-end/43209
20266         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
20267         decrease the cost of an IV candidate when the cost is infinite.
20268
20269 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20270
20271         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
20272         Use '3DNow!' for the extension of that name, ensure normal space
20273         after the string.
20274         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
20275
20276 2010-03-03  Jeff Law  <law@redhat.com>
20277
20278         * PR middle-end/32693
20279         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
20280         than gen_rtx_SUBREG.
20281         (extract_bit_field_1): Likewise.
20282
20283 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
20284
20285         * doc/sourcebuild.texi (Test directives): Document that arguments
20286         include-opts and exclude-opts are now optional for dg-skip-if,
20287         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
20288
20289 2010-03-03  Jason Merrill  <jason@redhat.com>
20290
20291         PR c++/12909
20292         * cgraph.h (varpool_node): Add extra_name field.
20293         * varpool.c (varpool_extra_name_alias): New.
20294         (varpool_assemble_decl): Emit extra name aliases.
20295         (varpool_mark_needed_node): Look past an extra name alias.
20296         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
20297         * lto-streamer-in.c (lto_input_tree): Read it.
20298         * lto-streamer-out.c (output_unreferenced_globals): Write it.
20299
20300 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
20301
20302         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
20303         (sparc*-*-solaris2*): ...this.
20304
20305 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
20306
20307         PR debug/43229
20308         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
20309         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
20310         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
20311         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
20312
20313         PR debug/43237
20314         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
20315         fallthrough to default handling, just with want_address 0 instead of 2.
20316         For single element lists, add_AT_loc directly, otherwise create an
20317         artificial variable DIE and stick location list to it.
20318
20319         PR debug/43177
20320         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
20321         (VAL_EXPR_HAS_REVERSE): Define.
20322         (reverse_op): New function.
20323         (add_stores): For reversible operations add an extra MO_VAL_USE.
20324
20325 2010-03-02  Jason Merrill  <jason@redhat.com>
20326
20327         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
20328
20329 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20330
20331         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
20332         (sparc64-*-linux*): Likewise.
20333         (sparc64-*-solaris2*): Include assembler files before linker ones.
20334         (sparc-*-solaris2*): Simplify and reorder to match previous case.
20335         * config/sparc/gas.h: Delete.
20336         * config/sparc/sol2-64.h: Add copyright notice.
20337         * config/sparc/sol2-gas-bi.h: Likewise.
20338         * config/sparc/sol2-gld.h: Likewise.
20339         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
20340         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
20341         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
20342         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
20343         (sparc_elf_asm_named_section): Rename into...
20344         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
20345
20346 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
20347
20348         * config/alpha/alpha.c (override_options): Fix -mtune error message.
20349
20350 2010-03-02  Jeff Law  <law@redhat.com>
20351
20352         PR middle-end/42431
20353         * reload1.c (rtx_p, substitute_stack): Declare.
20354         (substitute): Record addresses of changed rtxs.
20355         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
20356         Restore the original rtx when complete.
20357         (reload): Free subsitute_stack when complete.
20358
20359 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
20360
20361         * doc/gccint.texi (menu): Add Testsuites as a chapter.
20362         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
20363         new chapter.
20364         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
20365         LTO Testing, gcov Testing, profopt Testing, compat Testing,
20366         Torture Tests): Change from subsection to section.
20367
20368 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
20369             Steven Bosscher  <steven@gcc.gnu.org>
20370
20371         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
20372         instead of bb.
20373
20374 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
20375
20376         PR middle-end/42640
20377         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
20378         the assignment from the new induction variable to the assignment
20379         of the value from the original loop PHI function.
20380
20381 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
20382             Daniel Jacobowitz  <dan@codesourcery.com>
20383
20384         * doc/sourcebuild.texi (Test directives): Clarify options to
20385         dg-skip-if.
20386
20387 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20388
20389         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
20390         Disable cfi directives unless GCC and gas agree on using read-only
20391         .eh_frame sections for 64-bit.
20392         * configure: Regenerate.
20393
20394 2010-03-01  Richard Guenther  <rguenther@suse.de>
20395
20396         PR tree-optimization/43220
20397         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
20398         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
20399
20400 2010-03-01  Richard Guenther  <rguenther@suse.de>
20401             Martin Jambor  <mjambor@suse.cz>
20402
20403         PR middle-end/41250
20404         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
20405         gimplified parameters.
20406
20407 2010-03-01  Christian Bruel  <christian.bruel@st.com>
20408
20409         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
20410
20411 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
20412
20413         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
20414
20415 2010-03-01  Richard Guenther  <rguenther@suse.de>
20416
20417         PR middle-end/43213
20418         * expr.c (expand_assignment): Use the alias-oracle to tell
20419         if the rhs aliases the result decl.
20420
20421 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20422
20423         PR pch/14940
20424         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
20425         to sol_gt_pch_get_address.
20426         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
20427         64-bit, SPARC and x86.
20428         (sol_gt_pch_get_address): New function.
20429
20430 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
20431
20432         * toplev.h (inform_n, error_n): Declare.
20433         * diagnostic.c (inform_n, error_n): New function.
20434
20435 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
20436
20437         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
20438         has no rtl yet when processing local_decls, queue it and recheck
20439         if deferred stack allocation hasn't assigned it rtl.
20440
20441 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
20442
20443         * config/sh/sh.c (unspec_bbr_uid): New.
20444         (gen_block_redirect): Use it instead of INSN_UID.
20445         (gen_far_branch): Likewise.
20446
20447 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
20448
20449         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
20450         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
20451
20452 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20453
20454         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
20455         (Warning Options): -Wno-conversion-null is valid for
20456         Objective-C++ as well.
20457         * doc/tm.texi (Named Address Spaces): Likewise.
20458         * doc/plugins.texi (Plugins): Replace TABs with spaces.
20459         * doc/tree-ssa.texi (Tree SSA): Likewise.
20460
20461 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20462
20463         PR bootstrap/43202
20464         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
20465         by default.  Don't set the default arch for
20466         i[34567]86-*-darwin*|x86_64-*-darwin*.
20467
20468 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20469
20470         PR bootstrap/43202
20471         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
20472         default.  Set the default 32bit/64bit archs with $with_arch
20473         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
20474
20475 2010-02-27  Richard Guenther  <rguenther@suse.de>
20476
20477         PR tree-optimization/43186
20478         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
20479         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
20480         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
20481         unroller iterations.
20482
20483 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20484
20485         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
20486         required and i[34567]86-*-* targets don't support 64bit ISA.
20487
20488 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
20489
20490         PR ada/43096
20491         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20492         the same alias set.
20493
20494 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
20495
20496         * config.gcc: Set the default arch at least to Prescott for
20497         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
20498         if SSE math is enabled.
20499
20500 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20501
20502         * diagnostic.c (diagnostic_initialize): Update.
20503         (diagnostic_report_diagnostic): Test inhibit_notes_p for
20504         informative notes.
20505         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
20506         (diagnostic_inhibit_notes): New.
20507         * toplev.c (process_options): inhibit notes with -fcompare-debug.
20508
20509 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20510
20511         PR c/20631
20512         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
20513         * doc/standards.texi: Likewise.
20514         * doc/extend.texi: Likewise.
20515         * doc/trouble.texi: Likewise.
20516         * doc/cppopts.texi: Likewise.
20517         * doc/install.texi: Likewise.
20518         * c.opt (std=c90,std=gnu90): New options.
20519         * c-opts.c (c_common_handle_option): Handle them.
20520
20521 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20522
20523         PR c/24577
20524         * c-decl.c (undeclared_variable): Use an informative note.
20525
20526 2010-02-26  Richard Guenther  <rguenther@suse.de>
20527
20528         PR tree-optimization/43186
20529         * gimple.h (gimple_fold): Remove.
20530         * gimple.c (gimple_fold): Remove.  Inline into single user ...
20531         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
20532         Try harder for conditions.
20533
20534 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
20535
20536         PR debug/43190
20537         * function.c (used_types_insert): Don't skip through named pointer
20538         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
20539         and it is different from the main variant's type.
20540
20541 2010-02-26  Nick Clifton  <nickc@redhat.com>
20542
20543         * config/rx/rx.md (sminsi3): Remove bogus alternative.
20544
20545 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
20546
20547         * config.gcc: Support --with-fpmath=sse for x86.
20548
20549         * config/i386/ssemath.h: New.
20550
20551         * doc/install.texi (--with-fpmath=sse): Documented.
20552
20553 2010-02-26  Richard Guenther  <rguenther@suse.de>
20554
20555         PR tree-optimization/43188
20556         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
20557         vector types of over-aligned element type.
20558
20559 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
20560
20561         PR target/43175
20562         * config/i386/i386.c (expand_vec_perm_blend): Use correct
20563         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
20564
20565 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
20566
20567         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
20568
20569 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
20570
20571         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
20572         * var-tracking.c: Include diagnostic.h.
20573         (debug_dv): New function.
20574         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
20575
20576         PR debug/43160
20577         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
20578         (add_value_chain, add_value_chains, remove_value_chain,
20579         remove_value_chains): Handle DEBUG_EXPRs.
20580         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
20581
20582         PR debug/43161
20583         * regcprop.c (struct queued_debug_insn_change): New type.
20584         (struct value_data_entry): Add debug_insn_changes field.
20585         (struct value_data): Add n_debug_insn_changes field.
20586         (debug_insn_changes_pool): New variable.
20587         (free_debug_insn_changes, apply_debug_insn_changes,
20588         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
20589         (kill_value_one_regno): Call free_debug_insn_changes if needed.
20590         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
20591         fields.
20592         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
20593         changes for them.
20594         (copyprop_hardreg_forward_1): Don't call apply_change_group for
20595         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
20596         changes, call cprop_find_used_regs via note_stores.
20597         (copyprop_hardreg_forward): When copying vd from predecessor
20598         which has any queued DEBUG_INSN changes, make sure the pointers are
20599         cleared.  At the end call df_analyze and then if there are any
20600         DEBUG_INSN changes queued at the end of some basic block for still
20601         live registers, apply them.
20602         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
20603
20604 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
20605
20606         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
20607         (arm*-*-*): Ditto.
20608
20609 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
20610
20611         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
20612         targets.  Set the default with_cpu/with_arch from arch/cpu.
20613         Allow x86-64 and native for with_cpu/with_arch.
20614
20615 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
20616
20617         * ebitmap.c: Change calls to verify_popcount with calls to
20618         sbitmap_verify_popcount.
20619         (ebitmap_clear_bit): Fixed map->cacheindex test and
20620         map>cache update when bit clearing results in an empty
20621         element.
20622
20623 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
20624
20625         PR target/43154
20626         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
20627         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
20628         and support both V2DF and V2DI modes.
20629         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
20630         support both V2DF and V2DI modes.
20631         (general): Delete trailing whitespace from a few patterns.
20632
20633         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20634         V2DF/V2DI interleave high/low builtins.
20635
20636         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
20637         new VSX builtins.
20638
20639         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
20640         interleave high/low functions.
20641
20642 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
20643
20644         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
20645         #pragma extern_prefix.
20646
20647 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
20648
20649         PR debug/43166
20650         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
20651         BLKmode, assert op0 is a MEM and just adjust its mode.
20652
20653         PR debug/43165
20654         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
20655         if bitpos isn't multiple of mode's bitsize.
20656
20657 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20658
20659         * c.opt (-ftemplate-depth=): New.
20660         (-ftemplate-depth-): Deprecate.
20661         * optc-gen.awk: Handle -ftemplate-depth=.
20662         * opth-gen.awk: Likewise.
20663         * c-opts.c (c_common_handle_option): Likewise.
20664         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
20665
20666 2010-02-24  Jason Merrill  <jason@redhat.com>
20667
20668         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
20669
20670 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20671
20672         * cfg.c (alloc_aux_for_block): Remove inline.
20673         (alloc_aux_for_edge): Likewise.
20674
20675 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20676
20677         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
20678
20679 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20680
20681         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
20682         * config/i386/sol2-gas.h: New file.
20683         * config.gcc (i[34567]86-*-solaris2*): Use it.
20684
20685 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20686
20687         PR c/43128
20688         * c-typeck.c (ep_convert_and_check): New.
20689         (build_conditional_expr): Use it.
20690         (build_binary_op): Likewise.
20691
20692 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
20693
20694         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
20695
20696         PR debug/43150
20697         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
20698         bounds even for -O+.
20699         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
20700         expr needs to have DECL_NAME set.
20701
20702 2010-02-24  Nick Clifton  <nickc@redhat.com>
20703
20704         * config/mep/mep.c: Include gimple.h.
20705         (mep_function_uses_sp): Delete unused function.
20706         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
20707         parameters.  Use unsigned integers to count args.  Return a
20708         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
20709
20710 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
20711
20712         PR target/43107
20713         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
20714         greater or equal to nelt instead of 2 * nelt.
20715         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
20716         with nelt - 1.
20717
20718 2010-02-23  Jason Merrill  <jason@redhat.com>
20719
20720         PR debug/42800
20721         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
20722         in cfun->local_decls even if they have register types.
20723
20724         PR c++/42837
20725         * stor-layout.c (place_field): Don't warn about unnecessary
20726         DECL_PACKED if the type is packed.
20727
20728 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
20729
20730         PR target/43139
20731         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
20732         GOTOFF relocs, even when the base reg isn't pic pointer.
20733
20734 2010-02-23  Michael Matz  <matz@suse.de>
20735
20736         PR debug/43077
20737         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
20738         (expand_gimple_basic_block): Generate and use debug temps if there
20739         are debug uses left after the last real use of TERed ssa names.
20740         Unlink debug immediate uses when they are expanded.
20741
20742 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20743
20744         PR 43123
20745         * config/i386/i386.c (override_options): Reorganise to provide
20746         better error messages.
20747
20748 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20749
20750         PR middle-end/43083
20751         * graphite-scop-detection.c (create_single_exit_edge): Move
20752         the call to find_single_exit_edge to....
20753         (create_sese_edges): ...here.  Don't handle multiple edges
20754         exiting the function.
20755         (build_graphite_scops): Don't handle multiple edges
20756         exiting the function.
20757
20758 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20759
20760         PR middle-end/43097
20761         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
20762         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
20763
20764 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20765
20766         PR middle-end/43026
20767         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
20768
20769 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20770
20771         PR c++/43126
20772         * c-typeck.c (convert_arguments): Print declaration location.
20773         * c-common.c (validate_nargs): Rename as
20774         builtin_function_validate_nargs.
20775         (check_builtin_function_arguments): Update.
20776
20777 2010-02-22  Richard Guenther  <rguenther@suse.de>
20778
20779         PR lto/43045
20780         * tree-inline.c (declare_return_variable): Use the type of
20781         the call stmt lhs if available.
20782
20783 2010-02-22  Duncan Sands  <baldrick@free.fr>
20784
20785         * passes.c (register_pass): Always consider all pass lists when
20786         ref_pass_instance_number is zero.
20787
20788 2010-02-22  Richard Guenther  <rguenther@suse.de>
20789
20790         PR tree-optimization/42749
20791         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
20792         parameter.  Do arithmetic in the original type.
20793         (update_accumulator_with_ops): Likewise.
20794         (adjust_accumulator_values): Adjust.
20795
20796 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20797
20798         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
20799         (QI to BLKmode splitter): New splitter.
20800
20801 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
20802
20803         * config/i386/i386.c (initial_ix86_tune_features): Turn on
20804         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
20805
20806 2010-02-22  Richard Guenther  <rguenther@suse.de>
20807
20808         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
20809
20810 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
20811
20812         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
20813         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
20814         ($(T)crti.o, $(T)crtn.o): Remove rules.
20815
20816 2010-02-21  Tobias Burnus  <burnus@net-b.de>
20817
20818         PR fortran/35259
20819         * doc/invoke.texi (-fassociative-math): Document that this
20820         option is automatically enabled for Fortran.
20821
20822 2010-02-20  David S. Miller  <davem@davemloft.net>
20823
20824         * configure.ac: Test if linker and assembler properly support
20825         GOTDATA_OP relocations.
20826         * configure: Rebuild.
20827         * config.in: Likewise.
20828         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
20829         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
20830         (movsi_high_pic): Likewise.
20831         (movdi_lo_sum_pic): Likewise.
20832         (movdi_high_pic): Likewise.
20833         (movsi_pic_gotdata_op): New pattern.
20834         (movdi_pic_gotdata_op): Likewise.
20835         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
20836         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
20837
20838 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
20839
20840         PR target/43067
20841         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
20842         attribute to ssemul.
20843         (xop_mulv2div2di3_high): Ditto.
20844
20845 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20846
20847         PR c++/35669
20848         * c.opt (Wconversion-null): New option.
20849         * doc/invoke.texi (Wconversion-null): Document.
20850
20851 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20852
20853         * common.opt (Wlarger-than-): Add Undocumented.
20854
20855 2010-02-19  Mike Stump  <mikestump@comcast.net>
20856
20857         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
20858
20859 2010-02-19  Jason Merrill  <jason@redhat.com>
20860
20861         PR target/40332
20862         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
20863         * configure: Likewise.
20864
20865 2010-02-20  Alan Modra  <amodra@gmail.com>
20866
20867         PR middle-end/42344
20868         * cgraph.h (cgraph_make_decl_local): Declare.
20869         * cgraph.c (cgraph_make_decl_local): New function.
20870         (cgraph_make_node_local): Use it.
20871         * cgraphunit.c (cgraph_function_versioning): Likewise.
20872         * ipa.c (function_and_variable_visibility): Likewise.
20873
20874 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20875
20876         PR bootstrap/43121
20877         * except.c (sjlj_emit_function_enter): Don't call
20878         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
20879         directly.
20880         * rtl.h (add_reg_br_prob_note): Remove prototype.
20881
20882 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20883
20884         PR 41779
20885         * c-common.c (conversion_warning): Remove widening conversions
20886         before checking the conversion of integers to reals.
20887
20888 2010-02-19  Mike Stump  <mikestump@comcast.net>
20889
20890         PR middle-end/43125
20891         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
20892
20893         PR objc/43061
20894         * cgraphunit.c (process_function_and_variable_attributes): Check
20895         DECL_PRESERVE_P instead of looking up attribute "used".
20896         * ipa-pure-const.c (check_decl): Likewise.
20897         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
20898         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
20899         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
20900         instead of attribute "used".
20901         * config/sol2-c.c (solaris_pragma_init): Likewise.
20902         (solaris_pragma_fini): Likewise.
20903
20904 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20905
20906         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
20907         Use XCNEW instead of xcalloc.
20908         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
20909         XNEW instead of xmalloc.
20910         (get_fields): Use XNEWVEC instead of xmalloc.
20911
20912         PR debug/43084
20913         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
20914         populate vars array.
20915         (create_new_general_access): For debug stmts just reset value.
20916         (get_stmt_accesses): For accesses within debug stmts just record them
20917         using add_access_to_acc_sites instead of preventing the peeling or
20918         counting them as accesses.
20919
20920         PR middle-end/42233
20921         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
20922
20923 2010-02-19  Richard Guenther  <rguenther@suse.de>
20924
20925         PR tree-optimization/42916
20926         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
20927         instructions.
20928
20929 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20930
20931         * configure.ac: Replace all uses of changequote in macro arguments
20932         with proper quoting.
20933
20934 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20935
20936         PR middle-end/42233
20937         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
20938
20939 2010-02-19  Richard Guenther  <rguenther@suse.de>
20940
20941         PR tree-optimization/42944
20942         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
20943         test for aliasing with errno.
20944
20945 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20946
20947         PR middle-end/42233
20948         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
20949         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
20950         * dojump.c: Include output.h.
20951         (inv): New inline function.
20952         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
20953         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
20954         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
20955         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
20956         argument, pass it down to other calls.
20957         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
20958         add REG_BR_PROB note to the conditional jump.
20959         * cfgexpand.c (add_reg_br_prob_note): Removed.
20960         (expand_gimple_cond): Don't call it, add the probability
20961         as last argument to jumpif_1/jumpifnot_1.
20962         * Makefile.in (dojump.o): Depend on output.h.
20963         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
20964         callers.
20965         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
20966         * stmt.c (do_jump_if_equal): Likewise.
20967         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
20968         * loop-unswitch.c (compare_and_jump_seq): Likewise.
20969         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
20970         Likewise.
20971         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
20972         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
20973         jumpifnot_1 callers.
20974         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
20975         callers.
20976         (store_expr): Adjust jumpifnot caller.
20977         (store_constructor): Adjust jumpif caller.
20978
20979         PR middle-end/42233
20980         * gimplify.c (gimple_boolify): For __builtin_expect call
20981         gimple_boolify also on its first argument.
20982
20983 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
20984
20985         * configure.ac (gnu-unique-object): Wrap regexps using [] in
20986         changequote block.
20987         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
20988         * configure: Regenerated.
20989
20990 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20991
20992         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
20993         lang_hooks.types_compatible_p instead of comptypes.
20994
20995 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
20996
20997         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
20998         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
20999         if __prefer_thumb__ is defined.
21000
21001 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21002
21003         PR tree-optimization/43066
21004         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21005         array with zero-sized element type.
21006
21007 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21008
21009         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21010         rtx, allocate struct var_loc_node here and return it to the
21011         caller, and only if it is actually needed.
21012         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21013         move it earlier and return immediately if it returns NULL.
21014
21015 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21016
21017         * config/sparc/gas.h: New file.  Restore
21018         TARGET_ASM_NAMED_SECTION to its ELF default.
21019         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21020         check !HAVE_GNU_AS.
21021         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21022         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21023         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21024         after sparc/sysv4.h.
21025
21026 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21027
21028         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21029
21030 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21031
21032         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21033         patterns from predicated pattern.
21034
21035 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21036
21037         PR target/43103
21038         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21039         for insn mnemonic suffix.
21040
21041 2010-02-17  Richard Guenther  <rguenther@suse.de>
21042
21043         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21044         to loop PHI nodes.
21045
21046 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21047
21048         PR debug/42918
21049         * caller-save.c (save_call_clobbered_regs): If BB ends with
21050         a DEBUG_INSN, move any notes in between last real insn and the last
21051         DEBUG_INSN after the last DEBUG_INSN.
21052
21053 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21054
21055         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21056         Fix return type.  Fix argument type.  Explain meaning of return value.
21057
21058 2010-02-16  Richard Guenther  <rguenther@suse.de>
21059
21060         PR tree-optimization/41043
21061         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
21062         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21063         statements ...
21064         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21065
21066 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21067
21068         PR tree-optimization/43074
21069         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21070         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21071         vectorizable cycles in hybrid SLP check.
21072         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21073
21074 2010-02-16  Richard Guenther  <rguenther@suse.de>
21075
21076         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21077         (true_dependence): If memrefs_conflict_p computes must-alias
21078         trust it.  Move TBAA check after offset-based disambiguation.
21079         (canon_true_dependence): Likewise.
21080
21081 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21082
21083         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21084         * doc/invoke.texi: Document it.
21085         * var-tracking.c: Include toplev.h and params.h.
21086         (vt_find_locations): Return bool indicating success.  Compute
21087         hash sizes unconditionally.  Check new parameter, report.
21088         (variable_tracking_main_1): Check vt_find_locations results and
21089         retry.  Renamed from...
21090         (variable_tracking_main): ... this.  New wrapper to preserve
21091         flag_var_tracking_assignments.
21092         * Makefile.in (var-tracking.o): Adjust dependencies.
21093
21094 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
21095             Jakub Jelinek <jakub@redhat.com>
21096
21097         PR target/42854
21098         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
21099         if weak_import attribute is present.
21100         * config/darwin.c (machopic_select_section): Likewise.
21101
21102 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
21103
21104         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
21105         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
21106         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
21107         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
21108
21109         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
21110         types.
21111
21112         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21113         Fix argument types.
21114
21115         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
21116         Rewrite text to refer to the names.
21117
21118 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
21119
21120         * config/i386/i386-builtin-types.def
21121         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
21122         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
21123         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
21124         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
21125         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
21126         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
21127         IX86_BUILTIN_VPERMIL2PS256.
21128         (MULTI_ARG_4_DF2_DI_I): Defined.
21129         (MULTI_ARG_4_DF2_DI_I1): Defined.
21130         (MULTI_ARG_4_SF2_SI_I): Defined.
21131         (MULTI_ARG_4_SF2_SI_I1): Defined.
21132         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
21133         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
21134         __builtin_ia32_vpermil2ps256.
21135         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21136         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21137         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
21138         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
21139         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
21140         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
21141         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
21142         CODE_FOR_xop_vpermil2v8sf3.
21143         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
21144         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
21145         * config/i386/xopintrin.h (_mm_permute2_pd): New.
21146         (_mm256_permute2_pd): New.
21147         (_mm_permute2_ps): New.
21148         (_mm256_permute2_ps): New.
21149
21150 2010-02-15  Nick Clifton  <nickc@redhat.com>
21151
21152         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
21153         boolean parameters.  Use emit_jump_insn when emitting a pop
21154         instruction containing a return insn.
21155         (push): Use 'true' rather than '1' as second parameter to F.
21156         (h8300_expand_prologue): Likewise.
21157         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
21158         (h8300_expand_epilogue): Likewise.
21159
21160 2010-02-15  Richard Guenther  <rguenther@suse.de>
21161
21162         PR middle-end/43068
21163         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
21164         if that is zero.
21165
21166 2010-02-15  Nick Clifton  <nickc@redhat.com>
21167
21168         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
21169         delta.
21170
21171 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
21172
21173         * intl.c (fake_ngettext): New function.
21174         * intl.h (fake_ngettext): Declare.
21175         (ngettext): Define macro.
21176         * collect2.c (notice_translated): New function.
21177         (main): Use notice_translated and ngettext.
21178         * collect2.h (notice_translated): Declare.
21179
21180 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
21181
21182         * reorg.c (delete_computation): Comment fixes.
21183         * caller-save.c (setup_save_areas): Idem.
21184         * sel-sched-dump.c (dump_lv_set): Idem.
21185         * rtl.def: Idem.
21186
21187 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21188
21189         * config/s390/s390.c (s390_sched_init): New function.
21190         (TARGET_SCHED_INIT): Target hook defined.
21191
21192 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
21193             Jack Howarth  <howarth@bromo.med.uc.edu>
21194             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
21195
21196         PR target/42982
21197         Partial revert of unintended change in fix for PR41605.
21198         * config/darwin.h: Fix typo.
21199         * config/darwin9.h: Same.
21200
21201 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21202
21203         * c-pch.c (pch_init): Clear v.
21204
21205 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21206
21207         PR middle-end/42930
21208         * graphite-scop-detection.c (graphite_can_represent_scev): Call
21209         graphite_can_represent_init for MULT_EXPR.
21210
21211 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21212
21213         PR middle-end/42914
21214         PR middle-end/42530
21215         * graphite-sese-to-poly.c (remove_phi): New.
21216         (translate_scalar_reduction_to_array): Call remove_phi.
21217
21218 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21219
21220         PR middle-end/42771
21221         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
21222         * graphite-clast-to-gimple.h (gloog): Update declaration.
21223         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
21224         * graphite-poly.h (struct poly_bb): Add missing comments.
21225         (struct scop): Add poly_scop_p field.
21226         (POLY_SCOP_P): New.
21227         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
21228         * graphite.c (graphite_transform_loops): Build the polyhedral
21229         representation for each scop before code generation.
21230         * sese.c (rename_variables_in_operand): Removed.
21231         (rename_variables_in_expr): Return the renamed expression.
21232         (rename_sese_parameters): New.
21233         * sese.h (rename_sese_parameters): Declared.
21234
21235 2010-02-11  Richard Guenther  <rguenther@suse.de>
21236
21237         PR tree-optimization/42998
21238         * tree-ssa-pre.c (create_expression_by_pieces): Treat
21239         POINTER_PLUS_EXPR properly.
21240
21241 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
21242             Changpeng Fang  <changpeng.fang@amd.com>
21243
21244         PR middle-end/40886
21245         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
21246         the cost of an IV candidate when the IV is used in a test against zero.
21247
21248         * gcc.dg/tree-ssa/ivopts-3.c: New.
21249
21250 2010-02-11  Richard Guenther  <rguenther@suse.de>
21251
21252         PR lto/41664
21253         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
21254         pointer-vs-decl case by swapping refs.  Handle some cases
21255         of pointer-vs-decl disambiguations more conservatively.
21256         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
21257         to false after expanding.
21258
21259 2010-02-11  Richard Guenther  <rguenther@suse.de>
21260
21261         PR driver/43021
21262         * gcc.c (process_command): Handle LTO file@offset case more
21263         appropriately.
21264
21265 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
21266
21267         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
21268         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
21269         of DEBUG_INSNs.
21270         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
21271
21272         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
21273         if MEM's mode size isn't DWARF2_ADDR_SIZE.
21274         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
21275         Optimize eq/ne comparisons when both arguments are known to be
21276         zero-extended.
21277         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
21278         Don't mask operands unnecessarily if they are known to be already
21279         zero-extended.
21280
21281 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
21282
21283         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
21284         instead of loop.
21285
21286 2010-02-10  Richard Guenther  <rguenther@suse.de>
21287
21288         PR tree-optimization/43017
21289         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
21290         for wrapping signed arithmetic.
21291
21292 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21293
21294         PR debug/43010
21295         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
21296         if no debug info should be emitted for it.
21297
21298 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
21299
21300         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
21301         note when flag_exceptions is set.
21302
21303 2010-02-10  Duncan Sands  <baldrick@free.fr>
21304
21305         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
21306
21307 2010-02-10  Richard Guenther  <rguenther@suse.de>
21308
21309         PR c/43007
21310         * tree.c (get_unwidened): Handle constants.
21311         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
21312
21313 2010-02-10  Martin Jambor  <mjambor@suse.cz>
21314
21315         PR lto/42985
21316         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
21317         check for variable argument counts independently.
21318
21319 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21320
21321         PR target/42841
21322         * config/sh/sh.c (find_barrier): Increase length for non delayed
21323         conditional branches.
21324
21325 2010-02-10  Christian Bruel  <christian.bruel@st.com>
21326
21327         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
21328
21329 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
21330
21331         * builtins.c (set_builtin_user_assembler_name): Also handle
21332         ffs if int is smaller than word.
21333
21334 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
21335
21336         PR middle-end/42973
21337         * ira-conflicts.c (get_dup): Remove.
21338         (process_reg_shuffles): Add new parameter.  Use it as an
21339         additional guard for copy generation.
21340         (add_insn_allocno_copies): Rewrite.
21341
21342 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
21343
21344         * common.opt (fsched2-use-traces): Preserved for backward
21345         compatibility.
21346         * doc/invoke.texi: Remove the documentation about option
21347         -fsched2-use-traces.
21348         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
21349         flag_sched2_use_traces.
21350         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
21351         the backward compatibility flag section.
21352
21353 2010-02-09  Richard Guenther  <rguenther@suse.de>
21354
21355         PR tree-optimization/43008
21356         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
21357         make HEAP variables initialized from global memory if they
21358         are not known builtin functions.
21359         (find_func_aliases): Adjust.
21360
21361 2010-02-09  Richard Guenther  <rguenther@suse.de>
21362
21363         PR tree-optimization/43000
21364         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
21365         arithmetic manually.
21366
21367 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
21368
21369         PR tree-optimization/42931
21370         * tree-loop-linear.c (try_interchange_loops): Don't call
21371         double_int_mul if estimated_loop_iterations failed.
21372
21373 2010-02-08  Martin Jambor  <mjambor@suse.cz>
21374
21375         PR middle-end/42898
21376         * tree-sra.c (build_accesses_from_assign): Do not mark in
21377         should_scalarize_away_bitmap if stmt has volatile ops.
21378         (sra_modify_assign): Do not process assigns piecemeal if if stmt
21379         has volatile ops.
21380
21381 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
21382
21383         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
21384
21385 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
21386
21387         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
21388         before the pattern.
21389
21390 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
21391
21392         PR middle-end/42946
21393         * df-core.c (df_finish_pass): Change type of saved_flags to int.
21394
21395 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21396
21397         PR middle-end/42988
21398         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
21399         to unknown_dependence.
21400         (graphite_legal_transform_dr): Handle the unknown_dependence.
21401         (graphite_carried_dependence_level_k): Same.
21402
21403 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
21404
21405         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
21406
21407 2010-02-07  Richard Guenther  <rguenther@suse.de>
21408
21409         PR middle-end/42991
21410         * expr.c (get_inner_reference): Always initialize *pbitsize.
21411
21412 2010-02-07  Richard Guenther  <rguenther@suse.de>
21413
21414         PR middle-end/42956
21415         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
21416         new ARRAY_REFs on variable size element or minimal index arrays.
21417         Complete.
21418         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
21419         gimple_fold_indirect_ref.
21420
21421 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
21422
21423         PR target/42957
21424         * arm.c (arm_override_options): Just return if the user has specified
21425         an invalid fpu name.
21426
21427 2010-02-03  Jason Merrill  <jason@redhat.com>
21428
21429         PR c++/42870
21430         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
21431         i386_pe_maybe_record_exported_symbol.
21432
21433 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
21434
21435         PR target/42924
21436         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21437         (pa_delegitimize_address): New function.
21438
21439 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
21440
21441         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
21442         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
21443
21444 2010-02-05  Richard Guenther  <rguenther@suse.de>
21445
21446         PR lto/42762
21447         * lto-streamer-in.c (get_resolution): Deal with references
21448         to undefined functions.
21449
21450 2010-02-05  Richard Guenther  <rguenther@suse.de>
21451
21452         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
21453         (fold_const_aggregate_ref): Likewise.
21454         (ccp_fold_stmt): Substitute loads.
21455         (maybe_fold_reference): Verify types before substituting.
21456         Unshare properly.
21457         (fold_gimple_assign): Unshare properly.
21458         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
21459
21460 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
21461
21462         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
21463         for rs6000_gen_cell_microcode.
21464
21465 2010-02-04  Richard Guenther  <rguenther@suse.de>
21466
21467         PR rtl-optimization/42952
21468         * dse.c (const_or_frame_p): Remove MEM handling.
21469
21470 2010-02-04  Nick Clifton  <nickc@redhat.com>
21471
21472         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
21473         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
21474         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
21475         (mn10300_asm_output_mi_thunk): New function.
21476         (mn10300_can_output_mu_thunk): New function.
21477         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
21478         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
21479         (FUNCTION_ARG): Delete incorrect comment.
21480
21481 2010-02-03  Jason Merrill  <jason@redhat.com>
21482
21483         PR c++/40138
21484         * fold-const.c (operand_equal_p): Handle erroneous types.
21485
21486 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21487
21488         * config/h8300/h8300.md (can_delay): Fix attibute condition.
21489
21490 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21491
21492         PR rtl-optimization/42941
21493         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
21494         of xmalloc.
21495
21496 2010-02-03  Jason Merrill  <jason@redhat.com>
21497
21498         PR c++/35652
21499         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
21500
21501 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
21502
21503         PR debug/42896
21504         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
21505         (cselib_reset_table): Renamed from...
21506         (cselib_reset_table_with_next_value): ... this.
21507         (cselib_get_next_uid): Renamed from...
21508         (cselib_get_next_unknown_value): ... this.
21509         * cselib.c (next_uid): Renamed from...
21510         (next_unknown_value): ... this.
21511         (cselib_clear_table): Adjust.
21512         (cselib_reset_table): Adjust.  Renamed from...
21513         (cselib_reset_table_with_next_value): ... this.
21514         (cselib_get_next_uid): Adjust.  Renamed from...
21515         (cselib_get_next_unknown_value): ... this.
21516         (get_value_hash): Use hash.
21517         (cselib_hash_rtx): Likewise.
21518         (new_cselib_val): Adjust.  Set and dump uid.
21519         (cselib_lookup_mem): Pass next_uid as hash.
21520         (cselib_subst_to_values): Likewise.
21521         (cselib_log_lookup): Dump uid.
21522         (cselib_lookup): Pass next_uid as hash.  Adjust.
21523         (cselib_process_insn): Adjust.
21524         (cselib_init): Initialize next_uid.
21525         (cselib_finish): Adjust.
21526         (dump_cselib_table): Likewise.
21527         * dse.c (canon_address): Dump value uid.
21528         * print-rtl.c (print_rtx): Print value uid.
21529         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
21530         (dvuid): New type.
21531         (dv_uid): New function, sort of renamed from...
21532         (dv_htab_hash): ... this, reimplemented in terms of it and...
21533         (dv_uid2hash): ... this.  New.
21534         (variable_htab_eq): Drop excess assertions.
21535         (tie_break_pointers): Removed.
21536         (canon_value_cmp): Compare uids.
21537         (variable_post_merge_New_vals): Print uids.
21538         (vt_add_function_parameters): Adjust.
21539         (vt_initialize): Reset table.  Adjust.
21540
21541 2010-02-03  Richard Guenther  <rguenther@suse.de>
21542
21543         PR tree-optimization/42944
21544         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
21545         (call_may_clobber_ref_p_1): Likewise.  Properly handle
21546         malloc and calloc clobbering errno.
21547
21548 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
21549
21550         * doc/invoke.texi: Fix name of sched1 dump.
21551
21552         * opts.c (decode_options): Set flag_tree_switch_conversion
21553         only conditionally on optimize >= 2.
21554
21555         * gcse.c: Assorted comment fixes in pass description.
21556
21557 2010-02-03  Anthony Green  <green@moxielogic.com>
21558
21559         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
21560         nop padding in order to maintain alignment of storage location of
21561         target function address.
21562         (moxie_trampoline_init): Store target function address at newly
21563         aligned location.
21564         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
21565         to 32.
21566         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
21567
21568 2010-02-03  Richard Guenther  <rguenther@suse.de>
21569
21570         PR middle-end/42927
21571         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
21572
21573 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21574
21575         * config.gcc: Reenable check for obsolete targets.
21576         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
21577         mips-sgi-irix6.[0-4]*.
21578
21579 2010-02-02  Nick Clifton  <nickc@redhat.com>
21580
21581         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
21582         constant size of 4 as being the same as 0.
21583         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
21584         can take values in the range 0..4.
21585
21586 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
21587
21588         PR java/41991
21589         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
21590         as _darwin10_Unwind_FindEnclosingFunction().
21591         * libgcc-libsystem.ver: New.
21592
21593 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
21594
21595         PR target/41399
21596         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
21597         implicitly set registers.
21598
21599 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
21600
21601         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
21602         (arm_override_options): Allow automatic selection of the thread
21603         pointer register if thumb2.
21604         (legitimize_pic_address): Improve code sequences for Thumb2.
21605         (arm_call_tls_get_addr): Likewise.
21606         (legitimize_tls_address): Likewise.
21607         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
21608         (pic_load_addr_32bit): ... this.  New named pattern.
21609         * thumb2.md (pic_load_addr_thumb2): Delete.
21610         (pic_load_dot_plus_four): Delete.
21611         (tls_load_dot_plus_four): New named pattern.
21612
21613 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21614
21615         PR libgomp/29986
21616         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
21617         Document fix for TLS bug.
21618
21619 2010-01-31  Richard Guenther  <rguenther@suse.de>
21620
21621         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
21622         conservatively correct.
21623
21624 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21625
21626         PR target/42850
21627         Revert:
21628         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21629
21630         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
21631
21632 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21633
21634         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
21635
21636 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
21637
21638         * config.gcc: Adjust order of makefile fragments for mingw targets.
21639
21640 2010-01-31  Richard Guenther  <rguenther@suse.de>
21641
21642         PR middle-end/42898
21643         * gimplify.c (gimplify_init_constructor): For volatile LHS
21644         initialize a temporary.
21645
21646 2010-01-31  Matthias Klose  <doko@ubuntu.com>
21647
21648         * configure.ac: Fix __stack_chk_fail check for cross builds configured
21649         --with-headers
21650         * configure: Regenerate.
21651
21652 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
21653
21654         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21655         the same alias set and their sizes different constantness.
21656         (aliasing_component_refs_p): Revert 2009-10-24 change.
21657
21658 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21659
21660         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
21661         unused.
21662
21663 2010-01-29  Richard Guenther  <rguenther@suse.de>
21664
21665         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
21666         Assert we successfully updated the call.
21667
21668 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
21669
21670         PR rtl-optimization/42889
21671         * df.h (df_set_bb_dirty_nonlr): New prototype.
21672         * df-core.c (df_set_bb_dirty_nonlr): New function.
21673         * df-scan.c (df_insn_rescan): Call it instead of
21674         df_set_bb_dirty for DEBUG_INSNs.
21675
21676 2010-01-29  Richard Guenther  <rguenther@suse.de>
21677
21678         PR middle-end/37448
21679         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
21680         quadratic behavior in most cases.
21681
21682 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
21683
21684         PR target/42891
21685         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
21686         in the call to gen_x86_movsicc_0_m1.
21687
21688 2010-01-28  Richard Guenther  <rguenther@suse.de>
21689
21690         PR tree-optimization/42871
21691         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
21692
21693 2010-01-28  Richard Guenther  <rguenther@suse.de>
21694
21695         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
21696         into call arguments.
21697
21698 2010-01-28  Richard Guenther  <rguenther@suse.de>
21699
21700         PR middle-end/42883
21701         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
21702         the forwarder if the destination is an EH landing pad.
21703
21704 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
21705
21706         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
21707         block list passed to gimple_duplicate_sese_tail.
21708         (parallelize_loops): Avoid parallelization when the function
21709         has_nonlocal_label.
21710         Avoid parallelization when the preheader is IRREDUCIBLE.
21711         Try to optimize when estimated_loop_iterations_int is unresolved.
21712         Add the loop's location to the dump file.
21713         * tree-cfg.c (add_phi_args_after_redirect): Remove.
21714         (gimple_duplicate_sese_tail): Remove the check for the latch.
21715         Redirect nexits to the exit block.
21716         Remove handling of the incoming edges to the latch.
21717         Redirect the backedge from the copied latch to the exit bb.
21718
21719 2010-01-28  Michael Matz  <matz@suse.de>
21720
21721         PR target/42881
21722         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
21723         Wrap force_reg into a sequence, emit it before user.
21724
21725 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
21726
21727         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
21728         (arm_rev): New.
21729         (arm_legacy_rev): Likewise.
21730         (thumb_legacy_rev): Likewise.
21731
21732 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
21733
21734         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
21735         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
21736         on MEM's address failed, try avoid_constant_pool_reference and
21737         recurse if it returned something different.
21738         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
21739         address, try avoid_constant_pool_reference and recurse if it
21740         returned something different.
21741         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
21742         address and avoid_constant_pool_reference returned something
21743         different, don't set have_address.
21744
21745 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
21746
21747         PR debug/42861
21748         * var-tracking.c (val_store): Add modified argument, obey it.
21749         Adjust callers.
21750         (count_uses): Move down logging of main.
21751         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
21752         don't need resolution.
21753         (emit_notes_in_bb): Likewise.
21754
21755 2010-01-27  Richard Guenther  <rguenther@suse.de>
21756
21757         PR middle-end/42878
21758         * tree-inline.c (remap_decl): Delay remapping of SSA name
21759         default definitions until we need them.
21760
21761 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
21762
21763         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21764         (rs6000_delegitimize_address): New function.
21765
21766         * config/s390/s390.c (s390_delegitimize_address): Call
21767         delegitimize_mem_from_attrs.
21768
21769         PR middle-end/42874
21770         * tree-inline.c (cannot_copy_type_1): Removed.
21771         (copy_forbidden): Don't forbid copying of functions containing
21772         records/unions with variable length fields.
21773
21774 2010-01-27  Christian Bruel  <christian.bruel@st.com>
21775
21776         Revert:
21777         PR target/42841
21778         * config/sh/sh.c (find_barrier): Increase length for non delayed
21779         conditional branches.
21780
21781 2010-01-27  Matthias Klose  <doko@ubuntu.com>
21782
21783         * configure.ac (gnu-unique-object): Fix ldd version check.
21784         * configure: Regenerate.
21785
21786 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21787
21788         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
21789         HAVE_GNU_AS value.
21790         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
21791         Test for HAVE_GNU_AS value.
21792
21793 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21794
21795         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
21796         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
21797         INT64_TYPE): Define.
21798         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
21799         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21800         INT_LEAST64_TYPE): Define.
21801         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
21802         UINT_LEAST64_TYPE): Define.
21803         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
21804         INT_FAST64_TYPE): Define.
21805         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21806         UINT_FAST64_TYPE): Define.
21807         (INTMAX_TYPE, UINTMAX_TYPE): Define.
21808         (INTPTR_TYPE, UINTPTR_TYPE): Define.
21809         (SIG_ATOMIC_TYPE): Define.
21810
21811 2010-01-26  Richard Guenther  <rguenther@suse.de>
21812
21813         * df-scan.c (df_scan_set_bb_info): Remove assert.
21814         (df_insn_rescan_debug_internal): Merge asserts.
21815         (df_install_ref): Likewise.
21816         (df_mark_reg): Use bitmap_set_range.
21817         (df_hard_reg_used_p): Remove assert.
21818         (df_hard_reg_used_count): Likewise.
21819
21820 2010-01-26  Richard Guenther  <rguenther@suse.de>
21821
21822         PR rtl-optimization/42685
21823         * web.c (web_main): Ignore DEBUG_INSNs.
21824
21825 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
21826
21827         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
21828
21829         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
21830         Fix types of fndecl and arglist parameters.
21831
21832 2010-01-26  Richard Guenther  <rguenther@suse.de>
21833
21834         PR middle-end/42806
21835         * tree-eh.c (unsplit_eh): Skip debug insns.
21836
21837 2010-01-26  Richard Guenther  <rguenther@suse.de>
21838
21839         PR tree-optimization/42250
21840         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
21841
21842 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
21843
21844         PR fortran/42866
21845         * omp-low.c (expand_omp_sections): Only use single_pred if
21846         l2_bb is single_pred_p.
21847
21848 2010-01-25  Christian Bruel  <christian.bruel@st.com>
21849
21850         PR target/42841
21851         * config/sh/sh.c (find_barrier): Increase length for non delayed
21852         conditional branches.
21853         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
21854
21855 2010-01-24  David S. Miller  <davem@davemloft.net>
21856
21857         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
21858         define if not using GAS.
21859         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21860         Likewise.  Delete SECTION_MERGE code, which is only applicable
21861         when using GAS.
21862
21863 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
21864
21865         PR c++/42748
21866         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
21867         mangling of va_list in system headers.
21868
21869 2010-01-23  Toon Moene  <toon@moene.org>
21870
21871         * tree-predcom.c (combine_chains): Return NULL, not false.
21872
21873 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
21874
21875         * tree-loop-distribution.c (distribute_loop): Fix declaration and
21876         initialization of variable res to agree with return type.
21877
21878 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
21879
21880         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
21881         * tree-sra.c: Add include of expr.h.
21882
21883 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
21884
21885         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
21886         insert the debug stmt on the single non-EH edge from the stmt.
21887
21888 2010-01-22  Richard Henderson  <rth@redhat.com>
21889
21890         PR tree-opt/42833
21891         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
21892         the RHS until after generate_subtree_copies has insertted its
21893         code before the current statement.
21894
21895 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
21896
21897         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
21898
21899         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
21900
21901 2010-01-21  Martin Jambor  <mjambor@suse.cz>
21902
21903         PR tree-optimization/42585
21904         * tree-sra.c (struct access): New field grp_total_scalarization.
21905         (dump_access): Dump the new field.
21906         (should_scalarize_away_bitmap): New variable.
21907         (cannot_scalarize_away_bitmap): Likewise.
21908         (sra_initialize): Allocate new bitmaps.
21909         (sra_deinitialize): Free new bitmaps.
21910         (create_access_1): New function.
21911         (create_access): Parts moved to create_access_1.
21912         (type_consists_of_records_p): New function.
21913         (completely_scalarize_record): Likewise.
21914         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
21915         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
21916         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
21917         access.
21918         (analyze_all_variable_accesses): Completely scalarize small eligible
21919         records.
21920
21921 2010-01-21  Martin Jambor  <mjambor@suse.cz>
21922
21923         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
21924
21925 2010-01-21  Andrew Haley  <aph@redhat.com>
21926
21927         * gcc.c (process_command): Move lang_specific_driver before
21928         setting cc_libexec_prefix.
21929
21930 2010-01-21  Richard Guenther  <rguenther@suse.de>
21931
21932         PR middle-end/19988
21933         * fold-const.c (negate_expr_p): Pretend only negative
21934         real constants are easily negatable.
21935
21936 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
21937             Jason Merrill  <jason@redhat.com>
21938
21939         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
21940         (TYPE_TRANSPARENT_AGGR): this, for union and record.
21941         * calls.c (initialize argument_information): Handle it.
21942         * c-common.c (handle_transparent_union_attribute): Use new name.
21943         * c-decl.c (finish_struct): Ditto.
21944         * c-typeck.c (type_lists_compatible_p): Ditto.
21945         (convert_for_assignment): Use new name and also handle record.
21946         * function.c (aggregate_value_p): Handle it.
21947         (pass_by_reference): Ditto.
21948         (assign_parm_data_types): Ditto.
21949         * print-tree.c (print_node): Ditto.
21950         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
21951         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
21952         * tree.c (first_field): New fn.
21953
21954 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
21955
21956         PR target/42818
21957         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
21958         even when linking statically, for now.
21959
21960 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
21961
21962         PR debug/42715
21963         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
21964         without a cselib val.
21965         (count_uses): Accept MO_VAL_SET with no val on stores.
21966         (add_stores): Likewise.
21967
21968 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21969
21970         * var-tracking.c (check_value_val): Add a compile time assertion.
21971         (dv_is_decl_p): Simplify.
21972         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
21973         gcc_assert if ENABLE_CHECKING.
21974
21975 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
21976
21977         PR debug/42782
21978         * var-tracking.c: Include tree-flow.h.
21979         (mem_dies_at_call): New.
21980         (dataflow_set_preserve_mem_locs): Use it.
21981         (dataflow_set_remove_mem_locs): Likewise.
21982         (dump_var): Renamed from dump_variable.  Adjust all callers.
21983         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
21984         * Makefile.in (var-tracking.o): Adjust deps.
21985
21986 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
21987
21988         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
21989
21990 2010-01-20  Richard Guenther  <rguenther@suse.de>
21991
21992         PR tree-optimization/42717
21993         * tree-ssa-dce.c (get_live_post_dom): Remove.
21994         (forward_edge_to_pdom): Take an arbitrary edge to copy
21995         degenerate PHI args from.
21996         (remove_dead_stmt): Use the first post-dominator even if it
21997         does not contain live statements as redirection destination.
21998
21999 2010-01-20  Richard Guenther  <rguenther@suse.de>
22000
22001         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22002
22003 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22004
22005         * sel-sched.c (create_speculation_check): Remove set but not used
22006         variable twin.
22007         (try_transformation_cache): Remove set but not used variable ds.
22008         (calculate_privileged_insns): Remove set but not used variables
22009         cur_insn and min_spec_insn.
22010         (find_best_expr): Remove set but not used variable avail_n.
22011         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22012         variable e.
22013         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22014         false_label.
22015         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22016         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22017         new_scop_exit_edge.
22018
22019 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22020
22021         PR bootstrap/42786
22022         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22023         cpu types.  Add support for *-sse3 cpu types.
22024         (x86_64-*-*): Ditto.
22025
22026 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22027
22028         PR middle-end/42803
22029         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22030         argument, call initializer_constant_valid_p_1 instead of
22031         initializer_constant_valid_p, pass CACHE to it, return NULL
22032         immediately if first call returns NULL.
22033         (initializer_constant_valid_p_1): New function.
22034         (initializer_constant_valid_p): Use it.
22035
22036 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22037
22038         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22039
22040 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22041
22042         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22043         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22044         (loc_list_from_tree): Don't handle unsigned division.  Handle
22045         signed modulo using DW_OP_{over,over,div,mul,minus}.
22046         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22047         modulo instead of signed.
22048
22049 2010-01-20  DJ Delorie  <dj@redhat.com>
22050
22051         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22052         (Fpa): Pass it
22053         (h8300_emit_stack_adjustment): Propogate it.
22054         (push): Pass it.
22055         (h8300_expand_prologue): Likewise.
22056         (h8300_expand_epilogue): Likewise.
22057
22058 2010-01-19  Michael Matz  <matz@suse.de>
22059
22060         PR tree-optimization/41783
22061         * tree-data-ref.c (toplevel): Include flags.h.
22062         (dump_data_dependence_relation):  Also dump the inputs if the
22063         result will be unknown.
22064         (split_constant_offset_1): Look through some conversions.
22065         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22066         the offset from last element is too large.
22067         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22068         (reassociate_to_the_same_stmt): Handle vector registers.
22069         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22070         (e.g. conversions).
22071         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22072         wide_prolog_niters argument, emit widening instructions.
22073         (vect_do_peeling_for_alignment): Adjust caller, use widened
22074         variant of the iteration cound.
22075         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22076
22077 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22078
22079         PR target/38697
22080         * config/arm/neon-testgen.m (emit_automatics): New parameter
22081         features. Adjust for Fixed_return_reg feature.
22082         (test_intrinsic): Call emit_automatics with new feature.
22083         * config/arm/neon.ml: Update copyright years.
22084         (features): New Fixed_return_reg feature.
22085         (ops): Update feature for Vget_low.
22086
22087 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
22088
22089         PR tree-optimization/42719
22090         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
22091         stmt uses.
22092
22093         PR debug/42728
22094         * fwprop.c (all_uses_available_at): Return false if def_set dest
22095         is a REG that is used in def_insn.
22096
22097 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
22098
22099         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
22100
22101         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
22102         Add argument names.
22103
22104         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
22105
22106         * target.h (struct gcc_target) <secondary_reload>: Change type
22107         of last argument to secondary_reload_info *.
22108
22109 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
22110
22111         PR target/42774
22112         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
22113         memory references with unaligned offsets.  Remove CQImode handling.
22114         (unaligned_memory_operand): Return 1 for memory references with
22115         unaligned offsets.  Remove CQImode handling.
22116
22117 2010-01-18  Richard Guenther  <rguenther@suse.de>
22118
22119         PR middle-end/39954
22120         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
22121         builtin calls.
22122
22123 2010-01-18  Richard Guenther  <rguenther@suse.de>
22124
22125         PR tree-optimization/42781
22126         * tree-ssa-structalias.c (find_what_var_points_to): Skip
22127         restrict processing only if the original variable was artificial.
22128
22129 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
22130
22131         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
22132         find number of popped argument bytes.
22133
22134         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
22135         Fix the text that describes the return value for invalid insns.
22136
22137         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
22138
22139         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
22140         Clarify what 'cost of the -dependence' is.  Fix quoting.
22141
22142         * toplev.c (default_get_pch_validity): Rename argument to "sz".
22143         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
22144
22145 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
22146
22147         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22148         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
22149
22150 2010-01-17  Richard Guenther  <rguenther@suse.de>
22151
22152         PR middle-end/42248
22153         * function.c (split_complex_args): Take a VEC to modify.
22154         (assign_parms_augmented_arg_list): Build a VEC instead of
22155         a chain of PARM_DECLs.
22156         (assign_parms_unsplit_complex): Take a VEC of arguments.
22157         Do not fixup unmodified parms.
22158         (assign_parms): Deal with the VEC.
22159         (gimplify_parameters): Likewise.
22160
22161 2010-01-17  Richard Guenther  <rguenther@suse.de>
22162
22163         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
22164         node existence check.
22165         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
22166         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
22167         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
22168         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
22169         (gimple_execute_on_growing_pred): Likewise.
22170
22171 2010-01-17  Richard Guenther  <rguenther@suse.de>
22172
22173         PR tree-optimization/42773
22174         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
22175         (compute_antic_aux): Likewise.
22176         (compute_partial_antic_aux): Likewise.
22177
22178 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
22179
22180         PR debug/42767
22181         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
22182         and US_TRUNCATE.
22183
22184 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
22185
22186         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
22187         appearance.
22188
22189         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
22190         Fix markup for strict argument.
22191
22192         (TARGET_SCHED_REORDER2): Fix argument types.
22193
22194         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
22195         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
22196
22197         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
22198         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
22199
22200         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
22201         Add argument name.
22202
22203         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
22204         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
22205         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
22206         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
22207         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
22208
22209         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
22210
22211         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
22212
22213         (TARGET_ASM_RELOC_RW_MASK): Add return type.
22214         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
22215
22216         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
22217
22218         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
22219         Use prototype.
22220
22221         (TARGET_ASM_NAMED_SECTION): Fix argument list.
22222
22223         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
22224         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
22225
22226         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
22227
22228         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
22229
22230         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
22231         referring to it.  Fix language.
22232
22233         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
22234
22235         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
22236
22237         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
22238
22239         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
22240
22241         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
22242         '@var{stream}.  Remove stray 'and'.
22243
22244         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
22245
22246         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
22247
22248         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
22249
22250         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
22251         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
22252
22253         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
22254         Fix description of return value.
22255         Rename argument "sz" to "len."
22256
22257         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
22258         Clarify meaning of 'true' return value.
22259
22260         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
22261
22262         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
22263         rep_mode versus mode_rep.
22264
22265         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
22266
22267         (TARGET_BUILTIN_DECL): Fix name.
22268
22269         (TARGET_COMMUTATIVE_P): Fix type of first argument.
22270
22271         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
22272
22273         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
22274
22275         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
22276
22277         (TARGET_RELAXED_ORDERING): Use @deftypevr.
22278
22279         (TARGET_GET_DRAP_RTX): Note that this is a hook.
22280         Clarify language.
22281
22282         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
22283         Rename argument tm_fn to md_fn.
22284
22285         (TARGET_OPTION_PRINT): Fix argument list.
22286
22287 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
22288
22289         PR target/42664
22290         * config/i386/i386.c (ix86_fixup_binary_operands):
22291         Revert FMA4 fixup of operands.
22292
22293 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22294
22295         PR gcc/42525
22296         * Makefile.in (write_entries_to_file, install-plugin):
22297         Use \012 instead of \n with tr.
22298
22299 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
22300
22301         * configure.ac (HAVE_AS_REF): New C macro.
22302         * configure: Regenerate.
22303         * config.in: Likewise.
22304         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
22305         if HAVE_AS_REF.
22306         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
22307         if HAVE_AS_REF.
22308
22309 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
22310
22311         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
22312
22313         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
22314
22315         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
22316
22317         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
22318
22319         (TARGET_IN_SMALL_DATA_P): Fix argument type.
22320
22321         (TARGET_BINDS_LOCAL_P): Fix argument type.
22322
22323         (TARGET_ASM_FILE_END): Use prototype.
22324
22325         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
22326
22327         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
22328
22329         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
22330
22331         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
22332
22333         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
22334         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
22335
22336         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
22337         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
22338
22339         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
22340         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
22341         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
22342         (TARGET_ADDR_SPACE_CONVERT): Likewise.
22343
22344         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
22345
22346         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
22347
22348         (TARGET_INIT_BUILTINS): Use prototype.
22349
22350         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
22351         Put 'const char *' in braces.  Fix parameter types.
22352         (TARGET_INVALID_CONVERSION): Fix parameter types.
22353         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
22354         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
22355
22356         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
22357         Fix argument type.
22358
22359         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
22360
22361         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
22362
22363 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
22364
22365         * doc/tm.texi (TARGET_HELP): Fix return type.
22366
22367         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
22368         in braces.  Fix argument types.
22369
22370         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
22371
22372         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
22373
22374         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
22375
22376         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
22377         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
22378
22379         (TARGET_MANGLE_TYPE): Fix argument types.
22380
22381         (TARGET_IRA_COVER_CLASSES): Use prototype.
22382
22383         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
22384
22385         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
22386
22387         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
22388
22389         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
22390
22391         (TARGET_CALLEE_COPIES): Fix argument types.
22392
22393         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
22394
22395         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
22396
22397         (TARGET_FUNCTION_VALUE): Fix argument types.
22398
22399         (TARGET_RETURN_IN_MSB): Fix argument type.
22400
22401         (TARGET_RETURN_IN_MEMORY): Fix argument types.
22402
22403         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
22404
22405         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
22406
22407         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
22408         agree with return type.
22409
22410         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
22411
22412 2010-01-15  Jing Yu  <jingyu@google.com>
22413
22414         PR rtl-optimization/42691
22415         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
22416         a pseudo to a constant and are merged, and adjust comments.
22417
22418 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
22419
22420         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
22421
22422 2010-01-15  Richard Guenther  <rguenther@suse.de>
22423
22424         PR middle-end/42739
22425         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
22426         labels of computed or non-local gotos to the destination.
22427         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
22428         landing pad label is the first label.
22429
22430 2010-01-15  Richard Guenther  <rguenther@suse.de>
22431
22432         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
22433
22434 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22435
22436         PR target/42747
22437         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
22438         to allow generation of the xssqrtdp instruction on power7.
22439         (sqrtdf2_fpr): Ditto.
22440
22441 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22442
22443         PR middle-end/42674
22444         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
22445         functions with noreturn attribute.
22446
22447         PR c++/42608
22448         * varasm.c (declare_weak): Add weak attribute to decl if it
22449         doesn't have one already.
22450         (assemble_external): Only add decls to weak_decls if they also
22451         have weak attribute.
22452
22453 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
22454
22455         * var-tracking.c (var_reg_delete): Don't delete the association
22456         between REGs and values or one-part variables if the register
22457         isn't clobbered.
22458
22459 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22460
22461         PR debug/42657
22462         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
22463         because its first operand is a non-localized variable.
22464
22465 2010-01-14  Martin Jambor  <mjambor@suse.cz>
22466
22467         PR tree-optimization/42706
22468         * tree-sra.c (encountered_recursive_call): New variable.
22469         (encountered_unchangable_recursive_call): Likewise.
22470         (sra_initialize): Initialize both new variables.
22471         (callsite_has_enough_arguments_p): New function.
22472         (scan_function): Call decl and flags check only for IPA-SRA, check
22473         whether there is a recursive call and whether it has enough arguments.
22474         (all_callers_have_enough_arguments_p): New function.
22475         (convert_callers): Look for recursive calls only when
22476         encountered_recursive_call is set.
22477         (ipa_early_sra): Bail out either if
22478         !all_callers_have_enough_arguments_p or
22479         encountered_unchangable_recursive_call.
22480
22481 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22482
22483         * sel-sched.c: Add 2010 to copyright years.
22484         * sel-sched-ir.c: Likewise.
22485         * sel-sched-ir.h: Likewise.
22486
22487 2010-01-14  Martin Jambor  <mjambor@suse.cz>
22488
22489         PR tree-optimization/42714
22490         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
22491         constructors specially.
22492
22493 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22494
22495         * config/i386/drivers-i386.c (detect_caches_intel):
22496         Add l2sizekb parameter and fill in.
22497         (host_detect_local_cpu): Add l2sizekb, fill in.
22498         Add Atom small cache heuristic.
22499
22500 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22501
22502         * config/i386/drivers-i386.c (detect_caches_cpuid4):
22503         Add level3 parameter and fill in.
22504         (detect_caches_intel): Handle level3 cache.
22505
22506 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22507
22508         * config/i386/drivers-i386.c (host_detect_local_cpu):
22509         Fix core duo detection.
22510
22511 2010-01-14  Andi Kleen  <ak@linux.intel.com>
22512
22513         * config/i386/drivers-i386.c (host_detect_local_cpu):
22514         Fix Atom detection.
22515
22516 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22517
22518         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
22519         (rs6000_variable_issue_1): this.  Use...
22520         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
22521
22522 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22523
22524         * sel-sched-ir.c (sel_restore_other_notes): Rename to
22525         sel_restore_notes.  Update all callers.  Call reemit_notes
22526         for all insns.
22527
22528 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22529
22530         PR rtl-optimization/42246
22531         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
22532         loops.
22533
22534 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22535
22536         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
22537         all successors is the same as number of successors in current region.
22538
22539 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22540
22541         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
22542         to rename is not separable.  Otherwise check that its LHS is not NULL.
22543
22544 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22545
22546         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
22547
22548 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22549
22550         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
22551         available registers when failed to discover LHS register class.
22552         Fix indentation.  Update comment.
22553
22554 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22555             Alexander Monakov  <amonakov@ispras.ru>
22556
22557         PR rtl-optimization/42389
22558         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
22559         to can_issue_more.
22560         (advance_state_on_fence): Likewise.
22561         (sel_target_adjust_priority): Print debug output only when
22562         sched_verbose >= 4, not 2.
22563         (get_expr_cost): Do not issue all unique insns on the next cycle.
22564         (fill_insns): Initialize can_issue_more from the value saved
22565         with the fence.
22566         * sel-sched-ir.c (flist_add): New parameter issue_more.
22567         Init FENCE_ISSUE_MORE with it.
22568         (merge_fences): Likewise.
22569         (init_fences): Update call to flist_add.
22570         (add_to_fences, add_clean_fence_to_fences)
22571         (add_dirty_fence_to_fences): Likewise.
22572         (move_fence_to_fences): Update call to merge_fences.
22573         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
22574         sched groups.
22575         * sel-sched-ir.h (struct _fence): New field issue_more.
22576         (FENCE_ISSUE_MORE): New accessor macro.
22577
22578 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22579
22580         PR rtl-optimization/42388
22581         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
22582         that have no predecessors nor successors.  Do not call move_bb_info
22583         for empty blocks outside of current region.
22584
22585 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22586
22587         PR rtl-optimization/42294
22588         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
22589         * sel-sched.c (move_exprs_to_boundary): Transitively add all
22590         originators' originators.
22591
22592 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
22593
22594         PR rtl-optimization/39453
22595         PR rtl-optimization/42246
22596         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
22597         for pipelining_p.
22598         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
22599
22600 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
22601             Alexander Monakov  <amonakov@ispras.ru>
22602
22603         PR middle-end/42245
22604         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
22605         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
22606         argument.  Update all callers.
22607         (tidy_control_flow): ... and here.  Recompute topological order
22608         of basic blocks in region if necessary.
22609         (sel_redirect_edge_and_branch): Change return type.  Return true
22610         if topological order might have been invalidated.
22611         (purge_empty_blocks): Export and move from...
22612         * sel-sched.c (purge_empty_blocks): ... here.
22613         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
22614         (maybe_tidy_empty_bb): Delete prototype.
22615         (purge_empty_blocks): Declare.
22616
22617 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
22618
22619         PR rtl-optimization/42249
22620         * sel-sched.c (try_replace_dest_reg): When chosen register
22621         and original register is the same, do not bail out early, but
22622         still check all original insns for validity of replacing destination
22623         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
22624         in this case.
22625
22626 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
22627
22628         PR c/42721
22629         Port from no-undefined-overflow branch:
22630         2009-03-09  Richard Guenther  <rguenther@suse.de>
22631
22632         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
22633
22634 2010-01-14  Richard Guenther  <rguenther@suse.de>
22635
22636         PR lto/42665
22637         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
22638
22639 2010-01-14  Ira Rosen  <irar@il.ibm.com>
22640
22641         PR tree-optimization/42709
22642         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
22643         as scalar type in creation of constant vector operand.
22644
22645 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22646
22647         PR testsuite/42414
22648         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
22649         (check-parallel-%): Match `testsuite' directory component only
22650         at the end.
22651
22652 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
22653
22654         PR translation/39521
22655         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
22656         strings with _().
22657
22658 2010-01-13  Richard Guenther  <rguenther@suse.de>
22659
22660         PR tree-optimization/42730
22661         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
22662         offset zero.
22663
22664 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
22665
22666         PR target/pr42542
22667         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
22668         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
22669         them signed.
22670
22671 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
22672
22673         * config/bfin/libgcc-bfin.ver: Regenerate based on current
22674         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
22675         ___umulsi3_highpart.
22676
22677         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
22678         rather than schedule_insns if the pass is enabled.
22679
22680 2010-01-13  Martin Jambor  <mjambor@suse.cz>
22681
22682         PR tree-optimization/42704
22683         * tree-sra.c (sra_modify_assign): Do not delete assignments to
22684         SSA_NAMEs.
22685
22686 2010-01-13  Martin Jambor  <mjambor@suse.cz>
22687
22688         PR tree-optimization/42703
22689         * tree-sra.c (analyze_access_subtree): Check that we can build a
22690         reference to the original data within the aggregate.
22691
22692 2010-01-13  Richard Guenther  <rguenther@suse.de>
22693
22694         PR tree-optimization/42705
22695         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
22696
22697 2010-01-13  Richard Guenther  <rguenther@suse.de>
22698
22699         PR middle-end/42716
22700         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
22701
22702 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
22703
22704         PR debug/41371
22705         * var-tracking.c (values_to_unmark): New variable.
22706         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22707         values_to_unmark vector.  Moved body to...
22708         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
22709         instead queue it into values_to_unmark vector.
22710         (vt_find_locations): Free values_to_unmark vector.
22711
22712 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
22713
22714         * config/s390/s390.c (override_options): Set
22715         default of max-pending-list-length to 256
22716
22717 2010-01-13  Richard Guenther  <rguenther@suse.de>
22718
22719         PR lto/42678
22720         * tree-pass.h (PROP_gimple_lcx): New.
22721         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
22722         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
22723         before the final cleanup_eh.
22724         (dump_properties): Dump PROP_gimple_lcx.
22725         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
22726         (tree_lower_complex_O0): Remove.
22727         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
22728         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
22729         tree_lower_complex, schedule TODO_update_ssa.
22730         * lto-streamer-out.c (output_function): Stream the functions
22731         properties.
22732         * lto-streamer-in.c (input_function): Likewise.
22733         (lto_read_body): Do not override them here.
22734
22735 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
22736
22737         PR c/42708
22738         * c-typeck.c (build_c_cast): Fold value cast to union type before
22739         wrapping it in a CONSTRUCTOR.
22740
22741 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
22742
22743         PR rtl-optimization/42699
22744         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
22745         involved.
22746
22747 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22748
22749         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22750         SUBTARGET_WARN_UNUSED_SPEC): Move ...
22751         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
22752         SUBTARGET_WARN_UNUSED_SPEC): ... here
22753         * config/mips/iris5.h (LIBGCC_SPEC): Define.
22754
22755 2010-01-12  Julian Brown  <julian@codesourcery.com>
22756
22757         * config/arm/neon-schedgen.ml (Utils): Don't try to
22758         open missing module.
22759         (find_with_result): New.
22760
22761 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
22762
22763         PR debug/42662
22764         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
22765         sharing when canonicalizing ({lt,ge}u (plus a b) b).
22766
22767         PR tree-optimization/42645
22768         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
22769         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
22770         decl_map, set processing_debug_stmt to -1 and return name without
22771         any remapping.
22772
22773 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
22774
22775         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
22776         binutils version, and reword target configuration description.
22777
22778 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
22779
22780         * config/avr/avr.h (LINKER_NAME): Remove.
22781
22782 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
22783
22784         PR target/42416
22785         * config/rs6000/rs6000.c (rs6000_override_options): On targets
22786         that support VSX, warn for -mno-altivec if vsx is not disabled,
22787         and disable vsx.
22788
22789 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
22790             Shujing Zhao  <pearly.zhao@oracle.com>
22791
22792         PR translation/42469
22793         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
22794         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
22795         character between option name and help text.
22796         * c.opt (imultilib): Likewise.
22797
22798 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
22799
22800         * lto-streamer-out.c (output_unreferenced_globals): Output static
22801         variables.
22802
22803 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
22804
22805         PR rtl-optimization/42621
22806         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
22807         optimizing for size.
22808         (duplicate_computed_gotos): Remove now-redundant check.
22809
22810 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
22811
22812         PR target/37454
22813         * configure.ac: Save and restore LDFLAGS and LIBS
22814         * configure: Regenerate.
22815
22816 2010-01-10  Richard Guenther  <rguenther@suse.de>
22817
22818         PR middle-end/42667
22819         * builtins.c (fold_builtin_strlen): Add type argument and
22820         convert the resulting length to it.
22821         (fold_builtin_1): Adjust.
22822
22823 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
22824
22825         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
22826         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
22827         1 insn.
22828         (num_insns_constant_wide): Adjust for that change.
22829
22830 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22831
22832         PR debug/42631
22833         * web.c (union_defs): Add used argument, to combine uses of
22834         uninitialized regs.
22835         (entry_register): Adjust type and tests of used argument.
22836         (web_main): Widen used for new use.  Pass it to union_defs.
22837         * df.h (union_defs): Adjust prototype.
22838
22839 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22840
22841         PR debug/42630
22842         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
22843         uses in new incoming argument.  Free body.
22844         (reset_debug_uses_in_loop): New.
22845         (analyze_insn_to_expand_var): Call the latter if the former found
22846         anything.  Fix whitespace.  Reject invalid dest overlaps before
22847         going through all insns in the loop.
22848
22849 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22850
22851         PR debug/42629
22852         * haifa-sched.c (dying_use_p): Debug insns don't count.
22853
22854 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22855
22856         PR middle-end/42363
22857         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
22858         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
22859         (verify_gimple_call): Reject LHS in noreturn calls.
22860
22861 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22862
22863         PR debug/42604
22864         PR debug/42395
22865         * tree-vect-loop-manip.c (adjust_info): New type.
22866         (adjust_vec): New pointer to vector.
22867         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
22868         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
22869         (slpeel_update_phis_for_duplicate_loop): Use them.
22870         (slpeel_update_phi_nodes_for_guard1): Likewise.
22871         (slpeel_update_phi_nodes_for_guard2): Likewise.
22872         (slpeel_tree_peel_loop_to_edge): Likewise.
22873         (vect_update_ivs_after_vectorizer): Likewise.
22874
22875 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22876
22877         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
22878         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
22879
22880 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22881
22882         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
22883         bogus uninitialized warning.
22884
22885 2010-01-09  Richard Guenther  <rguenther@suse.de>
22886
22887         PR middle-end/42512
22888         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
22889         the evolution is compatible with the initial condition.
22890
22891 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
22892
22893         * gcc.c (process_command): Update copyright notice dates.
22894         * gcov.c (print_version): Likewise.
22895         * gcov-dump.c (print_version): Likewise.
22896         * mips-tfile.c (main): Likewise.
22897         * mips-tdump.c (main): Likewise.
22898
22899 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
22900
22901         PR target/41885
22902         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
22903         (rotlhi3): Delete.
22904         (rotlhi3_8): Delete.
22905         (rotlsi3): Delete.
22906         (rotlsi3_8): Delete.
22907         (rotlsi3_16): Delete.
22908         (rotlsi3_24): Delete.
22909         (rotl<mode>3): New.
22910         (*rotw<mode>3): New.
22911         (*rotb<mode>3): New.
22912         * config/avr/avr.c (avr_rotate_bytes): New function.
22913         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
22914
22915 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
22916
22917         PR target/37454
22918         * configure.ac: Modify -rdynamic check.
22919         * configure: Regenerate.
22920
22921 2010-01-08  DJ Delorie  <dj@redhat.com>
22922
22923         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
22924         register popping order.
22925
22926 2010-01-08  Richard Guenther  <rguenther@suse.de>
22927
22928         PR lto/42528
22929         * c.opt (fsigned-char): Also let LTO handle this option.
22930         (funsigned-char): Likewise.
22931
22932 2010-01-07  Richard Guenther  <rguenther@suse.de>
22933
22934         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
22935         (gimple_op): Likewise.
22936         (gimple_op_ptr): Likewise.
22937         (gimple_assign_set_lhs): Remove gcc_assert.
22938         (gimple_assign_set_rhs1): Likewise.
22939         (gimple_assign_set_rhs2): Likewise.
22940         (gimple_call_set_lhs): Likewise.
22941         (gimple_call_set_fn): Likewise.
22942         (gimple_call_set_fndecl): Likewise.
22943         (gimple_call_fndecl): Likewise.
22944         (gimple_call_return_type): Likewise.
22945         (gimple_call_set_chain): Likewise.
22946         (gimple_call_num_args): Likewise.
22947         (gimple_call_set_arg): Likewise.
22948         (gimple_cond_set_code): Likewise.
22949         (gimple_cond_set_lhs): Likewise.
22950         (gimple_cond_set_rhs): Likewise.
22951         (gimple_cond_set_true_label): Likewise.
22952         (gimple_cond_set_false_label): Likewise.
22953         (gimple_label_set_label): Likewise.
22954         (gimple_goto_set_dest): Likewise.
22955         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
22956         (gimple_debug_bind_get_value): Likewise.
22957         (gimple_debug_bind_get_value_ptr): Likewise.
22958         (gimple_debug_bind_set_var): Likewise.
22959         (gimple_debug_bind_set_value): Likewise.
22960         (gimple_debug_bind_reset_value): Likewise.
22961         (gimple_debug_bind_has_value_p): Likewise.
22962         (gimple_return_retval_ptr): Remove gcc_assert.
22963         (gimple_return_retval): Likewise.
22964         (gimple_return_set_retval): Likewise.
22965         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
22966         (safe_referenced_var_iterator): Remove.
22967         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
22968         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
22969         (fill_referenced_var_vec): Remove.
22970         (first_readonly_imm_use): Remove redundant gcc_assert.
22971         (phi_arg_index_from_use): Combine gcc_asserts.
22972         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
22973         (first_imm_use_stmt): Remove redundant gcc_assert.
22974         * tree-cfg.c (verify_gimple_call): Verify function and chain
22975         operands.  Verify arguments.
22976         (verify_types_in_gimple_stmt): Verify condition code and labels.
22977
22978 2010-01-07  Richard Guenther  <rguenther@suse.de>
22979
22980         PR tree-optimization/42641
22981         * sese.c (rename_map_elt_info): Use the SSA name version, do
22982         not hash pointers.
22983
22984 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
22985
22986         PR tree-optimization/42625
22987         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
22988         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
22989
22990 2010-01-07  Duncan Sands  <baldrick@free.fr>
22991
22992         * Makefile.in (PLUGIN_HEADERS): Add version.h.
22993
22994 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
22995
22996         PR target/42511
22997         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
22998         note itself is not function_invariant_p.
22999
23000 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23001
23002         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23003         Do not add the DF_NOTE problem.
23004         * store-motion.c (execute_rtl_store_motion): Likewise.
23005
23006 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23007
23008         PR tree-optimization/42157
23009         * tree-sra.c (compare_access_positions): Stabilize sort if both
23010         accesses have integer types, return zero immediately if they are the
23011         same.
23012
23013 2010-01-06  Richard Henderson  <rth@redhat.com>
23014
23015         PR middle-end/41883
23016         * haifa-sched.c (add_to_note_list): Merge into ...
23017         (concat_note_lists): ... here, and ...
23018         (unlink_other_notes, rm_other_notes): Merge into...
23019         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23020         NOTE_INSN_EPILOGUE_BEG.
23021
23022 2010-01-06  Richard Guenther  <rguenther@suse.de>
23023
23024         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23025         not inline regular functions into always-inline functions.
23026
23027 2010-01-06  Nick Clifton  <nickc@redhat.com>
23028
23029         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23030         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23031         used together.
23032         (OVERRIDE_OPTIONS): Delete.
23033         (OPTIMIZATION_OPTIONS): Define.
23034         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23035         * config/rx/rx.c (rx_handle_option): Issue an error message if
23036         -mcpu=rx200 and -fpu are used together.
23037         (rx_set_optimization_options): New function.  Issue an error
23038         message if an optimization attribute attempts to reset the FPU/
23039         math optimization pairing.
23040         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23041         * config/rx/rx.opt: Set the default to 32-bit doubles.
23042         * config/rx/t-rx: Add multilibs for -nofpu option.
23043         * doc/invoke.texi: Update documentation of RX options.
23044
23045 2010-01-06  Richard Guenther  <rguenther@suse.de>
23046
23047         * tree-ssa-pre.c (name_to_id): New global.
23048         (alloc_expression_id): Simplify SSA name handling.
23049         (lookup_expression_id): Likewise.
23050         (init_pre): Zero name_to_id.
23051         (fini_pre): Free it.
23052
23053 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23054
23055         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23056
23057 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23058
23059         PR target/42542
23060         * config/i386/sse.md (smaxv2di3): New.
23061         (umaxv2di3): Likewise.
23062         (sminv2di3): Likewise.
23063         (uminv2di3): Likewise.
23064
23065 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23066
23067         PR target/42564
23068         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23069         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23070         (legitimize_tls_address): Likewise.
23071         (sparc_tls_referenced_p): Likewise.
23072         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23073         and adjust calls to legitimize_pic_address.
23074         (legitimate_constant_p) Use sparc_tls_referenced_p.
23075         (legitimate_pic_operand_p): Likewise.
23076         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23077         (sparc_tls_symbol_ref_1): Delete.
23078         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23079         (legitimize_tls_address): Make static, handle CONST patterns.
23080         (legitimize_pic_address): Make static, remove unused parameter and
23081         adjust recursive calls.
23082         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23083         and adjust call to legitimize_pic_address.
23084         (sparc_output_mi_thunk): Likewise.
23085
23086 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
23087             H.J. Lu  <hongjiu.lu@intel.com>
23088
23089         PR target/42542
23090         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
23091         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
23092         operands to make them signed.
23093
23094         Revert:
23095         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23096
23097         PR target/42542
23098         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23099         GTU to GT for V4SI and V2DI.
23100
23101         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23102         (umin<mode>3): Removed.
23103         (uminv8hi3): New.
23104         (uminv4si3): Likewise.
23105
23106 2010-01-05  Martin Jambor  <mjambor@suse.cz>
23107
23108         PR tree-optimization/42462
23109         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
23110         current_function_decl to helper functions and macros.
23111
23112 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23113
23114         PR bootstrap/41771
23115         * flags.h: Don't include real.h.
23116         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
23117         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
23118         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
23119         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
23120         * dominance.c: Update copyright.
23121         * gimple.c (walk_gimple_op): Remove inline.
23122         * tree-ssa-reassoc.c: Include real.h.
23123         * Makefile.in (FLAGS_H): Remove $(REAL_H).
23124         (tree-ssa-reassoc.o): Depend on $(REAL_H).
23125
23126 2010-01-05  Nick Clifton  <nickc@redhat.com>
23127
23128         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
23129         register to push into the stack frame when the accumulator has to
23130         be saved during interrupts.
23131
23132 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
23133
23134         * doc/invoke.texi: Remove the documentation about option
23135         -Wunreachable-code.
23136         * common.opt (Wunreachable-code):  Preserved for backward
23137         compatibility.
23138         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
23139         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
23140         the backward compatibility flag section.
23141
23142 2010-01-05  Richard Guenther  <rguenther@suse.de>
23143
23144         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
23145
23146 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
23147
23148         PR other/42611
23149         * cfgexpand.c (expand_one_var): Diagnose too large variables.
23150
23151         PR tree-optimization/42508
23152         * tree-sra.c (convert_callers): Check for recursive call
23153         by comparing cgraph nodes instead of decls.
23154         (modify_function): Call ipa_modify_formal_parameters also
23155         on all same_body aliases.
23156
23157         * cgraphunit.c (cgraph_materialize_all_clones): Compare
23158         cgraph nodes when checking for same_body aliases.
23159
23160 2010-01-05  Richard Guenther  <rguenther@suse.de>
23161
23162         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
23163         allocation and lookup.
23164         (get_or_alloc_expr_for_constant): Likewise.
23165         (phi_translate): Sink allocation.
23166
23167 2010-01-04  Richard Guenther  <rguenther@suse.de>
23168
23169         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
23170         a new entry only if needed.
23171         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
23172         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
23173         hashtable lookup.
23174         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
23175         the result array.
23176         (phi_translate): Handle CONSTANTs early.
23177
23178 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23179
23180         PR tree-optimization/42398
23181         * tree-sra.c (struct access): Removed flag grp_different_types.
23182         (dump_access): Do not dump the removed flag.
23183         (sort_and_splice_var_accesses): Do not set the removed flag.
23184         (sra_modify_expr): Check for type compatibility directly.
23185
23186 2010-01-04  Martin Jambor  <mjambor@suse.cz>
23187
23188         PR tree-optimization/42366
23189         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
23190         edges with variable number of parameters.
23191         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
23192         flag instead of asserting it.
23193         (ipa_read_node_info): Read uses_analysis_done flag.
23194
23195 2010-01-04  Richard Guenther  <rguenther@suse.de>
23196
23197         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
23198         iterative_hash_* as intended.
23199         (vn_reference_compute_hash): Likewise.  Simplify hashing
23200         SSA names.
23201         (vn_reference_lookup_2): Likewise.
23202         (vn_nary_op_compute_hash): Likewise.
23203         (vn_phi_compute_hash): Likewise.
23204         (expressions_equal_p): Remove strange code.
23205         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
23206         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
23207         (bitmap_insert_into_set_1): Take value-id as parameter.
23208         (add_to_value): Pass it.
23209         (bitmap_insert_into_set): Likewise.
23210         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
23211
23212 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
23213
23214         PR driver/42442
23215         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
23216         (do_self_spec): For switches with SWITCH_IGNORE set set also
23217         SWITCH_IGNORE_PERMANENTLY.
23218         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
23219         of SWITCH_IGNORE.
23220
23221 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
23222
23223         * lto-streamer-out.c (output_unreferenced_globals): Output the full
23224         tree of an unreferenced global var.
23225
23226 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23227
23228         PR target/42542
23229         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
23230         GTU to GT for V4SI and V2DI.
23231
23232         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
23233         (umin<mode>3): Removed.
23234         (uminv8hi3): New.
23235         (uminv4si3): Likewise.
23236
23237 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23238
23239         PR lto/42581
23240         * collect2.c (main): Turn on trace in collect2 if -v is passed
23241         to gcc with LTO.
23242
23243 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
23244
23245         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
23246         description of expression operand.
23247
23248 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
23249
23250         * configure.ac: Add install-html to target_list for Make-hooks.
23251         * configure: Regenerate.
23252         * fortran/Make-lang.in (F95_HTMLFILES): New.
23253         (fortran.html): Use it.
23254         (fortran.install-html): New.
23255         * Makefile.in (install-html): Add lang.install-html.
23256         * java/Make-lang.in (JAVA_HTMLFILES): New.
23257         (java.html): Use it.
23258         (java.install-html): New.
23259         * objc/Make-lang.in (objc.install-html): New.
23260         * objcp/Make-lang.in (obj-c++.install-html): New.
23261         * cp/Make-lang.in (c++.install-html): New.
23262         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
23263         * lto/Make-lang.in (lto.install-html): New.
23264
23265 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23266
23267         PR lto/42520
23268         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
23269
23270 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23271
23272         PR rtl-optimization/41862
23273         * store-motion.c (store_killed_in_insn, compute_store_table,
23274         remove_reachable_equiv_notes, replace_store_insn,
23275         build_store_vectors): Ignore all DEBUG_INSNs.
23276
23277 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23278
23279         PR lto/41564
23280         * common.opt: Add dumpdir.
23281
23282         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
23283         isn't specified.
23284         (option_map): Add --dumpdir.
23285
23286         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
23287
23288         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
23289
23290         * opts.c (decode_options): Try dump_dir_name first if
23291         dump_base_name isn't an absolute path.
23292         (common_handle_option): Handle OPT_dumpdir.
23293
23294         * toplev.c (dump_dir_name): New.
23295         (print_switch_values): Also ignore -dumpdir.
23296
23297         * toplev.h (dump_dir_name): New.
23298
23299 2010-01-03  Richard Guenther  <rguenther@suse.de>
23300
23301         PR tree-optimization/42589
23302         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
23303         double-word expansion of bswap32.
23304
23305 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
23306
23307         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
23308         with BLOCK_FOR_INSN.
23309         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
23310         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
23311         noce_process_if_block): Likewise.
23312         * gcse.c (compute_local_properties, insert_expr_in_table,
23313         insert_set_in_table, canon_list_insert, find_avail_set,
23314         pre_insert_copy_insn): Likewise.
23315
23316         * basic-block.h (BLOCK_NUM): Move from here...
23317         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
23318
23319 2010-01-03  Richard Guenther  <rguenther@suse.de>
23320
23321         PR tree-optimization/42438
23322         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
23323         contains_may_not_return_call flag.
23324         (BB_MAY_NOTRETURN): New.
23325         (valid_in_sets): Trapping nary operations are not valid
23326         in blocks that may not return.
23327         (insert_into_preds_of_block): Remove check for trapping expressions.
23328         (compute_avail): Compute also BB_MAY_NOTRETURN.
23329
23330 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
23331
23332         * doc/invoke.texi: Add 2010 to copyright years.
23333
23334 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
23335
23336         * config/sparc/sparc.c: Fix formatting nits.
23337
23338 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23339             Alexander Monakov  <amonakov@ispras.ru>
23340
23341         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
23342
23343 2010-01-02  Richard Guenther  <rguenther@suse.de>
23344
23345         PR middle-end/42577
23346         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
23347         (simplify_switch_using_ranges): Mark to be removed edges
23348         as non-executable.
23349
23350 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23351
23352         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23353
23354         * collect2.c (scan_libraries): Add missing argument in call to
23355         scan_prog_file.
23356
23357 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
23358
23359         PR target/42448
23360         * config/alpha/predicates.md (aligned_memory_operand): Return false
23361         for CQImode.
23362         (unaligned_memory_operand): Return true for CQImode.
23363         * config/alpha/alpha.c (get_aligned_mem): Assert that location
23364         doesn not cross aligned SImode word boundary.
23365
23366 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
23367
23368         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
23369         Remove.
23370         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
23371         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
23372
23373 2010-01-02  Richard Guenther  <rguenther@suse.de>
23374
23375         PR lto/41597
23376         * toplev.c (compile_file): Emit LTO marker properly.  Change
23377         it to __gnu_lto_v1.
23378         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
23379
23380 2010-01-01  Richard Guenther  <rguenther@suse.de>
23381
23382         PR debug/42455
23383         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
23384
23385 2010-01-01  Richard Guenther  <rguenther@suse.de>
23386
23387         PR c/42570
23388         * c-decl.c (grokdeclarator): For zero-size arrays force
23389         structural equality checks as layout_type does.
23390
23391 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23392
23393         * builtins.c: Update copyright to 2010.
23394
23395 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
23396
23397         PR lto/42531
23398         * lto-streamer-out.c (produce_asm): Revert the last change.
23399         (copy_function): Likewise.
23400
23401         * lto-streamer.c (lto_get_section_name): Skip any leading
23402         asterisk in name.
23403
23404 2010-01-01  Richard Guenther  <rguenther@suse.de>
23405
23406         PR middle-end/42559
23407         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
23408         for LABEL_DECLs.
23409
23410 \f
23411 Copyright (C) 2010 Free Software Foundation, Inc.
23412
23413 Copying and distribution of this file, with or without modification,
23414 are permitted in any medium without royalty provided the copyright
23415 notice and this notice are preserved.