OSDN Git Service

* lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-05  Jan Hubicka  <jh@suse.cz>
2
3         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4         with body can prevail.
5
6 2010-05-05  Jan Hubicka  <jh@suse.cz>
7
8         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
9         size.
10
11 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12
13         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to
14         dependencies.
15
16         * gengtype.h (erro_at_line): Constify pos argument.
17
18         * gengtype.c: Include hashtab.h.
19         (enum gc_used): Document GC_MAYBE_POINTED_TO.
20         (error_at_line): Constify pos argument.
21         (do_typedef): Initialize p->opt field.
22         (get_file_gtfilename): Fix comment typo.
23         (struct walk_type_data): Constify line field.
24         (get_output_file_for_structure): New function.
25         (write_local_func_for_structure): Constify orig_s argument.
26         Use get_output_file_for_structure.
27         (write_func_for_structure): Use get_output_file_for_structure.
28         (INDENT): New define.
29         (dump_pair, dump_type, dump_type_list, dump_typekind)
30         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
31         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
32         functions.
33         (seen_types): New variable.
34         (main): New variable do_dump.  Process "-d" command line option.
35         Call dump_everything if dump requested.
36
37 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
38
39         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
40         in a temporary instead of invoking the macro multiple times.
41         (track_expr_p): Likewise.
42
43 2010-05-04  Neil Vachharajani <nvachhar@google.com>
44
45         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
46         per new semantics.
47         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
48         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
49         conditions for printing notes.
50         * common.opt (-Wcoverage-mismatch): Allow negative, default to
51         true, update documentation.
52         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
53
54 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
55
56         PR c/43981
57         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
58         on dimen.
59
60 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
61
62         PR target/43799
63         * config/i386/i386.md (sse_prologue_save): Add clobber CC
64         register.
65         (*sse_prologue_save_insn1): Likewise.
66         (SSE prologue save splitter): Likewise.
67
68 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
69
70         * tree.c (free_lang_data_in_one_sizepos): New inline function.
71         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
72         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
73         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
74         all decls.  Call it on DECL_FIELD_OFFSET of fields.
75         (find_decls_types_r): Follow DECL_VALUE_EXPR.
76         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
77
78 2010-05-04  Martin Jambor  <mjambor@suse.cz>
79
80         * tree-sra.c (build_access_from_expr_1): The first parameter type
81         changed to simple tree.
82         (build_access_from_expr): Likewise, gsi parameter was eliminated.
83         (scan_assign_result): Renamed to assignment_mod_result, enum elements
84         renamed as well.
85         (build_accesses_from_assign): Removed all parameters except for a
86         simple gimple statement.  Now returns a simple bool.
87         (scan_function): All non-analysis parts moved to separate functions
88         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
89         parameters and updated both callers.
90         (sra_modify_expr): Removed parameter data.
91         (sra_modify_function_body): New function.
92         (perform_intra_sra): Call sra_modify_function_body to modify the
93         function body.
94         (replace_removed_params_ssa_names): Parameter data changed into
95         adjustments vector.
96         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
97         changed the parameter dont_convert to convert with the opposite
98         meaning.
99         (sra_ipa_modify_assign): Parameter data changed into adjustments
100         vector, return value changed to bool.
101         (ipa_sra_modify_function_body): New function.
102         (sra_ipa_reset_debug_stmts): Updated a comment.
103         (modify_function): Use ipa_sra_modify_function_body to modify function
104         body.
105
106 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
107
108         PR middle-end/43671
109         * alias.c (true_dependence): Handle the same VALUE in x and mem.
110         (canon_true_dependence): Likewise.
111         (write_dependence_p): Likewise.
112
113 2010-05-04  Jan Hubicka  <jh@suse.cz>
114
115         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
116         * cgraphbuild.c: Include ipa-utils.h
117         (record_reference_ctx): New struct.
118         (record_reference): Simplify to work on initializers; not statements.
119         (mark_address, mark_load, mark_store): New.
120         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
121         walk PHI nodes too.
122         (record_references_in_initializer): Update use of record_reference.
123         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
124         walk PHI nodes too.
125
126 2010-05-04  Jan Hubicka  <jh@suse.cz>
127
128         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
129         node will be removed anyway.
130         (lto_varpool_replace_node): Allow also unanalyzed nodes;
131         relink aliases of node into prevailing node.
132         * varpool.c (varpool_remove_node): Remove aliases properly;
133         when removing node, remove all its aliases too; remove DECL_INITIAL
134         of removed node; ggc_free the varpool node.
135
136 2010-05-04  Richard Guenther  <rguenther@suse.de>
137
138         PR tree-optimization/43879
139         * tree-ssa-structalias.c (alias_get_name): Use
140         DECL_ASSEMBLER_NAME if available.
141         (create_function_info_for): Return the varinfo node.
142         (ipa_pta_execute): Associate same-body aliases and extra names
143         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
144
145 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
146
147         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove
148         static.
149
150 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
151
152         PR bootstrap/43964
153         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
154         only if HONOR_REG_ALLOC_ORDER is not defined.
155
156 2010-05-04  Richard Guenther  <rguenther@suse.de>
157
158         PR tree-optimization/43949
159         * tree-vrp.c (extract_range_from_binary_expr): Only handle
160         TRUNC_MOD_EXPR.
161
162 2010-04-26  Jason Merrill  <jason@redhat.com>
163
164         * c.opt (-fstrict-enums): New.
165         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
166
167 2010-05-03  David Ung <davidu@mips.com>
168             James E. Wilson  <wilson@codesourcery.com>
169
170         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
171         emit the trap instruction before the divide for TUNE_74K.
172
173 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
174
175         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
176         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
177         based on the above, for new target hook.
178
179         * hooks.c (hook_bool_mode_true): New generic hook.
180         * hooks.h (hook_bool_mode_true): Add prototype.
181
182         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
183         target hook.
184         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
185         target hook, set to hook_bool_mode_false.
186         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
187         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
188         with targetm.small_register_classes_for_mode_p.
189         (find_reusable_reload): Likewise.
190         (combine_reloads): Likewise.
191         * reload1.c (reload_as_needed): Likewise.
192         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
193         * ifcvt.c (noce_process_if_block, check_cond_move_block,
194         dead_or_predicable): Likewise.
195         * regmove.c (optimize_reg_copy_1): Likewise.
196         * calls.c (prepare_call_address): Likewise.
197         (precompute_register_parameters): Likewise.
198
199         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
200         hook definition.
201         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
202         implementation of the hook that considers all register classes
203         small except for SH64.
204         (sh_override_options): Use the new hook.
205         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
206         Add prototype.
207
208         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
209         hook definition.
210         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
211         implementation of the hook that considers all register classes
212         small for THUMB1.
213         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
214         Add prototype.
215
216         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
217         hook definition.
218         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
219         implementation of the hook that considers all register classes
220         small for MIPS16.
221         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
222         Add prototype.
223
224         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
225         hook definition.
226         * config/m32c/m32c.h: Likewise.
227         * config/pdp11/pdp11.h: Likewise.
228         * config/avr/avr.h: Likewise.
229         * config/xtensa/xtensa.h: Likewise.
230         * config/m68hc11/m68hc11.h: Likewise.
231         * config/mn10300/mn10300.h: Likewise.
232         * config/mcore/mcore.h: Likewise.
233         * config/h8300/h8300.h: Likewise.
234         * config/bfin/bfin.h: Likewise.
235
236         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
237         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
238
239 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
240
241         * double-int.h (tree_to_double_int): Remove macro.
242         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
243         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
244         (tree_to_double_int): New function.
245         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
246         Move ...
247         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
248
249 2010-05-03  Richard Guenther  <rguenther@suse.de>
250
251         PR tree-optimization/43971
252         * tree-ssa-structalias.c (get_constraint_for_1): Fix
253         constraints in the !flag_delete_null_pointer_checks case.
254
255 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
256
257         PR debug/43972
258         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
259         result mode matches original rtl mode.
260
261 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
262
263         PR target/43888
264         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
265
266 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
267
268         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
269         when processing flag options.
270
271 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
272
273         * gcov-iov.c (main): Change format string placeholder
274         from %#08x to 0x%08x.
275         * genchecksum.c (dosum): Change format string placeholder
276         from %#02x to 0x%02x.
277
278 2010-05-02  Richard Guenther  <rguenther@suse.de>
279
280         PR tree-optimization/43879
281         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
282
283 2010-05-02  Bruno Haible  <bruno@clisp.org>
284
285         * doc/extend.texi (Function Attributes): Fix a typo.
286
287 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
288
289         Revert:
290         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
291         placeholder from 0x%x to %#x.
292         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
293         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
294         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
295         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
296         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
297         * config/i386/i386.c (ix86_target_string): Ditto.
298         * config/i386/i386.c (output_pic_addr_const): Ditto.
299         (print_operand): Ditto.
300
301 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
302
303         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
304         placeholder from 0x%x to %#x.
305         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
306         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
307         (ASM_OUTPUT_DEBUG_DATA): Ditto.
308         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
309         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
310         * optc-gen.awk: Ditto.
311         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
312         (HOST_WIDE_INT_PRINT_HEX): Ditto.
313         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
314         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
315
316 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
317
318         * target.h (struct calls): Add function_value_regno_p field.
319         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
320         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
321         * targhooks.c (default_function_value_regno_p): New function.
322         * targhooks.h (default_function_value_regno_p): Declare function.
323         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
324         * builtins.c. (apply_result_size): (Ditto.).
325         * combine.c. (likely_spilled_retval_p): (Ditto.).
326         * mode-switching.c. Include 'target.h'.
327         (create_pre_exit): Use function_value_regno_p hook.
328         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
329         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
330         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
331
332         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
333         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
334         (ix86_function_value_regno_p): Declare as static, change argument
335         type to const unsigned int.
336         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
337
338 2010-05-01  Richard Guenther  <rguenther@suse.de>
339
340         PR tree-optimization/43949
341         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
342         types.
343         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
344
345 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
346
347         * rtl.h (CONST_DOUBLE_P): Define.
348         (rtx_to_double_int): Declare.
349         * emit-rtl.c (rtx_to_double_int): New function.
350         * dwarf2out.c (insert_double): New function.
351         (loc_descriptor, add_const_value_attribute): Clean up, use
352         rtx_to_double_int and insert_double functions.
353
354 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
355
356         * doc/extend.texi (Inline): Add missing return keyword to examples.
357         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
358         "command-line".
359
360 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
361
362         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
363         the variable part of the offset as well.  Use highest_pow2_factor for
364         all alignment checks.
365
366 2010-04-30  Richard Guenther  <rguenther@suse.de>
367
368         PR tree-optimization/43879
369         * tree-ssa-structalias.c (type_could_have_pointers): Functions
370         can have pointers.
371
372 2010-04-30  Jan Hubicka  <jh@suse.cz>
373
374         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
375         varpool.
376         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
377
378 2010-04-30  Jan Hubicka  <jh@suse.cz>
379
380         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
381         New.
382         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
383         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
384         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
385         cgraph_node_set_needs_ltrans_p): Remove.
386
387 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
388
389         * sdbout.c: Include vec.h, do not include varray.h.
390         (deferred_global_decls, sdbout_global_decl,
391         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
392         * toplev.c: Do not include varray.h.
393         (dump_memory_report): Do not dump VARRAY statistics.
394         * gengtype.c (open_base_file): Ignore varray.h.
395         * Makefile.in: Update for abovementioned changes.
396         Remove all traces of varray.c and varray.h.
397         * varray.c: Remove file.
398         * varray.h: Remove file.
399
400 2010-04-30  Jan Hubicka  <jh@suse.cz>
401
402         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
403         references.
404
405 2010-04-30  Jan Hubicka  <jh@suse.cz>
406
407         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
408         needed.
409
410 2010-04-30  Richard Guenther  <rguenther@suse.de>
411
412         * tree-ssa-structalias.c (get_constraint_for_1): Generate
413         constraints for CONSTRUCTOR.
414
415 2010-04-30  Richard Guenther  <rguenther@suse.de>
416
417         PR lto/43946
418         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
419         first after all lowering passes.
420
421 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
422
423         * toplev.c: Include varray.h for statistics dumping.
424         * tree.h: Do not declare varray_head_tag.
425         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
426         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
427         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
428         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
429         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
430         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
431         c-common.c, c-common.h, reg-stack.c, basic-block.h,
432         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
433         include varray.h.
434         * Makefile.in: Update for abovementioned changes.
435
436 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
437
438         PR debug/43942
439         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
440
441 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
442
443         * config/picochip/picochip.c (picochip_legitimize_address): Define.
444         Use this function to do machine-specific conversion.
445         (picochip_legitimize_reload_address): Likewise.
446         (picochip_legitimate_address_p): Check valid base register only if
447         strict.
448         (picochip_check_conditional_copy): Check for modw only if opnd is
449         register.
450         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
451         to call the function in c.
452         * config/picochip/picochip-protos.h
453         (picochip_legitimize_reload_address): Define.
454         * config/picochip/picochip.md (supported_compare1): Define.
455
456 2010-04-30  Jan Hubicka  <jh@suse.cz>
457
458         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
459         (cgraph_global_info): Remove inlined.
460         (LTO_cgraph_tag_names): Remove.
461         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
462         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
463         simplify cgraph tags and document.
464         (lto_output_node): Use only LTO_cgraph_unavail_node and
465         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
466         for_functions_valid, global info, process and output flags.
467         (input_overwrite_node): Initialize estimated stack size and
468         estimated growth.  Do not read flags we no longer store.
469         (input_node): Likewise do not read info no longer stored.
470         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
471         flag.
472
473 2010-04-30  Richard Guenther  <rguenther@suse.de>
474
475         PR tree-optimization/43879
476         * tree-ssa-structalias.c (get_constraint_for_1): Properly
477         handle non-zero initializers.
478
479 2010-04-30  Richard Guenther  <rguenther@suse.de>
480
481         * builtins.c (fold_builtin_1): Delete free (0).
482
483 2010-04-29  Jan Hubicka  <jh@suse.cz>
484
485         * gengtype.c (open_base_files): Add lto-streamer.h
486         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
487         (pass_ipa_cp): GGC collect.
488         * toplev. (compile_file): Do not output symbols.
489         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
490         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
491         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
492         * lto-section-in.c: Include ggc.h
493         (lto_new_in_decl_state): Alloc in GGC.
494         (lto_delete_in_decl_state): Likewise.
495         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
496         Collect.
497
498 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
499
500         PR target/42895
501         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
502         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
503         (HONOR_REG_ALLOC_ORDER): Describe new macro.
504         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
505         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
506         account only if HONOR_REG_ALLOC_ORDER is not defined.
507         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
508         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
509
510 2010-04-29  Jon Grant  <04@jguk.org>
511
512         * collect2.c (vflag): Change type from int to bool.
513         (debug): Likewise.
514         (helpflag): New global bool.
515         (main): Set vflag and debug with boolean, not integer truth values.
516         Accept new "--help" option and output usage text if found.
517         * collect2.h (vflag): Update prototype.
518         (debug): Likewise.
519
520 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
521
522         PR bootstrap/43936
523         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
524
525 2010-04-29  Richard Guenther  <rguenther@suse.de>
526
527         PR bootstrap/43935
528         * plugin.h (invoke_plugin_callbacks): Annotate arguments
529         with ATTRIBUTE_UNUSED.
530
531 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
532
533         PR target/43921
534         * config/i386/i386.c (get_some_local_dynamic_name): Replace
535         INSN_P with NONDEBUG_INSN_P.
536         (distance_non_agu_define): Likewise.
537         (distance_agu_use): Likewise.
538
539 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
540
541         From Dominique d'Humieres <dominiq@lps.ens.fr>
542         PR bootstrap/43858
543         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
544         test_set.
545
546 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
547
548         * plugin.h (invoke_plugin_callbacks): New inline function.
549         * plugin.c (flag_plugin_added): New global flag.
550         (add_new_plugin): Initialize above flag.
551         (invoke_plugin_callbacks): Rename to ...
552         (invoke_plugin_callbacks_full): ... this.
553
554 2010-04-28  Jan Hubicka  <jh@suse.cz>
555
556         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
557         (lto_varpool_replace_node): New.
558         (lto_symtab_resolve_symbols): Resolve varpool nodes.
559         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
560         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
561         * cgraph.h (varpool_node_ptr): New type.
562         (varpool_node_ptr): New vector.
563         (varpool_node_set_def): New structure.
564         (varpool_node_set): New type.
565         (varpool_node_set): New vector.
566         (varpool_node_set_element_def): New structure.
567         (varpool_node_set_element, const_varpool_node_set_element): New types.
568         (varpool_node_set_iterator): New type.
569         (varpool_node): Add prev pointers, add used_from_other_partition,
570         in_other_partition.
571         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
572         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
573         varpool_get_node, varpool_remove_node): Declare.
574         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
575         varpool_node_set_size): New inlines.
576         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
577         * tree-pass.h (varpool_node_set_def): Forward declare.
578         (ipa_opt_pass_d): Summary writting takes vnode sets too.
579         (ipa_write_optimization_summaries): Update prototype.
580         * ipa-cp.c (ipcp_write_summary): Update.
581         * ipa-reference.c (ipa_reference_write_summary): Update.
582         * lto-cgraph.c (lto_output_varpool_node): New static function.
583         (output_varpool): New function.
584         (input_varpool_node): New static function.
585         (input_varpool_1): New function.
586         (input_cgraph): Input varpool.
587         * ipa-pure-const.c (pure_const_write_summary): Update.
588         * lto-streamer-out.c (lto_output): Update, output varpool too.
589         (write_global_stream): Kill WPA hack.
590         (produce_asm_for_decls): Update.
591         (output_alias_pair_p): Handle variables.
592         (output_unreferenced_globals): Output only needed partition of varpool.
593         * ipa-inline.c (inline_write_summary): Update.
594         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
595         cgraph.
596         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
597         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
598         varpool_node_set_new, varpool_node_set_add,
599         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
600         debug_varpool_node_set): New functions.
601         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
602         (execute_one_pass): Process new decls too.
603         (ipa_write_summaries_2): Pass around vsets.
604         (ipa_write_summaries_1): Likewise.
605         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
606         to add.
607         (ipa_write_optimization_summaries_1): Pass around vsets.
608         (ipa_write_optimization_summaries): Likewise.
609         * varpool.c (varpool_get_node): New.
610         (varpool_node): Update doubly linked lists.
611         (varpool_remove_node): New.
612         (dump_varpool_node): More dumping.
613         (varpool_enqueue_needed_node): Update doubly linked lists.
614         (decide_is_variable_needed): Kill ltrans hack.
615         (varpool_finalize_decl): Kill lto hack.
616         (varpool_assemble_decl): Skip decls in other partitions.
617         (varpool_assemble_pending_decls): Update doubly linkes lists.
618         (varpool_empty_needed_queue): Likewise.
619         (varpool_extra_name_alias): Likewise.
620         * lto-streamer.c (lto_get_section_name): Add vars section.
621         * lto-streamer.h (lto_section_type): Update.
622         (output_varpool, input_varpool): Declare.
623
624 2010-04-28  Mike Stump  <mikestump@comcast.net>
625
626         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
627
628 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
629
630         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
631         record or union type with RECORD_OR_UNION_TYPE_P predicate.
632         (lto_input_ts_type_tree_pointers): Likewise.
633         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
634         (lto_output_ts_type_tree_pointers): Likewise.
635
636 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
637
638         Uniquization of constants at the Tree level
639         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
640         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
641         bit to the end.
642         (tree_output_constant_def): Declare.
643         * gimplify.c (gimplify_init_constructor): When using block copy, first
644         uniquize the constant constructor on the RHS.
645         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
646         DECL_IN_CONSTANT_POOL flag.
647         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
648         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
649         constant pool.
650         (assemble_variable): Deal with symbols belonging to the tree constant
651         pool.
652         (get_constant_section): Add ALIGN parameter and simplify.
653         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
654         (assemble_constant_contents): Use the expression of the VAR_DECL.
655         (output_constant_def_contents): Use the alignment of the VAR_DECL.
656         (tree_output_constant_def): New global function.
657         (mark_constant): Use the expression of the VAR_DECL.
658         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
659         its expression.
660         (output_object_block): Likewise and assemble the expression.
661
662 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
663
664         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
665         hash_tree, eq_tree): New tree hash table.
666         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
667         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
668         lto_orig_address_remove): Reimplement.
669
670 2010-04-28  Xinliang David Li  <davidxl@google.com>
671
672         PR c/42643
673         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
674         (compute_uninit_opnds_pos): New function.
675         (is_non_loop_exit_postdominating): New function.
676         (compute_control_dep_chain): New function.
677         (find_pdom): New function.
678         (convert_control_dep_chain_into_preds): New function.
679         (find_predicates): New function.
680         (find_control_equiv_block): New function.
681         (collect_phi_def_edges): New function.
682         (find_def_preds): New function.
683         (find_dom): New function.
684         (dump_predicates): New function.
685         (get_cmp_code): New function.
686         (is_value_included_in): New function.
687         (find_matching_predicate_in_rest_chains): New function.
688         (use_pred_not_overlap_with_undef_path_pred): New function.
689         (is_use_properly_guarded): New function.
690         (normalize_cond_1): New function.
691         (is_and_or_or): New function.
692         (normalize_cond): New function.
693         (is_gcond_subset_of): New function.
694         (is_subset_of_any): New function.
695         (is_or_set_subset_of): New function.
696         (is_and_set_subset_of): New function.
697         (is_norm_cond_subset_of): New function.
698         (is_pred_expr_subset_of): New function.
699         (is_pred_chain_subset_of): New function.
700         (is_included_in): New function.
701         (is_superset_of): New function.
702         (find_uninit_use): New function.
703         (warn_uninitialized_phi): New function.
704         (compute_possibly_undefined_names): New function.
705         (ssa_undefined_value_p): New function.
706         (execute_late_warn_uninitialized): New function.
707         * tree-ssa.c (ssa_undefined_value_p): Removed.
708         (warn_uninit): Changed to extern.
709         (warn_uninitialized_phi): Removed.
710         (warn_uninitialized_vars): Changed to extern.
711         (execute_late_warn_uninitialized): Removed
712         * tree-flow.h: Add new prototypes.
713         * timevar.def: Add new time variable.
714         * Makefile.in: Add new build file.
715
716 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
717
718         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
719         type if available.
720
721 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
722
723         PR target/22224
724         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
725
726 2010-04-28  Martin Jambor  <mjambor@suse.cz>
727
728         * cgraph.h (struct cgraph_node): New field indirect_calls.
729         (struct cgraph_indirect_call_info): New type.
730         (struct cgraph_edge): Removed field indirect_call. New fields
731         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
732         (cgraph_create_indirect_edge): Declare.
733         (cgraph_make_edge_direct): Likewise.
734         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
735         * ipa-prop.h (struct ipa_param_call_note): Removed.
736         (struct ipa_node_params): Removed field param_calls.
737         (ipa_create_all_structures_for_iinln): Declare.
738         * cgraph.c: Described indirect edges and uids in initial comment.
739         (cgraph_add_edge_to_call_site_hash): New function.
740         (cgraph_edge): Search also among the indirect edges, use
741         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
742         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
743         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
744         site hash.
745         (initialize_inline_failed): Assign a reason to indirect edges.
746         (cgraph_create_edge_1): New function.
747         (cgraph_create_edge): Moved some functionality to
748         cgraph_create_edge_1.
749         (cgraph_create_indirect_edge): New function.
750         (cgraph_edge_remove_callee): Add an assert checking for
751         non-indirectness.
752         (cgraph_edge_remove_caller): Special-case indirect edges.
753         (cgraph_remove_edge): Likewise.
754         (cgraph_set_edge_callee): New function.
755         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
756         (cgraph_make_edge_direct): New function.
757         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
758         the declaration of the call statement matches.
759         (cgraph_node_remove_callees): Special-case indirect edges.
760         (cgraph_clone_edge): Likewise.
761         (cgraph_clone_node): Clone also the indirect edges.
762         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
763         indirect_call, dump count of indirect_calls edges.
764         * ipa-prop.c (iinlining_processed_edges): New variable.
765         (ipa_note_param_call): Create indirect edges instead of
766         creating notes.  New parameter node.
767         (ipa_analyze_call_uses): New parameter node, pass it on to
768         ipa_note_param_call.
769         (ipa_analyze_stmt_uses): Likewise.
770         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
771         (print_edge_addition_message): Work on edges rather than on notes.
772         (update_call_notes_after_inlining): Likewise, renamed to
773         update_indirect_edges_after_inlining.
774         (ipa_create_all_structures_for_iinln): New function.
775         (ipa_free_node_params_substructures): Do not free notes.
776         (ipa_edge_duplication_hook): Propagate bits within
777         iinlining_processed_edges bitmap.
778         (ipa_node_duplication_hook): Do not duplicate notes.
779         (free_all_ipa_structures_after_ipa_cp): Renamed to
780         ipa_free_all_structures_after_ipa_cp.
781         (free_all_ipa_structures_after_iinln): Renamed to
782         ipa_free_all_structures_after_iinln.g
783         (ipa_write_param_call_note): Removed.
784         (ipa_read_param_call_note): Removed.
785         (ipa_write_indirect_edge_info): New function.
786         (ipa_read_indirect_edge_info): Likewise.
787         (ipa_write_node_info): Do not stream notes, do stream information
788         in indirect edges.
789         (ipa_read_node_info): Likewise.
790         (lto_ipa_fixup_call_notes): Removed.
791         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
792         * ipa-inline.c (pass_ipa_inline): Likewise.
793         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
794         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
795         * tree-inline.c (copy_bb): Removed an unnecessary double check for
796         is_gimple_call.
797         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
798         edges.
799         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
800         (output_cgraph): Stream also indirect edges.
801         (lto_output_edge): Added capability to stream indirect edges.
802         (input_edge): Likewise.
803         (input_cgraph_1): Likewise.
804         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
805         of indirect edges.
806
807 2010-04-28  Richard Guenther  <rguenther@suse.de>
808
809         PR tree-optimization/43879
810         PR tree-optimization/43909
811         * tree-ssa-structalias.c (struct variable_info): Add
812         only_restrict_pointers flag.
813         (new_var_info): Initialize it.  Increment stats.total_vars here.
814         (create_function_info_for): Do not increment stats.total_vars
815         here.
816         (get_function_part_constraint): Fix build with C++.
817         (insert_into_field_list): Remove.
818         (push_fields_onto_fieldstack): Properly merge fields.
819         (create_variable_info_for): Split and simplify.
820         (create_variable_info_for_1): New piece.
821         (intra_create_variable_infos): Properly make restrict constraints
822         from parameters.
823
824 2010-04-28  Richard Guenther  <rguenther@suse.de>
825
826         PR c++/43880
827         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
828
829 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
830             Jan Hubicka <hubicka@ucw.cz>
831
832         * doc/invoke.texi (-Wsuggest-attribute=const,
833         -Wsuggest-attribute=pure): Document.
834         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
835         (function_always_visible_to_compiler_p,
836         suggest_attribute, warn_function_pure, warn_function_const):
837         New functions.
838         (check_call): Improve debug info.
839         (analyze_function): Do not check availability.
840         (add_new_function): Check availability.
841         (propagate): Output warnings.
842         (skip_function_for_local_pure_const): New function.
843         (local_pure_const): Use it; output warnings.
844         * common.opt (Wsuggest-attribute=const,
845         Wsuggest-attribute=pure): New.
846
847 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
848
849         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
850         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
851         or DW_CFA_def_cfa_offset{,_sf}.
852
853 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
854
855         * tree.h: Fix truncated long macros.
856
857 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
858
859         * collect2.c (TARGET_64BIT): Redefine to target's default.
860         * tlink.c: Likewise.
861         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
862         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
863         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
864         for underscoring __USER_LABEL_PREFIX__.
865         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
866         (SUB_LINK_ENTRY32): New.
867         (SUB_LINK_ENTRY64): New.
868         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
869         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
870         (SUB_LINK_ENTRY64): New.
871         (SUB_LINK_ENTRY): New.
872         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
873         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
874         x64 target is choosen.
875         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
876         * configure: Regenerated.
877         * configure.ac (leading-mingw64-underscores): Option added.
878
879 2010-04-27  Jan Hubicka  <jh@suse.cz>
880
881         * doc/invoke.texi (-fipa-profile): Document.
882         * opts.c (decode_options): Enable ipa-profile at -O1.
883         * timevar.def (TV_IPA_PROFILE): Define.
884         * common.opt (fipa-profile): Add.
885         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
886         flag for clones.
887         (cgraph_propagate_frequency): Handle only local ones.
888         * tree-pass.h (pass_ipa_profile): Declare.
889         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
890         (pass_ipa_profile): Use TV_IPA_PROFILE.
891         * ipa.c (ipa_profile): New function.
892         (gate_ipa_profile): Likewise.
893         (pass_ipa_profile): New global variable.
894         * passes.c (pass_ipa_profile): New.
895
896 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
897
898         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
899
900 2010-04-27  Martin Jambor  <mjambor@suse.cz>
901
902         PR middle-end/43812
903         * ipa.c (dissolve_same_comdat_group_list): New function.
904         (function_and_variable_visibility): Call
905         dissolve_same_comdat_group_list when comdat group contains external or
906         newly local nodes.
907         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
908         lists are circular and that they contain only DECL_ONE_ONLY nodes.
909
910 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
911
912         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
913         (const_hash_1) <VECTOR_CST>: New case.
914         (compare_constant) <VECTOR_CST>: Likewise.
915         <ADDR_EXPR>: Deal with LABEL_REFs.
916         (copy_constant) <VECTOR_CST>: New case.
917
918 2010-04-27  Jan Hubicka  <jh@suse.cz>
919
920         * cgraph.c (cgraph_propagate_frequency): New function.
921         * cgraph.h (cgraph_propagate_frequency): Declare.
922         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
923         cgraph_propagate_frequency.
924
925 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
926
927         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
928
929 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
930
931         PR target/40657
932         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
933         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
934         here to determine which regs to push and how much stack to reserve.
935
936 2010-04-27  Jie Zhang  <jie@codesourcery.com>
937
938         * doc/gimple.texi (gimple_statement_with_ops): Remove
939         addresses_taken field.
940         (gimple_statement_with_memory_ops): Likewise.
941
942 2010-04-27  Jan Hubicka  <jh@suse.cz>
943
944         * tree-inline.c (eni_inlining_weights): Remove.
945         (estimate_num_insns): Special case more builtins.
946
947 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
948
949         PR c/32207
950         * c-typeck.c (build_binary_op): Move forward check for comparison
951         pointer with null pointer constant and adjust the diagnostic message.
952
953 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
954
955         PR lto/42776
956         * configure.ac (gcc_cv_as_section_has_align): Set if installed
957         binutils supports extended .section directive needed by LTO, or
958         warn if older binutils found.
959         (LTO_BINARY_READER): New AC_SUBST'd variable.
960         (LTO_USE_LIBELF): Likewise.
961         * gcc/config.gcc (lto_binary_reader): New target-specific configure
962         variable.
963         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
964         (LTO_USE_LIBELF): Likewise.
965         * configure: Regenerate.
966
967         * collect2.c (is_elf): Rename from this ...
968         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
969          object files in addition to ELF-formatted ones.
970         (scan_prog_file): Caller updated.  Also allow for LTO info marker
971         symbol to be prefixed or not by an extra underscore.
972
973         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
974         * config/i386/winnt.c: Also #include lto-streamer.h
975         (i386_pe_asm_named_section): Specify 1-byte section alignment for
976         LTO named sections.
977         (i386_pe_asm_output_aligned_decl_common): Add comment.
978         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
979
980 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
981
982         PR target/43889
983         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
984         Add missing earlyclobber for second alternative.
985
986 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
987
988         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
989         bits for artificial defs at the top of the block.
990         * fwprop.c (single_def_use_enter_block): Don't call it.
991
992 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
993
994         PR 43715
995         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
996         instead of "$gcc_cv_objdump -T".
997         Use "-undefined dynamic_lookup" on darwin.
998         * gcc/configure: Regenerate.
999
1000 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1001
1002         PR c/43893
1003         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
1004
1005 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
1006
1007         * c-parser.c (struct c_token): Move location field up.
1008         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
1009         (struct c_declspecs): Convert typespec_word, storage_class, and
1010         default_int_p into bitfields.
1011         (struct c_declarator): Move loc field up.
1012
1013 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
1014
1015         * cfgloop.h (struct loop): Move can_be_parallel field up.
1016         * ipa-prop.h (struct ip_node_params): Move bitfields up.
1017         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
1018         down.
1019         (struct iv_cand): Convert pos field into a bitfield.
1020         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
1021         field up.
1022         (struct _stmt_vec_info): Shuffle fields for better packing.
1023
1024 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
1025
1026         * varasm.c (IN_NAMED_SECTION): Remove guard.
1027         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
1028         (IN_NAMED_SECTION_P): ...this.
1029         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
1030         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1031
1032 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
1033
1034         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
1035         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
1036         of shadowing it.  Fix comments.
1037
1038 2010-04-26  Jan Hubicka  <jh@suse.cz>
1039
1040         * cgraph.c (cgraph_create_node): Set node frequency to normal.
1041         (cgraph_clone_node): Copy function frequency.
1042         * cgraph.h (node_frequency): New enum
1043         (struct cgraph_node): Add.
1044         * final.c (rest_of_clean_state): Update.
1045         * lto-cgraph.c (lto_output_node): Output node frequency.
1046         (input_overwrite_node): Input node frequency.
1047         * tre-ssa-loop-ivopts (computation_cost): Update.
1048         * lto-streamer-out.c (output_function): Do not output function
1049         frequency.
1050         * predict.c (maybe_hot_frequency_p): Update and handle functions
1051         executed once.
1052         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
1053         attribute lookup.
1054         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
1055         (compute_function_frequency): Set noreturn functions to be executed
1056         once.
1057         (choose_function_section): Update.
1058         * lto-streamer-in.c (input_function): Do not input function frequency.
1059         * function.c (allocate_struct_function): Do not initialize function
1060         frequency.
1061         * function.h (function_frequency): Remove.
1062         (struct function): Remove function frequency.
1063         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
1064         (try_update): Update.
1065         * tree-inline.c (initialize_cfun): Do not update function frequency.
1066         * passes.c (pass_init_dump_file): Update.
1067         * i386.c (ix86_compute_frame_layout): Update.
1068         (ix86_pad_returns): Update.
1069
1070 2010-04-26  Jie Zhang  <jie@codesourcery.com>
1071
1072         PR tree-optimization/43833
1073         * tree-vrp.c (range_int_cst_p): New.
1074         (range_int_cst_singleton_p): New.
1075         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
1076         when both operands are constants.  Use range_int_cst_p in
1077         BIT_IOR_EXPR case.
1078
1079 2010-04-26  Jan Hubicka  <jh@suse.cz>
1080
1081         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
1082
1083 2010-04-26  Richard Guenther  <rguenther@suse.de>
1084
1085         PR lto/43080
1086         * gimple.c (gimple_decl_printable_name): Deal gracefully
1087         with a NULL DECL_NAME.
1088
1089 2010-04-26  Richard Guenther  <rguenther@suse.de>
1090
1091         PR lto/42425
1092         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
1093         if emitting debug information and it is either a function
1094         or a namespace decl.
1095
1096 2010-04-26  Ira Rosen  <irar@il.ibm.com>
1097
1098         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
1099         determine if the statement is vectorizable, and a macro to access it.
1100         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1101         Skip statements that can't be vectorized. If the analysis fails,
1102         mark the statement as unvectorizable if vectorizing basic block.
1103         (vect_compute_data_refs_alignment): Likewise.
1104         (vect_verify_datarefs_alignment): Skip statements marked as
1105         unvectorizable. Add print.
1106         (vect_analyze_group_access): Skip statements that can't be
1107         vectorized. If the analysis fails, mark the statement as
1108         unvectorizable if vectorizing basic block.
1109         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
1110         * tree-vect-stmts.c (vectorizable_store): Fix the number of
1111         generated stmts for SLP.
1112         (new_stmt_vec_info): Initialize the new field.
1113         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
1114         statements marked as unvectorizable.
1115
1116 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
1117
1118         * c-common.c (flag_isoc1x): New.
1119         (flag_isoc99): Update comment.
1120         * c-common.h (flag_isoc1x): New.
1121         (flag_isoc99): Update comment.
1122         * c-cppbuiltin.c (builtin_define_float_constants): Also define
1123         __<type>_DECIMAL_DIG__.
1124         * c-opts.c (set_std_c1x): New.
1125         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
1126         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
1127         * c.opt (-std=c1x, -std=gnu1x): New options.
1128         * doc/cpp.texi: Mention -std=c1x.
1129         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
1130         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
1131         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
1132         * doc/standards.texi: Mention C1X.
1133         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
1134         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
1135         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
1136         Define for C1X.
1137
1138 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
1139
1140         * config/i386/gmon-sol2.c (_mcleanup): Change format string
1141         placeholder from 0x%x to %#x.
1142         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
1143         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
1144         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
1145         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
1146         * config/i386/i386.c (ix86_target_string): Ditto.
1147         (output_pic_addr_const): Ditto.
1148         (print_operand): Ditto.
1149
1150 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
1151
1152         * combine.c (find_split_point): Add third argument.  Use it
1153         to find nested multiply-accumulate instructions.  Adjust calls.
1154         (try_combine): Adjust call to find_split_point.
1155
1156 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1157
1158         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
1159
1160 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
1161
1162         PR tree-optimization/41442
1163         * fold-const.c (merge_truthop_with_opposite_arm): New function.
1164         (fold_binary_loc): Call it.
1165
1166 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1167
1168         * toplev.c (general_init): Set default for fdiagnostics-show-option.
1169         * opts.c (common_handle_option): Allow disabling it.
1170         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
1171
1172 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
1173
1174         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
1175         between modes if both types are integral.
1176
1177 2010-04-23  Richard Guenther  <rguenther@suse.de>
1178
1179         PR tree-optimization/43572
1180         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
1181
1182 2010-04-23  Richard Guenther  <rguenther@suse.de>
1183
1184         PR lto/43455
1185         * tree-inline.c (tree_can_inline_p): Also check compatibility
1186         of return types.
1187
1188 2010-04-23  Martin Jambor  <mjambor@suse.cz>
1189
1190         PR tree-optimization/43846
1191         * tree-sra.c (struct access): New flag grp_assignment_read.
1192         (build_accesses_from_assign): Set grp_assignment_read.
1193         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
1194         (enum mark_read_status): New type.
1195         (analyze_access_subtree): Propagate grp_assignment_read, create
1196         accesses also if both direct_read and root->grp_assignment_read.
1197
1198 2010-04-23  Martin Jambor  <mjambor@suse.cz>
1199
1200         PR middle-end/43835
1201         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
1202         function does not have type attributes.
1203
1204 2010-04-23  Richard Guenther  <rguenther@suse.de>
1205
1206         PR lto/42653
1207         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
1208         of FUNCTION_DECLs.
1209
1210 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1211
1212         * sese.h (create_if_region_on_edge): Remove.
1213
1214         * sese.c (create_if_region_on_edge): Make static.
1215
1216         * tree-inline.c: Do not include ggc.h.
1217
1218         * expr.c: Do not include ggc.h.
1219
1220         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
1221         dependencies.
1222
1223 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
1224
1225         PR target/43744
1226         * config/sh/sh.c (find_barrier): Don't emit a constant pool
1227         in the middle of insns for casesi_worker_2.
1228
1229 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
1230
1231         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
1232
1233 2010-04-22  Ira Rosen  <irar@il.ibm.com>
1234
1235         PR tree-optimization/43842
1236         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
1237         loop unrolling in update of exit phis. Fix comment.
1238         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
1239         least two reduction statements in the loop before starting SLP
1240         analysis.
1241
1242 2010-04-22  Nick Clifton  <nickc@redhat.com>
1243
1244         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
1245
1246 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
1247
1248         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
1249         to simplify a + ~a.
1250
1251 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1252
1253         * tree-parloops.c (loop_parallel_p): New argument
1254         parloop_obstack.  Pass it down.
1255         (parallelize_loops): New variable parloop_obstack.  Initialize it,
1256         pass it down, free it.
1257
1258         * tree-loop-linear.c (linear_transform_loops): Pass down
1259         lambda_obstack.
1260
1261         * tree-data-ref.h (lambda_compute_access_matrices): New argument
1262         of type struct obstack *.
1263
1264         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
1265         scratch_obstack.  Initialize it, pass down, free it.
1266
1267         * lambda.h (lambda_loop_new): Remove.
1268         (lambda_matrix_new, lambda_matrix_inverse)
1269         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
1270         argument of type struct obstack *.
1271
1272         * lambda-trans.c (lambda_trans_matrix_new): New argument
1273         lambda_obstack.  Pass it down, use obstack allocation for ret.
1274         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
1275         it down.
1276
1277         * lambda-mat.c (lambda_matrix_get_column)
1278         (lambda_matrix_project_to_null): Remove.
1279         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
1280         allocation for mat.
1281         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
1282         lambda_obstack.
1283
1284         * lambda-code.c (lambda_loop_new): New function.
1285         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
1286         (lambda_compute_auxillary_space, lambda_compute_target_space)
1287         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
1288         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
1289         (build_access_matrix): New argument lambda_obstack.  Use obstack
1290         allocation for am.
1291         (lambda_compute_step_signs, lambda_compute_access_matrices): New
1292         argument lambda_obstack.  Pass it down.
1293
1294 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
1295
1296         * optabs.h (expand_widening_mult): Declare.
1297
1298 2010-04-22  Richard Guenther  <rguenther@suse.de>
1299
1300         PR tree-optimization/43845
1301         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
1302         lookup the CALL_EXPR function and arguments.
1303
1304 2010-04-22  Nick Clifton  <nickc@redhat.com>
1305
1306         * config/stormy16/stormy16.c
1307         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
1308         * config/stormy16/stormy16.h: Tidy up formatting.
1309         (DONT_USE_BUILTIN_SETJMP): Remove definition.
1310         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
1311         (ineqbranchsi): Delete pattern.
1312         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
1313         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
1314         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1315         stormy16-lib2-ucmpsi2.c.
1316
1317 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
1318
1319         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
1320         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
1321         extra set merge_set_noclobber, and use it to relax the final test
1322         slightly.
1323         * df.h (df_simulate_find_noclobber_defs): Declare.
1324         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
1325         conditional defs.
1326         (df_simulate_find_noclobber_defs): New function.
1327
1328 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
1329
1330         * config/i386/i386.md: Use {} around multi-line preparation statements.
1331
1332 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1333
1334         * c-tree.h (push_init_level, pop_init_level, set_init_index)
1335         (process_init_element): New argument of type struct obstack *.
1336
1337         * c-typeck.c (push_init_level, pop_init_level, set_designator)
1338         (set_init_index, set_init_label, set_nonincremental_init)
1339         (set_nonincremental_init_from_string, find_init_member)
1340         (output_init_element, output_pending_init_elements)
1341         (process_init_element): New argument braced_init_obstack.  Pass it
1342         down.
1343         (push_range_stack, add_pending_init): New argument
1344         braced_init_obstack.  Use obstack allocation.
1345
1346         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
1347         braced_init_obstack.  Pass it down.
1348         (c_parser_braced_init): New variables ret, braced_init_obstack.
1349         Initialize obstack, pass it down and finally free it.
1350
1351 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
1352
1353         PR middle-end/29274
1354         * tree-pass.h (pass_optimize_widening_mul): Declare.
1355         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
1356         gate_optimize_widening_mul): New static functions.
1357         (pass_optimize_widening_mul): New.
1358         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
1359         <case MULT_EXPR>: Remove support for widening multiplies.
1360         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
1361         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
1362         simplify_gen_unary rather than directly building extensions.
1363         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
1364         WIDEN_MULT_EXPR.
1365         * expmed.c (expand_widening_mult): New function.
1366         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
1367
1368 2010-04-21  Jan Hubicka  <jh@suse.cz>
1369
1370         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
1371         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
1372         * lto-wpa-fixup.c: Remove.
1373         * Makefile.in (lto-wpa-fixup.o): Remove.
1374         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
1375         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
1376         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
1377
1378 2010-04-21  Jan Hubicka  <jh@suse.cz>
1379
1380         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
1381         add write_optimization_summary, read_optimization_summary.
1382         (ipa_write_summaries_of_cgraph_node_set): Remove.
1383         (ipa_write_optimization_summaries): Declare.
1384         (ipa_read_optimization_summaries): Declare.
1385         * ipa-cp.c (pass_ipa_cp): Update.
1386         * ipa-reference.c (pass_ipa_reference): Update.
1387         * ipa-pure-const.c (pass_ipa_pure_const): Update.
1388         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
1389         Update.
1390         * ipa-inline.c (pass_ipa_inline): Update.
1391         * ipa.c (pass_ipa_whole_program): Update.
1392         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
1393         * passes.c (ipa_write_summaries_1): Do not test wpa.
1394         (ipa_write_optimization_summaries_1): New.
1395         (ipa_write_optimization_summaries): New.
1396         (ipa_read_summaries): Do not test ltrans.
1397         (ipa_read_optimization_summaries_1): New.
1398         (ipa_read_optimization_summaries): New.
1399
1400 2010-04-21  Jan Hubicka  <jh@suse.cz>
1401
1402         * lto-cgraph.c (lto_output_node): Do not output comdat groups
1403         for boundary nodes.
1404         (output_cgraph): Do not arrange comdat groups for boundary nodes.
1405
1406 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1407
1408         PR debug/40040
1409         * dwarf2out.c (add_name_and_src_coords_attributes): Add
1410         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
1411
1412 2010-04-21  Jan Hubicka  <jh@suse.cz>
1413
1414         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
1415
1416 2010-04-21  Jan Hubicka  <jh@suse.cz>
1417
1418         * varpool.c (decide_is_variable_needed): Variable is always needed
1419         during ltrans.
1420
1421 2010-04-21  Jan Hubicka  <jh@suse.cz>
1422
1423         * opts.c (decode_options): Enable pure-const pass for whopr.
1424
1425 2010-04-21  Jan Hubicka  <jh@suse.cz>
1426
1427         * cgraph.c (dump_cgraph_node): Dump also assembler name.
1428         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
1429         at WPA dumping.
1430         (cgraph_decide_inlining): Do not expect callee to be removed in all
1431         cases.
1432
1433 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
1434
1435         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
1436
1437 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
1438
1439         * config/i386/i386.md (x86_shrd): Add athlon_decode and
1440         amdfam10_decode attributes.
1441
1442 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1443
1444         PR middle-end/43570
1445         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
1446         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
1447         (lower_copyprivate_clauses): Use private var in outer
1448         context instead of original var.  Make sure the types
1449         are correct for VLAs.
1450
1451 2010-04-21  Richard Guenther  <rguenther@suse.de>
1452
1453         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
1454         to non-pointer objects.
1455
1456 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1457
1458         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
1459         last chain entry if it starts with the still current label.
1460         (add_location_or_const_value_attribute): Check that
1461         loc_list->first->next is NULL instead of comparing ->first with ->last.
1462         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
1463         to add_var_loc_to_decl.
1464
1465         * dwarf2out.c (output_call_frame_info): For dw_cie_version
1466         >= 4 add also address size and segment size fields into CIE header.
1467
1468         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
1469         long as address size is the same as sizeof (void *) and
1470         segment size is 0.
1471         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
1472         address size or segment size is unexpected, return DW_EH_PE_omit.
1473         (classify_object_over_fdes): If get_cie_encoding returned
1474         DW_EH_PE_omit, return -1.
1475         (init_object): If classify_object_over_fdes returned -1,
1476         pretend there were no FDEs at all.
1477
1478 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
1479
1480         * config/i386/i386.md (bswap<mode>2): Macroize expander from
1481         bswap{si,di}2 using SWI48 mode iterator.
1482         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
1483         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
1484         set modrm attribute of bswap insn to 0 and remove length attribute.
1485         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
1486         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
1487         set mode attribute to <MODE> and remove length attribute.
1488
1489 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
1490
1491         PR rtl-optimization/43520
1492         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
1493         zero available registers.
1494
1495 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1496
1497         * builtins.c (fold_builtin_cproj): Fold more cases.
1498
1499 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1500
1501         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
1502         (fold_builtin_1): Fold builtin cproj.
1503         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
1504         Use ATTR_CONST_NOTHROW_LIST.
1505
1506 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
1507
1508         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
1509         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
1510         ffsi2_no_cmove for !TARGET_CMOVE.
1511         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
1512         (ffssi2): Remove expander.
1513         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
1514         mode iterator.
1515         (ctz<mode>2): Ditto from ctz{si,di}2.
1516         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
1517         mode iterator.
1518         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
1519         mode iterator.
1520
1521 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1522
1523         * dwarf2out.c (AT_linkage_name): Define.
1524         (clone_as_declaration): Handle DW_AT_linkage_name.
1525         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
1526         of DW_AT_MIPS_linkage_name.
1527         (move_linkage_attr): Likewise.
1528         (dwarf2out_finish): Likewise.
1529
1530 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
1531
1532         PR middle-end/41952
1533         * fold-const.c (fold_comparison): New folding rule.
1534
1535 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
1536
1537         * double-int.h (double_int_setbit): Declare.
1538         * double-int.c (double_int_setbit): New function.
1539         * rtl.h (immed_double_int_const): Declare.
1540         * emit-rtl.c (immed_double_int_const): New function.
1541         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
1542         and immed_double_int_const functions.
1543         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
1544         expand_copysign_bit):  (Ditto.).
1545         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
1546         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
1547         * dojump.c (prefer_and_bit_test): (Ditto.).
1548         * expr.c (convert_modes, reduce_to_bit_field_precision,
1549         const_vector_from_tree): (Ditto.).
1550         * expmed.c (mask_rtx, lshift_value): (Ditto.).
1551
1552 2010-04-20  Jan Hubicka  <jh@suse.cz>
1553
1554         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
1555         (dump_cgraph_node): Dump new flags.
1556         * cgraph.h (struct cgraph_node): Add flags
1557         reachable_from_other_partition and in_other_partition.
1558         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
1559         other partition can not be removed.
1560         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
1561         the other partition must be output; silence sanity checking on
1562         leaking functions bodies from other paritition.
1563         * lto-cgraph.c (reachable_from_other_partition_p): New function.
1564         (lto_output_node): Output new flags; do not sanity check that inline
1565         clones are output; drop lto_forced_extern_inline_p code; do not mock
1566         visibility flags at partition boundaries.
1567         (add_node_to): New function.
1568         (output_cgraph): Use it to sort functions so masters appear before
1569         clones.
1570         (input_overwrite_node): Input new flags.
1571         * passes.c (ipa_write_summaries): Do not call
1572         lto_new_extern_inline_states.
1573         * lto-section-out.c (forced_extern_inline,
1574         lto_new_extern_inline_states lto_delete_extern_inline_states,
1575         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
1576         * lto-streamer.h (lto_new_extern_inline_states,
1577         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
1578         lto_forced_extern_inline_p): Kill.
1579
1580 2010-04-20  Richard Guenther  <rguenther@suse.de>
1581
1582         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
1583         from vars that can have pointers.
1584         (process_constraint): Dump useless constraints.
1585
1586 2010-04-20  Richard Guenther  <rguenther@suse.de>
1587
1588         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
1589         (dump_sa_points_to_info): Remove asserts.
1590         (init_base_vars): nothing_id isn't an escape point nor does it
1591         have pointers.
1592
1593 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1594
1595         * tree.h (TYPE_REF_IS_RVALUE): Define.
1596         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
1597         should_move_die_to_comdat, prune_unused_types_walk): Handle
1598         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
1599         (modified_type_die, gen_reference_type_die): Emit
1600         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
1601         if TYPE_REF_IS_RVALUE and -gdwarf-4.
1602
1603 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1604
1605         PR target/43635
1606         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
1607         calls for -fpic -m31 if they have been sibcall optimized.
1608
1609 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
1610
1611         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
1612         ar.lc fixed and call-used.
1613
1614         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
1615
1616 2010-04-19  Jan Hubicka  <jh@suse.cz>
1617
1618         * opts.c (decode_options): Disable whpr incompatible passes.
1619         * lto/lto.c (lto_1_to_1_map): Skip clones.
1620         (read_cgraph_and_symbols): Do not mark everything as needed.
1621         (do_whole_program_analysis): Do map only after optimizing;
1622         set proper cgraph_state; use passmanager.
1623
1624 2010-04-19  DJ Delorie  <dj@redhat.com>
1625
1626         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
1627         POINTER_PLUS_EXPR and fix them.
1628
1629 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
1630
1631         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
1632         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
1633         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
1634         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
1635         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
1636         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
1637         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
1638         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
1639         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
1640         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
1641         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
1642
1643 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1644
1645         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
1646         (check_cond_move_block): Likewise.
1647         (cond_move_process_if_block): Likewise.
1648         (noce_find_if_block): Improve formatting.
1649         (find_if_header): Pass 0 to memset and tweak conditions.
1650         (cond_exec_find_if_block): Fix long lines and tweak conditions.
1651
1652 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1653
1654         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
1655         for -gdwarf-4.
1656
1657         PR middle-end/43337
1658         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
1659         with non-local decl doesn't need chain.
1660
1661 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1662
1663         * ira-color.c (allocno_reload_assign): Avoid accumulating
1664         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1665
1666 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1667
1668         * gimple.h (create_tmp_reg): Declare.
1669         * gimplify.c (create_tmp_reg): New function.
1670         (gimplify_return_expr): Use create_tmp_reg.
1671         (gimplify_omp_atomic): Likewise.
1672         (gimple_regimplify_operands): Likewise.
1673         * tree-dfa.c (make_rename_temp): Likewise.
1674         * tree-predcom.c (predcom_tmp_var): Likewise.
1675         (reassociate_to_the_same_stmt): Likewise.
1676         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
1677         (get_replaced_param_substitute): Likewise.
1678         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1679         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1680         * tree-ssa-pre.c (get_representative_for): Likewise.
1681         (create_expression_by_pieces): Likewise.
1682         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1683         (create_tailcall_accumulator): Likewise.
1684
1685 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1686
1687         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
1688         new_stmt.
1689         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
1690
1691 2010-04-19  Richard Guenther  <rguenther@suse.de>
1692
1693         PR tree-optimization/43796
1694         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
1695         from SCEV in the lattice.
1696         (vrp_visit_phi_node): Dump change.
1697
1698 2010-04-19  Richard Guenther  <rguenther@suse.de>
1699
1700         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
1701         * configure: Re-generated.
1702
1703 2010-04-19  Richard Guenther  <rguenther@suse.de>
1704
1705         PR tree-optimization/43783
1706         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
1707         constant ARRAY_REF operands two and three if possible.
1708
1709 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
1710
1711         PR target/43766
1712         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
1713
1714 2010-04-19  Jie Zhang  <jie@codesourcery.com>
1715
1716         PR target/43662
1717         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
1718
1719 2010-04-19  Ira Rosen  <irar@il.ibm.com>
1720
1721         PR tree-optimization/37027
1722         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
1723         and macro to access it.
1724         (vectorizable_reduction): Add argument.
1725         (vect_get_slp_defs): Likewise.
1726         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
1727         statements for possible use in SLP.
1728         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
1729         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
1730         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
1731         add new argument.
1732         (vectorizable_reduction): Likewise.
1733         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
1734         vect_get_slp_defs.
1735         (vectorizable_type_demotion, vectorizable_type_promotion,
1736         vectorizable_store): Likewise.
1737         (vect_analyze_stmt): Update call to vectorizable_reduction.
1738         (vect_transform_stmt): Likewise.
1739         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
1740         (vect_build_slp_tree): Fix indentation. Check that there are no loads
1741         from different interleaving chains in same node.
1742         (vect_slp_rearrange_stmts): New function.
1743         (vect_supported_load_permutation_p): Allow load permutations for
1744         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
1745         inside SLP nodes if necessary.
1746         (vect_analyze_slp_instance): Handle reductions.
1747         (vect_analyze_slp): Try to build SLP instances originating from groups
1748         of reductions.
1749         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
1750         (vect_get_constant_vectors): Create initial vectors for reductions
1751         according to reduction code. Add new argument.
1752         (vect_get_slp_defs): Add new argument, pass it to
1753         vect_get_constant_vectors.
1754         (vect_schedule_slp_instance): Remove SLP tree root statements.
1755
1756 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1757
1758         * tree.h (ENUM_IS_SCOPED): Define.
1759         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
1760         for ENUM_IS_SCOPED enums.
1761
1762 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1763
1764         * fold-const.c (fold_comparison): Use ssizetype.
1765         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1766         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
1767         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
1768         * tree-object-size.c (compute_object_sizes): Use size_type_node.
1769
1770         * tree.h (initialize_sizetypes): Remove parameter.
1771         (build_common_tree_nodes): Remove second parameter.
1772         * stor-layout.c (initialize_sizetypes): Remove parameter.
1773         Always create an unsigned type.
1774         (set_sizetype): Assert that the passed type is unsigned and simplify.
1775         * tree.c (build_common_tree_nodes): Remove second parameter.
1776         Adjust call to initialize_sizetypes.
1777         * c-decl.c (c_init_decl_processing): Remove second argument in call to
1778         build_common_tree_nodes.
1779
1780 2010-04-18  Matthias Klose  <doko@ubuntu.com>
1781
1782         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
1783
1784 2010-04-18  Ira Rosen  <irar@il.ibm.com>
1785
1786         PR tree-optimization/43771
1787         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
1788         load permutation doesn't have gaps.
1789
1790 2010-04-18  Jan Hubicka  <jh@suse.cz>
1791
1792         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
1793         (sse_prologue_save_insn expander): Use new pattern.
1794         (sse_prologue_save_insn1): New pattern and splitter.
1795         (sse_prologue_save_insn): Update to deal also with 64bit aligned
1796         blocks.
1797         * i386.c (setup_incoming_varargs_64): Do not compute jump
1798         destination here.
1799         (ix86_gimplify_va_arg): Update alignment needed.
1800         (ix86_local_alignment): Do not align all local arrays to 128bit.
1801
1802 2010-04-17  Jan Hubicka  <jh@suse.cz>
1803
1804         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
1805
1806 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1807
1808         * arm.md (negdi2): Remove redundant code to force values into a
1809         register.
1810
1811 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1812
1813         * arm/bpabi.S: Add EABI alignment attributes to objects.
1814         * arm/bpabi-v6m.S: Likewise.
1815         * arm/crti.asm: Likewise.
1816         * arm/crtn.asm: Likewise.
1817         * arm/lib1funcs.asm: Likewise.
1818         * arm/libunwind.S: Likewise.
1819
1820 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1821
1822         * arm-protos.h (tune_params): New structure.
1823         * arm.c (current_tune): New variable.
1824         (arm_constant_limit): Delete.
1825         (struct processors): Add pointer to the tune parameters.
1826         (arm_slowmul_tune): New tuning option.
1827         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
1828         (all_cores): Adjust to pick up the tuning model.
1829         (arm_constant_limit): New function.
1830         (arm_override_options): Select the appropriate tuning model.  Delete
1831         initialization of arm_const_limit.
1832         (arm_split_constant): Use the new constant-limit model.
1833         (arm_rtx_costs): Pick up the current tuning model.
1834         * arm.md (is_strongarm, is_xscale): Delete.
1835         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
1836         for Xscale variant architectures.
1837         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
1838
1839 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1840
1841         * config/arm/arm.c (arm_gen_constant): Remove unused variable
1842         can_shift.
1843         (arm_rtx_costs_1): Remove unused variable extra_cost.
1844         (arm_unwind_emit_set): Use variable offset.
1845         (thumb1_output_casesi): Remove unused variable flags.
1846
1847 2010-04-16  Jeff Law  <law@redhat.com>
1848
1849         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
1850         needing assignment rather than doing a two-phase assignment.  Remove
1851         unused variable 'm'.
1852
1853 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1854
1855         PR bootstrap/43767
1856         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
1857
1858 2010-04-16  Doug Kwan  <dougkwan@google.com>
1859
1860         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
1861         (next_operand_entry_id): New static variable.
1862         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
1863         (add_to_ops_vec): Assigned unique ID to operand entry.
1864         (struct oecount_s): New field ID.
1865         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
1866         (undistribute_ops_list): Assign unique IDs to oecounts.
1867         (init_reassoc): reset next_operand_entry_id.
1868
1869 2010-04-16  Doug Kwan  <dougkwan@google.com>
1870
1871         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
1872         missing left parenthesis.
1873
1874 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
1875
1876         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
1877         *btdi_rex64 using SWI48 mode iterator.
1878         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
1879         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
1880         *jcc_btdi_mask_rex64.
1881
1882 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
1883
1884         * double-int.h (tree_to_double_int): Convert to macro.
1885         * double-int.c (tree_to_double_int): Remove.
1886
1887 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1888
1889         PR debug/43762
1890         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
1891         with want_address 2 and in case a single element list might be
1892         possible, call it again with want_address 0.
1893
1894 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1895
1896         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
1897         case 'W' print operands for HI mode.
1898         * config/h8300/h8300.h (Y0, Y2) : New constraints.
1899         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
1900         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
1901         * config/h8300/predicate.md (bit_register_indirect_operand): New.
1902
1903         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
1904
1905         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
1906         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
1907         #xx:3 and #xx:4 mode.
1908
1909         * config/h8300/h8300.md (inverted load with HImode dest): Add
1910         support for H8300SX.
1911
1912         * config/h8300/predicate.md (bit_operand): Allow immediate values that
1913         satisfy 'U' constraint.
1914
1915 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1916
1917         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
1918         * configure: Regenerate.
1919         * config.in: Regenerate.
1920         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
1921         works.
1922
1923 2010-04-16  Richard Guenther  <rguenther@suse.de>
1924
1925         * tree.h (struct tree_decl_minimal): Move pt_uid ...
1926         (struct tree_decl_common): ... here.
1927         (DECL_PT_UID): Adjust.
1928         (SET_DECL_PT_UID): Likewise.
1929         (DECL_PT_UID_SET_P): Likewise.
1930
1931 2010-04-16  Richard Guenther  <rguenther@suse.de>
1932
1933         PR tree-optimization/43572
1934         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
1935         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
1936         * tree-flow.h (is_call_clobbered): Remove.
1937         * tree-flow-inline.h (is_call_clobbered): Likewise.
1938         * tree-dfa.c (dump_variable): Do not dump call clobber state.
1939         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
1940         (execute_return_slot_opt): Adjust.
1941         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
1942         check for call clobbered vars here.
1943         (find_tail_calls): Move tailcall verification to the
1944         proper place.
1945
1946 2010-04-16  Diego Novillo  <dnovillo@google.com>
1947
1948         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
1949
1950 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1951
1952         PR target/40603
1953         * config/arm/arm.md (cbranchqi4): New pattern.
1954         * config/arm/predicates.md (const0_operand,
1955         cbranchqi4_comparison_operator): New predicates.
1956
1957 2010-04-16  Richard Guenther  <rguenther@suse.de>
1958
1959         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
1960         (dump_gimple_stmt): Likewise.
1961
1962 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1963
1964         * recog.h (struct recog_data): New field is_operator.
1965         (struct insn_operand_data): New field is_operator.
1966         * recog.c (extract_insn): Set recog_data.is_operator.
1967         * genoutput.c (output_operand_data): Emit code to set the
1968         is_operator field.
1969         * reload.c (find_reloads): Use it rather than testing for an
1970         empty constraint string.
1971
1972         PR target/41514
1973         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
1974         If the previous insn is a cbranchsi4_insn with the same arguments,
1975         omit the compare instruction.
1976
1977         * config/arm/arm.md (addsi3_cbranch): If destination is a high
1978         register, inputs must be low registers and we need a low register
1979         scratch.  Handle alternative 2 like alternative 3.
1980
1981 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1982
1983         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
1984         don't call get_addr on both.  If one expression is a VALUE and
1985         the other a REG, check VALUE's locs if the REG isn't among them.
1986
1987 2010-04-16  Christian Bruel  <christian.bruel@st.com>
1988
1989         * config/sh/sh.h (sh_frame_pointer_required): New function.
1990         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
1991         (flag_omit_frame_pointer) Set.
1992         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
1993         (rounded_frame_size): Adjust size with outgoing_args_size.
1994         (sh_set_return_address): Must return from stack pointer.
1995         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
1996         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1997         (ACCUMULATE_OUTGOING_ARGS): Define.
1998         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
1999         * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
2000
2001 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2002
2003         PR target/43471
2004         * config/sh/sh.c (sh_legitimize_reload_address): Use
2005         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
2006         Remove a unneeded check for offset_base.
2007
2008 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
2009
2010         * configure: Regenerated.
2011
2012 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2013
2014         * config/s390/s390.c (s390_call_save_register_used): Switch back
2015         to HARD_REGNO_NREGS.
2016
2017 2010-04-15  Richard Guenther  <rguenther@suse.de>
2018
2019         * alias.c (alias_set_subset_of): Handle alias-set zero
2020         child properly.
2021
2022 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
2023             Julian Brown  <julian@codesourcery.com>
2024
2025         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
2026         alternatives according to use of high and low regs.
2027         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2028         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
2029         optimizing for size on Thumb-2.
2030
2031 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
2032
2033         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
2034
2035 2010-04-15  Richard Guenther  <rguenther@suse.de>
2036
2037         * tree-ssa-structalias.c (struct variable_info): Add
2038         is_fn_info flag.
2039         (new_var_info): Initialize it.
2040         (dump_constraints): Support printing last added constraints.
2041         (debug_constraints): Adjust.
2042         (dump_constraint_graph): Likewise.
2043         (make_heapvar_for): Check for NULL cfun.
2044         (get_function_part_constraint): New function.
2045         (get_fi_for_callee): Likewise.
2046         (find_func_aliases): Properly implement IPA PTA constraints.
2047         (process_ipa_clobber): New function.
2048         (find_func_clobbers): Likewise.
2049         (insert_into_field_list_sorted): Remove.
2050         (create_function_info_for): Properly allocate vars for IPA mode.
2051         Do not use insert_into_field_list_sorted.
2052         (create_variable_info_for): Properly generate constraints for
2053         global vars in IPA mode.
2054         (dump_solution_for_var): Always dump the solution.
2055         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
2056         (find_what_var_points_to): Adjust.
2057         (pt_solution_set): Change.
2058         (pt_solution_ior_into): New function.
2059         (pt_solution_empty_p): Export.
2060         (pt_solution_includes_global): Adjust.
2061         (pt_solution_includes_1): Likewise.
2062         (pt_solutions_intersect_1): Likewise.
2063         (dump_sa_points_to_info): Check some invariants.
2064         (solve_constraints): Move constraint dumping ...
2065         (compute_points_to_sets): ... here.
2066         (ipa_pta_execute): ... and here.
2067         (compute_may_aliases): Do not re-compute points-to info
2068         locally if IPA info is available.
2069         (ipa_escaped_pt): New global var.
2070         (ipa_pta_execute): Properly implement IPA PTA.
2071         * tree-into-ssa.c (dump_decl_set): Support dumping
2072         decls not in referenced-vars.
2073         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
2074         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
2075         (dump_points_to_solution): Likewise.
2076         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
2077         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
2078         (remap_gimple_stmt): Reset call clobber/use information if necessary.
2079         (copy_decl_to_var): Copy DECL_PT_UID.
2080         (copy_result_decl_to_var): Likewise.
2081         * tree.c (make_node_stat): Initialize DECL_PT_UID.
2082         (copy_node_stat): Copy it.
2083         * tree.h (DECL_PT_UID): New macro.
2084         (SET_DECL_PT_UID): Likewise.
2085         (DECL_PT_UID_SET_P): Likewise.
2086         (struct tree_decl_minimal): Add pt_uid member.
2087         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
2088         (pt_solution_empty_p): Declare.
2089         (pt_solution_set): Adjust.
2090         (ipa_escaped_pt): Declare.
2091         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
2092         * gimple-pretty-print.c (pp_points_to_solution): New function.
2093         (dump_gimple_call): Dump call clobber/use information.
2094         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
2095         * tree-pass.h (TDF_ALIAS): New dump option.
2096         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
2097         * doc/invoke.texi (-fipa-pta): Update documentation.
2098
2099 2010-04-15  Richard Guenther  <rguenther@suse.de>
2100
2101         * Makefile.in (OBJS-common): Add gimple-fold.o.
2102         (gimple-fold.o): New rule.
2103         * tree.h (maybe_fold_offset_to_reference,
2104         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
2105         prototypes ...
2106         * gimple.h: ... here.
2107         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
2108         may_propagate_address_into_dereference): Move prototypes ...
2109         * gimple.h: ... here.
2110         * tree-ssa-ccp.c (get_symbol_constant_value,
2111         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
2112         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
2113         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
2114         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
2115         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
2116         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
2117         gimplify_and_update_call_from_tree): Move ...
2118         * gimple-fold.c: ... here.  New file.
2119         (ccp_fold_builtin): Rename to ...
2120         (gimple_fold_builtin): ... this.
2121         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
2122
2123 2010-04-15  Richard Guenther  <rguenther@suse.de>
2124
2125         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
2126         fit_double_type, force_fit_type_double, add_double_with_sign,
2127         neg_double, mul_double_with_sign, lshift_double, rshift_double,
2128         lrotate_double, rrotate_double, div_and_round_double): Move ...
2129         * double-int.c: ... here.
2130         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
2131         add_double, neg_double, mul_double_with_sign, mul_double,
2132         lshift_double, rshift_double, lrotate_double, rrotate_double,
2133         div_and_round_double): Move prototypes ...
2134         * double-int.h: ... here.
2135
2136 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
2137
2138         PR target/43742
2139         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
2140         matching constraints to ensure inputs match the output.
2141
2142 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2143
2144         PR target/43742
2145         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
2146         in an input-only operand.
2147
2148 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
2149
2150         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
2151         (double_int_not, double_int_lshift, double_int_rshift): Declare.
2152         (double_int_negative_p): Convert to static inline function.
2153         * double-int.c (double_int_lshift, double_int_lshift): New functions.
2154         (double_int_negative_p): Remove.
2155         * tree.h (lshift_double, rshift_double):
2156         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
2157         * fold-const.c (fold_convert_const_int_from_real,
2158         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
2159         (lshift_double): Change type of arith argument to bool.
2160         (rshift_double): Change type of arith argument to bool. Correct
2161         comment.
2162         * expmed.c (mask_rtx, lshift_value): (Ditto.).
2163
2164 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
2165
2166         PR target/21803
2167         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
2168         at the start and end of the then/else blocks, and omit them from the
2169         conversion.
2170         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
2171         argument; all callers changed.  Pass zero to old_insns_match_p instead.
2172         (flow_find_head_matching_sequence): New function.
2173         (old_insns_match_p): Check REG_EH_REGION notes for calls.
2174         * basic-block.h (flow_find_cross_jump,
2175         flow_find_head_matching_sequence): Declare functions.
2176
2177 2010-04-14  Jason Merrill  <jason@redhat.com>
2178
2179         PR c++/36625
2180         * c-common.c (attribute_takes_identifier_p): New fn.
2181         * c-common.h: Declare it.
2182
2183 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2184
2185         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
2186         splitter condition.
2187         (*udivmod<mode>4): Ditto.
2188
2189 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2190
2191         * config/i386/i386.md (maxmin_int): Rename code attribute from
2192         maxminiprefix and update all users.
2193         (maxmin_float): Ditto from maxminfprefix.
2194         (logic): Ditto from logicprefix.
2195         (absneg_mnemonic): Ditto from absnegprefix.
2196         * config/i386/mmx.md: Update all users of maxminiprefix,
2197         maxminfprefix and logicprefix for rename.
2198         * config/i386/sse.md: Ditto.
2199         * config/i386/sync.md (sync_<code><mode>): Update for
2200         logicprefix rename.
2201
2202 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2203
2204         PR 42966
2205         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
2206         warnings converted to errors.
2207
2208 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2209
2210         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
2211         used insn_type variable.
2212         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
2213         to avoid set-but-not-used warning.
2214
2215 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2216
2217         * df-core.c (df_ref_debug): Change format string placeholder
2218         from 0x%x to %#x.
2219         * dwarf2asm.c (dw2_asm_output_data_raw,
2220         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
2221         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
2222         * dwarf2out.c (output_cfi, output_cfi_directive,
2223         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
2224         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
2225         Ditto.
2226         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
2227         * print-rtl.c (print_rtx): Ditto.
2228
2229 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2230
2231         PR middle-end/42694
2232         * builtins.c (expand_builtin_pow_root): New function to expand pow
2233         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
2234         series of sqrt and cbrt calls under -ffast-math.
2235         (expand_builtin_pow): Call it.
2236
2237 2010-04-14  Michael Matz  <matz@suse.de>
2238
2239         PR tree-optimization/42963
2240         * tree-cfg.c (touched_switch_bbs): New static variable.
2241         (group_case_labels_stmt): New function broken out from ...
2242         (group_case_labels): ... here, use the above.
2243         (start_recording_case_labels): Allocate touched_switch_bbs.
2244         (end_recording_case_labels): Deallocate it, call
2245         group_case_labels_stmt.
2246         (gimple_redirect_edge_and_branch): Remember index of affected BB.
2247
2248 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2249
2250         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
2251         from insn template.
2252
2253 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2254
2255         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
2256
2257 2010-04-13  Jan Hubicka  <jh@suse.cz>
2258
2259         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
2260         of optimized out static functions.
2261         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
2262         cost computation.  Also sanity check for overflows.
2263         (update_caller_keys): Update cgraph_edge_badness call; properly
2264         update fibheap and sanity check that it is up to date.
2265         (add_new_edges_to_heap): Update cgraph_edge_badness.
2266         (cgraph_decide_inlining_of_small_function): Likewise;
2267         add sanity checking that badness in heap is up to date;
2268         improve dumping of reason; Update badness of calls to the
2269         offline copy of function currently inlined; dump badness
2270         of functions not inlined because of unit growth limits.
2271
2272 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
2273
2274         PR middle-end/32628
2275         * c-common.c (pointer_int_sum): Disregard overflow that occured only
2276         because of sign-extension change when converting to sizetype here...
2277         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
2278
2279         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
2280         the folding to constants.  Remove redundant final conversion.
2281         (fold_binary) <associate>: Do not associate if the re-association of
2282         constants alone overflows.
2283         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
2284         to the end of the list.
2285         (multiple_of_p) <COND_EXPR>: New case.
2286
2287 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2288
2289         * opt-functions.awk (opt_sanitized_name): New.
2290         (opt_enum): New.
2291         * optc-gen.awk: Use it
2292         * opth-gen.awk: Use it.
2293
2294 2010-04-13  Martin Jambor  <mjambor@suse.cz>
2295
2296         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
2297         (sra_modify_assign): Delete stmts loading dead data even if racc has no
2298         children.  Call replace_uses_with_default_def_ssa_name to handle
2299         SSA_NAES on lhs.
2300
2301 2010-04-13  Michael Matz  <matz@suse.de>
2302
2303         PR middle-end/43730
2304         * builtins.c (expand_builtin_interclass_mathfn): Also create
2305         a register if the predicate doesn't match.
2306
2307 2010-04-13  Diego Novillo  <dnovillo@google.com>
2308
2309         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
2310         * c-pch.c: Include timevar.h.
2311         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
2312         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
2313         * ggc-common.c: Include timevar.h.
2314         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
2315         * timevar.def (TV_PCH_SAVE): Define.
2316         (TV_PCH_CPP_SAVE): Define.
2317         (TV_PCH_PTR_REALLOC): Define.
2318         (TV_PCH_PTR_SORT): Define.
2319         (TV_PCH_RESTORE): Define.
2320         (TV_PCH_CPP_RESTORE): Define.
2321
2322 2010-04-13  Michael Matz  <matz@suse.de>
2323
2324         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
2325         into MINUS_EXPRs.
2326         (can_reassociate_p): New function.
2327         (break_up_subtract_bb, reassociate_bb): Use it.
2328
2329 2010-04-13  Richard Guenther  <rguenther@suse.de>
2330
2331         PR bootstrap/43737
2332         * builtins.c (c_readstr): Fix assert.
2333
2334 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
2335
2336         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
2337         when generating cltd insn.
2338
2339         (*ashl<mode>3_1): Remove special handling for register operand 2.
2340         (*ashlsi3_1_zext): Ditto.
2341         (*ashlhi3_1): Ditto.
2342         (*ashlhi3_1_lea): Ditto.
2343         (*ashlqi3_1): Ditto.
2344         (*ashlqi3_1_lea): Ditto.
2345         (*<shiftrt_insn><mode>3_1): Ditto.
2346         (*<shiftrt_insn>si3_1_zext): Ditto.
2347         (*<shiftrt_insn>qi3_1_slp): Ditto.
2348         (*<rotate_insn><mode>3_1): Ditto.
2349         (*<rotate_insn>si3_1_zext): Ditto.
2350         (*<rotate_insn>qi3_1_slp): Ditto.
2351
2352 2010-04-13  Richard Guenther  <rguenther@suse.de>
2353
2354         * tree-ssa-structalias.c (callused_id): Remove.
2355         (call_stmt_vars): New.
2356         (get_call_vi): Likewise.
2357         (lookup_call_use_vi): Likewise.
2358         (lookup_call_clobber_vi): Likewise.
2359         (get_call_use_vi): Likewise.
2360         (get_call_clobber_vi): Likewise.
2361         (make_transitive_closure_constraints): Likewise.
2362         (handle_const_call): Adjust to do per-call call-used handling.
2363         (handle_pure_call): Likewise.
2364         (find_what_var_points_to): Remove general callused handling.
2365         (init_base_vars): Likewise.
2366         (init_alias_vars): Initialize call_stmt_vars.
2367         (compute_points_to_sets): Process call-used and call-clobbered
2368         vars for call statements.
2369         (delete_points_to_sets): Free call_stmt_vars.
2370
2371 2010-04-13  Richard Guenther  <rguenther@suse.de>
2372
2373         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2374         Only add RW dependence for dependence distance zero.
2375         Adjust maximal vectorization factor according to dependences.
2376         Move alignment handling ...
2377         (vect_find_same_alignment_drs): ... here.  New function.
2378         (vect_analyze_data_ref_dependences): Adjust.
2379         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
2380         (vect_analyze_data_refs): Adjust minimal vectorization factor
2381         according to data references.
2382         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
2383         dependences before determining the vectorization factor.
2384         Analyze alignment after determining the vectorization factor.
2385         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
2386         dependences before alignment.
2387         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
2388         Adjust prototype.
2389         (vect_analyze_data_refs): Likewise.
2390         (MAX_VECTORIZATION_FACTOR): New define.
2391
2392 2010-04-13  Duncan Sands  <baldrick@free.fr>
2393
2394         * except.h (lang_eh_type_covers): Remove.
2395         * except.c (lang_eh_type_covers): Likewise.
2396
2397 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2398             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2399
2400         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
2401         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
2402         UNITS_PER_LONG where it is ABI relevant.
2403         (s390_return_addr_rtx): Likewise.
2404         (s390_back_chain_rtx): Likewise.
2405         (s390_frame_area): Likewise.
2406         (s390_frame_info): Likewise.
2407         (s390_initial_elimination_offset): Likewise.
2408         (save_gprs): Likewise.
2409         (s390_emit_prologue): Likewise.
2410         (s390_emit_epilogue): Likewise.
2411         (s390_function_arg_advance): Likewise.
2412         (s390_function_arg): Likewise.
2413         (s390_va_start): Likewise.
2414         (s390_gimplify_va_arg): Likewise.
2415         (s390_function_profiler): Likewise.
2416         (s390_optimize_prologue): Likewise.
2417         (s390_rtx_costs): Likewise.
2418         (s390_secondary_reload): Likewise.
2419         (s390_promote_function_mode): Likewise.
2420         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
2421         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
2422         registers available.
2423         (s390_unwind_word_mode): New function.
2424         (s390_function_value): Split 64 bit values into register pair if
2425         used as return value.
2426         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
2427         function call parameters.  Handle parallels.
2428         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
2429         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
2430         (DWARF_CIE_DATA_ALIGNMENT): New macro.
2431         (s390_expand_setmem): Remove unused variable src_addr.
2432         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
2433         deal with 64 bit registers.
2434         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
2435         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
2436         (UNITS_PER_LONG): New macro.
2437         * libjava/include/s390-signal.h: Define extended ucontext
2438         structure containing the upper halfs of the 64 bit registers.
2439
2440 2010-04-13  Simon Baldwin  <simonb@google.com>
2441
2442         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
2443
2444 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
2445
2446         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
2447         rvalue on the RHS if the LHS is of a non-renamable type.
2448         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
2449
2450 2010-04-13  Matthias Klose  <doko@ubuntu.com>
2451
2452         * gcc.c (cc1_options): Handle -iplugindir before processing
2453         the cc1 spec. Only add -iplugindir once.
2454         (cpp_unique_options): Add -iplugindir option if -fplugin* options
2455         found.
2456         * common.opt (iplugindir): Remove `Separate' property, initialize.
2457         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
2458         option.
2459         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
2460         (distclean): Remove plugin dir.
2461         * doc/invoke.texi: Document -iplugindir.
2462
2463 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
2464
2465         * doc/plugins.texi (Loading Plugins): Document short
2466         -fplugin=foo option.
2467         (Plugin API): Mention default_plugin_dir_name function.
2468
2469         * gcc.c (find_file_spec_function): Add new declaration.
2470         (static_spec_func): Use it for "find-file".
2471         (find_file_spec_function): Add new function.
2472         (cc1_options): Add -iplugindir option if -fplugin* options found.
2473
2474         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
2475
2476         * plugin.c (add_new_plugin): Updated comment, and handle short
2477         plugin name.
2478         (default_plugin_dir_name): Added new function.
2479
2480         * common.opt (iplugindir): New option to set the plugin directory.
2481
2482 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
2483
2484         * config/i386/i386.md (any_rotate): New code iterator.
2485         (rotate_insn): New code attribute.
2486         (rotate): Ditto.
2487         (SWIM124): New mode iterator.
2488         (<rotate_insn>ti3): New expander.
2489         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
2490         any_rotate code iterator.
2491         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
2492         using any_rotate code iterator and SWIM124 mode iterator.
2493         (ix86_rotlti3): New insn_and_split pattern.
2494         (ix86_rotrti3): Ditto.
2495         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
2496         ix86_rotl{di,ti}3 patterns.
2497         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
2498         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
2499         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
2500         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
2501         code iterator and SWI mode iterator.
2502         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
2503         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
2504         code iterator.
2505         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
2506         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
2507         (bswap rotatert splitter): Add splitter.
2508         (bswap splitter): Macroize splitter using any_rotate code iterator.
2509         Add insn predicate to split only for TARGET_USE_XCHGB or when
2510         optimizing function for size.
2511
2512 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2513
2514         * config/pa/pa.c (emit_move_sequence): Remove use of
2515         deleted variable flag_argument_noalias.
2516
2517 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2518
2519         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
2520         configurations.
2521         Add to unsupported targets list.
2522         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
2523         sparc*-sun-solaris2.[567]* from target lists.
2524         * configure: Regenerate.
2525         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
2526         removal.
2527         Remove Solaris 7 patch references.
2528         (Specific, sparc-sun-solaris2.7): Removed.
2529         (sparc-sun-solaris2*): Update Solaris 7 example.
2530         (sparc64-*-solaris2*): Likewise.
2531
2532 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2533
2534         * config.build (alpha*-dec-osf4*): Remove.
2535         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
2536         of obsolete configurations.
2537         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
2538         support.
2539         * config/alpha/t-osf4: Renamed to ...
2540         * config/alpha/t-osf5: ... this.
2541         * config/alpha/osf.h: Renamed to ...
2542         * config/alpha/osf5.h: ... this.
2543         Merged old osf5.h contents.
2544         Update comments.
2545         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
2546         (EXTRA_SPECS): Removed.
2547         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
2548         reflect removal of Tru64 UNIX V4.0/V5.0 support.
2549         Document that.
2550
2551 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2552
2553         * doc/contrib.texi (Contributors, Rainer Orth): Update.
2554
2555 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
2556
2557         PR/43702
2558         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
2559         __thiscall convention.
2560
2561 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2562
2563         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
2564         orig_base.
2565         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
2566
2567 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2568
2569         * function.c (assign_parms_initialize_all): Add unused attribute
2570         to fntype.
2571
2572 2010-04-12  Richard Guenther  <rguenther@suse.de>
2573
2574         * gsstruct.def (GSS_CALL): New.
2575         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
2576         * gimple.h: Include tree-ssa-alias.h.
2577         (struct gimple_statement_call): New.
2578         (union gimple_statement_struct_d): Add gimple_call member.
2579         (gimple_call_reset_alias_info): Declare.
2580         (gimple_call_use_set): New function.
2581         (gimple_call_clobber_set): Likewise.
2582         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
2583         * gimple.c (gimple_call_reset_alias_info): New function.
2584         (gimple_build_call_1): Call it.
2585         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2586         * tree-inline.c (remap_gimple_stmt): Likewise.
2587         (expand_call_inline): Remove callused handling.
2588         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
2589         * tree-dfa.c (dump_variable): Likewise.
2590         * tree-parloops.c (parallelize_loops): Likewise.
2591         * tree-ssa.c (init_tree_ssa): Likewise.
2592         (delete_tree_ssa): Likewise.
2593         * tree-flow-inline.h (is_call_used): Remove.
2594         * tree-flow.h (struct gimple_df): Remove callused member.
2595         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
2596         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
2597         (ref_maybe_used_by_call_p_1): Simplify.
2598         (call_may_clobber_ref_p_1): Likewise.
2599         * tree-ssa-structalias.c (compute_points_to_sets): Set
2600         the call stmt used and clobbered sets.
2601         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
2602         (find_tail_calls): Verify the tail call.
2603
2604 2010-04-12  Richard Guenther  <rguenther@suse.de>
2605
2606         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
2607         single-iteration always-inline inlining.
2608         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
2609         (cgraph_decide_inlining): Do not handle always-inline specially.
2610         (try_inline): Remove always-inline cycle detection special case.
2611         Do not recurse on always-inlines.
2612         (cgraph_early_inlining): Do not iterate if not optimizing.
2613         (cgraph_gate_early_inlining): remove.
2614         (pass_early_inline): Run unconditionally.
2615         (gate_cgraph_decide_inlining): New function.
2616         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
2617         not inlining or optimizing.
2618         (cgraph_decide_inlining_of_small_functions): Also consider
2619         always-inline functions.
2620         (cgraph_default_inline_p): Return true for nodes which should
2621         disregard inline limits.
2622         (estimate_function_body_sizes): Assume zero size and time for
2623         nodes which are marked as disregarding inline limits.
2624         (cgraph_decide_recursive_inlining): Do not perform recursive
2625         inlining on always-inline nodes.
2626
2627 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
2628
2629         PR bootstrap/43699
2630         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
2631         for exprs satisfying handled_component_p.
2632
2633 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2634
2635         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
2636         non-constant aggregate elements.
2637
2638         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
2639         is a real initialization.
2640
2641 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
2642
2643         PR c/36774
2644         * c-decl.c (start_function): Move forward check for nested function.
2645
2646 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2647
2648         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
2649         * config/sh/sh.c: Include reload.h.
2650         (sh_legitimize_reload_address): New.
2651         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
2652         sh_legitimize_reload_address.
2653
2654 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2655
2656         * config/sh/sh.md (*movqi_pop): New insn pattern.
2657         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
2658
2659 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2660
2661         * config/i386/i386.md (any_shiftrt): New code iterator.
2662         (shiftrt_insn): New code attribute.
2663         (shiftrt): Ditto.
2664         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
2665         using any_shiftrt code iterator.
2666         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
2667         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
2668         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
2669         pattern from corresponding peephole2 patterns.
2670         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
2671         using any_shiftrt code iterator.
2672         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
2673         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
2674         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
2675         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
2676         *{ashr,lshr}<mode>3_cmp_zext.
2677         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
2678
2679 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2680
2681         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
2682         scratch register.
2683         (*lshr<mode>3_cconly): Ditto.
2684
2685 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2686
2687         * config/i386/i386.md (lshr<mode>3): Macroize expander from
2688         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2689         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2690         pattern from *lshr{di,ti}3_1 and corresponding splitters using
2691         DWI mode iterator.
2692         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2693         from corresponding peephole2 patterns.
2694         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
2695         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
2696         and *lshrdi3_1_rex64 using SWI mode iterator.
2697         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
2698         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
2699         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
2700         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
2701         and *lshrdi3_cmp_rex64 using SWI mode iterator.
2702         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
2703         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
2704         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
2705         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
2706         SWI mode iterator.
2707
2708 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
2709
2710         * config/i386/i386.md (ashr<mode>3): Macroize expander from
2711         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2712         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2713         pattern from *ashr{di,ti}3_1 and corresponding splitters using
2714         DWI mode iterator.
2715         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2716         from corresponding peephole2 patterns.
2717         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
2718         (ashrsi3_cvt): Rename from ashrsi3_31.
2719         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
2720         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
2721         and x86_64_shift_adj_3 using SWI48 mode iterator.
2722         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
2723         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
2724         and *ashrdi3_1_rex64 using SWI mode iterator.
2725         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
2726         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
2727         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
2728         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
2729         and *ashrdi3_cmp_rex64 using SWI mode iterator.
2730         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
2731         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
2732         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
2733         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
2734         SWI mode iterator.
2735         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
2736         * config/i386/i386.c (ix86_split_ashr): Update for renamed
2737         x86_shift<mode>_adj_3 expanders.
2738
2739 2010-04-10  Wei Guozhi  <carrot@google.com>
2740
2741         PR target/42601
2742         * config/arm/arm.c (arm_pic_static_addr): New function.
2743         (legitimize_pic_address): Call arm_pic_static_addr when it detects
2744         a static symbol.
2745         (arm_output_addr_const_extra): Output expression for new pattern.
2746         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
2747
2748 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
2749
2750         * ira-costs.c (record_reg_classes): Ignore alternatives that are
2751         not enabled.
2752
2753         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
2754         * web.c: Include "insn-config.h" and "recog.h".
2755         (union_match_dups): New function.
2756         (web_main): Call it.
2757         (union_defs): Don't try to recognize match_dups.
2758
2759         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
2760         if doing so would replace the entire pattern.
2761
2762 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2763
2764         PR target/43707
2765         PR target/43709
2766         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
2767         and splitter pattern.  Change splitter operand 1 predicate to
2768         nonmemory_operand.
2769
2770 2010-04-09  Martin Jambor  <mjambor@suse.cz>
2771
2772         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
2773         lattices are addresses of CONST_DECLs with the same initial value.
2774         (ipcp_print_all_lattices): Print values of CONST_DECLs.
2775         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
2776
2777 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2778             Bernd Schmidt  <bernds@codesourcery.com>
2779
2780         * loop-invariant.c (replace_uses): New static function.
2781         (move_invariant_reg): Use it to ensure we can replace the uses.
2782
2783 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2784
2785         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
2786         function template.
2787         (picochip_override_options): Enable section anchors only above -O1.
2788         (picochip_reorg): Fixed a couple of build warnings.
2789
2790 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2791
2792         * configure.ac (plugin -rdynamic test): Log result.
2793         * configure: Regenerate.
2794         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
2795         (RDYNAMIC_SPEC): Define.
2796         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
2797
2798 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2799
2800         * configure.ac: Determine Sun ld version numbers.
2801         (comdat_group): Restrict GNU ld version checks to gld.
2802         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
2803         (enable_comdat): Support --enable-comdat.
2804         * configure: Regenerate.
2805         * doc/install.texi (Configuration): Document --enable-comdat.
2806
2807 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2808
2809         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
2810         * config/sol2-gld.h: ... here.
2811         * config.gcc (sparc*-*-solaris2*): Reflect this.
2812         (i[34567]86-*-solaris2*): Use it.
2813
2814 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
2815
2816         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
2817         setup_clocks_p.
2818         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
2819
2820 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2821
2822         PR 42965
2823         * diagnostic.c (diagnostic_initialize): Initialize
2824         some_warnings_are_errors.
2825         (diagnostic_finish): New.
2826         (diagnostic_action_after_output): Call it before exiting.
2827         (diagnostic_report_diagnostic): Do not print message here. Set
2828         some_warnings_are_errors.
2829         * diagnostic.h (diagnostic_context): Delete
2830         issue_warnings_are_errors_message. Add some_warnings_are_errors.
2831         (diagnostic_finish): Declare.
2832         * toplev.c (toplev_main): Call it before exit.
2833
2834 2010-04-09  Jason Merrill  <jason@redhat.com>
2835
2836         PR c++/42623
2837         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
2838         for incomplete type.
2839
2840         PR c++/41788
2841         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
2842         based on a warning flag.
2843
2844 2010-04-09  Richard Guenther  <rguenther@suse.de>
2845
2846         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
2847
2848 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
2849
2850         PR bootstrap/43684
2851         * varasm.c (default_assemble_visibility): Wrap vars that are
2852         set, but unused, by targets without GAS.
2853         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
2854         Remove set, but unused, vars.
2855         (rs6000_legitimize_tls_address): Likewise.
2856         (altivec_expand_dst_builtin): Likewise.
2857         * config/darwin.c (machopic_classify_symbol): Likewise.
2858         (machopic_indirection_name): Likewise.
2859
2860 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2861
2862         * config/i386/i386.md (DWI): New mode iterator.
2863         (S): New mode attribute.
2864         (shift_operand): Ditto.
2865         (shift_immediate_operand): Ditto.
2866         (ashl_input_operand): Ditto.
2867         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
2868         using SDWIM mode iterator.
2869         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2870         pattern from *ashl{di,ti}3_1 and corresponding splitters using
2871         DWI mode iterator.
2872         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
2873         from corresponding peephole2 patterns.
2874         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
2875         and x86_64_shift_adj_1 using SWI48 mode iterator.
2876         (x86_shift<mode>_adj_2): Ditto.
2877         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
2878         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
2879         using SWI48 mode iterator.
2880         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
2881         *ashldi3_cmp_rex64 using SWI mode iterator.
2882         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
2883         *ashldi3_cconly_rex64 using SWI mode iterator.
2884         * config/i386/i386.c (ix86_split_ashl): Update for renamed
2885         x86_shift<mode>_adj_{1,2}.
2886         (ix86_split_ashr): Ditto.
2887         (ix86_split_lshr): Ditto.
2888
2889 2010-04-09  Richard Guenther  <rguenther@suse.de>
2890
2891         * target.h (builtin_conversion): Pass in input and output types.
2892         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
2893         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2894         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
2895         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
2896
2897         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
2898         Handle AVX modes.
2899         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
2900
2901 2010-04-09  Richard Guenther  <rguenther@suse.de>
2902
2903         PR target/43152
2904         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
2905
2906 2010-04-09  Richard Guenther  <rguenther@suse.de>
2907
2908         * tree-vectorizer.h (struct _stmt_vec_info): Document
2909         that vectype is the type of the LHS.
2910         (supportable_widening_operation, supportable_narrowing_operation):
2911         Get both input and output vector types as arguments.
2912         (vect_is_simple_use_1): Declare.
2913         (get_same_sized_vectype): Likewise.
2914         * tree-vect-loop.c (vect_determine_vectorization_factor):
2915         Set STMT_VINFO_VECTYPE to the vector type of the def.
2916         (vectorizable_reduction): Adjust.
2917         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
2918         Adjust.  Specify the output vector type.
2919         (vect_pattern_recog_1): Adjust.
2920         * tree-vect-stmts.c (get_same_sized_vectype): New function.
2921         (vectorizable_call): Adjust.
2922         (vectorizable_conversion): Likewise.
2923         (vectorizable_operation): Likewise.
2924         (vectorizable_type_demotion): Likewise.
2925         (vectorizable_type_promotion): Likewise.
2926         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
2927         the def.
2928         (vect_is_simple_use_1): New function.
2929         (supportable_widening_operation): Get both input and output
2930         vector types.
2931         (supportable_narrowing_operation): Likewise.
2932         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
2933
2934 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
2935
2936         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
2937         __thiscall and _thiscall as predefined macros.
2938         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
2939         thiscall attribute handling.
2940         (ix86_comp_type_attributes): Likewise.
2941         (ix86_function_regparm): Likewise.
2942         (ix86_return_pops_args): Likewise.
2943         (init_cumulative_args): Likewise.
2944         (find_drap_reg): Likewise.
2945         (ix86_static_chain): Likewise.
2946         (x86_this_parameter): Likewise.
2947         (x86_output_mi_thunk): Likewise.
2948         (ix86_attribute_table): Add description for thiscall attribute.
2949         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
2950         * doc/extend.texi: Add documentation for thiscall.
2951
2952 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2953
2954         PR c++/28584
2955         * c.opt (Wint-to-pointer-cast): Available in C++.
2956         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
2957
2958 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2959
2960         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
2961         * calls.c (expand_call): Pass the function type to aggregate_value_p.
2962         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
2963         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
2964         function type instead.  Reorder and simplify checks.
2965
2966         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
2967
2968 2010-04-08  Jing Yu  <jingyu@google.com>
2969             Zdenek Dvorak  <ook@ucw.cz>
2970
2971         PR tree-optimization/42720
2972         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
2973         loop unswitch conditions here from ...
2974         (tree_unswitch_single_loop): ... here.
2975
2976 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2977
2978         * tree-if-conv.c: Fix comments and simplify logic.
2979
2980 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2981
2982         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
2983         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
2984         (main_tree_if_conversion): Update call to tree_if_conversion.
2985
2986 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2987
2988         PR 42485
2989         * doc/invoke.texi (-b,-V): Delete.
2990         * doc/tm.texi: Do not mention -b.
2991         * gcc.c (display_help): Delete -b and -V.
2992         (process_command): Delete -b and -V.
2993         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
2994
2995 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
2996             Wolfgang Gellerich  <gellerich@de.ibm.com>
2997
2998         Implement target hook for loop unrolling
2999         * target.h (loop_unroll_adjust): Add a new target hook function.
3000         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
3001         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
3002         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
3003         (s390_loop_unroll_adjust): Implement the new target hook for s390.
3004         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
3005         target hook.
3006         (decide_unroll_stupid): Likewise.
3007
3008 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3009
3010         PR target/43643
3011         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
3012
3013 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3014
3015         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
3016         (Specific, *-*-solaris2*): Likewise.
3017         Don't prefer Sun as over GNU as.
3018
3019 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
3020
3021         * config/s390/s390.c (override_options): Adjust the z10
3022           defaults for max-unroll-times, max-completely-peeled-insns
3023           and max-completely-peel-times.
3024
3025 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3026
3027         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
3028         instructions for z10.
3029         (s390_expand_setmem): Likewise.
3030         (s390_expand_cmpmem): Likewise.
3031
3032 2010-04-08  Richard Guenther  <rguenther@suse.de>
3033
3034         PR tree-optimization/43679
3035         * tree-ssa-pre.c (eliminate): Only propagate copies.
3036
3037 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
3038
3039         PR bootstrap/43681
3040         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
3041         set but not used variable warning.
3042
3043 2010-04-08  Wei Guozhi  <carrot@google.com>
3044
3045         PR target/41653
3046         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
3047         (arm_size_rtx_costs): Call the new function when optimized for size.
3048
3049 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
3050
3051         PR debug/43670
3052         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
3053         op0 is not a MEM, just return NULL instead of assertion
3054         failure.
3055         (discover_nonconstant_array_refs): Don't walk debug stmts.
3056
3057 2010-04-08  Doug Kwan  <dougkwan@google.com>
3058
3059         * configure.ac: Recognize gold and do not use its version number
3060         to test ld features.
3061         * configure: Regenerate.
3062
3063 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
3064
3065         PR middle-end/40815
3066         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
3067         (negate_value): Move code to push elements to broken_up_substracts ...
3068         (eliminate_plus_minus_pair): ... here.  Push operands that have no
3069         negative pair to plus_negates.
3070         (repropagate_negates, init_reassoc, fini_reassoc): Update.
3071
3072 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3073
3074         * doc/install.texi (Configuration): Move description of
3075         --enable-lto, --with-libelf*, --enable-gold from Java section to
3076         general section.
3077
3078         * doc/generic.texi (Working with declarations)
3079         (Function Properties, C and C++ Trees): Fix typos.
3080         * doc/sourcebuild.texi (Top Level): Likewise.
3081
3082 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
3083
3084         PR c/18624
3085         * tree.h (DECL_READ_P): Define.
3086         (struct tree_decl_common): Add decl_read_flag.
3087         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
3088         a set but not used warning.
3089         (merge_decls): Merge DECL_READ_P flag.
3090         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
3091         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
3092         * c-common.c (handle_used_attribute, handle_unused_attribute):
3093         Likewise.
3094         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
3095         New prototypes.
3096         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
3097         New functions.
3098         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
3099         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
3100         c_parser_binary_expression, c_parser_cast_expression,
3101         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
3102         Call default_function_array_read_conversion instead of
3103         default_function_array_conversion where needed.
3104         (c_parser_unary_expression, c_parser_conditional_expression,
3105         c_parser_postfix_expression_after_primary, c_parser_initelt):
3106         Likewise.  Call mark_exp_read where needed.
3107         (c_parser_statement_after_labels, c_parser_asm_operands,
3108         c_parser_typeof_specifier, c_parser_sizeof_expression,
3109         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
3110         where needed.
3111         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
3112         New.
3113         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
3114         (warn_unused_but_set_parameter): Default to warn_unused
3115         && extra_warnings.
3116         * doc/invoke.texi: Document -Wunused-but-set-variable and
3117         -Wunused-but-set-parameter.
3118
3119         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
3120         used count variable.
3121         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
3122         when operandN variables aren't used in the body of the expander
3123         or splitter.
3124         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
3125         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
3126         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
3127         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
3128         FOR_EACH_IMM_USE_ON_STMT): Likewise.
3129         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
3130         * tree.c (PROCESS_ARG): Likewise.
3131
3132 2010-04-07  Simon Baldwin  <simonb@google.com>
3133
3134         * diagnostic.h (diagnostic_override_option_index): New macro to
3135         set a diagnostic's option_index.
3136         * c-tree.h (c_cpp_error): Add warning reason argument.
3137         * opts.c (_warning_as_error_callback): New.
3138         (register_warning_as_error_callback): Store callback for
3139         warnings enabled via enable_warning_as_error.
3140         (enable_warning_as_error): Call callback, minor code tidy.
3141         * opts.h (register_warning_as_error_callback): Declare.
3142         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
3143         response to -Werror=.
3144         (c_common_init_options): Register warning_as_error_callback in opts.c.
3145         * common.opt: Add -Wno-cpp option.
3146         * c-common.c (struct reason_option_codes_t): Map cpp warning
3147         reason codes to gcc option indexes.
3148         * (c_option_controlling_cpp_error): New function, lookup the gcc
3149         option index for a cpp warning reason code.
3150         * (c_cpp_error): Add warning reason argument, call
3151         c_option_controlling_cpp_error for diagnostic_override_option_index.
3152         * doc/invoke.texi: Document -Wno-cpp.
3153
3154 2010-04-07  Richard Guenther  <rguenther@suse.de>
3155
3156         * ipa-reference.c (mark_load): Use get_base_address.
3157         (mark_store): Likewise.
3158
3159         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
3160         inserting GIMPLE_NOPs into the IL.
3161         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3162         Explicitly strip handled components and indirect references.
3163
3164         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
3165         folding address expressions.
3166         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
3167         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
3168         operand_equal_p to compare decls.
3169         (ptr_deref_may_alias_decl_p): Likewise.
3170         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
3171         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
3172         Handle reversed comparison ops.
3173         * tree-sra.c (asm_visit_addr): Use get_base_address.
3174         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
3175         * ipa-reference.c (mark_address): Use get_base_address.
3176
3177 2010-04-07  Richard Guenther  <rguenther@suse.de>
3178
3179         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
3180         Propagate constants everywhere.
3181
3182 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
3183
3184         PR debug/43516
3185         * tree.c (MAX_INT_CACHED_PREC): Define.
3186         (nonstandard_integer_type_cache): New array.
3187         (build_nonstandard_integer_type): Cache results for precision
3188         <= MAX_INT_CACHED_PREC.
3189
3190 2010-04-07  Richard Guenther  <rguenther@suse.de>
3191
3192         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
3193         -fargument-noalias-global, -fargument-noalias-anything): Remove.
3194         * common.opt: Likewise.
3195         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
3196         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
3197         (nonoverlapping_memrefs_p): Likewise.
3198         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3199         * opts.c (common_handle_option): Handle OPT_fargument_alias,
3200         OPT_fargument_noalias, OPT_fargument_noalias_anything and
3201         OPT_fargument_noalias_global for backward compatibility.
3202
3203 2010-04-07  Richard Guenther  <rguenther@suse.de>
3204
3205         PR tree-optimization/43270
3206         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
3207         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
3208         * tree-ssa-pre.c (phi_translate_1): Adjust.
3209         (fully_constant_expression): Split out vn_reference handling to ...
3210         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
3211         Fold reads from constant strings.
3212         (vn_reference_lookup): Handle fully constant references.
3213         (vn_reference_lookup_pieces): Likewise.
3214         * Makefile.in (expmed.o-warn): Add -Wno-error.
3215
3216 2010-04-07  Martin Jambor  <mjambor@suse.cz>
3217
3218         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
3219
3220 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
3221
3222         PR driver/41594
3223         * gcc.c: Add -static-libstdc++ to list of recognized options.
3224
3225 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3226
3227         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
3228
3229 2010-04-07  Richard Guenther  <rguenther@suse.de>
3230
3231         PR middle-end/42617
3232         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
3233         bases build simple mem attributes to retain points-to information.
3234
3235 2010-04-07  Richard Guenther  <rguenther@suse.de>
3236
3237         PR middle-end/42617
3238         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
3239         preserve points-to related information.
3240
3241 2010-04-07  Richard Guenther  <rguenther@suse.de>
3242
3243         PR middle-end/42617
3244         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
3245         discard plain indirect references.
3246         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
3247         * tree.c (tree_nop_conversion): Likewise.
3248
3249 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
3250
3251         PR debug/43628
3252         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
3253
3254 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
3255
3256         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
3257         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
3258
3259 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
3260
3261         * tree-if-conv.c: Fix indentation and comments.
3262
3263 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
3264
3265         * tree-if-conv.c: Sort static functions in topological order.
3266
3267 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
3268
3269         * tree-if-conv.c: Fix indentation and comments.
3270
3271 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3272
3273         PR middle-end/43519
3274         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
3275         lang_hooks.types.type_for_size instead of
3276         build_nonstandard_integer_type.
3277         When converting an unsigned type to signed, double its precision.
3278         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
3279         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
3280         (graphite_create_new_loop_guard): When ub + 1 wraps around,
3281         use lb <= ub.
3282
3283 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3284
3285         PR middle-end/43519
3286         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3287         POINTER_PLUS_EXPR for pointer types.
3288
3289 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3290
3291         PR middle-end/43519
3292         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
3293         * graphite-clast-to-gimple.c: Include langhooks.h.
3294         (max_signed_precision_type): New.
3295         (max_precision_type): Takes two types as arguments.
3296         (precision_for_value): New.
3297         (precision_for_interval): New.
3298         (gcc_type_for_interval): New.
3299         (gcc_type_for_value): New.
3300         (gcc_type_for_clast_term): New.
3301         (gcc_type_for_clast_red): New.
3302         (gcc_type_for_clast_bin): New.
3303         (gcc_type_for_clast_expr): Split up into several functions.
3304         (gcc_type_for_clast_eq): Rewritten.
3305         (compute_bounds_for_level): New.
3306         (compute_type_for_level_1): New.
3307         (compute_type_for_level): New.
3308         (gcc_type_for_cloog_iv): Removed.
3309         (gcc_type_for_iv_of_clast_loop): Rewritten.
3310         (graphite_create_new_loop): Compute the lower and upper bound types
3311         with gcc_type_for_clast_expr.
3312         (graphite_create_new_loop_guard): Same.
3313         (find_cloog_iv_in_expr): Removed.
3314         (compute_cloog_iv_types_1): Removed.
3315         (compute_cloog_iv_types): Removed.
3316         (gloog): Do not call compute_cloog_iv_types.
3317         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
3318         GBB_CLOOG_IV_TYPES.
3319         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
3320         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
3321         (GBB_CLOOG_IV_TYPES): Removed.
3322
3323 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3324
3325         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
3326         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
3327         (detect_commutative_reduction): Same.
3328
3329 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3330
3331         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
3332         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
3333         argument.
3334         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
3335         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
3336         (rewrite_commutative_reductions_out_of_ssa): Same.
3337         * passes.c (execute_function_todo): Call verify_ssa for every pass
3338         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
3339         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
3340         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
3341         with an extra argument.
3342         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
3343         verify_ssa only when the extra argument is true.
3344         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
3345         with an extra argument.
3346         (tree_transform_and_unroll_loop): Same.
3347
3348 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3349
3350         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
3351         for all the passes of the LNO having LOOP_CLOSED_SSA.
3352         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
3353         * tree-loop-distribution.c (pass_loop_distribution): Same.
3354         * tree-pass.h (TODO_verify_loops): Removed.
3355         * tree-ssa-loop.c (pass_tree_loop_init): Same.
3356         (pass_lim): Same.
3357         (pass_tree_unswitch): Same.
3358         (pass_predcom): Same.
3359         (pass_vectorize): Same.
3360         (pass_linear_transform): Same.
3361         (pass_graphite_transforms): Same.
3362         (pass_iv_canon): Same.
3363         (pass_complete_unroll): Same.
3364         (pass_complete_unrolli): Same.
3365         (pass_parallelize_loops): Same.
3366         (pass_loop_prefetch): Same.
3367         (pass_iv_optimize): Same.
3368
3369 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
3370
3371         PR middle-end/32824
3372         * passes.c (init_optimization_passes): Move pass_lim before
3373         pass_copy_prop and pass_dce_loop.
3374
3375 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
3376
3377         PR target/43667
3378         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
3379         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
3380         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
3381         MULTI_* defines for 4 argument vpermil2p* builtins.
3382
3383 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
3384
3385         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
3386         * config/i386/i386.c (x86_maybe_negate_const_int): New.
3387         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
3388         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
3389         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
3390         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
3391         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
3392         Use x86_maybe_negate_const_int to output insn mnemonic.
3393         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
3394         check from instruction predicate.  Update comments.
3395         * config/i386/sync.md (sync_add<mode>): Use
3396         x86_maybe_negate_const_int to output insn mnemonic.
3397
3398 2010-04-06  Jan Hubicka  <jh@suse.cz>
3399
3400         PR tree-optimization/42906
3401         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
3402         IGNORE_SELF argument.  Set visited_control_parents for fully
3403         processed BBs.
3404         (find_obviously_necessary_stmts): Update call of
3405         mark_control_dependent_edges_necessary.
3406         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
3407
3408 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
3409
3410         * config/i386/i386.md: Remove comment about 'e' and 'E'
3411         operand modifier.
3412
3413 2010-04-06  Richard Guenther  <rguenther@suse.de>
3414
3415         PR tree-optimization/43627
3416         * tree-vrp.c (extract_range_from_unary_expr): Widenings
3417         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
3418         not varying.
3419
3420 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
3421
3422         * BASE-VER: Change to 4.6.0.
3423
3424         PR target/43638
3425         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
3426         handling.
3427
3428 2010-04-06  Richard Guenther  <rguenther@suse.de>
3429
3430         PR middle-end/43661
3431         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
3432
3433 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3434
3435         * doc/invoke.texi (Optimize Options): Document that LTO
3436         won't remove object access purely due to incompatible
3437         declarations.
3438
3439 2010-04-04  Matthias Klose  <doko@ubuntu.com>
3440
3441         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
3442         Initialize variable.
3443
3444 2010-04-03  Richard Guenther  <rguenther@suse.de>
3445
3446         PR middle-end/42509
3447         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
3448         require a non-NULL MEM_OFFSET.
3449
3450 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
3451
3452         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
3453         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
3454         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
3455         config/alpha/predicates.md, config/arm/arm.md,
3456         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
3457         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
3458         config/darwin9.h, config/darwin.c, config/darwin.h,
3459         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
3460         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
3461         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
3462         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
3463         config/mips/mips.md, config/mn10300/mn10300.c,
3464         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
3465         config/rs6000/aix.h, config/rs6000/dfp.md,
3466         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
3467         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
3468         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
3469         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
3470         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
3471         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
3472         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
3473         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
3474         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
3475         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
3476         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
3477         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
3478         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
3479         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
3480         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
3481         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
3482         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
3483         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
3484         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
3485         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
3486         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
3487         opt-functions.awk, opth-gen.awk, params.def, passes.c,
3488         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
3489         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
3490         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
3491         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
3492         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
3493         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
3494         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
3495         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
3496         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3497         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
3498         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3499         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
3500         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
3501         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
3502
3503 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3504
3505         PR other/43620
3506         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
3507         * aclocal.m4: Regenerate.
3508
3509 2010-04-02  Richard Guenther  <rguenther@suse.de>
3510
3511         PR tree-optimization/43629
3512         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
3513         if we have seen a constant value.
3514
3515 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
3516
3517         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
3518
3519 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
3520
3521         PR target/43469
3522         * arm.c (legitimize_tls_address): Adjust call to
3523         gen_tls_load_dot_plus_four.
3524         (arm_note_pic_base): New function.
3525         (arm_cannot_copy_insn_p): Use it.
3526         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
3527         constraint.
3528
3529 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3530
3531         PR bootstrap/43531
3532
3533         Revert:
3534         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3535
3536         * Makefile.in ($(out_object_file)): Depend on
3537         gt-$(basename $(notdir $(out_file))).h.
3538
3539 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
3540
3541         * config.gcc (lm32-*-rtems*): Add t-lm32.
3542
3543 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
3544
3545         * config.gcc: Add lm32-*-rtems*.
3546         * config/lm32/rtems.h: New file.
3547
3548 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
3549
3550         PR target/42609
3551         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
3552
3553 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
3554
3555         * dwarf2out.c (output_compilation_unit_header): For
3556         -gdwarf-4 use version 4 instead of version 3.
3557         (output_line_info): For version 4 and above emit additional
3558         maximum ops per insn header field.
3559         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
3560
3561         * dwarf2out.c (is_c_family, is_java): Remove.
3562         (lower_bound_default): New function.
3563         (add_bound_info, gen_descr_array_type_die): Use it.
3564
3565 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
3566
3567         PR debug/43325
3568         * dwarf2out.c (gen_variable_die): Allow debug info for variable
3569         re-declaration when it happens in a function.
3570
3571 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
3572
3573         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
3574         (cgraph_remove_function_insertion_hook): Same.
3575         (cgraph_call_function_insertion_hooks): Same.
3576
3577 2010-04-01  Richard Guenther  <rguenther@suse.de>
3578
3579         PR middle-end/43614
3580         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
3581         and TREE_THIS_VOLATILE.
3582         (copy_ref_info): Likewise.
3583         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
3584         * tree.c (build6_stat): Ignore side-effects of all but arg5
3585         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
3586         TARGET_MEM_REF.
3587
3588 2010-04-01  Richard Guenther  <rguenther@suse.de>
3589
3590         PR tree-optimization/43607
3591         * ipa-type-escape.c (check_call): Do not access non-existing
3592         arguments.
3593
3594 2010-04-01  Richard Guenther  <rguenther@suse.de>
3595
3596         PR middle-end/43602
3597         Revert
3598         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
3599                     Jack Howarth <howarth@bromo.med.uc.edu>
3600
3601         * tree-profile.c (tree_init_ic_make_global_vars): Make static
3602         variables TLS.
3603
3604 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3605
3606         * doc/install.texi (Prerequisites): Document libelf usability on
3607         IRIX 5/6 and Solaris 2.
3608         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
3609         Update GNU as, GNU ld requirements.
3610         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
3611         Document Sun Studio compiler download.
3612         Update and simplify as, ld recommendations.
3613         (Specific, *-*-solaris2.7): Note obsoletion, removal.
3614
3615 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3616
3617         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
3618         with_tune_32 to pentium4.
3619
3620 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
3621
3622         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
3623
3624 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3625
3626         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
3627         obsoletion, removal.
3628         Update IDO URL.
3629         Document GNU as requirement.
3630         Update configure requirements.
3631         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
3632         Recomment IRIX 6.5.18+.
3633         Document IDF/IDL requirement.
3634         Document GNU as requirement.
3635         Document GNU ld bootstrap failure.
3636         Remove freeware.sgi.com reference.
3637
3638 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3639
3640         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
3641         UNIX V4.0, V5.0 obsoletion, removal.
3642         Remove --with-gc=simple reference.
3643         Update VM requirements during bootstrap.
3644         Remove -oldas bootstrap description.
3645         Update binutils reference.
3646         Remove comparison failure note.
3647
3648 2010-03-31  Richard Guenther  <rguenther@suse.de>
3649             Zdenek Dvorak  <ook@ucw.cz>
3650             Sebastian Pop  <sebastian.pop@amd.com>
3651
3652         PR middle-end/43464
3653         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
3654         with multiple arguments.
3655         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
3656
3657 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3658
3659         * graphite-dependences.c (print_pddr): Call print_pdr with an
3660         extra argument.
3661         * graphite-poly.c (debug_pdr): Add an extra argument for the
3662         verbosity level.
3663         (print_pdr): Same.
3664         (print_pbb_domain): Same.
3665         (print_pbb): Same.
3666         (print_scop_context): Same.
3667         (print_scop): Same.
3668         (print_cloog): Same.
3669         (debug_pbb_domain): Same.
3670         (debug_pbb): Same.
3671         (print_pdrs): Same.
3672         (debug_pdrs): Same.
3673         (debug_scop_context): Same.
3674         (debug_scop): Same.
3675         (debug_cloog): Same.
3676         (print_scop_params): Same.
3677         (debug_scop_params): Same.
3678         (print_iteration_domain): Same.
3679         (print_iteration_domains): Same.
3680         (debug_iteration_domain): Same.
3681         (debug_iteration_domains): Same.
3682         (print_scattering_function): Same.
3683         (print_scattering_functions): Same.
3684         (debug_scattering_function): Same.
3685         (debug_scattering_functions): Same.
3686         * graphite-poly.h (debug_pdr): Update declaration.
3687         (print_pdr): Same.
3688         (print_pbb_domain): Same.
3689         (print_pbb): Same.
3690         (print_scop_context): Same.
3691         (print_scop): Same.
3692         (print_cloog): Same.
3693         (debug_pbb_domain): Same.
3694         (debug_pbb): Same.
3695         (print_pdrs): Same.
3696         (debug_pdrs): Same.
3697         (debug_scop_context): Same.
3698         (debug_scop): Same.
3699         (debug_cloog): Same.
3700         (print_scop_params): Same.
3701         (debug_scop_params): Same.
3702         (print_iteration_domain): Same.
3703         (print_iteration_domains): Same.
3704         (debug_iteration_domain): Same.
3705         (debug_iteration_domains): Same.
3706         (print_scattering_function): Same.
3707         (print_scattering_functions): Same.
3708         (debug_scattering_function): Same.
3709         (debug_scattering_functions): Same.
3710
3711 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3712
3713         * graphite-poly.c (print_scattering_function_1): New.
3714         (print_scattering_function): Call it.
3715         (print_scop_params): Remove spaces at the end of lines.
3716         (print_cloog): New.
3717         (debug_cloog): New.
3718         * graphite-poly.h (print_cloog): Declared.
3719         (debug_cloog): Declared.
3720
3721 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3722
3723         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
3724         in loop->header.
3725         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
3726         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
3727         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
3728         to switch between adding the IV bump in loop->latch or in loop->header.
3729
3730 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3731
3732         * graphite-poly.c (print_scattering_function): Pretty print following
3733         the scoplib format.
3734         (print_pdr): Same.
3735         (print_pbb_domain): Same.
3736         (dump_gbb_cases): Same.
3737         (dump_gbb_conditions): Same.
3738         (print_pdrs): Same.
3739         (print_pbb): Same.
3740         (print_scop_params): Same.
3741         (print_scop_context): Same.
3742         (print_scop): Same.
3743         (print_pbb_body): New.
3744         (lst_indent_to): New.
3745         (print_lst): Start new lines with a #.
3746         * graphite-poly.h (pbb_bb): New.
3747         (pbb_index): Use pbb_bb.
3748         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
3749         disjuncts.
3750         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
3751
3752 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
3753
3754         * dwarf2out.c (size_of_die): For -gdwarf-4 use
3755         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
3756         and 0 instead of 1 for dw_val_class_flag.
3757         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
3758         dw_val_class_range_list, dw_val_class_loc_list,
3759         dw_val_class_lineptr and dw_val_class_macptr, use
3760         DW_FORM_flag_present for dw_val_class_flag and
3761         DW_FORM_exprloc for dw_val_class_loc.
3762         (output_die): For -gdwarf-4 print dw_val_class_loc
3763         size as uleb128 instead of 1 or 2 bytes and don't print
3764         anything for dw_val_class_flag.
3765
3766         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
3767         instead of cselib_lookup following by tweaking locs->setting_insn.
3768
3769         PR bootstrap/43596
3770         * cselib.c (cselib_process_insn): Clear cselib_current_insn
3771         even before returning from label, setjmp call or volatile asm
3772         handling.
3773
3774 2010-03-31  Richard Guenther  <rguenther@suse.de>
3775
3776         PR middle-end/43600
3777         * cgraphunit.c (cgraph_output_in_order): Do not allocate
3778         temporary data on stack.
3779
3780 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3781
3782         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
3783         (PUSHSECTION_ASM_OP): Remove.
3784         (POPSECTION_ASM_OP): Remove.
3785         (PUSHSECTION_FORMAT): Remove.
3786         * config/sol2.h (PUSHSECTION_FORMAT): Define.
3787         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
3788         * config/sol2.c (solaris_output_init_fini): Use it.
3789
3790 2010-03-31  Jie Zhang  <jie@codesourcery.com>
3791
3792         PR 43574
3793         * opt-functions.awk (var_type_struct): Use signed char type
3794         for simple variables.
3795
3796 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3797
3798         * config/sol2.c: Include output.h.
3799         (solaris_assemble_visibility): New function.
3800         * config/t-sol2 (sol2.o): Add output.h dependency.
3801         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
3802         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
3803         Redefine.
3804
3805 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
3806
3807         PR target/43580
3808         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
3809         V2SImode or XFmode on PRE_DEC.
3810
3811         PR debug/43557
3812         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
3813         BLKmode.
3814
3815 2010-03-31  Jie Zhang  <jie@codesourcery.com>
3816
3817         PR 43562
3818         * reload.h (caller_save_initialized_p): Declare.
3819         * toplev.c (backend_init_target): Don't call
3820         init_caller_save but set caller_save_initialized_p to false.
3821         * caller-save.c (caller_save_initialized_p): Define.
3822         (init_caller_save): Check caller_save_initialized_p.
3823         * ira.c (ira): Call init_caller_save if flag_caller_saves.
3824
3825 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3826
3827         PR target/39048
3828         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
3829         and soft-fp/t-softfp to tmake_file.
3830         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
3831         (LIBGCC2_TF_CEXT): Define.
3832         (TF_SIZE): Define.
3833
3834 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
3835
3836         PR debug/42977
3837         * cselib.c (n_useless_values): Document handling of debug locs.
3838         (n_useless_debug_values, n_debug_values): New variables.
3839         (new_elt_loc_list): Don't add to debug values, keep count.
3840         (promote_debug_loc): New.
3841         (cselib_reset_table): Zero new variables.
3842         (entry_and_rtx_equal_p): Promote debug locs.
3843         (discard_useless_locs): Increment n_useless_debug_values for
3844         debug values.
3845         (remove_useless_values): Adjust n_useless_values and n_debug_values
3846         with n_useless_debug_values.
3847         (add_mem_for_addr): Promote debug locs.
3848         (cselib_lookup_mem): Likewise.
3849         (cselib_lookup_addr): Renamed to...
3850         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
3851         (cselib_log_lookup): ... this.  Turn into...
3852         (cselib_lookup_addr): ... new wrapper.
3853         (cselib_lookup_from_insn): New.
3854         (cselib_invalidate_regno): Increment n_useless_debug_values for
3855         debug values.
3856         (cselib_invalidate_mem): Likewise.
3857         (cselib_process_insn): Take n_deleted and n_debug_values into
3858         account to guard remove_useless_value call.
3859         (cselib_finish): Zero n_useless_debug_values.
3860         * cselib.h (cselib_lookup_from_insn): Declare.
3861         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
3862         (sched_analyze_2): Likewise.
3863
3864 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
3865
3866         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
3867         functions.
3868         (adjust_mems): Replace narrowing SUBREG of expression containing
3869         just PLUS, MINUS, MULT and ASHIFT of registers and constants
3870         with operations in the narrower mode.
3871
3872         PR debug/43593
3873         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
3874         regs_invalidated_by_call instead all call_used_reg_set registers.
3875
3876 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
3877
3878         PR middle-end/43430
3879         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
3880         pointer comparisons with types_compatible_p.
3881         * tree-vect-stmts.c (vectorizable_call): Same.
3882         (vectorizable_condition): Same.
3883
3884 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3885
3886         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
3887         stack check if the mask would be zero.
3888
3889 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
3890             Jack Howarth <howarth@bromo.med.uc.edu>
3891
3892         * tree-profile.c (tree_init_ic_make_global_vars): Make static
3893         variables TLS.
3894
3895 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
3896
3897         PR other/25232
3898         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
3899         and __unordtf2.
3900         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
3901         Include ___unordxf2 and ___unordtf2.
3902         * config/i386/libgcc-glibc.ver: Do not define inheritance from
3903         GCC_4.4.0 here.
3904
3905 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
3906
3907         * config/lm32/t-lm32: New file.
3908         * config.gcc: Use the above file when targetting lm32.
3909
3910 2010-03-28  Duncan Sands  <baldrick@free.fr>
3911
3912         * Makefile.in (PLUGIN_HEADERS): Add except.h.
3913
3914 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
3915
3916         PR middle-end/43431
3917         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
3918         Improve vectorization cost model diagnostic.
3919
3920 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
3921
3922         PR middle-end/43436
3923         * tree-vect-data-refs.c (vect_analyze_data_refs): When
3924         compute_data_dependences_for_loop returns false, early exit
3925         and output an extra diagnostic for the failed data reference
3926         analysis.
3927
3928 2010-03-29  Richard Guenther  <rguenther@suse.de>
3929
3930         PR tree-optimization/43560
3931         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
3932         (can_sm_ref_p): Treat stores to readonly locations as trapping.
3933
3934 2010-03-29  Jie Zhang  <jie@codesourcery.com>
3935
3936         PR 43564
3937         * toplev.c (process_options): Set optimization_default_node
3938         and optimization_current_node.
3939         * opts.c (decode_options): Don't set optimization_default_node
3940         and optimization_current_node.
3941
3942 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
3943
3944         * config/rtems.h: Abandon -qrtems_debug.
3945
3946 2010-03-28  Jan Hubicka  <jh@suse.cz>
3947
3948         PR tree-optimization/43505
3949         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
3950         map should not be copied.
3951
3952 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3953
3954         PR middle-end/41674
3955         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
3956         cdtors, set DECL_PRESERVE_P.
3957         * ipa.c (cgraph_externally_visible_p): Return true if declaration
3958         should be preseved.
3959
3960 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
3961
3962         PR tree-optimization/43528
3963         * stor-layout.c (place_field): Check that constant fits into
3964         unsigned HWI when skipping calculation of MS bitfield layout.
3965
3966 2010-03-27  Jan Hubicka  <jh@suse.cz>
3967
3968         PR middle-end/43391
3969         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
3970         notice_global_symbol work.
3971
3972 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
3973
3974         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
3975         instead of dwarf2out_decl.
3976         (struct var_loc_node): Remove section_label field.
3977         (dwarf2out_function_decl): New function.
3978         (dwarf2out_var_location): Don't set section_label field.
3979         (dwarf2out_begin_function): Don't empty decl_loc_table here.
3980
3981 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3982
3983         PR tree-optimization/43544
3984         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3985         First argument for builtin vectorized function hook is now a
3986         tree to be able to distinguish between machine specific and
3987         standard builtins.
3988         * targhooks.c (default_builtin_vectorized_function): Ditto.
3989         * targhooks.h (default_builtin_vectorized_function): Ditto.
3990         * target.h (struct gcc_target): Ditto.
3991         * tree-vect-stmts.c (vectorizable_function): Ditto.
3992         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
3993         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3994         Ditto.
3995
3996 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
3997
3998         PR c/43381
3999         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
4000         nested binding iff it is a FUNCTION_DECL.