OSDN Git Service

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