OSDN Git Service

* ipa.c (cgraph_externally_visible_p): Handle externally visible and
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-10-18  Jan Hubicka  <jh@suse.cz>
2
3         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
4         preserve flags before trying to guess on visibility.
5         (varpool_externally_visible_p): New function.
6         (function_and_variable_visibility): Use it.
7
8 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9
10         Implemented parsing @synthesize and @dynamic for Objective-C.
11         * c-parser.c (c_parser_external_declaration): Recognize
12         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
13         (c_parser_objc_at_synthesize_declaration): New.
14         (c_parser_objc_at_dynamic_declaration): New.
15
16 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
17         
18         * c-parser.c (c_parser_objc_class_declaration): After finding an
19         error, parse the whole declaration then reset parser->error.
20         
21 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
22
23         PR target/46041
24         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
25         * builtins.c (mode_has_fma): Ditto.
26
27 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
28
29         PR target/36898
30         PR middle-end/43760
31         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
32
33 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
34
35         * config/i386/i386.c (ix86_option_override_internal): Define and
36         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
37         default.
38         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
39         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
40
41 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
42
43         Merge from 'apple/trunk' branch on FSF servers. 
44         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
45         following Objective-C change:
46
47         2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
48
49         Radar 4301047
50         * c-parse.in (objc_quals): Build objc qualifier list same way
51         as gcc-3.3
52
53 2010-10-18  Jan Hubicka  <jh@suse.cz>
54
55         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
56         function_and_variable_visibility): Revert accidental commit.
57
58 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
59
60         Merge from 'apple/trunk' branch on FSF servers.
61         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
62         the following Objective-C change:
63
64         2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
65
66         Radar 4204796
67         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
68         'volatilized' type used in a typeof operator.
69
70 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
71
72         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
73         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
74         rewrite modelled on gimple_purge_dead_eh_edges.
75         (gimple_purge_all_dead_abnormal_call_edges): New function.
76         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
77         directly instead of through gimple_purge_dead_abnormal_call_edges.
78         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
79         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
80         removed AB side-effects from one of its statements.
81         (init_pre): Initialize need_ab_cleanup.
82         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
83         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
84
85 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
86
87         PR c/46015
88         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
89         on computed goto argument.
90
91 2010-10-18  Richard Guenther  <rguenther@suse.de>
92
93         PR tree-optimization/45967
94         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
95         (could_have_pointers): Likewise.
96         (handle_rhs_call, handle_const_call, handle_pure_call,
97         find_func_aliases, intra_create_variable_infos): Remove calls to them.
98         (struct fieldoff): Add must_have_pointers field.
99         (type_must_have_pointers): New function.
100         (field_must_have_pointers): Likewise.
101         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
102         Adjust field merging.
103         (create_function_info_for): May-have-pointers of varinfo is
104         almost always true.
105         (create_variable_info_for_1): Likewise.
106
107 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
108
109         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
110         of operands to vec_concat.
111
112 2010-10-18  Richard Guenther  <rguenther@suse.de>
113
114         PR lto/44950
115         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
116         also clear references to entries of it.
117
118 2010-10-18  Andi Kleen  <ak@linux.intel.com>
119
120         PR other/43448
121         * gccbug.in: Remove.
122         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
123         (doc, distclean, install-common): Remove reference to gccbug.
124         * configure: Regenerate.
125         * configure.ac (all_outputs): Remove gccbug.
126         * doc/configfiles.texi: Remove references to gccbug.
127         * doc/sourcebuild.texi: Dito.
128
129 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
130
131         PR middle-end/46019
132         * fold-const.c (fold_binary_loc): If integer_pow2p has
133         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
134
135 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
136             Jeremie Salvucci  <jeremie.salvucci@free.fr>
137
138         * gengtype.c (verbosity_level): Add variable.
139         (set_gc_used): Count variables for verbosity.
140         (close_output_files): Backing up files, counting written ones
141         verbosily.
142         (write_types): Count emitted functions for verbosity. Added
143         debug messages.
144         (write_enum_defn): Count structures for verbosity. Added debug
145         messages.
146         (gengtype_long_options): Add "verbose" & "backupdir".
147         (print_usage): Ditto.
148         (main): Verbose display of parsed files.
149
150         * gengtype.h (verbosity_level): Add declaration.
151
152 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
153
154         * gengtype.c (parse_program_options): Add allocation of
155         plugin_files, and correct test on nb_plugin_files.
156
157 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
158
159         Merge from 'apple/trunk' branch on FSF servers.
160         
161         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
162
163         Radar 4133425
164         * c-decl.c (undeclared_variable): Issue diagnostic on
165         private 'ivar' access.
166         
167 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
168
169         PR target/46051
170         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
171         generated sequence to match *avx_vperm2f128<mode>_nozero.
172         (vec_interleave_lowv4df): Ditto.
173         (vec_interleave_highv8sf): Ditto.
174         (vec_interleave_lowv8sf): Ditto.
175
176 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
177
178         * libgcov.c (create_file_directory): Enable it for win32 case.
179         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
180         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
181         (GCOV_PREFIX_SKIP): Likewise.
182
183 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
184
185         * doc/objc.texi (GNU Objective-C runtime API): New section.
186         (Modern GNU Objective-C runtime API): New section.
187         (Traditional GNU Objective-C runtime API): New section.
188         (Executing code before main): Mention that this section is
189         specific to the GNU Objective-C runtime.
190         (Garbage Collection): Same.
191
192 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
193
194         * c-parser.c (c_parser_for_statement): Move initialization of
195         cond and incr before if.
196
197 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
198
199         * target.def (preferred_output_reload_class): New hook.
200         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
201         * doc/tm.texi: Regenerate.
202         * targhooks.c (default_preferred_output_reload_class): New function.
203         * targhooks.h (default_preferred_output_reload_class): Declare.
204         * reload.c (find_dummy_reload): Change rclass argument type from
205         enum reg_class to reg_class_t. Change this_alternative array type
206         from enum reg_class to reg_class_t.
207         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
208         (push_reload): Change preferred_class variable type to reg_class_t.
209         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
210         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
211         argument type from enum reg_class to reg_class_t. Use
212         HARD_REGISTER_NUM_P predicate.
213         * recog.h (reg_fits_class_p): Update prototype.
214
215         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
216         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
217         Remove.
218         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
219         static. Change regclass argument and result types from enum reg_class
220         to reg_class_t.
221         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
222
223 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
224
225         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
226         visibility enum, and handle @package.
227
228 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
229
230         * doc/objc.texi (What you can and what you cannot do in +load):
231         Document that sending messages to constant string objects in +load
232         is not guaranteed to work.
233
234 2010-10-16  Jan Hubicka  <jh@suse.cz>
235
236         PR middle-end/44206
237         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
238         existence of refrences before removing the function.
239
240 2010-10-16  Jan Hubicka  <jh@suse.cz>
241
242         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
243         only_called_at_startup and only_called_at_exit.
244         (cgraph_propagate_frequency): Compute only_called_at_startup and
245         only_called_at_exit.
246         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
247         only_called_at_exit.
248         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
249         flags.
250         * predict.c (compute_function_frequency): Initialize the new flags.
251
252 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
253
254         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
255         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
256         on the bounds of its domain.
257         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
258
259 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
260
261         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
262         * config/avr/avr-protos.h (preferred_reload_class): Remove.
263         * config/avr/avr.c (preferred_reload_class): Remove.
264         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
265         * config/pa/pa.c (emit_move_sequence): Update comment
266         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
267         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
268         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
269         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
270         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
271         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
272         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
273         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
274         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
275         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
276         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
277         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
278         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
279
280 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
281
282         * opts.c (set_fast_math_flags,
283         set_unsafe_math_optimizations_flags): Make static.
284         * toplev.h (set_fast_math_flags,
285         set_unsafe_math_optimizations_flags): Remove prototypes.
286
287 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
288
289         * config/arm/arm.c (arm_option_optimization): Set
290         flag_section_anchors to 1 not 2.
291         * config/i386/i386.c (ix86_option_override_internal): Check
292         global_options_set.x_flag_zee and
293         global_options_set.x_flag_omit_frame_pointer.
294         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
295         flag_zee to 2.
296         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
297         global_options_set.x_flag_omit_frame_pointer.
298         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
299         opts->x_flag_section_anchors to 1 not 2.
300         * config/sh/sh.c (sh_option_optimization): Don't set
301         flag_schedule_insns to 2.
302         (sh_option_override): Check
303         global_options_set.x_flag_schedule_insns.
304         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
305
306 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
307
308         * configure.ac: Make sure inhibit_libc remains false for mingw targets
309         as cross.
310         * configure: Regenerated.
311
312 2010-10-15  Xinliang David Li  <davidxl@google.com>
313
314         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
315         function.
316         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
317         into a recursive function.
318
319 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
320
321         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
322         (*movdfcc_1): ditto.
323
324 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
325
326         * target.def (target_option.init_struct): New hook.
327         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
328         * doc/tm.texi: Regenerate.
329         * hooks.c (hook_void_gcc_optionsp): New.
330         * hooks.h (hook_void_gcc_optionsp): Declare.
331         * langhooks-def.h (lhd_init_options_struct): Remove.
332         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
333         * langhooks.c (lhd_init_options_struct): Remove.
334         * opts.c (init_options_struct): Also call
335         targetm.target_option.init_struct.
336         * config/i386/i386.c (ix86_option_init_struct,
337         TARGET_OPTION_INIT_STRUCT): New.
338         (ix86_option_optimization): Move some settings to
339         ix86_option_init_struct.
340         * config/pdp11/pdp11.c (pdp11_option_init_struct,
341         TARGET_OPTION_INIT_STRUCT): New.
342         (pdp11_option_optimization): Move some settings to
343         pdp11_option_init_struct.
344         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
345         rs6000_option_init_struct.  Use options structure pointer.
346         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
347         * config/s390/s390.c (s390_option_init_struct,
348         TARGET_OPTION_INIT_STRUCT): New.
349         (s390_option_optimization): Don't set
350         flag_asynchronous_unwind_tables here.
351         * config/sh/sh.c (sh_option_init_struct,
352         TARGET_OPTION_INIT_STRUCT): New.
353         (sh_option_optimization): Don't set flag_finite_math_only here.
354         * config/spu/spu.c (spu_option_optimization): Replace by
355         spu_option_optimization.  Use options structure pointer.
356         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
357
358 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
359
360         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
361
362         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
363         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
364         (Standard names): Document fma.
365
366         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
367         __FP_FAST_FMAF, __FP_FAST_FMAL.
368
369         * builitns.c (expand_builtin_mathfn_ternary): New function for
370         expanding ternary math functions, like fma.
371         (expand_builtin): Call it for the fma builtins.
372
373         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
374         ops at present.
375
376         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
377         vectorizable functions to support vectorizing fma.
378
379         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
380         Handle fma builtins.
381
382         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
383         (UNSPEC_VSX_MSUB): Ditto.
384         (UNSPEC_VSX_NMADD): Ditto.
385         (UNSPEC_VSX_NMSUB): Ditto.
386         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
387         of UNSPEC. Renumber combiner patterns.
388         (vsx_fmsub<mode>4*): Ditto.
389         (vsx_fnmadd<mode>4*): Ditto.
390         (vsx_fnmsub<mode>4*): Ditto.
391
392         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
393         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
394         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
395         (altivec_vmaddfp_1): Ditto.
396         (altivec_vmaddfp_2): Ditto.
397         (atlivec_mulv4sf3): Ditto.
398         (altivec_vnmsubfp): Ditto.
399         (altivec_vnmsubfp_1): Ditto.
400         (altivec_vnmsubfp_2): Ditto.
401         (altivec_vnmsubfp_3): Delete.
402
403         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
404         (fmasf4_fpr): Ditto.
405         (fmssf4_fpr): Ditto.
406         (fnmasf4_fpr): Ditto.
407         (fnmssf4_fpr): Ditto.
408         (fmadf4): Ditto.
409         (fmadf4_fpr): Ditto.
410         (fmsdf4_fpr): Ditto.
411         (fnmadf4_fpr): Ditto.
412         (fnmsdf4_fpr): Ditto.
413
414         * optabs.h (OTI_fma): Add fma optab.
415         (fma_optab): Ditto.
416
417         * genopinit.c (optabs): Set fma optab.
418
419         * rtl.def (FMA): Add FMA rtl.
420
421         * tree.h (mode_has_fma): New function to return if MODE supports a
422         fast multiply and add instruction.
423         * builtins.c (mode_has_fma): Ditto.
424
425 2010-10-15  Jan Hubicka  <jh@suse.cz>
426
427         * lto-streamer-out.c (write_symbol): Use pointer set of seen
428         objects instead of bitmap.
429         (produce_symtab): Likewise; output defined symbols first.
430
431 2010-10-15  Jie Zhang  <jie@codesourcery.com>
432
433         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
434         Option Summary and Index.
435
436 2010-10-15  Richard Guenther  <rguenther@suse.de>
437
438         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
439         for automatic variables again.
440
441 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
442
443         * doc/extend.texi (Variable Length): Don't refer to VLAs not
444         conforming to C99.
445
446 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
447
448         * config/rx/rx.c (rx_option_optimization): Change to
449         rx_override_options_after_change.  Don't change
450         flag_lto_compression_level.  Don't check for changes to whether
451         FPU instructions can be used.  Check and set only
452         flag_finite_math_only, not other fast-math flags.
453         (rx_option_override): Call rx_override_options_after_change.
454         (TARGET_OPTION_OPTIMIZATION): Remove.
455         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
456
457 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
458
459         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
460         disable section anchors for lang_hooks.name[4] != 'O'.
461
462 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
463
464         * config/frv/frv.c (frv_option_optimization,
465         TARGET_OPTION_OPTIMIZATION): Remove.
466         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
467
468 2010-10-15  Michael Matz  <matz@suse.de>
469
470         * cgraphunit.c (clone_of_p): Define unconditionally.
471
472 2010-10-15  Richard Guenther  <rguenther@suse.de>
473
474         PR lto/45957
475         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
476
477 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
478
479         * ifcvt.c (find_active_insn_before): New function.
480         (find_active_insn_after): New function.
481         (cond_exec_process_if_block): Use new functions to replace
482         prev_active_insn() and next_active_insn().
483
484 2010-10-14  Yao Qi  <yao@codesourcery.com>
485
486         PR target/45447
487         * config/arm/arm.c (arm_build_builtin_va_list): Assign
488         va_list_name to TYPE_STUB_DECL (va_list_type).
489
490 2010-10-14  Jan Hubicka  <jh@suse.cz>
491
492         PR middle-end/45621
493         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
494         redirected to clone, be happy.
495         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
496         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
497         former_clone_of unconditionally.
498
499 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
500
501         Merge from FSF apple 'trunk' branch.
502         2006 Fariborz Jahanian <fjahanian@apple.com>
503
504         Radars 4436866, 4505126, 4506903, 4517826
505         * c-parser.c (c_parser, objc_property_attr_context) New flag.
506         (c_lex_one_token): Handle property attributes.
507         (c_parser_external_declaration): Handle @property.
508         (c_parser_declaration_or_fndef): Warn on invalid attributes before
509         @alias, @class, @end and @property objc keywords.
510         (c_parser_objc_methodprotolist): Handle @property.
511         (c_parser_objc_property_attrlist): New.
512         (c_parser_objc_at_property): New.
513         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
514         (build_modify_expr): Likewise.
515
516 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
517
518         PR tree-optimization/46008
519         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
520
521 2010-10-14  Richard Guenther  <rguenther@suse.de>
522
523         PR tree-optimization/44913
524         * tree-data-ref.c (disjoint_objects_p): Remove.
525         (dr_may_alias_p): Simplify.  Only hand the base object to
526         the alias-oracle.
527         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
528         some more trees, bail out instead of asserting.
529         (ptr_derefs_may_alias_p): Likewise.  Export.
530         (refs_may_alias_p_1): Handle STRING_CSTs.
531         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
532
533 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
534
535         PR c/45969
536         * c-typeck.c (build_binary_op): Don't try to compute a semantic
537         type with excess precision for boolean operations.
538
539 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
540             Basile Starynkevitch  <basile@starynkevitch.net>
541
542         * gengtype.c:  Include getopt.h and version.h.
543
544         (lang_bitmap, struct outf, outf_p)
545         (get_output_file_with_visibility, oprintf): Definitions moved to
546         gengtype.h
547         (output_files, header_file, srcdir, srcdir_len, this_file)
548         (do_dump): No more static variables.
549         (do_debug): New.
550         (dbgprint_count_type_at): Added new function.
551         (gengtype_long_options): New.
552         (print_usage, print_version, parse_program_options): New.
553         (main): Call parse_program_options, and removed old option
554         handling code.  Added some debug output.
555
556         * gengtype.h:  Updated copyright year.
557         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
558         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
559         Moved from gengtype.c to here.
560         (do_debug, read_state_filename, write_state_filename): New variables.
561         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
562
563         * Makefile.in:
564         (REVISION): Always defined.
565         (version.o): Removed ifdef REVISION_c.
566         (s-gtype): Pass arguments to build/gengtype program.
567         (build/version.o): Added building rule.
568         (build/gengtype$(build_exeext)): Added build/version.o.
569
570 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
571
572         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
573         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
574         __strong macros.
575
576 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
577
578         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
579         may_trap_or_fault_p instead of may_trap_p predicate.
580         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
581         (substitute_placeholder_in_expr): Likewise.
582         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
583         flag on MEM_REF nodes.
584         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
585         flags on INDIRECT_REF nodes.
586
587 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
588
589         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
590         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
591         (arm*-*-eabi*) <tm_file>: Likewise.
592         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
593         (frv-*-*linux*) <tm_file>: Likewise.
594         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
595         and associated helper macros.
596         * config/frv/frv-abi.h: Delete.
597
598 2010-10-14  Richard Guenther  <rguenther@suse.de>
599
600         PR lto/44561
601         * tree.def (NULLPTR_TYPE): New tree code.
602         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
603         * dwarf2out.c (is_base_type): Likewise.
604         (gen_type_die_with_usage): Likewise.
605         * sdbout.c (plain_type_1): Likewise.
606         * tree.c (build_int_cst_wide): Likewise.
607         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
608
609 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
610
611         * params.c (params_finished): New.
612         (add_params): Assert !params_finished.
613         (finish_params): New.
614         (set_param_value_internal): Take params and params_set
615         parameters.  Assert params_finished.
616         (set_param_value, maybe_set_param_value): Take params and
617         params_set parameters.  Update calls to set_param_value_internal.
618         (set_default_param_value): Assert !params_finished.  Don't use
619         set_param_value_internal.
620         (default_param_value, init_param_values): New.
621         * params.h (struct param_info): Change value to default_value.
622         Remove set.
623         (set_param_value, maybe_set_param_value): Add params and
624         params_set parameters.
625         (PARAM_VALUE): Get parameters from global_options.
626         (PARAM_SET_P): Remove.
627         (finish_params, default_param_value, init_param_values): New.
628         * common.opt (param_values): New Variable.
629         * config/arm/arm.c (arm_option_override): Pass extra arguments to
630         maybe_set_param_value.
631         * config/i386/i386.c (ix86_option_override_internal): Pass extra
632         arguments to maybe_set_param_value.
633         * config/picochip/picochip.c (picochip_option_override): Pass
634         extra arguments to maybe_set_param_value.
635         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
636         extra arguments to maybe_set_param_value.
637         * config/s390/s390.c (s390_option_override): Use
638         maybe_set_param_value instead of set_param_value.  Pass extra
639         arguments to maybe_set_param_value.
640         * config/sparc/sparc.c (sparc_option_override): Pass extra
641         arguments to maybe_set_param_value.
642         * config/spu/spu.c (spu_option_override): Pass extra arguments to
643         maybe_set_param_value.
644         * opts.c (handle_param): Take opts and opts_set parameters.
645         Update call to set_param_value.
646         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
647         initial_loop_invariant_max_bbs_in_loop): Remove.
648         (init_options_once): Don't set them.
649         (init_options_struct): Initialize parameters structures.
650         (default_options_optimization): Use default_param_value when
651         restoring defaults.  Update calls to maybe_set_param_value.
652         (finish_options): Update calls to maybe_set_param_value.
653         (common_handle_option): Update calls to handle_param and
654         set_param_value.
655         * toplev.c (DEFPARAM): Update definition for changes to param_info.
656         (general_init): Call finish_params.
657
658 2010-10-14  Nick Clifton  <nickc@redhat.com>
659
660         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
661         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
662         (FIRST_PSEUDO_REGISTER): Increase by one.
663         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
664         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
665         (MODES_TIEABLE): Call mn10300_modes_tieable.
666         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
667         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
668         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
669         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
670         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
671         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
672         (mn10300_cc_status_mdep): Delete.
673         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
674         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
675         the combine-stack-adjust pass.
676         (print_operand): Use the mode of the comparison operation to
677         select the comparison suffix.
678         (notice_update_cc): Delete.
679         (mn10300_secondary_reload_class): Remove test for stack pointer
680         based arithmetic.
681         (output_tst): Rename to mn10300_output_cmp.
682         (impossible_plus_operand): Move into predicates.md.
683         (mn10300_legitimize_address): Make static.
684         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
685         constant pic operands.
686         (mn10300_legitimate_constant_p): New function.
687         (mn10300_case_values_threshold): Make static.
688         (mn10300_hard_regno_mode_ok): New function.
689         (mn10300_modes_tieable): New function.
690         (mn10300_select_cc_mode): New function.
691         * config/mn10300/predicates.md (impossible_plus_operand): Define.
692         * config/mn10300/mn10300-protos.h: Tidy.
693         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
694         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
695         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
696         with clobbers or sets of CC_REG.
697         (CC_REG): Define.
698         (mov*): Remove use of CLR instruction.
699         (cbranch_si4_<code>): New pattern/split.
700         (integer_conditional_branch): New pattern.
701         (cbranch_sf4_<code>): New pattern/split.
702         (float_conditional_branch): New pattern.
703         (casesi): Use addsi3 pattern instead of movsi pattern to add and
704         move a value at the same time.
705         (cc0 peepholes): Remove.
706
707 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
708
709         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
710         on RTX_FRAME_RELATED_P insns and the insn to which
711         NOTE_INSN_EPILOGUE_BEG is attached.
712         * sched-vis.c (print_value): Allow NULL value.
713
714 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
715
716         PR rtl-optimization/45570
717         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
718         assert that we are pipelining outer loops.  Allow returning
719         zero predecessors.
720
721 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
722
723         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
724         (tidy_control_flow): Tidy vertical space.
725         (sel_remove_bb): New variable idx.  Use it to remember the basic
726         block index before deleting the block.
727         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
728         (sel_merge_blocks): ... here.
729         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
730
731 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
732
733         * cse.c (is_dead_reg): Change into inline function that is not
734         called through for_each_rtx.
735         (set_live_p): Adjust caller.
736         (insn_live_p): Don't reset DEBUG_INSNs here.
737         (struct dead_debug_insn_data): New data.
738         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
739         (delete_trivially_dead_insns): If there is just one setter for the
740         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
741         and add DEBUG_INSN for it right before the removed setter and
742         use the DEBUG_EXPR instead of the dead pseudo.
743
744 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
745
746         * et-forest.c (et_nca): Return NULL immediately when
747         the dominance forest has disjoint components.
748
749 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
750
751         * ira.c (setup_class_hard_regs): Fix typo in indexing
752         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
753
754 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
755
756         * graph.c (inbb): New variable.
757         (start_bb): Set inbb to 1 if output is inside of a building block.
758         (end_bb): Check if output is inside of a building block.
759
760 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
761
762         PR rtl-optimization/45912
763         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
764         regno of registers instead of their index to compute the alignment.
765
766 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
767
768         * config/i386/i386.c (ix86_build_const_vector): Check vector
769         mode instead of scalar mode.
770         (ix86_build_signbit_mask): Likewise.
771         (ix86_expand_fp_absneg_operator): Updated.
772         (ix86_expand_copysign): Likewise.
773         (ix86_expand_int_vcond): Likewise.
774         (ix86_emit_swdivsf): Likewise.
775         (ix86_sse_copysign_to_positive): Likewise.
776         (ix86_expand_sse_fabs): Likewise.
777         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
778         * config/i386/sse.md (copysign<mode>3): Likewise.
779         (sse2_cvtudq2ps): Likewise.
780         (vec_unpacku_float_hi_v4si): Likewise.
781         (vec_unpacku_float_lo_v4si): Likewise.
782
783         * config/i386/i386.c (ix86_builtins): Add
784         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
785         (bdesc_args): Likewise.
786         (ix86_builtin_vectorized_function): Support
787         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
788         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
789         and IX86_BUILTIN_CVTPS2DQ256.
790         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
791
792         * config/i386/sse.md (STORENT_MODE): New.
793         (VEC_FLOAT_MODE): Likewise.
794         (VEC_EXTRACT_MODE): Likewise.
795         (*avx_cvtdq2pd256_2): Likewise.
796         (vec_pack_trunc_v4df): Likewise.
797         (vec_interleave_highv8sf): Likewise.
798         (vec_interleave_lowv8sf): Likewise.
799         (storent<mode>): Macroized.
800         (<code><mode>2: absneg): Likewise.
801         (copysign<mode>3): Likewise.
802         (vec_extract<mode>): Likewise.
803
804         PR target/44180
805         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
806         for V8SFmode.
807
808 2010-10-13  Richard Guenther  <rguenther@suse.de>
809             H.J. Lu  <hongjiu.lu@intel.com>
810
811         * config/i386/sse.md (reduc_splus_v8sf): Add.
812         (reduc_splus_v4df): Likewise.
813         (vec_unpacks_hi_v8sf): Likewise.
814         (vec_unpacks_lo_v8sf): Likewise.
815         (*avx_cvtps2pd256_2): Likewise.
816         (vec_unpacks_float_hi_v8si): Likewise.
817         (vec_unpacks_float_lo_v8si): Likewise.
818         (vec_interleave_highv4df): Likewise.
819         (vec_interleave_lowv4df): Likewise.
820
821 2010-10-13  Richard Guenther  <rguenther@suse.de>
822
823         PR objc/45878
824         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
825         alone if there are no virtual methods.
826
827 2010-10-13  Richard Henderson  <rth@redhat.com>
828
829         * expr.c (build_personality_function): Take parameter LANG instead
830         of parameter NAME.  Build the name based on the lang prefix and the
831         unwind method in use.
832         * tree.c (lhd_gcc_personality): Update call to
833         build_personality_function.
834
835 2010-10-13  Richard Guenther  <rguenther@suse.de>
836
837         PR objc/45878
838         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
839
840 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
841
842         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
843         Canonicalize input operands of ASM_OPERANDS insns.
844
845 2010-10-13  Richard Guenther  <rguenther@suse.de>
846
847         PR tree-optimization/45788
848         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
849         EH update until fixup-cfg.
850
851 2010-10-13  Julian Brown  <julian@codesourcery.com>
852
853         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
854         from CORE_REGS and GENERAL_REGS classes.
855         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
856         final constraint for register preferencing.
857
858 2010-10-13  Richard Guenther  <rguenther@suse.de>
859
860         PR tree-optimization/45970
861         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
862         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
863         (stmt_kills_ref_p): Likewise.
864         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
865
866 2010-10-13  Richard Guenther  <rguenther@suse.de>
867
868         PR tree-optimization/45982
869         * tree-ssa-structalias.c (make_constraints_to): New function.
870         (make_constraint_to): Implement in terms of make_constraints_to.
871         (find_func_aliases): Properly make return values of pure/const
872         functions escape if they assign to sth that is not a pointer.
873
874 2010-10-13  Richard Guenther  <rguenther@suse.de>
875
876         PR middle-end/45874
877         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
878         Fixup the CFG when EH was fixed up.
879
880 2010-10-13  Ira Rosen  <irar@il.ibm.com>
881
882         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
883         Use operand's type for POINTER_PLUS_EXPR.
884
885 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
886
887         * c-parser.c (c_parser_for_statement): Initialize incr.
888
889 2010-10-12  Xinliang David Li  <davidxl@google.com>
890
891         PR tree-optimization/45972
892         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
893         with too many arguments.
894
895 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
896
897         PR fortran/45636
898         * tree-ssa-forwprop.c: Include expr.h.
899         (constant_pointer_difference, simplify_builtin_call): New functions.
900         (tree_ssa_forward_propagate_single_use_vars): Call
901         simplify_builtin_call on builtin calls.
902
903 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
904
905         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
906         (*adddi3_extend_sp32): Likewise.
907         (*subdi3_insn_sp32): Likewise.
908         (*subdi3_extend_sp32): Likewise.
909         (*negdi2_sp32): Use negative test for consistency.
910
911 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
912
913         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
914         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
915         * config/fixed-bit.h: Likewise.
916         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
917         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
918         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
919         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
920         (DF_SIZE): Likewise.
921         * doc/tm.texi: Regenerate.
922
923 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
924
925         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
926         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
927         (*isel_reversed_unsigned_<mode>): New.
928         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
929         as valid comparisons and adjust operands and output appropriately.
930         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
931
932 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
933
934         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
935         DATA_ALIGNMENT and add COND parameter. Update comments above.
936         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
937         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
938
939 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
940
941         PR bootstrap/45958
942         * exec-tool.in: Support '-plugin' as the second option to the linker.
943
944 2010-10-12  Richard Henderson  <rth@redhat.com>
945
946         PR middle-end/45962
947         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
948         (expand_stack_vars): Assert large base allocated when used.
949
950 2010-10-12  Richard Guenther  <rguenther@suse.de>
951
952         * tree-ssa-structalias.c (get_constraint_for_1): Constants
953         only point to nonlocal, not anything.
954
955 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
956
957         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
958         unwind info for exceptions.
959
960 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
961
962         PR testsuite/45851
963         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
964         Document optional target selector.
965
966 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
967
968         * flag-types.h: New.
969         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
970         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
971         options.h.
972         (OPTIONS_H): Define.
973         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
974         of options.h.
975         * configure.ac (tm_include_list): Include options.h not flags.h.
976         * configure: Regenerate.
977         * flags.h: Include flag-types.h.  Include options.h at top of file
978         again.
979         (enum debug_info_type, enum debug_info_level, enum
980         debug_info_usage, enum symbol_visibility, struct visibility_flags,
981         enum ira_algorithm, enum ira_region, enum excess_precision, enum
982         graph_dump_types, enum stack_check_type,
983         enum warn_strict_overflow_code): Move to flag-types.h
984         * opth-gen.awk: Include flag-types.h in options.h.
985
986 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
987
988         * expr.c (store_expr): Share code for STRING_CST and
989         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
990         check if target is a MEM.
991
992         * rtl.h: Include hashtab.h.
993         (iterative_hash_rtx): New prototype.
994         * rtl.c (iterative_hash_rtx): New function.
995         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
996         (output_loc_list): Return immediately if emitted is set, set it.
997         (hash_loc_operands, hash_locs, hash_loc_list,
998         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
999         optimize_location_lists_1, optimize_location_lists): New function.
1000         (dwarf2out_finish): Call optimize_location_lists.
1001         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
1002
1003 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1004
1005         PR testsuite/45974
1006         Revert:
1007         * Makefile.in ($(lang_checks_parallel))
1008         ($(lang_checks_parallelized)): Use single quotes for
1009         $(RUNTESTFLAGS), to allow passing quoted content.
1010
1011 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1012
1013         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
1014         actual_oldval.  Use __builtin_expect.
1015         (SUBWORD_VAL_CAS): Likewise.
1016
1017 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
1018
1019         * recog.c (nonmemory_operand): Call immediate_operand for
1020         CONSTANT_P operands.
1021
1022 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
1023
1024         * config/i386/i386.md (movmem<mode>): Macroize expander from
1025         movmem{si,di} using SWI48 mode iterator.
1026         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
1027         *strmovsi_rex_1 using P mode iterator.
1028         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
1029         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
1030         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
1031         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
1032         (setmem<mode>): Macroize expander from setmem{si,di} using
1033         SWI48 mode iterator.
1034         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
1035         *strsetsi_rex_1 using P mode iterator.
1036         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
1037         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
1038         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
1039         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
1040         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
1041         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
1042         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
1043         mode iterator.
1044         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
1045         *strlenqi_rex_1 using P mode iterator.
1046
1047 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
1048
1049         PR bootstrap/45445
1050         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
1051         static functions.
1052         (mark_ref_live, mark_ref_dead): Use them.
1053         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
1054         Save the original reg, and use the new functions.
1055         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
1056         changed.
1057         (check_and_make_def_conflict): Save the original reg.
1058
1059 2010-10-11  Martin Jambor  <mjambor@suse.cz>
1060
1061         PR middle-end/45699
1062         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
1063         thunks.
1064
1065 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1066
1067         * Makefile.in ($(lang_checks_parallel))
1068         ($(lang_checks_parallelized)): Use single quotes for
1069         $(RUNTESTFLAGS), to allow passing quoted content.
1070
1071         PR bootstrap/35855
1072         * opt-functions.awk (BEGIN): New section.
1073         (lower, upper, digit, alnum): New variables.
1074         (static_var, opt_sanitized_name): Use alnum instead of character
1075         classes, for non-C locale.
1076         * optc-gen.awk: Likewise.
1077         * opth-gen.awk: Likewise.
1078
1079 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
1080
1081         * target.def (preferred_reload_class): New hook.
1082         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
1083         * doc/tm.texi: Regenerate.
1084         * targhooks.c (default_preferred_reload_class): New function.
1085         * targhooks.h (default_preferred_reload_class): Declare.
1086         * reload.c (find_dummy_reload): Change preferred_class variable type
1087         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
1088         target hook.
1089         (find_reloads): Change goal_alternative array type from int to
1090         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
1091         (push_reload, find_reloads_address_part): Use
1092         TARGET_PREFERRED_RELOAD_CLASS target hook.
1093         * reload1.c (emit_input_reload_insns): Ditto.
1094         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
1095         hook. Change rclass argument and secondary_class variable types from
1096         'enum reg_class' to reg_class_t.
1097
1098         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
1099         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
1100         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
1101         Change regclass argument and result types from enum reg_class to
1102         reg_class_t.
1103         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1104
1105 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1106
1107         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
1108         in masking operations.
1109         (simplify_const_unary_operation): Likewise.
1110         (simplify_binary_operation_1): Likewise.
1111         (simplify_const_binary_operation): Likewise.
1112         (simplify_const_relational_operation): Likewise.
1113         (simplify_ternary_operation): Likewise.
1114         (simplify_immed_subreg): Likewise.
1115
1116 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1117
1118         PR middle-end/45862
1119         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
1120         (TARGET_SUPPORTS_WEAK): New.
1121         * doc/tm.texi: Regenerate.
1122         * defaults.h (SUPPORTS_WEAK): Update comment.
1123         (TARGET_SUPPORTS_WEAK): New.
1124         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
1125         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
1126         SUPPORTS_WEAK.
1127         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
1128         make_decl_one_only): Likewise.
1129         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
1130         TARGET_SUPPORTS_WEAK.
1131         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
1132         instead of SUPPORTS_WEAK.
1133
1134 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1135
1136         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
1137
1138 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
1139
1140         * vec.h (VEC_qsort): Define.
1141         * dbxout.c (output_used_types): Use it.
1142         * df-scan.c (df_sort_and_compress_refs): Likewise.
1143         (df_sort_and_compress_mws): Likewise.
1144         * genautomata.c (uniq_sort_alt_states): Likewise.
1145         (evaluate_equiv_classes): Likewise.
1146         (output_trans_table): Likewise.
1147         (output_state): Likewise.
1148         * gimplify.c (compare_case_labels): Likewise.
1149         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
1150         * ipa.c (build_cdtor_fns): Likewise.
1151         * lto.c (lto_wpa_write_files): Likewise.
1152         * sel-sched.c (fill_vec_av_set): Likewise.
1153         * tree-predcom.c (determine_roots_comp): Likewise.
1154         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
1155         (splice_param_accesses): Likewise.
1156         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
1157         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1158         (reassociate_bb): Likewise.
1159         * tree-ssa-sccvn.c (sort_scc): Likewise.
1160         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
1161
1162 2010-10-11  Ian Lance Taylor  <iant@google.com>
1163
1164         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
1165         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
1166         TREE_THIS_NOTRAP when appropriate.
1167         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
1168         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
1169         newly created MEM_REF.
1170
1171 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
1172
1173         Nathan Froyds patch to hooks FUNCTION_ARG etc.
1174         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
1175         (picochip_incoming_function_arg): Delete.
1176         (picochip_arg_advance): Delete.
1177         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
1178         (FUNCTION_INCOMING_ARG): Delete.
1179         (FUNCTION_ARG_ADVANCE): Delete.
1180         * config/picochip/picochip.c (picochip_function_arg): Take a
1181         const_tree and a bool.
1182         (picochip_incoming_function_arg): Likewise.
1183         (picochip_arg_advance): Likewise.
1184         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1185         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1186
1187 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1188
1189         PR middle-end/45955
1190         * ipa.c (build_cdtor): Delete endless loop.
1191
1192 2010-10-07  Andi Kleen  <ak@linux.intel.com>
1193
1194         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
1195         checksum-options.
1196         (checksum-options): Add.
1197         (cc1-dummy): Remove.
1198         (cc1-checksum): Change to run checksum over object files
1199         and options only.
1200         * dummy-checksum.c: Remove.
1201         * genchecksum.c: Update copyright.
1202         (usage): Allow multiple arguments.
1203         (BLOCKSIZE): Add.
1204         (dosum): Change for incremental checksum. Remove C output.
1205         (main): Iterate over all argument files. Add C output.
1206
1207 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
1208
1209         * params.c (set_param_value_internal): New.
1210         (set_param_value): Use set_param_value_internal.
1211         (maybe_set_param_value, set_default_param_value): New.
1212         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
1213         (maybe_set_param_value, set_default_param_value): Declare.
1214         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
1215         * config/i386/i386.c (ix86_option_override_internal): Use
1216         maybe_set_param_value.
1217         * config/ia64/ia64.c (ia64_option_default_params,
1218         TARGET_OPTION_DEFAULT_PARAMS): New.
1219         (ia64_option_optimization): Move some code to
1220         ia64_option_default_params.
1221         * config/picochip/picochip.c (picochip_option_override): Use
1222         maybe_set_param_value.
1223         * config/rs6000/rs6000.c (rs6000_option_default_params,
1224         TARGET_OPTION_DEFAULT_PARAMS): New.
1225         (rs6000_option_override_internal): Use maybe_set_param_value.
1226         (rs6000_option_optimization): Move some code to
1227         rs6000_option_default_params.
1228         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
1229         * config/sh/sh.c (sh_option_default_params,
1230         TARGET_OPTION_DEFAULT_PARAMS): New.
1231         (sh_option_optimization): Move some code to sh_option_default_params.
1232         * config/sparc/sparc.c (sparc_option_override): Use
1233         maybe_set_param_value.
1234         * config/spu/spu.c (spu_option_default_params,
1235         TARGET_OPTION_DEFAULT_PARAMS): New.
1236         (spu_option_optimization): Move some code to spu_option_default_params.
1237         (spu_option_override): Use maybe_set_param_value.
1238         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
1239         * doc/tm.texi: Regenerate.
1240         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
1241         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
1242         compiler_params.
1243         (default_options_optimization): Use maybe_set_param_value.
1244         (finish_options): Use maybe_set_param_value.
1245         * target.def (target_option.default_params): New hook.
1246         * toplev.c (general_init): Call targetm.target_option.default_params.
1247
1248 2010-10-11  Ira Rosen  <irar@il.ibm.com>
1249
1250         PR tree-optimization/45902
1251         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
1252         vector type for constants, unless it's a pointer.
1253
1254 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1255
1256         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
1257
1258 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
1259
1260         PR target/45870
1261         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
1262         (ix86_delegitimize_address): Use it.
1263
1264 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
1265
1266         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
1267
1268 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
1269
1270         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
1271         to cum struct in the call to function_arg_advance.
1272         (alpha_function_arg_advance): Mark named as unused.
1273
1274 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
1275
1276         * config/mips/mips.c (mips_handle_option): Make "value" with
1277         ATTRIBUTE_UNUSED.
1278
1279 2010-10-09  Richard Henderson  <rth@redhat.com>
1280
1281         PR rtl-opt/33721
1282         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
1283         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
1284         required_align, tidy the code a bit.  Emit split_stack code in the
1285         right place.  Mark the return value with the alignment properly.
1286         * expr.h (allocate_dynamic_stack_space): Update decl.
1287         * builtins.c (expand_builtin_apply): Update call to
1288         allocate_dynamic_stack_space.
1289         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
1290         * calls.c (initialize_argument_information): Update call to
1291         allocate_dynamic_stack_space.
1292         (expand_call): Likewise.
1293
1294         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
1295         Don't update_stack_alignment here.
1296         (alloc_stack_frame_space): Make ALIGN unsigned.
1297         (stack_var_cmp): Sort by alignment too.
1298         (partition_stack_vars): Don't merge large and small alignment vars.
1299         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
1300         Take care when BASE is not virtual_stack_vars_rtx.
1301         (expand_stack_vars): Allocate dynamic stack space for large
1302         alignment variables.
1303         (expand_one_stack_var): Update all to expand_one_stack_var_at.
1304         (defer_stack_allocation): True for large alignment vars.
1305         (update_stack_alignment): Merge into ...
1306         (expand_one_var): ... here.
1307         (gimple_expand_cfg): Place code from expand_stack_vars.
1308
1309 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1310
1311         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1312         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
1313         (pdp11_function_arg_advance): New function.
1314         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1315
1316 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1317
1318         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
1319         * libgcc2.c: Likewise.
1320
1321 2010-10-09  Richard Guenther  <rguenther@suse.de>
1322
1323         PR lto/45956
1324         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
1325         Properly check if a decl is an automatic var.
1326
1327 2010-10-09  Richard Guenther  <rguenther@suse.de>
1328
1329         PR lto/45947
1330         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
1331
1332 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1333
1334         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
1335         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1336         * config/mmix/mmix.c (mmix_function_arg): Rename to...
1337         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
1338         bool arguments.
1339         (mmix_function_arg): New function.
1340         (mmix_function_incoming_arg): New function.
1341         (mmix_function_arg_advance): New function.
1342         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1343         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1344
1345 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1346
1347         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1348         * config/vax/vax.c (vax_function_arg): New function.
1349         (vax_function_arg_advance): New function.
1350         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1351
1352 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1353
1354         * config/pa/pa-protos.h (function_arg): Delete.
1355         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1356         * config/pa/pa.c (function_arg): Rename to...
1357         (pa_function_arg): ...this.  Make static.  Take a const_tree and
1358         a bool.
1359         (pa_function_arg_advance): New function.
1360         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1361
1362 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1363
1364         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1365         * config/m68k/m68k.c (m68k_function_arg): New function.
1366         (m68k_function_arg_advance): New function.
1367         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1368
1369 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1370
1371         * config/avr/avr-protos.h (function_arg): Delete.
1372         (function_arg_advance): Delete.
1373         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1374         * config/avr/avr.c (function_arg): Rename to...
1375         (avr_function_arg): ...this.  Make static.  Take a const_tree and
1376         a bool.
1377         (function_arg_advance): Rename to...
1378         (avr_function_arg_advance): ...this.  Make static.  Take a
1379         const_tree and a bool.
1380         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1381
1382 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1383
1384         * config/alpha/alpha-protos.h (function_arg): Delete.
1385         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1386         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
1387         * config/alpha/alpha.c (function_arg): Rename to...
1388         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
1389         a bool.  Delete TARGET_ABI_UNICOSMK code.
1390         (alpha_function_arg_advance): New function.
1391         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1392
1393 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1394
1395         * config/mep/mep-protos.h (mep_function_arg): Delete.
1396         (mep_function_arg_advance): Delete.
1397         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1398         * config/mep/mep.c (mep_function_arg): Make static.  Take a
1399         const_tree and a bool.
1400         (mep_function_arg_advance): Likewise.
1401         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1402
1403 2010-10-09  Richard Guenther  <rguenther@suse.de>
1404
1405         PR tree-optimization/45945
1406         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
1407
1408 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1409
1410         PR tree-optimization/45612
1411         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
1412         Test LABEL_DECLs as well.  Fix formatting issues.
1413         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
1414         whose label is present in NON_SSA_VARS.
1415         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
1416         as well.  Fix formatting issues.
1417         (visit_bb): Fix typos and formatting issue.
1418
1419 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
1420
1421         PR tree-optimization/45950
1422         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
1423         before initializing vno->op.
1424
1425 2010-10-09  Ralf Corsépius <ralf.corsepius@rtems.org>
1426
1427         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
1428         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
1429
1430 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
1431
1432         PR target/45913
1433         * config/i386/i386.c (ix86_binary_operator_ok): Support
1434         "andhi/andsi/anddi" as a zero-extending move.
1435
1436 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1437
1438         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
1439         into a temporary array.
1440
1441 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
1442
1443         PR tree-optimization/45903
1444         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
1445         of {A,L}SHIFTRT of MEM.
1446
1447 2010-10-08  Richard Guenther  <rguenther@suse.de>
1448
1449         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
1450         Re-construct BLOCK_VARS.
1451         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
1452         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
1453         * tree.c (free_lang_data_in_block): Remove.
1454         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
1455         Do not touch the BLOCK tree.
1456         * expr.c (expand_expr_real_1): Allow externals.
1457
1458 2010-10-08  Richard Guenther  <rguenther@suse.de>
1459
1460         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
1461         Do not output BLOCK_SUBBLOCKS.
1462         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
1463         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
1464         Re-construct BLOCK_SUBBLOCKS of parent block.
1465         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
1466         for BINFO_BASE_ACCESSES.
1467
1468 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
1469
1470         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
1471         (TREE_H): Include $(FLAGS_H) instead of options.h.
1472         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
1473         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1474         * common.opt (flag_complex_method, flag_evaluation_order,
1475         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
1476         Variable declarations.
1477         * configure.ac (tm_include_list): Include flags.h instead of options.h.
1478         * configure: Regenerate.
1479         * flags.h: Condition out contents for target libraries.  Include
1480         options.h at end of file.
1481         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
1482         flag_evaluation_order, flag_warn_unused_result): Remove.
1483         * gcc.c (main): Intialize global_options with global_options_init.
1484         * langhooks-def.h (lhd_init_options_struct): Declare.
1485         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1486         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
1487         * langhooks.c (lhd_init_options_struct): New.
1488         * langhooks.h (struct lang_hooks): Add init_options_struct.
1489         Update comment on init_options.
1490         * optc-gen.awk: Generate initializer for global_options_init, not
1491         global_options.
1492         * opth-gen.awk: Condition out structure declarations for target
1493         libraries.  Declare global_options_init.
1494         * opts-common.c: Include flags.h instead of options.h.
1495         * opts.c (flag_warn_unused_result): Remove.
1496         (read_cmdline_options): Take gcc_options parameters.  Pass them to
1497         read_cmdline_option.
1498         (initial_lang_mask, initial_min_crossjump_insns,
1499         initial_max_fields_for_field_sensitive,
1500         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
1501         (init_options_once): New.  Split out of decode_options.
1502         (init_options_struct): New.  Split out of decode_options.
1503         (decode_cmdline_options_to_array_default_mask): New.
1504         (default_options_optimization): New.  Split out of decode_options.
1505         (decode_options): Move most code to other functions.  Update call
1506         to read_cmdline_options.
1507         (finish_options): New.  Split out of decode_options.
1508         * opts.h (decode_options): Add gcc_options parameters.
1509         (init_options_once, init_options_struct,
1510         decode_cmdline_options_to_array_default_mask): New.
1511         * toplev.c (flag_complex_method, flag_ira_algorithm,
1512         flag_ira_region, flag_evaluation_order): Remove.
1513         (general_init): Use global_options_init for initial flag values
1514         for global_dc.
1515         (toplev_main): Call init_options_once, init_options_struct,
1516         lang_hooks.init_options_struct,
1517         decode_cmdline_options_to_array_default_mask and
1518         lang_hooks.init_option before decode_options.  Update arguments to
1519         decode_options.
1520         * tree.h: Include flags.h instead of options.h.
1521
1522 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1523
1524         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1525
1526 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1527
1528         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
1529         Delete.
1530         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1531         (FUNCTION_INCOMING_ARG): Delete.
1532         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
1533         (function_arg_slotno): Likewise.  Take bool arguments.
1534         (sparc_arg_partial_bytes): Update call to it.
1535         (function_arg): Rename to...
1536         (sparc_function_arg_1): ...this.  Take bool arguments.
1537         (sparc_function_arg, sparc_function_incoming_arg): New functions.
1538         (function_arg_advance): Rename to...
1539         (sparc_function_arg_advance): ...this.  Take bool argument.
1540         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
1541         (TARGET_FUNCTION_INCOMING_ARG): Define.
1542
1543 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1544
1545         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
1546         Delete.
1547         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1548         * config/bfin/bfin.c (function_arg_advance): Rename to...
1549         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
1550         and bool arguments.
1551         (function_arg): Rename to...
1552         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
1553         arguments.
1554         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1555
1556 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1557
1558         * config/score/score-protos.h (score_function_arg): Delete.
1559         (score_function_arg_advance): Delete.
1560         * config/score/score3.h (score3_function_arg_advance): Take a
1561         const_tree and a bool.
1562         (score3_function_arg): Likewise.
1563         * config/score/score7.h (score7_function_arg_advance): Likewise.
1564         (score7_function_arg): Likewise.
1565         * config/score/score3.c (score3_classify_arg): Likewise.
1566         (score3_function_arg_advance, score3_function_arg): Likewise.
1567         * config/score/score7.c (score7_classify_arg): Likewise.
1568         (score7_function_arg_advance, score7_function_arg): Likewise.
1569         * config/score/score.c (score_function_arg_advance): Likewise.
1570         (score_function_arg): Likewise.  De-const-ify `cum' argument.
1571         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1572
1573 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1574
1575         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
1576         (s390_function_arg): Delete.
1577         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1578         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
1579         (s390_function_arg_integer): Likewise.
1580         (s390_function_arg_advance): Make static.  Take a const_tree and
1581         a bool.
1582         (s390_function_arg): Likewise.
1583         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1584
1585 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1586
1587         * config/spu/spu-protos.h (spu_function_arg): Delete.
1588         * config/spu/spu.h (FUNCTION_ARG): Delete.
1589         (FUNCTION_ARG_ADVANCE): Move code to ...
1590         * config/spu/spu.c (spu_function_arg_advance): New function.
1591         (spu_function_arg): Make static.  Take a const_tree and a bool.
1592         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
1593         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1594
1595 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1596
1597         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1598
1599 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1600
1601         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
1602         (init_vn_nary_op_from_op): New function.
1603         (init_vn_nary_op_from_stmt): New function.
1604         (vn_nary_op_lookup_1): New function.
1605         (sizeof_vn_nary_op): New function.
1606         (alloc_vn_nary_op_noinit): New function.
1607         (alloc_vn_nary_op): New function.
1608         (vn_nary_op_insert_into): New function.
1609         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
1610         (vn_nary_op_lookup): Likewise.
1611         (vn_nary_op_lookup_stmt): Likewise.
1612         (vn_nary_op_insert_pieces): Likewise.
1613         (vn_nary_op_insert): Likewise.
1614         (vn_nary_op_insert_stmt): Likewise.
1615         (copy_nary): Likewise.
1616         (set_value_id_for_result): New function.
1617         (set_hashtable_value_ids): Call it.
1618
1619 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1620
1621         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1622         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
1623
1624 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
1625
1626         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
1627         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1628
1629 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
1630
1631         PR debug/45656
1632         * cse.c (cse_extended_basic_block): Preserve cc0 info across
1633         debug isnsn.  Skip them when searching for cc0 setter.
1634         (set_live_p): Skip debug insns when searching for cc0 user.
1635
1636 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
1637
1638         PR debug/45673
1639         PR debug/45604
1640         PR debug/45419
1641         PR debug/45408
1642         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
1643         type of MEM_REFs to INTEGER_CSTs.
1644
1645 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
1646
1647         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
1648         m68hc11_print_operand_address.
1649
1650 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
1651
1652         * builtins.c (rewrite_call_expr): Move code to...
1653         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
1654         (rewrite_call_expr_array): New function.
1655         (fold_builtin_sprintf_chk_1): New function.
1656         (fold_builtin_sprintf_chk): Call it.
1657         (gimple_fold_builtin_sprintf_chk): Likewise.
1658         (fold_builtin_snprintf_chk_1): New function.
1659         (fold_builtin_snprintf_chk): Call it.
1660         (gimple_fold_builtin_snprintf_chk): Likewise.
1661         (gimple_rewrite_call_expr): Delete.
1662
1663 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
1664
1665         * config.host: Update copyright year.
1666
1667 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
1668
1669         * config.host (host_lto_plugin_soname): New shell variable.
1670         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
1671         * config.in: Regenerate.
1672         * configure: Regenerate.
1673         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
1674         LTO plugin shared library.
1675
1676 2010-10-07  Richard Henderson  <rth@redhat.com>
1677
1678         * target.h (enum unwind_info_type): Move ...
1679         * coretypes.h: ... here.
1680
1681 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1682
1683         * doc/objc.texi (Fast enumeration protocol): Mention that
1684         'unsigned int' can also be used instead of 'unsigned long' in
1685         countByEnumeratingWithState:objects:count:.
1686
1687 2010-10-07  Martin Jambor  <mjambor@suse.cz>
1688
1689         * tree-sra.c (struct access): New field grp_assignment_write.
1690         (dump_access): Dump grp_assignment_write.
1691         (build_accesses_from_assign): Set grp_assignment_write.
1692         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
1693         (mark_read_status): Renamed to mark_rw_status, individual values
1694         renamed too.
1695         (analyze_access_subtree): Changed type of mark_write to
1696         mark_read_status.  Fixed propagating of mark_read and
1697         mark_write.  Changed benefit estimate.  Updated comment.
1698
1699 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
1700
1701         PR Tree-Vect/45847
1702         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
1703         check for vectype_out returned by get_vectype_for_scalar_type().
1704
1705 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
1706
1707         PR target/45805
1708         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
1709         constraint, add register specifier in instruction template.
1710         (neon_vec_pack_trunc_<mode>): Likewise.
1711         (neon_vec_<US>mult_<mode>): Add register specifier to
1712         instruction template.
1713
1714 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
1715
1716         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
1717         cygwin2.o.
1718         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
1719         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
1720         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
1721         (cygwin2.o): Likewise.
1722         * config/i386/cygwin1.c: Delete file.
1723         * config/i386/cygwin2.c: Likewise.
1724         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
1725         make all {%!mno-cygwin} ones unconditional.
1726         (STARTFILE_SPEC): Likewise.
1727         (REAL_LIBGCC_SPEC): Likewise.
1728         (LIB_SPEC): Likewise.
1729         (CXX_WRAP_SPEC): Likewise.
1730         (LINK_SPEC): Likewise.
1731         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
1732         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
1733         (cygwin_gplusplus_include_dir): Delete now-unused array.
1734         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
1735         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
1736         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
1737         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
1738         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
1739         (cygwin_local_include_dir): Delete now-unused array.
1740         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
1741         (cygwin_cross_include_dir): Delete now-unused array.
1742         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
1743         (cygwin_tool_include_dir): Delete now-unused array.
1744         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
1745         (cygwin_standard_include_dir): Delete now-unused array.
1746         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
1747         (GEN_CVT_ARRAY): Delete now-unused macro definition.
1748         (cvt_to_mingw): Delete now-unused array.
1749         (mingw_scan): Remove prototype of deleted function.
1750         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
1751         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
1752         * doc/invoke.texi (-mcygwin): Don't document removed option.
1753         (-mno-cygwin): Likewise.
1754
1755 2010-10-07  Richard Guenther  <rguenther@suse.de>
1756
1757         * machmode.h (mode_for_vector): Declare.
1758         * stor-layout.c (mode_for_vector): New function, split out from ...
1759         (layout_type): ... here.
1760         * tree-vectorizer.h (current_vector_size): Declare.
1761         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
1762         mask vector type is available.
1763         (get_vectype_for_scalar_type): Rename to ...
1764         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
1765         size argument.
1766         (get_vectype_for_scalar_type): New wrapper around
1767         get_vectype_for_scalar_type_and_size using current_vector_size.
1768         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
1769         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
1770         of vect_analyze_loop here.
1771         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
1772         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
1773         to autodetect.
1774         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
1775         V8SF to V8SI conversion builtin.
1776
1777 2010-10-07  Richard Guenther  <rguenther@suse.de>
1778
1779         * target.def (autovectorize_vector_sizes): New target hook.
1780         * targhooks.c (default_autovectorize_vector_sizes): New function.
1781         * targhooks.h (default_autovectorize_vector_sizes): Declare.
1782         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1783         Document.
1784         * doc/tm.texi: Update.
1785         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
1786         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1787
1788 2010-10-07  Richard Guenther  <rguenther@suse.de>
1789
1790         * target.def (units_per_simd_word): Rename to ...
1791         (preferred_simd_mode): ... this.  Return mode instead of size.
1792         * targhooks.c (default_units_per_simd_word): Rename to ...
1793         (default_preferred_simd_mode): ... this.  Return word_mode.
1794         * targhooks.h (default_preferred_simd_mode): Declare.
1795         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
1796         (arm_preferred_simd_mode): ... this.  Re-implement.
1797         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
1798         (ix86_preferred_simd_mode): ... this.  Re-implement.
1799         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
1800         (sparc_preferred_simd_mode): ... this.  Re-implement.
1801         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
1802         (mips_preferred_simd_mode): ... this.  Re-implement.
1803         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
1804         (rs6000_preferred_simd_mode): ... this.  Re-implement.
1805         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
1806         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
1807         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
1808         * doc/tm.texi: Update.
1809
1810 2010-10-07  Richard Guenther  <rguenther@suse.de>
1811
1812         PR middle-end/45869
1813         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
1814         of pointers.
1815
1816 2010-10-07  Alan Modra  <amodra@gmail.com>
1817
1818         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
1819         rather than sign extension by hand.
1820
1821 2010-10-07  Jan Hubicka  <jh@suse.cz>
1822
1823         PR middle-end/45926
1824         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
1825
1826 2010-10-07  Richard Guenther  <rguenther@suse.de>
1827
1828         PR bootstrap/45914
1829         * configure.ac: Fix typo.
1830         * configure: Regenerated.
1831
1832 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1833
1834         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
1835         define_builtin_std where it's unnecessary.
1836         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
1837
1838 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
1839
1840         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
1841         * doc/tm.texi.in: Regenerate.
1842         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
1843         * targhooks.c (default_class_likely_spilled_p): Don't use the
1844         CLASS_LIKELY_SPILLED_P macro.
1845
1846         * config/arm/arm.md: Update comment.
1847
1848 2010-10-06  Jan Hubicka  <jh@suse.cz>
1849
1850         * ipa.c (cgraph_remove_unreachable_nodes): External references can
1851         always be removed.
1852         (cgraph_externally_visible_p): We can not bring local comdats that
1853         are known to linker; fix handling of internal visibility.
1854         (function_and_variable_visibility): Likewise.
1855
1856 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
1857
1858         PR rtl-optimization/45394
1859         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
1860         (struct rtx_subst_pair): Remove AFTER field.
1861         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
1862         (propagate_for_debug): Remove MOVE parameter and adjust.
1863         (try_combine): In the special case where I2 is a PARALLEL, combine only
1864         destinations of SETs and set I2SRC to the I2 source.
1865         Adjust calls to propagate_for_debug throughout.
1866         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
1867         insns.
1868
1869 2010-10-06  Olivier Hainque  <hainque@adacore.com>
1870
1871         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
1872         switch on insn codes as sequence of ifs.
1873
1874 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
1875
1876         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
1877         be UI_NONE for picochip.
1878         (picochip_option_override): Do not disable exception flags.
1879         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1880         Declare.
1881
1882 2010-10-06  Richard Guenther  <rguenther@suse.de>
1883
1884         * Makefile.in (regmove.o): Depend on $(TARGET_H).
1885
1886 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1887
1888         Implemented fast enumeration for Objective-C.
1889         * c-parser.c (objc_could_be_foreach_context): New.
1890         (c_lex_one_token): Recognize RID_IN keyword in a potential
1891         Objective-C foreach context.
1892         (c_parser_declaration_or_fndef): Added parameter.  Accept
1893         Objective-C RID_IN keyword as terminating a declaration; in that
1894         case, return the declaration in the new parameter.
1895         (c_parser_extenral_declaration): Updated calls to
1896         c_parser_declaration_or_fndef.
1897         (c_parser_declaration_or_fndef): Same change.
1898         (c_parser_compound_statement_nostart): Same change.
1899         (c_parser_label): Same change.
1900         (c_parser_objc_methodprotolist): Same change.
1901         (c_parser_omp_for_loop): Same change.
1902         (c_parser_for_statement): Detect and parse Objective-C foreach
1903         statements.
1904         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
1905         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
1906         fast enumeration parsing code to turn off the c99 error but still
1907         perform checks on the loop declarations.
1908         * c-tree.h (check_for_loop_decls): Updated declaration.
1909         * doc/objc.texi: Document fast enumeration.
1910
1911 2010-10-06  Nick Clifton  <nickc@redhat.com>
1912
1913         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
1914         (MDR_REGNUM): Define.
1915         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
1916         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
1917         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
1918         (REGISTER_NAMES): Add MDR.
1919         (DWARF2_DEBUGGING_INFO): Define to 1.
1920         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1921         (F): New function.  Sets RTX_FRAME_RELATED_P.
1922         (mn10300_gen_multiple_store): Use F.
1923         (expand_prologue): Use F.  Use gen_movsf() to push floating
1924         point registers.
1925         (expand_epilogue): Use gen_movsf() to pop floating point registers.
1926         (mn10300_option_override): Disable combine stack adjust pass.
1927
1928 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
1929
1930         PR target/45901
1931         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
1932         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
1933
1934 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
1935
1936         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
1937         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
1938         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
1939         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
1940         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
1941         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
1942         BUILT_IN_TOUPPER): Mark as leaf.
1943
1944         PR middle-end/45838
1945         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
1946         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
1947         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
1948         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
1949         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
1950         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
1951         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
1952
1953 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
1954
1955         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
1956         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1957         (m68hc11_class_likely_spilled_p): New function.
1958
1959 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
1960
1961         * c-parser.c (c_parser_objc_method_definition): Updated comment.
1962
1963 2010-10-05  Jan Hubicka  <jh@suse.cz>
1964
1965         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
1966         Document.
1967         * opts.c (decode_options): Handle lto partitions.
1968         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
1969         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
1970
1971 2010-10-05  Jan Hubicka  <jh@suse.cz>
1972
1973         * cgraphunit.c (assemble_function): Output thunks and aliases before
1974         the function itself.
1975
1976 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
1977
1978         * config/picochip/picochip.c (picochip_option_override): Disable
1979         exception flags for picochip.
1980
1981 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
1982
1983         * opts-common.c (handle_option, handle_generated_option,
1984         read_cmdline_option, set_option): Add diagnostic_context
1985         parameter.  Update calls among these functions.
1986         (set_option): Don't use global_dc.
1987         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
1988         (decode_options): Pass global_dc to enable_warning_as_error.
1989         (common_handle_option): Pass global_dc to enable_warning_as_error.
1990         (enable_warning_as_error): Add diagnostic_context parameter.
1991         Document parameters.  Don't use global_dc.  Pass
1992         diagnostic_context parameter to handle_generated_option.
1993         * opts.h (set_option, handle_option, handle_generated_option,
1994         read_cmdline_option, enable_warning_as_error): Add
1995         diagnostic_context parameter.
1996         * Makefile.in (lto-opts.o): Update dependencies.
1997         * coretypes.h (struct diagnostic_context, diagnostic_context):
1998         Declare here.
1999         * diagnostic.h (diagnostic_context): Don't declare typedef here.
2000         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
2001         * langhooks-def.h (struct diagnostic_context): Don't declare here.
2002         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
2003         using diagnostic_context typedef.
2004         * langhooks.c (lhd_initialize_diagnostics): Declare using
2005         diagnostic_context typedef.
2006         * langhooks.h (struct diagnostic_context): Don't declare here.
2007         (initialize_diagnostics, print_error_function): Declare using
2008         diagnostic_context typedef.
2009         * lto-opts.c: Include diagnostic.h.
2010         (lto_reissue_options): Pass global_dc to set_option.  Pass
2011         DK_UNSPECIFIED not 0.
2012         * plugin.c (plugins_internal_error_function): Declare using
2013         diagnostic_context typedef.
2014         * plugin.h (struct diagnostic_context): Don't declare here.
2015         (plugins_internal_error_function): Declare using
2016         diagnostic_context typedef.
2017
2018 2010-10-05  Olivier Hainque  <hainque@adacore.com>
2019             Nicolas Roche  <roche@adacore.com>
2020
2021         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
2022         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
2023
2024 2010-10-05  Ira Rosen  <irar@il.ibm.com>
2025
2026         PR tree-optimization/45752
2027         * tree-vect-slp.c (vect_get_mask_element): Remove static
2028         variables, make them function arguments.
2029         (vect_transform_slp_perm_load): Pass new arguments to
2030         vect_get_mask_element.
2031
2032 2010-10-05  Richard Guenther  <rguenther@suse.de>
2033
2034         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
2035         (gimple_mod_pow2): Likewise.
2036         (gimple_mod_subtract): Likewise.
2037         (gimple_ic): Likewise.
2038         (gimple_stringop_fixed_value): Likewise.
2039         * tree-profile.c (tree_init_edge_profiler): Mark profile
2040         functions nothrow and leaf.
2041         (add_abnormal_goto_call_edges): Remove.
2042         (tree_gen_edge_profiler): Work on SSA form.
2043         (tree_gen_ic_profiler): Likewise.  Simplify.
2044         (do_tree_profiling): Update SSA form.
2045         (pass_tree_profile): Remove.
2046         (do_tree_profiling): Likewise.
2047         (gate_tree_profile_ipa): New function.
2048         (pass_ipa_tree_profile): New.
2049         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
2050         state of instrumented functions.
2051         * passes.c (init_optimization_passes): Remove early non-SSA
2052         inlining.  Move profiling after early optimizations.
2053         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
2054         (pass_ipa_early_inline): Likewise.
2055         * tree-pass.h (pass_ipa_early_inline): Remove.
2056         (pass_tree_profile): Likewise.
2057         (pass_ipa_tree_profile): Declare.
2058
2059 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2060             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
2061
2062         * gcc/config/s390/s390.c (z196_cost): New.
2063         (s390_handle_arch_option): Add -march=z196.
2064         (s390_option_override): Use the new cost function and use the z10
2065         defaults also for z196.
2066         (legitimate_reload_constant_p): Adjust comment.
2067         (legitimate_reload_fp_constant_p): New function.
2068         (s390_preferred_reload_class): Distingiush between FP and Int constants.
2069         (preferred_la_operand_p): Avoid la with index on z196.
2070         (s390_adjust_priority): Trigger also for z196.
2071         (s390_issue_rate): Issue rate for z196 is 3.
2072         (s390_z10_fix_long_loop_prediction): Rename to ...
2073         (s390_fix_long_loop_prediction): ... this.
2074         (s390_reorg): Apply the z10 adjustments also for z196.
2075         (s390_loop_unroll_adjust): Do this also for z196.
2076         * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
2077         (enum processor_flags): Add PF_Z196.
2078         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
2079         (TARGET_CPU_Z196, TARGET_Z196): New macros.
2080         * gcc/config.gcc: Enable z196 for --with-arch.
2081         * gcc/config/s390/2817.md: New file.
2082         * gcc/config/s390/2084.md: New type for multiply and add.
2083         * gcc/config/s390/2097.md: Likewise.
2084         * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
2085         (UNSPECV_ATOMIC_OP): New constants.
2086         (fmadddf, fmaddsf): New values for type attribute.
2087         (z196prop): New insn attribute.
2088         (cpu, cpu_facility): Add z196.
2089         (ATOMIC_Z196): New code iterator.
2090         (noxa): New code attribute.
2091         (gk): New mode attribute.
2092         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
2093         Support load zero for fp constants.
2094         (fixuns_truncdddi2, fixuns_trunctddi2)
2095         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
2096         for z196.
2097         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
2098         (popcounthi2, popcountqi2): New expander.
2099         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
2100         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
2101         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
2102         insn definition.
2103         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
2104         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
2105         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
2106         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
2107         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
2108         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
2109         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
2110         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
2111         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
2112         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
2113         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
2114         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
2115         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
2116         Support new z196 instructions.
2117
2118 2010-10-05  Richard Guenther  <rguenther@suse.de>
2119
2120         PR middle-end/45877
2121         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
2122         case where gimplification optimizes away the stmt.
2123
2124 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
2125
2126         PR debug/45849
2127         * var-tracking.c (strip_pointer_flags): New function.
2128         (emit_note_insn_var_location): If rtx_equal_p check failed,
2129         retry on locations simplified with simplify_replace_fn_rtx
2130         and strip_pointer_flags as its callback.
2131
2132 2010-10-04  Jan Hubicka  <jh@suse.cz>
2133
2134         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
2135         (can_refer_decl_in_current_unit_p): ... this one; reverse return
2136         value; handle comdats too.
2137         (canonicalize_constructor_val): Use it; handle function_decls
2138         correctly.
2139         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2140         * gimple.c (get_base_address): Accept all kinds of decls.
2141
2142 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2143
2144         * flags.h (g_switch_value, g_switch_set): Remove.
2145         * opts.c (g_switch_value, g_switch_set): Remove.
2146         * config/g.opt (G): Add Var(g_switch_value).
2147         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
2148         (alpha_option_override): Check global_options_set.x_g_switch_value
2149         instead of g_switch_set.
2150         (alpha_in_small_data_p): Remove cast in comparison with
2151         g_switch_value.
2152         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
2153         g_switch_value to unsigned HOST_WIDE_INT.
2154         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
2155         with g_switch_value.
2156         (frv_handle_option): Don't handle -G here.
2157         (frv_option_override): Check global_options_set.x_g_switch_value
2158         instead of g_switch_set.  Don't modify g_switch_set.
2159         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
2160         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
2161         g_switch_value to unsigned HOST_WIDE_INT.
2162         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
2163         (ia64_option_override): Check global_options_set.x_g_switch_value
2164         instead of g_switch_set.
2165         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
2166         Remove.
2167         (lm32_in_small_data_p): Remove cast in comparison with
2168         g_switch_value.
2169         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
2170         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
2171         HOST_WIDE_INT.
2172         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
2173         (m32r_init): Check global_options_set.x_g_switch_value instead of
2174         g_switch_set.
2175         (m32r_in_small_data_p): Remove cast in comparison with
2176         g_switch_value.
2177         (m32r_file_start): Format g_switch_value with %d.
2178         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
2179         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
2180         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
2181         handle -G here.
2182         (microblaze_option_override): Check
2183         global_options_set.x_g_switch_value instead of g_switch_set.
2184         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
2185         (mips_option_override): Check global_options_set.x_g_switch_value
2186         instead of g_switch_set.
2187         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
2188         (rs6000_file_start): Format g_switch_value with %d.
2189         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
2190         comparisons with g_switch_value.
2191         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2192         global_options_set.x_g_switch_value instead of g_switch_set.
2193         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2194         global_options_set.x_g_switch_value instead of g_switch_set.
2195         * config/score/score.c (score_handle_option): Don't handle -G here.
2196         * config/score/score3.c (score3_option_override): Check
2197         global_options_set.x_g_switch_value instead of g_switch_set.
2198         * config/score/score7.c (score7_option_override): Check
2199         global_options_set.x_g_switch_value instead of g_switch_set.
2200
2201 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
2202
2203         * common.opt (fira-coalesce): Remove.
2204
2205         * doc/invoke.texi (flag_ira_coalesce): Remove.
2206
2207         * ira-color.c (allocno_coalesced_p): Move before
2208         copy_freq_compare_func.
2209         processed_coalesced_allocno_bitmap): Ditto.
2210         (update_conflict_hard_regno_costs): Don't use
2211         ALLOCNO_FIRST_COALESCED_ALLOCNO.
2212         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
2213         (assign_hard_reg): Assume no coalesced allocnos.
2214         (get_coalesced_allocnos_attributes): Remove.
2215         (bucket_allocno_compare_func): Assume no coalesced allocnos.
2216         (push_allocno_to_stack): Ditto.
2217         (remove_allocno_from_bucket_and_push): Use
2218         ira_print_expanded_allocno instead of print_coalesced_allocno.
2219         (push_allocnos_to_stack): Assume uncoalesced allocnos.
2220         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
2221         all_conflicting_hard_regs.
2222         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
2223         (setup_allocno_left_conflicts_size): Ditto.
2224         (put_allocno_into_bucket): Ditto.
2225         (copy_freq_compare_func): Remove.
2226         (copy_freq_compare_func, merge_allocnos): Move before
2227         coalesced_pseudo_reg_freq_compare.
2228         coalesced_allocno_conflict_p): Ditto.
2229         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
2230         parameter.  Assume it true.
2231         (color_allocnos): Assume uncoalesced allocnos.  Use
2232         ira_print_expanded_allocno instead of print_coalesced_allocno.
2233         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
2234         parameter.
2235
2236         * ira.c: Remove comment about coalescing.
2237
2238 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2239
2240         * config/mips/mips.h (target_flags_explicit): Declare for
2241         GENERATOR_FILE.
2242
2243 2010-10-04  Andi Kleen <ak@linux.intel.com>
2244
2245         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
2246         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
2247
2248 2010-10-04  Matthias Klose  <doko@ubuntu.com>
2249
2250         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
2251         multilib osdirname if it exists.
2252         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
2253
2254 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
2255
2256         PR middle-end/45876
2257         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
2258         arg0's type or its unsigned counterpart as utype.  Convert
2259         arg1 to utype unconditionally.
2260
2261 2010-10-04  Julian Brown  <julian@codesourcery.com>
2262
2263         * expr.c (expand_assignment): Add assertion to prevent emitting
2264         null rtx for movmisalign pattern.
2265         (expand_expr_real_1): Likewise.
2266         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
2267         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
2268         (arm_vector_alignment_reachable): New.
2269         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
2270         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
2271         (arm_print_operand): Include alignment qualifier in %A.
2272         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
2273         (movmisalign<mode>): New expander.
2274         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
2275         insn patterns.
2276
2277 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
2278
2279         * optc-gen.awk: Define global_options_set.  Don't define
2280         target_flags_explicit.
2281         * opth-gen.awk: Declare global_options_set.  Define
2282         target_flags_explicit as macro.
2283         * opts-common.c (handle_option): Take opts_set and generated_p
2284         parameters.
2285         (handle_generated_option, read_cmdline_option, set_option): Take
2286         opts_set parameter.
2287         (set_option): Use opts_set instead of hardcoding target_flags and
2288         target_flags_explicit.
2289         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
2290         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
2291         flag_value_profile_transformations_set, flag_peel_loops_set,
2292         flag_branch_probabilities_set, flag_inline_functions_set,
2293         flag_ipa_cp_set, flag_ipa_cp_clone_set,
2294         flag_predictive_commoning_set, flag_unswitch_loops_set,
2295         flag_gcse_after_reload_set): Remove.
2296         (common_handle_option, lang_handle_option, target_handle_option):
2297         Take opts_set parameter.  Assert that it is &global_options_set.
2298         (common_handle_option): Don't set _set variables.  Check opts_set
2299         instead of such variables.
2300         (enable_warning_as_error): Pass &global_options_set to
2301         handle_generated_option.
2302         * opts.h (cl_option_handler_func.handler, set_option,
2303         handle_option, handle_generated_option, read_cmdline_option): Add
2304         opts_set parameters.
2305         (handle_option): Add generated_p parameter.
2306         * config/i386/i386.c (ix86_function_specific_save,
2307         ix86_function_specific_restore): Updat for renaming of
2308         target_flags_explicit field.
2309         * config/i386/i386.opt (target_flags_explicit): Rename to
2310         ix86_target_flags_explicit.
2311         * config/ia64/ia64.c (ia64_override_options_after_change): Check
2312         global_options_set.x_flag_selective_scheduling and
2313         global_options_set.x_flag_selective_scheduling2, not
2314         sel_sched_switch_set.
2315         * flags.h (sel_sched_switch_set,
2316         flag_speculative_prefetching_set): Remove.
2317         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
2318         that it is &global_options_set.
2319         (process_command): Pass &global_options_set to read_cmdline_option.
2320         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
2321         set_option.
2322         * toplev.c (target_flags_explicit): Remove.
2323
2324 2010-10-04  Jan Hubicka  <jh@suse.cz>
2325
2326         PR middle-end/45871
2327         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
2328         use get_ref_base_and_offset to handle references.
2329         (fold_const_aggregate_ref): Update.
2330
2331 2010-10-04  Martin Jambor  <mjambor@suse.cz>
2332
2333         PR tree-optimization/45572
2334         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
2335         ipa_check_create_node_params.
2336         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
2337
2338 2010-10-04  Yao Qi  <yao@codesourcery.com>
2339
2340         * doc/passes.texi: Clean up.
2341
2342 2010-10-03  Ian Lance Taylor  <iant@google.com>
2343
2344         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
2345         referring to a field using a typedef name.
2346         (find_anonymous_field_with_type): New static function.
2347         (convert_to_anonymous_field): New static function.
2348         (convert_for_assignment): If -fplan9-extensions, permit converting
2349         pointer to struct to pointer to anonymous field.
2350         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
2351         (is_duplicate_field): New static function.
2352         (detect_field_duplicates_hash): If -fplan9-extensions, check for
2353         typedef names duplicating field names.
2354         (detect_field_duplicates): Likewise.
2355         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
2356         (C Dialect Options): Document -fplan9-extensions.
2357         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
2358
2359 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2360
2361         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
2362         revision 164914.
2363         (vect_create_data_ref_ptr): Likewise.
2364         * tree-vect-stmts.c (vectorizable_store): Likewise.
2365         (perm_mask_for_reverse): Likewise.
2366         (reverse_vec_elements): Likewise.
2367         (vectorizable_load): Likewise.
2368
2369 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2370
2371         * cppbuiltin.c: New file.
2372         * cppbuiltin.h: New file.
2373         * Makefile.in: Take into account cppbuiltin.{h,c}.
2374
2375 2010-10-03  Andi Kleen <ak@linux.intel.com>
2376
2377         * lto-cgraph.c (input_cgraph): Check for missing sections.
2378
2379 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
2380
2381         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
2382         to nonimmediate_operand.  Force operand 2 to register when allowed.
2383         (*<shiftrt_insn><mode>3_mask): Ditto.
2384         (*<rotate_insn><mode>3_mask): Ditto.
2385
2386 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2387
2388         PR tree-optimization/45720
2389         PR tree-optimization/45764
2390         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2391         Don't accept backwards consecutive accesses.
2392         (vect_create_data_ref_ptr): Disallow negative steps.
2393
2394         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
2395         (perm_mask_for_reverse): Removed.
2396         (reverse_vec_elements): Likewise.
2397         (vectorizable_load): Don't handle negative steps.
2398
2399 2010-10-02  Jan Hubicka  <jh@suse.cz>
2400
2401         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
2402         call destination is known.
2403
2404 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2405
2406         PR target/45820
2407         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
2408         earlier.
2409
2410 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2411
2412         * doc/install.texi (Configuration): Document build_configargs,
2413         host_configargs, target_configargs.
2414
2415 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
2416
2417         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
2418         (*<shiftrt_insn><mode>3_mask): Ditto.
2419         (*<rotate_insn><mode>3_mask): Ditto.
2420
2421 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
2422
2423         PR tree-optimization/44716
2424         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2425         (HOT_TEXT_SECTION_NAME): Define.
2426
2427 2010-10-01  Nick Clifton  <nickc@redhat.com>
2428
2429         * common.opt: Add -fcombine-stack-adjustments.
2430         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
2431         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
2432         flag_combine_stack_adjustments.
2433         * doc/invoke.texi: Document the new option.
2434
2435 2010-10-01  Richard Guenther  <rguenther@suse.de>
2436
2437         PR tree-optimization/45854
2438         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
2439
2440 2010-10-01  Anthony Green  <green@moxielogic.com>
2441
2442         * config.gcc: Fix moxie-*-rtems* configuration.
2443
2444 2010-10-01  Richard Guenther  <rguenther@suse.de>
2445
2446         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
2447         (gen_decl_die): Likewise.
2448
2449 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2450
2451         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
2452         to the function code for SPU MD builtins.
2453         (spu_expand_builtin): Update.
2454         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
2455
2456 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2457
2458         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
2459         sjlj_except_unwind_info.
2460
2461 2010-10-01  Tristan Gingold  <gingold@adacore.com>
2462
2463         * configure.ac: Define the nop insn for avr*-*-*
2464         * configure: Regenerate.
2465
2466 2010-10-01  Alan Modra  <amodra@gmail.com>
2467
2468         PR target/45807
2469         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
2470         extend toc_restore_insn.
2471
2472 2010-09-30  Richard Guenther  <rguenther@suse.de>
2473
2474         PR tree-optimization/43959
2475         * function.c (gimplify_parameters): Use create_tmp_reg instead of
2476         create_tmp_var.
2477
2478 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2479
2480         * config/sh/sh.c (sh_expand_prologue): Set
2481         current_function_static_stack_size.
2482
2483 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2484
2485         * configure.ac: Check for Solaris 8 ld with .hidden support.
2486         * configure: Regenerate.
2487
2488 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2489
2490         PR middle-end/45758
2491         * graphite.c (graphite_initialize): Call scev_reset.
2492
2493 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2494
2495         * sese.h (scev_analyzable_p): Return false for real or floating
2496         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
2497
2498 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2499
2500         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
2501         and ps.
2502         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
2503         domain.
2504         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
2505         Do not allocate ub_expr, it is passed in initialized.
2506
2507 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2508
2509         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
2510         (build_cloog_prog): Dump CLooG input file when
2511         flag_graphite_dump_cloog is set.  This is disabled on trunk.
2512         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
2513
2514 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2515
2516         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
2517         verify_dominators for CDI_POST_DOMINATORS.
2518         * sese.h: Remove comment about CDI_POST_DOMINATORS.
2519         (recompute_all_dominators): Remove call to free_dominance_info
2520         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
2521         for CDI_POST_DOMINATORS.
2522
2523 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2524
2525         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
2526         over pbb_dim_iter_domain.
2527
2528 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2529
2530         * graphite-flattening.c: Fix comments.
2531
2532 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2533
2534         * Makefile.in (OBJS-common): Add graphite-flattening.o.
2535         (graphite-flattening.o): New rule.
2536         * common.opt (floop-flatten): New flag.
2537         * doc/invoke.texi (-floop-flatten): Documented.
2538         * graphite-flattening.c: New.
2539         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
2540         * graphite-poly.h (flatten_all_loops): Declared.
2541         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
2542         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
2543         is set, also set flag_graphite.
2544
2545 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2546
2547         * graphite-poly.c (cloog_checksum): New.
2548         * graphite-poly.h (cloog_checksum): Declared.
2549
2550 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2551
2552         * graphite-poly.c (pbb_number_of_iterations): Removed.
2553         (pbb_number_of_iterations_at_time): Correctly compute the number
2554         of iterations in the transformed loop.
2555         * graphite-poly.h (pbb_number_of_iterations): Removed.
2556
2557 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2558
2559         * graphite-poly.h (lst_update_scattering_seq): Removed.
2560         (lst_update_scattering): Correctly handle outermost loop dewey
2561         renumbering.
2562
2563 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2564
2565         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
2566         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
2567         * graphite-poly.h (lst_niter_for_loop): New.
2568
2569 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2570
2571         * graphite-poly.c (apply_poly_transforms): Do not abort when the
2572         transform read from disk is not legal.  Call fatal_error instead.
2573
2574 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2575
2576         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
2577         (print_scop_header): Removed.  Inlined in the only call place...
2578         (print_scop): ... here.
2579
2580 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2581
2582         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2583
2584 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2585
2586         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
2587
2588 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2589
2590         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
2591         (dot_deps_stmt): Same.
2592         * graphite-poly.c (dot_lst): Same.
2593
2594 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2595
2596         * graphite-blocking.c (scop_do_strip_mine): Do not call
2597         graphite_legal_transform.
2598         (scop_do_block): Same.
2599
2600 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
2601
2602         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
2603         description.
2604
2605 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2606
2607         * tree-scalar-evolution.c (instantiate_array_ref): New.
2608         (instantiate_scev_r): Also handle ARRAY_REFs.
2609
2610 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2611
2612         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2613         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
2614         RESULT_DECL, and FIELD_DECL.  Return false for an
2615         SSA_NAME_IS_DEFAULT_DEF.
2616         (compute_scalar_evolution_in_loop): Do not further analyze the
2617         scalar evolution when no_evolution_in_loop_p returns true.
2618
2619 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2620
2621         * tree-chrec.h (evolution_function_is_affine_p): Do not check
2622         whether CHREC_LEFT is invariant.  A function is affine when
2623         CHREC_RIGHT is invariant.
2624
2625 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2626
2627         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
2628         is_gimple_reg.
2629         (rewrite_degenerate_phi): Same.
2630         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
2631
2632 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
2633
2634         * graphite-scop-detection.c (graphite_can_represent_scev,
2635         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
2636         graphite_can_represent_loop): Remove outermost_loop.
2637
2638 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2639
2640         PR middle-end/45229
2641         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
2642         handle GIMPLE_CALLs with no LHS.
2643
2644 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
2645
2646         * graphite-poly.c (init_graphite_out_file): New.
2647         (init_graphite_in_file): New.
2648         (apply_poly_transforms): Updated to enable reading and writing of
2649         multiple scop files.
2650
2651 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
2652
2653         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
2654         redundant checks.
2655
2656 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2657
2658         * graphite-clast-to-gimple.c (precision_for_value): Adjust
2659         computation of precision by 1.
2660
2661 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
2662
2663         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
2664         (openscop_read_polyhedron_matrix): New.
2665         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
2666         (openscop_read_N_int): Same.
2667         * graphite-poly.c (openscop_read_N_int): New.
2668         (openscop_read_one_int): New.
2669         (openscop_read_N_string): New.
2670         (openscop_read_one_string): New.
2671         (openscop_read_powerset_matrix): New.
2672         (graphite_read_transforms): Remove.
2673         (graphite_read_scatt): New.
2674         (graphite_read_scop_file): New.
2675         (apply_poly_transforms): Updated to call graphite_read_scop_file.
2676
2677 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2678
2679         * graphite-poly.c: Change include order.
2680
2681 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2682
2683         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
2684         (cloog_matrix_nrows): New.
2685
2686 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
2687
2688         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
2689         from matrix lines.
2690         * graphite-poly.c (openscop_print_scattering_function_1): Same.
2691         (print_scattering_function_1): Same.
2692         (openscop_print_pbb_domain): Same.
2693         (openscop_print_scop_context): Same.
2694         (print_scop_context): Same.
2695
2696 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
2697
2698         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
2699         (openscop_print_pdr_polyhedron): Print pph.
2700
2701 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2702
2703         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
2704         priority signed types.
2705
2706 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2707
2708         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
2709         the call to lang_hooks.types.type_for_size.  Call
2710         build_nonstandard_integer_type.
2711
2712 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
2713
2714         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
2715         (openscop_print_polyhedron_matrix): New.
2716         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
2717         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
2718         (openscop_print_pdr_powerset): New.
2719         (openscop_print_powerset_matrix): New.
2720         (openscop_print_scattering_function_1): New.
2721         (print_scattering_function): Add support for scattering names and
2722         OpenScop format.
2723         (graphite_write_transforms): Remove.
2724         (print_pdr_access_layout): Updated to support OpenScop format.
2725         (print_pdr): Same.
2726         (openscop_print_pbb_domain): New.
2727         (print_pbb_body): Added a parameter to allow indicating that pbb_body
2728         is not provided.
2729         (print_pbb): Updated to call the new print_pbb_body.
2730         (openscop_print_scop_context): New.
2731         (print_scop_header): New.
2732         (print_scop): Updated to call print_scop_header.
2733         * graphite-poly.h: Document OpenScop format.
2734
2735 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
2736
2737         * config/cris/m32c.c (cris_memory_move_cost): New.
2738         (cris_register_move_cost): Make static. Change arguments type from
2739         enum reg_class to reg_class_t.
2740         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2741         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2742         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
2743
2744 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
2745
2746         PR target/45843
2747         * config/i386/i386.c (ix86_gimplify_va_arg): Use
2748         INTVAL (XEXP (slot, 1)) as prev_size.
2749
2750 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2751
2752         PR target/45837
2753         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
2754         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
2755         defined.
2756         * config/rs6000/option-defaults.h (toplevel): Change #if
2757         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
2758         global option changes.
2759
2760 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
2761
2762         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
2763
2764         PR tree-optimization/31261
2765         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
2766         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
2767
2768 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2769
2770         PR bootstrap/45796
2771         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
2772         special-casing for generators and turn into ...
2773         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
2774         rule, for better error messages in case of toplevel dependency errors.
2775         (genprog): Add hooks, rename to ...
2776         (genprogerr): ... this, and let genprog also contain check,
2777         checksum, condmd.
2778         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
2779         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
2780         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
2781
2782 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
2783             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2784
2785         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
2786         for GMP, MPFR and MPC.
2787
2788 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2789
2790         * config/sparc/sparc.opt (mimpure-text): Move ...
2791         * config/sol2.opt: ... here.  Correct description.
2792         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
2793         * doc/invoke.texi (Option Summary, SPARC Options): Move
2794         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
2795         (Option Summary, Solaris 2 Options): ... here.
2796         (Submodel Options, Solaris 2 Options): New menu entry.
2797         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
2798         (Solaris 2 Options): ... here.
2799
2800 2010-09-30  Michael Eager  <eager@eagercon.com>
2801
2802         * extend.texi (interrupt_handler): Add MicroBlaze to list.
2803         (save_volatiles): Describe option for MicroBlaze.
2804         * invoke.texi: Add MicroBlaze Options.
2805         * contrib.texi: Add acknowledgment.
2806         * md.texi: Add MicroBlaze d and z constraints.
2807         * install.texi: Add microblaze-*-elf.
2808         * configure.ac: Add microblaze-*-* to target list.
2809         * configure: Regenerate.
2810         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
2811         * config/microblaze/microblaze-protos.h: New.
2812         * config/microblaze/crti.s: New.
2813         * config/microblaze/predicates.md: New.
2814         * config/microblaze/linux.h: New.
2815         * config/microblaze/microblaze.md: New.
2816         * config/microblaze/constraints.md: New.
2817         * config/microblaze/crtn.s: New.
2818         * config/microblaze/microblaze.opt: New.
2819         * config/microblaze/microblaze-c.c: New.
2820         * config/microblaze/t-microblaze: New.
2821         * config/microblaze/microblaze.c: New.
2822         * config/microblaze/microblaze.h: New.
2823
2824 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
2825
2826         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
2827         parse @optional/@required and set the flags as appropriate.
2828
2829 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
2830
2831         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
2832
2833 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
2834
2835         * opt-functions.awk (static_var): Update comment.
2836         (var_ref): Return offsetof expression or -1, not variable address.
2837         * optc-gen.awk: Generate structure field initializers instead of
2838         static variables.  Expect -1 for missing variables instead of null
2839         pointer.  Add gcc_options parameters to generated functions.
2840         * opth-gen.awk: Generate structure fields for static variables.
2841         Add gcc_options parameters to generated functions.
2842         * common.opt (optimize, optimize_size): Add variables.
2843         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
2844         &global_options to cl_target_option_restore.
2845         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
2846         &global_options to cl_optimization_restore, cl_target_option_save
2847         and cl_target_option_restore.
2848         (ix86_set_current_function): Pass &global_options to
2849         cl_target_option_restore.
2850         * config/pdp11/pdp11.h (optimize): Remove.
2851         * config/rs6000/rs6000.h (optimize): Remove.
2852         * config/sh/sh.h (optimize): Remove.
2853         * config/xtensa/xtensa.h (optimize): Remove.
2854         * coretypes.h (struct gcc_options): Declare.
2855         * diagnostic.c (diagnostic_initialize): Initialize
2856         context->option_state.
2857         (diagnostic_report_diagnostic): Pass option_state to
2858         option_enabled hook.
2859         * diagnostic.h (diagnostic_context.option_enabled): Add void *
2860         parameter.
2861         (diagnostic_context.option_state): New field.
2862         * final.c (final_start_function, final, final_scan_insn): Rename
2863         optimize parameter to optimize_p.
2864         * flags.h (optimize, optimize_size): Remove.
2865         * function.c (invoke_set_current_function_hook): Pass
2866         &global_options to cl_optimization_restore.
2867         * gcc.c (driver_handle_option): Take gcc_options parameter.
2868         Assert that it is &global_options.
2869         (process_command): Pass &global_options to read_cmdline_option.
2870         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
2871         option_enabled.
2872         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
2873         &global_options to set_option.
2874         * opts-common.c (handle_option, handle_generated_option,
2875         read_cmdline_option, set_option): Take explicit gcc_options
2876         parameters.  Use option_flag_var.
2877         (option_flag_var): New.
2878         * opts.c (common_handle_option, lang_handle_option,
2879         target_handle_option): Take gcc_options parameter.  Assert that it
2880         is &global_options.
2881         (read_cmdline_options): Pass &global_options to read_cmdline_option.
2882         (print_filtered_help): Use option_flag_var.  Pass &global_options
2883         to option_enabled.
2884         (common_handle_option): Use option_flag_var.
2885         (option_enabled): Take opts parameter.  Use option_flag_var.
2886         (get_option_state): Take gcc_options parameter.  Use
2887         option_flag_var.  Pass gcc_options parameter to option_enabled.
2888         (enable_warning_as_error): Pass &global_options to
2889         handle_generated_option.
2890         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
2891         (cl_option_handler_func.handler): Take gcc_options parameter.
2892         (option_enabled, get_option_state, set_option, handle_option,
2893         handle_generated_option, read_cmdline_option): Take gcc_options
2894         parameters.
2895         * toplev.c (optimize, optimize_size): Remove.
2896         (print_switch_values): Pass &global_options to option_enabled.
2897         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
2898         to get_option_state.
2899         (general_init): Initialize global_dc->option_state.
2900         * tree.c (build_optimization_node): Pass &global_options to
2901         cl_optimization_save.
2902         (build_target_option_node): Pass &global_options to
2903         cl_target_option_save.
2904
2905 2010-09-30  Martin Jambor  <mjambor@suse.cz>
2906
2907         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
2908         zero sized bit-fields.
2909
2910 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2911
2912         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
2913         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
2914         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
2915         (c_parser_objc_class_declaration): Same change.
2916         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
2917         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
2918         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
2919         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
2920         and RID_AT_PUBLIC instead of RID_PUBLIC.
2921         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
2922         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
2923
2924 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
2925
2926         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
2927         Add links to current providers of packages for Solaris and IRIX.
2928
2929 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2930
2931         Merge from 'apple/trunk' branch on FSF servers.
2932         * c-parser.c: Applied change originally in c-parse.in.
2933
2934         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
2935
2936         Radar 4281748
2937         * c-decl.c (start_decl): Check for redeclaration of class name.
2938         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
2939
2940 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
2941
2942         * config/ia64/ia64.c (ia64_builtin_decl): New.
2943         (TARGET_BUILTIN_DECL): Define.
2944         (ia64_builtins): New.
2945         (ia64_init_builtins): Save decls in ia64_builtins.
2946
2947 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
2948
2949         PR target/40457
2950         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
2951         (move2add_use_add3_insn): Likewise.
2952         (reload_cse_move2add): Likewise.
2953         * rtlanal.c (get_full_rtx_cost): New function.
2954         * rtl.h (struct full_rtx_costs): New.
2955         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
2956         costs_add_n_insns): New inline functions.
2957         (get_full_rtx_cost): Declare.
2958
2959         PR c/45054
2960         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
2961         invariants.  Check for reg_equiv_invariant.
2962         (reload): Assert that spilled_pseudos is empty when returning.
2963
2964 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
2965
2966         * config/i386/mingw32.h (TARGET_64BIT): replaced by
2967         TARGET_64BIT_DEFAULT in #if check.
2968
2969 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
2970
2971         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
2972
2973 2010-09-29  Mike Stump  <mikestump@comcast.net>
2974
2975         * config/darwin.h (flag_mkernel): Remove.
2976         (flag_apple_kext): Likewise.
2977
2978 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2979             Jack Howarth <howarth@bromo.med.uc.edu>
2980
2981         * config/darwin.opt (undefined): Add.
2982
2983 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
2984
2985         PR testsuite/45664
2986         * configure.ac: Add --enable-indirect-function option.
2987         * config.gcc: Add default_gnu_indirect_function.
2988         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
2989         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
2990         * varasm.c (do_assemble_alias): Adjust for macro name change.
2991         * configure: Rebuilt.
2992         * doc/install.texi: Document --enable-indirect-function.
2993
2994 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2995
2996         * doc/options.texi (Variable, Var, Init): Update documentation
2997         without reference to VarExists.
2998         (VarExists): Remove.
2999         * common.opt, config/i386/i386.opt, config/linux.opt,
3000         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
3001         Don't use VarExists.
3002
3003 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3004
3005         * optc-gen.awk: Generate global_options initializer instead of
3006         individual variables.  Add x_ prefix to names of structure members.
3007         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
3008         names of structure members.
3009         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3010         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
3011         * doc/tm.texi: Regenerate.
3012         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3013         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3014         * c-parser.c (disable_extension_diagnostics,
3015         restore_extension_diagnostics): Update names of cpp_options members.
3016         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3017         * common.opt (fcompare-debug-second): Don't use Var.
3018         * config/alpha/alpha.h (target_flags): Remove.
3019         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3020         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3021         * config/bfin/bfin.h (target_flags): Remove.
3022         * config/cris/cris.h (target_flags): Remove.
3023         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
3024         cl_target_option members.
3025         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
3026         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
3027         ix86_can_inline_p): Update names of cl_target_option members.
3028         * config/i386/i386.h (ix86_isa_flags): Remove.
3029         * config/lm32/lm32.h (target_flags): Remove.
3030         * config/mcore/mcore.h (mcore_stack_increment): Remove.
3031         * config/mcore/mcore.md (addsi3): Remove extern declaration of
3032         flag_omit_frame_pointer.
3033         * config/mep/mep.h (target_flags): Remove.
3034         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3035         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
3036         * config/mmix/mmix.h (target_flags): Remove.
3037         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
3038         flag_expensive_optimizations): Remove.
3039         * config/s390/s390.h (flag_pic): Remove.
3040         * config/score/score-conv.h (target_flags): Remove.
3041         * config/sh/sh.h (sh_fixed_range_str): Remove.
3042         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
3043         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3044         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3045         * diagnostic.c (diagnostic_initialize): Update names of
3046         diagnostic_context members.
3047         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
3048         warn_system_headers.
3049         (diagnostic_report_warnings_p): Update for new names.
3050         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
3051         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
3052         HARD_FRAME_POINTER_IS_ARG_POINTER.
3053         * flags.h (flag_compare_debug): Declare.
3054         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3055         * opts.c (flag_compare_debug): Define.
3056         (common_handle_option): Update names of diagnostic_context
3057         members.  Handle -fcompare-debug-second.
3058         (fast_math_flags_struct_set_p): Update names of cl_optimization
3059         members.
3060         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3061         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3062         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3063         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3064         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
3065         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
3066         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
3067         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
3068         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
3069
3070 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
3071
3072         * config/picochip/picochip.c (picochip_output_internal_label):
3073         This function can now be called for debug CFI labels, which can come
3074         in the middle of a vliw instruction.  Postpone until end of vliw.
3075
3076 2010-09-29  Richard Guenther  <rguenther@suse.de>
3077
3078         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
3079         (DECL_FILE_SCOPE_P): Use it.
3080         (TYPE_FILE_SCOPE_P): New macro.
3081
3082 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3083
3084         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
3085         a CPP_NAME which is a reserved word, clearly separate cases for
3086         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
3087
3088 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3089
3090         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
3091         token->value with the canonical spelling.  Do exactly like C and
3092         C++ and leave it as it is.
3093
3094 2010-09-28  Richard Henderson  <rth@redhat.com>
3095
3096         * config/alpha/alpha.c (alpha_builtins): New.
3097         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
3098         (alpha_builtin_function): New.
3099         (alpha_add_builtins, alpha_init_builtins): Use it.
3100
3101 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
3102
3103         * doc/standards.texi (Standards): Expanded the section on
3104         Objective-C and Objective-C++.
3105
3106 2010-09-28  DJ Delorie  <dj@redhat.com>
3107
3108         PR target/45800
3109         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
3110         volatile MEMs.
3111
3112 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3113
3114         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
3115         attributes on methods.
3116          (c_parser_objc_method_definition): Handle attributes.
3117         (c_parser_objc_methodproto): Likewise.
3118         (c_parser_objc_maybe_method_attributes): New.
3119         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
3120         missing definition, similar to that in ObjC++.
3121
3122 2010-09-28  Richard Henderson  <rth@redhat.com>
3123
3124         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
3125         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3126         (CONFIG_SJLJ_EXCEPTIONS): Remove.
3127         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
3128         (STACK_CHECK_PROTECT): Likewise.
3129         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
3130         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
3131         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
3132         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
3133         (dwarf2out_assembly_start): Likewise.
3134         * except.c (init_eh): Use targetm.except_unwind_info.
3135         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
3136         (output_one_function_exception_table): Likewise.
3137         * final.c: Unconditionally include dwarf2out.h.
3138         (final_start_function): Unconditionally call dwarf2out routines.
3139         (final_end_function, final_scan_insn): Likewise.
3140         * function.c (expand_function_end): Use targetm.except_unwind_info.
3141         * opts.c (decode_options): Use targetm.except_unwind_info.
3142         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
3143         * target.def (debug_unwind_info, except_unwind_info): New.
3144         * target.h (enum unwind_info_type): New.
3145         * targhooks.c (default_debug_unwind_info): New.
3146         (default_except_unwind_info): New.
3147         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
3148         * targhooks.h: Declare them.
3149         * tree-tailcall.c: Include "target.h"
3150         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
3151         * Makefile.in (tree-tailcall.o): Update.
3152         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
3153         (lhd_gcc_personality): Likewise.
3154
3155         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
3156         (TARGET_EXCEPT_UNWIND_INFO): New.
3157         (DWARF2_UNWIND_INFO): Update.
3158         (TARGET_DEBUG_UNWIND_INFO): New.
3159         * doc/tm.texi: Rebuild.
3160
3161         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
3162         targetm.except_unwind_info.
3163
3164         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
3165         (arm_except_unwind_info): New.
3166         (arm_compute_func_type): Use it.
3167         (arm_expand_prologue, thumb_pushpop): Likewise.
3168         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
3169         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
3170         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
3171         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
3172         (DWARF2_UNWIND_INFO): Remove.
3173         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
3174         (ARM_EABI_UNWIND_TABLES): Remove.
3175
3176         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
3177         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
3178         (ia64_except_unwind_info): New.
3179         (ia64_output_function_prologue): Use it.
3180         (ia64_add_bundle_selector_before): Likewise.
3181         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
3182         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
3183         (TARGET_UNWIND_INFO): Remove.
3184
3185         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
3186
3187 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3188
3189         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
3190         (c_parser_objc_protocol_definition): Likewise.
3191         (c_parser_external_declaration): Provide dummy attribute arguments.
3192         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
3193         (c_parser_objc_class_definition): Handle attributes.
3194         (c_parser_objc_protocol_definition): Likewise.
3195
3196 2010-09-28  Tobias Burnus  <burnus@net-b.de>
3197
3198         PR fortran/40569
3199         PR fortran/40568
3200         * toplev.h (save_decoded_options, save_decoded_options_count):
3201         New global variables.
3202         * toplev.c (save_decoded_options, save_decoded_options_count):
3203         Export variables.
3204
3205 2010-09-28  Ian Lance Taylor  <iant@google.com>
3206
3207         * config/i386/i386.c (ix86_supports_split_stack): Test
3208         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
3209
3210 2010-09-28  Ian Lance Taylor  <iant@google.com>
3211
3212         PR target/45815
3213         * opts.c (decode_options): Don't test whether the target supports
3214         split stack if flag_split_stack == 0.
3215
3216 2010-09-28  Jan Hubicka  <jh@suse.cz>
3217
3218         * builtin-attrs.def (ATTR_LEAF): New attribute.
3219         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
3220         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
3221         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
3222         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
3223         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
3224         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
3225         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
3226         * sync-builtins.def: Annotate all builtins by leaf.
3227         * omp-builtins.def: Annotate all builtins by leaf.
3228         * builtins.def: Annotate relevant builtins with leaf attribute.
3229         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3230         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
3231         leaf.
3232
3233 2010-09-28  Jan Hubicka  <jh@suse.cz>
3234
3235         * tree-ssa-ccp.c (fold_ctor_reference): New function.
3236         (fold_const_aggregate_ref): Use it.
3237         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
3238         into external static.
3239
3240 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3241
3242         PR target/44452
3243         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
3244         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
3245         (ix86_solaris_return_in_memory): Remove.
3246         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
3247         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3248         (TARGET_SUBTARGET_DEFAULT): Redefine.
3249         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
3250         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3251         (TARGET_SUBTARGET_DEFAULT): Redefine.
3252         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
3253         -mvect8-ret-in-mem.
3254         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
3255
3256 2010-09-29  Alan Modra  <amodra@gmail.com>
3257
3258         PR target/45807
3259         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
3260         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
3261         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
3262         Delete.
3263         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
3264         (rs6000_emit_prologue): Don't just create frame save info for r2,
3265         actually save r2.
3266
3267 2010-09-28  Richard Henderson  <rth@redhat.com>
3268
3269         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
3270         when 8 bytes are requested.
3271
3272 2010-09-28  Tristan Gingold  <gingold@adacore.com>
3273
3274         * config/avr/avr.c (expand_prologue): Set
3275         current_function_static_stack_size.
3276
3277 2010-09-28  Tristan Gingold  <gingold@adacore.com>
3278
3279         * config/alpha/alpha.md: Change the initial condition of the
3280         probing loop.
3281
3282 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
3283
3284         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
3285         Split from *avx_<maxmin:code><mode>3.
3286         (*avx_<smaxmin:code><mode>3): Ditto.
3287         * config/i386/i386.md (maxmin): Remove code iterator.
3288
3289 2010-09-27  Ian Lance Taylor  <iant@google.com>
3290
3291         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
3292         requires assembler support for CFI directives.
3293
3294 2010-09-27  Richard Henderson  <rth@redhat.com>
3295
3296         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
3297
3298 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
3299
3300         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
3301         that AFTER is not in the range FROM..TO, inclusive.
3302
3303 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
3304             Bernd Schmidt  <bernds@codesourcery.com>
3305
3306         PR rtl-optimization/45792
3307         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
3308         If not all insns are to be merged, for each edge, stash the
3309         next candidate after the to-be-merged insns before doing the
3310         merge, and use them for the retry at the new insertion point.
3311         Handle CC0 targets when retrying.
3312
3313 2010-09-27  Ian Lance Taylor  <iant@google.com>
3314
3315         * common.opt (fsplit-stack): New option.
3316         * opts.c (decode_options): Set flag_split_stack to final value.
3317         * target.def (supports_split_stack): New hook.
3318         * gcc.c (STACK_SPLIT_SPEC): Define.
3319         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
3320         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
3321         (Code Gen Options): Document -fsplit-stack.
3322         * doc/extend.texi (Function Attributes): Mention no_split_stack.
3323         (Function Attributes): Document no_split_stack.
3324         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
3325         TARGET_SUPPORTS_SPLIT_STACK.
3326         * doc/tm.texi: Rebuild.
3327         * function.c (thread_prologue_and_epilogue_insns): If
3328         flag_split_stack, add split stack prologue.
3329         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
3330         * varasm.c (saw_no_split_stack): New static variable.
3331         (assemble_start_function): Set saw_no_split_stack if the function
3332         has the no_split_stack attribute.
3333         (file_end_indicate_split_stack): New function.
3334         * output.h (file_end_indicate_split_stack): Declare.
3335         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
3336         and function.
3337         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
3338         routines.
3339         * config/i386/i386.c (ix86_option_override_internal): Don't set
3340         expand_builtin_va_start to NULL if -fsplit-stack.
3341         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
3342         -fsplit-stack.
3343         (ix86_va_start): If -fsplit-stack, get overflow pointer from
3344         scratch register set by prologue.
3345         (ix86_code_end): If -fsplit-stack, call
3346         file_end_indicate_split_stack.
3347         (ix86_supports_split_stack): New static function.
3348         (SPLIT_STACK_AVAILABLE): Define.
3349         (split_stack_prologue_scratch_regno): New static function.
3350         (split_stack_fn): New static variable.
3351         (ix86_expand_split_stack_prologue): New function.
3352         (ix86_live_on_entry): New static function.
3353         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
3354         (output_pic_addr_const): Likewise.
3355         (i386_asm_output_addr_const_extra): Likewise.
3356         (ix86_expand_call): Change return type to rtx.  Return the new
3357         call instruction.
3358         (TARGET_SUPPORTS_SPLIT_STACK): Define.
3359         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3360         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
3361         (split_stack_prologue, split_stack_return): New insns.
3362         (split_stack_space_check): New insn.
3363         * config/i386/i386.h (struct machine_function): Add
3364         split_stack_varargs_pointer field.
3365         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
3366         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3367         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3368         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3369         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
3370         Declare.
3371         (ix86_expand_call): Update declaration.
3372
3373 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3374
3375         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
3376         code.  Added byref, which was missing in the list of codes.
3377         Explain that enumeration values are encoded as the integer type
3378         that the compiler uses to store them.  Explain and make examples
3379         of how 'const' interacts with pointers, and the complication of
3380         the encoding of 'const char *'.
3381         (Legacy type encoding): New subsection, explaining that GCC emits
3382         incorrect type encodings for the NeXT runtime for compatibility
3383         reasons.
3384         (@@encode): New subsection, explaining @encode and particularly
3385         that protocol qualifiers are not recognized inside an @encode()
3386         expression.
3387         (Method signatures): New subsection, explaining how method
3388         signatures are encoded.
3389
3390 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3391
3392         Merge from 'apple/trunk' branch on FSF servers.  Removed small
3393         change in build_conditional_expr that had been added when fixing
3394         PR objc/27377 and which did the same check in a less complete way.
3395
3396         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
3397
3398         Radar 4229905
3399         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
3400         looking for objective-c common pointer types.
3401
3402         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
3403
3404         Radar 4154928
3405         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
3406         use their ObjC common type.
3407
3408 2010-09-27  Richard Guenther  <rguenther@suse.de>
3409
3410         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
3411
3412 2010-09-27  Jie Zhang  <jie@codesourcery.com>
3413
3414         * print-tree.c (print_node): Print in-constant-pool.
3415
3416 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
3417
3418         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
3419         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
3420         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
3421         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
3422
3423 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
3424
3425         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
3426         from pro_epilogue_adjust_stack_<mode>_{1,2}.
3427         (pro_epilogue_adjust_stack_<mode>_add): Rename from
3428         pro_epilogue_adjust_stack_<mode>_3.
3429         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
3430         renamed pro_epilogue_adjust_stack_{si,di}_add.
3431         (ix86_expand_prologue): Use indirect functions.  Update for renamed
3432         pro_epilogue_adjust_stack_{si,di}_sub.
3433
3434 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
3435
3436         * config/i386/i386.md (movmsk_df): New insn.
3437         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
3438         sequence for TARGET_SSE_MATH.
3439
3440 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
3441
3442         * config/mips/mips.c (mips_builtin_decls): Declare.
3443         (mips_init_builtins): Store function declarations in
3444         mips_builtin_decls.
3445         (mips_builtin_decl): New function.
3446         (TARGET_BUILTIN_DECL): Define.
3447
3448 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
3449             Richard Henderson  <rth@redhat.com>
3450
3451         * config/i386/cygwin.asm: Include auto-host.h.
3452         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
3453         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
3454         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
3455         alignment code from the 64-bit path.  Use gas local labels.
3456         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
3457         from _di_2.  Remove the useless constant integer argument.
3458         (pro_epilogue_adjust_stack_<mode>_3): New.
3459         (allocate_stack_worker_probe_<mode>): Macroize from
3460         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
3461         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
3462         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
3463         (__chkstk_ms): New function.
3464         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
3465         * gcc/config/i386/t-interix: Likewise.
3466         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
3467         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3468         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
3469         * configure, config.in: Rebuild.
3470
3471 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3472
3473         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
3474         statements because of the return slot optimization.
3475
3476 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
3477
3478         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
3479         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
3480         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3481         (class_likely_spilled_p): Rename to...
3482         (avr_class_likely_spilled_p): ...this. Make static. Change argument
3483         type to reg_class_t.
3484
3485 2010-09-24  Jan Hubicka  <jh@suse.cz>
3486
3487         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
3488         (lto_symtab_resolve_symbols): Set it.
3489         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
3490         store resolution field in cgraph/varpool.
3491         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
3492         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
3493         (cgraph_dump_node): Drop used_from_object_file.
3494         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
3495         (cgraph_function_body_availability): Use decl_replaceable_p.
3496         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
3497         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
3498         cgraph_used_from_object_file_p.
3499         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
3500         cgraph_used_from_object_file_p.
3501         (resolution_used_from_other_file_p): New functoin.
3502         (cgraph_used_from_object_file_p): New predicate.
3503         * cgraph.h: Include plugin-api.h
3504         (struct cgraph_local_info): Remove used_from_object_file.
3505         (struct cgraph_node): Add resolution field.
3506         (struct varpool_node): Likewise; remove used_from_object_file;
3507         reove const_value_known.
3508         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
3509         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
3510         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3511         varpool_used_from_object_file_p): Declare.
3512         (varpool_get_node, varpool_extra_name_alias): Update prototype.
3513         * tree.h (DECL_REPLACEABLE_P): Remove.
3514         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
3515         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
3516         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3517         input_overwrite_node, input_node, input_varpool_node): Stream
3518         resolution.
3519         * expr.c (expand_expr_real_1): Use const_value_known_p
3520         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
3521         const_value_known.
3522         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
3523         (function_and_variable_visibility): Set resolution for local vars
3524         and functions; use varpool_used_from_object_file_p.
3525         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
3526         static functions.
3527         (default_binds_local_p_1): Use resolutoin info.
3528         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
3529         * varpool.c (varpool_get_node): Constify.
3530         (const_value_known_p): Do not use vnode->const_value_known;
3531         use decl_replaceable_p.
3532         (varpool_finalize_decl): Do not set const_value_known.
3533         (cgraph_variable_initializer_availability): Use decl_replaceable_p
3534         (varpool_extra_name_alias): Return new node.
3535         (varpool_used_from_object_file_p): New function.
3536
3537 2010-09-24  Richard Henderson  <rth@redhat.com>
3538
3539         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
3540         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
3541         (do_spill): Use REG_CFA_OFFSET.
3542         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
3543         as appropriate.
3544         (ia64_expand_epilogue): Likewise.
3545         (process_set): Split into ...
3546         (process_cfa_adjust_cfa): this,
3547         (process_cfa_register): this,
3548         (process_cfa_offset): and this new function.
3549         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
3550         instead of REG_FRAME_RELATED_EXPR.
3551
3552 2010-09-24  Olivier Hainque  <hainque@adacore.com>
3553
3554         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
3555
3556 2010-09-24  Jan Hubicka  <jh@suse.cz>
3557
3558         * doc/extend.texi: (attribute leaf): Document.
3559         * tree.c (local_define_builtin): Handle ECF_LEAF.
3560         (build_common_builtin_nodes): Set ECF_LEAF where needed.
3561         * tree.h (ECF_LEAF): New.
3562         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
3563         overwrittable and unavailable functions.
3564         (ipa_init): Put all_module_statics into optimization_summary_obstack.
3565         (copy_global_bitmap): Do not copy all_module_statics.
3566         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
3567         (propagate): Handle overwritable and unavailable leaf functions;
3568         initialize global info for overwritable and unavailable leaf functions;
3569         do not free all module statics.
3570         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
3571         local statics.
3572         * calls.c (flags_from_decl_or_type): Handle leaf.
3573         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
3574         abnormal gotos.
3575
3576 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
3577
3578         * gengtype.c: Reindented.
3579         * gengtype.h: Reindented.
3580         * gengtype-parse.c: Reindented.
3581
3582 2010-09-24  Jan Hubicka  <jh@suse.cz>
3583
3584         PR tree-optimization/45738
3585         PR tree-optimization/45741
3586         * expr.c (string_constant): Allow CONST_DECL too;
3587         check that DECL_INITIAL is set.
3588         * varpool.c (const_value_known_p): Only look into VAR_DECL
3589         and CONST_DECL.
3590
3591 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
3592
3593         * common.opt (undef): New.
3594
3595 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
3596
3597         PR middle-end/45234
3598         * rtl.h (enum global_rtl_index): Add
3599         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
3600         (LAST_VIRTUAL_POINTER_REGISTER): Define.
3601         (virtual_preferred_stack_boundary_rtx,
3602         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
3603         (LAST_VIRTUAL_REGISTER): Increase by one.
3604         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
3605         instead of LAST_VIRTUAL_REGISTER.
3606         * function.c (instantiate_new_reg): Handle
3607         virtual_preferred_stack_boundary_rtx.
3608         * emit-rtl.c (init_virtual_regs): Handle
3609         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3610         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
3611         * explow.c (round_push): If crtl->preferred_stack_boundary
3612         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
3613         virtual_preferred_stack_boundary_rtx alignment instead of
3614         crtl->preferred_stack_boundary alignment.
3615         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
3616         macros.  Never decrease crtl->preferred_stack_boundary,
3617         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
3618         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
3619         stack_pointer_delta in dynamic allocation, even when size
3620         is constant.
3621         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
3622         macro.
3623         * print-rtl.c (print_rtx): Handle
3624         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
3625         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
3626         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
3627         * config/frv/frv.c (frv_emit_movsi): Likewise.
3628         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
3629         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
3630         Likewise.
3631
3632         Revert:
3633         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
3634
3635         PR middle-end/45234
3636         * calls.c (expand_call): Make sure that all variable sized
3637         adjustments are multiple of preferred stack boundary after
3638         stack alignment.
3639
3640 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
3641             Dominique Dhumieres  <dominiq@lps.ens.fr>
3642
3643         PR bootstrap/45751
3644         * gcc/config/darwin-driver.c (darwin_default_min_version):
3645         Adjust size passed to memcpy in two places.
3646
3647 2010-09-24  Richard Guenther  <rguenther@suse.de>
3648
3649         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
3650         Make sure to not call set_type_context with error_mark_node.
3651         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
3652
3653 2010-09-24  Richard Guenther  <rguenther@suse.de>
3654
3655         * Makefile.in (OBJS-onestep): Remove.
3656         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
3657         (libbackend.a): Remove onestep support.
3658         (libbackend.o): Remove.
3659         * configure.ac (--enable-intermodule): Remove.
3660         * configure: Regenerate.
3661
3662 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
3663
3664         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
3665         reaching the end of a block if it occurs at a DEBUG_INSN.
3666
3667 2010-09-09  Tristan Gingold  <gingold@adacore.com>
3668
3669         PR target/44242
3670         * config/vms/vms-crt0-64.c: Removed.
3671         * config/vms/vms-crt0.c: Removed.
3672         * config/vms/vms-psxcrt0-64.c: Removed.
3673         * config/vms/vms-psxcrt0.c: Removed.
3674         * config/vms/vms-ucrt0.c: New file.
3675         * config/vms/t-vms64: Removed.
3676         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
3677         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
3678         * config.gcc (alpha-dec-vms): Use t-vms.
3679
3680 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
3681
3682         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
3683         underfull hbox in DVI output.
3684         (-fobjc-class-cxx-cdtors): Same change.
3685         (-fobjc-exceptions): Tidied up documentation.  Explain what the
3686         option does, but moved the (lenghty) description of the exception
3687         syntax into objc.texi.
3688         (-fobjc-gc): Explain that the option is not useful with the GNU
3689         runtime.
3690         (-fzero-link): Explain that the GNU runtime always works in
3691         "zero-link" mode.
3692         * doc/objc.texi: All sections: simplified @node declarations
3693         removing specification of next, previous, up node.
3694         (Objective-C): Updated introduction.
3695         (Garbage Collection): Updated.  The bohem-gc library is now
3696         included in gcc itself.  Mention that this section only applies to
3697         the GNU Objective-C runtime.
3698         (compatibility_alias): Small tidy up.
3699         (Exceptions): New section mostly containing text previously in the
3700         description of the -fobjc-exception command-line option.
3701         (Synchronization): Same.
3702
3703 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
3704
3705         * config/i386/i386.md (ix86_code_end): Move the initialization of
3706         xops array near the consumer.  Use AX_REG and SP_REG instead of
3707         numerical constants.
3708
3709 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
3710
3711         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
3712         method [methodname]' for an Objective-C method instead of the less
3713         satisfactory 'too many arguments to function' (with no method name).
3714
3715 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
3716
3717         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
3718         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
3719         (execute_update_addresses_taken): Remove parameter.  Execute the
3720         optimization unconditionally.
3721         * passes.c (execute_function_todo): Call execute_update_addresses_taken
3722         unconditionally if TODO_rebuild_alias is set, else only when optimizing
3723         if TODO_update_address_taken is set.
3724
3725 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
3726
3727         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3728         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
3729         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3730         (arm_output_addr_const_extra): Make static.
3731
3732 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
3733
3734         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
3735         define as unspec_volatile.
3736         ("nops"): Define as unspec_volatile. Use fputs to write to
3737         asm_out_file directly.  Output NOPs on separate lines using while loop.
3738         * config/i386/i386.c (ix86_code_end): Use fputs to write to
3739         asm_out_file directly.  Output NOPs on separate lines using while loop.
3740
3741 2010-09-23  Richard Guenther  <rguenther@suse.de>
3742
3743         PR tree-optimization/45565
3744         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3745         Make sure to adjust the fndecl before replacing the stmt.
3746
3747 2010-09-23  Richard Guenther  <rguenther@suse.de>
3748
3749         PR middle-end/45750
3750         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
3751         gimplifying MEM_REF.
3752
3753 2010-09-23  Alan Modra  <amodra@gmail.com>
3754
3755         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
3756         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
3757
3758 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
3759
3760         PR rtl-optimization/44374
3761         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
3762         * df-core.c (df_set_bb_dirty): Set it.
3763         * ifcvt.c (find_memory): Remove function.
3764         (dead_or_predicable): Use can_move_insns_across.
3765         * df.h (can_move_insns_across): Declare function.
3766         * cfgcleanup.c (block_was_dirty): New static variable.
3767         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
3768         than df_get_bb_dirty.
3769         (try_head_merge_bb): New static function.
3770         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
3771         is set.
3772         * df-problems.c: Include "target.h"
3773         (df_simulate_find_uses): New static function.
3774         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
3775         (find_memory, find_memory_store): New static functions.
3776         (can_move_insns_across): New function.
3777         * Makefile.in (df-problems.o): Update dependencies.
3778
3779 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
3780
3781         PR java/44095
3782         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
3783         is specified and the suffix of the file isn't ".c".
3784         * config/sparc/linux64.h (ASM_SPEC): Likewise.
3785
3786 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3787
3788         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
3789         * doc/cppopts.texi: Fix markup of index entry.
3790         * doc/extend.texi (Constructing Calls): Fix markup of
3791         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
3792         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
3793         (Vague Linkage, C++ Attributes): Fix markup of index entries and
3794         keywords.
3795         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
3796         avoid long lines.
3797         (C Dialect Options, C++ Dialect Options, Warning Options)
3798         (Debugging Options, Spec Files, Darwin Options)
3799         (i386 and x86-64 Options, MIPS Options)
3800         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
3801         index entries, avoid abbreviations, allow URLs to wrap, avoid
3802         long lines, avoid overlong pages from long @itemx lists.
3803         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
3804         * doc/standards.texi (Standards): Likewise.
3805         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
3806
3807 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
3808
3809         * opts-common.c (prune_options): Make static.  Work with decoded
3810         options.
3811         (decode_cmdline_options_to_array): Call prune_options.  Don't
3812         resize option array here.
3813         * opts.h (prune_options): Remove prototype.
3814         * gcc.c (process_command): Take decoded options; don't call
3815         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
3816         (main): Call decode_cmdline_options_to_array here instead of
3817         prune_options.  Update call to process_command.
3818         * config/darwin-driver.c: Include opts.h.
3819         (darwin_default_min_version): Work with decoded options.  Don't
3820         handle -b or -V here.
3821         * config/darwin.h (darwin_default_min_version): Update prototype.
3822         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
3823         darwin_default_min_version.
3824         * config/i386/cygwin.h (mingw_scan): Update prototype.
3825         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
3826         * config/i386/cygwin1.c: Include opts.h.
3827         (mingw_scan): Work with decoded options.
3828         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
3829         * config/t-darwin (darwin-driver.o): Update dependencies.
3830
3831 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
3832
3833         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
3834         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
3835         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
3836         -force-link, -force-link=, -language, -language=,
3837         -library-directory, -library-directory=, -no-canonical-prefixes,
3838         -no-standard-libraries, -no-warnings, -optimize, -output,
3839         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
3840         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
3841         -print-file-name=, -print-libgcc-file-name,
3842         -print-multi-directory, -print-multi-lib,
3843         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
3844         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
3845         -profile, -save-temps, -shared, -specs, -specs=, -static,
3846         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
3847         symbolic): New.
3848         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
3849         * gcc.c (A Short Introduction to Adding a Command-Line Option):
3850         Remove comment.
3851         (cc1_options): Correct specs for passing down --help,
3852         --target-help and --help=*.  Add spec for passing down --version.
3853         (struct option_map, option_map, target_option_translations,
3854         translate_options): Remove.
3855         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
3856         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
3857         OPT_fhelp_ and OPT_ftarget_help.
3858         (process_command): Don't call translate_options.  Call
3859         decode_cmdline_options_to_array before checking for
3860         -no-canonical-prefixes using decoded options.
3861         * opts-common.c (tm.h): Update comment on #include.
3862         (find_opt): Allow abbreviations of long options.
3863         (struct option_map, option_map): New.
3864         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
3865         and -mno handling.
3866         (target_option_translations): New.
3867         (decode_cmdline_options_to_array): Handle
3868         TARGET_OPTION_TRANSLATE_TABLE in driver.
3869         * opts.c (common_handle_option): Don't handle OPT_fhelp,
3870         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
3871
3872 2010-09-22  Richard Guenther  <rguenther@suse.de>
3873
3874         * tree-inline.c (optimize_inline_calls): Schedule cleanups
3875         only if we inlined something.  Block compaction and conditional
3876         folding are done by cfg cleanup.  Schedule update-address-taken.
3877         (tree_function_versioning): Remove redundant call to number_blocks.
3878         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
3879         folding is done by cfg cleanup.
3880         * passes.c (init_optimization_passes): Remove update-address-taken
3881         pass after IPA inlining.
3882
3883 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
3884
3885         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
3886         to update conditions. Fix reg_mode[] check.
3887
3888 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
3889
3890         * config/picochip/picochip.md (movhicc): Use expand to check whether
3891         movhicc is available and split it after reload.
3892
3893 2010-09-22  Richard Guenther  <rguenther@suse.de>
3894
3895         * tree-ssanames.c (release_dead_ssa_names): Do not remove
3896         callee edges here.
3897         * passes.c (init_optimization_passes): Remove early CFG cleanup.
3898         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
3899         (pass_cleanup_cfg): Likewise.
3900         (execute_fixup_cfg): Cleanup.
3901         * tree-pass.h (pass_cleanup_cfg): Remove.
3902
3903 2010-09-22  Martin Jambor  <mjambor@suse.cz>
3904
3905         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
3906         builtins if it is true.
3907         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
3908         parameter.
3909
3910 2010-09-22  Martin Jambor  <mjambor@suse.cz>
3911
3912         * tree-sra.c (struct access): New field grp_no_warning.
3913         (create_access_replacement): Set TREE_NO_WARNING according to
3914          grp_no_warning.
3915         (create_artificial_child_access): Use build_ref_for_model and set
3916         grp_no_warning if build_user_friendly_ref_for_offset fails.
3917         (propagate_subaccesses_across_link): Likewise.
3918
3919 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
3920
3921         PR target/35664
3922         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
3923         ('f'): Likewise.
3924
3925 2010-09-22  Tristan Gingold  <gingold@adacore.com>
3926
3927         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
3928
3929 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
3930
3931         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
3932         * config/i386/i386.c (decide_alg): Update for rename.
3933
3934 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
3935
3936         PR rtl-optimization/45739
3937         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
3938         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
3939
3940 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
3941
3942         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
3943         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
3944         Remove.
3945         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
3946         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3947
3948 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3949
3950         PR objc/23710
3951         * c-parser.c (c_parser_objc_method_definition): Check the return
3952         value of objc_start_method_definition and if false is returned,
3953         parse the method definition but emit no code.
3954
3955 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3956
3957         PR objc/25965
3958         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
3959         call objc_get_interface_ivars ().
3960
3961 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
3962
3963         PR target/45694
3964         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
3965         static chain-register is used for 64-bit.
3966
3967 2010-09-21  Richard Guenther  <rguenther@suse.de>
3968
3969         * dwarf2out.c (is_cu_die): New function.
3970         (add_pubtype): Use it.
3971         (gen_subprogram_die): Likewise.
3972         (gen_struct_or_union_type_die): Likewise.
3973         (dwarf2out_finish): Likewise.
3974         (comp_unit_die): Rename to ...
3975         (single_comp_unit_die): ... this.
3976         (comp_unit_die): New function lazily constructing and
3977         returning single_comp_unit_die.
3978         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
3979         base_type_die, subrange_type_die, modified_type_die,
3980         lower_bound_default, add_bound_info, add_prototyped_attribute,
3981         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
3982         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
3983         force_decl_die, gen_namespace_die, dwarf2out_decl,
3984         dwarf2out_start_source_file, dwarf2out_end_source_file,
3985         prune_unused_types, dwarf2out_finish): Use it.
3986         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
3987         the global list of translation-unit decls.
3988         (dwarf2out_init): Do not create single_comp_unit_die here.
3989         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
3990
3991 2010-09-21  Richard Guenther  <rguenther@suse.de>
3992
3993         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
3994         for bool for C++.
3995
3996 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
3997
3998         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
3999         (qhs_extenddi_cstr): Likewise.
4000         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
4001         them for the source operand.
4002
4003 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
4004
4005         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
4006         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
4007         (ix86_split_ashr): Ditto.
4008         (ix86_split_lshr): Ditto.
4009
4010 2010-09-21  Richard Guenther  <rguenther@suse.de>
4011
4012         PR tree-optimization/45580
4013         * tree-ssa-propagate.c (substitute_and_fold): Always replace
4014         regular uses.
4015         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
4016         virtuals fold the call into a regular indirect one.
4017
4018 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4019
4020         PR rtl-optimization/42775
4021         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
4022         scheduling is enabled.
4023
4024 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
4025
4026         PR rtl-optimization/45728
4027         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
4028         gen_lowpart_common first and if that fails, force_reg first
4029         before calling gen_lowpart.
4030
4031         PR middle-end/45678
4032         * cfgexpand.c (expand_one_stack_var_at): Use
4033         crtl->max_used_stack_slot_alignment as max_align, instead
4034         of maximum of that and PREFERRED_STACK_BOUNDARY.
4035         Don't call update_stack_alignment.
4036
4037 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4038
4039         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
4040         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
4041         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
4042         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
4043         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
4044         (build_nonstandard_integer_type): Likewise.
4045         (build_range_type_1): New function, built from...
4046         (build_range_type): ...this.  Call build_range_type_1.
4047         (build_nonshared_range_type): New function.
4048         (build_array_type_1): New function, built from...
4049         (build_array_type: ...this.  Call build_array_type_1.
4050         (build_nonshared_array_type): New function.
4051         * tree.h (build_nonshared_range_type): Declare.
4052         (build_nonshared_array_type): Likewise.
4053
4054 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
4055
4056         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
4057         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4058         (arm_class_likely_spilled_p): New function.
4059
4060 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
4061
4062         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
4063         indirect functions.
4064         (ix86_split_ashl): Ditto.
4065         (ix86_split_ashr): Ditto.
4066         (ix86_split_lshr): Ditto.
4067         (ix86_adjust_counter): Ditto.
4068
4069 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4070
4071         * c-family/c-common.h (constant_string_class): Documented with
4072         comment identical to the one already in c-common.c.
4073
4074 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
4075
4076         * dwarf2out.c (any_cfis_emitted): New static variable.
4077         (add_fde_cfi): Set it.
4078         (dwarf2out_frame_debug): Clear it before processing,
4079         if it is set afterwards, flush any queued reg saves.
4080
4081         PR debug/45124
4082         * dwarf2out.c (add_accessibility_attribute): Assume
4083         DW_ACCESS_private as the default for dwarf_version > 2
4084         and DW_TAG_class_type parent.
4085         (gen_inheritance_die): Assume DW_ACCESS_public as the default
4086         for dwarf_version > 2 and parent other than DW_TAG_class_type.
4087
4088 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
4089
4090         PR target/45726
4091         * arm.md (arm_movt): Only enable on machines with MOVT.
4092
4093 2010-09-20  Jie Zhang  <jie@codesourcery.com>
4094
4095         * config/arm/arm.c (arm_address_offset_is_imm): New.
4096         (arm_early_store_addr_dep): New.
4097         (arm_early_load_addr_dep): New.
4098         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
4099         (arm_early_load_addr_dep): Declare.
4100         (arm_address_offset_is_imm): Declare.
4101         * config/arm/cortex-m4.md: New file.
4102         * config/arm/cortex-m4-fpu.md: New file.
4103         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
4104         (attr generic_sched): Exclude cortexm4.
4105         (attr generic_vfp): Exclude cortexm4.
4106
4107 2010-09-20  Richard Guenther  <rguenther@suse.de>
4108
4109         PR middle-end/45704
4110         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
4111
4112 2010-09-20  Jan Hubicka  <jh@suse.cz>
4113
4114         PR tree-optimize/45605
4115         * cgraph.h (const_value_known_p): Declare.
4116         (varpool_decide_const_value_known): Remove.
4117         * tree-ssa-ccp.c (get_base_constructor): Use it.
4118         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
4119         * expr.c (string_constant): Likewise.
4120         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
4121         * ipa.c (ipa_discover_readonly_nonaddressable_var,
4122         function_and_variable_visibility): Likewise.
4123         * gimplify.c (gimplify_call_expr): Likewise.
4124         * gimple-fold.c (get_symbol_constant_value): Likewise.
4125         * varpool.c (varpool_decide_const_value_known): Replace by...
4126         (const_value_known_p): ... this one; handle other kinds of DECLs
4127         too and work for automatic vars.
4128         (varpool_finalize_decl): Use const_value_known_p.
4129
4130 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
4131
4132         PR target/45726
4133         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
4134
4135 2010-09-20  Richard Guenther  <rguenther@suse.de>
4136
4137         PR tree-optimization/45705
4138         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
4139
4140 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
4141
4142         PR rtl-optimization/45695
4143         * combine.c (try_combine): When splitting a two set pattern,
4144         make sure the pattern which will be put into i2 doesn't use REGs
4145         or MEMs set by insns in between i2 and i3.
4146
4147 2010-09-19  Jan Hubicka  <jh@suse.cz>
4148
4149         PR lto/44246
4150         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
4151         processing same node twice.
4152
4153 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
4154
4155         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
4156         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4157         (bfin_class_likely_spilled_p): New function
4158
4159 2010-09-19  Ira Rosen  <irar@il.ibm.com>
4160
4161         PR tree-optimization/45714
4162         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
4163         created in vectorizable_call instead of the original statement in
4164         def stmt updates.
4165
4166 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
4167
4168         * config/i386/i386-protos.h (split_double_mode): New prototype.
4169         (split_di, split_ti): Remove prototypes.
4170         * config/i386/i386.c (split_double_mode): New function.
4171         (split_di, split_ti): Remove.
4172         (ix86_expand_branch): Use split_double_mode.
4173         (ix86_split_to_parts): Ditto.
4174         (ix86_split_ashl): Ditto.
4175         (ix86_split_ashr): Ditto.
4176         (ix86_split_lshr): Ditto.
4177         (ix86_force_to_memory): Ditto.
4178         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
4179
4180 2010-09-18  Jan Hubicka  <jh@suse.cz>
4181
4182         PR tree-optimization/45453
4183         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
4184         virtual functions are reachable.
4185         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
4186         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
4187         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
4188         when modifying function.
4189
4190 2010-09-18  Jan Hubicka  <jh@suse.cz>
4191
4192         PR tree-optimization/45605
4193         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
4194         * gimple-fold.c (static_object_in_other_unit_p): New function.
4195         (canonicalize_constructor_val): Use it.
4196         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
4197         returning NULL.
4198         (gimple_fold_obj_type_ref_known_binfo): Use
4199         static_object_in_other_unit_p.
4200
4201 2010-09-18  Richard Guenther  <rguenther@suse.de>
4202
4203         PR tree-optimization/45709
4204         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
4205         insertions until after all PHI nodes of the block are processed.
4206
4207 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
4208
4209         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
4210
4211 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
4212
4213         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
4214
4215 2010-09-18  Richard Guenther  <rguenther@suse.de>
4216
4217         PR tree-optimization/45709
4218         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
4219
4220 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
4221
4222         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
4223         (dot_deps_stmt): Same.
4224         * graphite-poly.c (dot_lst): Same.
4225         * graphite-scop-detection.c (dot_all_scops): Same.
4226         (dot_scop): Same.
4227
4228 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
4229
4230         Revert:
4231         2009-12-16  Ben Elliston  <bje@au.ibm.com>
4232
4233         * tree-data-ref.c (dot_rdg_1): Added back.
4234         (dot_rdg): Same.  Added "#if 0" around system call.
4235
4236 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4237             Richard Henderson  <rth@redhat.com>
4238
4239         * config/i386/i386.c (initial_ix86_tune_features): Add
4240         X86_TUNE_PAD_SHORT_FUNCTION.
4241         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
4242         (ix86_count_insn): New.
4243         (ix86_pad_short_function): Likewise.
4244         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
4245
4246         * config/i386/i386.h (ix86_tune_indices): Add
4247         X86_TUNE_PAD_SHORT_FUNCTION.
4248         (TARGET_PAD_SHORT_FUNCTION): New.
4249
4250         * config/i386/i386.md (UNSPEC_NOPS): New.
4251         (nops): Likewise.
4252
4253 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4254
4255         PR middle-end/45234
4256         * calls.c (expand_call): Make sure that all variable sized
4257         adjustments are multiple of preferred stack boundary after
4258         stack alignment.
4259
4260 2010-09-17  DJ Delorie  <dj@redhat.com>
4261
4262         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
4263         passed an invalid value, print an error instead of ICEing.
4264         (valid_psw_flag): New.
4265         (rx_expand_builtin): Call it for setpsw/clrpsw.
4266         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
4267
4268         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
4269         (bitclr_in_memory): Likewise.
4270         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
4271
4272 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
4273
4274         PR middle-end/45678
4275         * cfgexpand.c (update_stack_alignment): New.
4276         (get_decl_align_unit): Use it.
4277         (expand_one_stack_var_at): Call update_stack_alignment.
4278
4279 2010-09-17  Richard Guenther  <rguenther@suse.de>
4280
4281         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
4282         Properly copy the read string.
4283
4284 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
4285
4286         * doc/options.texi (Variable): Document.
4287         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
4288         generate target_flags declarations explicitly.  Don't define
4289         VarExists variables for the driver.
4290         * common.opt (target_flags): New Variable record.
4291         (flag_dump_unnumbered, flag_dump_unnumbered_links,
4292         flag_var_tracking, flag_var_tracking_assignments,
4293         flag_var_tracking_assignments_toggle): Don't mark variables with
4294         VarExists.
4295         * config/i386/i386.c (ix86_isa_flags): Don't define here.
4296         * config/i386/i386.opt (ix86_isa_flags): Define here.
4297         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
4298         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
4299         VarExists.
4300         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
4301         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
4302         Only define for generator programs.
4303         * rtlanal.c (target_flags): Remove.
4304         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
4305         flag_var_tracking_assignments_toggle): Remove.
4306
4307 2010-09-17  Michael Matz  <matz@suse.de>
4308
4309         PR tree-optimization/43432
4310         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4311         Accept backwards consecutive accesses.
4312         (vect_create_data_ref_ptr): If step is negative generate
4313         decreasing IVs.
4314         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
4315         (perm_mask_for_reverse, reverse_vec_elements): New functions.
4316         (vectorizable_load): Handle loads with negative steps when easily
4317         possible.
4318
4319 2010-09-03  Jan Hubicka  <jh@suse.cz>
4320
4321         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
4322
4323 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
4324
4325         * config/v850/v850.c (v850_function_value_regno_p): Make static.
4326         Adjust comments. Declare.
4327         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4328         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
4329
4330 2010-09-17  Richard Guenther  <rguenther@suse.de>
4331
4332         * common.opt (combine): Remove.
4333         * gcc.c (default_compilers): Remove specs testing combine.
4334         The C compilers no longer can combine.
4335         (option_map): Remove -combine.
4336         (display_help): Remove -combine.
4337         (driver_handle_option): Remove OPT_combine handling.
4338         (compile_input_file_p): Remove.
4339         (do_spec): Remove code concerning combine.
4340         (main): Likewise.
4341         * doc/invoke.texi: Remove traces of -combine.
4342         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
4343
4344 2010-09-17  Richard Guenther  <rguenther@suse.de>
4345
4346         PR middle-end/45678
4347         * builtins.c (fold_builtin_memory_op): Always properly adjust
4348         alignment of memory accesses.
4349
4350 2010-09-16  Jan Hubicka  <jh@suse.cz>
4351
4352         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
4353         processing clone.
4354
4355 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
4356
4357         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
4358
4359         * config/i386/i386.c (predict_jump): Add prototype.
4360         (flag_opts): Add -m8bit-idiv.
4361         (ix86_split_idivmod): New.
4362
4363         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
4364         Add 2 splitters for SI/DI mode divide.
4365         (divmod<mode>4_1): New pattern.
4366         (udivmod<mode>4_1): Likewise.
4367         (testdi_ccno_1): Likewise.
4368
4369         * config/i386/i386.opt (m8bit-idiv): New.
4370
4371         * doc/invoke.texi: Document -m8bit-idiv.
4372
4373 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
4374
4375         PR bootstrap/45680
4376         * config/i386/i386.c (min_insn_size): Moved out of the
4377         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
4378
4379 2010-09-16  Jan Hubicka  <jh@suse.cz>
4380
4381         * lto-cgraph.c (lto_output_node): Fix handling of clones.
4382         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
4383         unreachable clones with reachable clones.
4384         * tree-inline.c (copy_bb): Fix sanity checking when producing
4385         unreachable clone.
4386
4387 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
4388
4389         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
4390         (TARGET_MEMORY_MOVE_COST): Define.
4391         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
4392
4393 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
4394
4395         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
4396         maybe_tidy_empty_bb.
4397
4398         Revert:
4399         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
4400         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4401
4402 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
4403
4404         * target.def (target_option.optimization): New hook.
4405         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
4406         TARGET_OPTION_OPTIMIZATION hook.
4407         * doc/tm.texi: Regenerate.
4408         * hooks.c (hook_void_int_int): New.
4409         * hooks.h (hook_void_int_int): Declare.
4410         * opts.c: Don't include tm_p.h.
4411         (decode_options): Use targetm.target_option.optimization instead
4412         of OPTIMIZATION_OPTIONS.
4413         * system.h (OPTIMIZATION_OPTIONS): Poison.
4414         * config/arm/arm-protos.h (arm_optimization_options): Remove.
4415         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
4416         (arm_optimization_options): Rename to arm_option_optimization.
4417         Make static.
4418         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
4419         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
4420         (cris_option_optimization): New.
4421         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
4422         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
4423         (crx_option_optimization): New.
4424         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
4425         * config/frv/frv-protos.h (frv_optimization_options): Remove.
4426         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
4427         (frv_optimization_options): Rename to frv_option_optimization.
4428         Make static.
4429         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
4430         * config/h8300/h8300.c (h8300_option_optimization): New.
4431         (TARGET_OPTION_OPTIMIZATION): Define.
4432         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
4433         * config/i386/i386-protos.h (optimization_options): Remove.
4434         * config/i386/i386.c (optimization_options): Rename to
4435         ix86_option_optimization.  Make static.
4436         (TARGET_OPTION_OPTIMIZATION): Define.
4437         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
4438         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
4439         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
4440         (ia64_optimization_options): Rename to ia64_option_optimization.
4441         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
4442         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
4443         commented-out definition.
4444         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
4445         instead of OPTIMIZATION_OPTIONS.
4446         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
4447         (m32r_option_optimization): New.
4448         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
4449         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
4450         Remove.
4451         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
4452         (mcore_option_optimization): New.
4453         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
4454         * config/mep/mep-protos.h (mep_optimization_options): Remove.
4455         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
4456         (mep_optimization_options): Rename to mep_option_optimization.
4457         Make static.  Take unused level and size parameters.
4458         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
4459         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
4460         (mmix_option_optimization): New.
4461         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
4462         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
4463         (pdp11_option_optimization): New.
4464         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
4465         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
4466         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
4467         (optimization_options): Rename to rs6000_option_optimization.
4468         Make static.
4469         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
4470         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
4471         * config/rx/rx.c (rx_set_optimization_options): Rename to
4472         rx_option_optimization.  Make static.  Take unused level and size
4473         parameters.
4474         (TARGET_OPTION_OPTIMIZATION): Define.
4475         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
4476         * config/s390/s390-protos.h (optimization_options): Remove.
4477         * config/s390/s390.c (optimization_options): Rename to
4478         s390_option_optimization.  Make static.  Don't mark size parameter
4479         unused.
4480         (TARGET_OPTION_OPTIMIZATION): Define.
4481         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
4482         * config/sh/sh-protos.h (sh_optimization_options): Remove.
4483         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
4484         (sh_optimization_options): Rename to sh_option_optimization.  Make
4485         static.  Don't mark parameters unused.
4486         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
4487         * config/spu/spu-protos.h (spu_optimization_options): Remove.
4488         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
4489         (spu_optimization_options): Rename to spu_option_optimization.
4490         Make static.
4491         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
4492         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
4493         (v850_option_optimization): New.
4494         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
4495         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
4496         (xtensa_option_optimization): New.
4497         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
4498
4499 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
4500
4501         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
4502         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
4503         * doc/tm.texi: Regenerate.
4504         * system.h (OVERRIDE_OPTIONS): Poison.
4505         * target.def (override): Default to hook_void_void.
4506         * targhooks.c (default_target_option_override): Remove.
4507         * genmodes.c, machmode.def: Update comments mentioning
4508         OVERRIDE_OPTIONS.
4509         * config/alpha/alpha-modes.def: Update comment mentioning
4510         alpha_override_options.
4511         * config/alpha/alpha-protos.h (override_options): Remove.
4512         * config/alpha/alpha.c (override_options): Rename to
4513         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
4514         (TARGET_OPTION_OVERRIDE): Define.
4515         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
4516         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
4517         of OVERRIDE_OPTIONS.
4518         * config/arc/arc-protos.h (arc_init): Remove.
4519         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
4520         (arc_init): Rename to arc_option_override.  Make static.
4521         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
4522         (OVERRIDE_OPTIONS): Remove.
4523         * config/arm/arm-protos.h (arm_override_options): Remove.
4524         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
4525         (arm_override_options): Rename to arm_option_override.  Make
4526         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
4527         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
4528         * config/arm/arm.md: Update comment referring to arm_override_options.
4529         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4530         instead of OVERRIDE_OPTIONS.
4531         * config/avr/avr-protos.h (avr_override_options): Remove.
4532         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
4533         (avr_override_options): Rename to avr_option_override.  Make static.
4534         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
4535         * config/bfin/bfin-protos.h (override_options): Remove (twice).
4536         * config/bfin/bfin.c (override_options): Rename to
4537         bfin_option_override.  Make static.
4538         (TARGET_OPTION_OVERRIDE): Define.
4539         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
4540         * config/cris/cris-protos.h (cris_override_options): Remove.
4541         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
4542         (cris_override_options): Rename to cris_option_override.  Make static.
4543         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
4544         * config/frv/frv-protos.h (frv_override_options): Remove.
4545         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
4546         (frv_override_options): Rename to frv_option_override.  Make static.
4547         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
4548         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
4549         * config/h8300/h8300.c (h8300_init_once): Rename to
4550         h8300_option_override.  Make static.
4551         (TARGET_OPTION_OVERRIDE): Define.
4552         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
4553         * config/i386/i386-protos.h (override_options): Remove.
4554         * config/i386/i386.c (override_options): Rename to
4555         ix86_option_override_internal.  Make static.  Comments referring
4556         to this function and callers changed.
4557         (ix86_option_override): New.
4558         (TARGET_OPTION_OVERRIDE): Define.
4559         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
4560         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
4561         * config/ia64/ia64.c (ia64_file_start): Update comment referring
4562         to ia64_override_options.
4563         * config/iq2000/iq2000-protos.h (override_options): Remove.
4564         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
4565         (override_options): Rename to iq2000_option_override.  Make static.
4566         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
4567         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
4568         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
4569         (lm32_override_options): Rename to lm32_option_override.  Make static.
4570         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
4571         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
4572         (m32r_option_override): New.
4573         (m32r_init): Update comment.
4574         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
4575         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
4576         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
4577         (m68hc11_override_options): Rename to m68hc11_option_override.
4578         Make static.  Return void.
4579         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
4580         * config/m68k/m68k-protos.h (override_options): Remove.
4581         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
4582         (override_options): Rename to m68k_option_override.  Make static.
4583         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
4584         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
4585         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
4586         (mcore_override_options): Rename to mcore_option_override.  Make
4587         static.
4588         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
4589         * config/mep/mep-protos.h (mep_override_options): Remove.
4590         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
4591         (mep_override_options): Rename to mep_option_override.  Make static.
4592         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
4593         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
4594         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
4595         (mmix_override_options): Rename to mmix_option_override.  Make static.
4596         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
4597         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
4598         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
4599         (mn10300_override_options): Rename to mn10300_option_override.
4600         Make static.
4601         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
4602         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
4603         * config/moxie/moxie.c (moxie_override_options): Rename to
4604         moxie_option_override.  Make static.
4605         (TARGET_OPTION_OVERRIDE): Define.
4606         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
4607         * config/picochip/picochip-protos.h (picochip_override_options):
4608         Remove.  Update comment referring to picochip_override_options.
4609         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
4610         (picochip_override_options): Rename to picochip_option_override.
4611         Make static.  Update comment and definition of
4612         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
4613         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
4614         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4615         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4616         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4617         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4618         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4619         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
4620         instead of OVERRIDE_OPTIONS.
4621         * config/rs6000/rs6000-modes.def: Update comment referring to
4622         rs6000_override_options.
4623         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
4624         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
4625         (rs6000_override_options): Rename to
4626         rs6000_option_override_internal.  Make static.  Commented
4627         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
4628         (rs6000_option_override): New.
4629         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
4630         instead of OVERRIDE_OPTIONS.
4631         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
4632         * config/s390/s390-protos.h (override_options): Remove.
4633         * config/s390/s390.c (override_options): Rename to
4634         s390_option_override.  Make static.
4635         (TARGET_OPTION_OVERRIDE): Define.
4636         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
4637         * config/score/score-protos.h (score_override_options): Remove.
4638         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
4639         (score_override_options): Rename to score_option_override.  Make
4640         static.
4641         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
4642         Update comment referring to override_options.
4643         * config/score/score3.c (score3_override_options): Rename to
4644         score3_option_override.
4645         * config/score/score3.h (score3_override_options): Rename to
4646         score3_option_override.
4647         * config/score/score7.c (score7_override_options): Rename to
4648         score7_option_override.
4649         * config/score/score7.h (score7_override_options): Rename to
4650         score7_option_override.
4651         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
4652         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
4653         (sparc_override_options): Rename to sparc_option_override.  Make
4654         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
4655         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
4656         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
4657         instead of OVERRIDE_OPTIONS.
4658         * config/spu/spu-protos.h (spu_override_options): Remove.
4659         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
4660         (spu_override_options): Rename to spu_option_override.  Make
4661         static.
4662         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
4663         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
4664         OVERRIDE_OPTIONS.
4665         * config/vax/vax-protos.h (override_options): Remove.
4666         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
4667         (override_options): Rename to vax_option_override.  Make static.
4668         Call SUBTARGET_OVERRIDE_OPTIONS.
4669         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
4670         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
4671         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
4672         * config/xtensa/xtensa-protos.h (override_options): Remove.
4673         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
4674         (override_options): Rename to xtensa_option_override.  Make static.
4675         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
4676
4677 2010-09-16  Richard Guenther  <rguenther@suse.de>
4678
4679         PR tree-optimization/45623
4680         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
4681         (get_constraint_for_component_ref): If computing a constraint
4682         for the rhs handle type punning through unions.
4683         (get_constraint_for_address_of): Adjust.
4684         (get_constraint_for_1): Likewise.
4685         (get_constraint_for): Likewise.
4686         (get_constraint_for_rhs): New function.
4687         (do_structure_copy): Adjust.
4688         (make_constraint_to): Likewise.
4689         (handle_const_call): Likewise.
4690         (find_func_aliases): Likewise.
4691         (process_ipa_clobber): Likewise.
4692         (create_variable_info_for): Likewise.
4693
4694 2010-09-16  Ira Rosen  <irar@il.ibm.com>
4695
4696         * tree-vectorizer.c: Fix documentation.
4697         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
4698         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
4699         is_pattern_stmt_p, is_loop_header_bb_p,
4700         stmt_vinfo_set_inside_of_loop_cost,
4701         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
4702         known_alignment_for_access_p): Likewise.
4703         * tree-vect-loop.c: Fix documentation.
4704         (vect_get_cost): Start function name from new line.
4705         * tree-vect-data-refs.c: Fix documentation.
4706         * tree-vect_stmts.c: Likewise.
4707         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
4708         (vectorizable_store): Free vec_oprnds if allocated.
4709         (vectorizable_condition): Initialize several variables to avoid
4710         warnings.
4711         * tree-vect-slp.c: Fix documentation.
4712
4713 2010-09-16  Richard Guenther  <rguenther@suse.de>
4714
4715         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
4716         is TS_TRANSLATION_UNIT_DECL.
4717         (initialize_tree_contains_struct): Adjust.
4718         (all_translation_units): New global vector.
4719         (build_translation_unit_decl): New function.
4720         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
4721         (struct tree_translation_unit_decl): New.
4722         (all_translation_units): Declare.
4723         (union tree_node): Add translation_unit_decl member.
4724         (build_translation_unit_decl): Declare.
4725         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
4726         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
4727         New function.
4728         (pack_value_fields): Call it.
4729         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
4730         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
4731         (lto_output_tree_pointers): Call it.
4732         * lto-streamer-in.c (lto_input_tree_ref): Handle references
4733         to TRANSLATION_UNIT_DECL.
4734         (unpack_ts_translation_unit_decl_value_fields): New function.
4735         (unpack_value_fields): Call it.
4736         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
4737         (lto_input_tree_pointers): Call it.
4738         * lto-streamer.c (check_handled_ts_structures): Adjust.
4739         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
4740         * c-decl.c (all_translation_units): Remove.
4741         (pop_scope): Use build_translation_unit_decl.
4742         (collect_all_refs): Adjust.
4743         (for_each_global_decl): Likewise.
4744         (c_write_global_declarations): Likewise.
4745
4746 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
4747
4748         PR bootstrap/45686
4749         * fold-const.c (fold_checksum_tree): Change slot from const void **
4750         to void **, use CONST_CAST_TREE to store into *slot.
4751
4752 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
4753
4754         * config/i386/i386.md: Remove unneeded empty conditions and
4755         preparation statements from expanders.
4756         * config/i386/mmx.md: Ditto.
4757         * config/i386/sse.md: Ditto.
4758
4759 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
4760
4761         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
4762
4763 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4764
4765         PR rtl-optimization/45593
4766         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
4767         insns that were in delay slots as stand-alone insns.
4768
4769 2010-09-15  Ian Lance Taylor  <iant@google.com>
4770
4771         * incpath.c (remove_duplicates): If name is not a directory, issue
4772         a warning rather than an error.
4773
4774 2010-09-15  Martin Jambor  <mjambor@suse.cz>
4775
4776         PR middle-end/45644
4777         * tree-sra.c (create_access): Check for bit-fields directly.
4778
4779 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
4780
4781         PR tree-optimization/45633
4782         * tree-cfg.c (verify_gimple_assign_binary): Allow
4783         MINUS_EXPR with lhs and rhs1 pointer vector and
4784         rhs2 sizetype vector.
4785         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
4786         or vector pointer use TER to optimize pointer subtraction.
4787
4788 2010-09-15  Jie Zhang  <jie@codesourcery.com>
4789
4790         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
4791         fcmpd to fcmps.
4792
4793 2010-09-15  Ian Lance Taylor  <iant@google.com>
4794
4795         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
4796
4797 2010-09-15  Ian Lance Taylor  <iant@google.com>
4798
4799         * function.c (get_arg_pointer_save_area): Set
4800         arg_pointer_save_area_init to true.
4801
4802 2010-09-15  Martin Jambor  <mjambor@suse.cz>
4803
4804         * tree-sra.c (generate_subtree_copies): Updated comment.
4805         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
4806         obtained from the statement iterator instead.
4807         (load_assign_lhs_subreplacements): Removed parameters lhs and
4808         right_offset, which is obtained from top_racc instead.  Parameter lacc
4809         is now expected to be the root of the processed tree rather than root's
4810         first child.  Updated all callers.
4811
4812 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
4813
4814         * config/pdp11/pdp11.c (register_move_cost): Rename to
4815         pdp11_register_move_cost.
4816         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
4817         pdp11_register_move_cost.
4818         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
4819         pdp11_register_move_cost instead of register_move_cost.
4820
4821 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
4822
4823         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
4824         pattern for vmovn. Expansion in case of non
4825         -mvectorize-with-neon-quad.
4826         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
4827         non- -mvectorize-with-neon-quad case.
4828         (move_lo_quad_<mode>): New expansion to vmov into low part.
4829         (move_hi_quad_<mode>): New expansion to vmov into high part.
4830         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
4831         (move_lo_quad_v4sf): Likewise.
4832         (move_lo_quad_v8hi): Likewise.
4833         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
4834         low part.
4835         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
4836         high part.
4837         * config/arm/iterators.md (ANY128): New mode iterator.
4838         (V_narrow_pack): New mode attribute.
4839         (V_HALF): Add attribute.
4840         (V_DOUBLE): Add attribute.
4841         (V_mode_nunits): Add attribute.
4842
4843 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
4844
4845         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
4846         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
4847
4848 2010-09-15  Olivier Hainque  <hainque@adacore.com>
4849             Jose Ruiz  <ruiz@adacore.com>
4850
4851         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
4852         * config/alpha/osf5-unwind.h: New file.
4853
4854 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4855
4856         PR bootstrap/45672
4857         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
4858         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
4859         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
4860
4861 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4862
4863         * c-lang.h (struct lang_type): Add variable_size GTY option.
4864
4865 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4866
4867         PR bootstrap/45672
4868         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
4869
4870 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4871
4872         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
4873         result isn't used in memory address.
4874
4875 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4876
4877         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
4878         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
4879         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4880         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4881         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4882         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4883
4884         * target.def: Add units_per_simd_word to vectorize.
4885
4886         * targhooks.c (default_units_per_simd_word): New.
4887         * targhooks.h (default_units_per_simd_word): Likewise.
4888         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
4889         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4890         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
4891         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4892         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
4893         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4894         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
4895         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
4896
4897         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
4898         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
4899
4900         * tree-vect-stmts.c: Don't include "tm_p.h".
4901         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
4902         with targetm.vectorize.units_per_simd_word.
4903
4904         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
4905
4906         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
4907
4908         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
4909         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
4910
4911         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
4912         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
4913
4914         * doc/tm.texi: Regenerated.
4915
4916 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
4917
4918         * tree-vect-stmts.c: Include "tm_p.h".
4919
4920         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
4921         out of RTX_CODE.
4922
4923 2010-09-14  Martin Jambor  <mjambor@suse.cz>
4924
4925         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
4926         location of generated statement.  Changed all callers.
4927         (build_ref_for_model): New parameter loc which used to set location of
4928         all generated expressions.  Changed all callers.
4929         (generate_subtree_copies): Likewise.
4930         (init_subtree_with_zero): Likewise.
4931         (sra_modify_expr): Set locations of all generated statements and
4932         expressions to the location the original statement.
4933         (handle_unscalarized_data_in_subtree): Likewise.
4934         (load_assign_lhs_subreplacements): Likewise.
4935         (sra_modify_constructor_assign): Likewise.
4936         (sra_modify_assign): Likewise.
4937
4938 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
4939
4940         PR target/45277
4941         PR target/45363
4942         PR target/45407
4943         * doc/install.texi (sparc*-*-*): New section.
4944         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
4945
4946 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
4947
4948         PR middle-end/45567
4949         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
4950         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
4951         (expand_builtin): Adjust caller.
4952         (expand_builtin_unop): Only use subtarget if it has the right mode.
4953
4954 2010-09-14  Tristan Gingold  <gingold@adacore.com>
4955
4956         * configure.ac (plugins): Fix typos.
4957         * configure: Regenerate.
4958
4959 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
4960
4961         PR debug/45660
4962         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
4963         gen_type_die for function/method return type.
4964
4965 2010-09-14  Ira Rosen  <irar@il.ibm.com>
4966
4967         PR tree-optimization/45470
4968         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4969         can throw an exception.
4970         * tree-vect-stmts.c (vectorizable_call): Likewise.
4971
4972 2010-09-14  DJ Delorie  <dj@redhat.com>
4973
4974         PR target/44749
4975         * config/mep/mep-protos.h (mep_save_register_info,
4976         mep_reinit_regs, mep_init_regs): Declare.
4977
4978         * config/mep/mep.c: Move all target definitions to the end of the
4979         file to avoid the need for duplicate declarations.
4980         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
4981         (mep_reorg_erepeat): Remove unused variables.
4982         (mep_expand_builtin): Likewise.
4983
4984         * config/mep/mep-pragma.c: Don't include rtl.h.
4985         (INVALID_REGNUM): New.
4986         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
4987         functions.
4988         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
4989         Avoid enum/integer math.
4990
4991 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
4992
4993         PR target/44749
4994         * config/mep/t-mep (GTM_H): Add insn-constants.h.
4995         * config/mep/mep.c (mep_conditional_register_usage): Take no
4996         parameters.
4997         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
4998         prototype.
4999         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
5000         call to mep_conditional_register_usage.
5001
5002 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
5003
5004         PR debug/43937
5005         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
5006         the DECL as well.
5007
5008 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
5009
5010         PR rtl-optimization/45617
5011         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
5012         even if low N bits of X aren't known to be zero.
5013
5014 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
5015
5016         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
5017
5018         * config/i386/i386.c (initial_ix86_tune_features): Add
5019         X86_TUNE_VECTORIZE_DOUBLE.
5020         (ix86_units_per_simd_word): New.
5021
5022         * config/i386/i386.h (ix86_tune_indices): Add
5023         X86_TUNE_VECTORIZE_DOUBLE.
5024         (TARGET_VECTORIZE_DOUBLE): New.
5025         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
5026
5027 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
5028
5029         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
5030         (new_temp_expr_table): Allocate call_cnt vector.
5031         (free_temp_expr_table): Free it.
5032         (process_replaceable): Add call_cnt parm and set in vector.
5033         (find_replaceable_in_bb): Skip replacement if def/use span a call.
5034         (debug_ter): Dump call_cnt value, remove stderr uses.
5035
5036 2010-09-13  Jan Hubicka  <jh@suse.cz>
5037
5038         * tree.c (build_zero_cst): New.
5039         * tree.h (build_zero_cst): Declare.
5040         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
5041         (get_base_constructor): Break out from ...
5042         (fold_const_aggregate_ref): Here; handle empty constructors.
5043
5044 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5045
5046         * config/arm/arm.md: (define_attr "conds"): Update comment.
5047         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
5048         conds attribute to clob.
5049         (arm_sync_compare_and_swapsi): Likewise.
5050         (arm_sync_compare_and_swap<mode>): Likewise.
5051         (arm_sync_lock_test_and_setsi): Likewise.
5052         (arm_sync_lock_test_and_set<mode>): Likewise.
5053         (arm_sync_new_<sync_optab>si): Likewise.
5054         (arm_sync_new_nandsi): Likewise.
5055         (arm_sync_new_<sync_optab><mode>): Likewise.
5056         (arm_sync_new_nand<mode>): Likewise.
5057         (arm_sync_old_<sync_optab>si): Likewise.
5058         (arm_sync_old_nandsi): Likewise.
5059         (arm_sync_old_<sync_optab><mode>): Likewise.
5060         (arm_sync_old_nand<mode>): Likewise.
5061
5062 2010-09-13  Olivier Hainque  <hainque@adacore.com>
5063
5064         * fwprop.c (forward_propagate_and_simplify): Only attach a
5065         REG_EQUAL note to an insn if the destination is a register.
5066         * gcse.c (try_replace_reg): Likewise.
5067
5068 2010-09-13  Richard Guenther  <rguenther@suse.de>
5069
5070         PR tree-optimization/45611
5071         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
5072         (copy_ref_info): Likewise.
5073
5074 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
5075
5076         PR debug/45604
5077         PR debug/45419
5078         PR debug/45408
5079         * tree-pretty-print.c (dump_generic_node): Disregard top-level
5080         types of MEM_REF pointer types to the same type.
5081
5082 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
5083
5084         PR rtl-optimization/41087
5085         * ifcvt.c (noce_get_condition): Don't allow conditions with
5086         side-effects.
5087
5088 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
5089
5090         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5091         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
5092         * config/frv/frv.c (frv_register_move_cost): Make static. Change
5093         arguments type to reg_class_t. Add mode argument.
5094         (frv_memory_move_cost): New.
5095         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
5096
5097 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
5098
5099         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
5100         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
5101
5102 2010-09-10  Jan Hubicka  <jh@suse.cz>
5103
5104         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
5105
5106 2010-09-10  Richard Guenther  <rguenther@suse.de>
5107
5108         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
5109         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
5110         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
5111         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
5112         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
5113
5114 2010-09-10  Richard Guenther  <rguenther@suse.de>
5115
5116         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
5117         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
5118         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
5119         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
5120
5121 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
5122
5123         PR middle-end/45634
5124         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
5125         of string folding is of integral type.
5126
5127 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
5128
5129         * doc/invoke.texi (-x): Fix typo.
5130
5131 2010-09-10  Richard Guenther  <rguenther@suse.de>
5132
5133         PR debug/44115
5134         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
5135         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5136         Output DECL_DEBUG_EXPR.
5137         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5138         Input DECL_DEBUG_EXPR.
5139
5140 2010-09-10  Richard Guenther  <rguenther@suse.de>
5141
5142         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
5143         (build_index_type): Implement in terms of build_range_type.
5144         (build_range_type): Do not allow NULL_TREE type, improve
5145         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
5146         if we didn't hash.
5147         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
5148         create a distinct copy of the type.
5149
5150 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
5151
5152         * configure: Regenerated.
5153         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
5154
5155 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5156
5157         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
5158         * config/arm/cortex-a9-neon.md: New and partially generated.
5159         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
5160
5161 2010-09-10  Richard Guenther  <rguenther@suse.de>
5162
5163         * tree.h (build_index_2_type): Remove.
5164         * tree.c (build_index_2_type): Remove.
5165
5166 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
5167
5168         PR bootstrap/45630
5169         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
5170         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
5171         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
5172
5173 2010-09-10  Martin Jambor  <mjambor@suse.cz>
5174
5175         PR tree-optimization/44972
5176         * tree-sra.c: Include toplev.h.
5177         (build_ref_for_offset): Entirely reimplemented.
5178         (build_ref_for_model): New function.
5179         (build_user_friendly_ref_for_offset): New function.
5180         (analyze_access_subtree): Removed build_ref_for_offset check.
5181         (propagate_subaccesses_across_link): Likewise.
5182         (create_artificial_child_access): Use
5183         build_user_friendly_ref_for_offset.
5184         (propagate_subaccesses_across_link): Likewise.
5185         (ref_expr_for_all_replacements_p): Removed.
5186         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
5187         (sra_modify_expr): Use build_ref_for_model.
5188         (load_assign_lhs_subreplacements): Likewise.
5189         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
5190         checks for return values of build_ref_for_offset.
5191         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
5192         build_ref_for_offset.
5193         * ipa-prop.h: Include gimple.h
5194         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
5195         (ipa_analyze_indirect_call_uses): Update comment.
5196         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
5197         (IPA_PROP_H): Likewise.
5198
5199 2010-09-10  Martin Jambor  <mjambor@suse.cz>
5200
5201         PR tree-optimization/44972
5202         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
5203         calling build_ref_for_offset.
5204
5205 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5206
5207         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
5208         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
5209         * config/arm/arm-tune.md: Regenerate.
5210         * doc/invoke.texi (ARM Options): Document it.
5211
5212 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
5213
5214         * config/i386/i386.c: Include sched-int.h.
5215         (TARGET_SCHED_DISPATCH): Defined.
5216         (TARGET_SCHED_DISPATCH_DO): Defined.
5217         (DISPATCH_WINDOW_SIZE): Defined.
5218         (MAX_DISPATCH_WINDOWS): Defined.
5219         (MAX_INSN): Defined.
5220         (MAX_IMM): Defined.
5221         (MAX_IMM_SIZE): Defined.
5222         (MAX_IMM_32): Defined.
5223         (MAX_IMM_64): Defined.
5224         (MAX_LOAD): Defined.
5225         (MAX_STORE): Defined.
5226         (BIG): Defined.
5227         (dispatch_group): New.
5228         (num_allowable_groups): New.
5229         (group_name): New.
5230         (sched_insn_info_s): New.
5231         (dispatch_windows_s): New.
5232         (imm_info_s): New.
5233         (dispatch_window_list): New.
5234         (dispatch_window_list1): New.
5235         (get_mem_group): New.
5236         (is_cmp): New.
5237         (dispatch_violation): New.
5238         (is_branch): New.
5239         (is_prefetch): New.
5240         (init_window): New.
5241         (allocate_window): New.
5242         (init_dispatch_sched): New.
5243         (is_end_basic_block): New.
5244         (process_end_window): New.
5245         (allocate_next_window): New.
5246         (find_constant_1): New.
5247         (find_constant): New.
5248         (get_num_immediates): New.
5249         (has_immediate): New.
5250         (get_insn_path): New.
5251         (get_insn_group): New.
5252         (count_num_restricted): New.
5253         (fits_dispatch_window): New.
5254         (add_insn_window): New.
5255         (add_to_dispatch_window): New.
5256         (debug_dispatch_window_file): New.
5257         (debug_dispatch_window): New.
5258         (debug_insn_dispatch_info_file): New.
5259         (debug_ready_dispatch): New.
5260         (do_dispatch): New.
5261         (has_dispatch): New.
5262         * config/i386/i386.h (debug_ready_dispatch): Declared.
5263         (debug_dispatch_window): Declared.
5264         * config/i386/i386.opt (mdispatch-scheduler): New flag.
5265         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
5266         (TARGET_SCHED_DISPATCH_DO): New.
5267         * doc/tm.texi: Regererated.
5268         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
5269         ready_remove_first_dispatch
5270         (schedule_block): Call targetm.sched.dispatch and
5271         targetm.sched.dispatch_do.
5272         (sched_init): Call targetm.sched.dispatch and
5273         targetm.sched.dispatch_do.
5274         (ready_remove_first_dispatch): New.
5275         (number_in_ready): New.
5276         (get_ready_element): New.
5277         * hooks.c (hook_bool_rtx_int_false): New.
5278         (hook_void_rtx_int): New.
5279         * hooks.h (hook_bool_rtx_int_false): Declared.
5280         (hook_void_rtx_int): Declared.
5281         * sched-int.h (IS_DISPATCH_ON): Defined.
5282         (IS_CMP): Defined.
5283         (DISPATCH_VIOLATION): Defined.
5284         (FITS_DISPATCH_WINDOW): Defined.
5285         (DISPATCH_INIT): Defined.
5286         (ADD_TO_DISPATCH_WINDOW): Defined.
5287         (get_ready_element): Declared.
5288         (number_in_ready): Declared.
5289         * target.def (dispatch): Defined.
5290         (dispatch_do): Defined.
5291
5292 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5293
5294         PR middle-end/45312
5295         * reload1.c (merge_assigned_reloads): Remove.
5296         (reload_as_needed): Don't call it.
5297
5298 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
5299
5300         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
5301         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5302         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5303
5304 2010-09-09  Matthias Klose  <doko@ubuntu.com>
5305
5306         PR bootstrap/43847
5307         * configure.ac (--enable-plugin): Enhance for cross builds.
5308         * configure: Regenerate.
5309
5310 2010-09-09  Jan Hubicka  <jh@suse.cz>
5311
5312         PR tree-optimization/45598
5313         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
5314         string folding is of integral type.
5315
5316 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5317
5318         * configure.ac (gnu_indirect_function): New test.
5319         * configure: Rebuilt.
5320         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
5321         * defaults.h (IFUNC_ASM_TYPE): Provide default.
5322
5323         * doc/extend.texi (Function Attributes): Document ifunc.
5324         * varasm.c (do_assemble_alias): Deal with ifuncs too.
5325
5326 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5327
5328         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
5329         epilogue instruction move.
5330
5331 2010-09-09  Jan Hubicka  <jh@suse.cz>
5332
5333         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
5334         command line to allow more partitions than input files.
5335
5336 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5337
5338         PR middle-end/44554
5339         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
5340
5341 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
5342
5343         PR middle-end/40386
5344         * ira.c (pseudo_for_reload_consideration_p): Don't use
5345         flag_ira_share_spill_slots.
5346
5347 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5348
5349         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
5350         point zero operands that fit into a single GPR.
5351         (s390_preferred_reload_class): Ensure we only return general-purpose
5352         register classes.
5353         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
5354         floating-point zero operands into GPRs.
5355         ("*mov<mode>_64"): Likewise.
5356         ("mov<mode>"): Likewise using lhi.
5357
5358 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5359
5360         * config/s390/s390.c (s390_symref_operand_p): Return false for
5361         literal pool references.
5362         (s390_check_qrst_address): Update caller.
5363
5364 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
5365
5366         * config/i386/predicates.md (ext_register_operand): Check that
5367         SUBREG_REG is really a register before looking for REGNO.
5368         (reg_not_xmm0_operand): Handle SUBREGs correctly.
5369         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
5370
5371 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
5372
5373         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
5374         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
5375         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
5376         * print-rtl.c (print_rtx): Likewise.
5377         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5378         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
5379         for ADDR_EXPR with non-addressable object.
5380         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
5381         (struct dw_val_struct): Add v.val_decl_ref.
5382         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
5383         Handle DW_OP_GNU_implicit_pointer.
5384         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
5385         (get_ref_die_offset_label): New function.
5386         (implicit_ptr_descriptor): New function.
5387         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
5388         (loc_descriptor): Likewise.
5389         (gen_variable_die): Put even definitions into decl_die_table.
5390         (resolve_addr_in_expr): Resolve still unresolved
5391         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
5392         return false.
5393         (dwarf2out_finish): Call output_location_lists after outputting
5394         .debug_info and .debug_abbrev instead of before.
5395
5396 2010-09-09  Roland McGrath  <roland@redhat.com>
5397
5398         * dwarf2out.c (DWARF_REF_SIZE): Define.
5399         (size_of_loc_descr): Use it for DW_OP_call_ref.
5400
5401 2010-09-09  Alan Modra  <amodra@gmail.com>
5402
5403         * doc/invoke.text: Reinstate mcmodel=medium.
5404         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5405         CMODEL_MEDIUM as default.
5406         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
5407         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
5408         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
5409         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
5410
5411 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5412
5413         PR target/45250
5414         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
5415         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
5416         (builtin_longjmp): Likewise.
5417         (allocate_stack): Use hard_frame_pointer_rtx instead of
5418         frame_pointer_rtx.
5419         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
5420         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
5421         (pa_can_eliminate): Likewise.
5422         (TARGET_INTERNAL_ARG_POINTER): Define.
5423         (TARGET_CAN_ELIMINATE): Define.
5424         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
5425         pointer.
5426         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
5427         (pa_internal_arg_pointer, pa_can_eliminate,
5428         pa_initial_elimination_offset): New.
5429         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
5430         (HARD_FRAME_POINTER_REGNUM): Set to register three.
5431         (INITIAL_FRAME_POINTER_OFFSET): Delete.
5432         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
5433         Define.
5434         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
5435         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
5436         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
5437         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5438         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
5439         new soft frame pointer.
5440         * config/pa/pa64-regs.h: Likewise.
5441
5442 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
5443
5444         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
5445         numerical constant.
5446         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
5447
5448 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
5449
5450         PR debug/45531
5451         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
5452
5453 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
5454
5455         PR debug/45419
5456         PR debug/45408
5457         * tree-pretty-print.c (dump_generic_node): Disregard top-level
5458         qualifiers in otherwise equal MEM_REF pointer types.
5459         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
5460         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
5461
5462 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5463
5464         PR target/44392
5465         * config/arm/arm.md (bswapsi2): Handle condition correctly
5466         for armv6 and optimize_size.
5467
5468 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5469
5470         PR other/18555
5471         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
5472
5473 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
5474
5475         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
5476         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
5477         ix86_expand_strlen, legitimate_pic_address_disp_p,
5478         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
5479         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
5480         ix86_check_movabs, ix86_secondary_memory_needed): Change function
5481         prototype to bool.
5482         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
5483         return_in_memory_ms_64, ix86_check_movabs,
5484         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
5485         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
5486         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
5487         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
5488         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
5489         ix86_secondary_memory_needed): Change to bool.  Return
5490         "true" and "false" values.
5491         * config/i386/i386.md: Return "true" and "false" values.
5492
5493 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5494
5495         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5496         run_expensive_tests.
5497
5498 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5499
5500         * toplev.c (output_stack_usage): Use lbasename instead of basename.
5501
5502 2010-09-08  Martin Jambor  <mjambor@suse.cz>
5503
5504         PR other/45443
5505         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
5506         at -O3.
5507
5508 2010-09-08  Richard Guenther  <rguenther@suse.de>
5509
5510         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
5511         (visit): Adjust.
5512         (iterative_hash_gimple_type): Likewise.
5513         (gimple_type_hash): Likewise.
5514         (gimple_register_type): Likewise.
5515         (print_gimple_types_stats): Likewise.
5516         (free_gimple_type_tables): Likewise.
5517
5518 2010-09-08  Michael Matz  <matz@suse.de>
5519
5520         PR tree-optimization/43430
5521         * tree-vect-stmts.c (vectorizable_condition): Support multiple
5522         copies for conditional statements if it's not part of a reduction.
5523
5524 2010-09-08  Michael Matz  <matz@suse.de>
5525
5526         PR tree-optimization/33244
5527         * tree-ssa-sink.c (statement_sink_location): Don't sink into
5528         empty loop latches.
5529
5530 2010-09-08  Richard Guenther  <rguenther@suse.de>
5531
5532         PR tree-optimization/45578
5533         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
5534         Be more careful when transfering alignment information to
5535         the new induction variable.
5536         (copy_ref_info): Likewise.
5537
5538 2010-09-08  Richard Guenther  <rguenther@suse.de>
5539
5540         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
5541         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
5542
5543 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
5544
5545         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
5546         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
5547
5548 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
5549
5550         PR doc/45587
5551         * doc/md.texi: Fixed modes on several standard pattern names.
5552
5553 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
5554
5555         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
5556         (ashl<mode>3): ...this.
5557         (loongson_psra<V_suffix>): Rename to...
5558         (ashr<mode>3): ...this.
5559         (loongson_psrl<V_suffix>): Rename to...
5560         (lshr<mode>3): ...this.
5561         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
5562         (CODE_FOR_loongson_psllw): Define.
5563         (CODE_FOR_loongson_psrlh): Define.
5564         (CODE_FOR_loongson_psrlw): Define.
5565         (CODE_FOR_loongson_psrah): Define.
5566         (CODE_FOR_loongson_psraw): Define.
5567
5568 2010-09-07  Richard Henderson  <rth@redhat.com>
5569
5570         * tree-vect-data-refs.c: Include tm_p.h.
5571         * Makefile.in (tree-vect-data-refs.o): Update deps.
5572         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
5573         Move delarations outside #ifdef RTX_CODE.
5574
5575 2010-09-07  Richard Henderson  <rth@redhat.com>
5576
5577         * final.c (rest_of_handle_final): Unconditionally do
5578         output_function_exception_table before assemble_end_function.
5579
5580 2010-09-07  Jan Hubicka  <jh@suse.cz>
5581
5582         * tree-inline.c (tree_inlinable_function_p): Do not test
5583         DECL_REPLACEABLE_P.
5584         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
5585         update_callee_keys, cgraph_decide_inlining): Test function availability.
5586         * cif-code.def (OVERWRITABLE): New code.
5587
5588 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
5589             Jack Howarth  <howarth@bromo.med.uc.edu>
5590
5591         PR target/36502
5592         PR target/42313
5593         PR target/44651
5594         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
5595         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
5596         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
5597         MAX macro.
5598
5599 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5600
5601         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
5602         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
5603
5604 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5605
5606         * config.gcc: Don't append t-android for Android targets.
5607
5608         * config/t-android: Removed.
5609
5610 2010-09-07  Richard Henderson  <rth@redhat.com>
5611
5612         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
5613         * doc/tm.texi.in: Add doc marker.
5614         * doc/tm.texi: Rebuild.
5615         * except.c (switch_to_exception_section): Always build.
5616         (output_one_function_exception_table): Move section switch,
5617         personality output, and label output ...
5618         (output_function_exception_table): ... here.  Use the new
5619         personality hook.
5620
5621         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
5622         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
5623         TARGET_ASM_INIT_SECTIONS): New.
5624         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
5625         make static.
5626         (TARGET_ASM_UNWIND_EMIT): Update to match.
5627         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
5628
5629         * config/arm/arm.c (arm_asm_emit_except_personality): New.
5630         (arm_asm_init_sections): New.
5631         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
5632
5633 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5634
5635         * config/arm/arm.md: Remove unused variable.
5636
5637 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
5638
5639         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5640         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
5641         (m32r_memory_move_cost): New function.
5642
5643 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5644
5645         * config.gcc: Append t-android for Android targets.
5646
5647         * config/t-android: New.
5648
5649 2010-09-07  Richard Henderson  <rth@redhat.com>
5650
5651         * target.def (unwind_emit_before_insn): New hook.
5652         * doc/tm.texi.in: Add @hook marker for it.
5653         * doc/tm.texi: Rebuild.
5654         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
5655
5656 2010-09-07  Martin Jambor  <mjambor@suse.cz>
5657
5658         PR fortran/43665
5659         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
5660         are any type attributes.
5661
5662 2010-09-07  Jan Hubicka  <jh@suse.cz>
5663
5664         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
5665         array_ref_low_bound in string access folding.
5666
5667 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
5668
5669         PR target/45206
5670         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
5671         eh_return fixup sequence.
5672
5673 2010-09-07  Jan Hubicka  <jh@suse.cz>
5674
5675         * gimple-fold.c (maybe_fold_reference): Verify that operand is
5676         gimple_min_invariant.
5677
5678 2010-09-07  Richard Guenther  <rguenther@suse.de>
5679
5680         PR middle-end/45569
5681         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
5682         nor CONSTRUCTOR can trap.
5683         * tree-complex.c (update_complex_assignment): Update EH info.
5684
5685 2010-09-07  Richard Guenther  <rguenther@suse.de>
5686
5687         PR middle-end/45569
5688         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
5689         * passes.c (execute_function_todo): Do not verify anything if
5690         we saw errors.
5691
5692 2010-09-07  Richard Guenther  <rguenther@suse.de>
5693
5694         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
5695
5696 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
5697
5698         PR target/43137
5699         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
5700         New define_mode_attrs.
5701         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
5702         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
5703         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
5704         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
5705         Remove pool_range attribute.
5706         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
5707         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
5708         pool_range and neg_pool_range attributes.
5709         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
5710         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
5711         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
5712
5713 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5714
5715         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
5716         check glibc.
5717
5718 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
5719
5720         PR target/22152
5721         * config/i386/mmx.md (*mov<mode>_internal_rex64,
5722         *mov<mode>_internal_avx, *mov<mode>_internal,
5723         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
5724         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
5725
5726 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
5727
5728         * c-typeck.c (do_warn_double_promotion): Remove.
5729         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
5730         Objective-C++ too.
5731
5732 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
5733
5734         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
5735         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
5736         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
5737         argument type to reg_class_t. Change result type to bool.
5738         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5739
5740 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
5741
5742         PR libobjc/19850
5743         * gthr-posix.h (__gthread_objc_thread_detach): Use
5744         _objc_thread_attribs when detaching a thread.
5745         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
5746
5747 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
5748
5749         PR target/45524
5750         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
5751         * configure: Regenerated.
5752
5753 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5754
5755         * combine.c (try_combine): Set subst_low_luid to i0.
5756
5757 2010-09-06  Richard Guenther  <rguenther@suse.de>
5758
5759         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
5760         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
5761         (build_aligned_type): Declare.
5762         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
5763         (check_aligned_type): New function.
5764         (build_aligned_type): Likewise.
5765         * expr.c (expand_assignment): Handle misaligned stores via
5766         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
5767         (expand_expr_real_1): Likewise.
5768         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
5769         * tree-vect-stmts.c (vectorizable_store): Do not build
5770         MISALIGNED_INDIRECT_REF but initialize alignment information.
5771         (vectorizable_load): Likewise.
5772         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
5773         handling.
5774         * cfgexpand.c (expand_debug_expr): Likewise.
5775         * dwarf2out.c (loc_list_from_tree): Likewise.
5776         * fold-const.c (maybe_lvalue_p): Likewise.
5777         (operand_equal_p): Likewise.
5778         (build_fold_addr_expr_with_type_loc): Likewise.
5779         * gimplify.c (gimplify_addr_expr): Likewise.
5780         (gimplify_expr): Likewise.
5781         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
5782         (verify_gimple_assign_single): Likewise.
5783         * tree-dump.c (dequeue_and_dump): Likewise.
5784         (tree_could_trap_p): Likewise.
5785         * tree-predcom.c (ref_at_iteration): Likewise.
5786         * tree-pretty-print.c (dump_generic_node): Likewise.
5787         (op_code_prio): Likewise.
5788         (op_symbol_code): Likewise.
5789         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
5790         * tree-ssa-loop-im.c (for_each_index): Likewise.
5791         (gen_lsm_tmp_name): Likewise.
5792         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
5793         (find_interesting_uses_address): Likewise.
5794         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5795         * tree-ssa-operands.c (get_expr_operands): Likewise.
5796         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5797         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5798         (ao_ref_init_from_vn_reference): Likewise.
5799         * tree.c (staticp): Likewise.
5800         (build1_stat): Likewise.
5801         (reference_alias_ptr_type): Likewise.
5802         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5803         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
5804         MISALIGNED_INDIRECT_REF handling.
5805
5806 2010-09-06  Richard Guenther  <rguenther@suse.de>
5807
5808         PR tree-optimization/45534
5809         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
5810         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
5811         on the target.
5812         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
5813         valid on the target.
5814
5815 2010-09-06  Andreas Schwab  <schwab@redhat.com>
5816
5817         * configure.ac: Quote argument of AC_MSG_WARN.
5818         * configure: Regenerate.
5819
5820 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
5821
5822         * sel-sched.c (move_cond_jump): Correct arguments to
5823         maybe_tidy_empty_bb.
5824         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
5825
5826 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
5827
5828         PR rtl-optimization/44919
5829         * sel-sched.c (move_cond_jump): Remove assert, check that
5830         the several blocks case can only happen with mutually exclusive
5831         insns instead.  Rewrite the movement code to support moving through
5832         several basic blocks.
5833
5834 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
5835
5836         * config/i386/i386.md (iptrsize): New mode attribute.
5837         (tp_seg): Ditto.
5838         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
5839         mode iterator.
5840         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
5841         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
5842         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
5843         (stack_tls_protect_set_<mode>): Ditto from
5844         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
5845         of thread base pointer load.
5846         (stack_tls_protect_test_<mode>): Ditto from
5847         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
5848         of thread base pointer load.
5849         (stack_protect_set): Rewrite using indirect functions.
5850         (stack_protect_test): Ditto.
5851         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
5852         (ix86_print_operand): Handle '@'.
5853
5854 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
5855
5856         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
5857         MINUS_EXPR.
5858
5859 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
5860
5861         * doc/invoke.texi: Document -Wdouble-promotion.
5862         * c-typeck.c (convert_arguments): Check for implicit conversions
5863         from float to double.
5864         (do_warn_double_promotion): New function.
5865         (build_conditional_expr): Use it.
5866         (build_binary_op): Likewise.
5867
5868 2010-09-05  Richard Guenther  <rguenther@suse.de>
5869
5870         PR tree-optimization/45535
5871         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
5872         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
5873         dereferencing it.
5874         (indirect_refs_may_alias_p): Likewise.
5875
5876 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
5877
5878         * config/sh/sh.c (sh_option_override): Make static.
5879         Adjust comments.  Declare.
5880         (sh_function_value_regno_p): Likewise.
5881         (sh_register_move_cost): Modify the arguments, make static.
5882         Adjust comments.  Declare.
5883         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
5884         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5885         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
5886         REGISTER_MOVE_COST): Delete.
5887         * config/sh/sh-protos.h (sh_override_options): Delete.
5888         (sh_register_move_cost): Delete.
5889         (sh_function_value_regno_p): Delete.
5890
5891 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
5892
5893         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
5894         m32r_function_value_regno_p): New functions.
5895         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5896         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
5897         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
5898         FUNCTION_VALUE_REGNO_P): Remove.
5899
5900 2010-09-04  Jan Hubicka  <jh@suse.cz>
5901
5902         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
5903         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
5904         fold_read_from_constant_string.
5905
5906         * gimple.h (canonicalize_constructor_val): Declare.
5907         * gimple-fold.c (canonicalize_constructor_val): New function.
5908         (get_symbol_constant_value):Use it.
5909         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
5910
5911 2010-09-04  Jan Hubicka  <jh@suse.cz>
5912
5913         * tree-switch-conversion.c (build_one_array): Set constructor to be
5914         static.
5915         * varpool.c (varpool_finalize_decl): Compute const_value_known.
5916
5917 2010-09-04  Richard Guenther  <rguenther@suse.de>
5918
5919         PR bootstrap/45519
5920         * tree-flow.h (force_gimple_operand_1): Declare.
5921         (force_gimple_operand_gsi_1): Likewise.
5922         * gimplify.c (force_gimple_operand_1): New worker taking a
5923         gimple predicate for ...
5924         (force_gimple_operand): ... which now wraps it.
5925         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
5926         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
5927         last change.
5928         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
5929         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
5930         (create_mem_ref): Likewise.
5931
5932 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
5933
5934         * config/i386/predicates.md (sse_reg_operand): New predicate.
5935         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
5936         predicate for operand 1.
5937         (XFmode push splitter): Use fp_register_operand predicate
5938         for operand 1.
5939         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
5940         (SF-DF float_extend push splitter): Add reload_completed insn
5941         predicate.
5942         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
5943         MODEF mode macro.  Add reload_completed insn predicate.
5944
5945 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
5946
5947         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
5948         (struct df_extract_ref): Remove.
5949         (union df_ref_d): Remove extract_ref member.
5950         (df_ref_create): Remove last three arguments.
5951         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
5952         * df-scan.c (df_ref_record): Remove last three arguments, do not
5953         pass them to df_ref_create_structure.
5954         (df_uses_record): Remove first and last three arguments.  Replace
5955         first argument with DF_REF_REGULAR, adjust calls to remove the
5956         width, offset and mode.  Always call recursively on the second
5957         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
5958         (df_ref_create_structure): Remove first argument.
5959         (struct df_scan_problem_data): Remove ref_extract_pool.
5960         (df_scan_free_internal): Do not free it.
5961         (df_scan_alloc): Do not allocate it.
5962         (df_ref_create): Remove last three arguments, do not pass them to
5963         df_ref_create_structure.
5964         (df_free_ref): Remove DF_REF_EXTRACT case.
5965         (df_notes_rescan): Adjust call to df_uses_record.
5966         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
5967         Remove DF_REF_EXTRACT case.
5968         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
5969         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
5970         and SUBREG definitions.
5971         (df_get_conditional_uses): Remove references to width/offset/mode,
5972         adjust call to df_ref_create_structure.
5973         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5974         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
5975         calls to df_uses_record and df_ref_record.
5976         * fwprop.c (update_df): Remove references to width/offset/mode,
5977         adjust call to df_ref_create.
5978
5979 2010-09-03  Jan Hubicka  <jh@suse.cz>
5980
5981         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
5982         (build_cdtor_fns): Update use of build_cdtor.
5983
5984 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
5985
5986         * doc/options.texi (SeparateAlias): Document.
5987         * opt-functions.awk (switch_flags): Handle SeparateAlias.
5988         * opth-gen.awk: Generate enumeration names for options marked
5989         SeparateAlias, but not for those marked Ignore.
5990         * opts-common.c (generate_canonical_option): Don't output separate
5991         argument for options marked CL_SEPARATE_ALIAS.
5992         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
5993         * opts.h (CL_SEPARATE_ALIAS): New.
5994         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5995         CL_COMMON): Adjust definitions.
5996         * config/i386/darwin.opt, config/mips/sde.opt: New.
5997         * common.opt (fdump-final-insns): New.
5998         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5999         i386/darwin.opt.
6000         (mips*-sde-elf*): Add mips/sde.opt.
6001         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
6002         -mno-data-in-code and -mcode-xonly here.
6003         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
6004         * gcc.c (option_map): Add "j" to --dump entry.
6005         (translate_options): Don't translate -d to -foutput-class-dir= here.
6006
6007 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
6008
6009         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
6010         DR_IS_WRITE.
6011         (compute_all_dependences): Same.
6012         (create_rdg_edge_for_ddr): Same.
6013         * tree-data-ref.h (DR_IS_WRITE): New.
6014         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
6015         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
6016         (write_memrefs_written_at_least_once): Same.
6017         * tree-predcom.c (suitable_component_p): Same.
6018         (determine_roots_comp): Same.
6019         (execute_load_motion): Same.
6020         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
6021         (vect_enhance_data_refs_alignment): Same.
6022         (vect_analyze_group_access): Same.
6023
6024 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
6025
6026         PR testsuite/42843
6027         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
6028         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
6029
6030 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
6031
6032         * dwarf2out.c (file scope): Remove #if0'd code.
6033         (gen_subprogram_die): Same.
6034
6035 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
6036
6037         PR middle-end/45484
6038         * dwarf2out.c (flush_queued_reg_saves): Rename to...
6039         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
6040         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
6041         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
6042         * config/i386/i386.c (output_set_got): Call it.
6043
6044 2010-09-03  Michael Matz  <matz@suse.de>
6045
6046         PR middle-end/45415
6047         * tree-sra.c (sra_modify_assign): If we modify the statement,
6048         say so.
6049
6050         * tree-ssa.c (verify_ssa): Check number of operands and links
6051         per statement to agree.
6052
6053 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
6054             Iain Sandoe  <iains@gcc.gnu.org>
6055
6056         PR target/45476
6057         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
6058         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
6059         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6060
6061 2010-09-03  Richard Guenther  <rguenther@suse.de>
6062
6063         * lto-streamer-out.c (output_function): Output function
6064         start and end loci.
6065         * lto-streamer-in.c (input_function): Input function start
6066         and end loci.
6067
6068 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6069
6070         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
6071         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
6072         * configure: Regenerate.
6073         * aclocal.m4: Regenerate.
6074
6075 2010-09-03  Jan Hubicka  <jh@suse.cz>
6076
6077         PR lto/44812
6078         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
6079         on functions/variables in other partition.
6080
6081 2010-09-03  Jan Hubicka  <jh@suse.cz>
6082
6083         * cgraph.h (struct varpool_node): Add const_value_known.
6084         (varpool_decide_const_value_known): Declare.
6085         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
6086         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
6087         (input_varpool_node): Restore const_value_known.
6088         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
6089         initializer folding.
6090         * ipa.c (ipa_discover_readonly_nonaddressable_var,
6091         function_and_variable_visibility): Compute const_value_known.
6092         * gimple-fold.c (get_symbol_constant_value): Use varpool for
6093         initializer folding.
6094         * varpool.c (varpool_decide_const_value_known): New function.
6095
6096 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
6097
6098         * config/i386/i386.md: Remove empty preparation statements
6099         from splitters.
6100
6101 2010-09-03  Jan Hubicka  <jh@suse.cz>
6102
6103         * passes.c (rest_of_decl_compilation): Do not add local vars into
6104         varpool.
6105         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
6106         static or extern vars are in varpool.
6107         (varpool_finalize_decl): Sanity check that only static vars are
6108         finalized.
6109
6110 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
6111
6112         PR debug/45500
6113         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
6114         not just generic vectors with BLKmode.
6115
6116 2010-09-03  Richard Guenther  <rguenther@suse.de>
6117
6118         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
6119         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
6120         * tree.h (TMR_SYMBOL): Remove.
6121         (TMR_BASE, TMR_OFFSET): Adjust.
6122         (TMR_INDEX2): New.
6123         * alias.c (ao_ref_from_mem): Use TMR_BASE.
6124         * builtins.c (get_object_alignment): Merge TMR_BASE and
6125         TMR_SYMBOL handling.
6126         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
6127         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
6128         handling.  Also allow TARGET_MEM_REF as base address.
6129         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
6130         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
6131         base.  Gimplify TMR_INDEX2.
6132         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
6133         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6134         (get_addr_base_and_unit_offset): Likewise.
6135         * tree-eh.c (tree_could_trap_p): Likewise.
6136         * tree-pretty-print.c (dump_generic_node): Likewise.
6137         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
6138         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
6139         base to index2.
6140         (get_address_description): Reconstruct addres description
6141         from merged TMR_BASE and TMR_INDEX2.
6142         (maybe_fold_tmr): Fold propagated addresses.
6143         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
6144         MEM_REF and TARGET_MEM_REF paths.
6145         (indirect_refs_may_alias_p): Likewise.
6146         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
6147         instead of TMR_SYMBOL.
6148         * tree-ssa-operands.c (get_tmr_operands): Simplify.
6149         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
6150         according to changes ...
6151         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
6152         Split TARGET_MEM_REF into two fields plus the base.
6153         * tree.c (mem_ref_offset): Simplify.
6154         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
6155         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
6156         Strip NOPs when folding MEM_REF addresses.
6157         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
6158         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
6159         (fold_gimple_assign): ... not here.
6160
6161 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
6162
6163         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
6164         * config/mips/mips.c (mips_shift_truncation_mask): New function.
6165         (TARGET_SHIFT_TRUNCATION_MASK): Define.
6166
6167 2010-09-02  Richard Henderson  <rth@redhat.com>
6168
6169         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
6170         instead of readelf in the test.
6171         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
6172         in the .debug_frame section for coff targets.
6173         * configure: Rebuild.
6174
6175 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
6176
6177         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
6178         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
6179         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6180         (m32c_class_likely_spilled_p): Make static. Change argument type to
6181         reg_class_t. Change result type to bool.
6182
6183 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6184
6185         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
6186         to convert (double)(long) into a single FRIZ instruction or not
6187         when -ffast-math is used.
6188
6189         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
6190         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
6191         or FRIZ instruction if -ffast-math.
6192         * config/rs6000/rs6000.md (friz): Ditto.
6193
6194         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
6195
6196 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
6197
6198         * opth-gen.awk (quote, comma): Remove unused variables.
6199
6200 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
6201
6202         * arm.c (arm_override_options): Correct fall-back code to use
6203         SUBTARGET_CPU_DEFAULT.
6204
6205 2010-09-02  Julian Brown  <julian@codesourcery.com>
6206
6207         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
6208         unspecs.
6209         (vcond<mode>, vcondu<mode>): New expanders.
6210         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
6211         comparisons with zero.
6212         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
6213         * config/arm/constraints.md (Dz): New constraint.
6214
6215 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
6216
6217         * target.def (class_likely_spilled_p): New hook.
6218         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
6219         * doc/tm.texi: Regenerate.
6220         * targhooks.c (default_class_likely_spilled_p): New function.
6221         * targhooks.h (default_class_likely_spilled_p): Declare.
6222         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
6223         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
6224         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
6225         Use fixed_reg_set instead of fixed_regs.
6226         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6227         * calls.c (avoid_likely_spilled_reg): Ditto.
6228         * ira-conflicts.c (ira_build_conflicts): Ditto.
6229         * ira.c (update_equiv_regs): Ditto.
6230         * mode-switching.c (create_pre_exit): Ditto.
6231         * regmove.c (find_matches): Ditto.
6232         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
6233         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
6234         (small_register_class_p): New inline function.
6235         (push_secondary_reload, find_reusable_reload, find_reloads): Use
6236         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
6237
6238         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
6239         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
6240         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6241
6242 2010-09-02  Richard Guenther  <rguenther@suse.de>
6243
6244         PR tree-optimization/44937
6245         PR tree-optimization/45412
6246         * ipa-split.c (split_function): Properly remove PHI nodes.
6247
6248 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
6249
6250         * opts.h (struct cl_option): Add warn_message field.
6251         (struct cl_decoded_option): Add warn_message field.
6252         * doc/options.texi (Ignore, Warn): Document.
6253         * opt-functions.awk (needs_state_p): Don't consider aliases or
6254         ignored options to need state saved.
6255         * optc-gen.awk: Handle Warn and Ignore.
6256         * opth-gen.awk: Output OPT_SPECIAL_ignore.
6257         * opts-common.c (decode_cmdline_option): Set warn_message field.
6258         Handle ignored options.
6259         (decode_cmdline_options_to_array, generate_option,
6260         generate_option_input_file): Set warn_message field.
6261         (read_cmdline_option): Generate warnings from warn_message field.
6262         Handle ignored options.
6263         * common.opt (Wunreachable-code, fargument-alias,
6264         fargument-noalias, fargument-noalias-global,
6265         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
6266         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
6267         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
6268         ftree-salias): Mark Ignore.
6269         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
6270         -mintel-syntax and -mno-intel-syntax here.
6271         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
6272         using Warn.
6273         * opts.c (common_handle_option): Don't handle options marked as
6274         ignored.
6275         (enable_warning_as_error): Handle ignored options.
6276
6277 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
6278
6279         PR driver/44076
6280         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
6281         alias_target fields.
6282         * opt-functions.awk (opt_sanitized_name): Don't handle
6283         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
6284         * optc-gen.awk: Generate alias fields.
6285         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
6286         Don't generate such constants for aliases.
6287         * opts-common.c (generate_canonical_option): New.
6288         (decode_cmdline_option): Handle aliases.  Use
6289         generate_canonical_option for known options instead of copying the
6290         input option text.
6291         * doc/options.texi (Alias): Document.
6292         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
6293         fstack-check, specs): Mark as aliases.
6294         * gcc.c (driver_handle_option): Canonicalize -L options to joined
6295         arguments.
6296         (driver_handle_option): Don't handle OPT_specs.
6297         * opts.c (common_handle_option): Don't handle options marked as
6298         aliases.
6299         (enable_warning_as_error): Handle aliases.
6300         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
6301         OPT_Wlarger_than_eq.
6302         * tree-optimize.c (tree_rest_of_compilation): Use
6303         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
6304
6305 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
6306
6307         * config/i386/i386.md (nonmemory_operand): New mode attribute.
6308         (push memory peephole2): Macroize peepholes using SWI mode iterator.
6309         (move immediate to memory peephole2): Macroize peepholes using
6310         SWI124 mode iterator.
6311         (non-pairable NOT peephole2): Macroize peepholes using SWI124
6312         mode iterator.
6313         (simple lea add peephole2): Macroize peepholes using SWI48
6314         mode iterator.
6315         (simple lea mult peephole2): Ditto.
6316         (imul by 3,5,9 to lea peephole2): Ditto.
6317         (mov $-1, reg peephole2): Macroize peepholes using SWI248
6318         mode iterator.
6319         (imul $32bit_imm,mem,reg peephole2): Ditto.
6320         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
6321
6322 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
6323
6324         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
6325
6326 2010-09-02  Olivier Hainque  <hainque@adacore.com>
6327
6328         PR middle-end/44763
6329         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
6330         (allocno_priority_compare_func): Use it instead of a straight
6331         difference computation over priorities.
6332
6333 2010-09-02  Andi Kleen  <ak@linux.intel.com>
6334
6335         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
6336
6337 2010-09-02  Ira Rosen  <irar@il.ibm.com>
6338
6339         * tree-vectorizer.h (get_later_stmt): New function.
6340         (vect_analyze_data_ref_dependences): Add argument.
6341         * tree-vect-loop.c (vect_analyze_loop): Update call to
6342         vect_analyze_data_ref_dependences.
6343         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
6344         New function.
6345         (vect_analyze_data_ref_dependence): Add argument for basic block
6346         dependencies. Check dependencies in basic block vectorization.
6347         (vect_analyze_data_ref_dependences): Add argument and update call to
6348         vect_analyze_data_ref_dependences.
6349         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
6350         (vect_bb_vectorizable_with_dependencies): New.
6351         (vect_slp_analyze_bb): Check dependencies in basic block.
6352         (vect_schedule_slp_instance): Insert stores before the last store in
6353         SLP instance.
6354
6355 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
6356
6357         PR target/45476
6358         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
6359         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
6360
6361 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
6362
6363         PR middle-end/45458
6364         * bb-reorder.c (add_labels_and_missing_jumps): Treat
6365         bbs ending with throwing insns like blocks ending with a call.
6366         (fix_up_fall_thru_edges): Likewise.
6367
6368 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
6369
6370         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
6371         (m32c_function_arg_advance): Delete.
6372         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6373         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
6374         comments.  Take a const_tree and a bool.  Declare.
6375         (m32c_function_arg_advance): Likewise.
6376         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6377
6378 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
6379
6380         PR target/45476
6381         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
6382         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
6383         * config/i386/mingw32.h: ... here.
6384
6385 2010-09-01  Andi Kleen  <ak@linux.intel.com>
6386
6387         PR lto/45475
6388         * lto-streamer-in.c (lto_input_ts_target_option): Add.
6389         (lto_input_tree_pointers): Call lto_input_ts_target_option.
6390         * lto-streamer-out (lto_output_ts_target_option): Add.
6391         (lto_output_tree_pointers): Call lto_output_ts_target_option.
6392
6393 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
6394
6395         PR/target 45452
6396         * config/i386/cygwin.h: Change order of specified import libraries.
6397         * config/i386/mingw32.h: Likewise.
6398         * config/i386/t-cygwin: Likewise.
6399         * config/i386/t-mingw32: Likewise.
6400         * config/i386/t-mingw-w32: Likewise.
6401         * config/i386/t-mingw-w64: Likewise.
6402
6403 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6404
6405         * config/arm/neon-schedgen.ml (core): New type.
6406         (allCores): List of supported cores.
6407         (availability_table): Add supported cores.
6408         (collate_bypasses): Accept core as a parameter.
6409         (worst_case_latencies_and_bypasses): Accept core as a parameter.
6410         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
6411         and coreStr to get tune attribute and prefix for functional units.
6412         (emit_bypasses): Accept core name and use it.
6413         (calculate_per_core_availability_table): New.
6414         (filter_core): New.
6415         (calculate_core_availability_table): New.
6416         (main): Use calculate_core_availablity_table.
6417         * config/arm/cortex-a8-neon.md: Update copyright year.
6418         Regenerated from ml file and merged in.
6419         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
6420         cortex_a8_neon_mrc.
6421
6422 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
6423
6424         * Makefile.in (tree-switch-conversion.o): Update dependencies.
6425
6426 2010-09-01  Richard Guenther  <rguenther@suse.de>
6427
6428         * alias.c (ao_ref_from_mem): Adjust.
6429         * builtins.c (get_object_alignment): Likewise.
6430         * cfgexpand.c (expand_debug_expr): Likewise.
6431         * gimple.c (get_base_address): Likewise.
6432         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6433         (get_addr_base_and_unit_offset): Likewise.  Fix for
6434         both TMR_SYMBOL and TMR_BASE being set.
6435         * tree-eh.c (tree_could_trap_p): Likewise.
6436         * gimplify.c (gimplify_expr): Do not attempt to gimplify
6437         TMR_SYMBOL.  Always gimplify TMR_BASE.
6438         * tree-cfg.c (verify_types_in_gimple_reference): Verify
6439         TMR_BASE if there is a TMR_SYMBOL.
6440         * tree-pretty-print.c (dump_generic_node): Adjust.
6441         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6442         (tree_mem_ref_addr): Likewise.
6443         (create_mem_ref_raw): Likewise.
6444         (move_fixed_address_to_symbol): Likewise.
6445         (create_mem_ref): Likewise.
6446         (dump_mem_address): Likewise.
6447         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
6448         Fix for both TMR_SYMBOL and TMR_BASE being set.
6449         (indirect_refs_may_alias_p): Likewise.
6450         * tree-ssa-operands.c (get_tmr_operands): Adjust.
6451         * tree.def (TARGET_MEM_REF): Adjust documentation.
6452
6453 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
6454
6455         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
6456         Rename from X86_TUNE_ADD_ESP_4.
6457         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
6458         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
6459         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
6460         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
6461         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
6462         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
6463         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
6464         * config/i386/i386.c (initial_ix86_tune_features)
6465         <X86_TUNE_SINGLE_POP>: Invert members.
6466         <X86_TUNE_DOUBLE_POP>: Ditto.
6467         <X86_TUNE_SINGLE_PUSH>: Ditto.
6468         <X86_TUNE_DOUBLE_PUSH>: Ditto.
6469         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
6470         No longer exported.
6471         (push peephole2 patterns): Macroize peepholes using P mode iterator.
6472         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
6473         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
6474         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
6475
6476 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
6477
6478         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
6479         a volatile LHS if the constructor has only one element.
6480
6481 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
6482
6483         PR bootstrap/45321
6484         * tree.c (stdarg_p): Make fntype parameter const.
6485         * tree.h (stdarg_p): Likewise.
6486         (function_args_iterator): Remove unused fntype field.
6487         (function_args_iter_init): Do not initialize fntype
6488         field.  Make fntype parameter const.
6489
6490 2010-09-01  Richard Guenther  <rguenther@suse.de>
6491
6492         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
6493         estimate.
6494         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
6495         (execute_vrp): Compute number of iteration estimates.
6496         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
6497         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
6498         * tree-data-ref.c (estimated_loop_iterations): Adjust.
6499         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
6500         Infer loop bounds from undefined behavior based on a new parameter.
6501         (estimate_numbers_of_iterations): Likewise.
6502         (scev_probably_wraps_p): Adjust.
6503         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
6504
6505 2010-09-01  Nick Clifton  <nickc@redhat.com>
6506
6507         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
6508         where appropriate.
6509         (xstormy16_legitimate_address_p): Use true and false instead of 1
6510         and 0.
6511         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
6512         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
6513         magic constant 2.
6514         (xstormy16_expand_call): Fix comment at start of function.
6515
6516 2010-09-01  Nick Clifton  <nickc@redhat.com>
6517
6518         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
6519         when pushing accumulator register.
6520         (rx_get_stack_layout): Always save call clobbered registers inside
6521         interrupt handlers.
6522         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
6523
6524 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
6525
6526         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
6527         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
6528
6529         * libgcc-std.ver (GCC_4.6.0): Define version.
6530
6531 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
6532
6533         * tree-nested.c (convert_all_function_calls): Iterate until after the
6534         sum of static chains in the nest doesn't change.
6535
6536 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
6537
6538         * config/m32c/m32c.c (classes_intersect): Remove.
6539         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
6540         reg_classes_intersect_p instead of classes_intersect.
6541         (class_can_hold_mode): Change arguments type from enum reg_class to
6542         reg_class_t.  Use reg_class_contents instead of class_contents.
6543         (m32c_register_move_cost): Make static. Change arguments type from
6544         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
6545         classes_intersect. Use reg_class_contents instead of class_contents.
6546         (m32c_memory_move_cost): Make static. Change arguments type from
6547         enum reg_class to reg_class_t.
6548         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6549         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6550         * config/m32c/m32c-protos.h (m32c_register_move_cost,
6551         m32c_memory_move_cost): Remove.
6552
6553 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
6554
6555         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
6556         (arm_function_arg): Delete.
6557         (arm_needs_doubleword_align): Take a const_tree.
6558         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6559         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
6560         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
6561         (arm_function_arg): Make static.  Take a const_tree and a bool.
6562         (arm_function_arg_advance): Likewise.
6563         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6564
6565 2010-08-31  Andi Kleen  <ak@linux.intel.com>
6566
6567         * common.opt (fwhopr=): Update for -fwhopr=jobserver
6568         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
6569         * lto-wrapper.c (run_gcc): Add jobserver mode.
6570         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
6571         argument.
6572
6573 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
6574
6575         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
6576         (popsi1): Ditto.
6577         (*popdi1_epilogue): Ditto.
6578         (*popsi1_epilogue): Ditto.
6579         (popsi, popdi peephole2 patterns): Update peepholes for changed
6580         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
6581
6582         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
6583         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
6584
6585         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
6586         (override_options): Do not initialize removed ix86_gen_pop1.
6587         (gen_pop): New static function.
6588         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
6589         (release_scratch_register_on_entry): Ditto.
6590         (ix86_restore_reg_using_pop): Ditto.
6591         (ix86_expand_epilogue): Ditto.
6592
6593 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
6594
6595         PR middle-end/45461
6596         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
6597
6598 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
6599
6600         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
6601         semicolons.
6602
6603 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6604
6605         * doc/extend.texi: Fix documentation of the return value of
6606         __builtin_choose_expr.
6607
6608 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
6609
6610         * config/v850/v850-protos.h (function_arg): Delete.
6611         * config/v850/v850.h (FUNCTION_ARG): Delete.
6612         (FUNCTION_ARG_ADVANCE): Move code to...
6613         * config/v850/v850.c (v850_function_arg_advance): ...here.
6614         (v850_function_arg): Make static.  Take a const_tree and a bool.
6615         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6616
6617 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
6618
6619         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
6620         these...
6621         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6622         ...and these...
6623         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
6624         ..to here..
6625         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
6626         ...and here.
6627         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6628
6629 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
6630
6631         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
6632         Delete.
6633         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6634         * config/rx/rx.c (rx_function_arg_size): Make static.
6635         (rx_function_arg): Likewise.
6636         (rx_function_arg_advance): New function.
6637         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6638
6639 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
6640
6641         * config/arm/arm.c (arm_override_options): Remove superfluous test.
6642         Fix indentation.
6643
6644 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
6645
6646         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
6647         (dwarf2out_decl) <CONST_DECL>: Likewise.
6648
6649 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
6650
6651         Stack usage support
6652         * common.opt (-fstack-usage): New option.
6653         * doc/invoke.texi (Debugging options): Document it.
6654         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
6655         allocate_dynamic_stack_space.
6656         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
6657         and propagate it to allocate_dynamic_stack_space.
6658         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
6659         * calls.c (initialize_argument_information): Pass TRUE as 4th
6660         argument to allocate_dynamic_stack_space.
6661         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
6662         to 1 when pushing a variable-sized argument onto the stack.  Pass
6663         TRUE as 4th argument to allocate_dynamic_stack_space.
6664         Update current_function_pushed_stack_size.
6665         (emit_library_call_value_1): Likewise.
6666         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
6667         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
6668         attempt to find an upper bound.  Remove redundant code for the
6669         SETJMP_VIA_SAVE_AREA case.
6670         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
6671         * function.h (struct stack_usage): New structure.
6672         (current_function_static_stack_size): New macro.
6673         (current_function_dynamic_stack_size): Likewise.
6674         (current_function_pushed_stack_size): Likewise.
6675         (current_function_dynamic_alloc_count): Likewise.
6676         (current_function_has_unbounded_dynamic_stack_size): Likewise.
6677         (current_function_allocates_dynamic_stack_space): Likewise.
6678         (struct function): Add new field 'su'.
6679         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
6680         add the value of the dynamic offset to the dynamic stack usage.
6681         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
6682         for variable-sized objects.
6683         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
6684         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
6685         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
6686         BUILT_IN_ALLOCA for variable-sized objects.
6687         * output.h (output_stack_usage): Declare.
6688         * toplev.c (stack_usage_file): New file pointer.
6689         (output_stack_usage): New function.
6690         (open_auxiliary_file): Likewise.
6691         (lang_dependent_init): Open file if flag_stack_usage is set.
6692         (finalize): Close file if stack_usage_file is not null.
6693         * tree.h (ALLOCA_FOR_VAR_P): New macro.
6694         * config/alpha/alpha.c (compute_frame_size): New function.
6695         (alpha_expand_prologue): Use it.
6696         (alpha_start_function): Likewise.
6697         (alpha_expand_epilogue): Likewise.  Set stack usage info.
6698         * config/i386/i386.c (ix86_expand_prologue): Likewise.
6699         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6700         * config/mips/mips.c (mips_expand_prologue): Likewise.
6701         * config/pa/pa.c (hppa_expand_prologue): Likewise.
6702         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6703         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6704
6705 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
6706
6707         PR tree-optimization/45427
6708         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
6709         Handle the case that the exit is never taken correctly.
6710         (number_of_iterations_ne): Pass exit_must_be_taken to
6711         number_of_iterations_ne_max.
6712
6713 2010-08-30  Catherine Moore  <clm@codesourcery.com>
6714
6715         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
6716         Infer -mdspr2 for the the 74K.
6717
6718 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
6719
6720         PR debug/45419
6721         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
6722
6723         PR middle-end/45423
6724         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
6725         and TRUTH_{AND,OR,XOR}_EXPR.
6726         * c-parser.c (c_parser_omp_atomic): Handle boolean
6727         {PRE,POST}_{INC,DEC}REMENT.
6728
6729 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
6730
6731         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
6732         (function_arg): Delete.
6733         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6734         (FUNCTION_INCOMING_ARG): Delete.
6735         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
6736         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
6737         and a bool.
6738         (function_arg): Rename to...
6739         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
6740         a bool.
6741         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
6742         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6743         (TARGET_FUNCTION_INCOMING_ARG): Define.
6744
6745 2010-08-30  Richard Guenther  <rguenther@suse.de>
6746
6747         PR tree-optimization/21602
6748         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
6749         using points-to information.
6750
6751 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
6752
6753         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
6754
6755 2010-08-30  Richard Guenther  <rguenther@suse.de>
6756
6757         PR tree-optimization/45449
6758         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
6759         variables.
6760
6761 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
6762
6763         * opts.h (CL_ERR_NEGATIVE): Define.
6764         * opts.c (unknown_option_callback): Don't postpone warnings for
6765         options marked with CL_ERR_NEGATIVE.
6766         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
6767         for negative versions of CL_REJECT_NEGATIVE options.
6768
6769 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
6770
6771         * config/i386/i386.md (zero_extendsidi2_1): Rename from
6772         zero_extendsidi2_32.
6773         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
6774         using SWI12 mode iterator.
6775         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
6776         to define_insn_and_split pattern.
6777         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
6778         using SWI24 mode iterator.
6779         (*zero_extendqi<mode>2_and): Macroize insn from
6780         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
6781         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
6782         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
6783         SWI24 mode iterator.
6784         (*zero_extendqi<mode>2_movzbl): Ditto from
6785         *zero_extendqi{hi,si}2_movzbl.
6786         (extendsidi2_1): Rename from extendsidi2_32.
6787         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
6788         SWI12 mode iterator.
6789
6790 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
6791
6792         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
6793         general purpose registers.
6794         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
6795         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
6796         with general purpose registers and memory operands.  Add associated
6797         CCImode post-reload splitter.
6798         * config/ia64/div.md: Change BImode to CCImode throughout.
6799
6800 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
6801
6802         * config/ia64/ia64.md (cstorebi4): Fix thinko.
6803
6804 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
6805
6806         * config/picochip/picochip.c (reorder_var_tracking_notes): This
6807         function was dropping debug insns which caused PR45299.
6808
6809 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
6810
6811         * config/i386/sse.md (extsuffix): New code attribute.
6812         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
6813         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
6814         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
6815         and sse4_1_zero_extendv4qiv4si2.
6816         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
6817         and sse4_1_zero_extendv2qiv2di2.
6818         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
6819         and sse4_1_zero_extendv4hiv4si2.
6820         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
6821         and sse4_1_zero_extendv2hiv2di2.
6822         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
6823         and sse4_1_zero_extendv2siv2di2
6824
6825         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
6826         using any_extend code iterator.
6827         (*avx_<s>mulv8hi3_highpart): Macroize insn from
6828         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
6829         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
6830
6831         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
6832         gen_sse4_1_sign_extend* functions.
6833         (struct builtin_description bdesc_args): Ditto.
6834
6835 2010-08-27  Xinliang David Li  <davidxl@google.com>
6836
6837         PR/45422
6838         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
6839         (iv_ca_set_no_cp): Update used inv expr count.
6840         (iv_ca_set_cp): Ditto.
6841         (iv_ca_new): Initialize new member.
6842         (iv_ca_free): Free memory.
6843
6844 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
6845
6846         * config/sh/sh-protos.h (sh_function_arg): Delete.
6847         (sh_function_arg_advance): Delete.
6848         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6849         (PASS_IN_REG_P): Eliminate cast.
6850         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
6851         const_tree and a bool.
6852         (sh_function_arg): Likewise.
6853         (sh_output_mi_thunk): Call sh_function_arg_advance) and
6854         sh_function_arg.
6855         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6856
6857 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
6858             Kaz Kojima  <kkojima@gcc.gnu.org>
6859
6860         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
6861         when possible.
6862         (sh_expand_epilogue): Likewise.
6863         * config/sh/sh.md (movml_push_banked): New insn.
6864         (movml_pop_banked): Likewise.
6865
6866 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
6867
6868         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
6869         gen_regexp_oneof, gen_regexp_sequence): Use the string found
6870         in vector element 0 rather than the original string when there's
6871         only one element.
6872         (gen_regexp): Remove extra semicolon.
6873
6874         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
6875         thumb2_movsf_vfp): Set attribute "insn".
6876         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
6877         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
6878         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
6879         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
6880         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
6881         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
6882         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
6883         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
6884         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
6885         if_not_arith, if_arith_not, cond_move_not): Likewise.
6886
6887 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6888
6889         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
6890         New declaration.
6891         (rs6000_allocate_stack_temp): Ditto.
6892         (rs6000_expand_convert_si_to_sfdf): Ditto.
6893
6894         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
6895         line.  Update the options set if power6 or power7 server/embedded
6896         type options are used.  If we give a warning for no vsx under
6897         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
6898         (rs6000_allocate_stack_temp): New function to allocate a stack
6899         tempoary and adjust the address so it meets either REG+OFFSET or
6900         REG+REG addressing requirements.
6901         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
6902         that they can be used with the LFIWAX/LFIWZX instrucitons.
6903         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
6904         converting signed/unsigned SImode to either SFmode/DFmode.
6905
6906         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
6907         whether certain instructions can be generated.
6908         (TARGET_FCTIDZ): Ditto.
6909         (TARGET_STFIWX): Ditto.
6910         (TARGET_LFIWAX): Ditto.
6911         (TARGET_LFIWZX): Ditto.
6912         (TARGET_FCFIDS): Ditto.
6913         (TARGET_FCFIDU): Ditto.
6914         (TARGET_FCFIDUS): Ditto.
6915         (TARGET_FCTIDUZ): Ditto.
6916         (TARGET_FCTIWUZ): Ditto.
6917
6918         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
6919         (UNSPEC_FCTID): Ditto.
6920         (UNSPEC_LFIWAX): Ditto.
6921         (UNSPEC_LFIWZX): Ditto.
6922         (UNSPEC_FCTIWUZ): Ditto.
6923         (rreg): Use correct constraints.
6924         (SI_CONVERT_FP): New mode attribute for floating point conversion
6925         tests.
6926         (E500_CONVERT): Ditto.
6927         (lfiwax): New insns for converting from integer to floating point
6928         utilizing newer instructions.  Attempt to optimize conversions
6929         that come from memory so that we don't load the value into a GPR,
6930         spill it to the stack and reload it into a FPR.
6931         (floatsi<mode>2_lfiwax): Ditto.
6932         (floatsi<mode>2_lfiwax_mem): Ditto.
6933         (floatsi<mode>2_lfiwax_mem2): Ditto.
6934         (lfiwzx): Ditto.
6935         (floatunssi<mode>2_lfiwzx): Ditto.
6936         (floatunssi<mode>2_lfiwzx_mem): Ditto.
6937         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
6938         (floatdidf2_mem): Ditto.
6939         (floatunsdidf2_fcfidu): Ditto.
6940         (floatunsdidf2_mem): Ditto.
6941         (floatunsdisf2): Ditto.
6942         (floatunsdisf2_fcfidus): Ditto.
6943         (floatunsdisf2_mem): Ditto.
6944         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
6945         Use FCFID on 32-bit hosts that support it.
6946         (floatsidf2_internal): Ditto.
6947         (floatunssisf2): Ditto.
6948         (floatunssidf2): Ditto.
6949         (floatunssidf2_internal): Ditto.
6950         (floatsisf2): Ditto.
6951         (floatdidf2): Ditto.
6952         (floatdidf2_fpr): Ditto.
6953         (floatunsdidf2): Ditto.
6954         (floatdisf2): Ditto.
6955         (floatdisf2_fcfids): Ditto.
6956         (floatdisf2_internal1): Ditto.
6957         (fixuns_truncsfsi2): Delete, merge into common pattern for both
6958         SF/DF.  Add power7 support.
6959         (fix_truncsfsi2): Ditto.
6960         (fixuns_truncdfsi2): Ditto.
6961         (fixuns_truncdfdi2): Ditto.
6962         (fix_truncdfsi2): Ditto.
6963         (fix_truncdfsi2_internal): Ditto.
6964         (fix_truncdfsi2_internal_gfxopt): Ditto.
6965         (fix_truncdfsi2_mfpgpr): Ditto.
6966         (fctiwz): Ditto.
6967         (btruncdf2): Ditto.
6968         (btruncdf2_fpr): Ditto.
6969         (btructsf2): Ditto.
6970         (ceildf2): Ditto.
6971         (ceildf2_fpr): Ditto.
6972         (ceilsf2): Ditto.
6973         (floordf2): Ditto.
6974         (floordf2_fpr): Ditto.
6975         (floorsf2): Ditto.
6976         (rounddf2): Ditto.
6977         (rounddf2_fpr): Ditto.
6978         (roundsf2): Ditto.
6979         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
6980         (fix_trunc<mode>di2): Ditto.
6981         (fixuns_trunc<mode>si2): Ditto.
6982         (fixuns_trunc<mode>di2): Ditto.
6983         (fctiwz_<mode>): Ditto.
6984         (btrunc<mode>2): Ditto.
6985         (btrunc<mode>2_fpr): Ditto.
6986         (ceil<mode>2): Ditto.
6987         (ceil<mode>2_fpr): Ditto.
6988         (floor<mode>2): Ditto.
6989         (float<mode>2_fpr): Ditto.
6990         (round<mode>2): Ditto.
6991         (round<mode>2_fpr): Ditto.
6992         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
6993         (fixuns_trunc<mode>si2_stfiwx): Ditto.
6994         (fix_truncdfsi2_internal): Ditto.
6995         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
6996         converted value on stack, loaded into GPR, and then stored into
6997         the final destination.
6998         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
6999         FCTIDZ.
7000         (lrint<mode>di2): New insn, provide the lrint builtin functions.
7001         (ftruncdf2): Delete, unused.
7002         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
7003
7004         * config/rs6000/vsx.md (toplevel): Update copyright year.
7005         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
7006         (VSr3): Ditto.
7007
7008 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
7009             Jeremie Salvucci  <jeremie.salvucci@free.fr>
7010
7011         * gengtype.c (output_type_enum): Test the right union member.
7012
7013 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
7014
7015         PR target/41484
7016         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
7017         operands for operand 1.
7018         (sse4_1_extendv4qiv4si2): Ditto.
7019         (sse4_1_extendv2qiv2di2): Ditto.
7020         (sse4_1_extendv4hiv4si2): Ditto.
7021         (sse4_1_extendv2hiv2di2): Ditto.
7022         (sse4_1_extendv2siv2di2): Ditto.
7023         (sse4_1_zero_extendv8qiv8hi2): Ditto.
7024         (sse4_1_zero_extendv4qiv4si2): Ditto.
7025         (sse4_1_zero_extendv2qiv2di2): Ditto.
7026         (sse4_1_zero_extendv4hiv4si2): Ditto.
7027         (sse4_1_zero_extendv2hiv2di2): Ditto.
7028         (sse4_1_zero_extendv2siv2di2): Ditto.
7029         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
7030         (*sse4_1_extendv4qiv4si2): Ditto.
7031         (*sse4_1_extendv2qiv2di2): Ditto.
7032         (*sse4_1_extendv4hiv4si2): Ditto.
7033         (*sse4_1_extendv2hiv2di2): Ditto.
7034         (*sse4_1_extendv2siv2di2): Ditto.
7035         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
7036         (*sse4_1_zero_extendv4qiv4si2): Ditto.
7037         (*sse4_1_zero_extendv2qiv2di2): Ditto.
7038         (*sse4_1_zero_extendv4hiv4si2): Ditto.
7039         (*sse4_1_zero_extendv2hiv2di2): Ditto.
7040         (*sse4_1_zero_extendv2siv2di2): Ditto.
7041
7042 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
7043
7044         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
7045         (mips_function_arg): Delete.
7046         (mips_function_arg_boundary): Take a const_tree.
7047         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
7048         (mips_arg_info): Likewise.
7049         (mips_setup_incoming_varargs): Call mips_function_arg_advance
7050         instead of FUNCTION_ARG_ADVANCE.
7051         (mips_function_arg_advance): Adjust prototype.  Make static.
7052         (mips_function_arg): Likewise.
7053         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7054         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7055
7056 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
7057
7058         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7059         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
7060         (function_arg): Delete.
7061         (function_arg_boundary): Take a const_tree.
7062         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
7063         (rs6000_spe_function_arg): Likewise.
7064         (rs6000_parm_start): Likewise.
7065         (rs6000_arg_size): Likewise.
7066         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
7067         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
7068         (rs6000_mixed_function_arg): Likewise.
7069         (function_arg): Rename to...
7070         (rs6000_function_arg): ...this.
7071         (function_arg_advance): Rename to...
7072         (rs6000_function_arg_advance_1): ...this
7073         (rs6000_function_arg_advance): New function.  Call it.
7074         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
7075         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
7076         (rs6000_function_value): Likewise.
7077         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7078
7079 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7080
7081         * config/arm/arm.md (enabled): Test the value of arch_enabled
7082         rather than just using it.
7083
7084 2010-08-27  Olivier Hainque  <hainque@adacore.com>
7085             Eric Botcazou  <ebotcazou@adacore.com>
7086
7087         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
7088         cover all the possible offsets from this base.
7089         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
7090
7091 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
7092
7093         PR tree-optimization/44485
7094         * calls.c (flags_from_decl_or_type): For const or pure
7095         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
7096         together with ECF_CONST resp. ECF_PURE.
7097         * builtins.c (expand_builtin): Use flags_from_decl_or_type
7098         instead of querying flags directly.
7099         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
7100         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
7101
7102 2010-08-26  Richard Guenther  <rguenther@suse.de>
7103
7104         PR tree-optimization/45255
7105         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
7106         and externals are also invariant.
7107
7108 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
7109
7110         PR rtl-optimization/44858
7111         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
7112         newi2pat, make sure they don't affect newpat.
7113
7114         PR rtl-optimization/45400
7115         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
7116         SUBREG_REG if both modes are of MODE_INT class.
7117
7118 2010-08-25  Julian Brown  <julian@codesourcery.com>
7119
7120         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
7121         * config/arm/arm.md (generic_sched): No for Cortex-A5.
7122         (generic_vfp): Likewise.
7123         (cortex-a5.md): Include.
7124         * config/arm/cortex-a5.md: New.
7125
7126 2010-08-25  Richard Guenther  <rguenther@suse.de>
7127
7128         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
7129         * gimple.c (gimple_get_alias_set): Remove special handling
7130         for pointers.
7131
7132 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
7133
7134         PR middle-end/45355
7135         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
7136         dead_or_set_p when computing i0_feeds_i2_n.
7137
7138         * combine.c (find_split_point): Undo canonicalization of multiply-add
7139         to (minus x (mult)) when it seems likely that this will increase the
7140         chances of a split.
7141
7142 2010-08-25  Richard Guenther  <rguenther@suse.de>
7143
7144         PR lto/44562
7145         * lto-streamer.c (lto_record_common_node): Do not mess with
7146         TYPE_CANONICAL when not in lto.
7147         * gimple.c (gimple_register_type): Likewise.
7148
7149 2010-08-25  Richard Guenther  <rguenther@suse.de>
7150
7151         PR tree-optimization/45316
7152         * tree-ssa-pre.c (eliminate): Properly clean EH info.
7153
7154 2010-08-25  Richard Guenther  <rguenther@suse.de>
7155
7156         PR tree-optimization/45393
7157         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
7158         and clean EH info.  Avoid SSA update.
7159         (execute_cse_sincos): Cleanup the CFG if it has changed.
7160
7161 2010-08-25  Richard Guenther  <rguenther@suse.de>
7162
7163         PR middle-end/45379
7164         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
7165         TARGET_MEM_REF in alignment computation.
7166
7167 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
7168
7169         PR tree-optimization/45059
7170         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
7171         type conversions from newop{1,2}.  Assert t is a comparison and
7172         newop{1,2} after the stripping are gimple vals.
7173
7174 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
7175
7176         * config/arm/iterators.md (VU, SE, V_widen_l): New.
7177         (V_unpack, US): New.
7178         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
7179         (vec_unpack<US>_lo_<mode>): Likewise.
7180         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
7181         (neon_vec_unpack<US>_lo_<mode>): Likewise.
7182         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
7183         (vec_widen_<US>mult_hi_<mode>): Likewise.
7184         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
7185         (neon_vec_<US>mult_hi_<mode>"): Likewise.
7186         (neon_unpack<US>_<mode>): Widening move intermediate step for
7187         vectorizing without -mvectorize-with-neon-quad.
7188         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
7189         for vectorizing without -mvectorize-with-neon-quad.
7190         * config/arm/predicates.md (vect_par_constant_high): Check for
7191         high-half lanes of a vector.
7192         (vect_par_constant_low): Check for low-half lanes of a vector.
7193
7194 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
7195
7196         * tree-if-conv.c (struct ifc_dr): New.
7197         (IFC_DR): New.
7198         (DR_WRITTEN_AT_LEAST_ONCE): New.
7199         (DR_RW_UNCONDITIONALLY): New.
7200         (memref_read_or_written_unconditionally): Use the cached values
7201         when possible.
7202         (write_memref_written_at_least_once): Same.
7203         (if_convertible_loop_p): Initialize and free DR->aux fields.
7204
7205 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
7206
7207         * gimple.c (gimple_could_trap_p_1): Not static anymore.
7208         Pass an extra bool parameter include_mem.
7209         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
7210         (gimple_assign_rhs_could_trap_p): Same.
7211         * gimple.h (gimple_could_trap_p_1): Declared.
7212         * tree-data-ref.h (same_data_refs_base_objects): New.
7213         (same_data_refs): New.
7214         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
7215         (write_memrefs_written_at_least_once): New.
7216         (ifcvt_memrefs_wont_trap): New.
7217         (operations_could_trap): New.
7218         (ifcvt_could_trap_p): New.
7219         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
7220         Gets a vector of data refs.
7221         (if_convertible_stmt_p): Same.
7222         (if_convertible_loop_p_1): New.
7223         (if_convertible_loop_p): Call if_convertible_loop_p_1.
7224
7225 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
7226
7227         * common.opt (ftree-loop-if-convert-stores): New flag.
7228         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
7229         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
7230         the created statement before GSI.
7231         (if_convertible_phi_p): Allow virtual phi nodes when
7232         flag_loop_if_convert_stores is set.
7233         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
7234         Do not handle types that do not match is_gimple_reg_type.
7235         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
7236         when flag_loop_if_convert_stores is set, as LHS can contain
7237         memory refs.
7238         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
7239         to if_convertible_gimple_assign_stmt_p.
7240         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
7241         (replace_phi_with_cond_gimple_assign_stmt): Renamed
7242         predicate_scalar_phi.  Do not handle virtual phi nodes.
7243         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
7244         Call predicate_scalar_phi.
7245         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
7246         just after the labels for flag_loop_if_convert_stores, otherwise
7247         insert the predicate in the end of the BB.
7248         (predicate_mem_writes): New.
7249         (combine_blocks): Call predicate_all_scalar_phis.  When
7250         flag_loop_if_convert_stores is set, call predicate_mem_writes.
7251         (tree_if_conversion): Call mark_sym_for_renaming when
7252         flag_loop_if_convert_stores is set.
7253         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
7254         flag_loop_if_convert_stores is set.
7255
7256 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
7257
7258         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
7259         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
7260         (pa_function_value): Make static.
7261         (override_options): Rename to...
7262         (pa_option_override): ...this. Make static.
7263         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
7264         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
7265         TARGET_OPTION_OVERRIDE): Define.
7266         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
7267         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
7268         Remove.
7269         * config/pa/pa-protos.h (override_options): Remove.
7270
7271 2010-08-24  Richard Guenther  <rguenther@suse.de>
7272
7273         PR middle-end/45379
7274         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
7275         if addr->index is NULL or zero.
7276         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
7277         TARGET_MEM_REF more properly.
7278         (indirect_ref_may_alias_decl_p): Likewise.
7279         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
7280         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
7281
7282 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
7283
7284         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
7285         (m32c_override_options): Rename to...
7286         (m32c_option_override): ...this. Make static.
7287         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
7288         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
7289         Remove.
7290         * config/m32c/m32c-protos.h (m32c_override_options,
7291         m32c_function_value_regno_p): Remove.
7292
7293 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
7294
7295         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
7296         Fix a typo in a previous commit.
7297
7298 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
7299
7300         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
7301         Pre-initialize innerloop_iters to one.
7302
7303 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
7304
7305         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
7306         existing static function global.
7307
7308         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
7309         is changed to global.
7310
7311         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
7312         may_be_nonaddressable_p on base, and don't collect this reference
7313         if the address of the base could not be taken.
7314
7315 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7316
7317         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
7318         enable the compiler to autovectorize mathmetical functions for
7319         power7 using the Mathematical Acceleration Subsystem library.
7320
7321         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
7322         handle which vector math library we have.
7323         (rs6000_override_options): Add -mveclibabi=mass support.
7324         (rs6000_builtin_vectorized_libmass): New function to handle auto
7325         vectorizing math functions that are in the MASS library.
7326         (rs6000_builtin_vectorized_function): Call it.
7327
7328         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7329         -mveclibabi=mass.
7330
7331 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7332
7333         PR boehm-gc/34544
7334         * gthr-posix.h (__gthread_active_init): Delete.
7335         (__gthread_active_p): Do activity check here.
7336         Don't include errno.h on hppa-hpux.  Update comment.
7337         * gthr-posix95.h (__gthread_active_init): Delete.
7338         (__gthread_active_p): Do activity check here.
7339         Don't include errno.h on hppa-hpux.  Update comment.
7340         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
7341         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
7342         add -lpthread when -mt or -pthread is specified.
7343         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
7344         (LINK_GCC_C_SEQUENCE_SPEC): Define.
7345         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
7346         (stublib.c, pthread_default_stacksize_np-stub.o,
7347         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
7348         $(T)libgcc_stub.a): Add methods.
7349         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
7350         (stublib.c, pthread_default_stacksize_np-stub.o,
7351         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
7352         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7353         pthread_mutex_unlock): New stubs.
7354
7355 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
7356
7357         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
7358         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
7359         options.
7360         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
7361         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
7362         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
7363         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
7364         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
7365         "-l".
7366         * cppspec.c: Include opts.h.
7367         (lang_specific_driver): Use cl_decoded_option structures.
7368         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
7369         * doc/tm.texi: Regenerate.
7370         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
7371         (driver_handle_option): Allow driver options needing no special
7372         processing.
7373         (process_command): Decode options before call to
7374         lang_specific_driver.  Pass decoded options to
7375         lang_specific_driver.
7376         * gcc.h (lang_specific_driver): Update prototype.
7377         * gccspec.c: Include opts.h.
7378         (lang_specific_driver): Use cl_decoded_option structures.
7379         * opts-common.c (option_ok_for_language, generate_option,
7380         generate_option_input_file): New.
7381         (decode_cmdline_option): Use option_ok_for_language.
7382         (decode_cmdline_options_to_array): Use generate_option_input_file.
7383         (handle_generated_option): Use generate_option.
7384         * opts.h (generate_option, generate_option_input_file): Declare.
7385
7386 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
7387
7388         * config/mips/mips.c (mips_override_options): Rename to...
7389         (mips_option_override): ...this. Make static.
7390         (TARGET_OPTION_OVERRIDE): Define.
7391         (mips_in_small_data_p): Update comment.
7392         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
7393         (FIXED_REGISTERS): Update comment.
7394         * config/mips/mips-protos.h (mips_override_options): Remove.
7395
7396 2010-08-21  Olivier Hainque  <hainque@adacore.com>
7397
7398         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
7399
7400 2010-08-21  Olivier Hainque  <hainque@adacore.com>
7401
7402         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
7403         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
7404
7405 2010-08-20  Jan Hubicka  <jh@suse.cz>
7406
7407         * tree-pass.h (pass_ipa_cdtor_merge): New function.
7408         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
7409         heap allocated.
7410         (record_cdtor_fn): Move to ipa.c; do not test for
7411         have_ctors_dtors.
7412         (build_cdtor): Move to ipa.c; add code avoiding construction
7413         when target have ctors/dtors and there is only one ctor/dtor at given
7414         priority.
7415         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
7416         sort; reverse order of constructors.
7417         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
7418         (cgraph_finalize_function): Do not call record_cdtor_fn.
7419         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
7420         (cgraph_build_static_cdtor): Move to ipa.c.
7421         * ipa.c: Include target.h and tree-iterator.h.
7422         (cgraph_build_static_cdtor, static_ctors, static_dtors,
7423         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
7424         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
7425         pass_ipa_cdtor_merge): New.
7426         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
7427         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
7428         bounds access.
7429
7430 2010-08-20  Jan Hubicka  <jh@suse.cz>
7431
7432         PR c++/45307
7433         PR c++/17736
7434         * cgraph.h (cgraph_only_called_directly_p,
7435         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
7436         static cdtors.
7437         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
7438         are not needed.
7439         (cgraph_finalize_function): Static cdtors are reachable.
7440         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
7441
7442 2010-08-20  Jan Hubicka  <jh@suse.cz>
7443
7444         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
7445         flag_wpa.
7446         * lto-streamer-out.c (lto_output): Likewise.
7447         * passes.c (ipa_write_optimization_summaries): Initialize statement
7448         uids.
7449
7450 2010-08-20  Olivier Hainque  <hainque@adacore.com>
7451
7452         * tree.h (alias_diag_flags): New enum.
7453         (alias_pair): Add an 'emitted_diags' field.
7454         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
7455         (assemble_alias): Initialize emitted_diags of new pairs.
7456
7457 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
7458
7459         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7460         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7461         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7462         (STACK_CHECK_PROTECT): Define.
7463         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
7464         (output_probe_stack_range): Likewise.
7465         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
7466         builtin stack checking is enabled.
7467         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
7468         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7469         (probe_stack_range): New insn.
7470
7471 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7472
7473         PR target/45336
7474         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
7475         short first.
7476
7477         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
7478         char first.
7479
7480 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7481
7482         PR target/45336
7483         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
7484         to cover zero extension into 64-bit register.
7485         (*sse2_pextrw): Likewise.
7486         (*sse4_1_pextrd_zext): New insn.
7487
7488 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
7489
7490         revert r163410, partially revert r163267.
7491         * config/rs6000/darwin.h (LIB_SPEC): Remove.
7492         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
7493         Darwin versions.
7494
7495 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7496
7497         PR middle-end/44974
7498         * builtins.c (expand_builtin): Don't optimize away
7499         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
7500
7501 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
7502
7503         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
7504         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
7505         alternative 1 of operand 2.
7506
7507 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7508             Paolo Bonzini  <bonzini@gnu.org>
7509
7510         * simplify-rtx.c (simplify_unary_operation_1): Optimize
7511         (sign_extend (zero_extend (...)) and
7512         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
7513
7514 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7515
7516         PR rtl-optimization/45353
7517         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
7518         after bb_note is a BARRIER.
7519
7520 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
7521
7522         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
7523         linking libgcc.a.
7524
7525 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
7526             Michael Matz  <matz@suse.de>
7527
7528         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
7529
7530 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
7531
7532         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
7533         (ggc_mark_roots): ...here.
7534
7535 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
7536
7537         * vec.h (FOR_EACH_VEC_ELT): Define.
7538         * c-decl.c: Use it.
7539         * cfgloop.c: Likewise.
7540         * cfgloopmanip.c: Likewise.
7541         * cgraph.c: Likewise.
7542         * cgraphunit.c: Likewise.
7543         * combine.c: Likewise.
7544         * config/bfin/bfin.c: Likewise.
7545         * config/mips/mips.c: Likewise.
7546         * config/rs6000/rs6000.c: Likewise.
7547         * dbxout.c: Likewise.
7548         * df-scan.c: Likewise.
7549         * dominance.c: Likewise.
7550         * dse.c: Likewise.
7551         * dwarf2out.c: Likewise.
7552         * except.c: Likewise.
7553         * expr.c: Likewise.
7554         * function.c: Likewise.
7555         * gcse.c: Likewise.
7556         * genattr.c: Likewise.
7557         * ggc-common.c: Likewise.
7558         * gimplify.c: Likewise.
7559         * graphite-blocking.c: Likewise.
7560         * graphite-clast-to-gimple.c: Likewise.
7561         * graphite-dependences.c: Likewise.
7562         * graphite-interchange.c: Likewise.
7563         * graphite-poly.c: Likewise.
7564         * graphite-scop-detection.c: Likewise.
7565         * graphite-sese-to-poly.c: Likewise.
7566         * graphite.c: Likewise.
7567         * haifa-sched.c: Likewise.
7568         * ifcvt.c: Likewise.
7569         * implicit-zee.c: Likewise.
7570         * ipa-prop.c: Likewise.
7571         * ipa-struct-reorg.c: Likewise.
7572         * ipa.c: Likewise.
7573         * ira-build.c: Likewise.
7574         * ira-color.c: Likewise.
7575         * ira-emit.c: Likewise.
7576         * lambda-code.c: Likewise.
7577         * loop-invariant.c: Likewise.
7578         * loop-unroll.c: Likewise.
7579         * lower-subreg.c: Likewise.
7580         * lto-cgraph.c: Likewise.
7581         * lto-opts.c: Likewise.
7582         * lto-streamer-in.c: Likewise.
7583         * lto-streamer-out.c: Likewise.
7584         * lto-streamer.c: Likewise.
7585         * lto-symtab.c: Likewise.
7586         * matrix-reorg.c: Likewise.
7587         * opts.c: Likewise.
7588         * predict.c: Likewise.
7589         * print-tree.c: Likewise.
7590         * sdbout.c: Likewise.
7591         * sel-sched-dump.c: Likewise.
7592         * sel-sched-ir.c: Likewise.
7593         * sel-sched.c: Likewise.
7594         * sese.c: Likewise.
7595         * stor-layout.c: Likewise.
7596         * tree-cfg.c: Likewise.
7597         * tree-cfgcleanup.c: Likewise.
7598         * tree-chrec.c: Likewise.
7599         * tree-data-ref.c: Likewise.
7600         * tree-emutls.c: Likewise.
7601         * tree-inline.c: Likewise.
7602         * tree-into-ssa.c: Likewise.
7603         * tree-loop-distribution.c: Likewise.
7604         * tree-loop-linear.c: Likewise.
7605         * tree-mudflap.c: Likewise.
7606         * tree-outof-ssa.c: Likewise.
7607         * tree-parloops.c: Likewise.
7608         * tree-predcom.c: Likewise.
7609         * tree-pretty-print.c: Likewise.
7610         * tree-scalar-evolution.c: Likewise.
7611         * tree-ssa-live.c: Likewise.
7612         * tree-ssa-loop-im.c: Likewise.
7613         * tree-ssa-loop-ivcanon.c: Likewise.
7614         * tree-ssa-loop-ivopts.c: Likewise.
7615         * tree-ssa-loop-manip.c: Likewise.
7616         * tree-ssa-loop-niter.c: Likewise.
7617         * tree-ssa-loop-prefetch.c: Likewise.
7618         * tree-ssa-phiprop.c: Likewise.
7619         * tree-ssa-pre.c: Likewise.
7620         * tree-ssa-reassoc.c: Likewise.
7621         * tree-ssa-sccvn.c: Likewise.
7622         * tree-ssa-structalias.c: Likewise.
7623         * tree-ssa.c: Likewise.
7624         * tree-vect-data-refs.c: Likewise.
7625         * tree-vect-loop-manip.c: Likewise.
7626         * tree-vect-loop.c: Likewise.
7627         * tree-vect-patterns.c: Likewise.
7628         * tree-vect-slp.c: Likewise.
7629         * tree-vect-stmts.c: Likewise.
7630         * tree-vrp.c: Likewise.
7631         * tree.c: Likewise.
7632         * value-prof.c: Likewise.
7633         * var-tracking.c: Likewise.
7634         * varasm.c: Likewise.
7635         * vmsdbgout.c: Likewise.
7636
7637 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
7638             Richard Guenther  <richard.guenther@gmail.com>
7639
7640         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
7641         copy the src value and return a copy.
7642         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
7643         (C++ Volatiles): Adjust to describe C++ semantics only.
7644
7645 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
7646
7647         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
7648         be zero or nonzero.
7649         * doc/tm.texi: Regenerate.
7650         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
7651         * df-scan.c (df_get_exit_block_use_set), reginfo.c
7652         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
7653         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
7654         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
7655         to 1.
7656
7657 2010-08-20  Olivier Hainque  <hainque@adacore.com>
7658
7659         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
7660         an extra nop past a sibling call at the very end.
7661
7662 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
7663
7664         PR bootstrap/45350
7665         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
7666         a comment.
7667
7668 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
7669
7670         * target.def (function_arg, function_incoming_arg): Remove const
7671         qualifier on CUMULATIVE_ARGS parameter.
7672         * targhooks.h (default_function_arg, default_function_incoming_arg):
7673         Likewise.
7674         * targhooks.c (default_function_arg, default_function_incoming_arg):
7675         Likewise.
7676         * config/i386/i386.c (ix86_function_arg): Likewise.
7677
7678 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
7679
7680         PR target/45336
7681         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
7682         SIGN_EXTENDs or ZERO_EXTENDs.
7683
7684 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
7685
7686         PR target/42172
7687         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
7688         Take its cost into account if nonnull.
7689         (insn_a_feeds_b): New static function.
7690         (combine_instructions): Look for four-insn combinations.
7691         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
7692         them into account when computing all_adjacent and looking for other
7693         uses.
7694         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
7695         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
7696         (try_combine): New arg I0.  Handle four-insn combinations.
7697         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
7698         like ELIM_I1.
7699
7700 2010-08-19  Jason Merrill  <jason@redhat.com>
7701
7702         PR c++/45307
7703         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
7704         if ctor is empty.
7705         (gimplify_modify_expr_rhs): Adjust.
7706
7707 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
7708
7709         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
7710         bitmap_bit_p.
7711         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
7712         * dominance.c (iterate_fix_dominators): Likewise.
7713         * dse.c (set_usage_bits): Likewise.
7714         (set_position_unneeded, record_store): Likewise.
7715         * gimple-fold.c (get_maxval_strlen): Likewise.
7716         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
7717         * ipa-inline.c (update_caller_keys): Likewise.
7718         * ipa-split.c (verify_non_ssa_vars): Likewise.
7719         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
7720         (close_type_exposed_parameter, close_type_full_escape): Likewise.
7721         (close_addressof_down): Likewise.
7722         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
7723         (setup_allocno_left_conflicts_size): Likewise.
7724         (ira_reassign_conflict_allocnos): Likewise.
7725         (ira_reassign_pseudos): Likewise.
7726         * ira-emit.c (change_loop): Likewise.
7727         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
7728         * lto-streamer-out.c (write_symbol): Likewise.
7729         * predict.c (expr_expected_value_1): Likewise.
7730         * regstat.c (regstat_bb_compute_ri): Likewise.
7731         * sel-sched.c (create_block_for_bookkeeping): Likewise.
7732         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
7733         * stmt.c (expand_case): Likewise.
7734         * tree-eh.c (emit_eh_dispatch): Likewise.
7735         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
7736         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
7737         Likewise.
7738         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
7739         (rdg_build_components): Likewise.
7740         * tree-object-size.c (collect_object_sizes_for): Likewise.
7741         * tree-sra.c (convert_callers): Likewise.
7742         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
7743         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
7744         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
7745
7746 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
7747
7748         * config/i386/i386.md (*lea_1): Use P mode iterator.
7749         (lea add splitter): Also handle DImode operands.
7750         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
7751         predicate.  Do not use ix86_lea_for_add_ok.
7752         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
7753         (lea ashift splitter): Also handle DImode operands.
7754         (DImode lea ashift splitter): Remove splitter.
7755
7756 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
7757
7758         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
7759         ix86_binary_operator_ok.
7760
7761 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
7762
7763         PR rtl-optimization/44691
7764         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
7765         is not a register.
7766
7767 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
7768
7769         PR target/45070
7770         * config/arm/arm.c (arm_output_epilogue): Ensure that return
7771          value of size 1-3 is handled correctly.
7772
7773 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
7774
7775         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
7776         type for the conditional has wide enough range.
7777
7778 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
7779
7780         PR target/45327
7781         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
7782         ix86_binary_operator_ok.
7783
7784 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
7785
7786         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
7787         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
7788         code to output insn mnemonic.  Fix comment.
7789         (*addsi_1_zext): Add r-r-0 alternative 1.
7790         <TYPE_LEA>: Split insn to lea.
7791         <default>: Handle alternative 1.
7792         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
7793         multi-level if_then_else RTX to set "type" attribute.
7794         <default>: Handle alternative 2.
7795         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
7796         Use cond RTX instead of multi-level if_then_else RTX to set
7797         "type" attribute.
7798         <default>: Handle alternatives 2 and 4.
7799         (lea splitters): Update calls to ix86_lea_for_add_ok.
7800
7801         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
7802         argument.
7803         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
7804
7805 2010-08-18  Richard Guenther  <rguenther@suse.de>
7806
7807         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
7808         use operand helpers.
7809
7810 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
7811
7812         PR middle-end/45292
7813         * optabs.c (expand_bool_compare_and_swap): Expand pending
7814         pops before trying the optab.
7815
7816 2010-08-18  Yao Qi  <yao@codesourcery.com>
7817
7818         PR target/45094
7819         * config/arm/arm.c (output_move_double): Fix typo generating
7820         instructions ('ldr'->'str').
7821
7822 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7823
7824         PR rtl-optimization/42575
7825         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
7826         live ranges.
7827
7828 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7829
7830         * config/arm/arm-protos.h (arm_expand_sync): New.
7831         (arm_output_memory_barrier, arm_output_sync_insn): New.
7832         (arm_sync_loop_insns): New.
7833         * config/arm/arm.c (FL_ARCH7): New.
7834         (FL_FOR_ARCH7): Include FL_ARCH7.
7835         (arm_arch7): New.
7836         (arm_print_operand): Support %C markup.
7837         (arm_legitimize_sync_memory): New.
7838         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
7839         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
7840         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
7841         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
7842         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
7843         (arm_process_output_sync_insn, arm_output_sync_insn): New.
7844         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
7845         * config/arm/arm.h (struct arm_sync_generator): New.
7846         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
7847         (TARGET_HAVE_MEMORY_BARRIER): New.
7848         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
7849         * config/arm/arm.md: Include sync.md.
7850         (UNSPEC_MEMORY_BARRIER): New.
7851         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
7852         (VUNSPEC_SYNC_OP):New.
7853         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
7854         (sync_result, sync_memory, sync_required_value): New attributes.
7855         (sync_new_value, sync_t1, sync_t2): Likewise.
7856         (sync_release_barrier, sync_op): Likewise.
7857         (length): Add logic to length attribute defintion to call
7858         arm_sync_loop_insns when appropriate.
7859         * config/arm/sync.md: New file.
7860
7861 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
7862
7863         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
7864         ENABLE_TREE_CHECKING.
7865         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
7866         and GCC >= 4.3.
7867
7868 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
7869
7870         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
7871         or optimizing for size, always avoid lea if possible.
7872
7873         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
7874
7875 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
7876
7877         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
7878         Dunmmy function with NULL return unless the target is
7879         OSX >= 10.6 (Darwin10).
7880
7881 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
7882
7883         * gcc.c (spec_function): Add remove-outfile.
7884         (remove_outfile_spec_function): New function.
7885         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
7886         * invoke.texi (replace-outfile): Document.
7887
7888 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
7889
7890         PR target/45296
7891         * reginfo.c (globalize_reg): Reject stack registers.
7892
7893 2010-08-17  Richard Guenther  <rguenther@suse.de>
7894
7895         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
7896         list of conditional equivalences.
7897         (free_all_edge_infos): Adjust.
7898         (record_equivalences_from_incoming_edge): Likewise.
7899         (record_cond): Likewise.
7900         (build_and_record_new_cond): Likewise.
7901         (record_conditions): Likewise.
7902         (dom_opt_leave_block): Likewise.
7903
7904 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
7905
7906         * doc/invoke.texi (ms-extension): Add documentation.
7907
7908 2010-08-17  Richard Guenther  <rguenther@suse.de>
7909
7910         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
7911
7912 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
7913
7914         PR c/40563
7915         * c-decl.c (diagnose_uninitialized_cst_member): New function.
7916         (finish_decl): Use it to issue a -Wc++-compat warning about
7917         uninitialized const field in struct or union.
7918
7919         (finish_struct): Use strip_array_types.
7920
7921 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
7922
7923         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
7924         functions.
7925         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
7926         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
7927         call block_nreverse here.
7928         (blocks_nreverse): Rename decl temporary to block.
7929
7930 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
7931
7932         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
7933         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
7934         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
7935         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
7936         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
7937         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
7938         thumb2_iorsi3): Delete.
7939         (orsi_notsi_si): No longer a named pattern.
7940         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
7941         * config/arm/predicates.md (shift_amount_operand): New.
7942         (mult_operator): New.
7943         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
7944         attr enabled): New.
7945         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
7946         arch matches t2.
7947         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
7948         (not_shiftsi_compare0): Likewise, renamed from
7949         arm_notsi_shiftsi_compare0.
7950         (not_shiftsi_compare0_scratch): Likweise, renamed from
7951         arm_notsi_shiftsi_compare0_scratch.
7952         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
7953         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
7954         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
7955         so that the register alternative is disabled when the shift_operator
7956         is MULT.  Use "M" as the constraint for constants.
7957         (arith_shiftsi splitter): Enable for TARGET_32BIT.
7958         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
7959         constraint for constants.
7960         (arith_shiftsi_compare0_scratch): Likewise.
7961         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
7962         Handle Thumb2 alternative.
7963
7964 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
7965
7966         * doc/options.texi (NoDriverArg): Document.
7967         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
7968         -MDX and -MMDX.
7969         * opt-functions.awk (switch_flags): Handle NoDriverArg.
7970         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
7971         marking for CL_NO_DRIVER_ARG options when in the driver.
7972         * opts.h (CL_NO_DRIVER_ARG): Define.
7973         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7974         CL_COMMON): Update values.
7975
7976 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
7977
7978         * common.opt: Add driver options.
7979         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
7980         * doc/options.texi (Driver, RejectDriver): Document.
7981         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
7982         print_prog_name, print_multi_directory, print_sysroot,
7983         print_multi_os_directory, print_multi_lib,
7984         print_sysroot_headers_suffix, report_times, combine_flag,
7985         use_pipes, wrapper_string): Remove.
7986         (save_switch, driver_unknown_option_callback,
7987         driver_wrong_lang_callback, driver_post_handling_callback,
7988         driver_handle_option): New.
7989         (spec_lang, last_language_n_infiles): Make file-scope static
7990         instead of local to process_command.
7991         (process_command): Use decode_cmdline_options_to_array and
7992         read_cmdline_option for option processing.  Compute have_c in
7993         prescan of decoded options.
7994         * opt-functions.awk (switch_flags): Handle Driver and
7995         RejectDriver.
7996         (var_type, var_type_struct): Handle Separate options as generating
7997         const char * variables.
7998         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
7999         CL_TARGET to be passed by caller if required.
8000         (decode_cmdline_options_to_array): Update comment.
8001         * opts.c (complain_wrong_lang): Handle options only valid for the
8002         driver.
8003         (decode_options): Update call to decode_cmdline_options_to_array.
8004         (print_filtered_help): Ignore driver-only options.
8005         (print_specific_help): Ignore CL_DRIVER.
8006         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
8007         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
8008         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
8009         Update values.
8010
8011 2010-08-16  Richard Guenther  <rguenther@suse.de>
8012
8013         * tree-cfg.c (verify_types_in_gimple_reference): Verify
8014         TARGET_MEM_REF a bit.
8015         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
8016         (create_mem_ref_raw): Always create TMR_OFFSET, store the
8017         alias pointer type via it.
8018         (copy_mem_ref_info): Adjust.
8019         (maybe_fold_tmr): Likewise.
8020         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
8021         (reference_alias_ptr_type): Likewise.
8022         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
8023         adjust documentation of TMR_OFFSET operand.
8024         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
8025         use the alias pointer type.
8026         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
8027         initialize mem attrs but the TMR itself.
8028         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
8029         similar to MEM_REF.
8030         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
8031         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
8032         (unshare_and_remove_ssa_names): Likewise.
8033         (copy_ref_info): Adjust.
8034         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
8035         TARGET_MEM_REF case.
8036         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
8037         at TMR_ORIGINAL.
8038         * tree.h (TMR_ORIGINAL): Remove.
8039         * gimple.c (get_base_address): For TARGET_MEM_REF with a
8040         symbol return that.
8041         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
8042         with a symbol.
8043         (get_addr_base_and_unit_offset): Likewise.
8044         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
8045         TARGET_MEM_REFs.
8046         (indirect_ref_may_alias_decl_p): Likewise.
8047         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
8048
8049 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
8050
8051         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
8052         with GCC version 4.6, the default setting (when not optimizing
8053         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
8054         been changed to -fomit-frame-pointer.
8055
8056 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
8057
8058         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
8059         Darwin10.  Do not link libgcc.a for Darwin >= 9.
8060
8061 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
8062
8063         * doc/invoke.texi (Warning Options): Fix terminology and markup
8064         in the description of how unknown warning options are handled.
8065
8066 2010-08-15  Ira Rosen  <irar@il.ibm.com>
8067
8068         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
8069         in basic blocks.
8070         (vect_supportable_dr_alignment): Check alignment for basic blocks.
8071         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
8072         data references.
8073         (vect_bb_vectorization_profitable_p): New function.
8074         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
8075         check if it's worthwhile to vectorize the basic block.
8076
8077 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
8078
8079         * reload.h (register_move_cost, memory_move_secondary_cost,
8080         secondary_reload_class): Adjust prototype.
8081         * rtl.h (reg_class_subset_p): Adjust prototype.
8082         * reload.c (secondary_reload_class): Change arguments type from
8083         enum reg_class to reg_class_t. Change result type to reg_class_t.
8084         * reginfo.c (register_move_cost, reg_class_subset_p): Change
8085         arguments type from enum reg_class to reg_class_t.
8086         (memory_move_secondary_cost): Change arguments type from
8087         enum reg_class to reg_class_t. Change type of saved_flags to
8088         reg_class_t.
8089
8090         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8091         Remove macros.
8092         (mips_cost): Remove.
8093         (struct mips_rtx_cost_data): Moved to mips.c.
8094         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
8095         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
8096         (mips_cost): Make static.
8097         (mips_canonicalize_move_class): Change argument type to reg_class_t.
8098         Change result type to reg_class_t.
8099         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
8100         type from enum reg_class to reg_class_t.
8101         (mips_register_move_cost): Make static. Change arguments
8102         type from enum reg_class to reg_class_t.
8103         (mips_memory_move_cost): New function.
8104         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8105
8106 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
8107
8108         PR rtl-optimization/43358
8109         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
8110         of a single hard register, using simplify_subreg_regno to decide
8111         what that register should be.
8112
8113 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
8114
8115         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
8116         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
8117         (loongson_pmull<V_suffix>): Rename to...
8118         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
8119
8120 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
8121
8122         * configure.ac: Enable -fomit-frame-pointer on darwin
8123         which support dwarf2.
8124         * config/i386/i386.c (override_options): Same.
8125
8126 2010-08-13  Jie Zhang  <jie@codesourcery.com>
8127
8128         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
8129
8130 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
8131
8132         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
8133         -MMD.
8134
8135 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
8136
8137         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
8138         up dot_prod pattern searching if a stmt is outside the loop.
8139
8140 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
8141             Uros Bizjak  <ubizjak@gmail.com>
8142
8143         * config.gcc: Handle --enable-frame-pointer.
8144
8145         * configure.ac: Add --enable-frame-pointer.
8146         * configure: Regenerated.
8147
8148         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
8149         (override_options): If not configured with --enable-frame-pointer,
8150         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
8151         optimizing for size), -fasynchronous-unwind-tables and
8152         -maccumulate-outgoing-args by default.
8153
8154 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
8155
8156         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
8157
8158         PR middle-end/45262
8159         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
8160         -a overflows.  Normalize the range.
8161
8162 2010-08-12  Richard Guenther  <rguenther@suse.de>
8163
8164         PR tree-optimization/45232
8165         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
8166         for types with undefined overflow.
8167         (reassociate_bb): Allow re-associating of bit and min/max
8168         operations for types with undefined overflow.
8169         * tree-ssa-forwprop.c (associate_plusminus): New function.
8170         (tree_ssa_forward_propagate_single_use_vars): Call it.
8171
8172 2010-08-12  Richard Guenther  <rguenther@suse.de>
8173
8174         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
8175         * tree-ssa-alias.c (get_ptr_info): Move ...
8176         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
8177         align and misalign fields conservatively.
8178         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
8179         derive alignment information.
8180         (evaluate_stmt): Derive alignment information from memory
8181         allocation functions.
8182         * tree.h (get_pointer_alignment): Make unsigned.
8183         * builtins.c (get_object_alignment): Use alignment information we
8184         have computed for pointers.
8185         (get_pointer_alignment): Likewise.  Make conservative, return
8186         and unsigned value.
8187         (expand_builtin_strlen): Adjust.
8188         (expand_builtin_memcmp): Likewise.
8189         (expand_builtin_strcmp): Likewise.
8190         (expand_builtin_strncmp): Likewise.
8191         (get_builtin_sync_mem): Use at least mode alignment.
8192         (fold_builtin_memset): Adjust.
8193         (fold_builtin_memory_op): Likewise.
8194         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
8195         information also dump pointer alignment knowledge.
8196         (dump_gimple_stmt): Likewise.
8197
8198 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
8199
8200         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
8201         (EMPTY_FIELD_BOUNDARY): Remove.
8202         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
8203
8204 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
8205
8206         PR debug/45259
8207         * caller-save.c (save_call_clobbered_regs): Only swap notes with
8208         DEBUG_INSNs if n_regs_saved.
8209
8210 2010-08-12  Wei Guozhi  <carrot@google.com>
8211
8212         PR target/44999
8213         * config/arm/arm.md (andsi3): Change to zero extension if possible.
8214         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
8215
8216 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
8217
8218         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
8219
8220         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
8221
8222 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8223
8224         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
8225         the case removed in the previous patch, when the only phi argument
8226         is defined in the same loop as the phi node itself.  Handle it
8227         separately from the invariant case by both propagating it outside
8228         the region and replacing the phi node with an assign.
8229
8230 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8231
8232         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
8233         constant phi nodes with one argument are is_gimple_min_invariant
8234         and SSA_NAME_IS_DEFAULT_DEF.
8235
8236 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8237
8238         * graphite-cloog-util.c (oppose_constraint):
8239         Extend loop counter's value range (CLOOG_ORG).
8240         (cloog_matrix_to_ppl_constraint): Same.
8241         (new_Constraint_System_from_Cloog_matrix): Same.
8242         * graphite-cloog-compat.h (matrix_num_type): New.
8243
8244 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8245
8246         * graphite.c (graphite_initialize): Do not initialize
8247         CLooG and initialize the Parma Polyhedra Library
8248         manually when using CLOOG_ORG.
8249         (graphite_finalize): Do not finalize CLooG and finalize
8250         the Parma Polyhedra Library manually when using CLOOG_ORG.
8251         * graphite-cloog-compat.h (cloog_initialize): Hide function
8252         when using CLOOG_ORG.
8253         (cloog_finalize): Same.
8254
8255 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8256
8257         * graphite-clast-to-gimple.c (free_scattering): Change
8258         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
8259         (CLOOG_ORG).
8260         (build_cloog_prog): Same.
8261         * graphite-cloog-compat.h (cloog_domain): Removed.
8262         (cloog_scattering): New.
8263         (cloog_set_domain): Removed.
8264         (cloog_set_scattering): New.
8265         (cloog_next_domain): Removed.
8266         (cloog_next_scattering): New.
8267         (cloog_set_next_domain): Removed.
8268         (cloog_set_next_scattering): New.
8269         (CloogScatteringList): New.
8270         (CloogScattering): New.
8271         (cloog_scattering_free): New.
8272         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
8273         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
8274         New.
8275
8276 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8277
8278         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
8279         CloogState.
8280         (set_cloog_options): Same.
8281         (print_clast_stmt): Same.
8282         (scop_to_clast): Same.
8283         (print_generated_program): Same.
8284         (gloog): Same.
8285         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
8286         (scop_to_clast): Extend with CloogState.
8287         * graphite-cloog-util.c: Include graphite-cloog-compat.h
8288         (new_Cloog_Domain_from_ppl_Polyhedron):
8289         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
8290         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
8291         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8292         * graphite-cloog-util.h (build_cloog_prog): Same.
8293         * graphite-cloog-copat.h (build_cloog_prog): New.
8294         (CloogState): New.
8295         (cloog_state_malloc): New.
8296         (cloog_state_free): New.
8297         (cloog_loop_malloc): New.
8298         (cloog_options_malloc): New.
8299         (cloog_statement_alloc): New.
8300         (cloog_domain_from_cloog_matrix): New.
8301         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
8302         (new_Cloog_Domain_from_ppl_Polyhedron): New.
8303
8304 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8305
8306         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
8307         type of NAME now depends on used CLooG version.
8308         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
8309         (gcc_type_for_clast_expr): Same.
8310         (print_clast_stmt): Replace pprint with clast_pprint.
8311         * graphite-cloog-compat.h: Provide compatibility macros for
8312         CLooG Legacy.
8313         (clast_name_p): New.
8314         (clast_expr_term): New.
8315         (clast_expr_red): New.
8316         (clast_expr_bin): New.
8317         (clast_pprint): New.
8318
8319 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8320
8321         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
8322         compatible to newer CLooG releases (CLOOG_ORG).
8323         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
8324         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
8325         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
8326         (build_cloog_prog) : New.
8327         (cloog_program_extract_scalars): New.
8328         (cloog_program_scatter): New.
8329
8330 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8331
8332         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
8333         conditionally (CLOOG_ORG).
8334         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
8335         (cloog_statement_usr): New.
8336         (cloog_domain): Same.
8337         (cloog_set_domain): Same.
8338         (cloog_next_domain): Same.
8339         (cloog_set_next_domain): Same.
8340         (cloog_program_nb_scattdims): Same.
8341         (cloog_program_set_nb_scattdims): Same.
8342         (cloog_program_names): Same.
8343         (cloog_program_set_names): Same.
8344         (cloog_program_set_context): Same.
8345         (cloog_program_set_loop): Same.
8346         (cloog_program_blocklist): Same.
8347         (cloog_program_set_blocklist): Same.
8348         (cloog_program_scaldims): Same.
8349         (cloog_program_set_scaldims): Same.
8350         (cloog_names_nb_parameters): Same.
8351         (cloog_names_set_nb_parameters): Same.
8352         (cloog_names_parameters): Same.
8353         (cloog_names_set_parameters): Same.
8354         (cloog_names_set_nb_iterators): Same.
8355         (cloog_names_set_iterators): Same.
8356         (cloog_names_set_nb_scattering): Same.
8357         (cloog_names_set_scattering): Same.
8358         (cloog_statement_set_usr): Same.
8359         (cloog_loop_set_next): Same.
8360         (cloog_loop_set_domain): Same.
8361         (cloog_loop_set_block): Same.
8362         (cloog_block_list_next): Same.
8363         (cloog_block_list_set_next):
8364         (cloog_block_list_set_block): Same.
8365
8366 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8367
8368         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
8369         a bool.
8370         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
8371         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
8372         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
8373         when something has been changed.
8374         (rewrite_commutative_reductions_out_of_ssa): Same.
8375
8376 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8377
8378         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
8379         handle the case when def is in the sese region.
8380         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
8381         for invariant expressions.
8382         (rewrite_cross_bb_phi_deps): Removed.
8383         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
8384         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
8385         rewrite_cross_bb_phi_deps.
8386
8387 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8388
8389         * graphite-sese-to-poly.c
8390         (rewrite_commutative_reductions_out_of_ssa_loop): Call
8391         scev_analyzable_p only on is_gimple_reg
8392
8393 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8394
8395         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
8396         (rewrite_close_phi_out_of_ssa): Propagate constant values or
8397         parametric expressions outside the scop region.
8398         (rewrite_cross_bb_scalar_deps): Same.
8399         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
8400
8401 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8402
8403         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
8404         SSA_NAME_DEF_STMT only on SSA_NAMEs.
8405
8406 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8407
8408         * tree-scalar-evolution.c (instantiate_scev_name): Do not
8409         instantiate default definitions.
8410
8411 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
8412             Sebastian Pop  <sebastian.pop@amd.com>
8413
8414         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
8415         (loop_exits_from_bb_p): New.
8416         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
8417         (loop_exits_from_bb_p): Declared.
8418         * graphite-scop-detection.c (scopdet_basic_block_info): Call
8419         loop_exits_to_bb_p.
8420
8421 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8422
8423         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
8424         extra parameter for the region.  Call scev_analyzable_p.
8425         (rewrite_reductions_out_of_ssa): Update call to
8426         rewrite_close_phi_out_of_ssa.
8427         (rewrite_cross_bb_phi_deps): Same.
8428         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
8429         parameter for the region.  Call scev_analyzable_p.
8430         (rewrite_commutative_reductions_out_of_ssa): Update call to
8431         rewrite_commutative_reductions_out_of_ssa_loop.
8432
8433 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8434
8435         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
8436
8437 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8438
8439         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
8440         SSA scalar phi nodes that can be scev_analyzable_p.
8441
8442 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8443
8444         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
8445         handle SSA_NAME_IS_DEFAULT_DEF.
8446
8447 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8448
8449         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
8450
8451 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8452
8453         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
8454         case non close-phi nodes with one argument.
8455
8456 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8457
8458         * sese.h (scev_analyzable_p): Scevs could be expressions without
8459         chrecs and still be scev_analyzable_p.
8460
8461 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8462
8463         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8464
8465 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8466
8467         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
8468         * cfgloop.h (struct loop): Remove single_iv field.
8469         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
8470         (scop_canonicalize_loops): Removed.
8471         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
8472         over all the loop phi nodes in loop->header.
8473         (build_poly_scop): Remove use of scop_canonicalize_loops.
8474
8475 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8476
8477         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
8478         handle GIMPLE_CALL.
8479
8480 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8481
8482         * tree-chrec.c (chrec_apply): Should only apply to the specified
8483         variable.  Also handle multivariate chains of recurrences that
8484         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
8485
8486 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8487
8488         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
8489         (debug_clast_name_indexes_1): Removed.
8490         (debug_clast_name_indexes): Removed.
8491         (pbb_to_depth_to_oldiv): Removed.
8492         (build_iv_mapping): Replace the use of rename_map with iv_map.
8493         (translate_clast_user): Remove uses of rename_map.  Allocate and
8494         free iv_map.
8495         (translate_clast_for_loop): Remove uses of rename_map.
8496         (translate_clast_for): Same.
8497         (translate_clast_guard): Same.
8498         (translate_clast): Same.
8499         (gloog): Same.
8500         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
8501         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
8502         * sese.c (set_rename): Now static.
8503         (rename_variables_in_stmt): Removed.
8504         (rename_uses): New.
8505         (is_parameter): Removed.
8506         (is_iv): Removed.
8507         (expand_scalar_variables_call): Removed.
8508         (expand_scalar_variables_ssa_name): Removed.
8509         (expand_scalar_variables_expr): Removed.
8510         (expand_scalar_variables_stmt): Removed.
8511         (expand_scalar_variables): Removed.
8512         (rename_variables): Removed.
8513         (remove_condition): Removed.
8514         (get_true_edge_from_guard_bb): Removed.
8515         (get_false_edge_from_guard_bb): Removed.
8516         (struct igp): Removed.
8517         (default_before_guard): Removed.
8518         (convert_for_phi_arg): Removed.
8519         (add_guard_exit_phis): Removed.
8520         (insert_guard_phis): Removed.
8521         (graphite_copy_stmts_from_block): Now also uses iv_map and a
8522         region.  Do not copy conditions.  Do not copy induction variables.
8523         Call rename_uses.
8524         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
8525         the translated statement.  Use the iv_map for the induction
8526         variable renaming.
8527         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8528         (set_rename): Removed declaration.
8529         (scev_analyzable_p): ...here.
8530         * tree-chrec.c (chrec_apply_map): New.
8531         * tree-chrec.h (chrec_apply_map): Declared.
8532
8533 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8534
8535         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
8536         insert_loop_close_phis.
8537         * sese.c (name_defined_in_loop_p): Removed.
8538         (expr_defined_in_loop_p): Removed.
8539         (alive_after_loop): Removed.
8540         (close_phi_not_yet_inserted_p): Removed.
8541         (struct alep): Removed.
8542         (add_loop_exit_phis): Removed.
8543         (insert_loop_close_phis): Removed.
8544
8545 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8546
8547         * graphite-cloog-util.c
8548         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
8549         * graphite-poly.c
8550         (psct_scattering_dim_for_loop_depth): Same.
8551
8552 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8553
8554         * graphite-cloog-util.h: Added cloog.h.
8555         * graphite-blocking.c: Removed cloog.h.
8556         * graphite-dependences.c: Same.
8557         * graphite-interchange.c: Same.
8558         * graphite-poly.c: Same.
8559         * graphite-ppl.c: Same.
8560         * graphite-scop-detection.c: Same.
8561         * graphite-sese-to-poly.c:
8562         Removed cloog.h.
8563         Removed graphite-clast-to-gimple.h.
8564         (check_poly_representation): Removed (unused).
8565         * graphite-sese-to-poly.h
8566         (check_poly_representation): Removed (unused).
8567
8568 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8569
8570         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
8571         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
8572         (graphite-cloog-util.o): New.
8573         (graphite-ppl.o): Added graphite-cloog-util.h.
8574         * graphite-clast-to-gimple.c:
8575         Added graphite-cloog-util.h to include statements.
8576         * graphite-cloog-util.c: New.
8577         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
8578         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8579         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8580         (new_C_Polyhedron_from_Cloog_Matrix): Same.
8581         (insert_constraint_into_matrix): Same.
8582         (ppl_Constrain_System_number_of_constraints): Same.
8583         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8584         (oppose_constraint): Same.
8585         (cloog_matrix_to_ppl_constraint): Same.
8586         (new_Constraint_System_from_Cloog_Matrix): Same.
8587         * graphite-cloog-util.h: New.
8588         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
8589         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8590         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8591         (new_C_Polyhedron_from_Cloog_Matrix): Same.
8592         (insert_constraint_into_matrix): Same.
8593         * graphite-ppl.c:
8594         Added graphite-cloog-util.h to include statements.
8595         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
8596         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8597         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8598         (new_C_Polyhedron_from_Cloog_Matrix): Same.
8599         (insert_constraint_into_matrix): Same.
8600         (ppl_Constrain_System_number_of_constraints): Same.
8601         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
8602         (oppose_constraint): Same.
8603         (cloog_matrix_to_ppl_constraint): Same.
8604         (new_Constraint_System_from_Cloog_Matrix): Same.
8605         * graphite-ppl.h:
8606         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
8607         graphite-cloog-util.h.
8608         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
8609         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8610         (new_C_Polyhedron_from_Cloog_Matrix): Same.
8611         (insert_constraint_into_matrix): Same.
8612
8613 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
8614
8615         * graphite-clast-to-gimple.c
8616         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
8617         (precision_for_interval): Same.
8618         (gcc_type_for_interval): Same.
8619         (compute_type_for_level): Same.
8620         * graphite-interchange.c
8621         (lst_interchange_profitable_p): Same.
8622         * graphite-poly.c
8623         (psct_scattering_dim_for_loop_depth): Same.
8624         * graphite-ppl.c
8625         (ppl_max_for_le_pointset): Same.
8626         (ppl_min_for_le_pointset): Same.
8627
8628 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8629
8630         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
8631         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
8632
8633 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8634
8635         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
8636         rewrite_close_phi_out_of_ssa.
8637
8638 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8639
8640         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
8641
8642 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8643
8644         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
8645         rename_map.
8646         * sese.c (debug_rename_map): Same.
8647         (get_rename): Same.
8648         (set_rename): Same.
8649         (rename_variables_in_stmt): Same.
8650         (expand_scalar_variables_call): Same.
8651         (expand_scalar_variables_ssa_name): Same.
8652         (expand_scalar_variables_expr): Same.
8653         (expand_scalar_variables_stmt): Same.
8654         (expand_scalar_variables): Same.
8655         (rename_variables): Same.
8656         (graphite_copy_stmts_from_block): Same.
8657         (copy_bb_and_scalar_dependences): Same.
8658
8659 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8660
8661         * graphite-clast-to-gimple.c (copy_renames): Removed.
8662         (translate_clast_for): Do not call copy_renames.
8663         (translate_clast_guard): Same.
8664
8665 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8666
8667         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
8668         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
8669         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
8670         before rewrite_cross_bb_scalar_deps.
8671
8672 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8673
8674         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
8675         Early return in when flag_associative_math is not set.
8676
8677 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8678
8679         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
8680         of SSA copies on edges except for loop->latch.
8681
8682 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8683
8684         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
8685         Split out of rewrite_reductions_out_of_ssa.
8686         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
8687         Declared.
8688         * graphite.c (graphite_transform_loops): Call it.
8689
8690 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8691
8692         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
8693
8694 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
8695
8696         * dbgcnt.def (graphite_scop): New counter.
8697         * graphite.c: Include dbgcnt.h.
8698         (graphite_transform_loops): Use new counter to limit transformations.
8699         * Makefile.in (graphite.o): Depend on DBGCNT_H.
8700
8701 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8702
8703         * passes.c (init_optimization_passes): Add pass_graphite.
8704         Schedule a pass_copy_prop before pass_graphite_transforms.
8705         * timevar.def (TV_GRAPHITE): Declared.
8706         * tree-pass.h (pass_graphite): Declared.
8707         * tree-ssa-loop.c (pass_graphite): New.
8708
8709 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8710
8711         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
8712         Remove calls to rename_nb_iterations and rename_sese_parameters.
8713         * graphite-clast-to-gimple.h (gloog): Update declaration.
8714         * graphite.c (graphite_transform_loops): Update call to gloog.
8715         * sese.c (rename_variables_in_expr): Removed.
8716         (rename_nb_iterations): Removed.
8717         (rename_sese_parameters): Removed.
8718         * sese.h (rename_nb_iterations): Removed.
8719         (rename_sese_parameters): Removed.
8720
8721 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8722
8723         * graphite-clast-to-gimple.c (gloog): Remove call to
8724         sese_adjust_liveout_phis.
8725         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
8726         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
8727         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
8728         rewrite_phi_out_of_ssa.
8729         * sese.c (get_vdef_before_sese): Removed.
8730         (sese_adjust_vphi): Removed.
8731         (sese_adjust_liveout_phis): Removed.
8732         * sese.h (sese_adjust_liveout_phis): Removed.
8733
8734 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8735
8736         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
8737         argument for the place after which to insert the out of SSA copy.
8738         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
8739         (rewrite_phi_out_of_ssa): Same.
8740         (rewrite_cross_bb_scalar_deps): Same.
8741         (insert_copyout): Removed.
8742         (insert_copyin): Removed.
8743         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
8744         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
8745         insert_copyin.
8746
8747 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8748
8749         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
8750         (rewrite_reductions_out_of_ssa): Same.
8751         (rewrite_commutative_reductions_out_of_ssa): Same.
8752         (build_poly_scop): Do not call these functions.
8753         * graphite-sese-to-poly.h (build_poly_scop): Declared.
8754         (rewrite_reductions_out_of_ssa): Declared.
8755         (rewrite_commutative_reductions_out_of_ssa): Declared.
8756         * graphite.c (graphite_transform_loops): Call on every scop
8757         rewrite_commutative_reductions_out_of_ssa before calling
8758         rewrite_reductions_out_of_ssa and build_scop_bbs.
8759
8760 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8761
8762         * graphite-dependences.c (dot_deps): Make system call to dotty run
8763         in background.
8764         (dot_deps_stmt): Same.
8765         * graphite-poly.c (dot_lst): Same.
8766
8767 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
8768
8769         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
8770         phi_arg_in_outermost_loop.
8771         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
8772         (remove_invariant_phi): Same.
8773
8774 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
8775
8776         * target.def (output_addr_const_extra): New hook.
8777         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
8778         * doc/tm.texi: Regenerate.
8779         * targhooks.c (default_asm_output_addr_const_extra): New function.
8780         * targhooks.h (default_asm_output_addr_const_extra): Declare.
8781         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
8782         target hook.
8783
8784         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8785         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
8786         * config/i386/i386.h (output_addr_const_extra): Rename to...
8787         (i386_asm_output_addr_const_extra): ...this. Make static.
8788         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8789
8790 2010-08-11  Richard Henderson  <rth@redhat.com>
8791
8792         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
8793
8794 2010-08-11  Nick Clifton  <nickc@redhat.com>
8795
8796         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
8797         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
8798         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
8799         stormy16-lib2-cmpsi.c.
8800
8801         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
8802         -O2.
8803
8804 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
8805
8806         * opts.h (struct cl_option_handler_func): Make handler take
8807         cl_decoded_option structure as parameter, not individual elements.
8808         (struct cl_option_handlers): Make callbacks take cl_decoded_option
8809         structure as parameter, not individual elements.
8810         (handle_option): Take cl_decoded_option structure as parameter,
8811         not individual elements.
8812         (handle_generated_option): Declare.
8813         * opts-common.c (handle_option): Take cl_decoded_option structure
8814         as parameter, not individual elements.  Update calls to callback
8815         and handler functions.
8816         (handle_generated_option): New.
8817         (read_cmdline_option): Update calls to callback functions and
8818         handle_option.
8819         * opts.c (common_handle_option, complain_wrong_lang,
8820         unknown_option_callback, post_handling_callback,
8821         lang_handle_option, target_handle_option): Take cl_decoded_option
8822         structure as parameter, not individual elements.
8823         (lang_handle_option, target_handle_option, common_handle_option):
8824         Assert option has at most one argument.
8825         (enable_warning_as_error): Call handle_generated_option instead of
8826         handle_option.  Do not pass -Werror argument as argument of
8827         generated option.
8828
8829 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8830
8831         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
8832         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
8833         (SUBWORD_BOOL_CAS): Likewise.
8834         (SUBWORD_SYNC_OP): Likewise.
8835         (SUBWORD_TEST_AND_SET): Likewise.
8836         (FETCH_AND_OP_WORD): Parenthesise INF_OP
8837         (SUBWORD_SYNC_OP): Likewise.
8838         (OP_AND_FETCH_WORD): Likewise.
8839
8840 2010-08-10  Xinliang David Li  <davidxl@google.com>
8841
8842         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
8843         compute max/min offset in address.
8844
8845 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
8846
8847         * ira-live.c: Include sbitmap.h.
8848         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
8849         Compress live ranges even more.
8850
8851 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
8852
8853         * coverage.c (ctr_labels): Delete.
8854
8855 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
8856
8857         PR bootstrap/45177
8858         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
8859         test here from arm_gen_load_multiple_1.
8860         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
8861         multiple_operation_profitable_p.
8862
8863 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
8864
8865         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
8866         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
8867
8868 2010-08-10  Richard Henderson  <rth@redhat.com>
8869
8870         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
8871         after saving registers.  Assert that SSE registers are only saved
8872         with a sufficiently aligned frame.
8873         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
8874         remove stack_realign_fp handling.
8875         (ix86_expand_prologue): Save int registers before stack_realign_fp,
8876         and do not mark the stack alignment as frame related.
8877         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
8878
8879         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
8880         saves when re-aligning the stack.
8881
8882 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
8883
8884         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
8885         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
8886         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
8887
8888 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
8889
8890         * dwarf2out.c (struct die_struct): Move die_tag to the end.
8891
8892 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
8893
8894         * config/arm/iterators.md: New file.
8895         * config/arm/arm.md: Include iterators.md.
8896         (QHSI): Move to new file.
8897         (LTUGEU, cnb, optab, ior_xor): Likewise.
8898         * config/arm/iwmmxt.md (VMMX): Move to new file.
8899         (VSHFT, MMX_char): Likewise.
8900         * config/arm/neon.md (VD): Move to new file.
8901         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
8902         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
8903         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
8904         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
8905         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
8906         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
8907         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
8908         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
8909         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
8910         (Is_d_reg, V_mode_nunits): Likewise.
8911         * config/arm/vec-common.md (VALL): Move to new file.
8912         (VALLW, VINT, VINTW): Likewise.
8913
8914 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
8915
8916         PR middle-end/45182
8917         * combine.c (make_compound_operation): Don't try to convert
8918         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
8919
8920 2010-08-10  Richard Guenther  <rguenther@suse.de>
8921
8922         * tree.h (get_object_alignment): Adjust prototype.
8923         * builtins.c (get_object_alignment): Return unsigned int,
8924         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
8925         and TARGET_MEM_REF properly.
8926         (get_pointer_alignment): Adjust.
8927         * emit-rtl.c (get_mem_align_offset): Adjust comment.
8928         (set_mem_attributes_minus_bitpos): Adjust.
8929         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
8930
8931 2010-08-10  Richard Guenther  <rguenther@suse.de>
8932
8933         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
8934         (copy_prop_visit_assignment): Simplify.
8935         (copy_prop_visit_stmt): Also visit assignments from
8936         constants.
8937         (copy_prop_visit_phi_node): Use operand_equal_p.
8938
8939 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
8940
8941         * ipa-split.c (find_split_points): Free stack.
8942
8943 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
8944
8945         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
8946         * tree.c (tree_node_kind): Delete corresponding entries.
8947
8948 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8949
8950         * alias.c (may_alias_p): Remove unused ret.
8951
8952 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
8953
8954         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
8955         alias_sets_conflict_p.
8956         (walk_mems_1): Moved from alias.c.
8957         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
8958         in alias.c.
8959         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
8960         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
8961         * alias.c (walk_mems_2): Moved to ddg.c.
8962         (walk_mems_1): Ditto.
8963         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
8964         to ddg.c.
8965         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
8966         disambiguation.
8967         *(may_alias_p): New function to check whether two memory expression
8968         may alias or not. Currently used in buidling inter-iteration memory
8969         dependence.
8970         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
8971         (insn_alias_sets_conflict_p): Removed
8972         *rtl.h (may_alias_p): New function prototype.
8973
8974 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
8975
8976         * tree.c (nreverse): Assert that we don't have a BLOCK.
8977
8978 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
8979
8980         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
8981         * config/arm/arm.c (arm_get_pcs_model): Likewise.
8982         * config/avr/avr.c (init_cumulative_args): Likewise.
8983         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8984         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8985         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
8986         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8987         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8988         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8989         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8990         * dwarf2out.c (gen_subprogram_die): Likewise.
8991         * function.c (allocate_struct_function): Likewise.
8992         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
8993         (deserves_ellipsis): Delete.
8994
8995 2010-08-09  Richard Guenther  <rguenther@suse.de>
8996
8997         * tree-ssa-copy.c (cached_last_copy_of): Remove.
8998         (valueize_val): New function.
8999         (get_last_copy_of): Remove.
9000         (set_copy_of_val): Simplify.
9001         (dump_copy_of): Likewise.
9002         (copy_prop_visit_cond_stmt): Use valueize_val.
9003         (copy_prop_visit_phi_node): Properly handle unvisited names.
9004         Drop code managing copy-of chains.
9005         (init_copy_prop): Adjust.
9006         (fini_copy_prop): Likewise.
9007         (execute_copy_prop): Remove obsolete comment.
9008
9009 2010-08-09  Richard Guenther  <rguenther@suse.de>
9010
9011         PR middle-end/44632
9012         * function.c (gimplify_parameters): Do not clear addressable
9013         bit of the original parameter.
9014
9015 2010-08-09  Richard Guenther  <rguenther@suse.de>
9016
9017         PR middle-end/45212
9018         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
9019         alignment from MEM_REF offset only if we took it from the
9020         base object.
9021
9022 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
9023
9024         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
9025
9026 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9027
9028         * c-tree.h (build_arg_info): Declare.
9029         * c-decl.c (build_arg_info): Define.
9030         (get_parm_info): Call it.  Delete initialization code.
9031         * c-parser.c (c_parser_parms_declarator): Likewise.
9032         (c_parser_parms_list_declaractor): Likewise.
9033
9034 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9035
9036         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
9037         (struct c_arg_info): Change type of tags field.
9038         * c-decl.c (grokdeclarator): Update for changed type of tags field.
9039         (get_parm_info): Likewise.
9040         (store_parm_decls_newstyle): Likewise.
9041
9042 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
9043
9044         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
9045         (branch_island_list): Delete.
9046         (branch_islands): Declare.
9047         (add_compiler_branch_island): Adjust for branch_islands instead of
9048         branch_island_list.
9049         (macho_branch_islands): Likewise.
9050         (no_previous_def): Likewise.
9051         (get_prev_label): Likewise.
9052
9053 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9054
9055         PR boehm-gc/34544
9056         * gthr-posix.h (__gthread_start): Delete.
9057         (__gthread_active_init): Use pthread_default_stacksize_np instead of
9058         pthread_create to determine if hpux pthreads are active.
9059         * gthr-posix95.h (__gthread_start): Delete.
9060         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
9061
9062 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
9063
9064         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
9065         _WIN64 not expanded.
9066
9067 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
9068             H.J. Lu  <hongjiu.lu@intel.com>
9069
9070         PR target/45213
9071         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
9072         to output 32bit SFmode immediate as 8 byte sign extended value.
9073
9074 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9075
9076         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
9077         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
9078         (SUBWORD_BOOL_CAS): Likewise.
9079         (SUBWORD_SYNC_OP): Likewise.
9080         (SUBWORD_TEST_AND_SET): Likewise.
9081         (FETCH_AND_OP_WORD): Parenthesise INF_OP
9082         (SUBWORD_SYNC_OP): Likewise.
9083         (OP_AND_FETCH_WORD): Likewise.
9084
9085 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9086
9087         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
9088         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
9089         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
9090         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
9091         generic part.
9092         (cortex_a9_sched_adjust_cost): New function.
9093         (xscale_sched_adjust_cost): New function.
9094         * config/arm/arm-protos.h (struct tune_params): New field
9095         sched_adjust_cost.
9096         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
9097
9098 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
9099
9100         PR target/44942
9101         * config/sparc/sparc.c (function_arg_advance): Always take into account
9102         the padding, if any.
9103
9104 2010-08-06  Richard Guenther  <rguenther@suse.de>
9105
9106         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
9107         (dump_lattice_value): Dump it.
9108         (get_default_value): Adjust.
9109         (get_constant_value): Likewise.
9110         (set_value_varying): Likewise.
9111         (set_lattice_value): Make sure to not go up the lattice
9112         with bitwise constant values.
9113         (get_value_for_expr): Handle ADDR_EXPRs.
9114         (value_to_double_int): New function.
9115         (get_value_from_alignment): Likewise.
9116         (do_dbg_cnt): Adjust.
9117         (ccp_lattice_meet): Handle partially constant values.
9118         (bit_value_unop_1): New function.
9119         (bit_value_binop_1): Likewise.
9120         (bit_value_unop): Likewise.
9121         (bit_value_binop): Likewise.
9122         (evaluate_stmt): Track partially constant values if
9123         flag_tree_bit_ccp is set.
9124         (ccp_fold_stmt): Dump if we folded a predicate.
9125         (ccp_visit_stmt): Adjust.
9126         * common.opt (ftree-bit-ccp): New flag.
9127         * doc/invoke.texi (ftree-bit-ccp): Document.
9128         * opts.c (decode_options): Enable bit-CCP at -O1.
9129
9130 2010-08-06  Alan Modra  <amodra@gmail.com>
9131
9132         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
9133         and -mrelocatable-lib description.
9134
9135 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
9136
9137         From Martin Thuresson  <martint@google.com>
9138         * postreload.c (reload_cse_simplify_operands): Use
9139         SET_REGNO_RAW instead of SET_REGNO.
9140         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
9141         SET_REGNO.
9142         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
9143         instead of SET_REGNO.
9144         * rtl.h (SET_REGNO_RAW): New macro.
9145
9146 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
9147
9148         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
9149         computations.  Fix formatting issues.
9150         (num_sign_bit_copies1): Likewise.
9151         (canonicalize_condition): Likewise.
9152
9153 2010-08-05  Richard Henderson  <rth@redhat.com>
9154
9155         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
9156         (floor_log2): Use clz_hwi.
9157         (exact_log2): Use ctz_hwi.
9158         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
9159         * builtins.c (fold_builtin_bitop): Use them.
9160         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9161         * combine.c (get_pos_from_mask): Use ctz_hwi.
9162         * double-int.c (double_int_ctz): Likewise.
9163         * explow.c (force_reg): Likewise.
9164         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
9165
9166 2010-08-05  Richard Henderson  <rth@redhat.com>
9167
9168         PR target/45189
9169         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
9170         the alignment constant is properly sign-extended.
9171
9172 2010-08-05  Richard Guenther  <rguenther@suse.de>
9173
9174         * expr.c (store_expr): Use emit_block_move only if both
9175         source and target are MEMs.  Use store_bit_field if only
9176         the target is a MEM.
9177
9178 2010-08-05  Richard Henderson  <rth@redhat.com>
9179
9180         PR debug/45188
9181         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
9182         (INCOMING_RETURN_ADDR_RTX): Likewise.
9183         (dwarf2out_do_frame): Remove conditional compilation.
9184         (dwarf2out_frame_init): Likewise.
9185
9186 2010-08-05  Nicolas Setton  <setton@adacore.com>
9187
9188         * gcov.c (flag_display_progress): New static variable.
9189         (main): Display progress info on standard output if requested.
9190         (options): Add -d/--display-progress.
9191         (print_usage): Print them.
9192         (process_args): Handle them.
9193         * doc/gcov.texi: Document them.
9194
9195 2010-08-05  Martin Jambor  <mjambor@suse.cz>
9196
9197         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
9198         (ipcp_insert_stage): Redirect only edges not flagged with
9199         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
9200         discovered constants.
9201
9202 2010-08-05  Martin Jambor  <mjambor@suse.cz>
9203
9204         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
9205         (struct ipa_param_descriptor): New fields types and
9206         cannot_devirtualize.
9207         (ipa_param_cannot_devirtualize_p): New function.
9208         (ipa_param_types_vec_empty): Likewise.
9209         (ipa_make_edge_direct_to_target): Declare.
9210         * ipa-cp.c: Fixed first stage driver name in initial comment,
9211         described devirtualization there too.
9212         (ipcp_analyze_node): Call ipa_analyze_params_uses.
9213         (ipcp_print_all_lattices): Print devirtualization info.
9214         (ipa_set_param_cannot_devirtualize): New function.
9215         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
9216         lattice to BOTTOM.
9217         (ipcp_init_stage): Merged into...
9218         (ipcp_generate_summary): ...its caller.
9219         (ipcp_change_tops_to_bottom): Also process type lists.
9220         (ipcp_add_param_type): New function.
9221         (ipcp_copy_types): Likewise.
9222         (ipcp_propagate_types): Likewise.
9223         (ipcp_propagate_stage): Also propagate types.
9224         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
9225         Also return true if propagated types require it.
9226         (ipcp_update_callgraph): Dump redirection info.
9227         (ipcp_process_devirtualization_opportunities): New function.
9228         (ipcp_const_param_count): Include known type information.
9229         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
9230         on new node.  Fixed formatting.
9231         * ipa-prop.c (make_edge_direct_to_target): Renamed to
9232         ipa_make_edge_direct_to_target and changed all callers.  Made
9233         externally visible.
9234         (ipa_node_duplication_hook): Duplicate types vector.
9235         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
9236         redirect outgoing calls for which we can't get a decl from the
9237         statement.  Check that we can get a decl from the call statement.
9238         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9239         ipa_analyze_params_uses only when ipa-cp is disabled.
9240         * tree-inline.c (get_indirect_callee_fndecl): Removed.
9241         (expand_call_inline): Do not call get_indirect_callee_fndecl.
9242         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
9243         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
9244
9245 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
9246
9247         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
9248         temporary. Emit move from temporary to accum, so REG_EQUAL note will
9249         be attached to this insn in correct mode.
9250
9251 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
9252
9253         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
9254         using REGNO of base_reg directly.
9255
9256 2010-08-05  Jie Zhang  <jie@codesourcery.com>
9257
9258         PR tree-optimization/45144
9259         * tree-sra.c (type_consists_of_records_p): Return false
9260         if the record contains bit-field.
9261
9262 2010-08-04  Richard Henderson  <rth@redhat.com>
9263
9264         * config/i386/i386.c (struct ix86_frame): Remove padding and
9265         to_allocate members.
9266         (ix86_compute_frame_layout): Don't store them.
9267         (ix86_can_use_return_insn_p): Use a more direct and more obviously
9268         correct condition for the position of the stack pointer.
9269         (ix86_expand_prologue): Compute remaining stack allocation based
9270         on the ultimate stack pointer offset.
9271         (ix86_expand_epilogue): Use more obvious expressions testing for
9272         the stack pointer already pointing to the saved registers.
9273
9274         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
9275         duplication deconstructing the frame pointer.  Simplify
9276         deallocation of the local stack frame.
9277
9278         * reg-notes.def (CFA_EXPRESSION): New.
9279         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9280         (dwarf2out_frame_debug_cfa_expression): New.
9281         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
9282
9283         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
9284         * config/i386/i386.c (ix86_expand_prologue): Set it.
9285         (ix86_expand_epilogue): Clear it.
9286         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
9287         context, add REG_CFA_EXPRESSION notes.
9288
9289         * config/i386/i386.h (struct machine_frame_state): Rename from
9290         machine_cfa_state.  Add members tracking SP and FP regardless
9291         of the current CFA register.
9292         (ix86_cfa_state): Remove.
9293         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
9294         and sse_reg_save_offset members.
9295         (ix86_compute_frame_layout): Set them.
9296         (gen_push): Increment sp_offset too.
9297         (choose_baseaddr_len, choose_baseaddr): New.
9298         (ix86_emit_save_reg_using_mov): New.
9299         (ix86_emit_save_regs_using_mov): Use it.
9300         (ix86_emit_save_sse_regs_using_mov): Likewise.
9301         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
9302         compare vs the saved red_zone_offset.
9303         (pro_epilogue_adjust_stack): Adjust sp_offset.
9304         (ix86_adjust_stack_and_probe): Likewise.
9305         (ix86_expand_prologue): Set up, use, and validate the new
9306         frame_state_info members.  Use gen_frame_mem.
9307         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
9308         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
9309         new frame_state_info members.
9310         (ix86_emit_leave): Likewise.
9311         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
9312         out-of-range stack pointer offsets here.
9313         (ix86_emit_restore_sse_regs_using_mov): Likewise.
9314         (ix86_expand_epilogue): Use and validate the new frame_state_info
9315         members.  Break up and simplify the logic selecting the
9316         restore_regs_via_mov code path.  Ensure that there will be no
9317         out-of-range stack pointer offsets.
9318
9319         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
9320
9321         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
9322         argument name to reflect the expected tree; fix indentation.
9323         (ix86_asm_output_function_label): Output the entire 32-bit
9324         ms_hook here as bytes ...
9325         (ix86_expand_prologue): ... not here as insns.  Attach the
9326         unwind info for the ms_hook to a blockage insn.
9327         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
9328         (ix86_ms_bitfield_layout_p): Fix indentation.
9329         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
9330
9331         * config/i386/i386.c (ix86_using_red_zone): New.
9332         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
9333         ix86_expand_prologue, ix86_force_to_memory): Use it.
9334
9335         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
9336         saving the int registers.
9337
9338         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
9339         and DWARF2_UNWIND_INFO conditional compilation.
9340
9341 2010-08-04  Richard Henderson  <rth@redhat.com>
9342
9343         PR debug/45171
9344         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
9345         an is_naming_typedef_decl.
9346
9347 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
9348
9349         PR rtl-optimization/45162
9350         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
9351         * dce.c (word_dce_process_block): Likewise.
9352
9353 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
9354
9355         PR target/44583
9356         * config/ia64/constraints.md (Z): New.
9357         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
9358         (xfreg_or_signed_fp01_operand): New.
9359         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
9360         with fr_reg_or_signed_fp01_operand and constraint G with Z.
9361         (subsf3): Ditto.
9362         (*maddsf4): Ditto.
9363         (*msubsf4): Ditto.
9364         (adddf3): Ditto.
9365         (adddf3_trunc): Ditto.
9366         (subdf3): Ditto.
9367         (*subdf3_trunc): Ditto.
9368         (*madddf4): Ditto.
9369         (*madddf4_trunc): Ditto.
9370         (*msubdf4): Ditto.
9371         (*msubdf4_trunc): Ditto.
9372         (addxf3): Replace xfreg_or_fp01_operand with
9373         xfreg_or_signed_fp01_operand and constraint G with Z.
9374         (*addxf3_truncsf): Ditto.
9375         (*addxf3_truncdf): Ditto.
9376         (subxf3): Ditto.
9377         (*subxf3_truncsf): Ditto.
9378         (*subxf3_truncdf): Ditto.
9379         (*maddxf4): Ditto.
9380         (*maddxf4_truncsf): Ditto.
9381         (*maddxf4_truncdf): Ditto.
9382         (*msubxf4): Ditto.
9383         (*msubxf4_truncsf): Ditto.
9384         (*msubxf4_truncdf): Ditto.
9385
9386 2010-08-04  Richard Guenther  <rguenther@suse.de>
9387
9388         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
9389         if either alias-set is zero.
9390
9391 2010-08-04  Richard Guenther  <rguenther@suse.de>
9392
9393         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
9394         * tree-ssa-ccp.c: ... here.
9395         * tree-ssa-copy.c: ... and here.
9396         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
9397         value_range_t): Move ...
9398         * tree-vrp.c: ... here.
9399         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
9400         (substitute_and_fold): Adjust prototype.
9401         * tree-ssa-propagate.c (replace_uses_in): Adjust.
9402         (replace_phi_args_in): Likewise.
9403         (substitute_and_fold): Take callback to query lattice instead
9404         of pointer to lattice.  Replace SSA name defs with lattice
9405         values first.
9406         * tree-ssa-ccp.c (ccp_finalize): Adjust.
9407         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
9408         (get_value): New function.
9409         (fini_copy_prop): Adjust.
9410         * tree-vrp.c (vrp_finalize): Adjust.
9411
9412 2010-08-04  Richard Guenther  <rguenther@suse.de>
9413
9414         PR middle-end/45176
9415         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
9416         points-to set for original MEM_REF.
9417
9418 2010-08-04  Richard Guenther  <rguenther@suse.de>
9419
9420         * tree-ssa-ccp.c (get_constant_value): New function.
9421         (get_rhs_assign_op_for_ccp): Remove.
9422         (valueize_op): New function.
9423         (ccp_fold): Use get_constant_value and valueize_op.
9424         (fold_const_aggregate_ref): Likewise.
9425         (ccp_fold_stmt): Likewise.
9426         (visit_assignment): Simplify.
9427
9428 2010-08-04  Richard Guenther  <rguenther@suse.de>
9429
9430         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
9431         * double-int.h (double_int_ctz): Declare.
9432         * double-int.c (double_int_ctz): New function.
9433
9434 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
9435
9436         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9437         Define.
9438         picochip_expand_movmemhi : Expand movmem pattern.
9439         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
9440         Declare.
9441         * config/picochip/picochip.md (movmemhi) : New pattern.
9442
9443 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
9444
9445         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
9446
9447 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
9448
9449         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
9450         NEG as operand of a MULT by merging it with the other operand.
9451         * combine.c (make_compound_operation): Use trunc_int_for_mode when
9452         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
9453         MULT.
9454         * config/arm/constraints.md (M): Examine only 32 bits of a
9455         HOST_WIDE_INT.
9456         * config/arm/predicates.md (power_of_two_operand): Likewise.
9457
9458 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9459
9460         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
9461         non-NOTE insns.
9462
9463 2010-08-03  Jan Hubicka  <jh@suse.cz>
9464
9465         * ipa-split.c (struct split_point): Add split_part_set_retval.
9466         (find_retval): Forward declare.
9467         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
9468         (consider_split): Compute current->split_part_set_retval.
9469         (visit_bb): Do not look into return value.
9470         (split_function): Handle !split_part_set_retval
9471
9472 2010-08-03  Martin Jambor  <mjambor@suse.cz>
9473
9474         * tree-sra.c (completely_scalarize_record): New parameter REF, create
9475         its own access->expr intead of using build_ref_for_offset.
9476
9477 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
9478
9479         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
9480         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
9481         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
9482         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
9483         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
9484         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
9485         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
9486         DEFAULT_SWITCH_TAKES_ARG.
9487         * config/rx/rx.opt (-patch=): Remove option.
9488         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
9489         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
9490         * doc/invoke.texi (RX Options): Remove -patch=.
9491         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
9492         (option_map): Remove --profile-blocks, --quiet and --silent.
9493
9494 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
9495
9496         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
9497         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
9498         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
9499         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9500         Update calls to ix86_expand_compare and ix86_expand_branch.
9501         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
9502         ix86_expand_compare.
9503         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
9504         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
9505         Make static.
9506         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
9507         and ix86_compare_op1.  Update calls to ix86_expand_compare.
9508         (ix86_expand_int_movcc): Ditto.
9509         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
9510         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
9511         (ix86_expand_setcc): Ditto.
9512         (ix86_expand_compare): Remove prototype.
9513         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
9514         ix86_compare_op0 and ix86_compare_op1.  Update calls
9515         to ix86_expand_branch to directly pass operands[1] and operands[2].
9516         (cbranchxf4): Ditto.
9517         (cbranch<MODEF:mode>4): Ditto.
9518         (cbranchcc4): Ditto.
9519         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
9520         Update calls to ix86_expand_setcc to directly pass operands[2] and
9521         operands[3].
9522         (cstorexf4): Ditto.
9523         (cstore<MODEF:mode>4): Ditto.
9524         (cstorecc4): Ditto.
9525
9526 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
9527
9528         PR target/45063
9529         * caller-save.c (save_call_clobbered_regs): Remove regs from
9530         hard_regs_saved when they are set.
9531
9532 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
9533
9534         PR target/41089
9535         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
9536         as volatile.
9537
9538 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
9539
9540         * common.opt (ftree-loop-distribute-patterns): New.
9541         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
9542         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
9543         at -O3.
9544         * tree-data-ref.c (stores_zero_from_loop): New.
9545         * tree-data-ref.h (stores_zero_from_loop): Declared.
9546         * tree-loop-distribution.c (tree_loop_distribution): Call
9547         stores_zero_from_loop.
9548         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
9549
9550 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
9551
9552         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
9553         into account.
9554
9555         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
9556         * config/arm/arm.c (thumb1_code): New variable.
9557         (arm_override_options): Set it.
9558         (thumb1_final_prescan_insn): Keep track of condition code status.
9559         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
9560         jumps that depend on them.
9561         * config/arm/arm.h (thumb1_code): Declare variable.
9562         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
9563         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
9564         thumb1_cc_mode.
9565         (CC_STATUS_INIT): New macro.
9566         * config/arm/constraints.md (Pd): New constraint.
9567         * config/arm/predicates.md (noov_comparison_operator): New predicate.
9568         * config/arm/arm.md (is_thumb1): New define_attr.
9569         (conds): Set default to "clob" when generating Thumb1 code.
9570         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
9571         code are set.  Use two-operand assembly syntax.
9572         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
9573         pattern.
9574         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
9575         codes are set.  Use two-operand assembly syntax.
9576         (zero_extendhisi splitter): Remove constraints.
9577         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
9578         thumb1_movsf_insn): Set conds attribute as appropriate.
9579         (cbranchsi4_insn): Use condition code status from struct
9580         machine_function to determine whether the comparison can be eliminated.
9581         Discourage the alternative using high registers.
9582         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
9583         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
9584         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
9585         subsi3_cbranch): Delete.
9586         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
9587         one subtract and one cbranch insn.
9588
9589         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
9590         thumb2_movdf_soft_insn): Delete patterns.
9591         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
9592         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
9593         (pool_range, neg_pool_range): Use them to define defaults.
9594         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
9595         and allow for TARGET_32BIT.
9596
9597         PR target/40457
9598         * config/arm/arm.h (arm_regs_in_sequence): Declare.
9599         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
9600         load_multiple_sequence, store_multiple_sequence): Delete
9601         declarations.
9602         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
9603         declarations.
9604         * config/arm/ldmstm.md: New file.
9605         * config/arm/arm.c (arm_regs_in_sequence): New array.
9606         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
9607         CHECK_REGS.  All callers changed.
9608         If SAVED_ORDER is nonnull, copy the computed order into it.
9609         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
9610         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
9611         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
9612         If SAVED_ORDER is nonnull, copy the computed order into it.
9613         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
9614         like REGS.  Handle Thumb mode.
9615         (arm_gen_load_multiple_1): New function, broken out of
9616         arm_gen_load_multiple.
9617         (arm_gen_store_multiple_1): New function, broken out of
9618         arm_gen_store_multiple.
9619         (arm_gen_multiple_op): New function, with code from
9620         arm_gen_load_multiple and arm_gen_store_multiple moved here.
9621         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
9622         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
9623         changed.
9624         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
9625         * config/arm/predicates.md (commutative_binary_operator): New.
9626         (load_multiple_operation, store_multiple_operation): Handle more
9627         variants of these patterns with different starting offsets.  Handle
9628         Thumb-1.
9629         * config/arm/arm.md: Include "ldmstm.md".
9630         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
9631         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
9632         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
9633         peepholes): Delete.
9634         * config/arm/ldmstm.md: New file.
9635         * config/arm/arm-ldmstm.ml: New file.
9636
9637         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
9638         if statement which adds extra costs to frame-related expressions.
9639
9640 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9641
9642         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
9643
9644 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
9645
9646         PR target/45142
9647         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
9648         alternative 2.
9649         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
9650         split V4SI operands.
9651
9652 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
9653
9654         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9655         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
9656         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
9657         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
9658
9659 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
9660
9661         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
9662         LOCAL_INCLUDE_DIR.
9663
9664 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
9665
9666         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
9667         used in the call to optab_for_tree_code.  Fix the second
9668         is_widening_mult_p call.  Check that both unwidened operands
9669         have the same sign.
9670
9671 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
9672
9673         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
9674
9675 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
9676
9677         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9678
9679 2010-07-30  DJ Delorie  <dj@redhat.com>
9680
9681         * config/rx/predicates.md (rx_constshift_operand): New.
9682         * config/rx/rx.md (zs_cond): New.
9683         (cbranchsi4): Remove mode.
9684         (*cbranchsi4_<code>): Likewise.
9685         (*tstbranchsi4_<code>): New.
9686         (*tstbranchsi4r_<code>): New.
9687         (*tstbranchsi4m_eq): New.
9688         (*tstbranchsi4m_ne): New.
9689         (cbranchsf4): Remove mode.
9690         (*cbranchsf4_<code>): Likewise.
9691
9692 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
9693
9694         * rtlanal.c (simplify_subreg_regno): Don't treat
9695         HARD_FRAME_POINTER_REGNUM specially.
9696
9697 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
9698
9699         * common.opt (-G): Don't define option here.
9700         * config/g.opt: New.
9701         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
9702         rs6000/powerpc and score targets.
9703         * opts.c (common_handle_option): Don't handle -G here.
9704         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
9705         * config/frv/frv.c (frv_handle_option): Handle -G.
9706         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
9707         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
9708         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
9709         * config/mips/mips.c (mips_handle_option): Handle -G.
9710         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
9711         * config/score/score.c (score_handle_option): Handle -G.
9712
9713 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
9714
9715         * config/mmix/mmix.c: Include basic-block.h.
9716
9717 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
9718
9719         PR debug/45055
9720         PR rtl-optimization/45137
9721         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
9722         prototypes.
9723         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
9724         New functions.
9725         * combine.c (next_nonnote_nondebug_insn): Removed.
9726         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
9727         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
9728         * sched-deps.c (sched_analyze_insn): Likewise.
9729         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
9730         * rtlanal.c (canonicalize_condition): Likewise.
9731         * postreload.c (reload_combine_recognize_pattern): Likewise.
9732         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
9733
9734 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
9735
9736         * config/i386/i386.md (int_cond): Remove code iterator.
9737         (fp_cond): Ditto.
9738         (cbranch<mode>4): Use ordered_comparison_operator predicate
9739         for operator0.
9740         (cstore<mode>4): Ditto for operator1.
9741         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
9742         (add<mode>cc): ditto.
9743
9744 2010-07-30  Richard Guenther  <rguenther@suse.de>
9745
9746         PR middle-end/45141
9747         * expr.c (expand_expr_real_1): Check for not handled base address.
9748
9749 2010-07-30  Richard Guenther  <rguenther@suse.de>
9750
9751         * ipa-prop.c (ipa_modify_formal_parameters): Use
9752         build_distinct_type_copy.
9753
9754 2010-07-30  Anthony Green  <green@moxielogic.com>
9755
9756         * config/moxie/rtems.h: New file.
9757         * config.gcc: Add moxie-rtems support.
9758
9759 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
9760
9761         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
9762         df flags as in run_fast_df_dce.
9763
9764 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
9765
9766         Revert:
9767         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
9768
9769         * rtl.def (NOTE): Swap operands 4 and 5.
9770         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
9771         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
9772         Adjust accordingly.
9773         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
9774
9775 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
9776
9777         PR debug/45110
9778         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
9779         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
9780         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
9781         formal parameters.
9782         (gen_decl_die): Change return type to dw_die_ref, return what
9783         gen_formal_parameter_die returned.
9784
9785 2010-07-29  Martin Jambor  <mjambor@suse.cz>
9786
9787         * dbgcnt.def (eipa_sra): New counter.
9788         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
9789
9790 2010-07-29  Xinliang David Li  <davidxl@google.com>
9791
9792         PR bootstrap/45119
9793         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
9794         in revision 162652.
9795
9796 2010-07-29  Richard Guenther  <rguenther@suse.de>
9797
9798         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
9799         (TV_TREE_STORE_CCP): Likewise.
9800         (TV_TREE_REDPHI): Likewise.
9801
9802 2010-07-29  Richard Guenther  <rguenther@suse.de>
9803
9804         * double-int.h (double_int_and_not): New function.
9805         * combine.c (try_combine): Use it.
9806         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
9807
9808 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
9809
9810         PR rtl-optimization/42575
9811         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
9812         Argument AU removed.  All callers changed.  Ignore artificial refs.
9813         Use return value of df_word_lr_simulate_defs to decide whether an insn
9814         is necessary.
9815         (fast_dce): Rename arg to WORD_LEVEL.
9816         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
9817         static.
9818         (pass_fast_rtl_byte_dce): Delete.
9819         * dce.h (run_word_dce): Declare.
9820         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
9821         All callers changed.  Simplify code to only deal with two-word regs.
9822         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
9823         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
9824         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
9825         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
9826         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
9827         (df_word_lr_mark_ref): Declare.
9828         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
9829         df_word_lr_simulate_uses): Declare or rename from byte variants.
9830         (df_byte_lr_simulate_artificial_refs_at_top,
9831         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
9832         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
9833         declarations.
9834         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
9835         (enum df_mm): Delete.
9836         * df-byte-scan.c: Delete file.
9837         * df-problems.c (df_word_lr_problem_data): Renamed from
9838         df_byte_lr_problem_data, all members deleted except for
9839         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
9840         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
9841         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
9842         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
9843         df_byte_lr_confluence_0): Delete functions.
9844         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
9845         callers changed.
9846         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
9847         Don't initialize members that were deleted, don't try to discover data
9848         about registers.  Ignore hard regs.
9849         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
9850         (df_word_lr_mark_ref): New function.
9851         (df_word_lr_bb_local_compute): Renamed from
9852         df_byte_bb_lr_local_compute; all callers changed.  Use
9853         df_word_lr_mark_ref.  Assert that artificial refs don't include
9854         pseudos.  Ignore hard registers.
9855         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
9856         Assert that exit block uses don't contain pseudos.
9857         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
9858         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
9859         callers changed.  Ignore hard regs.
9860         (df_word_lr_transfer_function): Renamed from
9861         df_byte_lr_transfer_function; all callers changed.
9862         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
9863         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
9864         changed.
9865         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
9866         callers changed.
9867         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
9868         confluence operator 0 set to NULL.
9869         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
9870         callers changed.
9871         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
9872         Return bool, true if bitmap changed or insn otherwise necessary.
9873         All callers changed.  Simplify using df_word_lr_mark_ref.
9874         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
9875         all callers changed.  Simplify using df_word_lr_mark_ref.
9876         * lower-subreg.c: Include "dce.h"
9877         (decompose_multiword_subregs): Call run_word_dce if df available.
9878         * Makefile.in (lower-subreg.o): Adjust dependencies.
9879         (df-byte-scan.o): Delete.
9880         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
9881
9882 2010-07-29  Richard Guenther  <rguenther@suse.de>
9883
9884         * tree.c (build_vector): Assert that the vector constant
9885         has enough elements.
9886         (build_vector_from_ctor): Pad with trailing zeros.
9887
9888 2010-07-29  Richard Guenther  <rguenther@suse.de>
9889
9890         PR tree-optimization/45120
9891         * tree-ssa-structalias.c (get_constraint_for_component_ref):
9892         Handle offset in DEREFs properly.
9893         (get_constraint_for_1): Handle MEM_REF offset properly.
9894
9895 2010-07-29  Richard Guenther  <rguenther@suse.de>
9896
9897         PR middle-end/45034
9898         * convert.c (convert_to_integer): Always use an unsigned
9899         type for narrowed negate and bitwise not.
9900
9901 2010-07-29  Ira Rosen  <irar@il.ibm.com>
9902
9903         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
9904         to outer loop when creating reduction epilogue for double reduction,
9905         and switch back to the inner loop when updating the phi nodes.
9906         Update uses of outer loop exit phi nodes in double reduction (instead
9907         of uses of reduction).
9908
9909 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
9910
9911         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
9912         popcount on power7 and parity on power6 systems.
9913         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
9914         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
9915         instructions.
9916
9917         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
9918         (UNSPEC_PARITY): Ditto.
9919         (SFDF): New iterator for SF/DF.
9920         (rreg2): New mode attribute for floating register constraint.
9921         (TARGET_FLOAT): New mode attribute for whether single/double float
9922         is supported.
9923         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
9924         pattern.
9925         (parity<mode>2_cmpb): New insn for parity on power6 and newer
9926         machines.
9927         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
9928         pattern.  Add support for fcpsgn instruction added in power6.
9929         (copysignsf3): Delete.
9930         (copysigndf3): Delete.
9931         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
9932         instead of if_then_else in RTL to avoid problems with -0.
9933
9934         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
9935         of if_then_else to mirror scalar code.
9936         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
9937         rs6000.md.
9938
9939         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
9940         instead of if_then_else.
9941
9942 2010-07-28  Xinliang David Li  <davidxl@google.com>
9943
9944         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
9945         (dump_cand): Dump var_before/after.
9946         (htab_inv_expr_eq): New function.
9947         (htab_inv_expr_hash): New function.
9948         (tree_ssa_iv_optimize_init): Support pseudo invariants.
9949         (add_candidate_1): consider base type precision.
9950         (set_use_iv_cost): New parameter.
9951         (adjust_setup_cost): Use profile information.
9952         (get_address_cost): Do not hard code width in computing address
9953         offset limits.
9954         (compare_aff_trees): New function.
9955         (get_loop_invariant_expr_id): New function.
9956         (get_computation_cost_at): New parameter and use profile information.
9957         (get_computation_cost): New parameter.
9958         (determine_use_iv_cost_generic): Pass new parameter.
9959         (determine_use_iv_cost_address): Ditto.
9960         (determine_use_iv_cost_condition): Ditto.
9961         (autoinc_possible_for_pair): Ditto.
9962         (determine_use_iv_costs): More dumps.
9963         (iv_ca_get_num_inv_exprs): New function.
9964         (iv_ca_recount_cost): Consider loop invariants in register pressure
9965         cost.
9966         (iv_ca_add_use): New parameter.
9967         (iv_ca_dump): Better dumping.
9968         (iv_ca_extend): New parameter.
9969         (try_add_cand_for): Attempt to get better partial solution.
9970         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
9971         (create_new-ivs): More dumps.
9972         (rewrite_use_compare): Ditto.
9973         (free_loop_data): More cleanup.
9974         (treee_ssa_iv_optimize_finalize): Ditto.
9975
9976 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
9977
9978         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
9979         * config/i386/i386.c (ix86_profile_before_prologue): New.
9980         (override_options): Add special handling for -mfentry.
9981         (ix86_function_regparm): Likewise.
9982         (ix86_function_sseregparm): Likewise.
9983         (ix86_frame_pointer_required): Likewise.
9984         (ix86_expand_prologue): Check for ms_hook_prologue.
9985         (x86_function_profiler): Adjust mcount output.
9986         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
9987         * config/i386/i386.opt (mfentry): New.
9988         * doc/invoke.texi (mfentry): Add documentation.
9989         * doc/tm.texi: Regenerated..
9990         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
9991         * final.c (final_start_function): Replace macro
9992         PROFILE_BEFORE_PROLOGUE by target hook.
9993         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9994         * target.def (profile_before_prologue): New hook.
9995         * targhooks.c (default_profile_before_prologue): New.
9996         * targhooks.h (default_profile_before_prologue): New.
9997
9998 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
9999
10000         PR debug/45105
10001         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
10002
10003         PR debug/45103
10004         * dwarf2out.c (dwarf2out_var_location): Always consider
10005         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
10006
10007 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10008
10009         PR rtl-optimization/45107
10010         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
10011
10012 2010-07-28  Richard Guenther  <rguenther@suse.de>
10013
10014         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
10015         (set_lattice_value): Do not query an old default value.
10016         (get_value_for_expr): New function.  Properly canonicalize
10017         float values.
10018         (ccp_visit_phi_node): Use it.
10019
10020 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
10021
10022         * config/arm/arm.c (arm_pcs_default): Remove static.
10023         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
10024         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
10025         (arm_pcs_default): Declare.
10026
10027 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
10028
10029         * config/rs6000/rs6000.c (rs6000_override_options):
10030         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
10031         ... to darwin_rs6000_override_options.
10032         (rs6000_return_in_memory): Update preceding comment for darwin
10033         64 bit ABI.  Use TARGET_MACHO inline.
10034         (rs6000_darwin64_struct_check_p): New.
10035         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
10036         (function_arg): Likewise.
10037         (rs6000_arg_partial_bytes): Likewise.
10038         (rs6000_function_value): Likewise.
10039
10040 2010-07-28  Andi Kleen  <ak@linux.intel.com>
10041
10042         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
10043
10044 2010-07-28  Richard Guenther  <rguenther@suse.de>
10045
10046         PR middle-end/44903
10047         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
10048         targets try harder to not generate unaligned accesses.
10049
10050 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10051
10052         PR rtl-optimization/45101
10053         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
10054         for gcse-las.
10055
10056 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10057
10058         PR tree-optimization/44885
10059         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
10060         with non-aliased component.
10061
10062 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
10063
10064         * config/darwin-driver.c (SWITCH_TAKES_ARG,
10065         WORD_SWITCH_TAKES_ARG): Remove.
10066         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
10067         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
10068         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
10069         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
10070         definitions from gcc.c.
10071         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
10072         defaults.h.
10073         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
10074         Move to defaults.h.
10075         * opts-common.c: Include tm.h.
10076         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
10077         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
10078         Handle more than one argument.  Set canonical_option_num_elements.
10079         (decode_cmdline_options_to_array): Set
10080         canonical_option_num_elements and trailing elements of
10081         canonical_option.
10082         * opts.h (struct cl_decoded_option): Allow four elements in
10083         canonical_option.  Add field canonical_option_num_elements.
10084         * Makefile.in (opts-common.o): Update dependencies.
10085
10086 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10087
10088         PR middle-end/44790
10089         PR middle-end/44993
10090         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
10091         sure the base has address_mode before adding the offset.
10092
10093 2010-07-27  Xinliang David Li  <davidxl@google.com>
10094
10095         * tree-flow.h (create_mem_ref): Add one new parameter.
10096         * tree-ssa-address.c (create_mem_ref): New parameter.
10097         (addr_to_parts): Ditto.
10098         (move_variant_to_index): New function.
10099         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
10100
10101 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10102
10103         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
10104         4 and 5.
10105         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
10106         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
10107         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
10108         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
10109         CODE_LABELs and NOTEs.
10110         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
10111         * combine.c (try_combine): Likewise.
10112         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10113         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
10114
10115 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10116
10117         * coretypes.h (struct cl_option_handlers): Declare.
10118         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
10119         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
10120         * langhooks-def.h (lhd_handle_option): Declare.
10121         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
10122         * langhooks.c (lhd_handle_option): New.
10123         * langhooks.h (struct lang_hooks): Update prototype and return
10124         value type of handle_option hook.
10125         * optc-gen.awk: Generate target_flags_explicit definition for the
10126         driver.
10127         * opts-common.c: Include diagnostic.h.
10128         (handle_option): Move from opts.c.  Update prototype and return
10129         value type.  Use handlers structure.
10130         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
10131         handlers structure.
10132         (set_option): Move from opts.c.
10133         * opts.c (common_handle_option): Update prototype and return value
10134         type.  Update calls to handle_option and enable_warning_as_error.
10135         (unknown_option_callback, post_handling_callback,
10136         lang_handle_option, target_handle_option): New.
10137         (handle_option, read_cmdline_option): Move to opts-common.c.
10138         (read_cmdline_options): Update prototype.  Update call to
10139         read_cmdline_option.
10140         (decode_options): Initialize and use handlers structure.
10141         (set_option): Move to opts-common.c.
10142         (enable_warning_as_error): Update prototype.  Update call to
10143         handle_option.
10144         * opts.h (struct cl_option_handler_func, struct
10145         cl_option_handlers): New.
10146         (handle_option, enable_warning_as_error): Update prototypes.
10147         (read_cmdline_option): Declare.
10148         * Makefile.in (opts-common.o): Update dependencies.
10149
10150 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10151
10152         * config/arm/arm.c (params.h): Include.
10153         (arm_override_options): Tune gcse-unrestricted-cost.
10154         * config/arm/t-arm (arm.o): Define dependencies.
10155
10156 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10157
10158         PR target/42495
10159         PR middle-end/42574
10160         * basic-block.h (get_dominated_to_depth): Declare.
10161         * dominance.c (get_dominated_to_depth): New function, use
10162         get_all_dominated_blocks as a base.
10163         (get_all_dominated_blocks): Use get_dominated_to_depth.
10164
10165         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
10166         (hoist_exprs): Remove.
10167         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
10168         (compute_code_hoist_vbeinout): Add debug print outs.
10169         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
10170
10171         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
10172         quadratic behavior.
10173         * params.h (MAX_HOIST_DEPTH): New macro.
10174         * doc/invoke.texi (max-hoist-depth): Document.
10175
10176 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10177
10178         PR rtl-optimization/40956
10179         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
10180         constants.
10181
10182 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10183
10184         PR target/42495
10185         PR middle-end/42574
10186         * config/arm/arm.c (legitimize_pic_address): Use
10187         gen_calculate_pic_address pattern to emit calculation of PIC address.
10188         (will_be_in_index_register): New function.
10189         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
10190         (thumb1_legitimate_address_p): Use it provided !strict_p.
10191         * config/arm/arm.md (calculate_pic_address): New expand and split.
10192
10193 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10194
10195         PR target/42495
10196         PR middle-end/42574
10197         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
10198         * config/arm/arm.md (define_split "J", define_split "K"): Make
10199         IRA/reload friendly.
10200
10201 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10202
10203         * gcse.c (insert_insn_end_basic_block): Update signature, remove
10204         unused checks.
10205         (pre_edge_insert, hoist_code): Update.
10206
10207 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10208
10209         PR target/42495
10210         PR middle-end/42574
10211         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
10212
10213 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10214
10215         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
10216
10217 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10218
10219         PR rtl-optimization/40956
10220         PR target/42495
10221         PR middle-end/42574
10222         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
10223         for hoisting.
10224         (hoist_code): Count occurences in current block too.
10225
10226 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10227
10228         * gcse.c (struct expr:max_distance): New field.
10229         (doing_code_hoisting_p): New static variable.
10230         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
10231         simple expressions, don't change behavior for PRE.  Set max_distance.
10232         (insert_expr_in_table): Set new max_distance field.
10233         (hash_scan_set): Update.
10234         (hoist_expr_reaches_here_p): Stop search after max_distance
10235         instructions.
10236         (find_occr_in_bb): New static function.  Use it in ...
10237         (hoist_code): Calculate sizes of basic block before any changes are
10238         done.  Pass max_distance to hoist_expr_reaches_here_p.
10239         (one_code_hoisting_pass): Set doing_code_hoisting_p.
10240
10241         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
10242         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
10243         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
10244         macros.
10245         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
10246         Document.
10247
10248 2010-07-27  Jeff Law  <law@redhat.com>
10249             Maxim Kuvyrkov  <maxim@codesourcery.com>
10250
10251         * gcse.c (compute_transpout, transpout): Remove, move logic
10252         to prune_expressions.
10253         (compute_pre_data): Move pruning of trapping expressions ...
10254         (prune_expressions): ... here.  New static function.
10255         (compute_code_hoist_data): Use it.
10256         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
10257
10258 2010-07-27  Xinliang David Li  <davidxl@google.com>
10259
10260         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
10261         (rewrite_use_address): Adjust iv update position when needed.
10262
10263 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
10264
10265         * dbgcnt.def (hoist_insn): New debug counter.
10266         * gcse.c (hoist_code): Use it.
10267
10268 2010-07-27  Xinliang David Li  <davidxl@google.com>
10269
10270         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
10271         (niter_for_single_dom_exit): Passes additional parameter.
10272         (iv_period): Fix comments.
10273         (may_eliminate_iv): Handles multiple exit loops properly.
10274         (free_tree_niter_desc): New function.
10275         (free_loop_data): Frees up loop iteration descriptors.
10276
10277 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10278
10279         PR target/44542
10280         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
10281         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
10282         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
10283         (expand_one_var): Don't consider DECL_ALIGN for variables for
10284         which expand_one_stack_var_at has been already called.
10285
10286         PR testsuite/44701
10287         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
10288         constraints on IA-64.
10289
10290 2010-07-27  Jie Zhang  <jie@codesourcery.com>
10291
10292         PR target/44290
10293         Revert:
10294         2010-07-23  Jie Zhang  <jie@codesourcery.com>
10295
10296         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10297         false if ! tree_versionable_function_p.
10298
10299 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10300
10301         * dwarf2out.c (add_data_member_location_attribute): Use
10302         add_AT_unsigned instead of add_AT_int if offset is non-negative.
10303
10304 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10305
10306         * postreload.c (try_replace_in_use): New static function.
10307         (reload_combine_recognize_const_pattern): Use it here.  Allow
10308         substituting into a final add insn, and substituting into a memory
10309         reference in an insn that sets the reg.
10310
10311 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10312
10313         * common.opt (o): Add MissingArgError.
10314         * doc/options.texi (MissingArgError): Document.
10315         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
10316         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
10317         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
10318         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
10319         * langhooks.h (struct lang_hooks): Remove missing_argument.
10320         * optc-gen.awk: Handle MissingArgError and output new structure
10321         field initializers.
10322         * opts.c (read_cmdline_option): Use missing_argument_error field
10323         instead of missing_argument langhook.
10324         * opts.h (struct cl_option): Add missing_argument_error field.
10325         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
10326
10327 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
10328
10329         PR target/29090
10330         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
10331         Darwin64 ABI, for zero-sized objects.
10332
10333 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
10334
10335         PR target/35491
10336         PR target/29090
10337
10338         Merge from Apple local 4.2.1.
10339         2005-05-11  Stan Shebs  <shebs@apple.com>
10340         Fix 64-bit varargs for Darwin (Radar 4028089).
10341         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
10342         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10343         Add argument, add case for 8-byte register half-filled with a float.
10344         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
10345         single-precision floats specially.
10346
10347 2010-07-27  Ira Rosen  <irar@il.ibm.com>
10348
10349         PR tree-optimization/44152
10350         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
10351         complex numbers for further check.
10352         (vect_supported_load_permutation_p): Check nodes with
10353         complex numbers.
10354
10355 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
10358         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
10359         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
10360         (LANG_HOOKS_INITIALIZER): Add new hooks.
10361         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
10362         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
10363         and complain_wrong_lang_p.  Update init_options prototype.
10364         * c-objc-common.c (c_initialize_diagnostics): First call
10365         c_common_initialize_diagnostics.
10366         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
10367         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
10368         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
10369         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
10370         (hook_uint_void_0): New.
10371         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
10372         (hook_uint_void_0): New.
10373         * opts-common.c (decode_cmdline_option,
10374         decode_cmdline_options_to_array): Also fill in canonical_option field.
10375         * opts.c (complain_wrong_lang): Use langhook to determine whether
10376         to complain instead of special-casing LTO.
10377         (decode_options): Separate lang_mask determination with
10378         option_lang_mask hook from call of init_options hook.
10379         * opts.h (struct cl_decoded_option): Add canonical_option.
10380
10381 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
10382
10383         PR tree-optimization/45083
10384         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
10385
10386 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
10387
10388         * postreload.c (reload_combine_recognize_const_pattern): Move test
10389         for limiting the insn movement to the right scope.
10390
10391         PR rtl-optimization/45051
10392         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
10393         than reg_mentioned_p.
10394
10395 2010-07-26  Richard Henderson  <rth@redhat.com>
10396
10397         PR target/44132
10398         * tree-emutls.c: New file.
10399         * Makefile.in (OBJS-common): Add it.
10400         * tree-pass.h (pass_ipa_lower_emutls): Declare.
10401         * passes.c (init_optimization_passes): Add it.
10402
10403         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
10404         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
10405         * expr.c (emutls_var_address): Delete.
10406         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
10407         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
10408         (emutls_finish): Delete.
10409         * toplev.c (compile_file): Don't call it.
10410         * tree.h (emutls_decl): Delete.
10411         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
10412         (emutls_finish, emutls_finalize_control_var): Delete.
10413         (emutls_object_type): Move to tree-emutls.c.
10414         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
10415         default_emutls_var_fields, get_emutls_object_type,
10416         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
10417         default_emutls_var_init): Likewise.
10418         (get_variable_section): Don't special case emutls.
10419         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
10420         default_elf_select_section, default_unique_section,
10421         default_encode_section_info): Likewise.
10422         * varpool.c (decide_is_variable_needed): Likewise.
10423         * gimple-iterator.c (update_call_edge_frequencies): New
10424         (gsi_insert_on_edge_immediate): Use it.
10425         (gsi_insert_seq_on_edge_immediate): Likewise.
10426         (gsi_commit_one_edge_insert): Likewise.
10427
10428         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
10429         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
10430         (x86_64_elf_unique_section): Likewise.
10431
10432 2010-07-26  Jan Hubicka  <jh@suse.cz>
10433
10434         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
10435         GTY((skip)).
10436
10437 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
10438
10439         * target.def (output_source_filename): New hook.
10440         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
10441         * doc/tm.texi: Regenerate.
10442         * toplev.c (output_file_directive) Remove function.
10443         * toplev.h (output_file_directive) Remove.
10444         * output.h (default_asm_output_source_filename,
10445         output_file_directive): Declare.
10446         * varasm.h (default_asm_output_source_filename,
10447         output_file_directive): New functions.
10448
10449         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10450         * config/mips/mips-protos.h (mips_output_filename): Remove.
10451         * config/mips/mips.c (mips_output_filename): Make Static.
10452         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10453
10454 2010-07-26  Richard Guenther  <rguenther@suse.de>
10455
10456         PR tree-optimization/43784
10457         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
10458         if the destination is used by the call.
10459
10460 2010-07-26  Richard Guenther  <rguenther@suse.de>
10461
10462         PR middle-end/45073
10463         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
10464         SSA updating on being in SSA form.
10465
10466 2010-07-26  Richard Guenther  <rguenther@suse.de>
10467
10468         PR middle-end/45056
10469         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
10470
10471 2010-07-26  Richard Guenther  <rguenther@suse.de>
10472
10473         PR tree-optimization/45071
10474         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
10475         adjust op->opcode.
10476
10477 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
10478
10479         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
10480         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
10481         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
10482         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
10483         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
10484         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
10485         save_r31, return_r31, save_interrupt, return_interrupt,
10486         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
10487         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
10488         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
10489         new ABI requirements.
10490         (save_r6_r9, L_callt_save_r6_r9): Remove.
10491         * config/v850/predicates.md (even_reg_operand, disp23_operand,
10492         const_float_1_operand const_float_0_operand): New Predicates.
10493         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
10494         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
10495         * config/v850/t-v850: Update multilibs for new target variants.
10496         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
10497         * config/v850/t-v850e: Likewise.
10498         * config/v850/v850.c (v850_issue_rate): New.
10499         (v850_strict_argument_naming): New.
10500         (function_arg): Modify to generate a different ABI.
10501         (print_operand): Update case 'z' to support float modes.
10502         (output_move_single): Modify to generate appropriate and better
10503         assembly.
10504         (v850_float_z_comparison_operator, v850_select_cc_mode,
10505         v850_float_nz_comparison_operator,  v850_gen_float_compare,
10506         v850_gen_compare): New functions to support comparison of float values.
10507         (ep_memory_offset): Add support for V850E2 targets.
10508         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
10509         (INTERRUPT_REGPARM_NUM): Remove.
10510         (compute_register_save_size): Add extra case to save/restore long call.
10511         (use_prolog_function): New function to support prologue.
10512         (expand_prologue): Add support for V850E2 targets and modified
10513         as per the current ABI requirements.
10514         (expand_epilogue): Likewise.
10515         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
10516         (construct_save_jarl): Likewise.
10517         (construct_dispose_instruction): Update as per the current ABI
10518         requirements.
10519         (construct_prepare_instruction): Likewise.
10520         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
10521         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
10522         (CPP_SPEC): Updated to support v850e2 targets.
10523         (STRICT_ALIGNMENT): Modified.
10524         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
10525         (FIXED_REGISTERS): Likewise.
10526         (CALL_USED_REGISTERS): Likewise.
10527         (CONDITIONAL_REGISTER_USAGE): Updated.
10528         (HARD_REGNO_MODE_OK): Updated.
10529         (reg_class): Updated to add even registers.
10530         (REG_CLASS_NAMES): Likewise.
10531         (REG_CLASS_CONTENTS): Likewise.
10532         (REGNO_REG_CLASS): Updated for CC registers.
10533         (REG_CLASS_FROM_LETTER): Added support for even registers.
10534         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
10535         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
10536         ARG_POINTER_REGNUM): Updated.
10537         (FUNCTION_ARG_ADVANCE): Define.
10538         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
10539         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
10540         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
10541         (GO_IF_LEGITIMATE_ADDRESS): Updated.
10542         (SELECT_CC_MODE): Define.
10543         (REGISTER_NAMES): Updated to add psw and fcc registers.
10544         (ADDITIONAL_REGISTER_NAMES): Updated.
10545         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
10546         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
10547         * config/v850/v850.md (define_constants): Define new constants.
10548         (type): Update store,bit1,macc,div,fpu and single attributes.
10549         (cpu): New attribute.
10550         (cc): Add set_z attribute.
10551         (unsign23byte_load, sign23byte_load, unsign23hword_load,
10552         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
10553         23word_store): New instructions for 23-bit displacement load and store.
10554         (movqi_internal, movhi_internal): Update the attributes.
10555         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
10556         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
10557         the attributes.
10558         (v850_tst1): Modified using CC_REGNUM.
10559         (tstsi): Remove.
10560         (cmpsi): Modified as define_expand from define_insn.
10561         (cmpsi_insn, cmpsf, cmpdf): New instructions.
10562         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
10563         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
10564         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
10565         one_cmplsi2): Clobber the CC_REGNUM register.
10566         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
10567         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
10568         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
10569         (setf_insn, set_z_insn, set_nz_insn): New instructions for
10570         v850e2v3 target.
10571         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
10572         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
10573         targets.
10574         (sasf_1, sasf_2): Remove.
10575         (sasf): New instruction.
10576         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
10577         targets. CC_REGNUM register is clobbered and attributes are
10578         updated.
10579         (branch_z_normal, branch_z_invert, branch_nz_normal,
10580         branch_nz_invert): New branch related instructions.
10581         (jump): Updated the attributes.
10582         (switch): Update to support new targets. CC_REGNUM register is
10583         clobbered and attributes are updated.
10584         (call_internal_short, call_internal_long, call_value_internal_short,
10585         call_value_internal_long): Updated the attributes.
10586         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
10587         clobbered and attributes are updated.
10588         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
10589         Update to support new targets. CC_REGNUM register is clobbered.
10590         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
10591         instructions.
10592         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
10593         are updated.
10594         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
10595         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
10596         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
10597         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
10598         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
10599         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
10600         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
10601         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
10602         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
10603         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
10604         point instructions defined for V850e2v3 target.
10605         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
10606         Add support for V850E2 targets and CC_REGNUM register is clobbered.
10607         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
10608         support for new targets.
10609         * config/v850/v850-modes.def: New file.
10610         * config/v850/v850.opt(mstrict-align): Remove.
10611         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
10612         mv850e2v3): New command line options for V850.
10613         * config.gcc: Update the newly added files.
10614         * doc/invoke.texi: Update the newly added command line options for
10615         V850 target.
10616
10617 2010-07-26  Richard Guenther  <rguenther@suse.de>
10618
10619         PR tree-optimization/45052
10620         * ipa-pure-const.c (check_stmt): Check volatileness.
10621
10622 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
10623
10624         PR target/44707
10625         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
10626         * config/sparc/sparc.c: Include reload.h.
10627         (legitimize_tls_address): Rename into...
10628         (sparc_legitimize_tls_address): ...this.
10629         (legitimize_pic_address): Rename into...
10630         (sparc_legitimize_pic_address): ...this.
10631         (sparc_expand_move): Adjust to above renaming.
10632         (sparc_tls_referenced_p): Likewise.
10633         (sparc_legitimize_tls_address): Likewise.
10634         (sparc_legitimize_pic_address): Likewise.
10635         (sparc_legitimize_address): Likewise.
10636         (sparc_output_mi_thunk): Likewise.
10637         (sparc_legitimize_reload_address): New global function.  Recognize
10638         (lo_sum (high ...) ...) patterns generated by earlier passes.
10639         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
10640
10641 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
10642
10643         PR target/44484
10644         * config/sparc/predicates.md (memory_reg_operand): Delete.
10645         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
10646         (*sync_compare_and_swap): Encode the address form in the pattern.
10647         (*sync_compare_and_swapdi_v8plus): Likewise.
10648
10649 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
10650
10651         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
10652         Streamline paragraph on compatibility with the system compiler.
10653
10654 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
10655
10656         PR middle-end/45035
10657         * alias.c (true_dependence_1): Fix thinko in merge of old
10658         true_dependence and canon_true_dependence.
10659
10660 2010-07-23  Jan Hubicka  <jh@suse.cz>
10661
10662         * lto-streamer-out.c (write_symbol): Fix visibilities of external
10663         references.
10664
10665 2010-07-23  Le-Chun Wu  <lcwu@google.com>
10666
10667         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
10668         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
10669         and an unnecessary assignment.
10670         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
10671         self-assign warning.
10672         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
10673         unnecessary self-init.
10674
10675 2010-07-23  Richard Guenther  <rguenther@suse.de>
10676
10677         PR lto/43071
10678         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
10679         for -flto and -fwhopr.
10680
10681 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
10682
10683         PR target/41943
10684         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
10685         (stmp-int-hdrs): Prefix/postfix headers by include_next.
10686         * config.gcc (user_headers_inc_next_pre): New.
10687         (user_headers_inc_next_post): Likewise.
10688         (*-w64-mingw*): Use for float.h post-fixing, and for
10689         stddef.h/stdarg.h pre-fixing by include_next.
10690         * configure.ac (user_headers_inc_next_post): New.
10691         (user_headers_inc_next_pre): New.
10692         * configure: Regenerated.
10693
10694 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10695
10696         * configure.ac: Don't disable TLS on Solaris 8/9 by default
10697         Set tga_func for Solaris 2/x86 resp. SPARC.
10698         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
10699         (LIB_THREAD_LDFLAGS_SPEC): Define.
10700         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
10701         * configure: Regenerate.
10702         * config.in: Regenerate.
10703         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
10704         -pthread, -threads, LIB_TLS_SPEC with -pthread.
10705         * doc/install.texi (Specific, *-*-solaris2*): Document use of
10706         alternate thread libraries on Solaris 8.
10707         Document TLS patch requirements.
10708         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
10709         Document tls.
10710
10711         PR target/18788
10712         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
10713         -shared.
10714
10715 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
10716
10717         * tree.h (struct tree_base): Add nameless_flag bitfield.
10718         (TYPE_NAMELESS, DECL_NAMELESS): Define.
10719         * omp-low.c (create_omp_child_function, scan_omp_parallel,
10720         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
10721         DECL_ARTIFICIAL where needed.
10722         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
10723         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
10724         has DECL_NAMELESS set.
10725
10726 2010-07-23  Martin Jambor  <mjambor@suse.cz>
10727
10728         PR tree-optimization/44915
10729         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
10730         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
10731         (analyze_function): Likewise.
10732
10733 2010-07-23  Martin Jambor  <mjambor@suse.cz>
10734
10735         PR tree-optimization/44914
10736         * tree-sra.c (sra_modify_function_body): Return true if CFG was
10737         changed, add purging dead eh edges.
10738         (ipa_sra_modify_function_body): Return true if CFG was changed,
10739         simplify purging dead eh edges.
10740         (modify_function): Return true if CFG was changed.
10741         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
10742         was changed.
10743         (ipa_early_sra): Likewise.
10744
10745 2010-07-23  Jie Zhang  <jie@codesourcery.com>
10746
10747         PR target/44290
10748         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
10749         if "naked".
10750         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
10751         false if ! tree_versionable_function_p.
10752
10753 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
10754
10755         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
10756         * ipa-pure-const.c (special_builtlin_state): Remove
10757         BUILT_IN_ARGS_INFO case.
10758         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10759         * builtins.c (expand_builtin): Likewise.
10760         (expand_builtin_args_info): Remove.
10761         * doc/tm.texi (__builtin_args_info): Remove.
10762         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
10763         * doc/tm.text.in: Likewise.
10764
10765 2010-07-23  Richard Guenther  <rguenther@suse.de>
10766
10767         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
10768         (lto_symtab_merge_decls_2): Likewise.
10769         * tree-ssa.c (useless_type_conversion_p): Likewise.
10770         * lto-streamer-in.c (input_gimple_stmt): Likewise.
10771         * gimple.c (gtc_visited2, gtc_ob2): Remove.
10772         (struct type_pair_d): Make same_p an array indexed by mode.
10773         Update comment.
10774         (lookup_type_pair): Update initialization.
10775         (struct sccs): Adjust same_p type.
10776         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
10777         Adjust.
10778         (print_gimple_types_stats): Likewise.
10779         * gimple.h (enum gtc_mode): New.
10780         (gimple_types_compatible_p): Adjust prototype.
10781
10782 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
10783
10784         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
10785         again after processing insn.
10786
10787 2010-07-23  Jie Zhang  <jie@codesourcery.com>
10788
10789         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
10790         proper words when !tree_versionable_function_p.
10791
10792 2010-07-23  Richard Guenther  <rguenther@suse.de>
10793
10794         PR tree-optimization/45037
10795         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
10796
10797 2010-07-23  Jie Zhang  <jie@codesourcery.com>
10798
10799         * doc/extend.texi: Remove IP2K from the description of naked attribute.
10800         Add MCORE instead.
10801
10802 2010-07-10  Andi Kleen  <ak@linux.intel.com>
10803
10804         PR lto/44992
10805         * lto-opts.c (lto_write_options): Add NULL file_data argument to
10806         lto_get_section_name.
10807         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
10808         * lto-streamer-out.c (produce_asm): Likewise.
10809         (copy_function): Likewise.
10810         (produce_symtab): Likewise.
10811         (produce_asm_for_decls): Likewise.
10812         * lto-streamer.c (lto_get_section_name): Add file_data argument.
10813         Rewrite to add random postfix to LTO sections.
10814         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
10815         (lto_get_section_name): Add file_data argument to prototype.
10816
10817 2010-07-10  Andi Kleen  <ak@linux.intel.com>
10818
10819         * lto-section-in.c (lto_section_name): Synchronize names
10820         with lto_get_section_name.
10821
10822 2010-07-10  Andi Kleen  <ak@linux.intel.com>
10823
10824         * lto-opts.c (lto_read_file_options): Check for missing section.
10825
10826 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
10827
10828         * ira.c (check_allocation): Correctly handle the case where an allocno
10829         with two objects was allocated to a single reg.
10830
10831 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
10832
10833         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
10834         (is_widening_mult_p): Likewise.
10835         (convert_to_widen): Use them.
10836         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
10837         well as integer ones.
10838
10839 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
10840
10841         * alias.c (true_dependence_1): New function, merged version of
10842         true_dependence and canon_true_dependence.
10843         (true_dependence): Simplify.
10844         (canon_true_dependence): Simplify.
10845
10846 2010-07-22  Richard Henderson  <rth@redhat.com>
10847
10848         PR target/45027
10849         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
10850         of V4SFmode for the SSE saves; increase stack alignment if needed.
10851         (ix86_gimplify_va_arg): Don't increase stack alignment here.
10852
10853 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
10854
10855         PR bootstrap/45028
10856         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
10857         call cprop_find_used_regs again via note_uses.
10858
10859 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
10860
10861         * alias.c (get_alias_set): Fix formatting issues.
10862
10863 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
10864
10865         PR middle-end/44878
10866         * stmt.c (expand_value_return):  Call promote_function_mode with
10867         a for_return argument of 2 when returning by reference.
10868
10869 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
10870
10871         PR debug/45024
10872         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
10873         unit DIE if we can find the scope DIE.
10874
10875 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
10876
10877         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
10878         changed.  Initialize OBJECT_SUBWORD.
10879         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
10880         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
10881         all callers changed.
10882         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
10883         (finish_allocno): Likewise.
10884         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
10885         (remove_low_level_allocnos): Likewise.
10886         (update_bad_spill_attribute): Likewise.
10887         (setup_min_max_allocno_live_range_point): Likewise.
10888         (sort_conflict_id_map): Likewise.
10889         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
10890         (ior_hard_reg_conflicts): New function.
10891         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
10892         (compress_conflict_vecs): Iterate over objects, not allocnos.
10893         (ira_add_live_range_to_object): New function.
10894         (object_range_compare_func): Renamed from allocno_range_compare_func.
10895         All callers changed.
10896         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
10897         subobjects, widen the min/max range of the lowest-order object to
10898         potentially include all other such low-order objects.
10899         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
10900         (check_allocation): Likewise.  Use more fine-grained tests for register
10901         conflicts.
10902         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
10903         allocno subobjects.
10904         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
10905         choices about which bits to set in each set.  Don't use
10906         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
10907         using the multiple sets we computed.
10908         (push_allocno_to_stack): Iterate over allocno subobjects.
10909         (all_conflicting_hard_regs_coalesced): New static function.
10910         (setup_allocno_available_regs_num): Use it.
10911         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
10912         subobjects.
10913         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
10914         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10915         by ALLOCNO_NUM_OBJECTS.
10916         (calculate_spill_cost): Likewise.
10917         (color_pass): Express if statement in a more normal way.
10918         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
10919         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
10920         (setup_slot_coalesced_allocno_live_ranges): Likewise.
10921         (allocno_reload_assign): Likewise.
10922         (ira_reassign_pseudos): Likewise.
10923         (fast_allocation): Likewise.
10924         * ira-conflicts.c (build_conflict_bit_table): Likewise.
10925         (print_allocno_conflicts): Likewise.
10926         (ira_build_conflicts): Likewise.
10927         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
10928         callers changed.  Test subword 0 of each allocno for conflicts.
10929         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
10930         callers changed.  Iterate over allocno subobjects.
10931         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
10932         * ira-int.h (struct ira_allocno): New member: num_objects.
10933         Rename object to objects and change it into an array.
10934         (ALLOCNO_OBJECT): Add new argument N.
10935         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
10936         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
10937         (ior_hard_reg_conflicts): Declare.
10938         (ira_add_live_range_to_object): Declare.
10939         (ira_allocno_object_iterator): New.
10940         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
10941         (FOR_EACH_ALLOCNO_OBJECT): New macro.
10942         * ira-lives.c (objects_live): Renamed from allocnos_live; all
10943         uses changed.
10944         (allocnos_processed): New sparseset.
10945         (make_object_born): Renamed from make_allocno_born; take an
10946         ira_object_t argument.  All callers changed.
10947         (make_object_dead): Renamed from make_allocno_dead; take an
10948         ira_object_t argument.  All callers changed.
10949         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
10950         All callers changed.
10951         (mark_pseudo_regno_live): Iterate over allocno subobjects.
10952         (mark_pseudo_regno_dead): Likewise.
10953         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
10954         functions.
10955         (mark_ref_live): Detect subword accesses and call
10956         mark_pseudo_regno_subword_live as appropriate.
10957         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
10958         (process_bb_nodes_live): Deal with object-related updates first; set
10959         and test bits in allocnos_processed to avoid computing allocno
10960         statistics more than once.
10961         (create_start_finish_chains): Iterate over objects, not allocnos.
10962         (print_object_live_ranges): New function.
10963         (print_allocno_live_ranges): Use it.
10964         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
10965         and objects_live.
10966
10967 2010-07-22  Richard Guenther  <rguenther@suse.de>
10968
10969         PR lto/42451
10970         * gimple.c (gtc_next_dfs_num): New global.
10971         (struct sccs): Make value a union, add integer same_p member.
10972         (gtc_visit): New function.
10973         (gimple_types_compatible_p_1): New function, split out from ...
10974         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
10975         (iterative_hash_gimple_type): Adjust for sccs change.
10976
10977 2010-07-22  Martin Jambor  <mjambor@suse.cz>
10978
10979         PR tree-optimization/44891
10980         * tree-sra.c: Include gimple-pretty-print.h.
10981         (replace_uses_with_default_def_ssa_name): Renamed to
10982         get_repl_default_def_ssa_name, return the new SSA name instead of
10983         replacing the old one.
10984         (sra_modify_assign): Dump a message when removing a load, if the LHS
10985         is an SSA_NAME, do not do any propagation, just set the RHS to a
10986         default definition SSA NAME, type convert if necessary.
10987         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
10988
10989 2010-07-22  Richard Guenther  <rguenther@suse.de>
10990
10991         PR tree-optimization/45017
10992         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
10993         TYPE_PRECISION of integral types in addition to size.
10994
10995 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10996
10997         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
10998         when no C library is specified.
10999
11000 2010-07-22  Martin Jambor  <mjambor@suse.cz>
11001
11002         * ipa-prop.h (struct ipa_node_params): Updated comment.
11003         (struct ipa_edge_args): Likewise.
11004         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
11005
11006 2010-07-22  Martin Jambor  <mjambor@suse.cz>
11007
11008         * cgraphunit.c (verify_edge_count_and_frequency): New function.
11009         (verify_cgraph_node): Verify frequencies of indirect edges.
11010         * tree-inline.c (tree_function_versioning): Update frequencies of
11011         indirect edges.
11012
11013 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11014
11015         PR target/43698
11016         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
11017         Set *arm_rev to be predicable.
11018
11019 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
11020
11021         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
11022         (LINK_COMMAND_SPEC_A): New.
11023         (DSYMUTIL): New.
11024         (DSYMUTIL_SPEC): New.
11025         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
11026         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
11027
11028 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
11029
11030         * calls.c (load_register_parameters): Move check for zero
11031         sized items so that only the call to
11032         mem_overlaps_already_clobbered_arg_p () is protected.
11033
11034 2010-07-22  Jan Hubicka  <jh@suse.cz>
11035
11036         * ipa-pure-const.c (varying_state): Break out from ...
11037         (get_function_state): ... here; always return varying_state
11038         when state would be NULL otherwise.
11039         (remove_node_data): Do not free varying state.
11040
11041 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
11042
11043         PR bootstrap/44970
11044         PR middle-end/45009
11045         * postreload.c: Include "target.h".
11046         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
11047         into account.
11048         (fixup_debug_insns): Don't copy the rtx.
11049         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
11050         Don't copy when replacing.  Call fixup_debug_insns in the case where
11051         we merged one add with another.
11052         (reload_combine_recognize_pattern): Fail if there aren't any uses.
11053         Try harder to determine whether we're picking a valid index register.
11054         Don't set store_ruid for an insn we're going to scan in the
11055         next iteration.
11056         (reload_combine): Remove unused code.
11057         (reload_combine_note_use): When updating use information for
11058         an old insn, ignore a use that occurs after store_ruid.
11059         * Makefile.in (postreload.o): Update dependencies.
11060
11061         * function.c (record_hard_reg_sets): Restrict the previous change
11062         to cases where the incoming nominal mode is the same as the
11063         incoming promoted mode and everything happens in MODE_INT.
11064
11065 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
11066
11067         PR debug/45015
11068         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
11069         ASM_OPERANDS_OUTPUT_IDX.
11070         (adjust_insn): For inline asm with multiple sets ensure first
11071         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
11072         the insn.
11073
11074 2010-07-21  Richard Henderson  <rth@redhat.com>
11075
11076         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
11077         comparison for avoiding xmm register saves.  Emit the xmm register
11078         saves explicitly.
11079         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
11080         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
11081         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
11082         Remove patterns and the associated splitters.
11083
11084 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
11085
11086         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
11087         and imagine parts of a complex, so that they can have the same
11088         base and fall into the same group.
11089
11090 2010-07-21  Richard Guenther  <rguenther@suse.de>
11091
11092         PR lto/45018
11093         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
11094         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
11095         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
11096
11097 2010-07-21  Martin Jambor  <mjambor@suse.cz>
11098
11099         PR tree-optimization/44900
11100         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
11101         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
11102
11103 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
11104
11105         PR middle-end/44738
11106         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
11107
11108 2010-07-21  Richard Guenther  <rguenther@suse.de>
11109
11110         PR middle-end/45013
11111         * tree-ssa.c (useless_type_conversion_p): Dispatch to
11112         gimple_types_compatible_p only when in lto.
11113         * gimple.c (gimple_types_compatible_p): Use canonical types
11114         to speed up comparison.
11115
11116 2010-07-21  Richard Guenther  <rguenther@suse.de>
11117
11118         * tree-flow.h (referenced_var): Move define ...
11119         * tree-flow-inline.h (referenced_var): ... here as an inline
11120         function.  Assert here ...
11121         * tree-dfa.c (referenced_var_lookup): ... instead of here.
11122         * tree-ssa.c (maybe_optimize_var): Check if the variable
11123         is in referenced vars.
11124         (execute_update_addresses_taken): Remove old broken check.
11125         * gimple-pretty-print.c (pp_points_to_solution): Use
11126         referenced_var_lookup.
11127         * tree-into-ssa.c (dump_decl_set): Likewise.
11128
11129 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
11130
11131         PR debug/45003
11132         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
11133         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
11134         ZERO_EXTEND here.
11135
11136 2010-07-20  Richard Henderson  <rth@redhat.com>
11137
11138         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
11139
11140 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
11141
11142         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
11143         computing the sum of the stack pointer and a large constant.
11144         * config/arm/constraints.md (M): Remove superfluous parentheses.
11145         (Pc): New constraint.
11146
11147 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
11148
11149         PR debug/45006
11150         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
11151         operand's type if exp is tcc_unary class tree.
11152
11153 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
11154
11155         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
11156         Reverse sense of if_then_else condition.
11157
11158 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
11159
11160         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
11161         * config/rs6000/rs6000.c (rs6000_override_options): Set
11162         rs6000_block_move_inline_limit appropriately.
11163         (expand_block_move): Use rs6000_block_move_inline_limit.
11164         * doc/invoke.texi (mblock-move-inline-limit): Document.
11165
11166 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
11167
11168         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
11169         FROM and TO.  All callers changed.  Don't look for tracked uses,
11170         just scan the RTL for DEBUG_INSNs and substitute.
11171         (reload_combine_recognize_pattern): Call fixup_debug_insns.
11172         (reload_combine): Ignore DEBUG_INSNs.
11173
11174 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
11175
11176         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
11177         depth to 8 from 5.
11178
11179         PR debug/45003
11180         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
11181         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
11182         instead of the result's type.
11183
11184 2010-07-20  Richard Guenther  <rguenther@suse.de>
11185
11186         PR tree-optimization/44977
11187         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
11188         SSA form.
11189
11190 2010-07-20  Richard Guenther  <rguenther@suse.de>
11191
11192         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
11193         (lto_symtab_merge_decls_2): Likewise.
11194         * gimple.h (gimple_types_compatible_p): Declare.
11195         * gimple.c (gimple_queue_type_fixup): Remove.
11196         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
11197         (gimple_compatible_complete_and_incomplete_type_p): New function.
11198         (gimple_types_compatible_p): Adjust.
11199         (gimple_register_type): Remove type fixup code.
11200         (print_gimple_types_stats): Adjust.
11201         (free_gimple_type_tables): Likewise.
11202         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
11203         * tree-ssa.c (useless_type_conversion_p): Likewise.
11204
11205 2010-07-20  Richard Guenther  <rguenther@suse.de>
11206
11207         PR middle-end/44971
11208         PR middle-end/44988
11209         * tree-ssa.c (maybe_optimize_var): New function split out from ...
11210         (execute_update_addresses_taken): ... here.
11211         (non_rewritable_mem_ref_base): Likewise.
11212         (execute_update_addresses_taken): Do not iterate over all referenced
11213         vars but just all local decls and parms.
11214         Properly check call and asm arguments and rewrite call arguments.
11215
11216 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
11217
11218         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
11219         to top level.
11220         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
11221         definitions ...
11222         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
11223         New macro.
11224         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
11225
11226 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
11227
11228         * gengtype.c (start_root_entry): New function, split out from
11229         write_root.  Check whether V is null and raise an error if so.
11230         (write_field_root): Check for V being null.  Don't raise an error here;
11231         set V to null instead.
11232         (write_root): Update comment above function.  Use start_root_entry.
11233
11234 2010-07-19  Xinliang David Li  <davidxl@google.com>
11235
11236         PR testsuite/44932
11237         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
11238         def edges.
11239         (find_uninit_use): Add dump.
11240         (is_use_properly_guarded): Ditto.
11241         (warn_uninitialized_phi): Ditto.
11242         (execute_late_warn_uninitialized): Ditto.
11243
11244 2010-07-19  Richard Guenther  <rguenther@suse.de>
11245
11246         PR middle-end/44941
11247         * expr.c (emit_block_move_hints): Move zero size check first.
11248         Move asserts to more useful places.
11249         * calls.c (load_register_parameters): Check for zero size.
11250
11251 2010-07-19  Richard Henderson  <rth@redhat.com>
11252
11253         * tree-optimize.c (execute_all_early_local_passes): New.  Change
11254         cgraph_state here ...
11255         (execute_early_local_optimizations): ... not here.  Remove.
11256         (pass_early_local_passes, pass_all_early_optimizations): Update.
11257
11258 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
11259
11260         * postreload.c (reload_combine_closest_single_use): Ignore the
11261         number of uses for DEBUG_INSNs.
11262         (fixup_debug_insns): New static function.
11263         (reload_combine_recognize_const_pattern): Use it.  Don't let the
11264         main loop be affected by DEBUG_INSNs.
11265         Really disallow moving adds past a jump insn.
11266         (reload_combine_recognize_pattern): Don't update use_ruid here.
11267         (reload_combine_note_use): Do it here.
11268         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
11269
11270 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
11271
11272         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
11273         of a loop.
11274         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
11275
11276 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
11277
11278         * config/i386/darwin.h: Define darwin_emit_branch_islands.
11279         (TARGET_MACHO_BRANCH_ISLANDS): New.
11280         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
11281         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
11282         default value.
11283         * config/i386/i386.c (output_pic_addr_const): Do not emit
11284         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
11285         (x86_output_mi_thunk): Adjust symbol creation.
11286         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
11287         Remove out of date comment.
11288         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
11289         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11290         (DARWIN_GENERATE_ISLANDS): Ditto.
11291         (output_call):  Do not emit branch islands unless
11292         darwin_emit_branch_islands is set.
11293         * config/darwin.c: Declare darwin_emit_branch_islands.
11294         (machopic_indirect_data_reference): Do not emit unless
11295         darwin_emit_branch_islands is set.
11296         (darwin_override_options): Set darwin_emit_branch_islands
11297         where it is needed.
11298         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
11299
11300 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11301
11302         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11303         sse_runtime, sse2_runtime.
11304
11305 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
11306
11307         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
11308         low half of a single-register SCmode return value before ORing
11309         it with the high half.
11310         * config/mips/mips16.S (MERGE_GPRf): Likewise.
11311
11312 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11313
11314         PR target/44805
11315         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
11316         on all targets.
11317
11318 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
11319
11320         PR target/42235
11321         * postreload.c (reload_cse_move2add): Return bool, true if anything.
11322         changed.  All callers changed.
11323         (move2add_use_add2_insn): Likewise.
11324         (move2add_use_add3_insn): Likewise.
11325         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
11326         reload_combine.
11327         (RELOAD_COMBINE_MAX_USES): Bump to 16.
11328         (last_jump_ruid): New static variable.
11329         (struct reg_use): New members CONTAINING_MEM and RUID.
11330         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
11331         (reload_combine_split_one_ruid, reload_combine_split_ruids,
11332         reload_combine_purge_insn_uses, reload_combine_closest_single_use
11333         reload_combine_purge_reg_uses_after_ruid,
11334         reload_combine_recognize_const_pattern): New static functions.
11335         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
11336         is true for our reg and that we have available index regs.
11337         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
11338         callers changed.  Use them to initialize fields in struct reg_use.
11339         (reload_combine): Initialize last_jump_ruid.  Be careful when to
11340         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
11341         Call reload_combine_recognize_const_pattern.
11342         (reload_combine_note_store): Update REAL_STORE_RUID field.
11343
11344 2010-07-16  Jason Merrill  <jason@redhat.com>
11345
11346         * Makefile.in (opts-common.o): Depend on options.h.
11347
11348 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
11349
11350         * tree.c (build_common_builtin_nodes): Use build_function_type_list
11351         instead of build_function_type.
11352         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
11353         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
11354
11355 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
11356
11357         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
11358         do all the work.
11359         (rs6000_emit_int_cmove): Use function pointers for insn generation.
11360         Don't force values into registers unnecessarily.
11361         (output_isel): Assert that we're not given conditions we can't handle.
11362         Delete corresponding code.
11363         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
11364         scc_comparison_operator constraint.  Permit 0 for the consequent
11365         operand.  Permit any GPR for the alternative operand.
11366         (isel_unsigned_<mode>): Likewise.
11367
11368 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
11369
11370         PR target/44942
11371         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
11372         argument to const_tree.
11373         * config/i386/i386.c (function_arg_advance): If padding needs to be
11374         inserted before argument, increment cum->words by number of padding
11375         words as well.
11376         (contains_aligned_value_p): Change argument to const_tree.
11377         (ix86_function_arg_boundary): Change second argument to const_tree.
11378
11379 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
11380
11381         PR target/42235
11382         * function.c (record_hard_reg_sets): New static function.
11383         (assign_parm_setup_reg): If an optab for extending exists and the
11384         generated code clobbbers no hard regs, emit the insn directly and
11385         create a REG_EQUIV note.
11386
11387 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
11388
11389         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
11390         TREE_CHAIN.
11391         * c-typeck.c (push_init_level): Likewise.
11392         (process_init_element): Likewise.
11393
11394 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
11395
11396         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
11397         (integer_three_node): Add.
11398         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
11399         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
11400         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
11401         of call build_int_cst.
11402         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
11403         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
11404         (find_interesting_uses_address): Ditto.
11405         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
11406         * tree-eh.c (lower_eh_constructs_2): Ditto.
11407         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
11408         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
11409         * expmed.c (expand_divmod): Ditto.
11410         * tree-mudflap.c (mx_register_decls): Ditto.
11411         * varasm.c (array_size_for_constructor): Ditto.
11412         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
11413         * c-parser.c (c_parser_postfix_expression): Ditto.
11414
11415 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
11416
11417         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
11418         New static variables.
11419         (reload_combine_recognize_pattern): New static function, broken out
11420         of reload_combine.
11421         (reload_combine): Use it.  Only initialize first_index_reg and
11422         last_index_reg once.
11423
11424 2010-07-15  Richard Henderson  <rth@redhat.com>
11425
11426         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
11427         when done.
11428
11429 2010-07-15  Jan Hubicka  <jh@suse.cz>
11430
11431         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
11432         comdats for broken gold.
11433         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
11434
11435 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
11436
11437         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
11438
11439 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
11440
11441         * tree.h (DECL_CHAIN): Define.
11442         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
11443         * c-decl.c: Likewise.
11444         * c-parser.c: Likewise.
11445         * c-typeck.c: Likewise.
11446         * cfgexpand.c: Likewise.
11447         * cgraph.c: Likewise.
11448         * cgraphunit.c: Likewise.
11449         * combine.c: Likewise.
11450         * config/alpha/alpha.c: Likewise.
11451         * config/arm/arm.c: Likewise.
11452         * config/frv/frv.c: Likewise.
11453         * config/i386/i386.c: Likewise.
11454         * config/i386/winnt-cxx.c: Likewise.
11455         * config/ia64/ia64.c: Likewise.
11456         * config/iq2000/iq2000.c: Likewise.
11457         * config/mep/mep.c: Likewise.
11458         * config/mips/mips.c: Likewise.
11459         * config/pa/som.h: Likewise.
11460         * config/rs6000/rs6000.c: Likewise.
11461         * config/s390/s390.c: Likewise.
11462         * config/sh/sh.c: Likewise.
11463         * config/sh/symbian-cxx.c: Likewise.
11464         * config/sparc/sparc.c: Likewise.
11465         * config/spu/spu.c: Likewise.
11466         * config/stormy16/stormy16.c: Likewise.
11467         * config/vxworks.c: Likewise.
11468         * config/xtensa/xtensa.c: Likewise.
11469         * coverage.c: Likewise.
11470         * dbxout.c: Likewise.
11471         * dwarf2out.c: Likewise.
11472         * emit-rtl.c: Likewise.
11473         * expr.c: Likewise.
11474         * function.c: Likewise.
11475         * gimple-low.c: Likewise.
11476         * gimple-pretty-print.c: Likewise.
11477         * gimplify.c: Likewise.
11478         * integrate.c: Likewise.
11479         * ipa-inline.c: Likewise.
11480         * ipa-prop.c: Likewise.
11481         * ipa-split.c: Likewise.
11482         * ipa-struct-reorg.c: Likewise.
11483         * ipa-type-escape.c: Likewise.
11484         * langhooks.c: Likewise.
11485         * lto-cgraph.c: Likewise.
11486         * omp-low.c: Likewise.
11487         * stor-layout.c: Likewise.
11488         * tree-cfg.c: Likewise.
11489         * tree-complex.c: Likewise.
11490         * tree-dfa.c: Likewise.
11491         * tree-dump.c: Likewise.
11492         * tree-inline.c: Likewise.
11493         * tree-mudflap.c: Likewise.
11494         * tree-nested.c: Likewise.
11495         * tree-object-size.c: Likewise.
11496         * tree-pretty-print.c: Likewise.
11497         * tree-sra.c: Likewise.
11498         * tree-ssa-live.c: Likewise.
11499         * tree-ssa-loop-niter.c: Likewise.
11500         * tree-ssa-math-opts.c: Likewise.
11501         * tree-ssa-reassoc.c: Likewise.
11502         * tree-ssa-sccvn.c: Likewise.
11503         * tree-ssa-structalias.c: Likewise.
11504         * tree-tailcall.c: Likewise.
11505         * tree-vrp.c: Likewise.
11506         * tree.c: Likewise.
11507         * var-tracking.c: Likewise.
11508         * varasm.c: Likewise.
11509
11510 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11511
11512         PR target/44877
11513         * config/spu/spu.c (spu_expand_builtin_1): Allow references
11514         (as well as pointers) as argument to mask_for_load builtins.
11515
11516 2010-07-15  Richard Guenther  <rguenther@suse.de>
11517
11518         PR tree-optimization/44946
11519         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
11520         with accessing only padding properly.
11521
11522 2010-07-15  Jan Hubicka  <jh@suse.cz>
11523
11524         * ipa.c (function_and_variable_visibility): Variables marked as used
11525         should not be localized.
11526
11527 2010-07-15  Jan Hubicka  <jh@suse.cz>
11528
11529         * cgraph.c: Include lto-streamer.h
11530         (change_decl_assembler_name): Work when assembler name hash is at place.
11531         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
11532         be sure to rename it to avoid name clash.
11533         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
11534         Localize hidden symbols only when locally defined.
11535
11536 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
11537
11538         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
11539
11540 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
11541             Kevin F. Quinn  <kevquinn@gentoo.org>
11542
11543         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
11544         * common.opt: Add -Wtrampolines.
11545         * doc/invoke.texi: Add -Wtrampolines.
11546
11547 2010-07-15  Jie Zhang  <jie@codesourcery.com>
11548
11549         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
11550         cortex_a8_issue_ls.
11551
11552 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
11553
11554         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
11555         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
11556
11557 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11558
11559         * config/spu/spu.c (reg_names): Remove prototype.
11560         (call_used_regs): Likewise.
11561
11562 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
11563
11564         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
11565         "unused" with attribute "used".
11566         (__JCR_END__): Likewise.
11567         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
11568         "used" attribute.
11569         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
11570
11571 2010-07-14  Richard Guenther  <rguenther@suse.de>
11572
11573         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
11574         (maybe_fixup_decls): Likewise.
11575         (input_gimple_stmt): Do not fixup anything.
11576         * lto-streamer-out.c (output_gimple_stmt): Make sure all
11577         non-automatic variable uses are wrapped inside a MEM_REF.
11578
11579 2010-07-14  Richard Henderson  <rth@redhat.com>
11580
11581         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
11582         for functions.
11583         * varasm.c (assemble_variable): Remove early exit for functions;
11584         assert that we're given a variable.
11585
11586 2010-07-14  Jie Zhang  <jie@codesourcery.com>
11587
11588         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
11589         cortex_a8_default when neon_type is not none.
11590
11591 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
11592
11593         * lower-subreg.c (subreg_context): New static bitmap.
11594         (decompose_multiword_subregs): Allocate and free it.
11595         (find_decomposable_subregs): Set a bit in it for a register that
11596         occurs in a subreg that changes mode but not size.
11597         (can_decompose_p): Test it instead of non_decomposable_context.
11598
11599 2010-07-14  Richard Guenther  <rguenther@suse.de>
11600
11601         PR tree-optimization/44824
11602         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
11603         is_gimple_mem_ref_addr.
11604         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
11605         non-decl_address_invariant_p addresses.
11606
11607 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
11608
11609         * reload.c (find_reloads): Revert code to penalize small register
11610         classes that was brought in with the IRA merge.
11611
11612 2010-07-14  Richard Guenther  <rguenther@suse.de>
11613
11614         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
11615         as base of ARRAY_REFs.
11616
11617 2010-07-14  Richard Guenther  <rguenther@suse.de>
11618
11619         PR middle-end/44930
11620         * tree-pretty-print.c (do_niy): Do not print a newline.
11621
11622 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
11623
11624         * ira-int.h (struct ira_object): New.
11625         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
11626         (struct ira_allocno): Remove members min, max,
11627         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
11628         conflict_allocnos_num and conflict_vec_p.  Add new member object.
11629         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
11630         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
11631         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
11632         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
11633         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
11634         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
11635         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
11636         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
11637         an ira_object_t rather than ira_allocno_t.  All uses changed.
11638         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11639         contains a vector of ira_object_t; all uses changed.
11640         (ira_objects_num): Declare variable.
11641         (ira_create_allocno_object): Declare function.
11642         (ira_conflict_vector_profitable_p): Adjust prototype.
11643         (ira_allocate_conflict_vec): Renamed from
11644         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
11645         (ira_allocate_object_conflicts): Renamed from
11646         ira_allocate_allocno_conflicts; first arg now ira_object_t.
11647         (struct ira_object_iterator): New.
11648         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
11649         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
11650         to conflict_vec_p.  All uses changed.
11651         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
11652         Changed to take into account that conflicts are now tracked for
11653         objects.
11654         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
11655         Args changed to accept ira_object_t.  All uses changed.
11656         (allocnos_conflict_p): New static function.
11657         (collected_conflict_objects): Renamed from collected_allocno_objects;
11658         now a vector of ira_object_t.  All uses changed.
11659         (build_conflict_bit_table): Changed to take into account that
11660         conflicts are now tracked for objects.
11661         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
11662         (print_allocno_conflicts, ira_build_conflicts): Likewise.
11663         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
11664         setup_allocno_left_conflicts_size, allocno_reload_assign,
11665         fast_allocation): Likewise.
11666         * ira-lives.c (make_hard_regno_born, make_allocno_born)
11667         process_single_reg_class_operands, process_bb_node_lives): Likewise.
11668         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
11669         Likewise.
11670         * ira-build.c (ira_objects_num): New variable.
11671         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
11672         contains a vector of ira_object_t; all uses changed.
11673         (ira_object_id_map_vec): Corresponding change.
11674         (object_pool): New static variable.
11675         (initiate_allocnos): Initialize it.
11676         (finish_allocnos): Free it.
11677         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
11678         New functions.
11679         (ira_create_allocno): Don't set members that were removed.
11680         (ira_set_allocno_cover_class): Don't change conflict hard regs.
11681         (merge_hard_reg_conflicts): Changed to take into account that
11682         conflicts are now tracked for objects.
11683         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
11684         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
11685         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
11686         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
11687         setup_min_max_conflict_allocno_ids, ):  Likewise.
11688         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
11689         to ira_object_t; all callers changed.
11690         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
11691         to ira_object_t, all callers changed.
11692         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
11693         to ira_object_t, all callers changed.
11694         (conflict_check, curr_conflict_check_tick): Renamed from
11695         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
11696         changed.
11697         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
11698         arg changed to ira_object_t, all callers changed.
11699         (create_cap_allocno): Call ira_create_allocno_object.
11700         (finish_allocno): Free the corresponding object.
11701         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
11702         callers changed.  Adjusted for dealing with objects.
11703         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
11704         dealing with objects.
11705         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
11706
11707         * ira-int.h (struct live_range): Rename allocno member to object
11708         and change type to ira_object_t.
11709         (struct ira_object): New member live_ranges.
11710         (struct ira_allocno): Remove member live_ranges.
11711         (ALLOCNO_LIVE_RANGES): Remove.
11712         (OBJECT_LIVE_RANGES): New macro.
11713         (ira_create_live_range, ira_copy_live_range_list,
11714         ira_merge_live_range_list, ira_live_ranges_intersect_p,
11715         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
11716         * ira-build.c (ira_create_object): Initialize live ranges here.
11717         (ira_create_allocno): Not here.
11718         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
11719         changed to ira_object_t, all callers changed.
11720         (copy_live_range): Rename from copy_allocno_live_range, all callers
11721         changed.
11722         (ira_copy_live_range_list): Rename from
11723         ira_copy_allocno_live_range_list, all callers changed.
11724         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
11725         all callers changed.
11726         (ira_live_ranges_intersect_p): Rename from
11727         ira_allocno_live_ranges_intersect_p, all callers changed.
11728         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
11729         callers changed.
11730         (ira_finish_live_range_list): Rename from
11731         ira_finish_allocno_live_range_list, all callers changed.
11732         (change_object_in_range_list): Rename from change_allocno_in_range_list,
11733         last arg changed to ira_object_t, all callers changed.
11734         (finish_allocno): Changed to expect live ranges in the allocno's object.
11735         (move_allocno_live_ranges, copy_allocno_live_ranges,
11736         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
11737         ira_flattening, ira_build): Likewise.
11738         * ira-color.c (allocnos_have_intersected_live_ranges_p,
11739         slot_coalesced_allocno_live_ranges_intersect,
11740         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
11741         * ira-conflicts.c (build_conflict_bit_table): Likewise.
11742         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11743         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
11744         make_allocno_dead, create_start_finish_chains,
11745         remove_some_program_points_and_update_live_ranges,
11746         ira_debug_live_range_list): Likewise.
11747
11748         * ira-int.h (ira_object_conflict_iterator): Rename from
11749         ira_allocno_conflict_iterator.
11750         (ira_object_conflict_iter_init): Rename from
11751         ira_allocno_conflict_iter_init, second arg changed to
11752         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
11753         FOR_EACH_ALLOCNO_CONFLICT.
11754         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
11755         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
11756         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
11757         * ira-conflicts.c (print_allocno_conflicts): Likewise.
11758
11759 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
11760
11761         PR other/44874
11762         * tree-dump.c (dump_options): Add enumerate_locals entry.
11763         Add TDF_NOID exclusion to all entry.
11764         * tree-dump.h (dump_enumerated_decls): Declare.
11765         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
11766         Don't display type uid.
11767         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
11768         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
11769         * tree-ssa-live.c: Include gimple.h.
11770         (numbered_tree_d): New struct.
11771         (numbered_tree): New typedef.
11772         (DEF_VEC_O (numbered_tree): New.
11773         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
11774         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
11775         (dump_enumerated_decls): Likewise.
11776         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
11777         debug info and flag_dump_final_insns, call dump_enumerated_decls.
11778         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
11779         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
11780
11781 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
11782
11783         * expmed.h (MAX_BITS_PER_WORD): Move to...
11784         * defaults.h (MAX_BITS_PER_WORD): ...here.
11785
11786 2010-07-13  DJ Delorie  <dj@redhat.com>
11787
11788         * config/h8300/h8300.c (h8300_init_once): Default to
11789         -fstrict_volatile_bitfields.
11790
11791         * config/sh/sh.c (sh_override_options): Default to
11792         -fstrict_volatile_bitfields.
11793
11794         * config/rx/rx.c (rx_option_override): New.
11795
11796         * config/m32c/m32c.c (m32c_override_options): Default to
11797         -fstrict_volatile_bitfields.
11798
11799 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
11800
11801         * tree.h (build_function_call_expr): Delete.
11802         (build_call_expr_loc_array): New function.
11803         (build_call_expr_loc_vec): New function.
11804         * tree-flow.h (struct omp_region): Change type of ws_args field
11805         to a VEC.
11806         * builtins.c (build_function_call_expr): Delete.
11807         (build_call_expr_loc_array): New function.
11808         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
11809         (build_call_expr): Likewise.
11810         (build_call_expr_loc_vec): New function.
11811         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
11812         build_function_call_expr.
11813         * expr.c (emutls_var_address): Likewise.
11814         * varasm.c (emutls_common_1): Likewise.
11815         * omp-low.c (expand_omp_atomic_mutex): Likewise.
11816         (expand_omp_taskreg): Adjust for new type of region->ws_args.
11817         (get_ws_args_for): Return a VEC instead of a tree.
11818         (expand_parallel_call): Call build_call_expr_loc_vec instead of
11819         build_function_call_expr.
11820         * stor-layout.c (self_referential_size): Likewise.
11821
11822 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
11823
11824         PR testsuite/44701
11825         * recog.c (constrain_operands): Allow side-effects in memory
11826         operands if either < or > constraint is used, rather than if
11827         both < and > is used.
11828
11829 2010-07-13  Richard Guenther  <rguenther@suse.de>
11830
11831         PR middle-end/44911
11832         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
11833         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
11834         without name.
11835
11836 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
11837
11838         PR target/44761
11839         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
11840         to variable emited.
11841         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
11842         * config/sh/sh.md (symGOT_load): Likewise.
11843         (symDTPOFF2reg): Likewise.
11844         (symTPOFF2reg): Likewise.
11845
11846 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11847
11848         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
11849         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
11850
11851 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11852
11853         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
11854         explanation.
11855         Find ucontext_t * on Solaris 11.
11856         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
11857         Handle new Solaris 11 __sighndlr patterns.
11858
11859 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
11860
11861         PR debug/44901
11862         * vec.h (VEC_block_remove): Fix comment.
11863         * tree-ssa-live.c (remove_unused_locals): Don't use
11864         VEC_unordered_remove on local_decls, instead replace a single
11865         vector element in each iteration if at least one element had
11866         to be removed and VEC_truncate at the end.
11867         * omp-low.c (expand_omp_taskreg): Likewise.
11868
11869 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11870
11871         * c-decl.c (finish_function): Fix typo in comment.
11872
11873 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
11874
11875         PR bootstrap/44921
11876         * postreload.c (move2add_use_add3_insn): Silence gcc warning
11877         on min_regno.
11878
11879 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
11880
11881         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
11882         (simplify_stmt_using_ranges): Use it.
11883
11884 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11885
11886         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
11887         member.  Do not mark as GTY(()).
11888         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
11889         (spu_builtin_decls): New static variable.
11890         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
11891         (spu_init_builtins): Likewise.
11892         (spu_builtin_mul_widen_even): Likewise.
11893         (spu_builtin_mul_widen_odd): Likewise.
11894         (spu_builtin_mask_for_load): Likewise.
11895         (spu_builtin_vec_perm): Likewise.
11896         * config/spu/spu-c.c: Include "target.h".
11897         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
11898         of using spu_builtins[].fndecl.
11899
11900 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11901
11902         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
11903         imply -minterlink-mips16.
11904
11905 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11906
11907         * config/mips/mips.h (mips16_globals): Declare.
11908         (SWITCHABLE_TARGET): Define.
11909         * config/mips/mips.c: Include target-globals.h.
11910         (mips16_globals): New variable.
11911         (mips_set_mips16_mode): Use save_target_globals and
11912         restore_target_globals instead of target_reinit.
11913
11914 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11915
11916         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
11917         to say that the function can be called more than once.
11918         * target-globals.c (save_target_globals): Call init_reg_sets.
11919
11920 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11921
11922         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
11923         * bb-reorder.h: New file.
11924         * bb-reorder.c (default_target_bb_reorder): New variable.
11925         (this_target_bb_reorder): New conditional variable.
11926         (uncond_jump_length): Redefine as a macro.
11927         * target-globals.h (this_target_bb_reorder): Declare.
11928         (target_globals): Add a bb_reorder field.
11929         (restore_target_globals): Copy the bb_reorder field to
11930         this_target_bb-reorder.
11931         * target-globals.c: Include bb-reorder.h.
11932         (default_target_globals): Initialize the bb_reorder field.
11933         (save_target_globals): Likewise.
11934
11935 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11936
11937         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
11938         * gcse.h: New file.
11939         * gcse.c: Include gcse.h.
11940         (default_target_gcse): New variable.
11941         (this_target_gcse): New conditional variable.
11942         (can_copy): Redefine as a macro.
11943         (can_copy_init_p): New macro.
11944         (can_copy_p): Remove can_copy_init_p.
11945         * target-globals.h (this_target_gcse): Declare.
11946         (target_globals): Add a gcse field.
11947         (restore_target_globals): Copy the gcse field to this_target_gcse.
11948         * target-globals.c: Include gcse.h.
11949         (default_target_globals): Initialize the gcse field.
11950         (save_target_globals): Likewise.
11951
11952 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11953
11954         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
11955         and x_ira_prohibited_mode_move_regs_initialized_p.
11956         (ira_prohibited_mode_move_regs): Redefine as a macro.
11957         * ira.c (ira_prohibited_mode_move_regs): Delete.
11958         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
11959
11960 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11961
11962         * reload.h (target_reload): Add x_cached_reg_save_code and
11963         x_cached_reg_restore_code.
11964         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
11965         Redefine as macros.
11966
11967 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11968
11969         * Makefile.in (target-globals.o): Depend on builtins.h.
11970         * builtins.h: New file.
11971         * builtins.c: Include builtins.h.
11972         (default_target_builtins): New variable.
11973         (this_target_builtins): New conditional variable.
11974         (apply_args_mode, apply_result_mode): Redefine as macros.
11975         * target-globals.h (this_target_builtins): Declare.
11976         (target_globals): Add a builtins field.
11977         (restore_target_globals): Copy the builtins field to
11978         this_target_builtins.
11979         * target-globals.c: Include builtins.h.
11980         (default_target_globals): Initialize the builtins field.
11981         (save_target_globals): Likewise.
11982
11983 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11984
11985         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
11986         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
11987         from expmed.c.
11988         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
11989         (alg_hash, alg_hash_used_p): New macros.
11990         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
11991         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
11992         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
11993
11994 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11995
11996         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
11997         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
11998         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
11999         (this_op_costs, costs_classes): Redefine as macros.
12000         (record_reg_classes): Don't take op_costs as a parameter.
12001         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
12002         (scan_one_insn): Update call to record_operand_costs.
12003
12004 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12005
12006         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
12007         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
12008         (target_ira_int): New structure.
12009         (default_target_ira_int): Declare.
12010         (this_target_ira_int): Declare as a variable or define as a macro.
12011         (ira_reg_mode_hard_regset, ira_register_move_cost)
12012         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
12013         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
12014         (prohibited_class_mode_regs, ira_important_classes_num)
12015         (ira_important_classes, ira_reg_class_intersect)
12016         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
12017         (ira_reg_class_union): Redefine as macros.
12018         * ira.h (target_ira): New structure.
12019         (default_target_ira): Declare.
12020         (this_target_ira): Declare as a variable or define as a macro.
12021         (ira_available_class_regs, ira_hard_regno_cover_class)
12022         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
12023         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
12024         (ira_class_hard_regs_num): Redefine as macros.
12025         * ira.c (default_target_ira, default_target_ira_int): New variables.
12026         (this_target_ira, this_target_ira_int): New conditional variables.
12027         (ira_reg_mode_hard_regset, ira_memory_move_cost)
12028         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
12029         (ira_class_subset_p): Delete.
12030         (no_unit_alloc_regs): Redefine as a macro.
12031         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
12032         (ira_class_hard_regs_num, ira_class_hard_reg_index)
12033         (ira_available_class_regs): Delete.
12034         (alloc_reg_class_subclasses): Redefine as a macro.
12035         (ira_reg_class_cover_size, ira_reg_class_cover)
12036         (ira_important_classes_num, ira_important_classes)
12037         (ira_important_class_nums, ira_class_translate): Delete.
12038         (cover_class_order): Document the variable's lifetime.
12039         (reorder_important_classes): Don't set ira_important_class_nums.
12040         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
12041         (ira_reg_class_super_classes, ira_reg_class_union)
12042         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
12043         Delete.
12044         (setup_reg_class_nregs): Don't set ira_max_regs.
12045         (prohibited_class_mode_regs): Delete.
12046         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
12047         (target_globals): Add ira and ira_int fields.
12048         (restore_target_globals): Copy the ira field to this_target_ira
12049         and the ira_int field to this_target_ira_int.
12050         * target-globals.c: Include ira-int.h.
12051         (default_target_globals): Initialize the ira and ira_int fields.
12052         (save_target_globals): Likewise.
12053
12054 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12055
12056         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
12057         * cfgloop.h (target_cfgloop): New structure.
12058         (default_target_cfgloop): Declare.
12059         (this_target_cfgloop): Declare as a variable or define as a macro.
12060         (target_avail_regs, target_clobbered_regs, target_res_regs)
12061         (target_reg_cost, target_spill_cost): Redefine as macros.
12062         * cfgloopanal.c (default_target_cfgloop): New variable.
12063         (this_target_cfgloop): New conditional variable.
12064         (target_avail_regs, target_clobbered_regs, target_res_regs)
12065         (target_reg_cost, target_spill_cost): Delete.
12066         * target-globals.h (this_target_cfgloop): Declare.
12067         (target_globals): Add a cfgloop field.
12068         (restore_target_globals): Copy the cfgloop field to
12069         this_target_cfgloop.
12070         * target-globals.c: Include cfgloop.h.
12071         (default_target_globals): Initialize the cfgloop field.
12072         (save_target_globals): Likewise.
12073
12074 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12075
12076         * regs.h (target_regs): Add x_direct_load, x_direct_store and
12077         x_float_extend_from_mem.
12078         (direct_load, direct_store, float_extend_from_mem): New macros.
12079         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
12080
12081 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12082
12083         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
12084         (target-globals.o): Depend on $(LIBFUNCS_H).
12085         * libfuncs.h: Include hashtab.h.
12086         (libfunc_entry): Moved from optabs.c.
12087         (target_libfuncs): New structure.
12088         (default_target_libfuncs): Declare.
12089         (this_target_libfuncs): Declare as a variable or define as a macro.
12090         (libfunc_table): Redefine as a macro.
12091         * optabs.c (default_target_libfuncs): New variable.
12092         (this_target_libfuncs): New conditional variable.
12093         (libfunc_table): Delete.
12094         (libfunc_entry): Moved to optabs.h.
12095         (libfunc_hash): Redefine as a macro.
12096         (hash_libfunc, eq_libfunc): Fix comments.
12097         (init_optabs): Use libfunc_hash to detect cases where the function
12098         has already been called.  Clear the hash table instead of
12099         recreating it.
12100         * target-globals.h (this_target_libfuncs): Declare.
12101         (target_globals): Add a libfuncs field.
12102         (restore_target_globals): Copy the libfuncs field to
12103         this_target_libfuncs.
12104         * target-globals.c: Include libfuncs.h.
12105         (default_target_globals): Initialize the libfuncs field.
12106         (save_target_globals): Likewise.
12107
12108 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12109
12110         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
12111         in all dependency lists.
12112
12113 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12114
12115         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
12116         * optabs.h (target_optabs): New structure.
12117         (default_target_optabs): Declare.
12118         (this_target_optabs): Declare as a variable or define as a macro.
12119         (optab_table, convert_optab_table, direct_optab_table): Redefine
12120         as macros.
12121         * optabs.c (default_target_optabs): New variable.
12122         (this_target_optabs): New conditional variable.
12123         (optab_table, convert_optab_table, direct_optab_table): Delete.
12124         * target-globals.h (this_target_optabs): Declare.
12125         (target_globals): Add a optabs field.
12126         (restore_target_globals): Copy the optabs field to
12127         this_target_optabs.
12128         * target-globals.c: Include expr.h and optabs.h.
12129         (default_target_globals): Initialize the optabs field.
12130         (save_target_globals): Likewise.
12131
12132 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12133
12134         * flags.h (target_flagstate): Add x_flag_excess_precision.
12135         (flag_excess_precision): Redefine as a macro.
12136         * toplev.c (flag_excess_precision): Delete.
12137
12138 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12139
12140         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
12141         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
12142         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
12143         (no_caller_save_reg_set): Redefine as a macro.
12144         * reload.h (target_reload): Add x_caller_save_initialized_p and
12145         x_regno_save_mode.
12146         (caller_save_initialized_p): Redefine as a macro.
12147         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
12148         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
12149         (regno_save_mode): Redefine as a macro.
12150
12151 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12152
12153         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
12154         * expmed.h: New file.
12155         * expmed.c (default_target_costs): New variable.
12156         (this_target_costs): New conditional variable.
12157         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
12158         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
12159         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
12160         * target-globals.h (this_target_expmed): Declare.
12161         (target_globals): Add a expmed field.
12162         (restore_target_globals): Copy the expmed field to
12163         this_target_expmed.
12164         * target-globals.c: Include expmed.h.
12165         (default_target_globals): Initialize the expmed field.
12166         (save_target_globals): Likewise.
12167
12168 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12169
12170         * Makefile.in (target-globals.o): Depend on reload.h.
12171         * reload.h (target_reload): New structure.
12172         (default_target_reload): Declare.
12173         (this_target_reload): Declare as a variable or define as a macro.
12174         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
12175         * reload1.c (default_target_reload): New variable
12176         (this_target_reload): New conditional variable.
12177         (indirect_symref_ok, double_reg_address_ok): Delete.
12178         (spill_indirect_levels): Redefine as a macro.
12179         * target-globals.h (this_target_reload): Declare.
12180         (target_globals): Add a reload field.
12181         (restore_target_globals): Copy the reload field to
12182         this_target_reload.
12183         * target-globals.c: Include hard-reg-set.h.
12184         (default_target_globals): Initialize the reload field.
12185         (save_target_globals): Likewise.
12186
12187 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12188
12189         * rtl.h (target_rtl): Add x_static_reg_base_value.
12190         * alias.c (static_reg_base_value): Redefine as a macro.
12191
12192 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12193
12194         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
12195         (GTFILES): Remove reginfo.c.
12196         * rtl.h (target_rtl): Add x_top_of_stack.
12197         (top_of_stack): New macro.
12198         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
12199         (top_of_stack): Delete.
12200
12201 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12202
12203         * regs.h (target_regs): Add x_hard_regs_of_mode,
12204         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
12205         x_may_move_out_cost and x_last_mode_for_init_move_cost.
12206         (have_regs_of_mode, contains_reg_of_mode, move_cost)
12207         (may_move_in_cost, may_move_out_cost): Redefine as macros.
12208         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
12209         (may_move_in_cost, may_move_out_cost): Delete.
12210         (last_mode_for_init_move_cost): Redefine as a macro.
12211
12212 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12213
12214         * hard-reg-set.h (target_hard_regs): New structure.
12215         (default_target_hard_regs): Declare.
12216         (this_target_hard_regs): Declare as a variable or define as a macro.
12217         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
12218         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
12219         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
12220         (reg_class_size, reg_class_subclasses, reg_class_subunion)
12221         (reg_class_superunion, reg_names): Redefine as macros.
12222         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
12223         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
12224         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
12225         (reg_class_contents, reg_class_size, reg_class_subclasses)
12226         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
12227         (default_target_hard_regs): New variable
12228         (this_target_hard_regs, initial_call_really_used_regs)
12229         (initial_reg_alloc_order): New conditional variables.
12230         (initial_reg_names): New variable.
12231         (init_reg_sets): Assert that initial_call_really_used_regs,
12232         initial_reg_alloc_order and initial_reg_names
12233         are all the same size as their variable counterparts.  Use them to
12234         initialize those counterparts.
12235         * target-globals.h (this_target_hard_regs): Declare.
12236         (target_globals): Add a hard_regs field.
12237         (restore_target_globals): Copy the hard_regs field to
12238         this_target_hard_regs.
12239         * target-globals.c: Include hard-reg-set.h.
12240         (default_target_globals): Initialize the hard_regs field.
12241         (save_target_globals): Likewise.
12242
12243 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12244
12245         * Makefile.in (target-globals.o): Depend on $(RTL_H).
12246         * rtl.h (target_rtl): New structure.
12247         (default_target_rtl): Declare.
12248         (this_target_rtl): Declare as a variable or define as a macro.
12249         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
12250         Redefine as macros.
12251         * emit-rtl.c (default_target_rtl): New variable.
12252         (this_target_rtl): New conditional variable.
12253         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
12254         (return_address_pointer_rtx): Delete.
12255         (initial_regno_reg_rtx): New macro.
12256         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
12257         (init_emit_regs): Likewise.
12258         * target-globals.h (this_target_rtl): Declare.
12259         (target_globals): Add a rtl field.
12260         (restore_target_globals): Copy the rtl field to this_target_rtl.
12261         * target-globals.c: Include rtl.h.
12262         (default_target_globals): Initialize the rtl field.
12263         (save_target_globals): Likewise.
12264
12265 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12266
12267         * Makefile.in (target-globals.o): Depend on $(REGS_H).
12268         * regs.h (target_reg_modes): New structure.
12269         (default_target_reg_modes): Declare.
12270         (this_target_reg_modes): Declare as a variable or define as a macro.
12271         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
12272         * reginfo.c (default_target_reg_modes): New variable.
12273         (this_target_reg_modes): New conditional variable.
12274         (hard_regno_nregs, reg_raw_mode): Delete.
12275         * target-globals.h (this_target_regs): Declare.
12276         (target_globals): Add a regs field.
12277         (restore_target_globals): Copy the regs field to this_target_regs.
12278         * target-globals.c: Include regs.h.
12279         (default_target_globals): Initialize the regs field.
12280         (save_target_globals): Likewise.
12281
12282 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
12283
12284         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
12285         * doc/tm.texi: Regenerate.
12286         * Makefile.in (OBJS-common): Add target-globals.o.
12287         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
12288         and target-globals.h.
12289         (target-globals.o): New rule.
12290         (GTFILES): Include $(srcdir)/target-globals.h.
12291         * defaults.h (SWITCHABLE_TARGET): Define.
12292         * gengtype.c (open_base_files): Add target-globals.h to the
12293         list of includes.
12294         * target-globals.h: New file.
12295         * target-globals.c: Likewise.
12296
12297         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
12298         * flags.h (target_flag_state): New structure.
12299         (default_target_flag_state): Declare.
12300         (this_target_flag_state): Declare as a variable or define as a macro.
12301         (align_loops_log): Redefine as a macro.
12302         (align_loops_max_skip, align_jumps_log): Likewise.
12303         (align_jumps_max_skip, align_labels_log): Likewise.
12304         (align_labels_max_skip, align_functions_log): Likewise.
12305         * toplev.c (default_target_flag_state): New variable.
12306         (this_target_flag_state): New conditional variable.
12307         (align_loops_log): Delete.
12308         (align_loops_max_skip, align_jumps_log): Likewise.
12309         (align_jumps_max_skip, align_labels_log): Likewise.
12310         (align_labels_max_skip, align_functions_log): Likewise.
12311         * target-globals.h (this_target_flag_state): Declare.
12312         (target_globals): Add a flag_state field.
12313         (restore_target_globals): Copy the flag_state field to
12314         this_target_flag_state.
12315         * target-globals.c: Include flags.h.
12316         (default_target_globals): Initialize the flag_state field.
12317         (save_target_globals): Likewise.
12318
12319 2010-07-12  Jie Zhang  <jie@codesourcery.com>
12320
12321         * postreload.c (reg_symbol_ref[]): New.
12322         (move2add_use_add2_insn): New.
12323         (move2add_use_add3_insn): New.
12324         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
12325         (move2add_note_store): Likewise.
12326
12327 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
12328
12329         PR rtl-optimization/44752
12330         * genautomata.c (main): Don't emit an empty file even if there
12331         is no automaton.
12332
12333 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12334
12335         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
12336         ix86_solaris_return_in_memory.
12337         * config/i386-protos.h: Reflect this.
12338         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12339         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
12340         Move ...
12341         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
12342
12343 2010-07-12  Jie Zhang  <jie@codesourcery.com>
12344
12345         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
12346         align the stack when it's going to be saved.
12347
12348 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12349
12350         PR pch/14940
12351         * config/host-solaris.c (mmap_fixed): New function.
12352         (sol_gt_pch_get_address): Use it.
12353         (sol_gt_pch_use_address): Likewise.
12354
12355 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12356
12357         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12358         pentiumpro on Solaris 8 and 9/x86.
12359         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
12360         Document SSE/SSE2 support.
12361         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
12362
12363 2010-07-12  Andi Kleen  <ak@linux.intel.com>
12364
12365         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
12366         instead of gcc_assert to print better error message for multiple
12367         prevailing defs.
12368
12369 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
12370
12371         * config/i386/i386.c (ix86_asm_output_function_label): Change format
12372         string placeholder from 0x%x to %#x.
12373         (ix86_code_end): Use putc to output '\n'.
12374         (ix86_print_operand) <case ';'>: Use putc to output ';'.
12375
12376 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
12377
12378         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
12379         in directive -export.
12380
12381 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
12382
12383         * reginfo.h (reg_classes_intersect_p): Change arguments type to
12384         reg_class_t.
12385         * rtl.h (reg_classes_intersect_p): Adjust prototype.
12386
12387         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12388         Remove macros.
12389         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
12390         rs6000_memory_move_cost): Remove
12391         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
12392         TARGET_MEMORY_MOVE_COST): Define.
12393         (rs6000_register_move_cost): Make static. Change arguments type from
12394         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
12395         (rs6000_memory_move_cost): Make static. Change arguments type from
12396         'enum reg_class' to reg_class_t.
12397
12398 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
12399
12400         PR middle-end/42505
12401         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
12402         lookup code into....
12403         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
12404         new functions.
12405         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
12406         * cfgloopanal.c (target_clobbered_regs): Define.
12407         (init_set_costs): Initialize target_clobbered_regs.
12408         (estimate_reg_pressure_cost): Add call_p argument.  When true,
12409         adjust the number of available registers to exclude the
12410         call-clobbered registers.
12411         * cfgloop.h (target_clobbered_regs): Declare.
12412         (estimate_reg_pressure_cost): Adjust declaration.
12413         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
12414         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
12415         (determine_set_costs): Dump target_clobbered_regs.
12416         (loop_body_includes_call): New function.
12417         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
12418         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
12419         call_p flag through.
12420         (best_gain_for_invariant): Likewise.
12421         (find_invariants_to_move): Likewise.
12422         (move_single_loop_invariants): Likewise, using already-computed
12423         has_call field.
12424
12425 2010-07-10  Richard Guenther  <rguenther@suse.de>
12426             Joern Rennecke  <joern.rennecke@embecosm.com>
12427
12428         PR debug/44832
12429         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
12430         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
12431         unless they have DECL_IGNORED_P set.
12432
12433 2010-07-10  Richard Guenther  <rguenther@suse.de>
12434
12435         PR lto/44889
12436         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
12437         helper function.
12438         (gimple_types_compatible_p): Similar to pointed-to
12439         types allow and merge a mix of complete and incomplete aggregate.
12440         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
12441         (iterative_hash_gimple_type): Adjust for that.
12442
12443 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
12444
12445         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
12446
12447 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
12448
12449         PR objc/44140
12450         * config/darwin.c (output_objc_section_asm_op): Save and restore
12451         section when outputting ObjC section list.
12452
12453 2010-07-09  Jan Hubicka  <jh@suse.cz>
12454
12455         * lto-streamer-out.c (produce_symtab): Do not write alias
12456         cgraph/varpool nodes.
12457
12458 2010-07-09  Jan Hubicka  <jh@suse.cz>
12459
12460         * tree-inline.c (declare_return_variable): Fix ICE while
12461         inlining DECL_BY_VALUE function not in SSA form
12462
12463 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
12464
12465         PR tree-optimization/44576
12466         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
12467         New.  Pull out from is_loop_prefetching_profitable to implement
12468         the trip count to ahead ratio heuristic.
12469         (mem_ref_count_reasonable_p): New.  Pull out from
12470         is_loop_prefetching_profitable to implement the instruction to
12471         memory reference ratio heuristic.  Also consider not reasonable if
12472         the memory reference count is above a threshold (to avoid
12473         explosive compilation time.
12474         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
12475         is_loop_prefetching_profitable to implement the instruction to
12476         prefetch ratio heuristic.
12477         (is_loop_prefetching_profitable): Removed.
12478         (loop_prefetch_arrays): Distribute the cost analysis across the
12479         function to allow early exit of the prefetch analysis.
12480         is_loop_prefetching_profitable is splitted into three functions,
12481         with each one called as early as possible.
12482         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
12483         number of memory references in a loop is considered too many.
12484
12485 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
12486
12487         * reload.c (find_reloads): Don't clear badop if we have a winreg
12488         alternative, but not win, and the class only has fixed regs.
12489         * hard-reg-set.h (class_only_fixed_regs): Declare.
12490         * reginfo.c (class_only_fixed_regs): New array.
12491         (init_reg_sets_1): Initialize it.
12492         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
12493         discourage alternatives using the stack pointer.
12494
12495         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
12496
12497         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
12498
12499         * config/arm/arm.md (cbranchqi4): Fix array size.
12500         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
12501         calculating length.
12502
12503 2010-07-09  Richard Guenther  <rguenther@suse.de>
12504
12505         * gimple.c (struct type_fixup_s): New struct and VEC type.
12506         (gimple_register_type_fixups): New static global.
12507         (gimple_queue_type_fixup): New function.
12508         (gimple_types_compatible_p): Queue type fixups instead of
12509         applying them here.
12510         (gimple_register_type): Apply queued fixups for the
12511         canonical type.  Empty the type fixup queue.
12512
12513 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
12514
12515         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
12516         * configure: Regenerate.
12517         * config.in: Ditto.
12518
12519 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
12520             Denys Vlasenko  <dvlasenk@redhat.com>
12521             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12522
12523         PR tree-optimization/28632
12524         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
12525         (extract_range_from_binary_expr): Further optimize
12526         BIT_AND_EXPR and BIT_IOR_EXPR.
12527
12528 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
12529
12530         * tree-if-conv.c (fold_or_predicates): New.
12531         (add_to_predicate_list): Call it.
12532
12533 2010-07-09  Richard Guenther  <rguenther@suse.de>
12534
12535         PR middle-end/44890
12536         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
12537         if base is a pointer.
12538         * tree-cfg.c (verify_expr): Update MEM_REF checking.
12539
12540 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
12541
12542         PR target/44877
12543         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
12544         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
12545         builtin mask for load/store builtins.
12546
12547 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
12548
12549         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
12550         for "lock addl".
12551         * configure: Regenerate.
12552         * config/i386/i386.c (ix86_print_operand) <case ';'>:
12553         Remove TARGET_MACHO.
12554
12555 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
12556
12557         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
12558         default ISA flags.
12559         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
12560
12561 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
12562
12563         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
12564
12565 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12566
12567         * config/picochip/picochip.md (commsTestPort): Emit more
12568         efficient sequence for tstport instruction.
12569
12570 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
12571
12572         * config/i386/i386.c (ix86_veclib_handler): Make static.
12573
12574 2010-07-09  Richard Guenther  <rguenther@suse.de>
12575
12576         PR tree-optimization/44852
12577         * tree-ssa-alias.c: Include toplev.h for exact_log2.
12578         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
12579         in MEM_REF.
12580         (indirect_refs_may_alias_p): Likewise.
12581         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
12582
12583 2010-07-09  Richard Guenther  <rguenther@suse.de>
12584
12585         PR tree-optimization/44882
12586         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
12587         sets do conflict.
12588         (vectorizable_load): Likewise.
12589
12590 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
12591
12592         PR target/40657
12593         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
12594         All callers changed.
12595         Handle the case when we're called for the epilogue.
12596         (thumb_unexpanded_epilogue): Use it.
12597         (thumb1_expand_epilogue): Likewise.
12598
12599 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
12600
12601         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
12602         both ranges are range_int_cst_p with non-negative minimum,
12603         try harder to derive smaller range.
12604
12605 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12606
12607         * genrecog.c: Include diagnostic-core.h before toplev.h.
12608         * genoutput.c: Likewise.
12609         * genextract.c: Likewise.
12610         * genautomata.c: Likewise.
12611         * genemit.c: Likewise.
12612         * genpeep.c: Likewise.
12613         * genattrtab.c: Likewise.
12614         * genconditions.c: Likewise.
12615         * genpreds.c: Likewise.
12616
12617 2010-07-08  Andi Kleen  <ak@linux.intel.com>
12618
12619         * lto-section-in.c (lto_section_name): Add missing comma.
12620
12621 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
12622
12623         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
12624         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
12625         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
12626         (ia64_override_options): Rename to...
12627         (ia64_option_override): ... this one. Make static.
12628
12629 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12630
12631         PR middle-end/44843
12632         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
12633         pointed-to type of the offset in a MEM_REF to compute the alignment.
12634
12635 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
12636
12637         * final.c (final_scan_insn): Replace
12638         TARGET_UNWIND_INFO macro check by unwind_emit
12639         hook NULL check.
12640         * targhooks.c (default_unwind_emit): Removed.
12641         * targhooks.h (default_unwind_emit): Likewise.
12642         * target.def (unwind_emit): Set default value to NULL.
12643
12644         * config/i386/i386-protos.h (ix86_asm_output_function_label):
12645         New prototype.
12646         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
12647         for NULL fntype argument and allow 64-bit targets.
12648         (ix86_asm_output_function_label): New function.
12649         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
12650         (ix86_handle_fndecl_attribute): Likewise.
12651         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
12652         * doc/doc/tm.texi: Regenerated.
12653         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
12654         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
12655         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
12656         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
12657         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12658         * config/elfos.h: Likewise.
12659         * config/i386/cygming.h: Likewise.
12660         * config/netbsd-aout.h: Likewise.
12661         * config/openbsd.h: Likewise.
12662         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
12663         by ix86_asm_output_function_label function call.
12664         * varasm.c (assemble_start_function): Use
12665         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
12666
12667 2010-07-08  Jan Hubicka  <jh@suse.cz>
12668
12669         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
12670         New function.
12671         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
12672         Declare.
12673         * ipa-cp.c (ipcp_estimate_growth): Use it.
12674         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
12675         Likewise.
12676
12677 2010-07-08  Jan Hubicka  <jh@suse.cz>
12678
12679         * tree-inline.c (declare_return_variable): Allocate annotation for new
12680         temporary.
12681
12682 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
12683
12684         PR tree-optimization/44710
12685         * tree-if-conv.c (parse_predicate): New.
12686         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
12687         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
12688
12689 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
12690
12691         * common.opt (ftree-loop-if-convert): New flag.
12692         * doc/invoke.texi (ftree-loop-if-convert): Documented.
12693         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
12694         when flag_tree_loop_if_convert is set.
12695
12696 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
12697
12698         * config/i386/i386.c: Use short syntax for function calls
12699         through function pointers.
12700         * config/i386/i386.md: Ditto.
12701
12702 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12703
12704         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
12705
12706 2010-07-08  Richard Guenther  <rguenther@suse.de>
12707
12708         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
12709         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
12710
12711 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
12712
12713         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
12714         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
12715         (loc_list_from_tree): Likewise.
12716         (output_loc_operands): Handle outputting DW_OP_const[48]u
12717         with loc->dtprel set.
12718         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
12719
12720 2010-07-08  Jan Hubicka  <jh@suse.cz>
12721
12722         * ipa.c: Include pointer-set.h
12723         (cgraph_externally_visible_p): New attribute ALIASED;
12724         when in LTO, hidden symbols are local unless they are aliased.
12725         (function_and_variable_visibility): Compute aliased nodes;
12726         handle LTO and hidden symbol on functions and vars.
12727         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
12728         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
12729
12730 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12731
12732         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12733         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12734         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12735         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12736         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12737         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
12738         (ix86_gen_probe_stack_range): Likewise.
12739         (override_options): Set them.
12740         (ix86_target_stack_probe): New function.
12741         (ix86_compute_frame_layout): Force use of push instructions to
12742         save registers if stack checking with probes is enabled.
12743         (get_scratch_register_on_entry): New function.
12744         (release_scratch_register_on_entry): Likewise.
12745         (ix86_adjust_stack_and_probe): Likewise.
12746         (output_adjust_stack_and_probe): Likewise.
12747         (ix86_emit_probe_stack_range): Likewise.
12748         (output_probe_stack_range): Likewise.
12749         (ix86_expand_prologue): Emit stack checking code if static built-in
12750         stack checking is enabled.
12751         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
12752         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
12753         (output_adjust_stack_and_probe): Likewise.
12754         (output_probe_stack_range): Likewise.
12755         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12756         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
12757         TARGET_STACK_PROBE.
12758         (allocate_stack_worker_64): Likewise.
12759         (allocate_stack): Likewise.
12760         (adjust_stack_and_probe): New insn.
12761         (probe_stack_range): Likewise.
12762
12763 2010-07-08  Richard Guenther  <rguenther@suse.de>
12764
12765         PR tree-optimization/44831
12766         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
12767         a MEM_REF preserving TBAA info of the original dereference.
12768         Dereference the original pointer if the address is not invariant.
12769         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
12770         at least one invariant address that we are going to dereference.
12771
12772 2010-07-08  Richard Guenther  <rguenther@suse.de>
12773
12774         PR tree-optimization/44861
12775         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
12776         information when building MEM_REFs.
12777         (vectorizable_load): Likewise.
12778         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
12779
12780 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12781
12782         * config/sol2-c.c: Do not include diagnostic-core.h.
12783
12784 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12785
12786         PR bootstrap/44768
12787         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
12788         with respect to current_function_decl. Pass decl of the function.
12789         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
12790         * ipa-inline.c (compute_inline_parameters): Pass decl to
12791         estimated_stack_frame_size.
12792
12793 2010-07-08  Richard Guenther  <rguenther@suse.de>
12794
12795         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
12796         New function.
12797         (valueize_refs): Call it.
12798
12799 2010-07-08  Richard Guenther  <rguenther@suse.de>
12800
12801         PR rtl-optimization/44838
12802         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
12803         SSA form do not use pointer equivalence.
12804
12805 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12806
12807         * dwarf2out.c (AT_linkage_name): Delete.
12808         (add_linkage_attr): New function.
12809         (add_linkage_name): Call it to emit the linkage attribute.
12810         (dwarf2out_finish): Likewise.
12811         (move_linkage_attr): Explicitly accept both attribute variants.
12812
12813 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12814
12815         * toplev.h: Do not include diagnostic-core.h.
12816         Include diagnostic-core.h in every file that includes toplev.h.
12817         * c-tree.h: Do not include toplev.h.
12818         * pretty-print.h: Update comment.
12819         * Makefile.in: Update dependencies.
12820         * alias.c: Include diagnostic-core.h in every file that includes
12821         toplev.h.
12822         * attribs.c: Likewise.
12823         * auto-inc-dec.c: Likewise.
12824         * bb-reorder.c: Likewise.
12825         * bt-load.c: Likewise.
12826         * caller-save.c: Likewise.
12827         * calls.c: Likewise.
12828         * cfg.c: Likewise.
12829         * cfganal.c: Likewise.
12830         * cfgbuild.c: Likewise.
12831         * cfgcleanup.c: Likewise.
12832         * cfghooks.c: Likewise.
12833         * cfgloop.c: Likewise.
12834         * combine.c: Likewise.
12835         * config/alpha/alpha.c: Likewise.
12836         * config/arc/arc.c: Likewise.
12837         * config/arm/arm.c: Likewise.
12838         * config/arm/pe.c: Likewise.
12839         * config/avr/avr.c: Likewise.
12840         * config/bfin/bfin.c: Likewise.
12841         * config/cris/cris.c: Likewise.
12842         * config/crx/crx.c: Likewise.
12843         * config/darwin-c.c: Likewise.
12844         * config/darwin.c: Likewise.
12845         * config/fr30/fr30.c: Likewise.
12846         * config/frv/frv.c: Likewise.
12847         * config/h8300/h8300.c: Likewise.
12848         * config/host-darwin.c: Likewise.
12849         * config/i386/i386.c: Likewise.
12850         * config/i386/netware.c: Likewise.
12851         * config/i386/nwld.c: Likewise.
12852         * config/i386/winnt-cxx.c: Likewise.
12853         * config/i386/winnt-stubs.c: Likewise.
12854         * config/i386/winnt.c: Likewise.
12855         * config/ia64/ia64-c.c: Likewise.
12856         * config/ia64/ia64.c: Likewise.
12857         * config/iq2000/iq2000.c: Likewise.
12858         * config/lm32/lm32.c: Likewise.
12859         * config/m32c/m32c-pragma.c: Likewise.
12860         * config/m32c/m32c.c: Likewise.
12861         * config/m32r/m32r.c: Likewise.
12862         * config/m68hc11/m68hc11.c: Likewise.
12863         * config/m68k/m68k.c: Likewise.
12864         * config/mcore/mcore.c: Likewise.
12865         * config/mep/mep-pragma.c: Likewise.
12866         * config/mep/mep.c: Likewise.
12867         * config/mmix/mmix.c: Likewise.
12868         * config/mn10300/mn10300.c: Likewise.
12869         * config/moxie/moxie.c: Likewise.
12870         * config/pa/pa.c: Likewise.
12871         * config/pdp11/pdp11.c: Likewise.
12872         * config/picochip/picochip.c: Likewise.
12873         * config/rs6000/rs6000-c.c: Likewise.
12874         * config/rs6000/rs6000.c: Likewise.
12875         * config/rx/rx.c: Likewise.
12876         * config/s390/s390.c: Likewise.
12877         * config/score/score.c: Likewise.
12878         * config/score/score3.c: Likewise.
12879         * config/score/score7.c: Likewise.
12880         * config/sh/sh.c: Likewise.
12881         * config/sh/symbian-base.c: Likewise.
12882         * config/sh/symbian-c.c: Likewise.
12883         * config/sh/symbian-cxx.c: Likewise.
12884         * config/sol2-c.c: Likewise.
12885         * config/sol2.c: Likewise.
12886         * config/sparc/sparc.c: Likewise.
12887         * config/spu/spu.c: Likewise.
12888         * config/stormy16/stormy16.c: Likewise.
12889         * config/v850/v850-c.c: Likewise.
12890         * config/v850/v850.c: Likewise.
12891         * config/vax/vax.c: Likewise.
12892         * config/vxworks.c: Likewise.
12893         * config/xtensa/xtensa.c: Likewise.
12894         * convert.c: Likewise.
12895         * cse.c: Likewise.
12896         * cselib.c: Likewise.
12897         * dbgcnt.c: Likewise.
12898         * dbxout.c: Likewise.
12899         * ddg.c: Likewise.
12900         * dominance.c: Likewise.
12901         * emit-rtl.c: Likewise.
12902         * explow.c: Likewise.
12903         * expmed.c: Likewise.
12904         * fixed-value.c: Likewise.
12905         * fold-const.c: Likewise.
12906         * fwprop.c: Likewise.
12907         * gcse.c: Likewise.
12908         * ggc-common.c: Likewise.
12909         * ggc-page.c: Likewise.
12910         * ggc-zone.c: Likewise.
12911         * gimple-low.c: Likewise.
12912         * gimplify.c: Likewise.
12913         * graph.c: Likewise.
12914         * haifa-sched.c: Likewise.
12915         * ifcvt.c: Likewise.
12916         * implicit-zee.c: Likewise.
12917         * integrate.c: Likewise.
12918         * ira-build.c: Likewise.
12919         * ira-color.c: Likewise.
12920         * ira-conflicts.c: Likewise.
12921         * ira-costs.c: Likewise.
12922         * ira-lives.c: Likewise.
12923         * ira.c: Likewise.
12924         * lists.c: Likewise.
12925         * loop-doloop.c: Likewise.
12926         * loop-iv.c: Likewise.
12927         * lto-opts.c: Likewise.
12928         * lto-symtab.c: Likewise.
12929         * main.c: Likewise.
12930         * modulo-sched.c: Likewise.
12931         * optabs.c: Likewise.
12932         * params.c: Likewise.
12933         * plugin.c: Likewise.
12934         * postreload-gcse.c: Likewise.
12935         * postreload.c: Likewise.
12936         * predict.c: Likewise.
12937         * profile.c: Likewise.
12938         * real.c: Likewise.
12939         * regcprop.c: Likewise.
12940         * reginfo.c: Likewise.
12941         * regmove.c: Likewise.
12942         * reorg.c: Likewise.
12943         * resource.c: Likewise.
12944         * rtl.c: Likewise.
12945         * rtlanal.c: Likewise.
12946         * sched-deps.c: Likewise.
12947         * sched-ebb.c: Likewise.
12948         * sched-rgn.c: Likewise.
12949         * sdbout.c: Likewise.
12950         * sel-sched-dump.c: Likewise.
12951         * sel-sched-ir.c: Likewise.
12952         * simplify-rtx.c: Likewise.
12953         * stmt.c: Likewise.
12954         * stor-layout.c: Likewise.
12955         * store-motion.c: Likewise.
12956         * targhooks.c: Likewise.
12957         * tree-cfg.c: Likewise.
12958         * tree-cfgcleanup.c: Likewise.
12959         * tree-dump.c: Likewise.
12960         * tree-eh.c: Likewise.
12961         * tree-inline.c: Likewise.
12962         * tree-nomudflap.c: Likewise.
12963         * tree-object-size.c: Likewise.
12964         * tree-optimize.c: Likewise.
12965         * tree-outof-ssa.c: Likewise.
12966         * tree-phinodes.c: Likewise.
12967         * tree-profile.c: Likewise.
12968         * tree-ssa-ccp.c: Likewise.
12969         * tree-ssa-coalesce.c: Likewise.
12970         * tree-ssa-live.c: Likewise.
12971         * tree-ssa-loop-niter.c: Likewise.
12972         * tree-ssa-loop-prefetch.c: Likewise.
12973         * tree-ssa-loop.c: Likewise.
12974         * tree-ssa-structalias.c: Likewise.
12975         * tree-ssa-uninit.c: Likewise.
12976         * tree-ssa.c: Likewise.
12977         * tree-vect-data-refs.c: Likewise.
12978         * tree-vect-loop-manip.c: Likewise.
12979         * tree-vect-loop.c: Likewise.
12980         * tree-vect-patterns.c: Likewise.
12981         * tree-vect-stmts.c: Likewise.
12982         * tree-vrp.c: Likewise.
12983         * varasm.c: Likewise.
12984         * vec.c: Likewise.
12985         * web.c: Likewise.
12986         * xcoffout.c: Likewise.
12987
12988 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
12989
12990         * gengtype.c (write_field_root): New function.
12991         (write_root): Use it.
12992
12993 2010-07-07  Wei Guozhi  <carrot@google.com>
12994
12995         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
12996         of lowest bits to lshift/compare): Add a missing line.
12997
12998 2010-07-07  Wei Guozhi  <carrot@google.com>
12999
13000         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
13001         of lowest bits to lshift/compare): New.
13002
13003 2010-07-07  Tom Tromey  <tromey@redhat.com>
13004
13005         * doc/tm.texi: Update.
13006         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
13007         Add @hook.
13008         * target.def (want_debug_pub_sections): New hook.
13009         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
13010         * dwarf2out.c (add_pubname_string): Check
13011         targetm.want_debug_pub_sections.
13012         (add_pubname): Likewise.
13013         (add_pubtype): Likewise.
13014
13015 2010-07-07  Jie Zhang  <jie@codesourcery.com>
13016
13017         * genautomata.c (output_automata_list_min_issue_delay_code):
13018         Correctly decompress min_issue_delay.
13019
13020 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
13021
13022         PR rtl-optimization/44404
13023         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
13024         possible, use reg_overlap_mentioned_p instead.
13025
13026 2010-07-07  Duncan Sands  <baldrick@free.fr>
13027
13028         PR middle-end/41355
13029         * tree.c (build_function_type_skip_args): Copy the original type using
13030         build_distinct_type_copy rather than copy_node.
13031
13032 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13033
13034         PR target/44850
13035         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
13036         revision 161876.
13037         (ix86_expand_prologue): Likewise.
13038         (ix86_handle_fndecl_attribute): Likewise.
13039         (ix86_asm_declare_function_name): Likewise.
13040         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13041         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13042         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
13043         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
13044         * doc/extend.texi: Likewise.
13045
13046 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13047
13048         PR target/44844
13049         * config/i386/i386.md (rdrand<mode>): Changed to expand to
13050         retry if the carry flag isn't valid.
13051         (rdrand<mode>_1): New.
13052
13053 2010-07-07  Richard Guenther  <rguenther@suse.de>
13054
13055         PR middle-end/44790
13056         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
13057         for expanding the constant offset for MEM_REFs.
13058
13059 2010-07-07  Richard Guenther  <rguenther@suse.de>
13060
13061         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
13062         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
13063         * gimple.h (is_gimple_operand): Remove.
13064         * gimple.c (is_gimple_operand): Likewise.
13065         (walk_gimple_op): Fix wi->val_only setting for calls.
13066         * tree-cfg.c (verify_gimple_call): Fix argument validation.
13067         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
13068         invalid gimple calls.
13069
13070 2010-07-06  Jan Hubicka  <jh@suse.cz>
13071
13072         * lto-cgraph.c (output_cgraph): Add missing declaration.
13073
13074 2010-07-06  Jan Hubicka  <jh@suse.cz>
13075
13076         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
13077         partition.
13078
13079 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
13080
13081         * doc/gimple.texi (GIMPLE_DEBUG): Document.
13082         * doc/rtl.texi (Debug Information): New node.
13083         (NOTE_INSN_VAR_LOCATION): Document.
13084         (debug_insn): Likewise.
13085         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
13086
13087 2010-07-07  Jan Hubicka  <jh@suse.cz>
13088
13089         With parts by Richard Guenther.
13090
13091         PR middle-end/44813
13092         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
13093         for functions passed by reference.
13094         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
13095         in memory when passed by reference.
13096         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
13097         beggining.
13098         * ipa-split.c (split_function): Cleanup way return value is passed;
13099         handle SSA DECL_BY_REFERENCE retvals.
13100         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
13101         DECL_BY_REFERENCE is set.
13102         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
13103         find_what_p_points_to): Handle RESULT_DECL.
13104         * tree-inline.c (declare_return_variable): Get new entry_block argument;
13105         when passing by reference ensure that RESULT_DECL is gimple_val.
13106         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
13107         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
13108
13109 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
13110
13111         PR rtl-optimization/44787
13112         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
13113         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
13114
13115 2010-07-06  Jan Hubicka  <jh@suse.cz>
13116
13117         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
13118         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
13119         with body can prevail.
13120         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
13121         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
13122         * cgraph.c (cgraph_get_node_or_alias): New function.
13123         * cgraph.h (cgraph_get_node_or_alias): Declare.
13124
13125 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
13126
13127         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
13128         support.
13129         (ix86_expand_prologue): Likewise.
13130         (ix86_handle_fndecl_attribute): Likewise.
13131         (ix86_asm_declare_function_name): New function for
13132         ASM_DECLARE_FUNCTION_NAME.
13133         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
13134         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
13135         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
13136         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
13137         * doc/extend.texi: Adjust documentation about ms_hook_prologue
13138         attribute.
13139
13140 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
13141
13142         * config/i386/i386.md (immediate_operand): New mode attribute.
13143
13144         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
13145         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
13146         using P mode iterator.
13147         (pro_epilogue_adjust_stack_di_2): Rename from
13148         pro_epilogue_adjust_stack_rex64_2.
13149
13150         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
13151
13152 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
13153
13154         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
13155         through gen_mov_insv_1 function pointer.
13156         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
13157         gen_truncxf<mode>2 through gen_truncxf function pointer.
13158         (remainder<mode>3): Ditto.
13159         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
13160         (allocate_stack): Call gen_allocate_stack_worker_64 or
13161         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
13162         function pointer.
13163         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
13164         function pointer.
13165
13166 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
13167
13168         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
13169         operand constraint instead of <r><i>m.
13170
13171 2010-07-06  Richard Guenther  <rguenther@suse.de>
13172
13173         PR middle-end/44828
13174         * convert.c (convert_to_integer): Watch out for overflowing
13175         MULT_EXPR as well.
13176
13177 2010-07-05  Jan Hubicka  <jh@suse.cz>
13178
13179         * lto-streamer.c (write_symbol_vec): Rename to ...
13180         (write_symbol) ... this one; write only symbol given and when
13181         present in cache. Sanity check that what is defined is present
13182         in cgraph/varpool with body/finalized decl.
13183         (write_symbols_of_kind): Remove.
13184         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
13185         pairs to produce symtab.
13186         (produce_asm_for_decls): Update call of produce_symtab; don't do so
13187         when doing WPA streaming.
13188
13189 2010-07-05  Jan Hubicka  <jh@suse.cz>
13190
13191         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
13192         function is still available to fold into.
13193
13194 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
13195
13196         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
13197         * function.h (struct_function): Change type of local_decls field
13198         to a VEC.
13199         (add_local_decl): New function.
13200         (FOR_EACH_LOCAL_DECL): New macro.
13201         * cfgexpand.c (init_vars_expansion): Adjust for new type of
13202         cfun->local_decls.
13203         (estimated_stack_frame_size): Likewise.
13204         (expand_used_vars): Likewise.
13205         * cgraphbuild.c (build_cgraph_edges): Likewise.
13206         * function.c (instantiate_decls_1): Likewise.
13207         * ipa-struct-reorg.c (build_data_structure): Likewise.
13208         * ipa-type-escape.c (analyze_function): Likewise.
13209         * lto-streamer-in.c (input_function): Likewise.
13210         * lto-streamer-out.c (output_function): Likewise.
13211         * tree-ssa-live.c (remove_unused_locals): Likewise.
13212         * tree.c (free_lang_data_in_decl): Likewise.
13213         (find_decls_types_in_node): Likewise.
13214         * omp-low.c (remove_exit_barrier): Likewise.
13215         (expand_omp_taskreg): Likewise.
13216         (list2chain): Rename to...
13217         (vec2chain): ...this.  Adjust.
13218         * cgraphunit.c (assemble_thunk): Call add_local_decl.
13219         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
13220         * gimple-low.c (record_vars_into): Likewise.
13221         * tree-inline.c (remap_decls): Likewise.
13222         (declare_return_variable): Likewise.
13223         (declare_inline_vars): Likewise.
13224         (copy_forbidden): Adjust for new type of cfun->local_decls.
13225         (add_local_variables): New function.
13226         (expand_call_inline): Call it.
13227         (tree_function_versioning): Likewise.
13228
13229 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13230
13231         AVX Programming Reference (June, 2010)
13232         * config/i386/cpuid.h (bit_F16C): New.
13233         (bit_RDRND): Likewise.
13234         (bit_FSGSBASE): Likewise.
13235
13236         * config/i386/i386-builtin-types.def: Add
13237         "DEF_FUNCTION_TYPE (UINT16)", function types for
13238         float16 <-> float conversions and
13239         "DEF_FUNCTION_TYPE (VOID, UINT64)".
13240
13241         * config/i386/i386-c.c (ix86_target_macros_internal): Support
13242         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
13243         OPTION_MASK_ISA_F16C.
13244
13245         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
13246         (OPTION_MASK_ISA_RDRND_SET): Likewise.
13247         (OPTION_MASK_ISA_F16C_SET): Likewise.
13248         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
13249         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
13250         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
13251         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
13252         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
13253         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
13254         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
13255         (override_options): Handle them.
13256         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
13257         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
13258         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
13259         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
13260         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
13261         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
13262         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
13263         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
13264         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
13265         (bdesc_args): Likewise.
13266         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
13267         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
13268         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
13269         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
13270         Handle non-memory store.
13271
13272         * config/i386/i386.h (TARGET_FSGSBASE): New.
13273         (TARGET_RDRND): Likewise.
13274         (TARGET_F12C): Likewise.
13275
13276         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
13277         (UNSPEC_VCVTPS2PH): Likewise.
13278         (UNSPECV_RDFSBASE): Likewise.
13279         (UNSPECV_RDGSBASE): Likewise.
13280         (UNSPECV_WRFSBASE): Likewise.
13281         (UNSPECV_WRGSBASE): Likewise.
13282         (UNSPECV_RDRAND): Likewise.
13283         (rdfsbase<mode>): Likewise.
13284         (rdgsbase<mode>): Likewise.
13285         (wrfsbase<mode>): Likewise.
13286         (wrgsbase<mode>): Likewise.
13287         (rdrand<mode>): Likewise.
13288
13289         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
13290
13291         * config/i386/immintrin.h (_rdrand_u16): New.
13292         (_rdrand_u32): Likewise.
13293         (_readfsbase_u32): Likewise.
13294         (_readfsbase_u64): Likewise.
13295         (_readgsbase_u32): Likewise.
13296         (_readgsbase_u64): Likewise.
13297         (_writefsbase_u32): Likewise.
13298         (_writefsbase_u64): Likewise.
13299         (_writegsbase_u32): Likewise.
13300         (_writegsbase_u64): Likewise.
13301         (_rdrand_u64): Likewise.
13302         (_cvtsh_ss): Likewise.
13303         (_mm_cvtph_ps): Likewise.
13304         (_mm256_cvtph_ps): Likewise.
13305         (_cvtss_sh): Likewise.
13306         (_mm_cvtps_ph): Likewise.
13307         (_mm256_cvtps_ph): Likewise.
13308
13309         * config/i386/sse.md (vcvtph2ps): New.
13310         (*vcvtph2ps_load): Likewise.
13311         (vcvtph2ps256): Likewise.
13312         (vcvtps2ph): Likewise.
13313         (*vcvtps2ph): Likewise.
13314         (*vcvtps2ph_store): Likewise.
13315         (vcvtps2ph256): Likewise.
13316
13317         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
13318
13319         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
13320
13321 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
13322
13323         PR bootstrap/44512
13324         * genenums.c (main): Output include of insn-constants.h
13325         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
13326
13327 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
13328
13329         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
13330         (override_options): Initialize it.
13331         (ix86_expand_prologue): Use it.
13332
13333 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
13334
13335         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
13336
13337 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
13338
13339         * double-int.h (fit_double_type): Remove declaration.
13340         * double-int.c (fit_double_type): Remove function.
13341         * tree.h (int_fits_type_p): Adjust prototype.
13342         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
13343         instead of fit_double_type.
13344         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
13345         instead of fit_double_type and build_int_cst_wide.
13346         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
13347         instead of fit_double_type and build_int_cst_wide.
13348         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
13349         of fit_double_type.
13350
13351 2010-07-05  Jan Hubicka  <jh@suse.cz>
13352
13353         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
13354         in_other_partition.
13355         * lto-cgraph.c (referenced_from_other_partition_p,
13356         reachable_from_other_partition_p): Use in_other_partition flags.
13357         (output_node, output_varpool_node): COMDAT nodes always have private
13358         copies and thus are never used from other partition.
13359
13360 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
13361
13362         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13363         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
13364         * config/ia64/ia64.c Include reload.h.
13365         (ia64_memory_move_cost): New function.
13366         (TARGET_MEMORY_MOVE_COST): Define.
13367         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
13368         memory_move_cost.
13369
13370 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
13371
13372         PR middle-end/42505
13373         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
13374         comments about cost model.
13375         (try_add_cand_for):  Add second strategy for choosing initial set
13376         based on original IVs, controlled by ORIGINALP argument.
13377         (get_initial_solution): Add ORIGINALP argument.
13378         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
13379         (find_optimal_iv_set): Try two different strategies for choosing
13380         the IV set, and return the one with lower cost.
13381
13382 2010-07-05  Richard Guenther  <rguenther@suse.de>
13383
13384         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
13385
13386 2010-07-05  Richard Guenther  <rguenther@suse.de>
13387
13388         * tree.c (reference_alias_ptr_type): New function.
13389         * tree.h (reference_alias_ptr_type): Declare.
13390         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
13391         allow non-TARGET_MEM_REF new refs.
13392         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
13393         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
13394         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
13395         (create_mem_ref): Get alias pointer type.  Adjust calls to
13396         create_mem_ref_raw.
13397         (maybe_fold_tmr): Likewise.
13398         * tree-flow.h (create_mem_ref): Adjust prototype.
13399
13400 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
13401
13402         PR c++/44808
13403         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
13404         *from_p is VAR_DECL.
13405
13406 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
13407
13408         * tree.h (build_call_list): Remove.
13409         * tree.c (build_call_list): Remove.
13410
13411 2010-07-05  Richard Guenther  <rguenther@suse.de>
13412
13413         * double-int.h (double_int_sub): Declare.
13414         * double-int.c (double_int_sub): New function.
13415         * dwarf2out.c (field_byte_offset): Use it.
13416         * fixed-value.c (do_fixed_add): Likewise.
13417         (do_fixed_multiply): Likewise.
13418         (do_fixed_divide): Likewise.
13419         * tree-predcom.c (add_ref_to_chain): Likewise.
13420         (determine_roots_comp): Likewise.
13421         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13422
13423 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
13424
13425         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
13426         implementations.
13427
13428 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
13429
13430         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
13431         * arm-modes.def (CC_NOTB): Don't define.
13432         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
13433         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
13434         (LTUGEU): New code_iterator.
13435         (cnb, optab): New corresponding code_attrs.
13436         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
13437         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
13438         using LTUGEU.
13439         (addsi3_carryin_shift_<optab>): Likewise.
13440         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
13441         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
13442         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
13443         (subsi3_compare): Renamed from subsi3_compare0_c.
13444         Change CC_NOTB to CC.
13445         (arm_subsi3_insn): Allow constants for operand 0.
13446         (compare_scc peephole for eq case): New.
13447         (compare_scc splitters): Change CC_NOTB to CC.
13448
13449 2010-07-05  Richard Guenther  <rguenther@suse.de>
13450
13451         * tree-ssa-loop-im.c (for_each_index): Do not handle
13452         ALIGN_INDIRECT_REF.
13453         (gen_lsm_tmp_name): Likewise.
13454         * tree-dump.c (dequeue_and_dump): Likewise.
13455         * tree-pretty-print.c (dump_generic_node): Likewise.
13456         (op_code_prio): Likewise.
13457         (op_symbol_code): Likewise.
13458         * tree.c (staticp): Likewise.
13459         (build1_stat): Likewise.
13460         * tree.h (INDIRECT_REF_P): Likewise.
13461         * fold-const.c (maybe_lvalue_p): Likewise.
13462         (operand_equal_p): Likewise.
13463         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13464         (ao_ref_init_from_vn_reference): Likewise.
13465         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13466         (find_interesting_uses_address): Likewise.
13467         * dwarf2out.c (loc_list_from_tree): Likewise.
13468         * gimplify.c (gimplify_expr): Likewise.
13469         * tree-eh.c (tree_could_trap_p): Likewise.
13470         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13471         * cfgexpand.c (expand_debug_expr): Likewise.
13472         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13473         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13474         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13475         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
13476         * tree-ssa-operands.c (get_expr_operands): Likewise.
13477         * expr.c (safe_from_p): Likewise.
13478         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
13479         * tree-vect-data-refs.c (vect_setup_realignment): Build
13480         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
13481         * tree-vect-stmts.c (vectorizable_load): Likewise.
13482         * tree.def (ALIGN_INDIRECT_REF): Remove.
13483
13484 2010-07-05  Richard Guenther  <rguenther@suse.de>
13485
13486         PR tree-optimization/44784
13487         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
13488         for inserted stmts.
13489         (find_or_generate_expression): Fix SCCVN insertion check.
13490
13491 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13492
13493         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
13494         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13495         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
13496         directives.
13497
13498 2010-07-05  Ira Rosen  <irar@il.ibm.com>
13499
13500         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
13501         statements that are not vectorized.
13502         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
13503         in INSIDE_COST.
13504
13505 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
13506
13507         PR bootstrap/44820
13508         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
13509
13510 2010-07-05  Richard Guenther  <rguenther@suse.de>
13511
13512         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
13513         RESULT_DECLs properly.
13514
13515 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13516
13517         PR rtl-optimization/44695
13518         * config/i386/i386.md (extract_code): Removed.
13519         (<u>divmodqi4): Likewise.
13520         (divmodqi4): New.
13521         (udivmodqi4): Likewise.
13522         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
13523         (udivmodhiqi3): Likewise.
13524
13525 2010-07-04  Jan Hubicka  <jh@suse.cz>
13526
13527         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
13528
13529 2010-07-04  Jan Hubicka  <jh@suse.cz>
13530
13531         * cgraphunit.c (init_cgraph): Only initialize dump file if it
13532         is not already initialized.
13533
13534 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
13535
13536         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
13537         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
13538         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
13539         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
13540         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
13541         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
13542         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
13543         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
13544         (sync_new_nand_optab): Redefine as macros.
13545         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
13546         Delete.
13547         (direct_optab_index): New enum.
13548         (direct_optab_d): New structure.
13549         (direct_optab): New typedef.
13550         (direct_optab_table): Declare.
13551         (direct_optab_handler, set_direct_optab_handler): New functions.
13552         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
13553         (sync_lock_release_optab): New macros.
13554         * optabs.c (direct_optab_table): New variable.
13555         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
13556         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
13557         cmpstr_optab and cmpstrn_optab.
13558         (emit_conditional_move): Likewise for movcc_optab.
13559         (can_conditionally_move_p): Likewise for movcc_gen_code.
13560         (init_insn_codes): Clear direct_optab_table.
13561         (init_optabs): Don't initialize the new "direct optabs" here.
13562         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
13563         vcond_gen_code.
13564         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
13565         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
13566         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
13567         (expand_sync_operation): Likewise other sync_*_optabs.
13568         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
13569         to sync_compare_and_swap_optab.
13570         (expand_sync_lock_test_and_set): Use direct_optab_handler for
13571         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
13572         to the names of both.
13573         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
13574         cmpstr_optab and cmpstrn_optab.
13575         (expand_builtin_lock_release): Likewise sync_lock_release.
13576         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
13577         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
13578         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
13579         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
13580         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
13581         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
13582         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
13583         (sync_lock_test_and_set, sync_lock_release): Delete.
13584         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
13585         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
13586         * genopinit.c (optabs): Use set_direct_optab_handler for the new
13587         macro optabs.
13588         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
13589         the "optab" local variable.  Use direct_optab_handler for optab and
13590         sync_compare_and_swap_optab.
13591         * reload1.c (reload_in_optab, reload_out_optab): Delete.
13592         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
13593         reload_in_optab and reload_out_optab.
13594         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
13595         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
13596         * config/pa/pa.c (pa_secondary_reload): Likewise.
13597         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
13598         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
13599         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
13600         (VMSupportsCS8_builtin): Likewise.
13601
13602 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
13603
13604         * optabs.h (optab_handlers): Change type of insn_code to int.
13605         (optab_handler, set_optab_handler, convert_optab_handler)
13606         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
13607         CODE_FOR_nothing".
13608         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
13609         (init_insn_codes): Zero both the above arrays.
13610         (init_optabs): Never call init_insn_codes first time around.
13611
13612 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
13613
13614         * optabs.h (optab_handler, convert_optab_handler): Turn into
13615         inline functions that return an insn code.
13616         (set_optab_handler, set_convert_optab_handler): New functions.
13617         * builtins.c: Replace optab_handler(X)->insn_code with
13618         optab_handler or set_optab_handler thoughout.  Likewise
13619         convert_optab_handler(X)->insn_code with convert_optab_handler
13620         and set_convert_optab_handler.
13621         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
13622         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
13623         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
13624         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
13625         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
13626         config/spu/spu.c: Likewise.
13627
13628 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13629
13630         PR target/44531
13631         * config.gcc (sh*-*-*): Use regular expressions instead of
13632         the 'i' modifier for sed substitutions.
13633
13634 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
13635
13636         * gimple.c (gimple_body): Comments added.
13637
13638 2010-07-04  Richard Guenther  <rguenther@suse.de>
13639
13640         PR middle-end/44809
13641         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
13642         of an INDIRECT_REF.
13643
13644 2010-07-04  Richard Guenther  <rguenther@suse.de>
13645
13646         PR tree-optimization/44479
13647         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
13648         extra SSA name copy statements which preserves points-to
13649         information.
13650         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13651         Copy points-to information for all pointers.  Properly handle
13652         MEM_REFs.
13653         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
13654         copy statements.
13655         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
13656         dependency.
13657
13658 2010-07-04  Richard Guenther  <rguenther@suse.de>
13659
13660         PR middle-end/44785
13661         * tree-inline.c (initialize_inlined_parameters): Do not
13662         re-use pointer-map slot over remap_type call.
13663
13664 2010-07-04  Richard Guenther  <rguenther@suse.de>
13665
13666         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
13667
13668 2010-07-04  Richard Guenther  <rguenther@suse.de>
13669
13670         PR tree-optimization/44656
13671         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
13672         again after value-replacing in the defintions lhs.
13673
13674 2010-07-04  Ira Rosen  <irar@il.ibm.com>
13675             Revital Eres  <eres@il.ibm.com>
13676
13677         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
13678         Document new arguments.
13679         * doc/tm.texi: Regenerate.
13680         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
13681         Handle unaligned store.
13682         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
13683         * target.def (builtin_vectorization_cost): Add new arguments.
13684         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
13685         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
13686         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
13687         (vect_vfa_segment_size): Fix indentation.
13688         * tree-vectorizer.h (struct _vect_peel_info): New.
13689         (struct _vect_peel_extended_info): New.
13690         (struct _loop_vec_info): Add new field for peeling hash table and a
13691         macro for its access.
13692         (VECT_MAX_COST): Define.
13693         (vect_get_load_cost): Declare.
13694         (vect_get_store_cost, vect_get_known_peeling_cost,
13695         vect_get_single_scalar_iteraion_cost): Likewise.
13696         (vect_supportable_dr_alignment): Add new argument.
13697         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
13698         field.
13699         (destroy_loop_vec_info): Free peeling hash table.
13700         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
13701         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
13702         vect_analyze_slp. Fix indentation.
13703         (vect_get_single_scalar_iteraion_cost): New function.
13704         (vect_get_known_peeling_cost): Likewise.
13705         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
13706         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
13707         statement. Move outside cost calculation inside unknown peeling case.
13708         Call vect_get_known_peeling_cost for known amount of peeling.
13709         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
13710         reference to the print message of forced alignment.
13711         (vect_verify_datarefs_alignment): Update call to
13712         vect_supportable_dr_alignment.
13713         (vect_get_data_access_cost): New function.
13714         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
13715         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
13716         vect_peeling_hash_choose_best_peeling): Likewise.
13717         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
13718         to store all the accesses in the loop and find best possible access to
13719         align using peeling for known alignment case. For unknown alignment
13720         check if stores are preferred or if peeling is worthy.
13721         (vect_find_same_alignment_drs): Analyze pairs of loads too.
13722         (vect_supportable_dr_alignment): Add new argument and check aligned
13723         accesses according to it.
13724         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
13725         (cost_for_stmt): Call vect_get_stmt_cost.
13726         (vect_model_simple_cost): Likewise.
13727         (vect_model_store_cost): Call vect_get_stmt_cost. Call
13728         vect_get_store_cost to calculate the cost of the statement.
13729         (vect_get_store_cost): New function.
13730         (vect_model_load_cost): Call vect_get_stmt_cost. Call
13731         vect_get_load_cost to calculate the cost of the statement.
13732         (vect_get_load_cost): New function.
13733         (vectorizable_store): Update call to vect_supportable_dr_alignment.
13734         (vectorizable_load): Likewise.
13735         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
13736         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
13737         arguments. Handle unaligned store.
13738         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
13739         (rs6000_builtin_support_vector_misalignment): Return true for word and
13740         double word alignments for VSX.
13741         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
13742         vect_supportable_dr_alignment and builtin_vectorization_cost.
13743
13744 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13745
13746         PR target/44597
13747         * config/pa/predicates.md (prefetch_cc_operand): Remove.
13748         (prefetch_nocc_operand): Likewise.
13749         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
13750         (prefetch_20): New insn.
13751         (prefetch_cc): Remove.
13752         (prefetch_nocc): Likewise.
13753
13754 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13755
13756         * expr.c (vector_mode_valid_p): Move to c-common.c.
13757         * expr.h (vector_mode_valid_p): Do not declare here.
13758         * system.h: Poison GCC_EXPR_H in front-ends.
13759         * Makefile.in: Update dependencies.
13760
13761 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13762
13763         PR target/44705
13764         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
13765
13766 2010-07-03  Jan Hubicka  <jh@suse.cz>
13767
13768         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
13769         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
13770         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
13771         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
13772         Likewise.
13773
13774         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
13775         Update timevars.V
13776         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
13777         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
13778         TV_IPA_LTO_DECL_OUT): New.
13779         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
13780
13781 2010-07-03  Jan Hubicka  <jh@suse.cz>
13782
13783         * ipa-inline.c (update_edge_key): Break out from ...
13784         update_callers_keys): ... here;
13785         (update_callee_keys): Update only the edges from caller to callee.
13786         (update_all_calle_keys): Do what update_calle_keys did.
13787         (decide_inlining_of_small_functions): Avoid recomputing of all
13788         callees when badness increase.
13789
13790 2010-07-03  Jie Zhang  <jie@codesourcery.com>
13791
13792         * config/arm/arm.c (arm_attr_length_move_neon): New.
13793         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
13794         * config/arm/neon.md (define_mode_attr V_slen): Remove.
13795         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
13796         to compute length attribute.
13797
13798 2010-07-03  Jie Zhang  <jie@codesourcery.com>
13799
13800         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
13801         as predicate for operand 1 and remove its constraint.
13802         * config/arm/predicates.md (vfp_register_operand): New.
13803         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
13804         (*push_fp_multi): Likewise.
13805
13806 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
13807
13808         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
13809
13810 2010-07-03  Jan Hubicka  <jh@suse.cz>
13811
13812         * config/i386/i386.c (override_options): Revert accidental commit.
13813
13814 2010-07-02  Le-Chun Wu  <lcwu@google.com>
13815
13816         PR c++/44128
13817         * doc/invoke.texi: Update documentation of -Wshadow.
13818
13819 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
13820             Julian Brown  <julian@codesourcery.com>
13821             Sandra Loosemore  <sandra@codesourcery.com>
13822
13823         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
13824         comparisons.  Adjust to take both operands.
13825         (arm_select_cc_mode): Handle DImode comparisons.
13826         (arm_gen_compare_reg): Generate a scratch register for DImode
13827         comparisons which require one.  Use xor for Thumb equality checks.
13828         (arm_const_double_by_immediates): New.
13829         (arm_print_operand): Allow 'Q' and 'R' for constants.
13830         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
13831         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
13832         arm_canonicalize_comparison.
13833         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
13834         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
13835         prototype.
13836         (arm_const_double_by_immediates): Declare.
13837         * config/arm/constraints.md (Di): New constraint.
13838         * config/arm/predicates.md (arm_immediate_di_operand)
13839         (arm_di_operand, cmpdi_operand): New.
13840         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
13841         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
13842         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
13843         (cstoredi4): Handle non-Cirrus also.
13844
13845 2010-07-02  Julian Brown  <julian@codesourcery.com>
13846             Sandra Loosemore  <sandra@codesourcery.com>
13847
13848         PR target/43703
13849         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
13850         (smax<mode>3): Disable for NEON float modes when
13851         flag_unsafe_math_optimizations is false.
13852         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
13853         (*mul<mode>3_neon)
13854         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
13855         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
13856         for NEON float modes when flag_unsafe_math_optimizations is false.
13857         (quad_halves_<code>v4sf): Only enable if
13858         flag_unsafe_math_optimizations is true.
13859         * doc/invoke.texi (ARM Options): Add note about floating point
13860         vectorization requiring -funsafe-math-optimizations.
13861
13862 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
13863             Julian Brown  <julian@codesourcery.com>
13864
13865         * config/arm/neon.md (UNSPEC_VABA): Delete.
13866         (UNSPEC_VABAL): Delete.
13867         (UNSPEC_VABS): Delete.
13868         (UNSPEC_VMUL_N): Delete.
13869         (adddi3_neon): New.
13870         (subdi3_neon): New.
13871         (mul<mode>3add<mode>_neon): Make the pattern named.
13872         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
13873         (neon_vadd<mode>): Replace with define_expand, and move the remaining
13874         unspec parts...
13875         (neon_vadd<mode>_unspec): ...to this.
13876         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
13877         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
13878         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
13879         (neon_vaba<mode>): Rewrite in terms of vabd.
13880         (neon_vabal<mode>): Rewrite in terms of vabdl.
13881         (neon_vabs<mode>): Rewrite without unspec.
13882         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
13883         (*arm_subdi3): Likewise.
13884         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
13885         No_op attribute to disable assembly output checks.
13886         * config/arm/arm_neon.h: Regenerated.
13887         * doc/arm-neon-intrinsics.texi: Regenerated.
13888
13889 2010-07-02  Jan Hubicka  <jh@suse.cz>
13890
13891         * ipa-split.c (split_function): For aggregate values, set the return
13892         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
13893         *<retval> = fncall.part ().
13894         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
13895
13896 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
13897
13898         * config/arm/neon.md (UNSPEC_VAND): Delete.
13899         (UNSPEC_VBIC): Delete.
13900         (UNSPEC_VCLZ): Delete.
13901         (UNSPEC_VCNT): Delete.
13902         (UNSPEC_VEOR): Delete.
13903         (UNSPEC_VORN): Delete.
13904         (UNSPEC_VORR): Delete.
13905         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
13906         core registers too.
13907         (anddi3_neon): Likewise.
13908         (orndi3_neon): Likewise.
13909         (bicdi3_neon): Likewise.
13910         (xordi3_neon): Likewise.
13911         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
13912         rid of unspec and handle unused operand.
13913         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
13914         * config/arm/predicates.md (imm_for_neon_logic_operand):
13915         Require TARGET_NEON.
13916         (imm_for_neon_inv_logic_operand): Likewise.
13917         * config/arm/arm.md (define_split for logical_binary_operator):
13918         Disable for NEON registers.
13919         (anddi3): Add new define_expand, and rename the insn.  Disable
13920         this insn for NEON, where anddi3_neon now applies.
13921         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
13922         (iordi3): As for anddi3.
13923         (xordi3): Likewise.
13924         * config/arm/neon.ml (Vand): Split DImode variants and mark them
13925         as No_op to disable testing for exact instruction match.
13926         (Vorr): Likewise.
13927         (Veor): Likewise.
13928         (Vbic): Likewise.
13929         (Vorn): Likewise.
13930         * config/arm/arm_neon.h: Regenerated.
13931         * doc/arm-neon-intrinsics.texi: Regenerated.
13932
13933 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
13934
13935         * expr.h (emit_stack_probe): Declare.
13936         * explow.c (emit_stack_probe): Make global.
13937         (anti_adjust_stack_and_probe): Fix comments.
13938         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13939         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13940         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13941         * config/sparc/sparc.c: Include except.h.
13942         (sparc_emit_probe_stack_range): New function.
13943         (output_probe_stack_range): Likewise.
13944         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
13945         built-in stack checking is enabled.
13946         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
13947         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13948         (probe_stack_range): New insn.
13949
13950 2010-07-02  Richard Guenther  <rguenther@suse.de>
13951
13952         PR target/43958
13953         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
13954         for argument alignment.
13955
13956 2010-07-02  Jan Hubicka  <jh@suse.cz>
13957
13958         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
13959         walk backwards from entry_bb to check only those basic block of header
13960         that might lead to execution of split part.
13961         (consider_split) ... here.
13962         (find_return_bb): Allow assignment in return BB.
13963         (find_retval): New.
13964         (split_function): Fix name of cloned function; take care of updating
13965         return value in return_bb containing move.
13966
13967 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
13968
13969         PR target/44771
13970         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
13971         used variable insn.
13972
13973 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
13974
13975         * implicit-zee.c (combine_reaching_defs): Fix long lines.
13976         (is_set_with_extension_DI): Delete.
13977         (struct zero_extend_info): New structure.
13978         (add_removable_zero_extend): New function.
13979         (find_removable_zero_extends): Use note_stores to find SETs.
13980         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
13981
13982 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
13983
13984         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
13985         is_miss_rate_acceptable. Pull total_positions computation
13986         out of the loops.  Early return if miss_positions exceeds
13987         the acceptable threshold.
13988         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
13989         is_miss_rate_acceptable after renaming of compute_miss_rate.
13990
13991 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
13992
13993         PR middle-end/44576
13994         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
13995         of 1000) for miss rate if the address diference is greater than or
13996         equal to the cache line size (the two reference will never hit the
13997         same cache line).
13998
13999 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
14000
14001         PR target/42835
14002         * config/arm/arm-modes.def (CC_NOTB): New mode.
14003         * config/arm/arm.c (get_arm_condition_code): Handle it.
14004         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
14005         * config/arm/arm.md (subsi3_compare0_c): New pattern.
14006         (compare_scc): Now a define_and_split.  Add a number of extra
14007         splitters before it.
14008
14009         PR target/42172
14010         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
14011         and ZERO_EXTEND.
14012         (arm_rtx_costs_1): Likewise.
14013         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
14014         * config/arm/arm.md (is_arch6): New attribute.
14015         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
14016         extendqisi2): Tighten the code somewhat, avoiding invalid
14017         RTL to occur in the expander patterns.
14018         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
14019         (thumb1_zero_extendhisi2_v6): Delete.
14020         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
14021         (thumb1_extendhisi2_v6): Delete.
14022         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
14023         (thumb1_extendqisi2_v6): Delete.
14024         (zero_extendhisi2 for register input splitter): New.
14025         (zero_extendqisi2 for register input splitter): New.
14026         (thumb1_extendhisi2 for register input splitter): New.
14027         (extendhisi2 for register input splitter): New.
14028         (extendqisi2 for register input splitter): New.
14029         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
14030         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
14031         and add support for a register alternative requiring a split.
14032         (thumb1_zero_extendqisi2): Likewise.
14033         (arm_zero_extendqisi2): Likewise.
14034         (arm_extendhisi2): Likewise.
14035         (arm_extendqisi2): Likewise.
14036
14037 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
14038
14039         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
14040         instead of an unspec.
14041         (neon_expand_vector_init): Likewise.
14042         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
14043         (UNSPEC_VDUP_LANE): Delete.
14044         (UNSPEC VDUP_N): Delete.
14045         (UNSPEC_VGET_HIGH): Delete.
14046         (UNSPEC_VGET_LANE): Delete.
14047         (UNSPEC_VGET_LOW): Delete.
14048         (UNSPEC_VMVN): Delete.
14049         (UNSPEC_VSET_LANE): Delete.
14050         (V_double_vector_mode): New.
14051         (vec_set<mode>_internal): Make code emitted match that for the
14052         corresponding intrinsics.
14053         (vec_setv2di_internal): Likewise.
14054         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
14055         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
14056         (neon_vset_lane<mode>): Combine double and quad patterns and
14057         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
14058         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
14059         (neon_vdup_n<mode>): Rewrite RTL without unspec.
14060         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
14061         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
14062         with neon_vdup_lanev2di, adjusting the pattern from the latter
14063         to be predicable for consistency.
14064         (neon_vdup_lane<mode>_internal): New.
14065         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
14066         to avoid using an unspec.
14067         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
14068         (neon_vdup_lanev2di): Turn into a define_expand.
14069         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
14070         (neon_vget_high<mode>): Replace with....
14071         (neon_vget_highv16qi): New pattern using canonical RTL.
14072         (neon_vget_highv8hi): Likewise.
14073         (neon_vget_highv4si): Likewise.
14074         (neon_vget_highv4sf): Likewise.
14075         (neon_vget_highv2di): Likewise.
14076         (neon_vget_low<mode>): Replace with....
14077         (neon_vget_lowv16qi): New pattern using canonical RTL.
14078         (neon_vget_lowv8hi): Likewise.
14079         (neon_vget_lowv4si): Likewise.
14080         (neon_vget_lowv4sf): Likewise.
14081         (neon_vget_lowv2di): Likewise.
14082
14083         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
14084         test for this emitting vmov.
14085         (Vset_lane): Likewise.
14086         (Vdup_n): Likewise.
14087         (Vmov_n): Likewise.
14088
14089         * doc/arm-neon-intrinsics.texi: Regenerated.
14090
14091 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
14092
14093         * config/arm/neon.md (vec_extractv2di): Correct error in register
14094         numbering to reconcile with neon_vget_lanev2di.
14095
14096 2010-07-02  Richard Guenther  <rguenther@suse.de>
14097
14098         * tree-ssa-structalias.c (pt_solution_set_var): New function.
14099         * tree-ssa-alias.h (pt_solution_set_var): Declare.
14100         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
14101         points-to information.
14102
14103 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
14104
14105         * config/s390/s390.c (override_options): Adopt prefetching
14106         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
14107
14108 2010-07-02  Jan Hubicka  <jh@suse.cz>
14109
14110         * df-problems.c (df_kill_notes): Do not collect dead  notes.
14111         (df_set_note): Just call add_reg_note.
14112         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
14113         df_create_unused_note): Do not deal with lists of old notes.
14114         (df_note_bb_compute): Likewise.
14115
14116 2010-07-02  Richard Guenther  <rguenther@suse.de>
14117
14118         * tree-ssa-structalias.c (find_func_aliases): Handle
14119         pointer alignment via BIT_AND_EXPR.
14120         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
14121
14122 2010-07-02  Richard Guenther  <rguenther@suse.de>
14123
14124         * tree-data-ref.c (initialize_data_dependence_relation): Handle
14125         mismatching number of dimensions properly.
14126
14127 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14128
14129         PR target/44707
14130         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
14131         (lo_sum (high ...) ...) patterns generated by earlier passes.
14132
14133 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14134
14135         * doc/install.texi (Prerequisites): Document Perl requirement on
14136         Solaris 2.
14137         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
14138
14139 2010-07-02  Richard Guenther  <rguenther@suse.de>
14140
14141         PR middle-end/44777
14142         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
14143
14144 2010-07-02  Jan Hubicka  <jh@suse.cz>
14145
14146         PR middle-end/44706
14147         * predict.c (predict_paths_for_bb): Handle case when control dependence
14148         BB has only abnormal edges.
14149
14150 2010-07-02  Richard Guenther  <rguenther@suse.de>
14151
14152         PR tree-optimization/44748
14153         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
14154         the embedded conversion in MEM_REFs.
14155
14156 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
14157
14158         * reload.c: Include toplev.h.
14159         * recog.c:  Likewise.
14160         * Makefile.in: Adjust dependencies.
14161
14162 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
14163
14164         PR debug/44694
14165         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
14166         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
14167
14168 2010-07-01  Richard Guenther  <rguenther@suse.de>
14169
14170         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
14171         types for offsets.
14172
14173 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
14174
14175         PR target/44732
14176         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
14177         Fix argument types.
14178
14179 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
14180
14181         PR target/44727
14182         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14183         Make sure operand 0 dies.
14184
14185 2010-07-01  Richard Guenther  <rguenther@suse.de>
14186
14187         PR middle-end/42834
14188         PR middle-end/44468
14189         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
14190         * doc/generic.texi (References to storage): Document MEM_REF.
14191         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
14192         (print_call_name): Likewise.
14193         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
14194         (build_simple_mem_ref_loc): New function.
14195         (mem_ref_offset): Likewise.
14196         * tree.h (build_simple_mem_ref_loc): Declare.
14197         (build_simple_mem_ref): Define.
14198         (mem_ref_offset): Declare.
14199         * fold-const.c: Include tree-flow.h.
14200         (operand_equal_p): Handle MEM_REF.
14201         (build_fold_addr_expr_with_type_loc): Likewise.
14202         (fold_comparison): Likewise.
14203         (fold_unary_loc): Fold
14204         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
14205         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
14206         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
14207         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
14208         (ptr_deref_may_alias_ref_p_1): Likewise.
14209         (ao_ref_base_alias_set): Properly differentiate base object for
14210         offset and TBAA.
14211         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
14212         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
14213         (indirect_refs_may_alias_p): Likewise.
14214         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
14215         chasing code.
14216         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
14217         (call_may_clobber_ref_p_1): Likewise.
14218         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
14219         * expr.c (expand_assignment): Handle MEM_REF.
14220         (store_expr): Handle MEM_REFs from STRING_CSTs.
14221         (store_field): If expanding a MEM_REF of a non-addressable
14222         decl use bitfield operations.
14223         (get_inner_reference): Handle MEM_REF.
14224         (expand_expr_addr_expr_1): Likewise.
14225         (expand_expr_real_1): Likewise.
14226         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
14227         * alias.c (ao_ref_from_mem): Handle MEM_REF.
14228         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
14229         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
14230         (dr_analyze_indices): Likewise.
14231         (dr_analyze_alias): Likewise.
14232         (object_address_invariant_in_loop_p): Likewise.
14233         * gimplify.c (mark_addressable): Handle MEM_REF.
14234         (gimplify_cond_expr): Build MEM_REFs.
14235         (gimplify_modify_expr_to_memcpy): Likewise.
14236         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
14237         (gimple_fold_indirect_ref): Adjust.
14238         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
14239         * tree.def (MEM_REF): New tree code.
14240         * tree-dfa.c: Include toplev.h.
14241         (get_ref_base_and_extent): Handle MEM_REF.
14242         (get_addr_base_and_unit_offset): New function.
14243         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
14244         * gimple-fold.c (may_propagate_address_into_dereference): Handle
14245         MEM_REF.
14246         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
14247         accesses if the array has just one dimension.  Remove always true
14248         parameter.  Do not require type compatibility here.
14249         (maybe_fold_offset_to_component_ref): Remove.
14250         (maybe_fold_stmt_indirect): Remove.
14251         (maybe_fold_reference): Remove INDIRECT_REF handling.
14252         Fold back to non-MEM_REF.
14253         (maybe_fold_offset_to_address): Simplify.  Deal with type
14254         mismatches here.
14255         (maybe_fold_reference): Likewise.
14256         (maybe_fold_stmt_addition): Likewise.  Also handle
14257         &ARRAY + I in addition to &ARRAY[0] + I.
14258         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
14259         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
14260         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
14261         * tree-ssa.c (useless_type_conversion_p): Make most pointer
14262         conversions useless.
14263         (warn_uninitialized_var): Handle MEM_REF.
14264         (maybe_rewrite_mem_ref_base): New function.
14265         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
14266         to SSA form.
14267         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
14268         INDIRECT_REF handling.
14269         (copy_tree_body_r): Handle MEM_REF.
14270         * gimple.c (is_gimple_addressable): Adjust.
14271         (is_gimple_address): Likewise.
14272         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
14273         invariant base are invariant.
14274         (is_gimple_min_lval): Adjust.
14275         (is_gimple_mem_ref_addr): New function.
14276         (get_base_address): Handle MEM_REF.
14277         (count_ptr_derefs): Likewise.
14278         (get_base_loadstore): Likewise.
14279         * gimple.h (is_gimple_mem_ref_addr): Declare.
14280         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
14281         * tree-cfg.c (verify_address): New function, split out from ...
14282         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
14283         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
14284         INDIRECT_REFs.
14285         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
14286         INDIRECT_REF.  Allow conversions.
14287         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
14288         a register does not change its size.
14289         (verify_types_in_gimple_reference): Verify MEM_REF.
14290         (verify_gimple_assign_single): Disallow INDIRECT_REF.
14291         Handle MEM_REF.
14292         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
14293         New.
14294         (mark_address_taken): Handle MEM_REF.
14295         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
14296         (get_asm_expr_operands): Pass opf_not_non_addressable.
14297         (get_expr_operands): Handle opf_[not_]non_addressable.
14298         Handle MEM_REF.  Remove INDIRECT_REF handling.
14299         * tree-vrp.c (check_array_ref): Handle MEM_REF.
14300         (search_for_addr_array): Likewise.
14301         (check_array_bounds): Likewise.
14302         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
14303         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
14304         (ref_always_accessed_p): Likewise.
14305         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
14306         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
14307         Handle MEM_REF.
14308         * cgraphbuild.c (mark_load): Properly check for NULL result
14309         from get_base_address.
14310         (mark_store): Likewise.
14311         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
14312         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
14313         handling for MEM_REF.
14314         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
14315         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
14316         * builtins.c (stabilize_va_list_loc): Use the function ABI
14317         valist type if we couldn't canonicalize the argument type.
14318         Always dereference with the canonical va-list type.
14319         (maybe_emit_free_warning): Handle MEM_REF.
14320         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
14321         memmove to memcpy.
14322         * builtins.c (fold_builtin_memory_op): Use ref-all types
14323         for all memcpy foldings.
14324         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
14325         (build_outer_var_ref): Likewise.
14326         (scan_omp_1_op): Likewise.
14327         (lower_rec_input_clauses): Likewise.
14328         (lower_lastprivate_clauses): Likewise.
14329         (lower_reduction_clauses): Likewise.
14330         (lower_copyprivate_clauses): Likewise.
14331         (expand_omp_atomic_pipeline): Likewise.
14332         (expand_omp_atomic_mutex): Likewise.
14333         (create_task_copyfn): Likewise.
14334         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
14335         Remove old union trick.  Initialize constant offsets.
14336         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
14337         INDIRECT_REF.  Init base_alias_set properly.
14338         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
14339         (vn_reference_fold_indirect): Adjust for MEM_REFs.
14340         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
14341         for ARRAY_REFs.
14342         (may_insert): Remove.
14343         (visit_reference_op_load): Do not test may_insert.
14344         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
14345         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14346         a field to store the constant offset this op applies.
14347         (run_scc_vn): Adjust prototype.
14348         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
14349         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
14350         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
14351         bother about volatile qualifiers on pointers.
14352         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
14353         * tree-ssa-loop-ivopts.c
14354         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
14355         (strip_offset_1): Likewise.
14356         (find_interesting_uses_address): Replace INDIRECT_REF handling with
14357         MEM_REF handling.
14358         (get_computation_cost_at): Likewise.
14359         * ipa-pure-const.c (check_op): Handle MEM_REF.
14360         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
14361         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
14362         and constants.
14363         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
14364         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
14365         (eliminate_local_variables_1): Likewise.
14366         (create_call_for_reduction_1): Likewise.
14367         (create_loads_for_reductions): Likewise.
14368         (create_loads_and_stores_for_name): Likewise.
14369         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
14370         (ssa_accessed_in_tree): Handle MEM_REF.
14371         (ssa_accessed_in_assign_rhs): Likewise.
14372         (update_type_size): Likewise.
14373         (analyze_accesses_for_call_stmt): Likewise.
14374         (analyze_accesses_for_assign_stmt): Likewise.
14375         (transform_access_sites): Likewise.
14376         (transform_allocation_sites): Likewise.
14377         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
14378         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14379         not handle INDIRECT_REF.
14380         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
14381         (cond_store_replacement): Likewise.
14382         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
14383         MEM_REF, no not handle INDIRECT_REFs.
14384         (insert_into_preds_of_block): Properly initialize avail.
14385         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
14386         for ARRAY_REFs.  Properly handle reference lookups that
14387         require a bit re-interpretation.
14388         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
14389         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
14390         (build_ref_for_offset_1): Remove.
14391         (build_ref_for_offset): Build MEM_REFs.
14392         (gate_intra_sra): Disable for now.
14393         (sra_ipa_modify_expr): Handle MEM_REF.
14394         (ipa_early_sra_gate): Disable for now.
14395         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
14396         MEM_REF handling.
14397         (disqualify_base_of_expr): Likewise.
14398         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
14399         MEM_REF handling.
14400         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
14401         Use mem_ref_offset.  Remove bogus folding.
14402         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
14403         (make_fancy_name_1): Add support for MEM_REF.
14404         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
14405         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
14406         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
14407         (compute_complex_ancestor_jump_func): Likewise.
14408         (ipa_analyze_virtual_call_uses): Likewise.
14409         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
14410         INDIRECT_REF folding with more generalized MEM_REF folding.
14411         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
14412         (forward_propagate_addr_into_variable_array_index): Also handle
14413         &ARRAY + I in addition to &ARRAY[0] + I.
14414         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
14415         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
14416         creates assignments with overlap.
14417         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
14418         (get_frame_field): Likewise.
14419         (get_nonlocal_debug_decl): Likewise.
14420         (convert_nonlocal_reference_op): Likewise.
14421         (struct nesting_info): Add mem_refs pointer-set.
14422         (create_nesting_tree): Allocate it.
14423         (convert_local_reference_op): Insert to be folded mem-refs.
14424         (fold_mem_refs): New function.
14425         (finalize_nesting_tree_1): Perform defered folding of mem-refs
14426         (free_nesting_tree): Free the pointer-set.
14427         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
14428         (vectorizable_load): Likewise.
14429         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
14430         (propagate_with_phi): Likewise.
14431         * tree-object-size.c (addr_object_size): Handle MEM_REFs
14432         instead of INDIRECT_REFs.
14433         (compute_object_offset): Handle MEM_REF.
14434         (plus_stmt_object_size): Handle MEM_REF.
14435         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
14436         for &MEM_REF.
14437         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
14438         (symbol_marked_for_renaming): Likewise.
14439         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
14440         (fold-const.o): Add $(TREE_FLOW_H).
14441         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
14442         (find_func_clobbers): Likewise.
14443         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
14444         (decompose_access): Likewise.
14445         (replace_field_acc): Likewise.
14446         (replace_field_access_stmt): Likewise.
14447         (insert_new_var_in_stmt): Likewise.
14448         (get_stmt_accesses): Likewise.
14449         (reorg_structs_drive): Disable.
14450         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
14451         (ix86_canonical_va_list_type): Likewise.
14452
14453 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
14454
14455         PR other/44566
14456         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
14457         * target.def (struct gcc_target): Replace enum reg_class with
14458         reg_class_t in hook argument / return types.
14459         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
14460         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
14461         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14462         * targhooks.h (default_branch_target_register_class): Likewise.
14463         (default_ira_cover_classes, default_secondary_reload): Likewise.
14464         (default_memory_move_cost, default_register_move_cost): Likewise.
14465         * targhooks.c (default_branch_target_register_class): Likewise.
14466         (default_ira_cover_classes, default_secondary_reload): Likewise.
14467         (default_memory_move_cost, default_register_move_cost): Likewise.
14468         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
14469         * bt-load.c (branch_target_load_optimize): Likewise.
14470         * ira.c (setup_cover_and_important_classes): Likewise.
14471         * ira-costs.c (copy_cost): Likewise.
14472         * reload1.c (emit_input_reload_insns): Likewise.
14473         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14474         * config/frv/frv.c (frv_secondary_reload): Likewise.
14475         * config/s390/s390.c (s390_secondary_reload): Likewise.
14476         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
14477         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
14478         (ix86_register_move_cost): Likewise.
14479         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
14480         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
14481         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
14482         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
14483         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
14484         (rs6000_ira_cover_classes): Likewise.
14485         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
14486         * config/picochip/picochip-protos.h (picochip_secondary_reload):
14487         Likewise.
14488         * config/pa/pa.c (pa_secondary_reload): Likewise.
14489         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
14490         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
14491         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
14492         * doc/tm.texi: Regenerate.
14493
14494 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
14495
14496         PR bootstrrap/44726
14497         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
14498         use.
14499         (build_alias_set_optimal_p): Likewise.
14500         (build_base_obj_set_for_drs): Likewise.
14501
14502 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
14503
14504         * target.def: Remove comment about licensing problems of function
14505         declarations.
14506
14507         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
14508         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
14509         * doc/tm.texi: Regenerate.
14510
14511         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
14512         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
14513
14514         * target.def (enum_va_list_p): Use DEFHOOK.
14515         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
14516         Rename ptype to ptree.
14517         * doc/tm.texi: Regenerate.
14518
14519         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
14520         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
14521         * doc/tm.texi: Regenerate.
14522
14523         * target.def (memory_move_cost): Use DEFHOOK.
14524         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
14525         Rename regclass AKA class to rclass.
14526         * doc/tm.texi: Regenerate.
14527
14528         * target.def (pragma_parse): Use DEFHOOK.
14529         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
14530         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
14531         * doc/tm.texi: Regenerate.
14532
14533         * target.def (pass_by_reference): Use DEFHOOK.
14534         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
14535         * doc/tm.texi: Regenerate.
14536
14537         * target.def (resolve_overloaded_builtin): Rename params to arglist.
14538         Use DEFHOOK.
14539         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
14540         * doc/tm.texi: Regenerate.
14541
14542         * target.def (return_pops_args): Use DEFHOOK.
14543         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
14544         Rename stack-size to size.
14545         * doc/tm.texi: Regenerate.
14546
14547         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
14548         last-sched_cycle to last_clock, cur_cycle to clock.
14549         * doc/tm.texi.in: Use @hook.
14550         * doc/tm.texi: Regenerate.
14551
14552         * target.def (print_operand, print_operand_address): Update comment.
14553         (print_operand_punct_valid_p): Likewise.
14554
14555 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14556
14557         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
14558         to rtl.h.
14559         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
14560         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
14561         * rtl-error.h: New.
14562         * regrename.c: Do not include toplev.h. Include rtl-error.h.
14563         * rtl-error.c: Likewise.
14564         * reload.c: Likewise.
14565         * recog.c:  Likewise.
14566         * sel-sched.c: Likewise.
14567         * function.c: Likewise.
14568         * reg-stack.c: Likewise.
14569         * cfgrtl.c: Likewise.
14570         * reload1.c: Likewise.
14571         * final.c: Include rtl-error.
14572         * Makefile.in: Adjust dependencies.
14573
14574 2010-06-30  Jan Hubicka  <jh@suse.cz>
14575
14576         PR middle-end/PR44706
14577         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
14578         to return the value.
14579
14580 2010-06-30  Michael Matz  <matz@suse.de>
14581
14582         PR bootstrap/44699
14583         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
14584         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
14585         a gimple reg, attach the original VDEF to the last store in the
14586         sequence.
14587
14588 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
14589
14590         PR other/44034
14591         * config/darwin.c (darwin_override_options): Use renamed
14592         targetm.asm_out.emit_unwind_label.
14593
14594 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
14595
14596         PR tree-optimization/39799
14597         * tree-inline.c (remap_ssa_name): Initialize variable only if
14598         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14599
14600 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
14601
14602         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
14603
14604 2010-06-30  Richard Guenther  <rguenther@suse.de>
14605
14606         PR target/44722
14607         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
14608         against oscillation with reverse peephole2.
14609
14610 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
14611
14612         PR target/44721
14613         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14614         Fix last commit.
14615
14616 2010-06-30  Nick Clifton  <nickc@redhat.com>
14617
14618         * config/rx/rx-modes.def: New file.
14619         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
14620         (CC_REGNUM): Define.
14621         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
14622         register.
14623         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
14624         (SELECT_CC_MODE): Define.
14625         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
14626         (reg:CC CC_REG) instead of (cc0).
14627         (attr "cc"): Delete.
14628         (cbranchsi4): Do not split compare and branch here. Instead move
14629         it to...
14630         (cbranchsi4_<code>): ... here.  New patterns.
14631         (cmpsi): Call rx-compare_redundant to find out if it is necessary
14632         to emit the compare instruction.
14633         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
14634         cc_status flags.
14635         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
14636         FIRST_PSEUDO_REGNUM.
14637         (rx_expand_prologue, rx_expand_epilogue): Likewise.
14638         (rx_notice_update_cc): Delete.
14639         (rx_cc_modes_compatible): New function.
14640         (flags_needed_for_conditional): New function.
14641         (flags_from_mode): New function.
14642         (rx_compare_redundant): New function - scans backwards through
14643         insn list to find out if condition flags are already set correctly.
14644         (TARGET_CC_MODES_COMPATIBLE): Define.
14645         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
14646
14647         * config/rx/rx.h (BRANCH_COST): Define.
14648         (REGISTER_MOVE_COST): Define.
14649         * config/rx/predicates (rx_source_operand): Allow all constant types.
14650         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
14651         (tstsi4): New pattern.
14652         * config/rx/rx.c (rx_memory_move_cost): Define.
14653         (TARGET_MEMORY_MOVE_COST): Define.
14654
14655 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14656
14657         * tree.h (block_may_fallthru): Declare here.
14658         * tree-flow.h (block_may_fallthru): Do not declare here.
14659         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
14660         bitmap.h
14661         * Makefile.in (c-typeck.o): Update dependencies.
14662
14663 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
14664
14665         PR debug/44694
14666         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
14667         * cselib.c (cfa_base_preserved_regno): New static variable.
14668         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
14669         of REGNO (cfa_base_preserved_val->locs->loc).
14670         (cselib_preserve_cfa_base_value): Add regno argument, set
14671         cfa_base_preserved_regno to it.
14672         (cselib_invalidate_regno): Allow removal of registers other than
14673         cfa_base_preserved_regno from cfa_base_preserved_val.
14674         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
14675         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
14676         of MEM addresses, if not on LHS.
14677         (reverse_op): Don't add reverse ops for cfa_base_rtx.
14678         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
14679
14680 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
14681
14682         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
14683         static variables.
14684         (peep2_buf_position): New static function.
14685         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
14686         peephole2_optimize): Use it.
14687         (peep2_attempt, peep2_update_life): New static functions, broken out
14688         of peephole2_optimize.
14689         (peep2_fill_buffer): New static function.
14690         (peephole2_optimize): Change the main loop to try to fill the buffer
14691         with the maximum number of insns before matching them against
14692         peepholes.  Use a forward scan.  Remove special case for targets with
14693         conditional execution.
14694         * genrecog.c (change_state): Delete dead code.
14695         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
14696         Rewrite so as not to expect the second insn to have had a peephole
14697         applied yet.
14698
14699 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
14700
14701         * genhooks.c (emit_findices): Cast field precision to int.
14702         (emit_documentation): Likewise.
14703
14704 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
14705
14706         PR tree-optimization/43801
14707         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
14708         if old_decl was DECL_ONE_ONLY.
14709
14710         PR debug/44668
14711         * dwarf2out.c (add_accessibility_attribute): New function.
14712         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
14713         instead of adding DW_AT_accessibility manually.
14714         (gen_enumeration_type_die, gen_struct_or_union_type_die,
14715         gen_typedef_die): Use it.
14716
14717 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
14718
14719         * vmsdbgout.c (full_name): Just output the file name if not native.
14720
14721 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
14722
14723         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
14724         (funcnam_table): New static table.
14725         (funcnum_table): New static table.
14726         (write_rtnbeg): Write value saved in funcnum_table.
14727         (write_rtnend): Write value saved in funcnum_table.
14728         (vmsdbgout_begin_function): Save current function info in
14729         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
14730         (vmsdbgout_finish): Iterate over funcnum_table.
14731
14732 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
14733
14734         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
14735         (vmsdbgout_type_decl): Declare
14736         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
14737         (FUNC_EPILOGUE_LABEL): New macro
14738         (vmsdbgout_begin_epilogue): New function.
14739         (vmsdbgout_type_decl): New function.
14740
14741 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
14742
14743         * vmsdbg.h: Update copyright.
14744
14745 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
14746
14747         * vmsdbg.h (DST_K_TBG): New DST constant.
14748         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
14749         (write_modbeg): Cast module_language to avoid warning.
14750         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
14751
14752 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
14753
14754         PR other/44034
14755         * target.def, doc/tm.texi.in, genhooks.c: New files.
14756         * target.h: Instead of defining individual hook members,
14757         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
14758         include target.def.
14759         * target-def.h: Instead of defining individual hook initializers,
14760         include target-hooks-def.h.
14761         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
14762         targetm.live_on_entry -> targetm.extra_live_on_entry
14763         targetm.sched.md_finish ->targetm.sched.finish
14764         targetm.sched.md_init -> targetm.sched.init
14765         targetm.sched.md_init_global -> targetm.sched.init_global
14766         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
14767         targetm.asm_out.except_table_label ->
14768           targetm.asm_out.emit_except_table_label
14769         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
14770         targetm.target_help -> targetm.help
14771         targetm.vectorize.builtin_support_vector_misalignment ->
14772           targetm.vectorize.support_vector_misalignment
14773         targetm.file_start_app_off -> targetm.asm_file_start_app_off
14774         targetm.file_start_file_directive ->
14775          targetm.asm_file_start_file_directive
14776         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
14777         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
14778         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
14779         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
14780           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
14781         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
14782           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
14783         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
14784         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
14785         * Makefile.in (TARGET_H): Depend on target.def.
14786         (TARGET_DEF_H): Depend on target-hooks-def.h.
14787         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
14788         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
14789         * doc/tm.texi: Regenerate.
14790
14791         * Makefile.in (s-tm-texi): Remove stray tab / rule.
14792
14793         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
14794         (targetm.sched.init): Likewise.
14795
14796 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
14797
14798         PR bootstrap/44713
14799         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
14800         (function_arg_advance_32): Const-ify TYPE parameter.
14801         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
14802         (ix86_function_arg_advance): Change type of NAMED to bool.
14803         (function_arg_32): Const-ify CUM and TYPE parameters.
14804         (function_arg_64): Likewise.  Change type of NAMED to bool.
14805         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
14806         to bool.
14807         (ix86_function_arg): Change type of NAMED to bool.
14808         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
14809         last argument as a bool.
14810
14811 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
14812
14813         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
14814         (OVERRIDE_OPTIONS): Add note of obsolescence.
14815         Replace references with references to TARGET_OPTION_OVERRIDE.
14816         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
14817          the macro).
14818         * targhooks.c (default_target_option_override): New function.
14819         * targhooks.h (default_target_option_override): Declare.
14820         * target.h (struct gcc_target): Add override member to
14821         target_option member.
14822         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
14823         targetm.target_option.override call.
14824         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
14825         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
14826
14827 2010-06-29  Jan Hubicka  <jh@suse.cz>
14828
14829         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
14830
14831 2010-06-29  Jan Hubicka  <jh@suse.cz>
14832
14833         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
14834         unreachable.
14835         (rebuild_frequencies): New function.
14836         * predict.h (rebuild_frequencies): Declare.
14837         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
14838         entry block and edge reaching new_entry.
14839         (tree_function_versioning): When doing partial cloning, rebuild
14840         frequencies when done.
14841         * passes.c (execute_function_todo): Use rebild_frequencies.
14842
14843 2010-06-29  Richard Guenther  <rguenther@suse.de>
14844
14845         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
14846         * tree-flow.h (enum noalias_state): Remove.
14847         (struct var_ann_d): Remove noalias_state member.
14848
14849 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
14850
14851         PR target/43902
14852         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
14853         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
14854         (maddhidi4): Likewise.
14855
14856         Revert parts of the change for PR25130.
14857         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14858         MEM_ALIAS_SET.
14859
14860 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
14861
14862         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
14863         targetm.calls.function_incoming_arg, and
14864         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
14865         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
14866         * target.h (struct gcc_target): Add function_arg_advance,
14867         function_arg, and function_incoming_arg fields.
14868         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
14869         (TARGET_FUNCTION_INCOMING_ARG): Define.
14870         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
14871         and TARGET_FUNCTION_INCOMING_ARG.
14872         * targhooks.h (default_function_arg_advance): Declare.
14873         (default_function_arg, default_function_incoming_arg): Declare.
14874         * targhooks.c (default_function_arg_advance): New function.
14875         (default_function_arg, default_function_incoming_arg): New function.
14876         * config/i386/i386.c (function_arg_advance): Rename to...
14877         (ix86_function_arg_advance): ...this.  Make static.
14878         (function_arg): Rename to...
14879         (ix86_function_arg): ...this.  Make static.
14880         (TARGET_FUNCTION_ARG_ADVANCE): Define.
14881         (TARGET_FUNCTION_ARG): Define.
14882         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
14883         (FUNCTION_ARG): Delete.
14884         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
14885         (function_arg): Delete prototype.
14886
14887 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
14888
14889         * reginfo.c (init_reg_sets_1): Adjust comments.
14890         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
14891         * calls.c (prepare_call_address): Likewise.
14892         (emit_call_1): Use targetm.calls.return_pops_args.
14893         (expand_call): Likewise.
14894         * function.c (assign_parms): Likewise.
14895         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
14896         * target.h (struct gcc_target) [struct calls]: Add
14897         return_pops_args field.
14898         * targhooks.h (default_return_pops_args): Declare.
14899         * targhooks.c (default_return_pops_args): Define.
14900         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
14901         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
14902         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
14903         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
14904         documentation.
14905         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
14906         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
14907         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
14908         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
14909         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
14910         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
14911         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
14912         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
14913         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
14914         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
14915         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
14916         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
14917         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
14918         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
14919         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
14920         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
14921         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
14922         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
14923         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
14924         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
14925         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
14926         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
14927         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
14928         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
14929         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
14930         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
14931         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
14932         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
14933         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
14934         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
14935         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
14936         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
14937         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
14938         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
14939         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
14940         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
14941         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
14942         * config/i386/i386.c (ix86_return_pops_args): Make static.
14943         Constify arguments.
14944         (TARGET_RETURN_POPS_ARGS): Define.
14945         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
14946         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
14947         (TARGET_RETURN_POPS_ARGS): Define.
14948         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
14949         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
14950         (TARGET_RETURN_POPS_ARGS): Define.
14951
14952 2010-06-29  Richard Guenther  <rguenther@suse.de>
14953
14954         PR middle-end/44667
14955         * tree-inline.c (initialize_inlined_parameters): Make sure
14956         to remap the inlined parameter variable substitutions types.
14957
14958 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
14959
14960         PR rtl-optimization/44659
14961         * combine.c (make_compound_operation) <SUBREG>: Do not return the
14962         result of force_to_mode if it partially re-expanded the compound.
14963
14964 2010-06-28  Jan Hubicka  <jh@suse.cz>
14965
14966         PR middle-end/44671
14967         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
14968         RESULT_DECL.
14969
14970 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
14971
14972         * double-int.h (force_fit_type_double): Remove declaration.
14973         * double-int.c (force_fit_type_double): Move to tree.c.
14974         * tree.h (force_fit_type_double): Declare.
14975         * tree.h (force_fit_type_double): Moved from double-int.c. Use
14976         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
14977         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
14978         * convert.c (convert_to_pointer): Adjust call to
14979         force_fit_type_double.
14980         * tree-vrp.c (extract_range_from_assert,
14981         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
14982         * fold-const.c: Update comment.
14983         (int_const_binop, fold_convert_const_int_from_int,
14984         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
14985         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
14986         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
14987         round_up_loc): Adjust call to force_fit_type_double.
14988
14989 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
14990
14991         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
14992
14993 2010-06-28  Martin Jambor  <mjambor@suse.cz>
14994
14995         * tree-sra.c (convert_callers): New parameter, change fndecls of
14996         recursive calls.
14997         (modify_function): Pass the old decl to convert_callers.
14998
14999 2010-06-28  Martin Jambor  <mjambor@suse.cz>
15000
15001         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
15002         ipa_check_create_node_params and ipa_initialize_node_params with
15003         checking asserts they are not necessary.
15004
15005 2010-06-28  Jan Hubicka  <jh@suse.cz>
15006
15007         PR tree-optimization/44687
15008         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
15009
15010 2010-06-28  Martin Jambor  <mjambor@suse.cz>
15011
15012         PR c++/44535
15013         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
15014         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
15015         instead of BINFO_BASE_BINFO.
15016
15017 2010-06-28  Michael Matz  <matz@suse.de>
15018
15019         PR middle-end/44592
15020         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
15021         proper VDEF chain for intermediate stores in the sequence.
15022
15023 2010-06-28  Jan Hubicka  <jh@suse.cz>
15024
15025         PR tree-optimization/44357
15026         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
15027         uninlinable functions.
15028
15029 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
15030
15031         * config.gcc (powerpc*-*-*): Handle titan.
15032         * config/rs6000/rs6000.c (titan_cost): New costs.
15033         (rs6000_override_options): Add "titan" to processor_target_table.
15034         Add Titan to branch alignment logic.
15035         Correctly set rs6000_cost for titan.
15036         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
15037         * config/rs6000/titan.md: New file.
15038         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
15039
15040 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15041
15042         * tree-browser.c (TB_history_stack): Convert to a VEC.
15043         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
15044         (TB_history_prev): Likewise.
15045
15046 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15047
15048         * vec.h (vec_heap_free): Add parentheses around free.
15049
15050 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
15051
15052         * system.h: Poison GCC_EXCEPT_H for front-end files.
15053
15054         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
15055         langhook.
15056         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
15057         Define to NULL by default.
15058         * except.h: Define GCC_EXCEPT_H.
15059         (doing_eh): Remove prototype.
15060         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
15061         (lang_protect_cleanup_actions): Remove.
15062         * except.c (lang_protect_cleanup_actions): Remove.
15063         (doing_eh): Remove.
15064         (gen_eh_region): Don't check doing_eh here.
15065         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
15066         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
15067         instead of lang_protect_cleanup_actions.
15068         * omp-low.c (maybe_catch_exception): Likewise.
15069         * Makefile.in: Update dependencies.
15070
15071 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
15072
15073         * cgraph.h (struct varpool_node): new used_from_object_file flag.
15074         (struct cgraph_local_info): new used_from_object_file flag.
15075         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
15076         (cgraph_clone_node): initialize used_from_object_file.
15077         (cgraph_create_virtual_clone): initialize used_from_object_file.
15078         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
15079         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
15080         when compiling with -fwhole-program.
15081         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
15082         internal resolver.
15083         * ipa.c (function_and_variable_visibility): Set externally_visible
15084         flag of varpool_node if used_from_object_file flag is set.
15085         (cgraph_externally_visible_p): check used_from_object_file flag.
15086         * doc/invoke.texi (-fwhole-program option): Change description of
15087         externally_visible attribute accordingly.
15088         * doc/extend.texi (externally_visible): Ditto.
15089
15090 2010-06-27  Jan Hubicka  <jh@suse.cz>
15091
15092         * params.def (max-inline-insns-auto): Default to 40.
15093         * doc/invoke.texi (max-inline-insns-auto): Document the change.
15094
15095 2010-06-27  Jan Hubicka  <jh@suse.cz>
15096
15097         PR middle-end/44671
15098         PR middle-end/44686
15099         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
15100         signature change.
15101         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
15102         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
15103
15104 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
15105
15106         * target.h (struct gcc_target): Add register_move_cost field.
15107         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
15108         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
15109         * targhooks.c (default_register_move_cost): New function.
15110         * targhooks.h (default_register_move_cost): Declare function.
15111         * defaults.h (REGISTER_MOVE_COST): Delete.
15112         * ira-int.h (ira_register_move_cost): Update comment.
15113         * ira.c (ira_register_move_cost): Update comment.
15114         * reload.h (register_move_cost): Declare.
15115         * reginfo.c (register_move_cost): New function.
15116         (move_cost): Update comment.
15117         (init_move_cost, memory_move_secondary_cost): Replace
15118         REGISTER_MOVE_COST with register_move_cost.
15119         * postreload.c (reload_cse_simplify_set): (Ditto.).
15120         * reload.c (find_valid_class, find_reloads): (Ditto.).
15121         * reload1.c (choose_reload_regs): (Ditto.).
15122         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
15123         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
15124         * doc/md.texi (can_create_pseudo_p): Update documentation.
15125
15126         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
15127         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
15128         * config/i386/i386.h (ix86_memory_move_cost): Make static.
15129         (TARGET_MEMORY_MOVE_COST): Define.
15130
15131         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15132         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
15133         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
15134         (TARGET_MEMORY_MOVE_COST): Define.
15135
15136 2010-06-27  Richard Guenther  <rguenther@suse.de>
15137
15138         PR tree-optimization/44683
15139         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
15140         false edge from the inverted condition.
15141
15142 2010-06-27  Richard Guenther  <rguenther@suse.de>
15143
15144         PR middle-end/44684
15145         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
15146         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
15147         for register LHS.  Or non-store assignments.
15148
15149 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
15150
15151         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
15152         (sparc_emit_set_const64): Likewise.  Remove disabled code.
15153         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
15154         (sparc_emit_set_const64): Likewise.
15155
15156 2010-06-26  Catherine Moore  <clm@codesourcery.com>
15157
15158         * config/mips/mips.md (alu_type): New attribute.
15159         (type): Infer type from alu_type.
15160         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
15161         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
15162         *subsi3_extended, negsi2, negdi2, *low<mode>,
15163         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
15164         xor<mode>3, *nor<mode>3,
15165         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
15166         *zero_extendhi_truncqi):  Set alu_type instead of type.
15167
15168 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
15169
15170         * config/alpha/alpha.c (alpha_need_linkage): Adjust
15171         splay_tree_new_ggc call.
15172         (alpha_use_linkage): Likewise.
15173
15174 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
15175
15176         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
15177         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
15178         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
15179         (static_specs): Remove switches_need_spaces.
15180         (process_command, do_self_spec): Hardcode handling "-o" instead of
15181         checking switches_need_spaces.
15182         * system.h (SWITCHES_NEED_SPACES): Poison.
15183
15184 2010-06-26  Richard Guenther  <rguenther@suse.de>
15185
15186         PR tree-optimization/44393
15187         * tree-loop-distribution.c (generate_loops_for_partition): Fix
15188         stmt removal and VOP renaming.
15189         (generate_memset_zero): Remove redundant stmt updating.
15190         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
15191         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
15192
15193 2010-06-26  Jan Hubicka  <jh@suse.cz>
15194
15195         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
15196         edges comming from header are equivalent.
15197         (visit_bb): Handle PHIs correctly.
15198         * tree-inline.c (copy_phis_for_bb): Be able to copy
15199         PHI from entry edge.
15200         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
15201
15202 2010-06-26  Richard Guenther  <rguenther@suse.de>
15203
15204         PR middle-end/44674
15205         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
15206         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
15207
15208 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
15209
15210         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
15211         add_infile, alloc_switch): New.
15212         (process_command): Remove variable lang_n_infiles.  Process
15213         options in a single pass.  Use new functions for allocating
15214         infiles and switches arrays.  Properly skip operands of
15215         -Xpreprocessor and -Xassembler.
15216
15217 2010-06-26  Jan Hubicka  <jh@suse.cz>
15218
15219         PR middle-end/44671
15220         * cgraphunit.c (cgraph_function_versioning): Remove wrong
15221         cgraph_make_decl_local call; fix typo copying RTL data.
15222
15223 2010-06-25  DJ Delorie  <dj@redhat.com>
15224
15225         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
15226         (m32c_output_aligned_common): Likewise.
15227         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15228         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15229         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
15230         (m32c_register_pragmas): Register it.
15231         * config/m32c/m32c.c (m32c_get_pragma_address): New.
15232         (m32c_insert_attributes): Set #pragma address decls volatile.
15233         (pragma_entry_eq): New.
15234         (pragma_entry_hash): New.
15235         (m32c_note_pragma_address): New.
15236         (m32c_get_pragma_address): New.
15237         (m32c_output_aligned_common): New.
15238         * doc/extend.texi: Document the new pragma.
15239
15240         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
15241         also.
15242         * config/m32c/predicates.md (m32c_any_operand): Check the code
15243         instead of memory_operand so as to allow matching volatile MEMs.
15244         (m32c_nonimmediate_operand): Likewise.
15245         (mra_operand): Allow volatiles.
15246
15247 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
15248
15249         PR debug/44610
15250         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
15251         address if the offset is unknown.
15252
15253 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
15254
15255         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
15256         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
15257         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
15258         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
15259         to ia64_start_function. Invoke it.
15260         * config/ia64/ia64.c (ia64_start_function): Call new function
15261         dwarf2out_vms_debug_main_pointer.
15262
15263 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15264
15265         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
15266         statements computing the true predicate.
15267
15268 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15269
15270         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
15271         to boolean_true_node.
15272         (reset_bb_predicate): New.
15273         (predicate_bbs): Call reset_bb_predicate.
15274
15275 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15276
15277         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
15278         (tree_if_conversion): Returns true when something has been changed.
15279         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
15280         changed something.
15281
15282 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
15283
15284         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
15285         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
15286         * tree-if-conv.c: Include dbgcnt.h.
15287         (tree_if_conversion): Use if_conversion_tree to count the number of
15288         if-convertible loops.
15289
15290 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
15291
15292         * common.opt (fprefetch-loop-arrays): Re-define
15293         -fprefetch-loop-arrays as a tri-state option with the initial
15294         value of -1.
15295         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
15296         pass only when flag_prefetch_loop_arrays > 0.
15297         * toplev.c (process_options): Note that, with tri-states,
15298         flag_prefetch_loop_arrays>0 means prefetching is enabled.
15299         * config/i386/i386.c (override_options): Enable prefetching at -O3
15300         for a set of CPUs that sw prefetching is helpful.
15301         (software_prefetching_beneficial_p): New.  Return TRUE if software
15302         prefetching is beneficial for the given CPU.
15303
15304 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15305
15306         PR rtl-optimization/44326
15307         * implicit-zee.c (find_removable_zero_extends): Replace
15308         INSN_P with NONDEBUG_INSN_P.
15309
15310 2010-06-25  Martin Jambor  <mjambor@suse.cz>
15311
15312         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
15313         (struct ipa_node_params): Removed the modification_analysis_done flag.
15314         (ipa_is_param_modified): Removed.
15315         (ipa_analyze_node): Declare.
15316         (ipa_compute_jump_functions): Remove declaration.
15317         (ipa_count_arguments): Likewise.
15318         (ipa_detect_param_modifications): Likewise.
15319         (ipa_analyze_params_uses): Likewise.
15320         * ipa-prop.c (struct param_analysis_info): New type.
15321         (visit_store_addr_for_mod_analysis): Removed.
15322         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
15323         moved down in the file.
15324         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
15325         (ipa_count_arguments): Made static.
15326         (mark_modified): New function.
15327         (is_parm_modified_before_call): New function.
15328         (compute_pass_through_member_ptrs): New parameter parms_info, call
15329         is_parm_modified_before_call instead of ipa_is_param_modified.
15330         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
15331         it to compute_pass_through_member_ptrs.
15332         (ipa_compute_jump_functions): New parameter parms_info, pass it to
15333         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
15334         on the callee if it is analyzed.  Made static.
15335         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
15336         is_parm_modified_before_call instead of ipa_is_param_modified.
15337         (ipa_analyze_call_uses): New parameter parms_info, pass it to
15338         ipa_analyze_indirect_call_uses.
15339         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
15340         ipa_analyze_call_uses.
15341         (ipa_analyze_params_uses): New parameter parms_info, pass it to
15342         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
15343         (ipa_analyze_node): New function.
15344         (ipa_print_node_params): Do not dump the modified flag.
15345         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
15346         it.  Do not stream the modified parameter flag.
15347         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
15348         it.  Do not stream the modified parameter flag.
15349         * ipa-cp.c (ipcp_analyze_node): Removed.
15350         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
15351         with only a call to ipa_analyze_node.
15352         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
15353         node with only a call to ipa_analyze_node.
15354
15355 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15356
15357         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
15358
15359 2010-06-25  Jan Hubicka  <jh@suse.cz>
15360
15361         * tree-pass.h (pass_split_functions): Declare.
15362         * opts.c (decode_options): Enable function splitting at -O2
15363         * timevar.def (TV_IPA_FNSPLIT): New macro.
15364         * ipa-split.c: New file.
15365         * common.opt (-fpartial-inlining): New flag.
15366         * Makefile.in (ipa-split.o): New object file.
15367         * passes.c (init_optimization_passes): Add ipa-split.
15368         * params.def (partial-inlining-entry-probability): New parameters.
15369         * doc/invoke.texi (-fpartial-inlining): New.
15370
15371 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15372
15373         PR 44665
15374         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
15375         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
15376         (gimplify_expr): Likewise.
15377
15378 2010-06-25  Martin Jambor  <mjambor@suse.cz>
15379
15380         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
15381         statements instead of bailing out on them.
15382         (ipa_analyze_indirect_call_uses): Do not require that loads from the
15383         parameter are in the same BB as the condition.  Update comments.
15384
15385 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
15386
15387         PR middle-end/43866
15388         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
15389         true or always false, return NULL_TREE.
15390         (tree_unswitch_single_loop): Optimize conditions even when reaching
15391         max-unswitch-level parameter.  If num > 0, optimize first all conditions
15392         using entry checks, then do still reachable block discovery and consider
15393         only conditions in still reachable basic blocks in the loop.
15394
15395         PR tree-optimization/44539
15396         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
15397         the call doesn't have LHS, but has VDEF.
15398
15399 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
15400
15401         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
15402         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
15403         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
15404         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
15405         * system.h (MODIFY_TARGET_NAME): Poison.
15406
15407 2010-06-25  Alan Modra  <amodra@gmail.com>
15408
15409         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
15410         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
15411         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15412         CMODEL_LARGE as default.
15413         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
15414         (offsettable_ok_by_alignment): Delete.
15415         (rs6000_emit_move): Remove mcmodel=medium optimization.
15416
15417 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
15418
15419         With large parts from Jim Wilson:
15420         PR target/43902
15421         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
15422         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15423         * optabs.c (optab_for_tree_code): Likewise.
15424         (expand_widen_pattern_expr): Likewise.
15425         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
15426         out of execute_optimize_widening_mul.
15427         (convert_plusminus_to_widen): New function.
15428         (execute_optimize_widening_mul): Use the two new functions.
15429         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
15430         Remove code to generate widening multiply-accumulate.  Add support
15431         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
15432         * gimple-pretty-print.c (dump_ternary_rhs): New function.
15433         (dump_gimple_assign): Call it when appropriate.
15434         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
15435         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
15436         (expand_gimple_stmt_1): Likewise.
15437         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
15438         WIDEN_MULT_MINUS_EXPR.
15439         * tree-ssa-operands.c (get_expr_operands): Likewise.
15440         * tree-inline.c (estimate_operator_cost): Likewise.
15441         * gimple.c (extract_ops_from_tree_1): Renamed from
15442         extract_ops_from_tree.  Add new arg for a third operand; fill it.
15443         (gimple_build_assign_stat): Support operations with three operands.
15444         (gimple_build_assign_with_ops_stat): Likewise.
15445         (gimple_assign_set_rhs_from_tree): Likewise.
15446         (gimple_assign_set_rhs_with_ops_1): Renamed from
15447         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
15448         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
15449         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
15450         WIDEN_MULT_MINUS_EXPR.
15451         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
15452         (extract_ops_from_tree_1): Adjust declaration.
15453         (gimple_assign_set_rhs_with_ops_1): Likewise.
15454         (gimple_build_assign_with_ops): Pass NULL for last operand.
15455         (gimple_build_assign_with_ops3): New macro.
15456         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
15457         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
15458         functions.
15459         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
15460         (verify_gimple_assign): Call it.
15461         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
15462         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
15463         functions for dealing with three-operand statements.
15464         * tree.c (commutative_ternary_tree_code): New function.
15465         * tree.h (commutative_ternary_tree_code): Declare it.
15466         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
15467         ternary statements.
15468         (gimple_assign_nonzero_warnv_p): Likewise.
15469         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
15470         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
15471         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
15472         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
15473         (struct hashtable_expr): New member ternary in the union.
15474         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
15475         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
15476         (iterative_hash_hashable_expr): Likewise.
15477         (print_expr_hash_elt): Handle EXPR_TERNARY.
15478         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
15479         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
15480         statements.  Handle GIMPLE_TERNARY_RHS.
15481
15482 2010-06-25  Jan Hubicka  <jh@suse.cz>
15483
15484         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
15485
15486 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
15487
15488         PR c/44517
15489         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
15490         parameters are not good.
15491         (c_parser_parameter_declaration): Error unknown type name if the type
15492         name can't start declaration specifiers.
15493
15494 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
15495
15496         * gcc.c (translate_options): Don't mention +e in comment.
15497         (process_command): Don't handle +e specially.
15498
15499 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
15500
15501         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
15502
15503         * ira-build.c (merge_hard_reg_conflicts): New function.
15504         (create_cap_allocno, copy_info_to_removed_store_destinations,
15505         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
15506         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
15507         (remove_unnecessary_allocnos, remove_low_level_allocnos)
15508         copy_nifo_to_removed_store_destination): Use them.
15509         * ira-lives.c (make_hard_regno_born): New function, split out of
15510         make_regno_born.
15511         (make_allocno_born): Likewise.
15512         (make_hard_regno_dead): New function, split out of make_regno_dead.
15513         (make_allocno_dead): Likewise.
15514         (inc_register_pressure): New function, split out of set_allocno_live.
15515         (dec_register_pressure): New function, split out of clear_allocno_live.
15516         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
15517         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
15518         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
15519         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
15520         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
15521         mark_pseudo_regno_live.
15522         (process_bb_node_lives): Use mark_pseudo_regno_live,
15523         make_hard_regno_born and make_allocno_dead.
15524         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
15525         set_allocno_live, clear_allocno_live): Delete functions.
15526
15527         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
15528         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
15529         functions.
15530         (ira_flattening): Use ira_parent_allocno.
15531         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
15532         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
15533
15534         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
15535         statement.
15536
15537         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
15538         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
15539         minmax_set_iter_cond, minmax_set_iter_next,
15540         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
15541         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
15542         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
15543         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
15544         uses changed.
15545
15546         * ira-int.h (struct live_range, live_range_t): Renamed from struct
15547         ira_allocno_live_range and allocno_live_range_t; all uses changed.
15548         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
15549         All uses changed.
15550
15551 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
15552
15553         * thumb2.md (thumb2_tlobits_cbranch): Delete.
15554         (peephole2 to convert zero_extract/compare of single bit to
15555          lshift/compare): New.
15556
15557 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
15558
15559         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
15560         recursive call and call to 'int_const_binop'.
15561         (build_range_check, fold_cond_expr_with_comparison, unextend,
15562         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
15563         multiple_of_p): Adjust call to const_binop.
15564
15565 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
15566
15567         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
15568         determine size of XFmode operand.
15569         (XFmode extended DFmode push splitter): Ditto.
15570         (XFmode extended SFmode push splitter): Ditto.
15571
15572 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15573
15574         PR target/44588
15575         * config/i386/i386.md (extract_code): New.
15576         (<u>divmodqi4): Likewise.
15577         (divmodhiqi3): Likewise.
15578         (udivmodhiqi3): Likewise.
15579         (<u>divqi3): Remvoved.
15580
15581 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
15582
15583         PR middle-end/44492
15584         * recog.h (struct recog_data): Add is_asm field.
15585         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
15586         present in constraints of inline-asm operand and memory operand
15587         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
15588         (extract_insn): Initialize recog_data.is_asm.
15589         * doc/md.texi (Constraints): Document operand side-effect rules.
15590
15591 2010-06-24  Andi Kleen  <ak@linux.intel.com>
15592
15593         * c-parser.c (c_parser_conditional_expression): Call
15594         warn_for_omitted_condop.
15595         * doc/invoke.texi: Document omitted condop warning.
15596
15597 2010-06-24  Nick Clifton<nickc@redhat.com>
15598
15599         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
15600         insn in the sequence is a jump insn before setting its label.
15601
15602 2010-06-24  Alan Modra  <amodra@gmail.com>
15603
15604         * collect2.c (main): Match exactly --version and --help.
15605
15606 2010-06-24  DJ Delorie  <dj@redhat.com>
15607
15608         * config/m32c/m32c-pragma.c: Don't include rtl.h.
15609
15610 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
15611
15612         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
15613         using X87MODEF mode iterator.
15614         (pushsf splitter): Macroize splitter using P mode iterator.
15615         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
15616         mode iterator.
15617
15618         (*movxf_internal): Rename from *movxf_integer.
15619         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
15620         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
15621         (*movdf_internal): Rename from *movdf_integer.
15622         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
15623         (*movsf_internal): Rename from *movdf_1.
15624
15625 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
15626
15627         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
15628         (const_gimple_seq_node): Removed typedefs.
15629
15630         * gimple.h (gimple_seq_node_d, gimple_seq_node)
15631         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
15632
15633 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15634
15635         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
15636         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
15637         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
15638         and CODE_FOR_vec_extract_lo_v4df.
15639
15640         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
15641         Changed to define_insn_and_split.
15642         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
15643         (vec_extract_lo_v16hi): Likewise.
15644         (vec_extract_lo_v32qi): Likewise.
15645         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
15646         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
15647
15648 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
15649
15650         PR target/44640
15651         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
15652         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
15653         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
15654         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
15655         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
15656
15657         PR target/44640
15658         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
15659
15660         PR other/44644
15661         * df-core.c (struct df): Rename to df_d.
15662         * df.h (struct df): Likewise.
15663         * dse.h (struct df): Remove forward declaration.
15664         * recog.h (struct insn_data): Rename to:
15665         (struct_insn_data_d).  Adjusted all users.
15666
15667 2010-06-23  Arnaud Charlet  <charlet@adacore.com
15668
15669         PR ada/22220
15670         * doc/install.texi: Update requirements to build GNAT.
15671
15672 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
15673
15674         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
15675         enum type.
15676         (m68k_sched_attr_opx_type): Remove unreachable return.
15677         (m68k_sched_attr_opy_type): Likewise.
15678         (m68k_sched_attr_size): Likewise.
15679         (sched_get_opxy_mem_type): Likewise.
15680         (m68k_sched_attr_op_mem): Likewise.
15681
15682 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
15683
15684         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
15685         new statement and adjust VDEF only if necessary.  Remove superfluous
15686         call to maybe_clean_or_replace_eh_stmt.
15687         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
15688         copy the flags.
15689         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
15690         * tree-inline.c (copy_bb): ...and not there.
15691
15692 2010-06-22  Cary Coutant  <ccoutant@google.com>
15693
15694         * dwarf2out.c (is_nested_in_subprogram): New function.
15695         (should_move_die_to_comdat): Use it.
15696         (copy_ancestor_tree): Don't mark DIEs here.
15697         (copy_decls_walk): Start walk from root of newly-added tree;
15698         mark DIEs here instead.
15699
15700 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15701
15702         * config/i386/i386.md (unit): Also check sseishft1.
15703
15704 2010-06-22  Jan Hubicka  <jh@suse.cz>
15705
15706         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
15707         enabled.
15708
15709 2010-06-22  Jan Hubicka  <jh@suse.cz>
15710
15711         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
15712         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
15713         Return true if something changed.
15714         * df.h (df_confluence_function_n): Return bool.
15715         * df-core.c (df_worklist_propagate_forward,
15716         df_worklist_propagate_backward): Track changes and ages.
15717         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
15718         track ages.
15719         * dse.c (dse_confluence_n): Return always true.
15720
15721 2010-06-22  Jan Hubicka  <jh@suse.cz>
15722
15723         * bitmap.c (bitmap_clear_bit): Micro optimize.
15724
15725 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
15726
15727         * config/i386/i386.md (SWI1248x): New mode iterator.
15728         (SWI48x): Ditto.
15729         (SWI12): Ditto.
15730         (SWI24): Ditto.
15731
15732         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
15733         SWI1248x mode iterator.
15734         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
15735         using SWI124 mode iterator.
15736         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
15737         mode iterator.
15738         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
15739         *pushdi2_prologue_rex64 using P mode iterator.
15740         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
15741         using SWI48 mode iterator.
15742         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
15743         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
15744         using SWI1248x mode iterator.
15745         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
15746         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
15747         SWI48 mode iterator.
15748         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
15749         iterator.
15750         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
15751         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
15752         SWI12 mode iterator.
15753         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
15754         SWI12 mode iterator.
15755         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
15756         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
15757         SWI24 mode iterator.
15758         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
15759         SWI48 mode iterator.
15760         (mov<mode>_insn_1): New expander.
15761         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
15762         using SWI48x mode iterator.
15763
15764         (*movoi_internal_avx): Rename from *movoi_internal.
15765         (*movti_internal_rex64): Rename from *movti_rex64.
15766         (*movti_internal_sse): Rename from *movti_sse.
15767         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
15768         (*movdi_internal): Rename from *movdi_2.
15769         (*movsi_internal): Rename from *movsi_1.
15770         (*movhi_internal): Rename from *movhi_1.
15771         (*movqi_internal): Rename from *movqi_1.
15772
15773         (insv): Update the call to gen_movsi_insv_1 for rename.
15774         * config/i386/i386.c (promote_duplicated_reg): Ditto.
15775
15776 2010-06-22  Jan Hubicka  <jh@suse.cz>
15777
15778         * passes.c (execute_function_todo): Move call of statistics_fini_pass
15779         to ...
15780         (execute_todo) ... this one.
15781
15782 2010-06-22  Alan Modra  <amodra@gmail.com>
15783
15784         PR target/44364
15785         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15786         * caller-save.c (insert_restore, insert_save): Use non-validate
15787         form of adjust_address.
15788
15789 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15790
15791         PR target/39690
15792         * config/pa/pa.c (override_options): Disable
15793         -freorder-blocks-and-partition.
15794
15795 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
15796
15797         PR target/44615
15798         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
15799
15800         * config/i386/i386.md (type): Add sseishft1
15801
15802         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
15803         (ppro_insn_load): Likewise.
15804         (ppro_insn_store): Likewise.
15805         (ppro_insn_both): Likewise.
15806
15807         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
15808         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
15809         for type.
15810         (*vec_extractv2di_1_avx): Likewise.
15811         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
15812         type.  Remove atom_unit.
15813         (*vec_extractv2di_1_sse2): Likewise.
15814
15815 2010-06-21  DJ Delorie  <dj@redhat.com>
15816
15817         * diagnostic.h (diagnostic_classification_change_t): New.
15818         (diagnostic_context): Add history and push/pop list.
15819         (diagnostic_push_diagnostics): Declare.
15820         (diagnostic_pop_diagnostics): Declare.
15821         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
15822         from pragmas in a history chain instead of the global table.
15823         (diagnostic_push_diagnostics): New.
15824         (diagnostic_pop_diagnostics): New.
15825         (diagnostic_report_diagnostic): Scan history chain to find state
15826         of diagnostics as of the diagnostic location.
15827         * opts.c (set_option): Pass UNKNOWN_LOCATION to
15828         diagnostic_classify_diagnostic.
15829         (enable_warning_as_error): Likewise.
15830         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
15831         use in the history chain.
15832         * doc/extend.texi: Document pragma GCC diagnostic changes.
15833
15834 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
15835
15836         * dwarf2out.c (add_linkage_name): New function.  Don't add
15837         anything to DW_TAG_member DIEs.
15838         (add_name_and_src_coords_attributes): Use it.
15839         (gen_variable_die): Call it for C++ static data members if
15840         specification is DW_TAG_member.
15841
15842         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
15843         C++ char16_t and char32_t.
15844
15845         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
15846         * genattrtab.c: Include vecprim.h.
15847         (cached_attrs, cached_attr_count, attrs_seen_once,
15848         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
15849         attrs_cached_after): New variables.
15850         (find_attrs_to_cache): New function.
15851         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
15852         (write_test_expr): Add attrs_cached argument, return it too,
15853         attempt to cache non-const attributes used more than once in
15854         a single case handling.
15855         (write_attr_get): Use find_attrs_to_cache, for caching candidates
15856         emit cached_* variables.  Adjust write_attr_set callers.
15857         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
15858         to find attributes that should be cached in this block.  Adjust
15859         write_test_expr callers.
15860         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
15861         callers.
15862         (make_automaton_attrs): Adjust write_test_expr caller.
15863
15864         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
15865         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
15866         (make_automaton_attrs): If find_tune_attr returns non-NULL,
15867         write separate internal_dfa_insn_code_* and insn_default_latency_*
15868         functions for each attribute's value and emit init_sched_attrs
15869         function and function pointers.
15870         * genattr.c (const_attrs, reservations): New variables.
15871         (gen_attr): Add const attributes to const_attrs vector.
15872         (check_tune_attr, find_tune_attr): New functions.
15873         (main): Add reservations to reservations vector.  If find_tune_attr
15874         returns true, add prototype for init_sched_attrs and make
15875         internal_dfa_insn_code and insn_default_latency function pointers,
15876         otherwise define init_sched_attrs as dummy macro.
15877         * cfgexpand.c: Include insn-attr.h.
15878         (gimple_expand_cfg): Call init_sched_attrs.
15879
15880         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
15881
15882         PR target/44575
15883         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
15884         va_arg from a set of register save slots into a temporary,
15885         if the container is bigger than type size, do the copying
15886         using smaller mode or using memcpy.
15887
15888         PR bootstrap/44426
15889         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
15890         prototype.
15891         (sel_print_to_dot): Remove macro.
15892         (sel_print): Likewise.  New prototype.
15893         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
15894         (sel_print): New function.
15895
15896 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15897
15898         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
15899         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
15900
15901 2010-06-21  Nick Clifton  <nickc@redhat.com>
15902
15903         * config/rx/rx.h (PTRDIFF_TYPE): Define.
15904         (SMALL_REGISTER_CLASS): Define (to zero).
15905         (PRINT_OPERAND): Delete.
15906         (PRINT_OPERAND_ADDRESS): Delete.
15907         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
15908         (rx_print_operand_address): Delete prototype.
15909         * config/rx/rx.c (rx_print_operand): Make static.
15910         Allow %H and %L to handle CONST_DOUBLEs.
15911         (rx_print_operand_address): Make static.
15912         (rx_gen_move_template): Rename local variable 'template' to
15913         out_template.
15914         (rx_function_arg): Do not pass unknown sized objects in registers.
15915         (TARGET_PRINT_OPERAND): Define.
15916         (TARGET_PRINT_OPERAND_ADDRESS): Define.
15917
15918 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
15919
15920         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
15921
15922 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
15923
15924         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
15925         stack-alignment for simple leaf-functions.
15926
15927 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
15928
15929         * doc/install.texi: Document bootstrap-lto.
15930
15931 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
15932
15933         PR debug/44248
15934         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
15935         (input_function): Drop them here, if VTA is disabled.
15936
15937 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
15938
15939         PR target/44546
15940         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
15941         New predicate.
15942         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
15943         ix86_swapped_fp_comparsion_operator instead of
15944         ix86_fp_comparison_operator.
15945
15946         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
15947         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
15948         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
15949         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
15950         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
15951         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
15952
15953 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
15954
15955         PR other/32998
15956         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
15957         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
15958         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
15959         (decode_cmdline_option): Update for this return value.  Set
15960         orig_option_with_args_text field.  Set arg field for unknown
15961         options.  Make static.
15962         (decode_cmdline_options_to_array): New.
15963         (prune_options): Update handling of find_opt return value.
15964         * opts.c (read_cmdline_option): Take decoded option.  Return void.
15965         (read_cmdline_options): Take decoded options.
15966         (decode_options): Add parameters for decoded options.  Use
15967         decode_cmdline_options_to_array.  Use decoded options for -O
15968         scan.  Use integral_argument for -O parameters.  Update call to
15969         read_cmdline_options.
15970         (enable_warning_as_error): Update handling of find_opt return value.
15971         * opts.h: Update comment on unknown options.
15972         (struct cl_decoded_option): Update comments on opt_index and arg.
15973         Add orig_option_with_args_text.
15974         (decode_cmdline_option): Remove.
15975         (decode_cmdline_options_to_array): Declare.
15976         (decode_options): Update prototype.
15977         * toplev.c (save_argv): Remove.
15978         (save_decoded_options, save_decoded_options_count): New.
15979         (read_integral_parameter): Remove.
15980         (print_switch_values): Use decoded options.
15981         (toplev_main): Don't set save_argv.  Update call to decode_options.
15982         * toplev.h (read_integral_parameter): Remove.
15983         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
15984
15985 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
15986
15987         PR target/44072
15988         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
15989         immediate.
15990         * constraints.md (Pw, Px): New constraints.
15991         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
15992
15993 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
15994
15995         * config/i386/sse.md (fma4modesuffixf4): Removed.
15996         (ssemodesuffixf2s): Likewise.
15997         (ssemodesuffixf4): Likewise.
15998         (ssemodesuffixf2c): Likewise.
15999         (ssescalarmodesuffix2s): Likewise.
16000         (avxmodesuffixf2c): Likewise.
16001         (ssemodesuffix): New.
16002         (ssescalarmodesuffix): Likewise.
16003         Update patterns with ssemodesuffix and ssescalarmodesuffix.
16004
16005 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
16006
16007         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
16008
16009 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16010
16011         * stor-layout.c (debug_rli): Remove unused local variables.
16012
16013 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
16014
16015         PR rtl-optimization/40900
16016         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
16017         original expression for later reuse.
16018         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
16019         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
16020
16021 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
16022
16023         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
16024         double_int_fits_in_uhwi_p): Implement as static inline.
16025         (double_int_xor): New inline function.
16026         (double_int_lrotate, double_int_rrotate, double_int_max,
16027         double_int_umax, double_int_smax, double_int_min, double_int_umin,
16028         double_int_smin): Declare.
16029         (lrotate_double, rrotate_double): Remove declaration.
16030         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
16031         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
16032         (double_int_lrotate, double_int_rrotate, double_int_max,
16033         double_int_umax, double_int_smax, double_int_min, double_int_umin,
16034         double_int_smin): New function.
16035         * fold-const.c (int_const_binop): Clean up, use double_int_*
16036         functions.
16037         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
16038         double_int_* and immed_double_int_const functions.
16039
16040 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
16041
16042         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
16043         * function.c (types_used_by_cur_var_decl): Likewise.
16044         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
16045
16046 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
16047
16048         * tree.h (record_layout_info): Change type of pending_statics field
16049         to a VEC.
16050         * stor-layout.c (start_record_layout): Store NULL into
16051         pending_statics.
16052         (debug_rli): Call debug_vec_tree instead of debug_tree.
16053         (place_field): Likewise.
16054         (finish_record_layout): Likewise.
16055
16056 2010-06-18  Alan Modra  <amodra@gmail.com>
16057
16058         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
16059
16060 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16061
16062         PR target/43740
16063         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
16064         for SET source operand from SET destination operand.
16065
16066 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
16067
16068         PR rtl-optimization/39871
16069         * reload1.c (init_eliminable_invariants): For flag_pic, disable
16070         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
16071         (function_invariant_p): Rule out a plus of frame or arg pointer with
16072         a SYMBOL_REF.
16073         * ira.c (find_reg_equiv_invariant_const): Likewise.
16074
16075 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
16076
16077         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
16078         print_operand_address and puts to output the operand for CONST.
16079
16080 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
16081
16082         PR debug/44572
16083         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
16084         hook.
16085
16086 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16087
16088         * v850-protos.h (print_operand): Delete.
16089         (print_operand_address): Delete.
16090         * v850.h (PRINT_OPERAND): Delete.
16091         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16092         (PRINT_OPERAND_ADDRESS): Delete.
16093         * v850.c (print_operand_address): Rename to...
16094         (v850_print_operand_address): ...this.  Make static. Call
16095         v850_print_operand.
16096         (print_operand): Rename to...
16097         (v850_print_operand): ...this.  Make static.  Call
16098         v850_print_operand_address.
16099         (v850_print_operand_punct_valid_p): New function.
16100         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16101         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16102
16103 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16104
16105         * config/sh/sh-protos.h (print_operand): Delete.
16106         (print_operand_address): Delete.
16107         * config/sh/sh.h (PRINT_OPERAND): Delete.
16108         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16109         (PRINT_OPERAND_ADDRESS): Delete.
16110         * config/sh/sh.c (sh_print_operand_address): Make static.
16111         (sh_print_operand): Make static.  Call sh_print_operand_address
16112         and sh_print_operand.
16113         (sh_print_operand_punct_valid_p): New function.
16114         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16115         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16116
16117 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16118
16119         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
16120         (mcore_print_operand_address): Delete.
16121         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
16122         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16123         (PRINT_OPERAND_ADDRESS): Delete.
16124         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
16125         (mcore_print_operand): Make static.
16126         (mcore_print_operand_punct_valid_p): New function.
16127         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
16128         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16129
16130 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16131
16132         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
16133         (print_operand_address): Delete.
16134         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
16135         (PRINT_OPERAND_ADDRESS): Delete.
16136         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
16137         static.
16138         (m68hc11_print_operand): Make static.
16139         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16140
16141 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16142
16143         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
16144         (m32r_print_operand_address): Delete.
16145         * config/m32r/m32r.h (m32r_punct_chars): Delete.
16146         (PRINT_OPERAND): Delete.
16147         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16148         (PRINT_OPERAND_ADDRESS): Delete.
16149         * config/m32r/m32r.c (m32r_punct_chars): Make static.
16150         (m32r_print_operand_address): Make static.
16151         (m32r_print_operand): Make static.
16152         (m32r_print_operand_punct_valid_p): New function.
16153         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16154         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16155
16156 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16157
16158         * config/iq2000/iq2000-protos.h (print_operand): Delete.
16159         (print_operand_address): Delete.
16160         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
16161         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16162         (PRINT_OPERAND_ADDRESS): Delete.
16163         (iq2000_print_operand_punct): Delete.
16164         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
16165         (iq2000_print_operand_address): Make static.
16166         (iq2000_print_operand): Make static.
16167         (iq2000_print_operand_punct_valid_p): New function.
16168         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16169         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16170
16171 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16172
16173         * config/frv/frv-protos.h (frv_print_operand): Delete.
16174         (frv_print_operand_address): Delete.
16175         * config/frv/frv.h (PRINT_OPERAND): Delete.
16176         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16177         (PRINT_OPERAND_ADDRESS): Delete.
16178         * config/frv/frv.c (frv_print_operand_address): Make static.
16179         (frv_print_operand): Make static.
16180         (frv_print_operand_punct_valid_p): New function.
16181         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16182         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16183
16184 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
16185
16186         * tree.h (vec_member): Declare.
16187         * tree.c (vec_member): Define.
16188
16189 2010-06-17  Richard Guenther  <rguenther@suse.de>
16190
16191         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
16192         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
16193
16194 2010-06-17  Richard Guenther  <rguenther@suse.de>
16195
16196         * tree-inline.c (declare_return_variable): Remove bogus code.
16197
16198 2010-06-17  Richard Guenther  <rguenther@suse.de>
16199
16200         * gimplify.c (gimplify_bind_expr): Always promote complex
16201         and vector variables to registers if possible.
16202
16203 2010-06-17  Richard Guenther  <rguenther@suse.de>
16204
16205         * expr.c (get_inner_reference): Use double_int for bit_offset
16206         calculation.
16207
16208 2010-06-16  DJ Delorie  <dj@redhat.com>
16209
16210         * common.opt (-fstrict-volatile-bitfields): new.
16211         * doc/invoke.texi: Document it.
16212         * fold-const.c (optimize_bit_field_compare): For volatile
16213         bitfields, use the field's type to determine the mode, not the
16214         field's size.
16215         * expr.c (expand_assignment): Likewise.
16216         (get_inner_reference): Likewise.
16217         (expand_expr_real_1): Likewise.
16218         * expmed.c (store_fixed_bit_field): Likewise.
16219         (extract_bit_field_1): Likewise.
16220         (extract_fixed_bit_field): Likewise.
16221
16222 2010-06-16  Richard Guenther  <rguenther@suse.de>
16223
16224         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
16225
16226 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
16227
16228         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
16229         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
16230         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
16231         * debug.c: Likewise.
16232         * sdbout.c: Likewise.
16233         * vmsdbgout.c: Likewise.
16234         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
16235         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
16236         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
16237         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
16238         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
16239         * dwarf2out.c (dw_fde_struct): New fields
16240         dw_fde_vms_{end,begin}_prologue.
16241         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
16242         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
16243         (dwarf2out_vms_end_prologue): New function.
16244         (dwarf2out_vms_begin_epilogue): New function.
16245         (dw_val_struct): New value dw_val_class_vms_delta.
16246         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
16247         begin_epilogue for VMS.
16248         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
16249         new static functions.
16250         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
16251         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
16252         static functions.
16253         (print_die): New case dw_val_class_vms_delta.
16254         (attr_checksum): Likewise.
16255         (same_dw_val_p: Likewise.
16256         (size_of_die): Likewise.
16257         (value_format): Likewise.
16258         (output_die): Likewise.
16259         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
16260         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
16261         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
16262         dwarf2out_cfi_begin_epilogue
16263         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
16264
16265 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
16266
16267         * config/cris/cris-protos.h (cris_print_operand): Delete.
16268         (cris_print_operand_address): Delete.
16269         * config/cris/cris.h (PRINT_OPERAND): Delete.
16270         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16271         (PRINT_OPERAND_ADDRESS): Delete.
16272         * config/cris/cris.c (cris_print_operand_address): Make static.
16273         (cris_print_operand): Make static.
16274         (cris_print_operand_punct_valid_p): New function.
16275         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16276         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16277
16278 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
16279
16280         * config/arm/arm-protos.h (arm_print_operand): Delete.
16281         (arm_print_operand_address): Delete.
16282         * config/arm/arm.h (PRINT_OPERAND): Delete.
16283         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16284         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
16285         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
16286         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
16287         (arm_print_operand): Make static.
16288         (arm_print_operand_punct_valid_p): New function.
16289         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
16290         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16291
16292 2010-06-16  Nick Clifton  <nickc@redhat.com>
16293
16294         * config/rx/constraints.md (NEGint4): New constraint.
16295         * config/rx/rx.md (attr cc): Add set_zsc.
16296         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
16297         initialised.
16298         (cmpsf): Likewise.
16299         (call_internal): Clobber the cc0 register.
16300         (call_value_internal): Likewise.
16301         (cstoresi4): Likewise.
16302         (movsieq): Likewise.
16303         (movsine): Likewise.
16304         (addsi3): Add alternative to handle small negative constants.
16305         (sunsi3): Likewise.
16306         (addsi3): Do not set the O bit in the cc0 register.
16307         (adddi3): Likewise.
16308         (subsi3): Likewise.
16309         (subdi3): Likewise.
16310         (andsi3): Reorder alternatives to prefer shorter forms.
16311         (mulsi3): Likewise.
16312         (iorsi3): Likewise.
16313         (negsi2): Note that the cc0 flags are set.
16314         (rotlsi3): Note that only the Z and S bits are set in cc0.
16315         (lshrsi3): Likewise.
16316         (ashlsi3): Likewise.
16317         (subsf3): Use %Q for the MEM operand.
16318         (fix_truncsfsi2): Likewise.
16319         (floatsisf2): Likewise.
16320         (bitset): Remove early clobber from destination.
16321         (bitset_in_memory): Likewise.
16322         (lrintsf2): Clobber the cc0 register.
16323         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
16324         (rx_print_operand): Handle %N.
16325
16326 2010-06-16  Jan Hubicka  <jh@suse.cz>
16327
16328         * df-core.c (df_compact_blocks): Free problem_temps vector.
16329
16330 2010-06-16  Martin Jambor  <mjambor@suse.cz>
16331
16332         PR tree-optimization/43905
16333         * tree-sra.c: Include tree-inline.h.
16334         (create_abstract_origin): Removed.
16335         (modify_function): Version the call graph node instead of creating
16336         abstract origins and dealing with same_body aliases.
16337         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
16338         function is versionable.
16339         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
16340
16341 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
16342
16343         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
16344         (CHOOSE_DYNAMIC_LINKER): Update.
16345
16346 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
16347
16348         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
16349         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
16350         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
16351         *prefetch_3dnow_rex.
16352
16353 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
16354
16355         * target.h (struct asm_out):Add declare_constant_name field.
16356         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16357         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
16358         * output.h (default_asm_declare_constant_name): Declare.
16359         (assemble_label): Update prototype.
16360         * varasm.c (assemble_constant_contents): Use
16361         targetm.asm_out.declare_constant_name target hook.
16362         (assemble_label): Add 'file' argument.
16363         (default_asm_declare_constant_name): New function.
16364         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
16365         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
16366         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
16367
16368         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
16369         * config/darwin.c (darwin_asm_declare_constant_name): New function.
16370         (machopic_output_indirection): Update assemble_label argument list.
16371         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
16372         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
16373
16374 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
16375
16376         PR middle-end/44391
16377         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
16378         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
16379
16380 2010-06-15  Richard Guenther  <rguenther@suse.de>
16381
16382         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
16383
16384 2010-06-15  Paul Brook  <paul@codesourcery.com>
16385
16386         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
16387         hard-float ABI.
16388
16389 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
16390
16391         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
16392         don't get a vector type for output.
16393
16394 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
16395
16396         PR fortran/44536
16397         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
16398         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
16399         (LANG_HOOKS_DECLS): Add it.
16400         * gimplify.c (omp_notice_variable): Call
16401         lang_hooks.decls.omp_report_decl.
16402
16403 2010-06-15  Martin Jambor  <mjambor@suse.cz>
16404
16405         PR lto/44464
16406         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
16407         on the newly dead SSA name.
16408
16409 2010-06-15  Alan Modra  <amodra@gmail.com>
16410
16411         * doc/invoke.texi: Add mcmodel to powerpc options.
16412         * configure.ac: Add HAVE_LD_LARGE_TOC test.
16413         * configure: Regenerate.
16414         * config.in: Regenerate.
16415         * config/rs6000/linux64.opt (mcmodel): New.
16416         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
16417         (TARGET_CMODEL, SET_CMODEL): Define.
16418         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
16419         select CMODEL_MEDIUM default.
16420         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
16421         (TARGET_CMODEL): Define default.
16422         * config/rs6000/rs6000.c (cmodel): New variable.
16423         (rs6000_explicit_options): Add cmodel field.
16424         (rs6000_handle_option): Handle -mcmodel.
16425         (create_TOC_reference): Add largetoc_reg param.  Generate high,
16426         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
16427         (rs6000_delegitimize_address): Recognise new toc reference rtl
16428         and minimal-toc rtl.
16429         (rs6000_legitimize_reload_address): Handle new toc references.
16430         (print_operand_address): Handle legitimate_constant_pool_address_p
16431         match before lo_sum.
16432         (rs6000_eliminate_indexed_memrefs): Tidy.
16433         (rs6000_emit_move): Tweak threshold for inlining constants.
16434         Keep rs6000_emit_allocate_stack large stack frame offsets
16435         loaded into r0 inline.
16436         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
16437         (tocrel_base, tocrel_offset): New variables.
16438         (toc_relative_expr_p): Set them here.
16439         (print_operand_address): Skip over any offset on constant pool address.
16440         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
16441         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
16442         (offsettable_ok_by_alignment): New function.
16443         (rs6000_emit_move): Address suitably aligned local symbol_refs
16444         relative to the toc pointer for -mcmodel=medium.
16445         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
16446         strict param.  Allow lo_sum version of addressing.  Verify reg
16447         used for -mminimal-toc and -mcmodel != small.  Update all callers.
16448         * config/rs6000/constraints.md: Update for above change.
16449         * config/rs6000/predicates.md: Likewise.
16450         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
16451         code.
16452         (tls_gd): Split for -mcmodel=medium/large.
16453         (tls_gd_high, tls_gd_low): New.
16454         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
16455         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
16456         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
16457         (largetoc_high, largetoc_low): New.
16458         (cmptf_internal2): Add clobber.
16459         * config/rs6000/rs6000-protos.h: Update.
16460
16461 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
16462
16463         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
16464         true if no prefetch is going to be generated for a given group.
16465         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
16466         estimate the prefetch_count.
16467         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
16468         prefetch count by considering the unroll_factor and prefetch_mod
16469         for is_loop_prefetching_profitable.
16470
16471 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
16472
16473         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
16474         anything if the argument is not a MEM.
16475
16476 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
16477
16478         PR debug/43650
16479         PR debug/44181
16480         PR debug/44247
16481         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
16482         debug stmts.
16483         (canonicalize_loop_ivs): Likewise.
16484
16485 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
16486
16487         PR debug/43656
16488         * haifa-sched.c (setup_insn_reg_pressure_info,
16489         update_register_pressure): Reject debug insns.
16490         (ready_sort): Don't setup reg pressure for debug insns.
16491         (schedule_insn): Don't update reg pressure for debug insns.
16492
16493 2010-06-14  Richard Guenther  <rguenther@suse.de>
16494
16495         * lto-streamer.c (cached_bp): Remove.
16496         (bitpack_delete): Likewise.
16497         (bitpack_create): Likewise.
16498         (bp_get_next_word): Likewise.
16499         (bp_pack_value, bp_unpack_value): Move ...
16500         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
16501         Re-implement.
16502         (struct bitpack_d): Likewise.
16503         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
16504         New inline functions.
16505         * lto-streamer-out.c (lto_output_bitpack): Remove.
16506         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
16507         (pack_value_fields): Adjust.
16508         (lto_write_tree): Likewise.
16509         (output_gimple_stmt): Likewise.
16510         (output_function): Likewise.
16511         * lto-streamer-in.c (input_gimple_stmt): Adjust.
16512         (input_function): Likewise.
16513         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
16514         (lto_input_bitpack): Remove.
16515         (lto_materialize_tree): Adjust.
16516         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
16517         * lto-cgraph.c (lto_output_edge): Adjust.
16518         (lto_output_node): Likewise.
16519         (lto_output_varpool_node): Likewise.
16520         (lto_output_ref): Likewise.
16521         (input_node): Likewise.
16522         (input_varpool_node): Likewise.
16523         (input_ref): Likewise.
16524         (input_edge): Likewise.
16525         (output_node_opt_summary): Likewise.
16526         (input_node_opt_summary): Likewise.
16527         * ipa-pure-const.c (pure_const_write_summary): Likewise.
16528         (pure_const_read_summary): Likewise.
16529         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
16530         (ipa_read_indirect_edge_info): Likewise.
16531         (ipa_write_node_info): Likewise.
16532         (ipa_read_node_info): Likewise.
16533
16534 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
16535
16536         PR target/44534
16537         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
16538         (vec_extract_lo_v16hi): Likewise.
16539         (vec_extract_lo_v32qi): Likewise.
16540
16541 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
16542
16543         PR bootstrap/44426
16544         * tree.h (build_call_expr): Don't define as vararg macro, instead
16545         add a prototype.
16546         * builtins.c (build_call_nofold): Remove.
16547         (expand_builtin_int_roundingfn, expand_builtin_pow,
16548         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
16549         expand_builtin_memset_args, expand_builtin_strcmp,
16550         expand_builtin_strncmp, expand_builtin_memory_chk): Use
16551         build_call_nofold_loc instead of build_call_nofold.
16552         (build_call_expr): New function.
16553
16554         PR tree-optimization/44508
16555         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
16556         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
16557         don't eliminate trivially dead stmts.
16558         * tree-vrp.c (vrp_finalize): Pass false as last argument
16559         to substitute_and_fold.
16560         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
16561         to substitute_and_fold.
16562         * tree-ssa-ccp.c (ccp_finalize): Likewise.
16563
16564         PR bootstrap/44509
16565         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
16566
16567 2010-06-14  Ira Rosen  <irar@il.ibm.com>
16568
16569         PR tree-optimization/44507
16570         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
16571         to build initial vector for BIT_AND_EXPR.
16572         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
16573
16574 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
16575
16576         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
16577         adjust z10prop set_attr.
16578
16579 2010-06-13  Jan Hubicka  <jh@suse.cz>
16580
16581         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
16582         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
16583         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
16584         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
16585         datastructure checks into checking asserts.
16586         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
16587         * tree-ssa-sccvn.c (VN_INFO): Likewise.
16588         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
16589         df_ref_create_structure): Likewise.
16590         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
16591         pool_free): Use gcc_checking_assert.
16592         * alias.c (get_alias_set): Likewise.
16593         * var-tracking.c (variable_htab_free, shared_hash_copy,
16594         canonicalize_values_mark, variable_merge_over_cur): Likewise.
16595         * lto-streamer.c (bp_unpack_value): Likewise.
16596
16597 2010-06-13  Richard Guenther  <rguenther@suse.de>
16598
16599         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
16600         Do not stream but initialize TYPE_CANONICAL to NULL.
16601         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
16602         * gimple.c (gimple_types_compatible_p): Disregard
16603         TYPE_STRUCTURAL_EQUALITY_P.
16604         (gimple_register_type): Use TYPE_CANONICAL as cache.
16605         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
16606         before registering common types.
16607         * config/i386/i386.c (ix86_function_arg_boundary): Do not
16608         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
16609         * tree.h (TYPE_CANONICAL): Clarify documentation.
16610
16611 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
16612
16613         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16614         LIBCALL_VALUE): Remove macros.
16615         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
16616         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16617         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16618         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
16619         (ia64_function_value): Make static. Handle receiving the function
16620         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
16621
16622 2010-06-12  Jan Hubicka  <jh@suse.cz>
16623
16624         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
16625         at correct place.
16626
16627 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
16628
16629         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
16630
16631 2010-06-12  Jan Hubicka  <jh@suse.cz>
16632
16633         * df-core.c (df_clear_bb_info): New function.
16634         (df_set_blocks): bb_info is always allocated.
16635         (df_get_bb_info): Use block_info_elt_size.
16636         (df_set_bb_info): Likewise.
16637         (df_compact_blocks): Update for new block_info.
16638         (grow_bb_info): New function.
16639         * df-problems.c (df_grow_bb_info): Move to df-core.c
16640         (df_rd_set_bb_info): Remove.
16641         (df_rd_free_bb_info): Do not free block pool.
16642         (df_rd_alloc): Do not create pool, use check for
16643         obstack presence instead of NULL pointer for new blocks.
16644         (df_rd_free): DO not free alloc pool; clear block_info.
16645         (problem_RD): Add size of block info structure.
16646         (df_lr_set_bb_info): Remove.
16647         (df_lr_free_bb_info): Do not free block pool.
16648         (df_lr_alloc): Do not create pool, use check for
16649         obstack presence instead of NULL pointer for new blocks.
16650         (df_lr_free): DO not free alloc pool; clear block_info.
16651         (problem_LR): Add size of block info structure.
16652         (df_live_set_bb_info): Remove.
16653         (df_live_free_bb_info): Do not free block pool.
16654         (df_live_alloc): Do not create pool, use check for
16655         obstack presence instead of NULL pointer for new blocks.
16656         (df_live_free): DO not free alloc pool; clear block_info.
16657         (problem_LIVE): Add size of block info structure.
16658         (problem_CHAIN): Add size of block info structure.
16659         (df_byte_lr_set_bb_info): Remove.
16660         (df_byte_lr_free_bb_info): Do not free block pool.
16661         (df_byte_lr_alloc): Do not create pool, use check for
16662         obstack presence instead of NULL pointer for new blocks.
16663         (df_byte_lr_free): DO not free alloc pool; clear block_info.
16664         (problem_BYTE_LR): Add size of block info structure.
16665         (problem_NOTE): Add size of block info structure.
16666         (df_byte_MD_set_bb_info): Remove.
16667         (df_byte_MD_free_bb_info): Do not free block pool.
16668         (df_byte_MD_alloc): Do not create pool, use check for
16669         obstack presence instead of NULL pointer for new blocks.
16670         (df_byte_MD_free): DO not free alloc pool; clear block_info.
16671         (problem_BD): Add size of block info structure.
16672         * df-scan.c (df_scan_free_internal): Free block pool.
16673         (df_scan_set_bb_info): Remove.
16674         (df_scan_free_bb_info): Check for artificial_defs instead
16675         of bb_info being non-NULL.
16676         (df_scan_alloc): DO not create df_scan_block pool.
16677         (problem_SCAN): Set size of block info.
16678         (df_bb_refs_record): Do not allocate bb_info.
16679         * df.h (df_problem): Add block_info_elt_size.
16680         (struct dataflow): Change block_info to void *.
16681         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
16682         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
16683         in-line structures.
16684
16685 2010-06-12  Jan Hubicka  <jh@suse.cz>
16686
16687         PR tree-optimize/44485
16688         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
16689         containing use of return value of noreturn function.
16690
16691 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
16692
16693         * targhooks.c (default_function_value): Don't use
16694         FUNCTION_OUTGOING_VALUE.
16695         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
16696         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
16697
16698 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
16699
16700         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
16701         Add crtfastmath.o to extra_parts.
16702         * config/mips/crtfastmath.c: New.
16703         * config/mips/linux.h (ENDFILE_SPEC): New.
16704
16705 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
16706
16707         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
16708         old_type in parameter.
16709         (gcc_type_for_value): Update call to gcc_type_for_interval.
16710         (compute_type_for_level_1): Renamed compute_type_for_level.
16711         Update call to gcc_type_for_interval.
16712
16713 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
16714
16715         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
16716         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
16717
16718 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
16719
16720         * opts-common.c: Include options.h.
16721         (integral_argument): Move from opts.c.
16722         (decode_cmdline_option): New.  Based on read_cmdline_option.
16723         * opts.c (integral_argument): Move to opts-common.c.
16724         (read_cmdline_option): Move most contents to
16725         decode_cmdline_option.  Use %qs in diagnostics.
16726         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
16727         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
16728         decode_cmdline_option): New.
16729
16730 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
16731
16732         PR target/44481
16733         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
16734         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
16735         (partiysi2_cmp): Ditto.
16736         (*partiyhi2_cmp): Ditto.
16737         (*parityqi2_cmp): Remove.
16738
16739 2010-06-11  Jan Hubicka  <jh@suse.cz>
16740
16741         * bitmap.h (bmp_iter_next_bit): New.
16742         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
16743
16744 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
16745             Eric Botcazou  <ebotcazou@adacore.com>
16746
16747         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
16748         computed cost.
16749
16750 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
16751
16752         * config/i386/i386.md (unspec): New define_c_enum.
16753         (unspecv): Ditto.
16754
16755 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
16756
16757         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
16758
16759 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
16760
16761         PR middle-end/44483
16762         * tree-if-conv.c (bb_predicate_s): New struct.
16763         (bb_predicate_p): New.
16764         (bb_has_predicate): New.
16765         (bb_predicate): New.
16766         (set_bb_predicate): New.
16767         (bb_predicate_gimplified_stmts): New.
16768         (set_bb_predicate_gimplified_stmts): New.
16769         (add_bb_predicate_gimplified_stmts): New.
16770         (init_bb_predicate): New.
16771         (free_bb_predicate): New.
16772         (is_predicated): Use bb_predicate.
16773         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
16774         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
16775         before processing their successors.
16776         (clean_predicate_lists): Removed.
16777         (find_phi_replacement_condition): Use bb_predicate.
16778         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
16779         computations.
16780         (insert_gimplified_predicates): New.
16781         (combine_blocks): Call insert_gimplified_predicates.
16782         (tree_if_conversion): Call free_bb_predicate instead of
16783         clean_predicate_lists.
16784
16785 2010-10-11  Paul Brook  <paul@codesourcery.com>
16786
16787         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
16788         * config/arm/arm.c (all_architectures): Change v7e-m default to
16789         cortexm4.
16790         * config/arm/arm-cores.def: Add cortex-m4.
16791         * config/arm/arm-tune.md: Regenerate.
16792
16793 2010-06-11  Jan Hubicka  <jh@suse.cz>
16794
16795         * ipa-pure-const.c (special_builtlin_state): New function.
16796         (check_call): Use it instead of special casign BUILT_IN_RETURN.
16797         (propagate_pure_const): Use it.
16798
16799 2010-06-11  Jan Hubicka  <jh@suse.cz>
16800
16801         * df-problems.c (df_live_scratch): Convert to bitmap_head.
16802         (df_live_alloc): Initialize df_live_scratch when initializing
16803         problem_data.
16804         (df_live_transfer_function): Update uses of df_live_scratch.
16805         (df_live_free): Free problem_data; clear df_live_scratch before
16806         releasing the obstack.
16807         (df_md_free): Free problem data.
16808
16809 2010-06-11  Jan Hubicka  <jh@suse.cz>
16810
16811         * doc/invoke.texi (Wsuggest-attribute): Document.
16812         (Wmissing-noreturn): Remove.
16813         * ipa-pure-const.c (warn_function_noreturn): New function.
16814         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
16815         warn_missing_noreturn.
16816         * common.opt (Wsuggest-attribute=noreturn): New.
16817         * tree-flow.h (warn_function_noreturn): Declare.
16818         * tree-cfg.c (execute_warn_function_noreturn): Use
16819         warn_function_noreturn.
16820         (gate_warn_function_noreturn): New.
16821         (pass_warn_function_noreturn): Update.
16822
16823 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16824
16825         * c-typeck.c (handle_warn_cast_qual): Add loc
16826         parameter. Improve warning message.
16827         (build_c_cast): Pass location to handle_warn_cast_qual.
16828
16829 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
16830
16831         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
16832         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
16833         insn mnemonic.
16834         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
16835
16836 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
16837
16838         Fix bootstap on mips
16839         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
16840         be naming typedefs.
16841
16842 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
16843
16844         * system.h (helper_const_non_const_cast): New inline for
16845         gcc version <= 4.0.
16846         (CONST_CAST2): For gcc version <= 4.0 use
16847         new helper to do const/non-const casting.
16848
16849 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16850
16851         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
16852         * Makefile.in (OBJS-common): Include insn-enums.o.
16853         (insn-enums.o): New rule.
16854         (simple_generated_c): Add insn-enums.c.
16855         (build/genenums.o): New rule.
16856         (genprogmd): Add "enums".
16857         * genconstants.c (print_enum_type): Declare a C string array
16858         for each enum.
16859         * genenums.c: New file.
16860         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
16861         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
16862         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
16863
16864 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16865
16866         * doc/md.texi (define_enum_attr): Document.
16867         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
16868         * read-md.h (lookup_enum_type): Declare.
16869         * read-md.c (lookup_enum_type): New function.
16870         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
16871         * genattrtab.c (attr_desc): Add an enum_name field.
16872         (evaluate_eq_attr): Take the associated attribute as argument.
16873         Get the enum prefix from the enum_name field, if defined.
16874         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
16875         (simplify_test_exp): Pass attr to evaluate_eq_attr.
16876         (add_attr_value): New function, split out from...
16877         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
16878         (write_test_expr): Pass attr to evaluate_eq_attr.
16879         (write_attr_get): Use the enum_name as the enum tag, if defined.
16880         (write_attr_valueq): Use the enum_name as a prefix, if defined.
16881         (find_attr): Initialize enum_name.
16882         (main): Handle DEFINE_ENUM_ATTR.
16883         * gensupport.c (process_rtx): Likewise.
16884         * config/mips/mips.h (mips_tune_attr): Delete.
16885         * config/mips/mips.md (cpu): Use define_attr_enum.
16886
16887 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16888
16889         * doc/md.texi (define_c_enum, define_enum): Document.
16890         * read-md.h (md_constant): Add a parent_enum field.
16891         (enum_value, enum_type): New structures.
16892         (upcase_string, traverse_enum_types): Declare.
16893         * read-md.c (enum_types): New variable.
16894         (upcase_string, add_constant): New functions.
16895         (handle_constants): Don't create the hash table here.
16896         Use add_constant.
16897         (traverse_md_constants): Don't check for a null md_constants.
16898         (decimal_string, handle_enum, traverse_enum_types): New functions.
16899         (read_md_files): Initialize md_constants and md_enums.
16900         * genconstants.c (print_md_constant): Ignore info argument.
16901         Only print constants that belong to no enum.
16902         (print_enum_type): New function.
16903         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
16904         for each defined enum type.
16905         * config/mips/mips.md (processor): New define_enum.
16906         (unspec): New define_c_enum.
16907         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
16908         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
16909         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
16910         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
16911         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
16912         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
16913         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
16914         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
16915         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
16916         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
16917         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
16918         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
16919         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
16920         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
16921         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
16922         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
16923         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
16924         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
16925         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
16926         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
16927         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
16928         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
16929         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
16930         (UNSPEC_RDDSP): Move to mips-dsp.md.
16931         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
16932         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
16933         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
16934         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
16935         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
16936         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
16937         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
16938         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
16939         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
16940         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
16941         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
16942         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
16943         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
16944         Moved to mips-dspr2.md.
16945         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
16946         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
16947         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
16948         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
16949         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
16950         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
16951         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
16952         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
16953         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
16954         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
16955         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
16956         UNSPEC_LOONGSON_PSADBH)
16957         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
16958         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
16959         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
16960         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
16961         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
16962         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
16963         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
16964         (cpu): Update comment.
16965         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
16966         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
16967         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
16968         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
16969         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
16970         UNSPEC_LOONGSON_PCMPEQ)
16971         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
16972         UNSPEC_LOONGSON_PINSR_0)
16973         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
16974         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
16975         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
16976         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
16977         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
16978         UNSPEC_LOONGSON_PSADBH)
16979         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
16980         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
16981         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
16982         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
16983         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
16984         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
16985         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
16986         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
16987         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
16988         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
16989         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
16990         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
16991         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
16992         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
16993         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
16994         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
16995         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
16996         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
16997         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
16998         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
16999         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
17000         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
17001         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
17002         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
17003         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
17004         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
17005         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
17006         (UNSPEC_RDDSP): Moved from mips.md.
17007         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
17008         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
17009         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
17010         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
17011         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
17012         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
17013         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
17014         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
17015         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
17016         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
17017         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
17018         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
17019         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
17020         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
17021         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
17022         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
17023         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
17024         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
17025         (UNSPEC_SCC): Moved from mips.md.
17026         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
17027         "processor_type" to "processor".
17028         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
17029         * config/mips/mips.h (processor_type): Delete.
17030         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
17031         "processor_type" to "processor".
17032
17033 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17034
17035         * configure.ac (tm_include_list): Add insn-constants.h.
17036         * configure: Regenerate.
17037         * Makefile.in (GTM_H): Move insn-constants.h here from...
17038         (TM_H): ...here.
17039         * mkconfig.sh: Remove special handling for insn-constants.h.
17040
17041 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17042
17043         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
17044         (BUILD_MD): ...this new variable.
17045         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
17046         that include the old contents of simple_generated_h and
17047         simple_generated_c.
17048         (simple_generated_h, simple_generated_c): Include them.  Add
17049         insn-constants.h.
17050         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
17051         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
17052         Remove these dependencies from the main rule and include
17053         insn-conditions.md in the command line only if it appears
17054         in the dependency list.
17055         (insn-constants.h, s-constants): Delete.
17056         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
17057         or gensupport.h.
17058         (build/genmddeps.o): Likewise.
17059         (genprogrtl): New variable that contains everything from genprogmd
17060         except mddeps and constants.
17061         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
17062         depend on $(BUILD_MD)
17063         (genprog): New variable.  Make these programs depend on
17064         $(BUILD_ERRORS).
17065         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
17066         (main): Use read_md_files instead of init_rtx_reader_args.
17067         * genconstants.c: As for genmddeps.c.
17068         * read-md.h (read_skip_construct): Declare.
17069         * read-md.c (read_skip_construct): New function.
17070         (handle_file): Allow a null handle_directive, skipping the
17071         construct if so.
17072         (parse_include): Update the comment accordingly.
17073
17074 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17075
17076         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
17077         * genmddeps.c: Include read-md.h.
17078         (main): Call init_rtx_reader_args instead of init_md_reader_args.
17079         * genattr.c (main): Likewise.
17080         * genattrtab.c (main): Likewise.
17081         * genautomata.c (main): Likewise.
17082         * gencodes.c (main): Likewise.
17083         * genconditions.c (main): Likewise.
17084         * genconfig.c (main): Likewise.
17085         * genconstants.c (main): Likewise.
17086         * genemit.c (main): Likewise.
17087         * genextract.c (main): Likewise.
17088         * genflags.c (main): Likewise.
17089         * genopinit.c (main): Likewise.
17090         * genoutput.c (main): Likewise.
17091         * genpeep.c (main): Likewise.
17092         * genrecog.c (main): Likewise.
17093         * genpreds.c (main): Likewise.
17094         * gensupport.h (in_fname): Move to read-md.h.
17095         (init_md_reader_args_cb): Rename to...
17096         (init_rtx_reader_args_cb): ...this and return a bool.
17097         (init_md_reader_args): Rename to...
17098         (init_rtx_reader_args): ...this and return a bool.
17099         (include_callback): Move to read-md.h.
17100         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
17101         (file_name_list, first_dir_md_include): Move to read-md.c
17102         (first_bracket_include): Delete unused variable.
17103         (last_dir_md_include): Move to read-md.c.
17104         (process_include): Delete, moving code to read-md.c:handle_include.
17105         (process_rtx): Don't handle INCLUDE.
17106         (save_string): Delete.
17107         (rtx_handle_directive): New function.
17108         (init_md_reader_args_cb): Rename to...
17109         (init_rtx_reader_args_cb): ...this and return a boolean success value.
17110         Use read_md_args.
17111         (init_md_reader_args): Rename to...
17112         (init_rtx_reader_args): ...this and return a boolean success value.
17113         * rtl.def (INCLUDE): Delete.
17114         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
17115         argument.
17116         * read-rtl.c (read_conditions): Don't gobble ')' here.
17117         (read_mapping): Likewise.
17118         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
17119         Handle top-level non-rtx constructs here rather than in read_rtx_1.
17120         Store the whole queue in *X.  Remove call to init_md_reader.
17121         (read_rtx_1): Rename to...
17122         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
17123         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
17124         here.
17125         (read_nested_rtx): New function.  Handle (nil) here rather than
17126         in read_rtx_code.
17127         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
17128         gobble ')' here.
17129         * read-md.h (directive_handler_t): New type.
17130         (in_fname, include_callback): Moved from read-md.h.
17131         (read_constants, init_md_reader): Delete.
17132         (read_md_files): Declare.
17133         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
17134         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
17135         from gensupport.c.
17136         (read_constants): Rename to...
17137         (handle_constants): ...this.  Don't gobble ')' here.
17138         (handle_include, handle_file, handle_toplevel_file)
17139         (parse_include): New functions, mostly taken from gensupport.c.
17140         (init_md_reader): Subsume into...
17141         (read_md_files): ...this new function.
17142
17143 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17144
17145         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
17146         (unread_char): Decrement read_md_lineno after putting back '\n'.
17147         * read-md.c (fatal_with_file_and_line): Push back any characters
17148         that we decide not to add to the context.
17149         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
17150         fatal_expected_char in cases where '/' ends a line (for example).
17151         (read_name): Don't increment read_md_lineno here.
17152         (read_escape): Likewise.
17153         (read_quoted_string): Likewise.
17154         (read_braced_string): Likewise.
17155
17156 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17157
17158         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
17159         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
17160         * genconstants.c: Include read-md.h.
17161         * read-rtl.c (md_constants): Move to read-md.c.
17162         (md_name): Move to read-md.h.
17163         (initialize_iterators): Use leading_string_hash instead of def_hash
17164         and leading_string_eq_p instead of def_name_eq_p.
17165         (read_name): Move to read-md.c.
17166         (def_hash, def_name_eq_p): Delete.
17167         (read_constants, traverse_md_constants): Move to read-md.c.
17168         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
17169         * read-md.h: Include hashtab.h.
17170         (md_name): Moved from read-rtl.c.
17171         (md_constant): Moved from read-md.h.
17172         (leading_string_hash, leading_string_eq_p, read_name)
17173         (read_constants, traverse_md_constants): Declare.
17174         * read-md.c (md_constants): Moved from read-rtl.c.
17175         (leading_string_hash, leading_string_eq_p): New functions.
17176         (read_name, read_constants, traverse_md_constants): Moved from
17177         read-rtl.c.
17178
17179 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17180
17181         * read-rtl.c (md_name): New structure.
17182         (read_name): Take an md_name instead of a buffer pointer.
17183         Use the "string" field instead of strcpy when expanding constants.
17184         (read_constants): Remove the tmp_char argument.  Update the calls
17185         to read_name, using two local name buffers instead of the tmp_char
17186         argument.  Merge the constant-creation code.
17187         (read_conditions): Remove the tmp_char argument.  Update the calls
17188         to read_name, using a local name buffer instead of the tmp_char
17189         argument.
17190         (read_mapping): Replace tmp_char variable with a local name buffer.
17191         Update the calls to read_name.
17192         (read_rtx_1): Likewise.  Update the calls to read_constants and
17193         read_conditions.
17194
17195 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17196
17197         * Makefile.in (build/read-md.o): Depend on errors.h.
17198         * read-md.h (error_with_line): Declare.
17199         * read-md.c: Include errors.h.
17200         (message_with_line_1): New function, extracted from...
17201         (message_with_line): ...here.
17202         (error_with_line): New function.
17203         * genattrtab.c: If a call to message_with_line is followed by
17204         "have_error = 1;", replace both statements with a call to
17205         error_with_line.
17206         * genoutput.c: Likewise.
17207         * genpreds.c: Likewise.
17208         * genrecog.c: If a call to message_with_line is followed by
17209         "error_count++;", replace both statements with a call to
17210         error_with_line.
17211         (errorcount): Delete.
17212         (main): Don't check it.
17213         * gensupport.c: If a call to message_with_line is followed by
17214         "errors = 1;", replace both statements with a call to error_with_line.
17215         (errors): Delete.
17216         (process_define_cond_exec): Check have_error instead of errors.
17217         (init_md_reader_args_cb): Likewise.  Don't set errors.
17218
17219 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17220
17221         * read-md.h (read_md_file): Declare.
17222         (read_char, unread_char): New functions.
17223         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17224         (read_quoted_string, read_string): Remove FILE * argument.
17225         * read-md.c (read_md_file): New variable.
17226         (read_md_filename, read_md_lineno): Update comments and remove
17227         unnecessary initialization.
17228         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
17229         (read_escape, read_quoted_string, read_braced_string, read_string):
17230         Remove FILE * argument.  Update calls accordingly, using read_char
17231         and unread_char instead of getc and ungetc.
17232         * rtl.h (read_rtx): Remove FILE * argument.
17233         * read-rtl.c (iterator_group): Remove FILE * argument from
17234         "find_builtin".
17235         (iterator_traverse_data): Remove "infile" field.
17236         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
17237         (add_mapping, read_name, read_constants, read_conditions)
17238         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
17239         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
17240         Remove file arguments from all calls, using read_char and unread_char
17241         instead of getc and ungetc.
17242         * gensupport.c (process_include): Preserve read_md_file around
17243         the include.  Set read_md_file to the handle of the included file.
17244         Update call to read_rtx.
17245         (init_md_reader_args_cb): Set read_md_file to the handle of the file
17246         and remove local FILE *.  Update calls to read_rtx.
17247
17248 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17249
17250         * read-md.h (read_rtx_lineno): Rename to...
17251         (read_md_lineno): ...this.
17252         (read_rtx_filename): Rename to...
17253         (read_md_filename): ...this.
17254         (copy_rtx_ptr_loc): Rename to...
17255         (copy_md_ptr_loc): ...this.
17256         (print_rtx_ptr_loc): Rename to...
17257         (print_md_ptr_loc): ...this.
17258         * read-md.c: Likewise.  Update references after renaming.
17259         (string_obstack): Replace RTL with MD in comment.
17260         (set_rtx_ptr_loc): Rename to...
17261         (set_md_ptr_loc): ...this.
17262         (get_rtx_ptr_loc): Rename to...
17263         (get_md_ptr_loc): ...this.
17264         * genconditions.c: Update references after renaming.
17265         * genemit.c: Likewise.
17266         * genoutput.c: Likewise.
17267         * genpreds.c: Likewise.
17268         * gensupport.c: Likewise.
17269         * read-rtl.c: Likewise.
17270
17271 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
17272
17273         * Makefile.in (READ_MD_H): New variable.
17274         (BUILD_RTL): Add build/read-md.o.
17275         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
17276         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
17277         (build/genattrtab.o, build/genconditions.o build/genemit.o)
17278         (build/genextract.o, build/genflags.o, build/genoutput.o)
17279         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
17280         (build/read-md.o): New rule.
17281         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
17282         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
17283         * coretypes.h: ...here.
17284         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
17285         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
17286         * genattr.c: Include read-md.h.
17287         * genattrtab.c: Likewise.
17288         * genconditions.c: Likewise.
17289         * genemit.c: Likewise.
17290         * genextract.c: Likewise.
17291         * genflags.c: Likewise.
17292         * genoutput.c: Likewise.
17293         * genpreds.c: Likewise.
17294         * genrecog.c: Likewise.
17295         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
17296         (join_c_conditions, print_c_condition, read_rtx_filename)
17297         (read_rtx_lineno): Move to read-md.h.
17298         * read-rtl.c: Include read-md.h.
17299         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
17300         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
17301         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
17302         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
17303         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
17304         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
17305         (read_braced_string, read_string): Move to read-md.c.
17306         (read_rtx): Move some initialization to init_md_reader and call
17307         init_md_reader here.
17308         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
17309         Move to read-md.h.
17310         * gensupport.c: Include read-md.h.
17311         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
17312         * read-md.h, read-md.c: New files.
17313
17314 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
17315
17316         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17317         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17318         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
17319         * config/moxie/moxie.c (moxie_function_value): Make static.
17320         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
17321         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17322
17323 2010-06-10  Martin Jambor  <mjambor@suse.cz>
17324
17325         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
17326         * dbgcnt.def (tree_sra): New counter.
17327         * tree-sra.c: Include dbgcnt.h.
17328         (gate_intra_sra): Check tree_sra debug counter.
17329
17330 2010-06-10  Martin Jambor  <mjambor@suse.cz>
17331
17332         PR tree-optimization/44258
17333         * tree-sra.c (build_access_subtree): Return false iff there is a
17334         partial overlap.
17335         (build_access_trees): Likewise.
17336         (analyze_all_variable_accesses): Disqualify candidates if
17337         build_access_trees returns true for them.
17338
17339 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
17340
17341         PR debug/41371
17342         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
17343         tail-recurse into canonical node.  Fast-forward over
17344         non-canonical VALUEs.
17345
17346 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
17347
17348         PR boostrap/44470
17349         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
17350         (*addsi_1_zext) <TYPE_LEA>: Likewise.
17351         (add lea splitter): Likewise.
17352         (add_zext lea splitter): Likewise.
17353
17354 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
17355
17356         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
17357
17358 2010-06-10  Jan Hubicka  <jh@suse.cz>
17359
17360         * df-problems.c (df_live_problem_data): Add live_bitmaps.
17361         (df_live_alloc): Initialize problem data and live_osbtacks.
17362         (df_live_finalize): Remove obstack, problem data; do not
17363         clear all bitmaps.
17364         (df_live_top_dump, df_live_bottom_dump): Do not dump old
17365         data when not allocated.
17366         (df_live_verify_solution_start): Do not allocate problem data.
17367         (df_live_verify_solution_end): Check if out is allocated.
17368         (struct df_md_problem_data): New structure.
17369         (df_md_alloc): Allocate problem data.
17370         (df_md_free): Free problem data; do not clear bitmaps.
17371
17372 2010-06-10  Jan Beulich  <jbeulich@novell.com>
17373
17374         PR bootstrap/37304
17375         * configure.ac: Replace $() with ${} when intending to expand
17376         variables rather than invoking commands.
17377         * configure: Re-generate.
17378
17379 2010-06-10  Jan Hubicka  <jh@suse.cz>
17380
17381         PR rtl-optimization/44460
17382         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
17383         TYPE_NEEDS_CONSTRUCTING sanity check.
17384
17385 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17386
17387         * doc/include/fdl.texi: Move to GFDL version 1.3.
17388
17389         * doc/cpp.texi: Move to GFDL version 1.3.
17390         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
17391         * doc/gccint.texi: Move to GFDL version 1.3.
17392         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
17393         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
17394         * doc/invoke.texi: Move to GFDL version 1.3.
17395
17396 2010-06-09  Jan Hubicka  <jh@suse.cz>
17397
17398         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
17399         Break out from ...
17400         (propagate) ... here; swap the order.
17401
17402 2010-06-09  Jan Hubicka  <jh@suse.cz>
17403
17404         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
17405         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
17406         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
17407         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
17408
17409 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
17410
17411         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
17412         Do not the gather memory reference in the outer loop if the step
17413         is not a constant.
17414
17415 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
17416
17417         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
17418         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
17419         8 to 4.  Minor change of the related comments.
17420
17421 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
17422
17423         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
17424         the scev analysis when the variable is not used outside the loop
17425         in a close phi node: call compute_overall_effect_of_inner_loop.
17426
17427 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
17428
17429         * graphite-sese-to-poly.c (single_pred_cond): Renamed
17430         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
17431         (build_sese_conditions_before): Renamed call to single_pred_cond.
17432         (build_sese_conditions_after): Same.
17433
17434 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
17435
17436         * graphite-poly.h: Fix comments and indentation.
17437         * graphite-sese-to-poly.c: Same.
17438         (build_sese_conditions_before): Compute stmt and gbb only when needed.
17439         * tree-chrec.c: Fix comments and indentation.
17440         (tree-ssa-loop-niter.c): Same.
17441
17442 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
17443
17444         PR rtl-optimization/42461
17445         * dce.c (deletable_insn_p): Return true for const or pure calls again.
17446         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
17447
17448 2010-06-09  Jan Hubicka  <jh@suse.cz>
17449
17450         * bitmap.c (bitmap_and): Walk array forward.
17451         (bitmap_and_compl_into): Likewise.
17452         (bitmap_xor): Likewise.
17453         (bitmap_xor_into):  Likewise.
17454         (bitmap_equal_p): Likewise.
17455         (bitmap_intersect_p): Likewise.
17456         (bitmap_intersect_compl_p): Likewise.
17457         (bitmap_ior_and_into): Likewise.
17458         (bitmap_elt_copy): Likewise.
17459         (bitmap_and_compl): Likewise.
17460         (bitmap_elt_ior): Likewise.
17461
17462 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
17463
17464         * opts-common.c (prune_options): Ensure replacement argv array
17465         is correctly terminated by a NULL entry.
17466
17467 2010-06-09  Jan Hubicka  <jh@suse.cz>
17468
17469         * cgraph.h (varpool_first_static_initializer,
17470         varpool_next_static_initializer): Make checking only when
17471         checking enabled.
17472         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
17473         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
17474         gcc_assert to gcc_checking_assert.
17475         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
17476         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
17477         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
17478         op_iter_init_phiuse, op_iter_init_phidef,
17479         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
17480         gcc_checking_assert.
17481         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
17482         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
17483         partition_is_global, live_on_entry, live_on_exit,
17484         live_merge_and_clear): Likewise.
17485         * system.h (gcc_checking_assert): New macro.
17486         * gimple.h (set_bb_seq): Use gcc_checking_assert.
17487
17488 2010-06-09  Jason Merrill  <jason@redhat.com>
17489
17490         * Makefile.in (TAGS): Collect tags info from c-family.
17491
17492 2010-06-09  Jan Hubicka  <jh@suse.cz>
17493
17494         * gimple.h (gcc_gimple_checking_assert): New macro.
17495         (gimple_set_def_ops, gimple_set_use_ops,
17496         gimple_set_vuse, gimple_set_vdef,
17497         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
17498         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
17499         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
17500         gimple_asm_output_op, gimple_asm_output_op_ptr,
17501         gimple_asm_set_output_op, gimple_asm_clobber_op,
17502         gimple_asm_set_clobber_op, gimple_asm_label_op,
17503         gimple_asm_set_label_op, gimple_try_set_kind,
17504         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
17505         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
17506         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
17507         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
17508         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
17509         gimple_omp_for_set_initial, gimple_omp_for_final,
17510         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
17511         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
17512         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
17513         conditional with ENABLE_GIMPLE_CHECKING.
17514         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
17515
17516 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
17517
17518         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
17519         (get_computation_cost_at): Use it.
17520         (determine_use_iv_cost_condition): Likewise.
17521         (determine_iv_cost): Likewise.
17522
17523 2010-06-09  Richard Guenther  <rguenther@suse.de>
17524
17525         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
17526         replace constants.
17527
17528 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
17529
17530         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
17531
17532 2010-06-09  Martin Jambor  <mjambor@suse.cz>
17533
17534         PR tree-optimization/44423
17535         * tree-sra.c (dump_access): Dump also grp_assignment_read.
17536         (analyze_access_subtree): Pass negative allow_replacements to children
17537         if the current type is scalar.
17538
17539 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
17540
17541         PR testsuite/42843
17542         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
17543         * doc/plugins.texi (Plugin license check): Update information
17544         on type of plugin_is_GPL_compatible.
17545         * Makefile.in (PLUGINCC): Define as $(COMPILER).
17546         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
17547
17548 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
17549
17550         * config/arm/arm.c (thumb2_reorg): New function.
17551         (arm_reorg): Call it.
17552         * config/arm/thumb2.md (define_peephole2 for flag clobbering
17553         arithmetic operations): Delete.
17554
17555 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
17556
17557         PR target/44067
17558         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
17559         e500v2 target.
17560
17561 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
17562
17563         PR plugins/44459
17564         * gcc-plugin.h: Encapsulate all declarations in extern "C".
17565
17566 2010-06-08  Jan Hubicka  <jh@suse.cz>
17567
17568         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
17569         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
17570
17571 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
17572
17573         PR tree-optimization/39874
17574         PR middle-end/28685
17575         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
17576         Declare.
17577         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
17578         same_bool_result_p): New.
17579         (and_var_with_comparison, and_var_with_comparison_1,
17580         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
17581         (or_var_with_comparison, or_var_with_comparison_1,
17582         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
17583         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
17584         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
17585         of combine_comparisons.
17586         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
17587
17588 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
17589
17590         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17591         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17592         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
17593         pdp11_function_value_regno_p): New functions.
17594         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17595         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17596
17597 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
17598
17599         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
17600         Thumb-2 in the MINUS case.
17601
17602 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17603
17604         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
17605
17606         * doc/gty.texi (GTY Options): Document typed GC allocation and
17607         variable_size GTY option.
17608
17609         * ggc-internal.h: New.
17610
17611         * ggc.h: Update copyright year.
17612         (digit_string): Move to stringpool.c.
17613         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
17614         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
17615         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
17616         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
17617         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
17618         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
17619         (ggc_force_collect, ggc_get_size, ggc_statistics)
17620         (ggc_print_common_statistics): Move to ggc-internal.h.
17621         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
17622         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
17623         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
17624         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
17625         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
17626         (ggc_alloc_zone_pass_stat): Remove.
17627         (ggc_internal_alloc_stat, ggc_internal_alloc)
17628         (ggc_internal_cleared_alloc_stat): New.
17629         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
17630         (ggc_internal_vec_alloc_stat)
17631         (ggc_internal_cleared_vec_alloc_stat)
17632         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
17633         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
17634         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
17635         (ggc_cleared_alloc_ptr_array_two_args): New.
17636         (htab_create_ggc, splay_tree_new_ggc): Redefine.
17637         (ggc_splay_alloc): Change the type of the first argument to
17638         enum gt_types_enum.
17639         (ggc_alloc_string): Make macro.
17640         (ggc_alloc_string_stat): New.
17641         (ggc_strdup): Redefine.
17642         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
17643         (ggc_alloc_rtvec_sized): New.
17644         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
17645         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
17646         (ggc_internal_cleared_alloc_zone_stat)
17647         (ggc_internal_zone_alloc_stat)
17648         (ggc_internal_zone_cleared_alloc_stat)
17649         (ggc_internal_zone_vec_alloc_stat)
17650         (ggc_alloc_zone_rtx_def_stat)
17651         (ggc_alloc_zone_tree_node_stat)
17652         (ggc_alloc_zone_cleared_tree_node_stat)
17653         (ggc_alloc_cleared_gimple_statement_d_stat): New.
17654
17655         * ggc-common.c: Include ggc-internal.h.
17656         (ggc_internal_cleared_alloc_stat): Rename from
17657         ggc_alloc_cleared_stat.
17658         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
17659         (ggc_calloc): Remove.
17660         (ggc_cleared_alloc_htab_ignore_args): New.
17661         (ggc_cleared_alloc_ptr_array_two_args): New.
17662         (ggc_splay_alloc): Add obj_type parameter.
17663         (init_ggc_heuristics): Formatting fixes.
17664
17665         * ggc-none.c: Update copyright year.
17666         (ggc_alloc_stat): Rename to ggc_alloc_stat.
17667         (ggc_alloc_cleared_stat): Rename to
17668         ggc_internal_cleared_alloc_stat.
17669         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17670
17671         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
17672         Remove references to ggc_alloc in comments.
17673         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
17674         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
17675         (new_ggc_zone, destroy_ggc_zone): Remove.
17676         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
17677
17678         * ggc-zone.c: Include ggc-internal.h.  Remove references to
17679         ggc_alloc in comments.
17680         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
17681         (ggc_internal_alloc_zone_pass_stat): New.
17682         (ggc_internal_cleared_alloc_zone_stat): New.
17683         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
17684         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
17685         (new_ggc_zone, destroy_ggc_zone): Remove.
17686
17687         * stringpool.c: Update copyright year.  Include ggc-internal.h
17688         (digit_vector): Make static.
17689         (digit_string): Moved from ggc.h.
17690         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
17691         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
17692
17693         * Makefile.in (GGC_INTERNAL_H): New.
17694         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
17695         $(GGC_INTERNAL_H) to dependencies.
17696
17697         * gentype.c: Update copyright year.
17698         (walk_type): Accept variable_size GTY option.
17699         (USED_BY_TYPED_GC_P): New macro.
17700         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
17701         whitespace at the end of strings.
17702         (get_type_specifier, variable_size_p): New functions.
17703         (alloc_quantity, alloc_zone): New enums.
17704         (write_typed_alloc_def): New function.
17705         (write_typed_struct_alloc_def): Likewise.
17706         (write_typed_typed_typedef_alloc_def): Likewise.
17707         (write_typed_alloc_defns): Likewise.
17708         (output_typename, write_splay_tree_allocator_def): Likewise.
17709         (write_splay_tree_allocators): Likewise.
17710         (main): Call write_typed_alloc_defns and
17711         write_splay_tree_allocators.
17712
17713         * lto-streamer.h (lto_file_decl_data_ptr): New.
17714
17715         * passes.c (order): Define using cgraph_node_ptr.
17716
17717         * strinpool.c (struct string_pool_data): Declare nested_ptr using
17718         ht_identifier_ptr.
17719
17720         * gimple.h (union gimple_statement_d): Likewise.
17721
17722         * rtl.h (struct rtx_def): Likewise.
17723         (struct rtvec_def): Likewise.
17724
17725         * tree.h (union tree_node): Likewise.
17726
17727         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
17728
17729         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
17730
17731         * tree-scalar-evolution.c (scev_initialize): Likewise.
17732
17733         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
17734
17735         * dwarf2asm.c (dw2_force_const_mem): Likewise.
17736
17737         * omp-low.c (lower_omp_critical): Likewise.
17738
17739         * bitmap.h (struct bitmap_head_def): Update comment to not
17740         reference ggc_alloc.
17741
17742         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
17743
17744         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
17745
17746         * ipa-prop.c (duplicate_ggc_array): Rename to
17747         duplicate_ipa_jump_func_array.  Use typed GC allocation.
17748         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
17749
17750         * gimple.c (gimple_alloc_stat): Use
17751         ggc_alloc_cleared_gimple_statement_d_stat.
17752
17753         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
17754
17755         * tree.c (make_node_stat): Use
17756         ggc_alloc_zone_cleared_tree_node_stat.
17757         (make_tree_vec_stat): Likewise.
17758         (build_vl_exp_stat): Likewise.
17759         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
17760         (make_tree_binfo_stat): Likewise.
17761         (tree_cons_stat): Likewise.
17762
17763         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
17764         (shallow_copy_rtx_stat): Likewise.
17765         (make_node_stat): Likewise.
17766
17767         * lto-symtab.c: Fix comment.
17768
17769         * tree-cfg.c (create_bb): Update comment to not reference
17770         ggc_alloc_cleared.
17771         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
17772
17773         * varpool.c (varpool_node): Use typed GC allocation.
17774         (varpool_extra_name_alias): Likewise.
17775
17776         * varasm.c (emutls_decl): Likewise.
17777         (get_unnamed_section): Likewise.
17778         (get_noswitch_section): Likewise.
17779         (get_section): Likewise.
17780         (get_block_for_section): Likewise.
17781         (build_constant_desc): Likewise.
17782         (create_constant_pool): Likewise.
17783         (force_const_mem): Likewise.
17784
17785         * tree.c (build_vl_exp_stat): Likewise.
17786         (build_real): Likewise.
17787         (build_string): Likewise.
17788         (decl_debug_expr_insert): Likewise.
17789         (decl_value_expr_insert): Likewise.
17790         (type_hash_add): Likewise.
17791         (build_omp_clause): Likewise.
17792
17793         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
17794
17795         * tree-ssa.c (init_tree_ssa): Likewise.
17796
17797         * tree-ssa-structalias.c (heapvar_insert): Likewise.
17798
17799         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17800
17801         * tree-ssa-loop-niter.c (record_estimate): Likewise.
17802
17803         * tree-ssa-alias.c (get_ptr_info): Likewise.
17804
17805         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17806
17807         * tree-phinodes.c (allocate_phi_node): Likewise.
17808
17809         * tree-iterator.c (tsi_link_before): Likewise.
17810         (tsi_link_after): Likewise.
17811
17812         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17813
17814         * tree-dfa.c (create_var_ann): Likewise.
17815
17816         * tree-cfg.c (create_bb): Likewise.
17817
17818         * toplev.c (alloc_for_identifier_to_locale): Likewise.
17819         (general_init): Likewise.
17820
17821         * stringpool.c (stringpool_ggc_alloc): Likewise.
17822         (gt_pch_save_stringpool): Likewise.
17823
17824         * sese.c (if_region_set_false_region): Likewise.
17825
17826         * passes.c (do_per_function_toporder): Likewise.
17827
17828         * optabs.c (set_optab_libfunc): Likewise.
17829         (set_conv_libfunc): Likewise.
17830
17831         * lto-symtab.c (lto_symtab_register_decl): Likewise.
17832
17833         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17834         (input_eh_region): Likewise.
17835         (input_eh_lp): Likewise.
17836         (make_new_block): Likewise.
17837         (unpack_ts_real_cst_value_fields): Likewise.
17838
17839         * lto-section-in.c (lto_new_in_decl_state): Likewise.
17840
17841         * lto-cgraph.c (input_node_opt_summary): Likewise.
17842
17843         * loop-init.c (loop_optimizer_init): Likewise.
17844
17845         * lambda.h (lambda_vector_new): Likewise.
17846
17847         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
17848
17849         * ira.c (update_equiv_regs): Likewise.
17850
17851         * ipa.c (cgraph_node_set_new): Likewise.
17852         (cgraph_node_set_add): Likewise.
17853         (varpool_node_set_new): Likewise.
17854         (varpool_node_set_add): Likewise.
17855
17856         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
17857         (duplicate_ipa_jump_func_array): Likewise.
17858         (ipa_read_node_info): Likewise.
17859
17860         * ipa-cp.c (ipcp_create_replace_map): Likewise.
17861
17862         * integrate.c (get_hard_reg_initial_val): Likewise.
17863
17864         * gimple.c (gimple_alloc_stat): Likewise.
17865         (gimple_build_omp_for): Likewise.
17866         (gimple_seq_alloc): Likewise.
17867         (gimple_copy): Likewise.
17868
17869         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
17870         (gsi_insert_after_without_update): Likewise.
17871
17872         * function.c (add_frame_space): Likewise.
17873         (insert_temp_slot_address): Likewise.
17874         (assign_stack_temp_for_type): Likewise.
17875         (allocate_struct_function): Likewise.
17876         (types_used_by_var_decl_insert): Likewise.
17877
17878         * except.c (init_eh_for_function): Likewise.
17879         (gen_eh_region): Likewise.
17880         (gen_eh_region_catch): Likewise.
17881         (gen_eh_landing_pad): Likewise.
17882         (add_call_site): Likewise.
17883
17884         * emit-rtl.c (get_mem_attrs): Likewise.
17885         (get_reg_attrs): Likewise.
17886         (start_sequence): Likewise.
17887         (init_emit): Likewise.
17888
17889         * dwarf2out.c (new_cfi): Likewise.
17890         (queue_reg_save): Likewise.
17891         (dwarf2out_frame_init): Likewise.
17892         (new_loc_descr): Likewise.
17893         (find_AT_string): Likewise.
17894         (new_die): Likewise.
17895         (add_var_loc_to_decl): Likewise.
17896         (clone_die): Likewise.
17897         (clone_as_declaration): Likewise.
17898         (break_out_comdat_types): Likewise.
17899         (new_loc_list): Likewise.
17900         (loc_descriptor): Likewise.
17901         (add_loc_descr_to_each): Likewise.
17902         (add_const_value_attribute): Likewise.
17903         (tree_add_const_value_attribute): Likewise.
17904         (add_comp_dir_attribute): Likewise.
17905         (add_name_and_src_coords_attributes): Likewise.
17906         (lookup_filename): Likewise.
17907         (store_vcall_insn): Likewise.
17908         (dwarf2out_init): Likewise.
17909
17910         * dbxout.c (dbxout_init): Likewise.
17911
17912         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17913
17914         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17915
17916         * config/score/score7.c (score7_output_external): Likewise.
17917
17918         * config/score/score3.c (score3_output_external): Likewise.
17919
17920         * config/s390/s390.c (s390_init_machine_status): Likewise.
17921
17922         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17923         (rs6000_init_machine_status): Likewise.
17924         (output_toc): Likewise.
17925
17926         * config/pa/pa.c (pa_init_machine_status): Likewise.
17927         (get_deferred_plabel): Likewise.
17928
17929         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17930
17931         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17932
17933         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17934
17935         * config/mep/mep.c (mep_init_machine_status): Likewise.
17936         (mep_note_pragma_flag): Likewise.
17937
17938         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17939
17940         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17941
17942         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17943
17944         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17945         (i386_pe_maybe_record_exported_symbol): Likewise.
17946
17947         * config/i386/i386.c (get_dllimport_decl): Likewise.
17948         (ix86_init_machine_status): Likewise.
17949         (assign_386_stack_local): Likewise.
17950
17951         * config/frv/frv.c (frv_init_machine_status): Likewise.
17952
17953         * config/darwin.c (machopic_indirection_name): Likewise.
17954
17955         * config/cris/cris.c (cris_init_machine_status): Likewise.
17956
17957         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17958
17959         * config/avr/avr.c (avr_init_machine_status): Likewise.
17960
17961         * config/arm/arm.c (arm_init_machine_status): Likewise.
17962
17963         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17964         (alpha_need_linkage): Likewise.
17965         (alpha_use_linkage): Likewise.
17966
17967         * cgraph.c (cgraph_allocate_node): Likewise.
17968         (cgraph_create_edge_1): Likewise.
17969         (cgraph_create_indirect_edge): Likewise.
17970         (cgraph_add_asm_node): Likewise.
17971
17972         * cfgrtl.c (init_rtl_bb_info): Likewise.
17973
17974         * cfgloop.c (alloc_loop): Likewise.
17975         (rescan_loop_exit): Likewise.
17976
17977         * cfg.c (init_flow): Likewise.
17978         (alloc_block): Likewise.
17979         (unchecked_make_edge): Likewise.
17980
17981         * c-parser.c (c_parse_init): Likewise.
17982         (c_parse_file): Likewise.
17983
17984         * c-decl.c (bind): Likewise.
17985         (record_inline_static): Likewise.
17986         (push_scope): Likewise.
17987         (make_label): Likewise.
17988         (lookup_label_for_goto): Likewise.
17989         (finish_struct): Likewise.
17990         (finish_enum): Likewise.
17991         (c_push_function_context): Likewise.
17992
17993         * bitmap.c (bitmap_element_allocate): Likewise.
17994         (bitmap_gc_alloc_stat): Likewise.
17995
17996         * alias.c (record_alias_subset): Likewise.
17997         (init_alias_analysis): Likewise.
17998
17999 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
18000
18001         * fold-const.c (fold_comparison): Remove redundant parenthesis.
18002         * tree-inline.c (expand_call_inline): Pass translated return value of
18003         cgraph_inline_failed_string to diagnostic function.
18004
18005 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
18006             Shujing Zhao  <pearly.zhao@oracle.com>
18007
18008         PR c/37724
18009         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
18010         implicit bad conversions is initialization.
18011         (error_init): Use gmsgid instead of msgid for argument name and change
18012         the call for error.
18013         (pedwarn_init): Use gmsgid instead of msgid for argument name and
18014         change the call for pedwarn.
18015         (warning_init): Use gmsgid instead of msgid for argument name and
18016         change the call for warning.
18017
18018 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
18019
18020         * config/mips/mips-protos.h (mips_print_operand): Delete.
18021         (mips_print_operand_address): Delete.
18022         * config/mips/mips.h (mips_print_operand_punct): Delete.
18023         (PRINT_OPERAND): Delete.
18024         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18025         (PRINT_OPERAND_ADDRESS): Delete.
18026         * config/mips/mips.c (mips_print_operand_punct): Make static.
18027         (mips_print_operand_address): Make static.
18028         (mips_print_operand): Make static.  Call
18029         mips_print_operand_punct_valid_p.
18030         (mips_print_operand_punct_valid_p): New function.
18031         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18032         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18033
18034 2010-06-07  Jan Hubicka  <jh@suse.cz>
18035
18036         PR middle-end/44454
18037         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
18038         are allocated.
18039
18040 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18041
18042         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
18043         name of RECORD.
18044
18045 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18046
18047         * doc/sourcebuild.texi (Effective-Target Keywords, Other
18048         attributes): Document gas.
18049
18050 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
18051
18052         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
18053         <TYPE_LEA>: Split instruction.
18054         <default>: Remove alternative 2 handling.
18055         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
18056         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
18057         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
18058
18059         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
18060         (ashift_zext lea splitter): Use DImode for multiplication.
18061
18062         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
18063         to generate addition.
18064
18065 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
18066
18067         * common.opt (fira-verbose): Use Var.
18068         (fpcc-struct-return): Use Init instead of VarExists.
18069         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
18070         toplev.c.
18071         * flags.h (flag_signed_char, flag_short_enums,
18072         flag_pcc_struct_return, flag_ira_verbose,
18073         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
18074         * toplev.c (flag_detailed_statistics, flag_signed_char,
18075         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
18076         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
18077         * toplev.h (flag_crossjumping, flag_if_conversion,
18078         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
18079         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
18080         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
18081         flag_cprop_registers, time_report, flag_ira_loop_pressure,
18082         flag_ira_coalesce, flag_ira_move_spills,
18083         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
18084
18085 2010-06-07  Jan Hubicka  <jh@suse.cz>
18086
18087         * df-core.c (df_analyze_problem): Do verification after allocation.
18088
18089         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
18090         (df_lr_alloc): Initialize problem data; move bitmaps to
18091         lr_bitmaps obstack.
18092         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
18093         (df_lr_verify_solution_start): Do not initialize problem data;
18094         allocate bitmaps in lr_bitmaps.
18095         (df_lr_verify_solution_end): Do not free problem data.
18096
18097 2010-06-07  Jan Hubicka  <jh@suse.cz>
18098
18099         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
18100         if caller is noreturn.
18101         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
18102         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
18103         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
18104         * ipa-pure-const.c (check_decl): Add IPA parameter.
18105         (state_from_flags): New function.
18106         (better_state, worse_state): New functions.
18107         (check_call): When in IPA mode, do not care about callees.
18108         (check_load, check_store): Update.
18109         (check_ipa_load, check_ipa_store): New.
18110         (check_stmt): When in IPA mode, use IPA checkers.
18111         (analyze_function): Use state_from_flags.
18112         (propagate): Check indirect edges and references.
18113
18114 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
18115
18116         PR rtl-optimization/44404
18117         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
18118         of count_occurrences to see if it's safe to modify mem_insn.
18119
18120 2010-06-07  Richard Guenther  <rguenther@suse.de>
18121
18122         * gimplify.c (gimplify_cleanup_point_expr): For empty body
18123         and EH-only cleanup drop the cleanup instead of inserting it
18124         unconditionally.
18125
18126 2010-06-07  Ira Rosen  <irar@il.ibm.com>
18127
18128         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
18129         documentation.
18130         * targhooks.c (default_builtin_vectorization_cost): New function.
18131         * targhooks.h (default_builtin_vectorization_cost): Declare.
18132         * target.h (enum vect_cost_for_stmt): Define.
18133         (builtin_vectorization_cost): Change argument and comment.
18134         * tree-vectorizer.h: Remove cost model macros.
18135         * tree-vect-loop.c: Include target.h.
18136         (vect_get_cost): New function.
18137         (vect_estimate_min_profitable_iters): Replace cost model macros with
18138         calls to vect_get_cost.
18139         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
18140         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
18141         default implementation.
18142         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
18143         calls to target hook builtin_vectorization_cost.
18144         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
18145         Likewise.
18146         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
18147         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
18148         implementation to return costs.
18149         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
18150         * config/spu/spu.h: Remove vectorizer cost model macros.
18151         * config/i386/i386.h: Likewise.
18152         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
18153         a call to target hook builtin_vectorization_cost.
18154
18155 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
18156
18157         PR target/44319
18158         * config/i386/i386.c (override_options): Turn zee pass on for level 2
18159         and above and defer till target is known.
18160         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
18161         turn off otherwise.
18162
18163 2010-05-25  Jan Hubicka  <jh@suse.cz>
18164
18165         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
18166         (df_compact_blocks): Likewise.
18167         * df.h (struct df): Turn hardware_regs_used,
18168         regular_block_artificial_uses, eh_block_artificial_uses,
18169         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
18170         bitmap_head.
18171         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
18172         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
18173         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
18174         df_scan_blocks, df_insn_delete, df_insn_rescan,
18175         df_insn_rescan_debug_internal, df_insn_rescan_all,
18176         df_process_deferred_rescans, df_process_deferred_rescans,
18177         df_notes_rescan, df_get_call_refs, df_get_call_refs,
18178         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
18179         df_record_entry_block_defs, df_record_exit_block_uses,
18180         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
18181         df_scan_verify): Update.
18182
18183 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
18184
18185         PR c++/44188
18186         * c-common.c (is_typedef_decl): Move this definition ...
18187         * tree.c (is_typedef_decl): ... here.
18188         (typdef_variant_p): Move definition here from cp/tree.c.
18189         * c-common.h (is_typedef_decl): Move this declaration ...
18190         * tree.h (is_typedef_decl): ... here.
18191         (typedef_variant_p): Move declaration here from cp/cp-tree.h
18192         * dwarf2out.c (is_naming_typedef_decl): New function.
18193         (gen_tagged_type_die): Split out of ...
18194         (gen_type_die_with_usage): ... this function. When an anonymous
18195         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18196         is emitted for the typedef.
18197         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18198         anonymous tagged types.
18199
18200 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18201
18202         PR c/20000
18203         * c-decl.c (grokdeclarator): Delete warning.
18204
18205 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18206
18207         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
18208         newly built CALL_EXPR.
18209         * tree-profile.c (tree_profiling): Don't profile functions produced
18210         for built-in stuff.
18211
18212 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
18213
18214         PR bootstrap/44427
18215         PR bootstrap/44428
18216         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
18217         endianness-independent.
18218
18219 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
18220
18221         * c-common.c: Move to c-family/.
18222         * c-common.def: Likewise.
18223         * c-common.h: Likewise.
18224         * c-cppbuiltin.c: Likewise.
18225         * c-dump.c: Likewise.
18226         * c-format.c: Likewise.
18227         * c-format.h : Likewise.
18228         * c-gimplify.c: Likewise.
18229         * c-lex.c: Likewise.
18230         * c-omp.c: Likewise.
18231         * c.opt: Likewise.
18232         * c-opts.c: Likewise.
18233         * c-pch.c: Likewise.
18234         * c-ppoutput.c: Likewise.
18235         * c-pragma.c: Likewise.
18236         * c-pragma.h: Likewise.
18237         * c-pretty-print.c: Likewise.
18238         * c-pretty-print.h: Likewise.
18239         * c-semantics.c: Likewise.
18240         * stub-objc.c: Likewise.
18241
18242         * gengtype.c (get_file_langdir): Special-case files in c-family/.
18243         (get_output_file_with_visibility): Fix name for c-common.h.
18244         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
18245
18246         * c-tree.h: Update include path for moved files.
18247         * c-lang.c: Likewise.
18248         * c-lang.h: Likewise.
18249         * c-parser.c: Likewise.
18250         * c-convert.c: Likewise.
18251         * c-decl.c: Likewise.
18252         * c-objc-common.c: Likewise.
18253         * configure.ac: Make sure c-family/ exists in the build directory.
18254         * configure: Regenerate.
18255         * Makefile.in: Update paths for moved files.  Regroup files per
18256         location and update dependencies.  Move generated_files down after
18257         ALL_GTFILES_H.
18258
18259         * config/spu/spu-c.c: Update paths for moved files.
18260         * config/mep/mep-pragma.c: Likewise.
18261         * config/darwin-c.c: Likewise.
18262         * config/i386/msformat-c.c: Likewise.
18263         * config/i386/i386-c.c: Likewise.
18264         * config/avr/avr-c.c: Likewise.
18265         * config/sol2-c.c: Likewise.
18266         * config/ia64/ia64-c.c: Likewise.
18267         * config/rs6000/rs6000-c.c: Likewise.
18268         * config/arm/arm.c: Likewise.
18269         * config/arm/arm-c.c: Likewise.
18270         * config/h8300/h8300.c: Likewise.
18271         * config/v850/v850-c.c: Likewise.
18272
18273         * config/t-darwin: Fix dependencies for moved files.
18274         * config/t-sol2: Fix dependencies for moved files.
18275         * config/mep/t-mep: Fix dependencies for moved files.
18276         * config/ia64/t-ia64: Fix dependencies for moved files.
18277         * config/rs6000/t-rs6000: Fix dependencies for moved files.
18278         * config/v850/t-v850: Fix dependencies for moved files.
18279         * config/v850/t-v850e: Fix dependencies for moved files.
18280
18281         * config/m32c/m32c-pragma.c
18282
18283         * po/exgettext: Look in c-family/ also.
18284
18285 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
18286
18287         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
18288         (mark_control_dependent_edges_necessary): Call it instead of marking
18289         the last statement manually.
18290         (propagate_necessity): Likewise.
18291
18292 2010-06-05  Jan Hubicka  <jh@suse.cz>
18293
18294         * basic-block.h (compute_dominance_frontiers): Updated.
18295         (compute_idf): Likewise.
18296
18297         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
18298         for dominance frontiers.
18299         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
18300         (insert_updated_phi_nodes_for): Likewise.
18301         (update_ssa): Likewise.
18302         * cfganal.c (compute_dominance_frontiers_1): Likewise.
18303         (compute_dominance_frontiers): Likewise.
18304         (compute_idf): Likewise.
18305         * df-problems.c (df_md_local_compute): Likewise.
18306
18307 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
18308
18309         * target.h (struct gcc_target): Add memory_move_cost field.
18310         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
18311         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
18312         * targhooks.c (default_memory_move_cost): New function.
18313         * targhooks.h (default_memory_move_cost): Declare function.
18314         * reload.h (memory_move_cost): Declare.
18315         (memory_move_secondary_cost): Change type of 'in' argument to bool.
18316         * reginfo.c (memory_move_cost): New function.
18317         (memory_move_secondary_cost): Change type of 'in' argument to bool.
18318         * ira.h (ira_memory_move_cost): Update comment.
18319         * ira.c (ira_memory_move_cost): Update comment.
18320         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
18321         with memory_move_cost.
18322         * postreload.c (reload_cse_simplify_set): (Ditto.).
18323         * reload1.c (choose_reload_regs): (Ditto.).
18324         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
18325         (MEMORY_MOVE_COST):  Revise documentation.
18326
18327         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18328         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18329         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
18330         type of 'in' argument to bool.
18331         (TARGET_MEMORY_MOVE_COST): Define.
18332
18333 2010-06-05  Jan Hubicka  <jh@suse.cz>
18334
18335         * ipa-pure-const.c (propagate): Fix typo in handling of functions
18336         that cannot return.  Be more careful when merging the results with
18337         previously known ones.
18338
18339 2010-06-05  Matthias Klose  <doko@ubuntu.com>
18340
18341         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
18342         function to add the -iplugindir option.
18343         (find_plugindir_spec_function): Add new declaration and function.
18344         (static_spec_func): Use it for "find-plugindir".
18345
18346 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
18347
18348         PR c++/44361
18349         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
18350         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
18351         statement expression.
18352
18353 2010-06-05  Jan Hubicka  <jh@suse.cz>
18354
18355         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
18356         (df_rd_problem_data): Convert sparse_invalidated_by_call,
18357         dense_invalidated_by_call to bitmap head.
18358         (df_rd_alloc, df_rd_bb_local_compute_process_def,
18359         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
18360         df_rd_start_dump, df_lr_verify_transfer_functions,
18361         df_live_verify_transfer_functions, df_chain_create_bb,
18362         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
18363         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
18364         df_simulate_one_insn_forwards, df_md_alloc,
18365         df_md_bb_local_compute_process_def,
18366         df_md_bb_local_compute_process_def, df_md_local_compute,
18367         df_md_transfer_function df_md_free): Update.
18368
18369 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
18370
18371         PR c/44322
18372         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
18373         target type for ADDR_EXPR; require no changes to qualifiers except
18374         for function types.
18375         * c-tree.h (c_build_type_variant): Remove.
18376
18377 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
18378
18379         * genautomata.c (get_excl_set): Do work per element, not per char.
18380         (check_presence_pattern_sets): Similar.
18381         (check_absence_pattern_sets): Similar.
18382
18383 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
18384
18385         * genautomata.c (curr_state_pass_num): Delete.
18386         (min_issue_delay_pass_states): Delete.
18387         (min_issue_delay): Delete.
18388         (initiate_min_issue_delay_pass_states): Delete.
18389         (output_min_issue_delay_table): Compute min_issue_delay_vect
18390         using a breadth-first search variant.
18391         (output_tables): Don't call initiate_min_issue_delay_pass_states.
18392
18393 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
18394
18395         PR boostrap/44421
18396         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
18397         (df_byte_lr_bb_local_compute): Likewise.
18398
18399 2010-06-03  Jason Merrill  <jason@redhat.com>
18400
18401         Implement noexcept operator (5.3.7)
18402         * c-common.c (c_common_reswords): Add noexcept.
18403         * c-common.h (enum rid): Add RID_NOEXCEPT.
18404
18405 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
18406
18407         * config/darwin-driver.c (darwin_default_min_version): Use
18408         GCC-specific formats in diagnostics.
18409         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
18410         diagnostics.
18411         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
18412         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
18413         eval_spec_function, handle_braces, process_brace_body, main,
18414         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
18415         getenv_spec_function, compare_version_strings,
18416         version_compare_spec_function): Use GCC-specific formats in
18417         diagnostics.
18418
18419 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
18420
18421         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
18422         that operand 0 and operand 1 are equal.
18423         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
18424         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
18425         and operand 1 are equal.
18426         <default>: Ditto.  Remove ??? comment.
18427         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
18428         and operand 1 are equal.
18429         <default>: Ditto.  Remove ??? comment.
18430         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
18431         are equal.
18432         (*add<mode>_4) <default>: Ditto.
18433         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
18434
18435 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
18436
18437         * config/i386/i386-protos.h (ix86_print_operand): Declare.
18438         * config/i386/i386.c (ix86_print_operand): Make non-static.
18439         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
18440         * output.h (output_operand): Declare.
18441         * final.c (output_operand): Make non-static.
18442
18443 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
18444
18445         PR rtl-optimization/44013
18446         * sched-deps.c (add_dependence_list_and_free): Don't free lists
18447         when processing debug insns.
18448
18449         PR debug/41371
18450         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
18451         recursing.  Check that recursion is bounded.  Rename inner var
18452         to avoid hiding incoming argument.
18453
18454 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
18455
18456         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
18457         operands[2] == 255.
18458         (*addqi_3): Ditto.
18459         (*addqi_4): Ditto.
18460         (*addqi_5): Ditto.
18461         (*addqi_ext_1_rex64): Ditto.
18462         (*addqi_ext_1): Ditto.
18463
18464         (*addqi_4): Check for incdec_operand in QImode.
18465
18466         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
18467         using SWI mode iterator.
18468         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
18469         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
18470         mode iterator.
18471         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
18472         using SWI mode iterator.
18473
18474 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18475
18476         PR c/25880
18477         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
18478         * c-format.c (gcc_diag_flag_specs): Add hash.
18479         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
18480         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
18481         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
18482         pp_c_cv_qualifiers. Handle qualifiers spelling here.
18483         (pp_c_type_qualifier_list): Call the function above.
18484         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
18485         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
18486         (WARN_FOR_QUALIFIERS): New macro.
18487         (convert_for_assignment): Use it.
18488
18489 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
18490
18491         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
18492
18493 2010-06-04  Jan Hubicka  <jh@suse.cz>
18494
18495         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
18496         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
18497         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
18498         DF_BYTE_LR_OUT): Update for embedded bitmaps.
18499         * fwprop.c (single_def_use_enter_block): Likewise.
18500         * ddg.c (create_ddg_dep_from_intra_loop_link,
18501         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
18502         * loop-iv.c (latch_dominating_def): Likewise.
18503         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
18504         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
18505         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
18506         df_rd_transfer_function, df_rd_top_dump,
18507         df_rd_bottom_dump): Update.
18508         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
18509         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
18510         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
18511         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
18512         df_lr_verify_solution_start, df_lr_verify_solution_end,
18513         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
18514         df_live_free_bb_info, df_live_alloc, df_live_reset,
18515         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
18516         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
18517         df_live_verify_solution_start, df_live_verify_solution_end,
18518         df_live_verify_transfer_functions, df_chain_create_bb,
18519         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
18520         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18521         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
18522         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
18523         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18524         df_byte_lr_transfer_function, df_byte_lr_top_dump,
18525         df_byte_lr_bottom_dump, df_create_unused_note,
18526         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
18527         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
18528         df_md_transfer_function, df_md_init, df_md_confluence_0,
18529         df_md_confluence_n,
18530         df_md_top_dump, df_md_bottom_dump): Update.
18531         (struct df_lr_problem_data): Embedd bitmap headers.
18532
18533 2010-06-04  Jan Hubicka  <jh@suse.cz>
18534
18535         * dce.c (dce_process_block): Do not re-scan already marked
18536         instructions.
18537
18538 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
18539
18540         PR rtl-optimization/39871
18541         PR rtl-optimization/40615
18542         PR rtl-optimization/42500
18543         PR rtl-optimization/42502
18544         * ira.c (init_reg_equiv_memory_loc: New function.
18545         (ira): Call it twice.
18546         * reload.h (calculate_elim_costs_all_insns): Declare.
18547         * ira-costs.c: Include "reload.h".
18548         (regno_equiv_gains): New static variable.
18549         (init_costs): Allocate it.
18550         (finish_costs): Free it.
18551         (ira_costs): Call calculate_elim_costs_all_insns.
18552         (find_costs_and_classes): Take estimated elimination costs
18553         into account.
18554         (ira_adjust_equiv_reg_cost): New function.
18555         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
18556         * reload1.c (init_eliminable_invariants, free_reg_equiv,
18557         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
18558         (elim_bb): New static variable.
18559         (reload): Move code out of here into init_eliminable_invariants and
18560         free_reg_equiv.  Call them.
18561         (calculate_elim_costs_all_insns): New function.
18562         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
18563         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
18564         but call note_reg_elim_costly if we turned a valid memory address
18565         into an invalid one.
18566         * Makefile.in (ira-costs.o): Depend on reload.h.
18567
18568 2010-06-04  Julian Brown  <julian@codesourcery.com>
18569
18570         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
18571         for pool ranges.
18572
18573 2010-06-04  Richard Guenther  <rguenther@suse.de>
18574
18575         PR lto/41584
18576         * cgraph.h (struct varpool_node): Add lto_file_data field.
18577         * lto-cgraph.c (input_varpool_node): Initialize it.
18578
18579 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
18580
18581         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
18582         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
18583         predicate in "type" attribute calculation.
18584         (*addsi_1_zext): Ditto.
18585         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
18586         (*addsi_2_zext): Ditto.
18587         (*add<mode>_3): Ditto.
18588         (*addsi_3_zext): Ditto.
18589         (*add<mode>_5): Ditto.
18590
18591 2010-06-03  Jan Hubicka  <jh@suse.cz>
18592
18593         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
18594         of bitmap_bit_p.
18595         * cfganal.c (compute_dominance_frontiers_1): Likewise.
18596
18597 2010-06-03  Jan Hubicka  <jh@suse.cz>
18598
18599         * df-problems.c (df_create_unused_note, df_note_bb_compute):
18600         micro-optimize the checks when to add new note.
18601
18602 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
18603
18604         * final.c (output_asm_insn): Call
18605         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
18606         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
18607         (output_address): Call targetm.asm_out.print_operand_address.
18608         Update comments.
18609         * target.h (struct gcc_target): Add print_operand,
18610         print_operand_address, and print_operand_punct_valid_p fields.
18611         * targhooks.h (default_print_operand): Declare.
18612         (default_print_operand_address): Declare.
18613         (default_print_operand_punct_valid_p): Declare.
18614         * targhooks.c (default_print_operand): Define.
18615         (default_print_operand_address): Define.
18616         (default_print_operand_punct_valid_p): Define.
18617         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
18618         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
18619         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
18620         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
18621         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
18622         * vmsdbgout.c (addr_const_to_string): Update comment.
18623         * config/i386/i386.c (print_operand): Rename to...
18624         (ix86_print_operand): ...this.  Make static.
18625         (print_operand_address): Rename to...
18626         (ix86_print_operand_address): ...this.  Make static.  Call
18627         ix86_print_operand instead of PRINT_OPERAND.
18628         (ix86_print_operand_punct_valid_p): New function.
18629         (TARGET_PRINT_OPERAND): Define.
18630         (TARGET_PRINT_OPERAND_ADDRESS): Define.
18631         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18632         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
18633         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18634         (PRINT_OPERAND): Delete.
18635         (PRINT_OPERAND_ADDRESS): Delete.
18636         * config/i386/i386-protos.h (print_operand): Delete prototype.
18637         (print_operand_address): Delete prototype.
18638
18639 2010-06-03  Richard Guenther  <rguenther@suse.de>
18640
18641         PR tree-optimization/44403
18642         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18643         Preserve pointer qualifiers.
18644         (vect_create_data_ref_ptr): Likewise.
18645
18646 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
18647
18648         PR c++/44294
18649         * defaults.h (MAX_FIXED_MODE_SIZE): New.
18650
18651         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
18652
18653 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
18654
18655         PR debug/44375
18656         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
18657         return false if merging the bbs would lead to goto_locus
18658         location being lost from the IL.
18659
18660 2010-06-03  Jan Hubicka  <jh@suse.cz>
18661             Jakub Jelinek  <jakub@redhat.com>
18662
18663         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
18664         set->regs[i] is NULL or has just one entry.
18665
18666 2010-06-03  Jan Hubicka  <jh@suse.cz>
18667
18668         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
18669         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
18670
18671 2010-06-03  Paul Brook  <paul@codesourcery.com>
18672
18673         * config/arm/arm.c (FL_TUNE): Define.
18674         (arm_default_cpu, arm_cpu_select): Remove.
18675         (all_cores): Populate core field.
18676         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
18677         (arm_find_cpu): New function.
18678         (arm_handle_option): Lookup cpu/architecture names.
18679         (arm_override_options): Cleanup mcpu/march/mtune handling.
18680         (arm_file_start): Ditto.
18681
18682 2010-06-03  Alan Modra  <amodra@gmail.com>
18683
18684         PR target/44169
18685         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
18686         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
18687         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
18688         (rs6000_emit_load_toc_table): Likewise.
18689
18690 2010-06-02  Jan Hubicka  <jh@suse.cz>
18691
18692         * passes.c (init_optimization_passes): Put ipa reference
18693         after ipa pure-const.
18694
18695 2010-06-02  Jan Hubicka  <jh@suse.cz>
18696
18697         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
18698         calls_read_all and calls_write_all.
18699         (get_reference_optimization_summary): Fix formatting.
18700         (is_proper_for_analysis): Check that decl is not readonly.
18701         (propagate_bits): Check CONST/PURE/noreturn flags.
18702         (ipa_init): Move all_module_statics to optimization_summary_obstack.
18703         (analyze_function): Ignore indirect edges.
18704         (copy_global_bitmap): For all module statics, do nothing.
18705         (generate_summary): Do not print calls_read_all/calls_write_all.
18706         (read_write_all_from_decl): Take node as argument; check
18707         cgraph_node_cannot_return.
18708         (propagate): Reorganize read_all/write_all computation;
18709         check indirect edges; check ecf flags; use all_module_statics
18710         in the results; do not free all_module_statics.
18711         (stream_out_bitmap): Handle all_module_statics.
18712         (ipa_reference_write_optimization_summary): Likewise; use
18713         varpool/cgraph encoders to get boundaries.
18714         (ipa_reference_read_optimization_summary): Read in all_module_statics;
18715         use it when possible.
18716
18717 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18718
18719         PR target/44218
18720         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
18721         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
18722
18723         * doc/extend.texi (powerpc builtins): Document vec_recip,
18724         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
18725
18726         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
18727         (rs6000_emit_swrsqrt): Ditto.
18728         (rs6000_emit_swdivsf): Delete.
18729         (rs6000_emit_swdivdf): Ditto.
18730         (rs6000_emit_swrsqrtsf): Ditto.
18731
18732         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
18733         describe the reciprocal estimate support for each type.
18734         (recip_options): Map -mrecip=<opt> into option bits.
18735         (gen_2arg_fn_t): New typedef for binary rtx gen function.
18736         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
18737         reciprocal estimate instructions.
18738         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
18739         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
18740         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
18741         cost information if -mdebug=cost or -mdebug=reg.
18742         (rs6000_override_options): Set -mrecip-precision for power6, and
18743         power7 machines.  If -mvsx or -mdfp, enable various options that
18744         came in previous instruction set ISAs, unless the option was
18745         explicitly disabled by the command line option.  Parse
18746         -mrecip=<opt> options.
18747         (rs6000_builtin_vectorized_function): Add support for vectorizing
18748         the reciprocal estimate builtins and expansions.
18749         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
18750         (bdesc_2arg): Add reciprocal estimate builtins.
18751         (bdesc_1arg): Add reciprocal square root estimate builtins.
18752         (rs6000_expand_builtin): Rewrite to use a switch statement,
18753         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
18754         (rs6000_init_builtins): Create declarations for reciprocal
18755         estimate builtins.
18756         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
18757         sized, prefer traditional floating point registers, if integer
18758         vector types, prefer altivec registers.  Don't actually look at
18759         the memory address any more.
18760         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
18761         builtins.
18762         (rs6000_load_constant_and_splat): New helper function to load up
18763         the constant for reciprocal estimate instructions.
18764         (rs6000_emit_madd): New helper function for generating
18765         multiply/add type instructions, based on the current switches.
18766         (rs6000_emit_msub): Ditto.
18767         (rs6000_emit_mnsub): Ditto.
18768         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
18769         replace a divide with a reciprocal estimate and fixup, adding
18770         support for machines with high precision and vectors.
18771         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
18772         low precision machines.
18773         (rs6000_emit_swdiv): New common function to be called to replace a
18774         division with reciprocal estimate and fixup.
18775         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
18776         for double and vector types.  Add support for high precision machines.
18777
18778         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
18779         the reciprocal estimate instructions can be generated.
18780         (TARGET_FRE): Ditto.
18781         (TARGET_FRSQRTES): Ditto.
18782         (TARGET_FRSQRTE): Ditto.
18783         (RS6000_RECIP_*): New macros for reciprocal estimate support.
18784
18785         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
18786         square root estimate on vectors.
18787         (re<mode>2): New insn for reciprocal division estimate on vectors.
18788
18789         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
18790         New builtin.
18791         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
18792         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
18793         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
18794         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
18795         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
18796         (RS6000_BUILTIN_RSQRT): Ditto.
18797         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
18798         floating point builtin.
18799
18800         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
18801         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
18802         __RECIP_PRECISION__ based on the command line switches.
18803         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
18804
18805         * config/rs6000/rs6000.opt (-mrecip): Document add support for
18806         replacing division instructions with reciprocal estimate and fixup.
18807         (-mrecip=<opt>): New option.
18808         (-mrecip-precision): Ditto.
18809
18810         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
18811         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
18812         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
18813         precision scalar.
18814
18815         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
18816         (UNSPEC_VREFP): Ditto.
18817         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
18818         conterparts with regard to support of -mno-fused-madd and -ffast-math.
18819         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
18820         reciprocal estimate instructions to be generated.
18821         (altivec_vrefp): Ditto.
18822
18823         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
18824         estimate support.
18825         (rreg): New mode attribute for reciprocal estimate support.
18826         (recip<mode>3): New insn for division using reciprocal estimate
18827         and fixup builtins.
18828         (divide define_split): New define_split to convert floating point
18829         division to use reciprocal estimate if the user used the
18830         appropriate options and the split is run when we can add new
18831         pseudo registers for the fixup.
18832         (rsqrt<mode>2): New insn for reciprocal square root support.
18833         (recipsf3): Move into recip<mode>3.
18834         (recipdf3): Ditto.
18835         (fres): Use TARGET_FRES.
18836         (rsqrtsf2): Move into rsqrt<mode>2.
18837         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
18838         (copysignsf3): Add support for VSX.
18839         (fred): Use TARGET_FRE.
18840         (fred_fpr): Ditto.
18841         (rsqrtdf_internal1): New function for frsqrte instruciton.
18842
18843         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
18844         (vec_rsqrt): Ditto.
18845
18846 2010-06-03  Richard Guenther  <rguenther@suse.de>
18847
18848         PR middle-end/44291
18849         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
18850         (set_user_assembler_libfunc): Likewise.
18851
18852 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
18853
18854         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
18855         defaults.h.
18856         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
18857         to defaults.h
18858         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
18859         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
18860         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
18861         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
18862         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
18863         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
18864         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
18865         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
18866         * defaults.h: Updated for above mentioned changes.
18867
18868 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
18869
18870         * c-common.c: Remove header include of tm_p.h.
18871         * Makefile.in (c-common.o): Remove TM_P_H dependency.
18872
18873 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
18874
18875         * tree.h (struct tree_decl_map): New type.
18876         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
18877         (tree_decl_map_hash): New prototype.
18878         (debug_expr_for_decl, value_expr_for_decl): Change into
18879         tree_decl_map hashtab from tree_map.
18880         (init_ttree): Adjust initialization.
18881         (tree_decl_map_hash): New function.
18882         (decl_debug_expr_lookup, decl_debug_expr_insert,
18883         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
18884
18885 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18886
18887         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
18888         linker emulations.
18889         * configure: Regenerate.
18890         * config.in: Regenerate.
18891
18892         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
18893         (X86_64_EMULATION): Define.
18894         (TARGET_LD_EMULATION): Use them.
18895
18896         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
18897         (SPARC64_EMULATION): Define.
18898         (LINK_ARCH_SPEC): Use them.
18899
18900 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
18901
18902         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
18903         smallest_mode_for_size for computing the precision types of new
18904         graphite IVs.  Do not call lang_hooks.types.type_for_size.
18905
18906 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
18907
18908         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
18909         information.
18910         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
18911
18912 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
18913
18914         PR middle-end/44363
18915         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
18916         return false instead.
18917
18918 2010-06-02  Jan Hubicka  <jh@suse.cz>
18919
18920         PR middle-end/44295
18921         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
18922         create new cgraph node to check callee.
18923
18924 2010-06-02  Richard Guenther  <rguenther@suse.de>
18925
18926         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
18927
18928 2010-06-02  Richard Guenther  <rguenther@suse.de>
18929
18930         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
18931         (lto_wrapper_cleanup): ... this.  Do not exit.
18932         (fatal): Adjust.  Exit here.
18933         (fatal_perror): Likewise.
18934         (fatal_signal): New function.
18935         (main): Set up signal handlers to cleanup temporary files.
18936         * Makefile.in (lto-wrapper.o): Adjust dependencies.
18937
18938 2010-06-02  Richard Guenther  <rguenther@suse.de>
18939
18940         PR tree-optimization/44377
18941         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
18942
18943 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18944
18945         * config/s390/2097.md (z10_fhex): Remove insn reservation.
18946         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
18947         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
18948         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
18949         instruction.
18950         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
18951
18952 2010-06-02  Jan Hubicka  <jh@suse.cz>
18953
18954         * bitmap.c (bitmap_descriptor): Add search_iter.
18955         (bitmap_find_bit): Increment it.
18956         (print_statistics): Print it.
18957
18958 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
18959
18960         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
18961         instead of gimple_build_call_vec.  Delete unnecessary local variable.
18962
18963 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
18964
18965         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
18966         change from yesterday.
18967
18968 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
18969
18970         * c-ada-spec.c: Clean up redundant includes.
18971
18972 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
18973
18974         * gimplify.c: Do not include except.h and optabs.h.
18975         (gimplify_body): Do not initialize RTL profiling.
18976         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
18977         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
18978         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
18979         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
18980         langhooks.h.
18981
18982         * tree-pretty-print.h: Include pretty-print.h.
18983         * gimple-pretty-print.h: Include pretty-print.h.
18984
18985         * tree-pretty-print.c: Do not include diagnostic.h.
18986         * tree-vrp.c: Likewise.
18987         * tree-tailcall.c: Likewise
18988         * tree-scalar-evolution.c: Likewise
18989         * tree-ssa-dse.c: Likewise
18990         * tree-chrec.c: Likewise
18991         * tree-ssa-sccvn.c: Likewise
18992         * tree-ssa-copyrename.c: Likewise
18993         * tree-nomudflap.c: Likewise
18994         * tree-call-cdce.c: Likewise
18995         * tree-stdarg.c: Likewise
18996         * tree-ssa-math-opts.c: Likewise
18997         * tree-nrv.c: Likewise
18998         * tree-ssa-sink.c: Likewise
18999         * tree-browser.c: Likewise
19000         * tree-ssa-loop-ivcanon.c: Likewise
19001         * tree-ssa-loop.c: Likewise
19002         * tree-parloops.c: Likewise
19003         * tree-ssa-address.c: Likewise
19004         * tree-ssa-ifcombine.c: Likewise
19005         * tree-if-conv.c: Likewise
19006         * tree-data-ref.c: Likewise
19007         * tree-affine.c: Likewise
19008         * tree-ssa-phiopt.c: Likewise
19009         * tree-ssa-coalesce.c: Likewise
19010         * tree-ssa-pre.c: Likewise
19011         * tree-ssa-live.c: Likewise
19012         * tree-predcom.c: Likewise
19013         * tree-ssa-forwprop.c: Likewise
19014         * tree-ssa-dce.c: Likewise
19015         * tree-ssa-ter.c: Likewise
19016         * tree-ssa-loop-prefetch.c: Likewise
19017         * tree-optimize.c: Likewise
19018         * tree-ssa-phiprop.c: Likewise
19019         * tree-object-size.c: Likewise
19020         * tree-outof-ssa.c: Likewise
19021         * tree-ssa-structalias.c: Likewise
19022         * tree-switch-conversion.c: Likewise
19023         * tree-ssa-reassoc.c: Likewise
19024         * tree-ssa-operands.c: Likewise
19025         * tree-vectorizer.c: Likewise
19026         * tree-vect-data-refs.c: Likewise
19027         * tree-vect-generic.c: Likewise
19028         * tree-vect-stmts.c: Likewise
19029         * tree-vect-patterns.c: Likewise
19030         * tree-vect-slp.c: Likewise
19031         * tree-vect-loop.c: Likewise
19032         * tree-ssa-loop-ivopts.c: Likewise
19033         * tree-ssa-loop-im.c: Likewise
19034         * tree-ssa-loop-niter.c: Likewise
19035         * tree-ssa-loop-unswitch.c: Likewise
19036         * tree-ssa-loop-manip.c: Likewise
19037         * tree-ssa-loop-ch.c: Likewise
19038         * tree-dump.c: Likewise
19039         * tree-complex.c: Likewise
19040
19041         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
19042         * tree-ssa-uninit.c: Likewise
19043         * tree-ssa-threadupdate.c: Likewise
19044         * tree-ssa-uncprop.c: Likewise
19045         * tree-ssa-ccp.c: Likewise
19046         * tree-ssa-dom.c: Likewise
19047         * tree-ssa-propagate.c: Likewise
19048         * tree-ssa-alias.c: Likewise
19049         * tree-dfa.c: Likewise
19050         * tree-cfgcleanup.c: Likewise
19051         * tree-sra.c: Likewise
19052         * tree-ssa-copy.c: Likewise
19053         * tree-ssa.c: Likewise
19054         * tree-profile.c: Likewise
19055         * tree-cfg.c: Likewise
19056         * tree-ssa-threadedge.c: Likewise
19057         * tree-vect-loop-manip.c: Likewise
19058
19059         * tree-inline.c: Do not include diagnostic.h and expr.h.
19060         Include rtl.h.
19061         (copy_decl_for_dup_finish): Do not use NULL_RTX.
19062
19063         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
19064         * tree-loop-distribution.c: Likewise.
19065
19066 2010-06-01  Jan Hubicka  <jh@suse.cz>
19067
19068         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
19069
19070 2010-06-01  Jan Hubicka  <jh@suse.cz>
19071
19072         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
19073         remove return value.
19074         (split_bbs_on_noreturn_calls) .... here.
19075         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
19076         * tree-flow.h (fixup_noreturn_call): New.
19077
19078 2010-06-01  Jan Hubicka  <jh@suse.cz>
19079
19080         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
19081
19082 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
19083
19084         * tree.h (build_nt_call_list): Delete.
19085         * tree.c (build_nt_call_list): Delete.
19086
19087 2010-06-01  Jan Hubicka  <jh@suse.cz>
19088
19089         * fwprop.c: Make emit-rtl.h include last.
19090         * rtlanal.c: Include emit-rtl.h.
19091         * genautomata.c: Output emit-rtl include into insn-automata.c
19092         * df-scan.c: Include emit-rtl.h.
19093         * haifa-sched.c: Indlude emit-rtl.h.
19094         * mode-switching.c: Indlude emit-rtl.h.
19095         * graph.c: Indlude emit-rtl.h.
19096         * sel-sched.c: Include emit-rtl.h.
19097         * sel-sched-ir.c: Include emit-rtl.h.
19098         * ira-build.c: Include emit-rtl.h.
19099         * emit-rtl.c (first_insn, last_insn): Remove defines.
19100         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
19101         Move to emit-rtl.h.
19102         (set_new_first_and_last_insn, get_last_insn_anywhere,
19103         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
19104         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
19105         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
19106         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
19107         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
19108         Use accessor functions.
19109         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19110          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19111         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19112         mem_expr_equal_p): Move here from rtl.h.
19113         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
19114         Move here from emit-rtl.c; make inline.
19115         * cfglayout.h: Include emit-rtl.h.
19116         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
19117          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
19118         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
19119         mem_expr_equal_p, get_insns, set_first-insn,
19120         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
19121         * reg-stack.c: Include emit-rtl.h.
19122         * dce.c: Likewise.
19123
19124 2010-06-01  Jan Hubicka  <jh@suse.cz>
19125
19126         * cgraph.h (tree_function_versioning): Update prototype.
19127         (cgraph_function_versioning): Update prototype.
19128         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
19129         bitmap.
19130         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
19131         (cgraph_materialize_clone, save_inline_function_body): Update use of
19132         tree_function_versioning.
19133         * tree-inline.c (copy_bb): Look for previous copied block to link
19134         after; fix debug output.
19135         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
19136         (copy_body): Likewise.
19137         (expand_call_inline): Update use of copy_body.
19138         (tree_function_versioning): Update use of copy body; accept
19139         blocks_to_copy and new_entry.
19140
19141 2010-06-01  Jan Hubicka  <jh@suse.cz>
19142
19143         * gegenrtl.c: Remove unnecesary prototypes.
19144         (gendecl): Remove.
19145         (gendef): Produce static inline.
19146         (gencode): Remove.
19147         (main): Do not decode parameters; generate header only.
19148         * Makefile.in (genrtl.c): Remove.
19149
19150 2010-06-01  Jan Hubicka  <jh@suse.cz>
19151
19152         * tree-switch-conversion.c (build_one_array): Make it readonly.
19153
19154 2010-06-01  Richard Guenther  <rguenther@suse.de>
19155
19156         * optabs.c (init_optabs): Guard all accesses to reinit.
19157         * ipa-pure-const.c (propagate): Fix another typo.
19158         * opts.c (common_handle_option): Split assignment to bool.
19159         * c-opts.c (c_common_handle_option): Likewise.
19160
19161 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
19162             Matthew Gingell  <gingell@adacore.com>
19163
19164         * doc/invoke.texi: Mention -fdump-ada-spec.
19165         * tree-dump.c (dump_files): Add ada-spec.
19166         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
19167         * tree-pass.h (tree_dump_index): Add TDI_ada.
19168         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
19169         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
19170         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
19171         * c-decl.c: Include c-ada-spec.h.
19172         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
19173         functions.
19174         (c_write_global_declarations): Add handling of -fdump-ada-spec.
19175         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
19176         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
19177         * c-ada-spec.h, c-ada-spec.c: New files.
19178
19179 2010-06-01  Richard Guenther  <rguenther@suse.de>
19180
19181         PR lto/43853
19182         * ipa-pure-const.c (get_function_state): Hand back varying state
19183         if we do not have one.
19184         (has_function_state): New function.
19185         (duplicate_node_data): Adjust.
19186         (remove_node_data): Likewise.
19187         (pure_const_write_summary): Likewise.
19188         (propagate): Likewise.  Fix typo.
19189
19190 2010-06-01  Jan Hubicka  <jh@suse.cz>
19191
19192         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
19193         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
19194         (execute_all_ipa_transforms): Do not play with the states.
19195
19196 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
19197
19198         * config/arm/t-linux-androideabi: New.
19199         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
19200
19201 2010-06-01  Jan Hubicka  <jh@suse.cz>
19202
19203         * tree-inline.c (estimate_num_insns): For stdarg functions look
19204         into call statement to count cost of argument passing.
19205
19206 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
19207
19208         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
19209         argument for fprintf.
19210         (ix86_output_addr_diff_elt): Likewise.
19211         (x86_function_profiler): Likewise.
19212         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
19213         (LPREFIX): Likewise.
19214         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
19215
19216 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
19217
19218         PR target/44338
19219         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
19220         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
19221         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
19222         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
19223         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
19224         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
19225         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
19226         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
19227         TARGET_FUSED_MADD.
19228
19229 2010-05-31  Jan Hubicka  <jh@suse.cz>
19230
19231         * tree.h (tree_range_check_failed): Declare noreturn.
19232
19233 2010-05-31  Jan Hubicka  <jh@suse.cz>
19234
19235         * gimple.c (gimple_call_builtin_p): New function.
19236         * gimple.h (gimple_call_builtin_p): Declare.
19237         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
19238         to exit.
19239         (execute_warn_function_return): BUILT_IN_RETURN is return.
19240         (split_critical_edges): Return edges are not critical.
19241         (is_ctrl_altering_stmt): Builtin_in_return is altering.
19242         (gimple_verify_flow_info): Handle built_in_return.
19243         (execute_warn_function_return): Handle built_in_return.
19244         * ipa-pure-const.c (check_call): Ignore builtin_return.
19245
19246 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
19247
19248         PR middle-end/44337
19249         * expr.c (expand_assignment): Don't store anything for out-of-bounds
19250         array accesses with non-MEM.
19251
19252         PR tree-optimization/44182
19253         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
19254         newly needs to end a bb is followed by debug stmts, instead return
19255         true from the function at the end.
19256         (maybe_move_debug_stmts_to_successors): New function.
19257         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
19258
19259 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
19260
19261         PR target/44161
19262         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
19263
19264 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
19265
19266         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
19267         for nested functions in non-optimized compilation.
19268
19269 2010-05-31  Richard Guenther  <rguenther@suse.de>
19270
19271         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
19272
19273 2010-05-30  Jan Hubicka  <jh@suse.cz>
19274
19275         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
19276
19277 2010-05-30  Richard Guenther  <rguenther@suse.de>
19278
19279         PR lto/42975
19280         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
19281         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
19282         no longer needed.
19283
19284 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
19285
19286         * config/darwin.c (output_objc_section_asm_op): Add comment.
19287         (name_needs_quotes): Add '_' to list of valid comment chars.
19288         (machopic_output_function_base_name): Remove unneeded quotes.
19289         (darwin_encode_section_info): Adjust asm whitespace.
19290         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
19291         (ASM_OUTPUT_LOCAL): Ditto.
19292         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
19293         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
19294         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
19295
19296 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
19297
19298         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
19299         RS6000_OUTPUT_BASENAME unconditionally.
19300         (rs6000_output_function_epilogue): Likewise.
19301
19302 2010-05-30  Jan Hubicka  <jh@suse.cz>
19303
19304         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
19305         nodes.
19306
19307 2010-05-30  Richard Guenther  <rguenther@suse.de>
19308
19309         * tree-cfg.c (verify_gimple_assign_single): Implement
19310         verification for COND_EXPR rhs.
19311
19312 2010-05-30  Jan Hubicka  <jh@suse.cz>
19313
19314         * cgraph.h (cgraph_dump_file): Declare.
19315         * cgraphunit.c (cgraph_dump_file): Export.
19316         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
19317
19318 2010-05-30  Jan Hubicka  <jh@suse.cz>
19319
19320         * dwarf2out.c (reference_to_unused,
19321         premark_types_used_by_global_vars_helper): Avoid creation of new
19322         varpool nodes.
19323
19324 2010-05-30  Jan Hubicka  <jh@suse.cz>
19325
19326         * cgraph.h (cgraph_node_cannot_return,
19327         cgraph_edge_cannot_lead_to_return): New functions.
19328         * cgraph.c (cgraph_node_cannot_return,
19329         cgraph_edge_cannot_lead_to_return): Use them.
19330         * ipa-pure-const.c (pure_const_names): New static var.
19331         (check_call): Handle calls not leading to return.
19332         (pure_const_read_summary): Dump info read.
19333         (propagate): Dump info about propagation process; ignore side effects
19334         of functions not leading to exit; fix handling of pure functions.
19335
19336 2010-05-30  Jan Hubicka  <jh@suse.cz>
19337
19338         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
19339         for tail call epilogues.
19340
19341 2010-05-30  Jan Hubicka  <jh@suse.cz>
19342
19343         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
19344         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
19345         dump files.
19346
19347 2010-05-29  Jan Hubicka  <jh@suse.cz>
19348
19349         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
19350         node; remove references in node we no longer keep in cgrpah but need
19351         body of.
19352
19353 2010-05-29  Jan Hubicka  <jh@suse.cz>
19354
19355         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
19356
19357 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19358
19359         PR target/44165
19360         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
19361
19362 2010-05-29  Jan Hubicka  <jh@suse.cz>
19363
19364         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
19365         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
19366         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
19367         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
19368         debug_names_replaced_by, debug_update_ssa): Likewise.
19369         * sbitmap.c (debug_sbitmap): Likewise.
19370         * genrecog.c (debug_decision, debug_decision_list): Likewise.
19371         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
19372         debug_tree_chain): Likewise.
19373         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
19374         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
19375         * optabs.c (debug_optab_libfuncs): Likewise.
19376         (verify_loop_closed_ssa): Likewise.
19377         * value-prof.c (verify_histograms): Likewise.
19378         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
19379         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
19380         * cfghooks.c (verify_flow_info): Likewise.
19381         * fold-const.c (debug_fold_checksum): Likewise.
19382         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
19383         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
19384         Likewise.
19385         * omega.c (debug_omega_problem): Likewise.
19386         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
19387         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
19388         * dominance.c (verify_dominators, debug_dominance_info,
19389         debug_dominance_tree): Likewise.
19390         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
19391         * df_regno_debug, df_ref_debug,
19392         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
19393         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
19394         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
19395         * sel-sched.c (debug_state): Likewise.
19396         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
19397         Likewise.
19398         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
19399         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
19400         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
19401         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
19402         Likewise.
19403         * c-pretty-print.c (debug_c_tree): Likewise.
19404         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
19405         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
19406         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
19407         * ebitmap.c (debug_ebitmap): Likewise.
19408         * function.c (debug_find_var_in_block_tree): Likewise.
19409         * print-rtl.c (debug_rtx): Likewise.
19410         (debug_rtx_count): Likewise.
19411         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
19412         * stor-layout.c (debug_rli): Likewise.
19413         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
19414         * tree-data-ref.c (debug_data_references,
19415         debug_data_dependence_relations, debug_data_reference,
19416         debug_data_dependence_relation, debug_rdg_vertex,
19417         debug_rdg_component, debug_rdg): Likewise.
19418         * tree-affine.c (debug_aff): Likewise.
19419         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
19420         Likewise.
19421         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
19422         * emit-rtl.c (verify_rtl_sharing): Likewise.
19423         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
19424         debug_value_expressions): Likewise.
19425         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
19426         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
19427         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
19428         * cfglayout.c (verify_insn_chain): Likewise.
19429         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
19430         debug_clast_stmt, debug_generated_program): Likewise.
19431         * ggc-page.c (debug_print_page_list): Likewise.
19432         * tree-ssa-ter.c (debug_ter): Likewise.
19433         * graphite-dependences.c (debug_pddr): Likewise.
19434         * sched-deps.c (debug_ds): Likewise.
19435         * tree-ssa.c (verify_ssa): Likewise.
19436         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
19437         debug_scattering_functions, debug_iteration_domains, debug_pdr,
19438         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
19439         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
19440         * tree-inline.c (debug_find_tree): Likewise.
19441         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
19442         debug_ppl_powerset_matrix): Likewise.
19443         * var-tracking.c (debug_dv): Likewise.
19444         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
19445         * cfgloop.c (verify_loop_structure): Likewise.
19446         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
19447         * c-common.c (verify_sequence_points): Likewise.
19448         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
19449         debug_candidates, debug_rgn_dependencies): Likewise.
19450         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
19451         * debug_constraint_graph, debug_solution_for_var,
19452         debug_sa_points_to_info): Likewise.
19453         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
19454         Likewie.
19455         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
19456         debug_loops, debug_loop, debug_loop_num): Likewise.
19457         * passes.c (debug_pass): Likewise.
19458         (dump_properties): Likewise; add cfglayout property.
19459         (debug_properties): Likewise.
19460         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
19461         * varpool.c (debug_varpool): Likewise.
19462         * regcprop.c (debug_value_data): Likewise.
19463         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
19464         debug_immediate_uses_for): Likewise.
19465
19466 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
19467
19468         PR bootstrap/44315
19469         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
19470         Filter out insn-flags.h.
19471
19472 2010-05-29  Jan Hubicka  <jh@suse.cz>
19473
19474         * cgraph.h (struct varpool_node_set_def,
19475         struct cgraph_node_set_def): Remove unused AUX pointer.
19476         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
19477         VEC_empty macro.
19478
19479 2010-05-29  Jan Hubicka  <jh@suse.cz>
19480
19481         PR middle-end/44324
19482         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
19483
19484 2010-05-29  Richard Guenther  <rguenther@suse.de>
19485
19486         * lto-streamer.c (cached_bp): New global variable.
19487         (bitpack_create): Return the cached bitpack, if available.
19488         (bitpack_delete): Clear and cache the bitpack, if appropriate.
19489         (bp_pack_value): Remove redundant asserts.
19490
19491 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
19492
19493         PR middle-end/44306
19494         * tree-if-conv.c (is_true_predicate): New.
19495         (is_predicated): Use is_true_predicate.
19496         (add_to_predicate_list): Same.  Do not use unshare_expr.
19497         (add_to_dst_predicate_list): Same.
19498
19499 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
19500
19501         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
19502         field on edges.
19503         (predicate_bbs): Same.
19504         (clean_predicate_lists): Same.
19505         (find_phi_replacement_condition): Do not AND the predicate from
19506         edge->aux.
19507
19508 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
19509
19510         PR bootstrap/44315
19511         * Makefile.in (build/gencondmd.o): Add a missing `\'.
19512
19513 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19514
19515         PR target/44261
19516         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
19517         (negdf2): Adjust expander pattern and use negdf2_slow.
19518         (negsf2): Likewise.
19519
19520 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
19521
19522         * basic-block.h (struct control_flow_graph): Move last_label_uid field
19523         up.
19524         * df.h (struct df_base_ref): Move regno field up.
19525         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
19526         * expr.h (struct separate_ops): Move location field up.
19527         * optabs.h (struct optab_d): Move libcall_basename field down.
19528         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
19529         * config/i386/i386.h (struct machine_function): Convert call_abi field
19530         into a bitfield.  Move cfa field to the end of the structure.
19531
19532 2010-05-29  Jan Hubicka  <jh@suse.cz>
19533
19534         * varpool.c (varpool_get_node): Fix lookup.
19535
19536 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
19537
19538         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
19539         RTL specific prototypes with #ifdef RTX_CODE.
19540         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
19541         * config/spu/t-spu-elf: Fix dependencies.
19542
19543         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
19544
19545 2010-05-29  Mike Stump  <mikestump@comcast.net>
19546
19547         PR bootstrap/44315
19548         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
19549         TM_H when building to avoid dependency loops.
19550
19551 2010-05-29  Jan Hubicka  <jh@suse.cz>
19552
19553         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
19554         refs and body; not the whole node for masters of materialized clones.
19555
19556 2010-05-29  Mike Stump  <mikestump@comcast.net>
19557
19558         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
19559
19560 2010-05-29  Jan Hubicka  <jh@suse.cz>
19561
19562         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
19563         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
19564         use of clone_function_name.
19565         * cgraph.h (cgraph_create_virtual_clone,
19566         cgraph_function_versioning): update prototypes.
19567         (clone_function_name): Declare.
19568         * ipa-cp.c (ipcp_insert_stage): Update call of
19569         cgraph_create_virtual_clone.
19570         * omp-low.c (create_omp_child_function_name): Use
19571         cgraph_create_virtual_clone.
19572         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
19573         (cgraph_function_versioning): Take SUFFIX argument; produce new name
19574         and make decl local.
19575
19576 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
19577
19578         * vec.h: Include statistics.h
19579         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
19580         with VEC_H.
19581
19582 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
19583
19584         * c-lex.c: Do not include c-tree.h.
19585         * c-pretty-print.c: Likewise.
19586         * c-opts.c: Likewise.
19587         * c-gimplify.c: Likewise.
19588         * c-common.c: Likewise.
19589         * c-dump.c: Likewise.  Include c-common.h.
19590
19591 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
19592
19593         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
19594         before including diagnostic-core.h.
19595         (c_cpp_error): New prototype moved from c-tree.h.
19596         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
19597         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
19598         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
19599         (c_cpp_error): Prototype moved to c-common.h.
19600         * Makefile.in: Update dependency for C_COMMON_H.
19601
19602 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
19603
19604         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
19605         * c-common.c (c_register_addr_space): Remove here.
19606         * c-decl.c (c_register_addr_space): Re-add here.
19607
19608 2010-05-28  Mike Stump  <mikestump@comcast.net>
19609
19610         * config/darwin-c.c: Remove c-tree.h include.
19611
19612 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
19613
19614         * gcc.c: Include diagnostic.h.
19615         (error_count): Remove.  All users changed to use errorcount.
19616         (programname): Remove.  All users changed to use progname.
19617         (fancy_abort, internal_error, fatal_error, error, warning, inform,
19618         fnotice): Remove.
19619         (execute): Don't include "Internal error" and bug reporting
19620         information in argument of internal_error call.
19621         (process_command): Don't increment error_count after calling
19622         perror_with_name.
19623         (input_filename): Rename to gcc_input_filename.  All users
19624         changed.
19625         (main): Call diagnostic_initialize.  Register delete_temp_files
19626         with atexit.  Use seen_error to test for errors.
19627         * gcc.h: Include diagnostic-core.h.
19628         (fatal_error, error, warning): Remove.
19629         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
19630         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
19631         (gcc.o): Update dependencies.
19632
19633 2010-05-28  Jeff Law  <law@redhat.com>
19634
19635         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
19636         functions.
19637         * ira.h (ira_bad_reload_regno): Declare
19638         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
19639
19640         * ira-color.c (update_curr_costs): Free updated hard reg costs.
19641         (ira_reassign_conflict_allocnos): Remove bogus asserts.
19642         (allocno_reload_assign): Likewise.
19643
19644 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
19645
19646         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
19647         build1_stat.
19648
19649 2010-05-28  Richard Guenther  <rguenther@suse.de>
19650
19651         PR lto/44312
19652         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
19653         Stream fixed-point constants mode.
19654         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
19655         and TYPE_PRECISION.
19656         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
19657         Stream fixed-point constants mode.
19658         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
19659         and TYPE_PRECISION.
19660
19661 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
19662
19663         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
19664         only place it was called from.
19665         (number_of_latch_executions): Do not return chrec_dont_know when the
19666         may_be_zero is a runtime condition: instead, return a COND_EXPR
19667         including the may_be_zero condition.
19668         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
19669         of nb_iterations.
19670         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
19671         COND_EXPRs.
19672
19673 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
19674
19675         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
19676         generate COND_EXPRs for degenerate_phi_result.
19677
19678 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
19679
19680         PR middle-end/44293
19681         * tree-if-conv.c (if_convertible_loop_p): Check the
19682         if-convertibility of phi nodes in non predicated BBs.
19683
19684 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
19685
19686         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
19687
19688 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
19689
19690         PR driver/15303
19691         * gcc.c (inform, warning, inform): New functions.
19692         (fatal_ice): Rename to internal_error; change cmsgid parameter to
19693         gmsgid.  All callers changed.
19694         (notice): Rename to fnotice; add parameter fp.  All callers changed.
19695         (fatal_error): Rename to fatal_signal.  All users changed.
19696         (fatal): Rename to fatal_error; change cmsgid parameter to
19697         gmsgid.  All callers changed.
19698         (process_command): Use warning instead of error for warnings.
19699         (end_going_arg): Don't use _() around argument of error.
19700         (do_spec_1): Use inform for message from %n specs.  Use warning
19701         instead of error for warnings.
19702         (main): Use inform for comparison messages.  Use warning for
19703         message about unused linker input.
19704         (error): Increment error_count.  Print "error: ".
19705         * gcc.h (fatal): Change to fatal_error.
19706         (warning): Declare.
19707         * config/darwin-driver.c (darwin_default_min_version): Use warning
19708         instead of fprintf for warnings.
19709         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
19710
19711 2010-05-28  Julian Brown  <julian@codesourcery.com>
19712
19713         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
19714         (*thumb2_addsi3_compare0_scratch): New.
19715         * config/arm/constraints.md (Pv): New.
19716         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
19717         for ARM mode only.
19718         (*addsi3_compare0_scratch): Likewise.
19719
19720 2010-05-28  Jan Hubicka  <jh@suse.cz>
19721
19722         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
19723         check.
19724         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
19725         only on local statics.
19726
19727 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
19728
19729         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
19730
19731 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
19732
19733         PR bootstrap/44314
19734         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
19735         (OPTION_GLIBC): Define.
19736
19737 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
19738
19739         PR debug/41048
19740         * dwarf2out.c (double_int_type_size_in_bits): New function.
19741         (round_up_to_align): Change first argument and return value to
19742         double_int.
19743         (field_byte_offset): Work internally on double_ints.
19744
19745         PR target/43636
19746         * builtins.c (expand_movstr): Use a temporary pseudo instead
19747         of target even when target is not NULL and not const0_rtx, but
19748         fails movstr predicate.
19749         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
19750
19751 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
19752
19753         * final.c (rest_of_clean_state): Use %m in errors instead of
19754         strerror (errno).
19755         * gengtype.c (read_input_list, close_output_files): Use xstrerror
19756         instead of strerror.
19757         * toplev.c (process_options): Use %m in errors instead of strerror
19758         (errno).
19759         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
19760         (errno).
19761
19762 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
19763
19764         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
19765         (ix86_canonical_va_list_type): Make static.  Add declaration.
19766         (ix86_enum_va_list): Make static.  Reindent.
19767         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
19768         (ix86_canonical_va_list_type): Ditto.
19769         (ix86_enum_va_list): Ditto.
19770
19771 2010-05-28  Richard Guenther  <rguenther@suse.de>
19772
19773         * lto-wrapper.c (run_gcc): With -save-temps generate a
19774         user-visible ltrans filename.  Fixup ltrans unit numbering.
19775
19776 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
19777
19778         * c-common.c (c_common_nodes_and_builtins): Replace use
19779         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
19780         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
19781         to ix86_enum_va_list.
19782         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
19783         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
19784         (TARGET_ENUM_VA_LIST_P): Add hook description.
19785         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
19786         * target.h (gcc_target): Add enum_va_list hook.
19787
19788         PR bootstrap/44299
19789         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
19790         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
19791         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
19792
19793 2010-05-28  Alan Modra  <amodra@gmail.com>
19794
19795         PR target/44266
19796         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
19797         emit_library_call machinery to set up __tls_get_addr calls.
19798
19799 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19800
19801         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
19802
19803 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
19804
19805         Revert fix for PR c++/44188
19806         * c-common.c (is_typedef_decl): Revert the moving of  this
19807         definition ...
19808         * tree.c (is_typedef_decl): ... here.
19809         (typdef_variant_p): Revert the moving of this  definition
19810         here from cp/tree.c.
19811         * c-common.h (is_typedef_decl): Revert the moving of this
19812         declaration ...
19813         * tree.h (is_typedef_decl): ... here.
19814         (typedef_variant_p): Revert the moving of this  declaration here
19815         from cp/cp-tree.h
19816         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
19817         (gen_tagged_type_die): Revert the splitting out of ...
19818         (gen_type_die_with_usage): ... this function. Revert the anonymous
19819         tagged type handling.
19820         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
19821         typedefs naming anonymous tagged types.
19822
19823 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
19824
19825         * config/rs6000/rs6000-modes.def (PSImode): Delete.
19826
19827 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
19828
19829         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
19830         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
19831         throughout.
19832         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
19833         "xer" to "ca".
19834         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
19835         XER_REGS to CA_REGS throughout.
19836         * config/rs6000/rs6000.h: Same.
19837         (ADDITIONAL_REGISTER_NAMES): Add "xer".
19838         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
19839         that mode_iterator "P" is the size for arithmetic carries as well.
19840         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
19841
19842 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
19843
19844         PR bootstrap/44255
19845         * combine.c (struct rtx_subst_pair): Define unconditionally.
19846         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
19847         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
19848         Call make_compound_operation on pair->to.
19849         (propagate_for_debug): Don't call make_compound_operation here.
19850         Always use simplify_replace_fn_rtx.
19851
19852 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
19853
19854         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
19855         * config/xtensa/xtensa.c (override_options): Check
19856           TARGET_FORCE_NO_PIC and set flag_pic.
19857         * config/xtensa/xtensa.opt: Document -mforce-no-pic
19858
19859 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
19860
19861         PR bootstrap/44299
19862         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
19863         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
19864
19865 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
19866
19867         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
19868         toplev.h.
19869         * diagnostic.c: Don't include toplev.h.
19870         (progname): Define.  Moved from toplev.c.
19871         (seen_error): New function.
19872         * diagnostic.h: Include diagnostic-core.h.
19873         (diagnostic_t, emit_diagnostic): Don't declare here.
19874         * toplev.c (progname): Move to toplev.c.
19875         (emit_debug_global_declarations, compile_file, finalize,
19876         do_compile, toplev_main): Use seen_error.
19877         * toplev.h: Include diagnostic-core.h.
19878         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
19879         internal_error, warning, warning_at, error, error_n, error_at,
19880         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
19881         verbatim, fnotice, progname): Move to diagnostic-core.h.
19882         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
19883         (expand_builtin_expect): Use seen_error.
19884         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
19885         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
19886         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
19887         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
19888         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
19889         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
19890         errorcount for errors.
19891         * c-opts.c (c_common_finish): Use seen_error.
19892         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
19893         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
19894         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
19895         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
19896         (get_coverage_counts): Use seen_error.
19897         * dwarf2out.c (dwarf2out_finish): Use seen_error.
19898         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
19899         gimplify_body): Use seen_error.
19900         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
19901         * ipa-pure-const.c (gate_pure_const): Use seen_error.
19902         * ipa-reference.c (gate_reference): Use seen_error.
19903         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
19904         * lambda-code.c: Include diagnostic-core.h instead of
19905         diagnostic.h.
19906         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
19907         * lto-compress.c: Include diagnostic-core.h instead of
19908         diagnostic.h.
19909         * lto-section-in.c: Include diagnostic-core.h instead of
19910         diagnostic.h.
19911         * lto-streamer-out.c: Include diagnostic-core.h instead of
19912         diagnostic.h.
19913         * lto-streamer.c: Include diagnostic-core.h instead of
19914         diagnostic.h.
19915         (gate_lto_out): Use seen_error.
19916         * matrix-reorg.c: Include diagnostic-core.h instead of
19917         diagnostic.h.
19918         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
19919         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
19920         (gate_expand_omp, lower_omp_1): Use seen_error.
19921         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
19922         (rest_of_decl_compilation, rest_of_type_compilation,
19923         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
19924         * tree-cfg.c (label_to_block_fn): Use seen_error.
19925         * tree-inline.c (optimize_inline_calls): Use seen_error.
19926         * tree-mudflap.c (mudflap_finish_file): Use
19927         seen_error.
19928         * tree-optimize.c (gate_all_optimizations,
19929         gate_all_early_local_passes, gate_all_early_optimizations): Use
19930         seen_error.
19931         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
19932         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
19933         (varpool_remove_unreferenced_decls,
19934         varpool_assemble_pending_decls): Use seen_error.
19935         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
19936         (TOPLEV_H, DIAGNOSTIC_H): Update.
19937         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
19938         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
19939         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
19940         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
19941         coverage.o, lambda-code.o): Update dependencies.
19942
19943 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
19944
19945         PR c++/44188
19946         * c-common.c (is_typedef_decl): Move this definition ...
19947         * tree.c (is_typedef_decl): ... here.
19948         (typdef_variant_p): Move definition here from cp/tree.c.
19949         * c-common.h (is_typedef_decl): Move this declaration ...
19950         * tree.h (is_typedef_decl): ... here.
19951         (typedef_variant_p): Move declaration here from cp/cp-tree.h
19952         * dwarf2out.c (is_naming_typedef_decl): New function.
19953         (gen_tagged_type_die): Split out of ...
19954         (gen_type_die_with_usage): ... this function. When an anonymous
19955         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
19956         is emitted for the typedef.
19957         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
19958         anonymous tagged types.
19959
19960 2010-05-27  Jason Merrill  <jason@redhat.com>
19961
19962         * print-tree.c (debug_vec_tree): New fn.
19963         (print_vec_tree): New fn.
19964         * tree.h: Declare them.
19965         * gdbinit.in (pvt): New command.
19966
19967         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
19968
19969         * gdbinit.in (pdd): New command.
19970
19971 2010-05-27  Jan Hubicka  <jh@suse.cz>
19972
19973         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
19974         (update_caller_keys): Return early if there are no callers;
19975         only update fibheap when decresing the key.
19976         (update_callee_keys): Avoid recursion.
19977         (decide_inlining_of_small_functions): When badness does not match;
19978         re-insert into fibheap.
19979
19980 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
19981
19982         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
19983         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
19984         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
19985         (ALL_HOST_OBJS): Now a union of the above two.
19986         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
19987         all files in ALL_HOST_FRONTEND_OBJS.
19988         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
19989
19990         * c-common.c: Pretend to be a backend file by undefining
19991         IN_GCC_FRONTEND (still need rtl.h here).
19992
19993 2010-05-27  Jan Hubicka  <jh@suse.cz>
19994
19995         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
19996         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
19997
19998 2010-05-27  Jan Hubicka  <jh@suse.cz>
19999
20000         * sched-ebb.c: Rename struct deps to struct deps_desc.
20001         * ddg.c: Likewise.
20002         * sel-sched-ir.c: Likewise.
20003         * sched-deps.c: Likewise.
20004         * sched-int.h: Likewise.
20005         * sched-rgn.c: Likewise.
20006
20007 2010-05-27  Jon Beniston  <jon@beniston.com>
20008
20009         PR 43726
20010         * config/lm32/lm32.h: Remove definition of
20011         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
20012
20013 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20014
20015         PR lto/44230
20016         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
20017
20018 2010-05-27  Richard Guenther  <rguenther@suse.de>
20019
20020         PR tree-optimization/44284
20021         * tree-vect-stmts.c (vectorizable_assignment): Handle
20022         sign-changing conversions as simple copy.
20023
20024 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
20025
20026         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
20027         Bionic C library.
20028         (__gthread_active_p): Check for pthread_create if compiling against
20029         Bionic C library.
20030
20031 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
20032
20033         Support compilation for Android platform.  Reimplement -mandroid.
20034
20035         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
20036         (*android*): Set ANDROID_DEFAULT.
20037         (arm*-*-linux*): Include linux-android.h.
20038         (arm*-*-eabi*): Don't include previous -mandroid implementation.
20039         * config/arm/eabi.h: Remove, move Android-specific parts ...
20040         * config/linux-android.h: ... here.  New file.
20041         * config/arm/eabi.opt: Rename to ...
20042         * config/linux-android.opt: ... this.
20043         (mandroid): Allow -mno-android option.  Initialize based on
20044         ANDROID_DEFAULT.
20045         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
20046         Move logic to corresponding LINUX_TARGET_* macros.
20047         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
20048         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
20049         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
20050         Android definitions.
20051         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
20052         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
20053         Document.
20054
20055 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
20056
20057         Add support for Bionic C library
20058
20059         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
20060         macro.
20061         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
20062         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
20063
20064         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
20065         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
20066         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
20067         to support multiple C libraries.  Handle Bionic.
20068         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
20069         (BIONIC_DYNAMIC_LINKER64): Define.
20070         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
20071         Update.
20072         (TARGET_HAS_SINCOS): Enable for Bionic.
20073
20074         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
20075         the last option specified on command line take effect.
20076         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
20077         (mbionic): New.
20078         (mglibc, muclibc): Update.
20079
20080         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
20081         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
20082         DEFAULT_LIBC.
20083
20084         * doc/invoke.texi (-mglibc, -muclibc): Update.
20085         (-mbionic): Document.
20086
20087 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20088
20089         * c-common.h (c_register_addr_space): Add prototype.
20090         (ADDR_SPACE_KEYWORD): Remove.
20091         * c-common.c (c_register_addr_space): New function.
20092         (c_addr_space_name): Reimplement.
20093         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
20094
20095         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
20096         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
20097
20098         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
20099         Remove TARGET_ADDR_SPACE_KEYWORDS.
20100
20101 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
20102
20103         * input.c: New file.
20104         * input.h (main_input_filename): Move declaration to toplev.h.
20105         * toplev.c (input_location, line_table): Move to input.c
20106         * toplev.h (main_input_filename): Move declaration from input.h.
20107         * tree.c (expand_location): Move to input.c.
20108         * Makefile.in (OBJS-common): Add input.o.
20109         (input.o): Add dependencies.
20110
20111 2010-05-27  Richard Guenther  <rguenther@suse.de>
20112
20113         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
20114         for non-existant files.
20115         (fork_execute): Mark args_name file as deleted.
20116
20117 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
20118
20119         PR bootstrp/44287
20120         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
20121         (narrow_signed_type): Likewise.
20122
20123 2010-05-26  Jan Hubicka  <jh@suse.cz>
20124
20125         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
20126         edge only when checking is enabled; check using former_clone_of;
20127         check inline clones too.
20128         (cgraph_materialize_clone): Record former_clone_of pointer.
20129         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
20130         combining redirections; dump args_to_skip bitmap
20131         (cgraph_materialize_all_clones): Do no redirection here.
20132         * ipa-inline.c (inline_transform): Do redirection here.
20133         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
20134         cheking only).
20135
20136 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20137
20138         * config/avr/avr-c.c: Do not include regs.h.
20139         Include cpplib.h for cpp_define and tree.h for c-common.h.
20140         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
20141         * config/avr/t-avr: Fix dependencies for avr-c.o.
20142
20143 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20144
20145         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
20146         string instead of SYMBOL_REF rtx.
20147         * rtl.h (set_stack_check_libfunc): Move prototype from here...
20148         * libfuncs.h: ...to here.  Adjust for explow.c change.
20149
20150 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
20151
20152         * pretty-print.c: Don't include ggc.h.
20153         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
20154         (identifier_to_locale): Use them for allocation.
20155         * pretty-print.h (identifier_to_locale_alloc,
20156         identifier_to_locale_free): Declare.
20157         * toplev.c (alloc_for_identifier_to_locale): New.
20158         (general_init): Set identifier_to_locale_alloc and
20159         identifier_to_locale_free.
20160         * Makefile.in (pretty-print.o): Update dependencies.
20161
20162 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
20163
20164         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
20165         pointer types if they have different alignment or mode.
20166
20167 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
20168
20169         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20170         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20171         * config/sparc/sparc-protos.h (function_value): Remove declaration.
20172         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
20173         sparc_function_value_regno_p): New functions.
20174         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20175         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20176         (function_value): Rename to...
20177         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
20178         argument to 'outgoing'.
20179         (function_arg_record_value, function_arg_union_value,
20180         function_arg_vector_value): Update comment.
20181
20182 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
20183
20184         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
20185         (fde_needed_for_eh_p): New predicate.
20186         (output_call_frame_info): Use it throughout to decide whether FDEs
20187         are needed for EH purpose.
20188         (dwarf2out_begin_prologue): Reorder assignments.
20189
20190 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20191
20192         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
20193         special case loop->header.
20194         (is_predicated): New.
20195         (if_convertible_loop_p): Call it.
20196
20197 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20198
20199         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
20200         iterator in parameter.  Do not generate code during the analysis.
20201         (tree_if_convert_cond_stmt): Removed.
20202         (tree_if_convert_stmt): Removed.
20203         (predicate_bbs): New.
20204         (if_convertible_loop_p): Call predicate_bbs.
20205         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
20206         now contains all the analysis part.
20207
20208 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20209
20210         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
20211         statements in the analysis part.
20212         (tree_if_convert_stmt): Update comment.
20213         (remove_conditions_and_labels): New.
20214         (combine_blocks): Call remove_conditions_and_labels.
20215         (tree_if_conversion): Update comment.
20216
20217 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20218
20219         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
20220         than 2 predecessors or more than 2 successors.
20221
20222 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20223
20224         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
20225         of loops in which the data dependence analysis fails.
20226
20227 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20228
20229         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
20230         CDI_POST_DOMINATORS.
20231         (tree_if_conversion): Same.
20232
20233 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20234
20235         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
20236
20237 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
20238
20239         * tree-if-conv.c: Update copyright years.  Fix comments.
20240         Fix indentation.
20241
20242 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
20243
20244         * builtin-types.def (BT_INT128): New primitive type.
20245         (BT_UINT128): Likewise.
20246         * c-common.c (c_common_r): Add __int128 keyword.
20247         (c_common_type_for_size): Handle __int128.
20248         (c_common_type_for_mode): Likewise.
20249         (c_common_signed_or_unsigned_type): Likewise.
20250         (c_common_nodes_and_builtins): Add builtin type
20251         if target supports 128-bit integer scalar.
20252         * c-common.h (enum rid): Add RID_INT128.
20253         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
20254         if target supports 128-bit integer scalar.
20255         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
20256         (finish_declspecs): Likewise.
20257         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
20258         (c_token_starts_declspecs): Likewise.
20259         (c_parser_declspecs): Likewise.
20260         (c_parser_attributes): Likewise.
20261         (c_parser_objc_selector): Likewise.
20262         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
20263         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
20264         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
20265         * tree.c (make_or_reuse_type): Likewise.
20266         (make_unsigned_type): Likewise.
20267         (build_common_tree_nodes_2): Likewise.
20268         * tree.h (enum integer_type_kind): Add itk_int128 and
20269         itk_unsigned_int128.
20270         (int128_integer_type_node): New define.
20271         (int128_unsigned_type_node): New define.
20272         * doc/extend.texi: Add documentation about __int128 type.
20273
20274 2010-05-26  Richard Guenther  <rguenther@suse.de>
20275
20276         * tree-ssa-sccvn.c (copy_nary): Adjust.
20277         (copy_phis): Rename to ...
20278         (copy_phi): ... this.  Adjust.
20279         (copy_references): Rename to ...
20280         (copy_reference): ... this.  Adjust.
20281         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
20282         result into the valid table.
20283
20284 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20285
20286         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
20287         insn-config.h, insn-codes.h, recog.h, and optabs.h.
20288
20289 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20290
20291         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
20292
20293 2010-05-26  Richard Guenther  <rguenther@suse.de>
20294
20295         * opts.c (common_handle_option): Handle OPT_Ofast.
20296
20297 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
20298
20299         * diagnostic.c: Don't include opts.h.
20300         (permissive_error_option): Define.
20301         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
20302         for classify_diagnostic.  Don't use memset for
20303         classify_diagnostic.  Initialize new and recently added fields.
20304         (diagnostic_classify_diagnostic): Use context->n_opts instead of
20305         N_OPTS.
20306         (diagnostic_report_diagnostic): Pass context parameter to
20307         diagnostic_report_warnings_p.  Use option_enabled and option_name
20308         hooks from context.
20309         (emit_diagnostic): Use permissive_error_option.
20310         (permerror): Likewise.
20311         * diagnostic.h: Don't include options.h.
20312         (struct diagnostic_context): Add n_opts, opt_permissive,
20313         inhibit_warnings, warn_system_headers, option_enabled and
20314         option_name fields.  Change classify_diagnostic to a pointer.
20315         * opts-diagnostic.h: New file.
20316         * opts.c: Include opts-diagnostic.h.
20317         (common_handle_option): Set global_dc fields for -Wfatal-errors,
20318         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
20319         (option_name): New function.
20320         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
20321         (c_common_handle_option): Set global_dc->permissive for
20322         -fpermissive.
20323         * c-common.c (c_cpp_error): Save and restore
20324         global_dc->warn_system_headers, not variable warn_system_headers.
20325         * toplev.c: Include opts-diagnostic.h.
20326         (general_init): Update call to diagnostic_initialize.  Set
20327         global_dc->show_column, global_dc->option_enabled and
20328         global_dc->option_name.
20329         (process_options): Don't set global_dc fields here.
20330         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
20331         (diagnostic.o, opts.o, toplev.o): Update dependencies.
20332
20333 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
20334
20335         * config/picochip/picochip.md (movsi): Split a movsi from a
20336         const after reload.
20337
20338 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20339
20340         * ggc-zone.c: Update copyright year.
20341         (poison_region): Mark memory for Valgrind as undefined before
20342         memset () call and inaccessible afterwards.
20343         (ggc_pch_total_size): Change type of i to int.
20344
20345 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20346
20347         * ggc-common.c (ggc_free_overhead): Allow empty slot.
20348
20349 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20350
20351         * ggc-common.c: Update copyright year.
20352         (ggc_rlimit_bound): Remove prototype.  Compile only if
20353         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
20354         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
20355         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
20356         (ggc_min_heapsize_heuristic): Likewise.
20357
20358 2010-05-26  Richard Guenther  <rguenther@suse.de>
20359
20360         PR rtl-optimization/44164
20361         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
20362         no-common access-path disambiguation.
20363         (indirect_ref_may_alias_decl_p): Adjust.
20364         (indirect_refs_may_alias_p): Likewise.
20365         (refs_may_alias_p_1): Likewise.
20366
20367 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20368
20369         * c-typeck.c: Do not include expr.h.
20370
20371 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
20372
20373         * rtl.h (decl_default_tls_model): Move prototype from here...
20374         * output.h: ...to here.
20375         * c-decl.c: Do not include rtl.h.
20376         * c-pragma.c: Likewise.
20377         * c-parser.c: Likewise.
20378         * c-gimplify.c: Likewise.  And also not hard-reg-set.
20379         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
20380         FIXME note for it.  Add a FIXME note for expr.h.
20381         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
20382         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
20383         defined.
20384
20385 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
20386
20387         PR target/44199
20388         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
20389         or total_size is larger than red zone size for non-V4 ABI, emit a
20390         stack_tie resp. frame_tie insn before stack pointer restore.
20391         * config/rs6000/rs6000.md (frame_tie): New insn.
20392
20393 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20394
20395         * function.h (struct function): Add can_throw_non_call_exceptions bit.
20396         * lto-streamer-in.c (input_function): Stream it in.
20397         * lto-streamer-out.c (output_function): Stream it out.
20398         * function.c (allocate_struct_function): Set it.
20399         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
20400         for flag_non_call_exceptions.
20401         * cfgbuild.c (control_flow_insn_p): Likewise.
20402         (make_edges): Likewise.
20403         * cfgexpand.c (expand_stack_alignment): Likewise.
20404         * combine.c (distribute_notes): Likewise.
20405         * cse.c (cse_extended_basic_block): Likewise.
20406         * except.c (insn_could_throw_p): Likewise.
20407         * gcse.c (simple_mem): Likewise.
20408         * ipa-pure-const.c (check_call): Likewise.
20409         (check_stmt ): Likewise.
20410         * lower-subreg.c (lower-subreg.c): Likewise.
20411         * optabs.c (emit_libcall_block): Likewise.
20412         (prepare_cmp_insn): Likewise.
20413         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
20414         * postreload.c (rest_of_handle_postreload): Likewise.
20415         * reload1.c (reload_as_needed): Likewise.
20416         (emit_input_reload_insns): Likewise.
20417         (emit_output_reload_insns): Likewise.
20418         (fixup_abnormal_edges): Likewise.
20419         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
20420         * store-motion.c (find_moveable_store): Likewise.
20421         * tree-eh.c (stmt_could_throw_p): Likewise.
20422         (tree_could_throw_p): Likewise.
20423         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20424         * config/arm/arm.c (arm_expand_prologue): Likewise.
20425         (thumb1_expand_prologue): Likewise.
20426         * config/rx/rx.md (cbranchsf4): Likewise.
20427         (cmpsf): Likewise.
20428         * config/s390/s390.c (s390_emit_prologue): Likewise.
20429         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
20430         (inline_forbidden_into_p): New predicate.
20431         (expand_call_inline): Use it to forbid inlining.
20432         (tree_can_inline_p): Likewise.
20433
20434 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
20435
20436         * config/i386/i386-c.c: Do not include rtl.h.
20437         * config/i386/t-i386: Update dependencies.
20438
20439 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
20440
20441         * attribs.c: Do not include rtl.h.
20442         * Makefile.in: Update dependencies.
20443
20444 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
20445
20446         * double-int.h (double_int_and): New.
20447         * combine.c (try_combine): Clean up, use double_int_* and
20448         immed_double_int_const functions.
20449
20450 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20451
20452         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
20453         stderr to /dev/null instead of grep -q.
20454         * configure: Regenerate.
20455
20456 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
20457
20458         * Makefile.in (EXCEPT_H): Fix typo.
20459
20460 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
20461
20462         * ira-build.c (update_conflict_hard_reg_costs): New.
20463         (ira_build): Call update_conflict_hard_reg_costs.
20464
20465 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
20466
20467         PR debug/41371
20468         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
20469         ENABLE_CHECKING.
20470         (intersect_loc_chains): Walk the s2var's loc_chain together
20471         with s1node chain as long as the locations are equal, don't
20472         call find_loc_in_1pdv in that case.
20473
20474         PR debug/42801
20475         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
20476         (copy_bind_expr): ... instead of here.
20477         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
20478         if the block hasn't been remapped.
20479         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
20480         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
20481
20482 2010-05-25  Richard Guenther  <rguenther@suse.de>
20483
20484         PR middle-end/44069
20485         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
20486         out-of-bounds array accesses.
20487
20488 2010-05-25  Richard Guenther  <rguenther@suse.de>
20489
20490         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
20491         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
20492         (run_gcc): Re-organize to make cleanup easier.
20493
20494 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20495
20496         * config/s390/s390.c (optimization_options): Fix and move the
20497         flag_prefetch_loop_arrays override ...
20498         (override_options): ... here.
20499
20500 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
20501
20502         * diagnostic.c: Don't include plugin.h.
20503         (diagnostic_report_diagnostic): Don't handle plugins specially
20504         here.  Pass context to internal_error callback.
20505         * diagnostic.h (struct diagnostic_context): Add context parameter
20506         to internal_error callback.
20507         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
20508         * plugin.h (struct diagnostic_context): Declare.
20509         (warn_if_plugins, plugins_internal_error_function): Declare.
20510         * toplev.c (general_init): Set global_dc->internal_error.
20511         * Makefile.in (diagnostic.o): Update dependencies.
20512
20513 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
20514
20515         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
20516         * config/rs6000/t-darwin64: New.
20517         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
20518         build crt2.
20519
20520 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
20521
20522         PR 44203
20523         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
20524         match the original (and intended) behaviour before r159557.  This
20525         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
20526         in two ways.
20527
20528 2010-05-25  Richard Guenther  <rguenther@suse.de>
20529
20530         * doc/invoke.texi: Document -Ofast.
20531         * target.h (struct gcc_target): Add handle_ofast.
20532         * target-def.h (TARGET_HANDLE_OFAST): Add.
20533         (TARGET_INITIALIZER): Adjust.
20534         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
20535         * common.opt (Ofast): Add.
20536
20537 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
20538
20539         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
20540         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
20541
20542 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
20543
20544         PR target/43610
20545         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
20546         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
20547         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
20548         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
20549
20550 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
20551
20552         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
20553         DW_OP_minus with negated offset instead of DW_OP_plus.
20554         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
20555
20556 2010-05-25  Wei Guozhi  <carrot@google.com>
20557
20558         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
20559         tst instruction and a new alternative.
20560         * config/arm/constraints.md (Pu): New constraint.
20561
20562 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
20563
20564         * function.c (assign_stack_local_1): Initialize variable
20565         to avoid warning when bootstrapping at -O3.
20566
20567 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
20568
20569         * configure.ac (all_lang_makefiles): Remove everything related to it.
20570         * configure: Regenerate.
20571         * Makefile.in: Fix reference to ada Make-lang.in.
20572         Remove support for LANG_MAKEFILES.
20573
20574 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
20575             Sandra Loosemore  <sandra@codesourcery.com>
20576
20577         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
20578         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
20579         description.  Add arm_neon_fp16_ok.
20580         (Add Options): Add arm_neon and arm_neon_fp16.
20581
20582 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
20583
20584         * diagnostic.c: Don't include flags.h.
20585         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
20586         context parameters.  Check flags in the context passed as a parameter.
20587         (diagnostic_build_prefix): Add context parameter.  Check
20588         show_column flag in context.
20589         (diagnostic_action_after_output): Check fatal_errors flag in context.
20590         (diagnostic_report_current_module): Check show_column flag in context.
20591         (default_diagnostic_starter): Update call to
20592         diagnostic_build_prefix.
20593         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
20594         (emit_diagnostic): Pass context to permissive_error_kind.
20595         (permerror): Pass context to permissive_error_kind.
20596         * diagnostic.h (struct diagnostic_context): Add show_column,
20597         pedantic_errors, permissive and fatal_errors fields.
20598         (diagnostic_build_prefix): Update prototype.
20599         * langhooks.c
20600         * toplev.c (process_options): Set flags in global_dc from
20601         flag_show_column, flag_pedantic_errors, flag_permissive,
20602         flag_fatal_errors.
20603         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
20604         to diagnostic_build_prefix.
20605         * Makefile.in (diagnostic.o): Update dependencies.
20606
20607 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
20608
20609         * config/i386/ia32intrin.h (__crc32q): Define only if
20610         __SSE4_2__ is defined.
20611
20612 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
20613
20614         PR target/44132
20615         PR middle-end/43602
20616         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
20617         DECL_VISIBILITY_SPECIFIED.
20618         (emutls_decl): Set DECL_PRESERVE_P and copy
20619         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
20620         (emutls_finalize_control_var): New callback.
20621         (emutls_finish): Finalize emutls control variables.
20622         * toplev.c (compile_file): Move the call to emutls_finish ()
20623         before varpool_assemble_pending_decls ().
20624
20625 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
20626
20627         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
20628         added to the preprocessor condition.
20629
20630 2010-05-24  Paul Brook  <paul@codesourcery.com>
20631
20632         * gengtype-lex.l: Add HARD_REG_SET.
20633         * expr.c (expand_expr_real_1): Record writes to hard registers.
20634         * function.c (rtl_data): Add asm_clobbers.
20635         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
20636         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
20637         Use crtl->asm_clobbers.
20638
20639 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20640
20641         * doc/makefile.texi (Makefile): Mention stages 'profile'
20642         and 'feedback' for profiledbootstrap.
20643
20644 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20645
20646         PR target/44245
20647         * config/i386/i386.c (def_builtin): Properly check
20648         OPTION_MASK_ISA_64BIT.
20649
20650 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
20651
20652         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
20653         typedefs with different but compatible types.  Allow duplicate
20654         typedefs with the same type except for pedantic non-C1X, but give
20655         warning for variably modified types.
20656         * c-typeck.c (tagged_types_tu_compatible_p,
20657         function_types_compatible_p, type_lists_compatible_p,
20658         comptypes_internal): Add parameter different_types_p; set
20659         *different_types_p for different but compatible types.  All
20660         callers changed.
20661         (comptypes_check_different_types): New.
20662         * c-tree.h (comptypes_check_different_types): Declare.
20663
20664 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
20665
20666         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
20667         * jump.c: Include basic-block.h.
20668         * profile.c: Likewise.
20669         * tree-profile.c: Likewise.
20670         * coverage.c: Likewise.
20671         * basic-block.h (optimize_function_for_size_p): Move to function.h.
20672         (optimize_function_for_speed_p): Likewise.
20673         * function.h (optimize_function_for_size_p,
20674         optimize_function_for_speed_p): Moved here from basic-block.h.
20675         * Makefile.in: Update dependencies.
20676
20677 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20678
20679         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
20680         before calling make; allow override through $MAKE.
20681         * doc/invoke.texi (Optimize Options): Document override.
20682
20683 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
20684
20685         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
20686         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20687         (rs6000_mode_dependent_address_ptr): Make static.
20688         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20689         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
20690         Remove.
20691
20692 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
20693
20694         PR target/43869
20695         * config/i386/i386.c: Make sure that the correct regparm is passed.
20696
20697 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
20698
20699         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
20700         * sbitmap.c: ...to here to internalize sbitmap element access.
20701         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
20702         Explain why basic-block.h is included.
20703         * function.h: Include tm.h for CUMULATIVE_ARGS.
20704         * Makefile.in: Update dependencies.
20705
20706 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
20707
20708         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
20709         New core types.
20710         * sbitmap.h (struct sbitmap_def): Do not typedef here.
20711         * sbitmap.c: Include sbitmap.h.
20712         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
20713         hard-reg-set.h.  Split everything related to regsets out from here...
20714         * regset.h: ...to here.  New file.
20715         * df.h: Include regset.h and sbitmap.h.
20716         * tree-flow.h: Likewise.
20717         * cfgloop.h: Likewise.
20718         * except.h: Do not include sbitmap.h.  Include hashtab.h.
20719         * cgraph.h: Include vec.h and function.h.
20720         * reload.h (struct insn_chain): Change types of live_throughout
20721         and dead_or_set from regset_head to bitmap_head.
20722         (compute_use_by_pseudos): Be defined also if regset.h is not included.
20723         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
20724         spilled_regs from regset_head to bitmap_head to avoid dependency
20725         in regset.h.
20726         * sel-sched-ir.h: Include regset.h.
20727         * reload.c: Include df.h before reload.h.
20728         * caller-save.c: Likewise.
20729         * reload1.c: Likewise.
20730         * ira.c: Likewise.
20731         (mark_elimination): Update type of r to bitmap, consistent with
20732         DF_LR_IN.
20733         * dominance.c: Include bitmap.h.
20734         * modulo-sched.c: Include df.h.
20735         * cfganal.c: Include bitmap.h and sbitmap.h.
20736         * cfgbuild.c: Include sbitmap.h.
20737         * lcm.c: Include sbitmap.h.
20738         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
20739         * domwalk.c: Include sbitmap.h, exclude ggc.h.
20740         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
20741         * cselib.c: Include bitmap.h.
20742         * tree-optimize.c: Include regset.h.
20743         * stmt.c: Include bitmap.h.
20744         * Makefile.in: Update dependencies.
20745
20746 2010-05-22  Jan Hubicka  <jh@suse.cz>
20747
20748         * cgraph.h (struct varpool_node): Add same_comdat_group.
20749         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
20750         pointer.
20751         (output_varpool): Update call of lto_output_varpool_node.
20752         (input_varpool): Read same_comdat_group pointer.
20753         (input_varpool_1): Fixup same_comdat_group pointer.
20754         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
20755         group is needed, all are.
20756         * varpool.c (varpool_remove_node): Remove node from same comdat group
20757         linklist too.
20758         (varpool_analyze_pending_decls): Walk same comdat groups.
20759
20760 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
20761
20762         * rtl.h (union rtunion_def): Remove rt_bit member.
20763         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
20764         * print-rtl (print_rtx): Do not print the member.
20765         * gengtype.c (adjust_field_rtx_def): Do not handle it.
20766         * gengenrtl.c (type_from_format): Likewise.
20767         (accessor_from_format): Likewise.
20768
20769 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
20770
20771         * dbgcnt.c: Include toplev.h instead of errors.h.
20772         * ira-emit.c: Don't include errors.h.
20773         * ira.c: Include toplev.h instead of errors.h.
20774         * lto-compress.c: Include toplev.h instead of errors.h.
20775         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
20776         ira.o, dbgcnt.o): Update dependencies.
20777
20778 2010-05-22  Richard Guenther  <rguenther@suse.de>
20779
20780         * gimple.c (gimple_types_compatible_p): Check type qualifications
20781         before merging pointer to complete and pointer to incomplete type.
20782         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
20783         we use our own resolution algorithm.  The gold linker plugin
20784         doesn't do the job we want it to do here.
20785
20786 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
20787
20788         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20789         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20790         (sparc_mode_dependent_address_p): New function.
20791
20792 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
20793
20794         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
20795
20796         * timevar.c: Do not include any core headers.
20797         (timevar_print): De-i18n-ize.
20798         (print_time): Likewise.
20799         * timevar.h (timevar_push, timevar_pop): Make inline functions.
20800
20801 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
20802
20803         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
20804         langhooks-def.h.
20805         (diagnostic_initialize): Initialize x_data not last_function.
20806         (diagnostic_report_current_function): Move to tree-diagnostic.c.
20807         (default_diagnostic_starter): Call
20808         diagnostic_report_current_module not
20809         diagnostic_report_current_function.
20810         (diagnostic_report_diagnostic): Initialize x_data not
20811         abstract_origin.
20812         (verbatim): Likewise.
20813         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
20814         x_data.
20815         (struct diagnostic_context): Change last_function to x_data.
20816         (diagnostic_auxiliary_data): Replace with
20817         diagnostic_context_auxiliary_data and
20818         diagnostic_info_auxiliary_data.
20819         (diagnostic_last_function_changed, diagnostic_set_last_function,
20820         diagnostic_report_current_function): Move to tree-diagnostic.h.
20821         (print_declaration, dump_generic_node, print_generic_stmt,
20822         print_generic_stmt_indented, print_generic_expr,
20823         print_generic_decl, debug_c_tree, dump_omp_clauses,
20824         print_call_name, debug_generic_expr, debug_generic_stmt,
20825         debug_tree_chain, default_tree_printer): Move to
20826         tree-pretty-print.h.
20827         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
20828         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
20829         gimple-pretty-print.h.
20830         * pretty-print.c: Don't include tree.h
20831         (pp_base_format): Don't handle %K here.
20832         (pp_base_tree_identifier): Move to tree-pretty-print.c.
20833         * pretty-print.h (text_info): Change abstract_origin to x_data.
20834         (pp_tree_identifier, pp_unsupported_tree,
20835         pp_base_tree_identifier): Move to tree-pretty-print.h.
20836         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
20837         tree-pretty-print.h: New files.
20838         * tree-pretty-print.c: Include tree-pretty-print.h.
20839         (percent_K_format): New.  Moved from pretty-print.c.
20840         (pp_base_tree_identifier): Move from pretty-print.c.
20841         * c-objc-common.c: Include tree-pretty-print.h.
20842         (c_tree_printer): Handle %K here.
20843         * langhooks.c: Include tree-diagnostic.h.
20844         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
20845         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
20846         (default_tree_printer): Handle %K using percent_K_format.
20847         (general_init): Use default_tree_diagnostic_starter.
20848         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
20849         (free_lang_data): Use default_tree_diagnostic_starter.
20850         * c-pretty-print.c: Include tree-pretty-print.h.
20851         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20852         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20853         * dwarf2out.c: Include tree-pretty-print.h.
20854         * except.c: Include tree-pretty-print.h.
20855         * gimple-pretty-print.c: Include tree-pretty-print.h and
20856         gimple-pretty-print.h.
20857         * gimplify.c: Include tree-pretty-print.h.
20858         * graphite-poly.c: Include tree-pretty-print.h and
20859         gimple-pretty-print.h.
20860         * ipa-cp.c: Include tree-pretty-print.h.
20861         * ipa-inline.c: Include gimple-pretty-print.h.
20862         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20863         * ipa-pure-const.c: Include gimple-pretty-print.h.
20864         * ipa-struct-reorg.c: Include tree-pretty-print.h and
20865         gimple-pretty-print.h.
20866         * ipa-type-escape.c: Include tree-pretty-print.h.
20867         * print-rtl.c: Include tree-pretty-print.h.
20868         * print-tree.c: Include gimple-pretty-print.h.
20869         * sese.c: Include tree-pretty-print.h.
20870         * tree-affine.c: Include tree-pretty-print.h.
20871         * tree-browser.c: Include tree-pretty-print.h.
20872         * tree-call-cdce.c: Include gimple-pretty-print.h.
20873         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
20874         * tree-chrec.c: Include tree-pretty-print.h.
20875         * tree-data-ref.c: Include tree-pretty-print.h and
20876         gimple-pretty-print.h.
20877         * tree-dfa.c: Include tree-pretty-print.h.
20878         * tree-if-conv.c: Include tree-pretty-print.h and
20879         gimple-pretty-print.h.
20880         * tree-inline.c: Include tree-pretty-print.h.
20881         * tree-into-ssa.c: Include tree-pretty-print.h and
20882         gimple-pretty-print.h.
20883         * tree-nrv.c: Include tree-pretty-print.h.
20884         * tree-object-size.c: Include tree-pretty-print.h and
20885         gimple-pretty-print.h.
20886         * tree-outof-ssa.c: Include tree-pretty-print.h and
20887         gimple-pretty-print.h.
20888         * tree-parloops.c: Include tree-pretty-print.h and
20889         gimple-pretty-print.h.
20890         * tree-predcom.c: Include tree-pretty-print.h and
20891         gimple-pretty-print.h.
20892         * tree-scalar-evolution.c: Include tree-pretty-print.h and
20893         gimple-pretty-print.h.
20894         * tree-sra.c: Include tree-pretty-print.h.
20895         * tree-ssa-address.c: Include tree-pretty-print.h.
20896         * tree-ssa-alias.c: Include tree-pretty-print.h.
20897         * tree-ssa-ccp.c: Include tree-pretty-print.h and
20898         gimple-pretty-print.h.
20899         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
20900         * tree-ssa-copy.c: Include tree-pretty-print.h and
20901         gimple-pretty-print.h.
20902         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
20903         * tree-ssa-dce.c: Include tree-pretty-print.h and
20904         gimple-pretty-print.h.
20905         * tree-ssa-dom.c: Include tree-pretty-print.h and
20906         gimple-pretty-print.h.
20907         * tree-ssa-dse.c: Include gimple-pretty-print.h.
20908         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
20909         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
20910         * tree-ssa-live.c: Include tree-pretty-print.h and
20911         gimple-pretty-print.h.
20912         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
20913         gimple-pretty-print.h.
20914         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
20915         gimple-pretty-print.h.
20916         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
20917         gimple-pretty-print.h.
20918         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
20919         gimple-pretty-print.h.
20920         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
20921         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
20922         * tree-ssa-operands.c: Include tree-pretty-print.h and
20923         gimple-pretty-print.h.
20924         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
20925         gimple-pretty-print.h.
20926         * tree-ssa-pre.c: Include tree-pretty-print.h and
20927         gimple-pretty-print.h.
20928         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
20929         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
20930         gimple-pretty-print.h.
20931         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
20932         gimple-pretty-print.h.
20933         * tree-ssa-sink.c: Include gimple-pretty-print.h.
20934         * tree-ssa-ter.c: Include tree-pretty-print.h and
20935         gimple-pretty-print.h.
20936         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
20937         * tree-ssa.c: Include tree-pretty-print.h and
20938         gimple-pretty-print.h.
20939         * tree-stdarg.c: Include gimple-pretty-print.h.
20940         * tree-switch-conversion.c: Include gimple-pretty-print.h.
20941         * tree-tailcall.c: Include tree-pretty-print.h and
20942         gimple-pretty-print.h.
20943         * tree-vect-data-refs.c: Include tree-pretty-print.h and
20944         gimple-pretty-print.h.
20945         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
20946         gimple-pretty-print.h.
20947         * tree-vect-loop.c: Include tree-pretty-print.h and
20948         gimple-pretty-print.h.
20949         * tree-vect-patterns.c: Include gimple-pretty-print.h.
20950         * tree-vect-slp.c: Include tree-pretty-print.h and
20951         gimple-pretty-print.h.
20952         * tree-vect-stmts.c: Include tree-pretty-print.h and
20953         gimple-pretty-print.h.
20954         * tree-vectorizer.c: Include tree-pretty-print.h.
20955         * tree-vrp.c: Include tree-pretty-print.h and
20956         gimple-pretty-print.h.
20957         * value-prof.c: Include tree-pretty-print.h and
20958         gimple-pretty-print.h.
20959         * var-tracking.c: Include tree-pretty-print.h.
20960         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
20961         (tree-diagnostic.o): New dependencies.
20962         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
20963         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
20964         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
20965         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
20966         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
20967         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
20968         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
20969         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
20970         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
20971         tree-ssa-address.o, tree-ssa-loop-niter.o,
20972         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
20973         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
20974         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
20975         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
20976         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
20977         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
20978         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
20979         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
20980         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
20981         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
20982         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
20983         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
20984         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
20985         tree-switch-conversion.o, var-tracking.o, value-prof.o,
20986         cfgexpand.o, pretty-print.o): Update dependencies.
20987
20988 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
20989
20990         * tree-ssa-structalias.c: Remove tm_p.h from include.
20991
20992 2010-05-21  Jeff Law  <law@redhat.com>
20993
20994         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
20995
20996 2010-05-21  Jason Merrill  <jason@redhat.com>
20997
20998         * tree-eh.c (cleanup_is_dead_in): New.
20999         (lower_try_finally): Don't generate a dead cleanup region.
21000         (lower_cleanup): Likewise.
21001
21002 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
21003
21004         PR debug/44223
21005         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
21006         unchain each use from the cyclic next_regno_use chain first.
21007
21008 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
21009
21010         * real: Do not include gmp.h, mpfr.h, and mpc.h.
21011         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
21012         (real_value_negate, real_value_abs): New prototypes.
21013         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
21014         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
21015         new include file for interface between MPFR and REAL_VALUE_TYPE.
21016         * real.c: Include realmpfr.h.
21017         (real_arithmetic2): Remove legacy function.
21018         (real_value_negate): New.
21019         (real_value_abs): New.
21020         (mfpr_from_real, real_from_mpfr): Move from here...
21021         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
21022         * builtins.c: Include realmpfr.h.
21023         * fold-const.c: Include realmpfr.h.
21024         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
21025         (fold_negate_const): Likewise.
21026         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
21027         * toplev.c: Include realmpfr.h.
21028         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
21029         and real_value_negate.
21030         * fixed-value.c (check_real_for_fixed_mode): Likewise.
21031         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
21032         (vfp3_const_double_index): Likewise.
21033         (arm_print_operand): Likewise.
21034         * Makefile.in: Update dependencies.
21035
21036 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21037
21038         * config/s390/s390.c (override_options): Increase the default
21039         of max-completely-peel-times.
21040
21041 2010-05-21  Julian Brown  <julian@codesourcery.com>
21042             Mark Mitchell  <mark@codesourcery.com>
21043
21044         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
21045         sibling calls for Thumb-1.
21046         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
21047         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
21048         Thumb-2.
21049         (*call_insn, *call_value_insn): Don't use for Thumb-2.
21050         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
21051         for Thumb-2.
21052         (return): New expander.
21053         (*arm_return): New name for ARM return insn.
21054         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
21055
21056 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
21057
21058         * config.gcc (sparc64-*-rtems*): New target.
21059
21060 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
21061
21062         * tree.c (build_function_decl_skip_args): Fix grammar.
21063         (build_function_type_list_1): Fix typos, adjust formatting.
21064
21065 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
21066
21067         * tree.h: Include real.h and fixed-value.h as basic datatypes.
21068         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
21069         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
21070         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
21071         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
21072         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
21073         tree-pretty-print.c, tree-loop-distribution.c,
21074         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
21075         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
21076         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
21077         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
21078         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
21079         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
21080         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
21081         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
21082         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
21083         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
21084         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
21085         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
21086         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
21087         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
21088         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
21089         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
21090         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
21091         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
21092         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
21093         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
21094         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
21095         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
21096         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
21097         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
21098         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
21099         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
21100         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
21101         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
21102         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
21103         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
21104         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
21105         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
21106         config/score/score7.c, config/score/score.c, config/arm/arm.c,
21107         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
21108         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
21109         config/bfin/bfin.c: Clean up redundant includes.
21110         * Makefile.in: Update accordingly.
21111
21112 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
21113
21114         PR middle-end/44204
21115         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
21116         statement has no arguments.
21117
21118 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
21119
21120         PR/44139
21121         * varasm.c (emutls_decl): Merge attributes to new decl.
21122
21123 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
21124
21125         PR middle-end/44101
21126         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
21127         around the uniquized constructor if its type requires a conversion.
21128
21129 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
21130
21131         PR debug/44205
21132         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
21133         at -O0 goto_locus of any of the incoming edges differs from
21134         goto_locus of outgoing edge, or gimple_location of any of the
21135         labels differs.
21136
21137 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
21138
21139         * ira.c (ira_non_ordered_class_hard_regs): Define.
21140         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
21141         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
21142         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
21143         cost of unaligned hard regs when allocating multi-reg pseudos.
21144
21145 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
21146
21147         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
21148         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
21149         for TARGET_NO_FLOAT.
21150         * config/mips/mips.c (mips_file_start): Expand conditional expression
21151         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
21152         (mips_override_options): Move -mno-float override -msoft-float and
21153         -mhard-float.
21154         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
21155         Condition(TARGET_SUPPORTS_NO_FLOAT).
21156         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
21157         __mips_no_float here.
21158         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
21159         (TARGET_SUPPORTS_NO_FLOAT): Define.
21160         * config/mips/sdemtk.opt: Delete.
21161
21162 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
21163
21164         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
21165
21166 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
21167
21168         PR target/43733
21169         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
21170         * configure: Regenerate.
21171         * config.in: Regenerate.
21172         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
21173         instead of sahf only for 64bit targets.
21174
21175 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
21176
21177         PR debug/44178
21178         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
21179         setup_ref_regs for DEBUG_INSNs.
21180
21181 2010-05-20  Jan Hubicka  <jh@suse.cz>
21182
21183         PR middle-end/44197
21184         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
21185
21186 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
21187
21188         PR bootstrap/43870
21189         * df-scan.c (df_ref_compare): Stabilize sort.
21190
21191 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
21192
21193         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
21194         argument.  Don't use DW_OP_piece if offset is non-zero,
21195         put offset into second DW_OP_bit_piece argument.
21196         (dw_sra_loc_expr): Adjust callers.  For memory expressions
21197         compute offset.
21198
21199 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
21200
21201         PR target/44202
21202         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
21203         settings for 16-bit-constant "addo" alternative.
21204
21205 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
21206
21207         * config/mips/mips-dsp.md (add<DSPV:mode>3,
21208         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
21209
21210         PR target/43764
21211         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
21212         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
21213         Use it.
21214
21215 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
21216
21217         * diagnostic.c (FLOAT, FFS): Don't undefine.
21218         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
21219         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
21220         include ordering.
21221
21222 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21223
21224         * combine.c (propagate_for_debug): Call make_compound_operation
21225         on the source value.
21226         (try_combine): When implementing a split chosen by find_split_point,
21227         either copy i2src or set it to null.  Assert that i2src is not null
21228         before substituting into CALL_INSN_FUNCTION_USAGE.
21229
21230 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
21231
21232         * double-int.h (double_int_ior): New function.
21233         * tree.h (build_int_cst_wide_type): Remove.
21234         * tree.c (build_int_cst_wide_type): Remove.
21235         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
21236         of build_int_cst_wide_type.
21237         * stor-layout.c (set_sizetype): (Ditto.).
21238         * dojump.c (do_jump): Use build_int_cstu instead of
21239         build_int_cst_wide_type.
21240
21241 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
21242
21243         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
21244         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
21245         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
21246         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
21247         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
21248         propagate the 'data' argument to copy_tree_r.
21249         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
21250         Propagate 'data' argument to walk_tree.
21251         (copy_if_shared): New function.
21252         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
21253         (unmark_visited): New function.
21254         (unshare_body): Call copy_if_shared instead of doing it manually.
21255         (unvisit_body): Call unmark_visited instead of doing it manually.
21256
21257 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
21258
21259         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
21260         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
21261         * hooks.c: Likewise.
21262         * target-def.h (TARGET_FOLD_BUILTIN): Define to
21263         hook_tree_tree_int_treep_bool_null.
21264         * target.h (struct gcc_target): Update signature of fold_builtin
21265         field.
21266         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
21267         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
21268         instead of the call expression.
21269         (fold_builtin_call_array): Pass n and argarray directly.
21270         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
21271         consing a list.
21272         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
21273         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
21274         `i' and use it in place of `arity'.
21275         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
21276         Dereference `args' directly.
21277         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
21278
21279 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21280
21281         * doc/sourcebuild.texi (Effective-Target Keywords): Document
21282         3dnow, sse3, sse2.
21283         (Directives): Document optional dg-require-effective-target
21284         selector.
21285
21286 2010-05-19  Richard Guenther  <rguenther@suse.de>
21287
21288         PR lto/44196
21289         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
21290
21291 2010-05-19  Richard Guenther  <rguenther@suse.de>
21292
21293         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
21294         * common.opt (fwhopr=): New.
21295         * opts.c (common_handle_option): Handle OPT_fwhopr.
21296         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
21297         * collect2.c (main): Match -fwhopr*.
21298         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
21299         Execute ltrans stage in parallel when jobs is bigger than 1.
21300
21301 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21302
21303         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21304         pentiumpro on Solaris 8/x86 with Sun as.
21305         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
21306         hidden alias bug.
21307         (gcc_cv_as_ix86_quad): Check for .quad directive.
21308         * configure: Regenerate.
21309         * config.in: Regenerate.
21310         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
21311
21312 2010-05-19  Martin Jambor  <mjambor@suse.cz>
21313
21314         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
21315         also for indirect edges.  Actual printing moved...
21316         (ipa_print_node_jump_functions_for_edge): ...here.
21317         (ipa_compute_jump_functions): Renamed to
21318         ipa_compute_jump_functions_for_edge and made static.
21319         (ipa_compute_jump_functions): New function.
21320         (make_edge_direct_to_target): Check if the number of arguments on
21321         the newly direct edge is the same as the number of parametrs of
21322         the callee.
21323         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
21324         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
21325         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
21326         analysis functions unconditionally, call the new
21327         ipa_analyze_params_uses on the node instead of every edge.
21328
21329 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
21330
21331         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
21332         to tree.
21333         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
21334         also checks for a constant int vs.  non-constant but
21335         loop-invariant steps.
21336         (find_or_create_group): Change the sort algorithm to only consider
21337         steps that are constant ints.
21338         (idx_analyze_ref): Adopt code to handle a tree instead of a
21339         HOST_WIDE_INT for step.
21340         (gather_memory_references_ref): Handle tree instead of int and be
21341         prepared to see a NULL_TREE.
21342         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
21343         prefetches if the step cannot be calculated at compile time.
21344         (issue_prefetch_ref): Issue prefetches for non-constant but
21345         loop-invariant steps.
21346
21347 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
21348
21349         Revert:
21350         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
21351
21352         * tree.h (build_call_list): Remove.
21353         * tree.c (build_call_list): Remove.
21354
21355 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
21356
21357         * tree.h (build_call_list): Remove.
21358         * tree.c (build_call_list): Remove.
21359
21360 2010-05-18  Jan Hubicka  <jh@suse.cz>
21361
21362         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
21363
21364 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
21365
21366         PR rtl-optimization/43332
21367         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
21368
21369 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
21370
21371         * tree.h (build_int_cstu): Implement as static inline.
21372         * tree.c (build_int_cstu): Remove function.
21373         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
21374         sign extended.
21375
21376 2010-05-18  Richard Guenther  <rguenther@suse.de>
21377
21378         PR lto/44143
21379         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
21380         (debug): Initialize from -save-temps.
21381         (collect_execute): Print command-line when verbose.
21382         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
21383         for ltrans invocation.  Produce -dumpbase flag again.
21384         (process_args): Remove.
21385         (main): Simplify.
21386         * collect2.c (maybe_run_lto_and_relink): Only pass object
21387         files to lto-wrapper.
21388         * gcc.c (LINK_COMMAND_SPEC): Likewise.
21389
21390 2010-05-18  Jan Hubicka  <jh@suse.cz>
21391
21392         * opts.c (decode_options): Do not disable whopr at ipa_cp.
21393         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
21394
21395 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
21396
21397         PR lto/44184
21398         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
21399         in a GIMPLE_ASM.
21400         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
21401         in a GIMPLE_ASM.
21402
21403 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
21404
21405         PR debug/41371
21406         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
21407         rtx_equal_p inline.
21408
21409 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
21410
21411         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
21412         lto-macho as lto_binary_reader.
21413
21414         * darwin.c (darwin_asm_named_section): Do not add assembler comment
21415         after .section directive; just print it before the directive instead.
21416
21417 2010-05-17  Jan Hubicka  <jh@suse.cz>
21418
21419         * cgraph.c (cgraph_create_virtual_clone): Only check
21420         versionable_function_p when not in wpa and checking is enabled.
21421         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
21422         there are no more functions to materialize.
21423
21424 2010-05-17  Jan Hubicka  <jh@suse.cz>
21425
21426         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
21427         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
21428         New functions.
21429         (output_cgraph): Call output_cgraph_opt_summary.
21430         (input_cgrpah): Call input_cgraph_opt_summary.
21431         (output_cgraph_opt_summary_p, output_node_opt_summary,
21432         input_node_opt_summary, input_cgraph_opt_section): New functions.
21433         * lto-section-in.c (lto_section_name): Add cgraphopt.
21434         * tree-inline.c (tree_function_versioning): Handle parm_num.
21435         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
21436         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
21437
21438 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
21439
21440         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
21441         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
21442         the insn to prefetch ratio heuristic to loops with known trip count.
21443
21444 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
21445
21446         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
21447         (schedule_prefetches): Do not generate a prefetch if the unroll factor
21448         is far from what is required by the prefetch.
21449
21450 2010-05-17  Jan Hubicka  <jh@suse.cz>
21451
21452         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
21453         (ipcp_estimate_growth): Likewise.
21454         (ipcp_const_param_count): Likewise.
21455         (ipcp_insert_stage): Likewise.
21456         * ipa-prop.c (visit_load_for_mod_analysis): New function.
21457         (visit_store_addr_for_mod_analysis): Set used flag.
21458         (ipa_detect_param_modifications): Set used flag for SSE params;
21459         update use of walk_stmt_load_store_addr_ops.
21460         (ipa_print_node_params): Print used flag.
21461         (ipa_write_node_info): Stream used flag.
21462         (ipa_read_node_info): Likewise.
21463         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
21464         (ipa_is_param_used): New function.
21465         (lto_ipa_fixup_call_notes): Remove unused declaration.
21466
21467 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21468
21469         PR target/44074
21470         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
21471         * configure: Regenerate.
21472         * config.in: Regenerate.
21473         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
21474         !HAVE_AS_IX86_REP_LOCK_PREFIX.
21475         Don't emit whitespace.
21476         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
21477         (*rep_movsi): Likewise.
21478         (*rep_movsi_rex64): Likewise.
21479         (*rep_movqi): Likewise.
21480         (*rep_movqi_rex64): Likewise.
21481         (*rep_stosdi_rex64): Likewise.
21482         (*rep_stossi): Likewise.
21483         (*rep_stossi_rex64): Likewise.
21484         (*rep_stosqi): Likewise.
21485         (*rep_stosqi_rex64): Likewise.
21486         (*cmpstrnqi_nz_1): Use {%;} after repz.
21487         (*cmpstrnqi_nz_rex_1): Likewise.
21488         (*cmpstrnqi_1): Likewise.
21489         (*cmpstrnqi_rex_1): Likewise.
21490         (*strlenqi_1): Use {%;} after repnz.
21491         (*strlenqi_rex_1): Likewise.
21492         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
21493         (*sync_compare_and_swap<mode>): Likewise.
21494         (sync_double_compare_and_swap<mode>): Likewise.
21495         (*sync_double_compare_and_swapdi_pic): Likewise.
21496         (sync_old_add<mode>): Likewise.
21497         (sync_add<mode>): Likewise.
21498         (sync_sub<mode>): Likewise.
21499         (sync_<code><mode>): Likewise.
21500
21501 2010-05-17  Martin Jambor  <mjambor@suse.cz>
21502
21503         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
21504         otr_token and polymorphic.
21505         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
21506         (cgraph_clone_edge): Copy the above fields.
21507         * tree.c (get_binfo_at_offset): New function.
21508         * tree.h (get_binfo_at_offset): Declare.
21509         * ipa-prop.h (enum jump_func_type): Added known_type jump function
21510         type, reordered items, updated comments.
21511         (union jump_func_value): Added base_type field, reordered fields.
21512         (enum ipa_lattice_type): Moved down in the file.
21513         (struct ipa_param_descriptor): New field polymorphic.
21514         (ipa_is_param_polymorphic): New function.
21515         * ipa-prop.c: Include gimple.h and gimple-fold.h.
21516         (ipa_print_node_jump_functions): Print known type jump functions.
21517         (compute_complex_pass_through): Renamed to...
21518         (compute_complex_assign_jump_func): this.
21519         (compute_complex_ancestor_jump_func): New function.
21520         (compute_known_type_jump_func): Likewise.
21521         (compute_scalar_jump_functions): Create known type and complex ancestor
21522         jump functions.
21523         (ipa_note_param_call): New parameter polymorphic, set the corresponding
21524         flag in the call note accordingly.
21525         (ipa_analyze_call_uses): Renamed to...
21526         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
21527         variable var only in the block where it is used.
21528         (ipa_analyze_virtual_call_uses): New function.
21529         (ipa_analyze_call_uses): Likewise.
21530         (combine_known_type_and_ancestor_jfs): Likewise.
21531         (update_jump_functions_after_inlining): Implemented handling of a
21532         number of new jump function types combination.
21533         (print_edge_addition_message): Removed.
21534         (make_edge_direct_to_target): New function.
21535         (try_make_edge_direct_simple_call): Likewise.
21536         (try_make_edge_direct_virtual_call): Likewise.
21537         (update_call_notes_after_inlining): Renamed to...
21538         (update_indirect_edges_after_inlining): this.  Moved edge creation for
21539         indirect calls to try_make_edge_direct_simple_call, also calls
21540         try_make_edge_direct_virtual_call for virtual calls.
21541         (ipa_print_node_params): Changed the header message.
21542         (ipa_write_jump_function): Stream also known type jump functions.
21543         (ipa_read_jump_function): Likewise.
21544         (ipa_write_indirect_edge_info): Stream new fields in
21545         cgraph_indirect_call_info.
21546         (ipa_read_indirect_edge_info): Likewise.
21547         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
21548         GIMPLE_FOLD_H.
21549
21550 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21551
21552         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
21553
21554 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
21555
21556         * tree.h (CALL_EXPR_ARGS): Delete.
21557         (call_expr_arglist): Delete.
21558         * tree.c (call_expr_arglist): Delete.
21559         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
21560         targetm.fold_builtin.
21561         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
21562         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
21563         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
21564         arglist parameter.  Use CALL_EXPR_ARG.
21565         (picochip_expand_builtin_3op): Likewise.
21566         (picochip_expand_builtin_2opvoid): Likewise.
21567         (picochip_expand_array_get): Likewise.
21568         (picochip_expand_array_put): Likewise.
21569         (picochip_expand_array_testport): Likewise.
21570         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
21571         rather than arglist.
21572         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
21573         CALL_EXPR_ARGS.
21574         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
21575         than TREE_VALUE and TREE_CHAIN.
21576         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
21577         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
21578         the arglist.
21579
21580 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
21581
21582         PR bootstrap/42347
21583         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
21584         to have no fallthru edge.
21585
21586         PR middle-end/44102
21587         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
21588         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
21589         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
21590         add BARRIER after previous bb if needed.
21591
21592 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
21593
21594         * tree.c (build_function_type_list_1): Remove bogus assert condition.
21595
21596 2010-05-17  Alan Modra  <amodra@gmail.com>
21597
21598         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
21599         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
21600         with copy_reg rtx param.
21601         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
21602         Correct cases where code for ABI_V4 did not initialise the reg
21603         used to access frame.  Also leave frame_reg_rtx as sp for large
21604         frames that save no regs.
21605
21606 2010-05-17  Martin Jambor  <mjambor@suse.cz>
21607
21608         PR middle-end/44133
21609         * tree-sra.c (create_access_replacement): New parameter rename, mark
21610         the replaement for renaming only when it is true.
21611         (get_access_replacement): Pass true in the rename parameter of
21612         create_access_replacement.
21613         (get_unrenamed_access_replacement): New function.
21614         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
21615         replacement declaration from it.
21616
21617 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
21618
21619         * function.c (try_fit_stack_local, add_frame_space): New static
21620         functions.
21621         (assign_stack_local_1): Use them.  Look for opportunities to use
21622         space previously wasted on alignment.
21623         * function.h (struct frame_space): New.
21624         (struct rtl_data): Add FRAME_SPACE_LIST member.
21625         * reload1.c (something_was_spilled): New static variable.
21626         (alter_reg): Set it.
21627         (reload): Test it in addition to testing if the frame size changed.
21628
21629 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
21630
21631         * config/s390/s390.c: Define sane prefetch settings and activate
21632         flag_prefetch_loop_arrays on -O3.
21633         * config/s390/s390.h: Declare that read can use write prefetch.
21634
21635 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
21636
21637         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
21638         build.
21639
21640 2010-05-16  Jan Hubicka  <jh@suse.cz>
21641
21642         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
21643         function body; do not check stdarg field of struct function.
21644
21645 2010-05-16  Jan Hubicka  <jh@suse.cz>
21646
21647         * cgraph.c (dump_cgraph_node): Dump versionable flag.
21648         * cgraph.h (cgraph_local_info): Add versionable flag.
21649         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
21650         (ipcp_versionable_function_p): Use it.
21651         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
21652         versionable flag.
21653
21654 2010-05-16  Jan Hubicka  <jh@suse.cz>
21655
21656         * cgraph.c (cgraph_clone_node): Take decl argument and insert
21657         clone into hash when it is different from orig.
21658         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
21659         * cgraph.h (cgraph_clone_node): Update prototype.
21660         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
21661         (lto_cgraph_encoder_delete): Delete body map.
21662         (lto_cgraph_encoder_size): Move to header.
21663         (lto_cgraph_encoder_encode_body_p,
21664         lto_set_cgraph_encoder_encode_body): New.
21665         (lto_output_node): Do not take written_decls argument; output clone_of
21666         pointer.
21667         (add_node_to): Add include_body_argument; call
21668         lto_set_cgraph_encoder_encode_body on master of the clone.
21669         (add_references): Update use of add_node_to.
21670         (compute_ltrans_boundary): Likewise.
21671         (output_cgraph): Do not create written_decls bitmap.
21672         (input_node): Take nodes argument; stream in clone_of correctly.
21673         (input_cgraph_1): Update use of input_node.
21674         * lto-streamer-out.c (lto_output): Use encoder info to decide
21675         what bodies to output.
21676         * ipa-inline.c (cgraph_clone_inlined_nodes,
21677         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
21678         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
21679         (lto_cgraph_encoder_size): Define here.
21680         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
21681         Declare.
21682
21683 2010-05-16  Richard Guenther  <rguenther@suse.de>
21684
21685         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
21686         -fipa-type-escape.
21687         * ipa-type-escape.c (gate_type_escape_vars): Run when
21688         -fipa-struct-reorg runs.
21689         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
21690         * common.opt (fipa-type-escape): Remove.
21691
21692 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
21693
21694         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
21695         (decode_options): Likewise.
21696         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
21697
21698 2010-05-16  Jan Hubicka  <jh@suse.cz>
21699
21700         * ipa.c (function_and_variable_visibility): Also bring local all
21701         aliases.
21702
21703 2010-05-16  Richard Guenther  <rguenther@suse.de>
21704
21705         * alias.c (nonoverlapping_memrefs_p): Remove use of
21706         IPA type-escape information.
21707
21708 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
21709
21710         * c-common.c (c_common_reswords): Add _Static_assert for C.
21711         * c-parser.c (c_token_starts_declaration,
21712         c_parser_next_token_starts_declaration,
21713         c_parser_static_assert_declaration_no_semi,
21714         c_parser_static_assert_declaration): New.
21715         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
21716         Handle static assertions if static_assert_ok.
21717         (c_parser_external_declaration, c_parser_declaration_or_fndef,
21718         c_parser_compound_statement_nostart, c_parser_label,
21719         c_parser_for_statement, c_parser_objc_methodprotolist,
21720         c_parser_omp_for_loop): All callers of
21721         c_parser_declaration_or_fndef changed.
21722         (c_parser_struct_declaration): Handle static assertions.
21723         (c_parser_compound_statement_nostart): Use
21724         c_parser_next_token_starts_declaration and
21725         c_token_starts_declaration to detect start of declarations.
21726         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
21727         Likewise.
21728
21729 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
21730
21731         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21732         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21733         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21734         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21735         (mmix_function_outgoing_value): Rename to...
21736         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
21737         (mmix_function_value_regno_p): Make static.
21738         (mmix_libcall_value): New function.
21739         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
21740         mmix_function_value_regno_p): Remove declaration.
21741
21742 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
21743
21744         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
21745         BUILT_IN_ALLOCA if stack checking is enabled.
21746
21747 2010-05-16  Richard Guenther  <rguenther@suse.de>
21748
21749         * var-tracking.c (vars_copy_1): Inline ...
21750         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
21751         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
21752         (variable_merge_over_cur): Adjust.  Merge asserts.
21753         (variable_merge_over_src): Likewise.
21754         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
21755         (variable_post_merge_new_vals): Merge asserts.
21756         (variable_post_merge_perm_vals): Likewise.
21757         (find_mem_expr_in_1pdv): Likewise.
21758         (dataflow_set_different_value): Remove.
21759         (onepart_variable_different_p): Merge asserts.
21760         (variable_different_p): Likewise.
21761         (dataflow_set_different_1): Inline ...
21762         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
21763         (emit_notes_for_differences_1): Merge asserts.
21764
21765 2010-05-16  Richard Guenther  <rguenther@suse.de>
21766
21767         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
21768         * optabs.c (libfunc_decl_hash): Likewise.
21769         * varasm.c (emutls_decl): Likewise.
21770
21771 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
21772
21773         * c-decl.c: Don't include gimple.h.
21774         (merge_decls): Do not copy gimple_body.
21775
21776 2010-05-15  Jason Merrill  <jason@redhat.com>
21777
21778         * c.opt: Add -fnothrow-opt.
21779
21780 2010-05-15  Jan Hubicka  <jh@suse.cz>
21781
21782         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
21783         analyzed.
21784         * passes.c (ipa_write_summaries): Write all analyzed nodes.
21785
21786 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
21787
21788         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
21789         * Makefile.in: Add it.
21790         Fix all other Makefile dependencies for changes below.
21791         * tree.h: Include it instead of defining VEC primitives here.
21792         * gimple.h: Likewise.
21793         * rtl.h: Likewise.
21794         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
21795         * except.h: Include vecir.h, break dependence on tree.h.
21796
21797         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
21798         Move from here...
21799         * tree-iterator.c: ...to here.
21800         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
21801
21802         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
21803         tm_p.h.
21804         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
21805         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
21806         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
21807         tree-mudflap.h, and target.h.
21808         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
21809         predict.h, tree-inline.h, gimple.h, and langhooks.h.
21810         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
21811         Add FIXME for why gimple.h is still included (should be unnecessary
21812         since GCC 4.5 gimplification unit-at-a-time).
21813         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
21814         * c-pragma.c: Add FIXME for why function.h needs to be included just
21815         for cfun, at front-end level.
21816         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
21817         Do not include ggc.h, but include vecprim.h for VEC(char).
21818         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
21819         Explain why target.h is included.
21820         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
21821         Explain why gimple.h is included.
21822         * c-ppoutput.c: Do not include tm.h.
21823         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
21824         * c-parses.c: Explain why rtl.h is included, and that this (and only
21825         this) is also why tm.h must be included.
21826         Do not include except.h.
21827         * c-lang.c: Do not include ggc.h.
21828
21829 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
21830
21831         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
21832
21833 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
21834
21835         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
21836         unions by default if those structs and unions have no tags.  Do
21837         not condition anonymous struct and unions handling on flag_iso.
21838         Allow anonymous structs and unions for C1X.
21839         (finish_struct): Do not diagnose lack of named fields when
21840         anonymous structs and unions present for C1X.  Accept flexible
21841         array members in structure with anonymous structs or unions but no
21842         directly named fields.
21843         * doc/extend.texi (Unnamed Fields): Update.
21844
21845 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
21846
21847         * gimple.h (compare_field_offset): Rename into...
21848         (gimple_compare_field_offset): ...this.
21849         * gimple.c (compare_field_offset): Rename into...
21850         (gimple_compare_field_offset): ...this.  Compare the full access if
21851         the offset is self-referential.
21852         (gimple_types_compatible_p): Adjust for above renaming.
21853         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
21854         DECL_NONADDRESSABLE_P flag of fields before merging them.
21855
21856 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
21857
21858         * tree.h (ctor_to_list): Delete.
21859         * tree.c (ctor_to_list): Delete.
21860
21861 2010-05-15  Jan Hubicka  <jh@suse.cz>
21862
21863         * ipa-reference.c: Include toplev.h
21864         (is_proper_for_analysis): Only add to all_module_statics
21865         if it is allocated.
21866         (write_node_summary_p, stream_out_bitmap,
21867         ipa_reference_write_optimization_summary,
21868         ipa_reference_read_optimization_summary): New.
21869         (struct ipa_opt_pass_d pass_ipa_reference): Add
21870         optimization summary streaming.
21871         * lto-cgraph.c (referenced_from_this_partition_p,
21872         reachable_from_this_partition_p): New functions.
21873         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
21874         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
21875         * opts.c (decode_options): Enable ipa_reference.
21876         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
21877         * lto-streamer.h (referenced_from_this_partition_p,
21878         reachable_from_this_partition_p): Declare.
21879
21880 2010-05-15  Richard Guenther  <rguenther@suse.de>
21881
21882         PR tree-optimization/44038
21883         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
21884         taking the address of a V_C_E of a constant.
21885
21886 2010-05-14  Jan Hubicka  <jh@suse.cz>
21887
21888         * tree.h (memory_identifier_string): Remove.
21889         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
21890         (ipa_reference_global_vars_info_d): Remove statics_not_read and
21891         statics_not_written.
21892         (ipa_reference_optimization_summary_d): New structure.
21893         (ipa_reference_optimization_summary_t): New type and vector.
21894         (ipa_reference_vars_info_d): Embedd structures instead of using
21895         pointers.
21896         (reference_vars_to_consider): Remove out of GGC space.
21897         (module_statics_escape): Remove.
21898         (global_info_obstack): Rename to ...
21899         (optimization_summary_obstack): ... this one.
21900         (initialization_status_t): Remove.
21901         (memory_identifier_string): Remove.
21902         (get_reference_vars_info): Fix indenting.
21903         (set_reference_vars_info): Likewise.
21904         (get_reference_optimization_summary): New.
21905         (set_reference_optimization_summary): New.
21906         (get_global_reference_vars_info): Remove.
21907         (ipa_reference_get_read_global): Remove.
21908         (ipa_reference_get_written_global): Remove.
21909         (ipa_reference_get_not_read_global): Update.
21910         (ipa_reference_get_not_written_global): Update.
21911         (is_proper_for_analysis): Outlaw addressable.
21912         (propagate_bits): Update for new datastructures.
21913         (analyze_variable): Remove.
21914         (init_function_info): Update for new datastructures.
21915         (clean_function_local_data): Remove.
21916         (clean_function): Remove.
21917         (copy_global_bitmap): Use optimizations_summary_obstack.
21918         (duplicate_node_data): Duplicate optimization summary only.
21919         (remove_node_data): Remove optimization summary only.
21920         (generate_summary): Do not analyze variables; do not compute
21921         module_statics_escape; do not prune solutions by it.
21922         (read_write_all_from_decl): Fix typos in comments.
21923         (propagate): Doscover readonly and nonaddressable first;
21924         update for new datastructures; share global bitmaps.
21925         * ipa-reference.h (ipa_reference_get_read_global,
21926         ipa_reference_get_written_global): Remove.
21927         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
21928         * Makefile.in: Remove ipa-refereference from GT files.
21929
21930 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
21931
21932         PR debug/44112
21933         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
21934         for all SYMBOL_REF_DECLs.
21935
21936 2010-05-14  Jan Hubicka  <jh@suse.cz>
21937
21938         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
21939         (varpool_all_refs_explicit_p): New inline function.
21940         * ipa-reference.c: Update comment.
21941         (module_statics_written): Remove.
21942         (get_static_decl): Remove.
21943         (ipa_init): Do not initialize module_statics_written.
21944         (analyze_function): Likewise.
21945         (generate_summary): Likewise; do not compute module_statics_readonly
21946         and do not update variable flags.
21947         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
21948         * ipa.c: Inlucde flags.h
21949         (cgraph_local_node_p): New.
21950         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
21951         promote functions to local.
21952         (ipa_discover_readonly_nonaddressable_vars): New function.
21953         (function_and_variable_visibility): Use cgraph_local_node_p.
21954         * varpool.c (varpool_finalize_decl): Set force_output for
21955         DECL_PRESERVE_P vars.
21956
21957 2010-05-14  Jan Hubicka  <jh@suse.cz>
21958
21959         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
21960
21961 2010-05-14  Richard Guenther  <rguenther@suse.de>
21962
21963         PR tree-optimization/44119
21964         * tree-ssa-pre.c (eliminate): Properly mark replacement of
21965         a PHI node necessary.
21966
21967 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
21968
21969         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
21970
21971 2010-05-14  Jason Merrill  <jason@redhat.com>
21972
21973         PR c++/44127
21974         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
21975         (gimple_call_set_nothrow): New.
21976         * gimple.c (gimple_build_call_from_tree): Call it.
21977         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
21978
21979         PR c++/44127
21980         * gimplify.c (gimplify_seq_add_stmt): No longer static.
21981         * gimple.h: Declare it.
21982         * gimple.c (gimple_build_eh_filter): No ops.
21983
21984 2010-05-14  Jan Hubicka  <jh@suse.cz>
21985
21986         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
21987         nodes already in queue.
21988         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
21989         re-enqueueing node.
21990
21991 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
21992
21993         PR debug/44136
21994         * cfgexpand.c (expand_debug_expr): If non-memory op0
21995         has BLKmode, return NULL.
21996
21997 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
21998
21999         * config.gcc: Add support for --with-cpu option for bdver1.
22000         * config/i386/i386.h (TARGET_BDVER1): New macro.
22001         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
22002         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22003         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
22004         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
22005         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
22006         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
22007         (processor_type): Add PROCESSOR_BDVER1.
22008         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
22009         processor_type in config/i386/i386.h.
22010         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
22011         movaps <reg, reg> instead of movapd <reg, reg> when replacing
22012         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
22013         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
22014         to emit packed xor instead of packed double/packed integer
22015         xor for SSE and AVX when moving a zero value.
22016         * config/i386/sse.md: Add check for
22017         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
22018         movapd/movdqa for SSE and AVX.
22019         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
22020         single logical operations i.e and, or and xor instead of packed double
22021         logical operations for SSE and AVX.
22022         * config/i386/i386-c.c (ix86_target_macros_internal):
22023         Add PROCESSOR_BDVER1.
22024         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
22025         (has_fma4, has_xop): New.
22026         * config/i386/i386.c (bdver1_cost): New variable.
22027         (m_BDVER1): New macro.
22028         (m_AMD_MULTIPLE): Add m_BDVER1.
22029         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
22030         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
22031         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
22032         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
22033         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
22034         x86_tune_sse_partial_reg_dependency,
22035         x86_tune_sse_unaligned_load_optimal,
22036         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
22037         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
22038         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
22039         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
22040         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
22041         Enable/disable for bdver1.
22042         (processor_target_table): Add bdver1_cost.
22043         (cpu_names): Add bdver1.
22044         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
22045          processor_alias_table.
22046         (ix86_expand_vector_move_misalign): Change.
22047         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
22048         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
22049         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
22050         of movupd/movdqu for SSE and AVX.
22051         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
22052         (ix86_tune_adjust_cost): Add code for bdver1.
22053         (standard_sse_constant_opcode): Add check for
22054         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
22055         of packed double xor for SSE and AVX.
22056
22057 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
22058
22059         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
22060         result to unsigned.
22061
22062 2010-05-14  Tristan Gingold  <gingold@adacore.com>
22063
22064         * toplev.c (default_debug_hooks): Remove this variable.
22065         (process_options): Remove assignments to default_debug_hooks.
22066
22067 2010-05-14  Martin Jambor  <mjambor@suse.cz>
22068
22069         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
22070         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
22071         * langhooks.h (struct lang_hooks_for_decls): Removed field
22072         fold_obj_type_ref.
22073         * tree.c (free_lang_data): Remove assignment to
22074         lang_hooks.fold_obj_type_ref.
22075         * tree.def (OBJ_TYPE_REF): Update comment.
22076
22077 2010-05-14  Richard Guenther  <rguenther@suse.de>
22078
22079         PR tree-optimization/44124
22080         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
22081
22082 2010-05-14  Alan Modra  <amodra@gmail.com>
22083
22084         PR target/44075
22085         * config/rs6000/rs6000.c (struct machine_function): Reorder
22086         fields for better packing.  Add lr_save_state.
22087         (rs6000_ra_ever_killed): Return lr_save_state if set.
22088         (rs6000_emit_eh_reg_restore): Set lr_save_state.
22089
22090 2010-05-13  Jan Hubicka  <jh@suse.cz>
22091
22092         * varpool.c (decide_is_variable_needed): Drop code checking
22093         TREE_SYMBOL_REFERENCED.
22094
22095 2010-05-13  Jan Hubicka  <jh@suse.cz>
22096
22097         * final.c (output_addr_const): Do not call mark_decl_referenced.
22098         * cgraphunit.c (process_function_and_variable_attributes): Use
22099         mark_needed_node dirrectly.
22100         (assemble_thunk): Do not call mark_decl_referenced.
22101
22102 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
22103
22104         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
22105
22106 2010-05-13  Jeff Law  <law@redhat.com>
22107
22108         * ira-conflicts.c (print_allocno_conflicts): New function broken out
22109         from...
22110         (print_conflicts): Call print_allocno_conflicts.
22111
22112 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
22113
22114         PR debug/44104
22115         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
22116         if it is NULL.
22117
22118 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
22119
22120         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
22121         t-mingw-w64 or t-mingw-w32 for multilib configuration.
22122         * config/i386/t-mingw-w32: New.
22123         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
22124
22125 2010-05-13  Martin Jambor  <mjambor@suse.cz>
22126
22127         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
22128         gimple-fold.c).
22129         * gimple-fold.c (get_base_binfo_for_type): New function.
22130         (gimple_get_relevant_ref_binfo): Likewise.
22131         (gimple_fold_obj_type_ref_known_binfo): Likewise.
22132         (gimple_fold_obj_type_ref): Likewise.
22133         (fold_gimple_call): Simplify condition for folding virtual calls
22134         and call gimple_fold_obj_type_ref.
22135         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
22136         (gimple_fold_obj_type_ref_known_binfo): Likewise.
22137
22138 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
22139
22140         * config/rs6000/rs6000-protos.h
22141         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
22142         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
22143         (rs6000_debug_mode_dependent_address)
22144         (rs6000_mode_dependent_address_ptr): Likewise.
22145
22146 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
22147
22148         PR debug/43983
22149         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
22150         by SRA.
22151         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
22152         * tree-sra.c (create_access_replacement): Call unshare_expr before
22153         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
22154         * dwarf2out.c: Include tree-flow.h.
22155         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
22156         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
22157         Handle DW_OP_bit_piece.
22158         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
22159         construct_piece_list, adjust_piece_list): New functions.
22160         (add_var_loc_to_decl): Handle SRA optimized variables.
22161         Adjust for var_loc_note to loc field renaming.
22162         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
22163         in VAR_LOCATION note.
22164         (new_loc_descr_op_bit_piece): New function.
22165         (dw_sra_loc_expr): New function.
22166         (dw_loc_list): Use it.  Don't handle the last range after the
22167         loop, handle it inside of the loop.  Adjust for var_loc_note
22168         to loc field renaming.
22169         (add_location_or_const_value_attribute): Only special case
22170         single entry loc lists if loc is NOTE_P.  Adjust for
22171         var_loc_note to loc field renaming.
22172         (dwarf2out_var_location): Don't set newloc->var_loc_note
22173         and newloc->next here.
22174
22175 2010-05-12  Jan Hubicka  <jh@suse.cz>
22176
22177         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
22178         flag.
22179         * cgraph.h (cgraph_only_called_directly_p,
22180         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
22181         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
22182         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
22183         (assemble
22184         * ipa.c (cgraph_remove_unreachable_nodes): Use
22185         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
22186         flags.
22187         * tree-inline.c (copy_bb): Check address_taken flag.
22188         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
22189         externally_visible flag.
22190
22191 2010-05-12  Jason Merrill  <jason@redhat.com>
22192
22193         PR bootstrap/44048
22194         PR target/44099
22195         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
22196         * sdbout.c (plain_type_1): Likewise.
22197         * dwarf2out.c (is_base_type): Likewise.
22198         (gen_type_die_with_usage): Likewise.  Generate
22199         DW_TAG_unspecified_type for any LANG_TYPE.
22200
22201 2010-05-12  Jan Hubicka  <jh@suse.cz>
22202
22203         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
22204         indrect edges too.
22205         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
22206         (cgraph_clone_edge): Update.
22207         (cgraph_node_remove_callees): Remove indirect calls too.
22208         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
22209         (cgraph_create_indirect_edge): Update prototype.
22210         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
22211         is_proper_for_analysis.
22212         (add_new_function, visited_nodes, function_insertion_hook_holder,
22213         get_local_reference_vars_info, mark_address_taken, mark_address,
22214         mark_load, mark_store, check_asm_memory_clobber, check_call,
22215         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
22216         (ipa_init): Do not initialize visited_nodes;
22217         function_insertion_hook_holder.
22218         (analyze_variable): Rewrite.
22219         (analyze_function): Rewrite.
22220         (copy_local_bitmap): Remove.
22221         (duplicate_node_dat): Do not duplicate local info.
22222         (generate_summary): Simplify to only walk cgraph.
22223         (write_node_summary_p, ipa_reference_write_summary,
22224         ipa_reference_read_summary): Remove.
22225         (propagate): Do not remove function insertion;
22226         generate summary.
22227         (pass_ipa_reference): NULLify summary handling fields.
22228         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
22229         (input_edge): Input ecf_flags.
22230         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
22231         (update_indirect_edges_after_inlining): Ignore edges with unknown
22232         param.
22233
22234 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
22235
22236         * implicit-zee.c: New file.
22237         * tree-pass.h (pass_implicit_zee): Declare.
22238         * passes.c (init_optimization_passes): Add zee pass.
22239         * common.opt (fzee): New flag.
22240         * timevar.def (TV_ZEE): Define.
22241         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
22242         and beyond.
22243         * Makefile.in (implicit-zee.o): Add new build file.
22244
22245 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
22246             Nathan Froyd  <froydnj@codesourcery.com>
22247
22248         * c-common.c (sync_resolve_params): Remove write-only variable.
22249
22250 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
22251
22252         * target.h (struct gcc_target): Add mode_dependent_address_p field.
22253         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22254         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
22255         * targhooks.c (default_mode_dependent_address_p): New function.
22256         * targhooks.h (default_mode_dependent_address_p): Declare function.
22257         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
22258         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
22259         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
22260         target hook. Change return type to bool.
22261         * recog.h (mode_dependent_address_p): Change return type to bool.
22262
22263 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
22264             Nathan Froyd  <froydnj@codesourcery.com>
22265
22266         * tree-mudflap.c (build_function_type_0, build_function_type_1,
22267         build_function_type_2, build_function_type_3): Remove.
22268         (mudflap_init): Use build_function_type_list.
22269
22270 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
22271             Nathan Froyd  <froydnj@codesourcery.com>
22272
22273         * coverage.c (build_fn_info_value): Call build_constructor instead of
22274         build_constructor_from_list.
22275         (build_ctr_info_value): Likewise.
22276         (build_gcov_info): Likewise.
22277
22278 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
22279
22280         * tree.c (build_constructor): Compute TREE_CONSTANT for the
22281         resultant constructor.
22282         (build_constructor_single): Don't set TREE_CONSTANT.
22283         (build_constructor_from_list): Don't compute TREE_CONSTANT.
22284
22285 2010-05-12  Jan Hubicka  <jh@suse.cz>
22286
22287         * cgraph.h (struct varpool_node): Add aux.
22288         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
22289         * varpool.c (varpool_remove_node): Do not remove initializer.
22290         (varpool_reset_queue): Export.
22291         (varpool_finalize_decl): Volatile vars are forced to be output.
22292         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
22293         replaced decl.
22294         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
22295         process_references, varpool_can_remove_if_no_refs): New functions.
22296         (cgraph_remove_unreachable_nodes): Handle variables too.
22297
22298 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
22299
22300         PR target/44088
22301         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
22302
22303 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
22304
22305         PR middle-end/44085
22306         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
22307         change value of ORT_TASK.
22308         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
22309         (omp_notice_threadprivate_variable): New function.
22310         (omp_notice_variable): Call it for threadprivate variables.
22311         If enclosing ctx is a task, print enclosing task rather than
22312         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
22313         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
22314         if task has untied clause.
22315
22316         PR debug/42278
22317         * dwarf2out.c (base_type_die): Don't add name attribute here.
22318         (modified_type_die): Instead of sizetype use
22319         its underlying original type.  If a DW_TAG_base_type doesn't
22320         have name added, add __unknown__.
22321         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
22322         always call force_type_die instead.
22323
22324 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
22325
22326         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
22327         for __stack_chk_guard.
22328
22329 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
22330
22331         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
22332         don't call start_source_file debug hook here...
22333         (finish_options): ... but here, after outputting predefined and
22334         command line defines and undefs.
22335
22336         PR middle-end/44071
22337         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
22338         no fallthru edge.
22339         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
22340         optimizing away empty bb with no successors, move over its
22341         footer chain to fallthru predecessor.
22342         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
22343         (rtl_split_edge): For asm goto call patch_jump_insn even if
22344         splitting fallthru edge.
22345
22346         PR c++/44059
22347         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
22348         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
22349         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
22350         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
22351         on DW.ref.* decls.
22352
22353         PR c++/44062
22354         * c-parser.c (c_parser_expression): Mark LHS of a comma
22355         expression as read if it is a decl, handled component or
22356         COMPOUND_EXPR with that on the RHS.
22357         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
22358         if it is a decl or handled component.
22359
22360 2010-05-11  Jan Hubicka  <jh@suse.cz>
22361
22362         * lto-symtab.c (lto_symtab_free): New function.
22363         * lto-streamer.h (lto_symtab_free): Declare.
22364
22365 2010-05-11  Jan Hubicka  <jh@suse.cz>
22366
22367         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
22368         that if function is needed it is reachable.
22369         (lto_output_node): See if it the function is reachable or referenced.
22370         (output_cgraph): Update call of lto_output_node.
22371         * lto-streamer.h (reachable_from_other_partition_p): Declare.
22372
22373 2010-05-11  Jan Hubicka  <jh@suse.cz>
22374
22375         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
22376         Mark as used.
22377
22378 2010-05-11  Jan Hubicka  <jh@suse.cz>
22379
22380         PR tree-optimize/44063
22381         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
22382         queue.
22383         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
22384         limits.
22385         (estimate_function_body_sizes): Compute sizes even when disregarding.
22386
22387 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
22388
22389         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
22390
22391 2010-05-11  Jan Hubicka  <jh@suse.cz>
22392
22393         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
22394         into every boundary.
22395
22396 2010-05-11  Jan Hubicka  <jh@suse.cz>
22397
22398         * matrix-reorg.c (matrix_reorg): Rebuild edges.
22399
22400 2010-05-11  Jan Hubicka  <jh@suse.cz>
22401
22402         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
22403         lto_streamer_cache_delete): Put nodes into heap.
22404         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
22405         heap.
22406
22407 2010-05-11  Jan Hubicka  <jh@suse.cz>
22408
22409         * cgraphbuild.c (cgraph_rebuild_references): New.
22410         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
22411         out extern inlines.
22412         * cgraph.h (cgraph_rebuild_references): Declare.
22413         * tree-inline.c (tree_function_versioning): Use it.
22414         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
22415
22416 2010-05-11  Jan Hubicka  <jh@suse.cz>
22417
22418         * cgraph.c: Include ipa-utils.h
22419         (cgraph_create_virtual_clone): Update references.
22420         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
22421
22422 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
22423
22424         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
22425         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
22426         cache size.
22427
22428 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
22429
22430         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
22431
22432 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
22433
22434         * gcc.c (execute): For -### don't quote arguments that
22435         contain just alphanumerics and _/-. characters.
22436         * doc/invoke.texi: Document that change for -###.
22437
22438         PR debug/44023
22439         * df-problems.c (struct dead_debug): Add to_rescan field.
22440         (dead_debug_init): Clear to_rescan field.
22441         (dead_debug_finish): Rescan all debug insns in to_rescan
22442         bitmap and free the bitmap.
22443         (dead_debug_insert_before): Instead of rescanning debug insns
22444         immediately queue their rescanning until dead_debug_finish.
22445         (df_note_bb_compute): After dead_debug_add do continue instead
22446         of break.
22447
22448 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
22449
22450         PR debug/44028
22451         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
22452         clear also INSN_REG_USE_LIST.
22453
22454 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22455
22456         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
22457
22458 2010-05-10  Jan Hubicka  <jh@suse.cz>
22459
22460         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
22461         commited change.
22462
22463 2010-05-10  Jan Hubicka  <jh@suse.cz>
22464
22465         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
22466         Allocate encoders.
22467         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
22468         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
22469         (lto_streamer_cache_create): Init alloc pool.
22470         (lto_streamer_cache_delete): Free alloc pool.
22471         * lto-streamer.h: Include alloc pool.
22472         (lto_streamer_cache_d): Use alloc pool.
22473         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
22474
22475 2010-05-10  Jan Hubicka  <jh@suse.cz>
22476
22477         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
22478         * cgraphbuild.c: Include except.h
22479         (record_type_list, record_eh_tables): New function.
22480         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
22481
22482 2010-05-10  Jan Hubicka  <jh@suse.cz>
22483
22484         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
22485         __frame_dummy_init_array_entry, force_to_data): Attribute as used
22486         rather than unused.
22487
22488 2010-05-10  Michael Matz  <matz@suse.de>
22489
22490         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
22491         (can_reassociate_p): Use FLOAT_TYPE_P.
22492         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
22493         (vect_force_simple_reduction): ... this.
22494         * tree-parloops.c (gather_scalar_reductions): Use
22495         vect_force_simple_reduction.
22496         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
22497         vect_is_simple_reduction, add modify argument, if true rewrite
22498         "a-b" into "a+(-b)".
22499         (vect_is_simple_reduction, vect_force_simple_reduction): New
22500         functions.
22501         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
22502
22503 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
22504             Vladimir Makarov  <vmakarov@redhat.com>
22505
22506         PR rtl-optimization/44012
22507         * ira-build.c (remove_unnecessary_allocnos): Nullify
22508         regno_allocno_map of the removed allocno.
22509
22510 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22511
22512         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
22513         to /dev/null.
22514         * configure: Regenerate.
22515
22516 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22517
22518         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
22519         unused.
22520         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
22521         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
22522         support in Sun ld.
22523         * configure: Regenerate.
22524
22525 2010-05-10  Richard Guenther  <rguenther@suse.de>
22526
22527         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
22528         marked if the entry identifier is marked.
22529
22530 2010-05-10  Richard Guenther  <rguenther@suse.de>
22531
22532         * c-common.c (struct c_common_attributes): Add fnspec attribute.
22533         (handle_fnspec_attribute): New function.
22534         * gimple.h (gimple_call_return_flags): Declare.
22535         (gimple_call_arg_flags): Likewise.
22536         * gimple.c (gimple_call_arg_flags): New function.
22537         (gimple_call_return_flags): Likewise.
22538         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
22539         New argument flags.
22540         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
22541         return value flags.
22542         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
22543         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
22544         main work to ...
22545         (make_heapvar_for): ... this new function.
22546         (handle_rhs_call): Handle fnspec attribute argument specifiers.
22547         (handle_lhs_call): Likewise.
22548         (find_func_aliases): Adjust.
22549
22550 2010-05-10  Richard Guenther  <rguenther@suse.de>
22551
22552         PR tree-optimization/44050
22553         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
22554
22555 2010-05-10  Wei Guozhi  <carrot@google.com>
22556
22557         PR target/42879
22558         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
22559
22560 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
22561
22562         PR c/10676
22563         * c-typeck.c (lookup_field): Take a type directly.  Update
22564         recursive calls.
22565         (build_component_ref): Update call to lookup_field.
22566         (set_init_label): Use lookup_field to find initialized field.
22567         Handle returned list of fields like a sequence of designators.
22568
22569 2010-05-09  Richard Guenther  <rguenther@suse.de>
22570
22571         PR middle-end/44024
22572         * fold-const.c (tree_single_nonzero_warnv_p): Properly
22573         handle &FUNCTION_DECL.
22574
22575 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
22576
22577         PR c/4784
22578         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
22579         structures and unions recursively.
22580         (detect_field_duplicates): Move duplicate detection with a hash to
22581         detect_field_duplicates_hash.  Always use a hash if anonymous
22582         structures or unions are present.
22583         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
22584         give errors.
22585
22586 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
22587
22588         PR target/44046
22589         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
22590         detect Atom, Core 2 and Core i7.
22591
22592 2010-05-09  Richard Guenther  <rguenther@suse.de>
22593
22594         * gcc.c (store_arg): Handle temporary file deletion for
22595         joined arguments.
22596
22597 2010-05-09  Richard Guenther  <rguenther@suse.de>
22598
22599         PR middle-end/44043
22600         * ipa-inline.c (estimate_function_body_sizes): Return after
22601         disregarding inline limits.
22602
22603 2010-05-09  Richard Guenther  <rguenther@suse.de>
22604
22605         * gcc.c (store_arg): Revert last change.
22606
22607 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
22608
22609         PR middle-end/28685
22610         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
22611         (optimize_ops_list): Call it.
22612
22613 2010-05-08  Richard Guenther  <rguenther@suse.de>
22614
22615         PR tree-optimization/44030
22616         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
22617         NECESSARY flag if we propagate from a inserted expression.
22618
22619 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
22620
22621         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
22622         domain types as equal if they are both PLACEHOLDER_EXPRs.
22623
22624 2010-05-08  Richard Guenther  <rguenther@suse.de>
22625
22626         * lto-wrapper.c (run_gcc): Remove linker output from
22627         command line for LTRANS invocation.
22628
22629 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
22630
22631         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
22632         lto-macho as lto_binary_reader.
22633         * target.h (struct gcc_target): New hooks lto_start and lto_end.
22634         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
22635         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
22636         in lto_start and lto_end calls.
22637         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
22638         magic numbers.
22639         (scan_prog_file): Update is_elf_or_coff call.
22640         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
22641
22642         * collect2.c (main): Fix enum comparison.
22643
22644         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
22645         Add prototypes.
22646         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
22647         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
22648         and TARGET_ASM_LTO_END.
22649         * darwin.c: Include obstack.h and lto-streamer.h.
22650         (lto_section_names_offset, lto_section_names_obstack,
22651         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
22652         global variables.
22653         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
22654         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
22655         to a temporary file.
22656         (darwin_asm_lto_end): New function.  Restore asm_out_file.
22657         (darwin_asm_named_section): For LTO sections, replace the name with
22658         the offset of the section name in a string table, and build this
22659         table.
22660         (darwin_file_start): Initialize global vars for LTO support.
22661         (darwin_file_end): If output to asm_out_file was redirected, append it
22662         to the proper asm_out_file here.  Add the section names section.
22663
22664 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
22665
22666         * c-pragma.c (pending_weak_d, pending_weak): New.
22667         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
22668         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
22669         handle_pragma_weak): Update the uses of pending_weaks.
22670
22671 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22672
22673         PR documentation/44016
22674         * doc/standards.texi (Standards): Link to unversioned
22675         cxx0x_status.html page.
22676
22677 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
22678
22679         PR target/43708
22680         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
22681         in addition to TREE_USED, to avoid "set but unused" warnings.
22682
22683 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
22684
22685         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
22686         (is_loop_prefetching_profitable): Do not insert prefetches
22687         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
22688         times the prefetch ahead distance.
22689
22690 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
22691
22692         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
22693         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
22694         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
22695         the unroll_factor.
22696
22697 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
22698
22699         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
22700         a diagnostic info when the insn-to-mem ratio is too small.
22701
22702 2010-05-07  Richard Guenther  <rguenther@suse.de>
22703
22704         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
22705         the linker plugin.
22706         (store_arg): Queue temp_filename for deletion instead of
22707         the whole argument.
22708
22709 2010-05-07  Richard Guenther  <rguenther@suse.de>
22710
22711         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
22712         (run_gcc): Handle LTRANS phase invocation.
22713         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
22714
22715 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
22716
22717         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
22718         this is also meaningful on PARM_DECLs and RESULT_DECLs.
22719
22720 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22721
22722         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
22723
22724 2010-05-07  Richard Guenther  <rguenther@suse.de>
22725
22726         PR tree-optimization/44020
22727         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
22728         code when PRE is not yet initialized.
22729
22730 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22731
22732         * config/mips/dbxmdebug.h: Remove.
22733         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
22734
22735 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
22736
22737         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
22738         with null pointer and also warn about ordered comparison of zero with
22739         pointer if -Wextra.
22740
22741 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
22742
22743         * graphite-blocking.c
22744         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
22745         * graphite-clast-to-gimple.c
22746         (clast_to_gcc_expression): Same.
22747         (precision_for_value): Same.
22748         (precision_for_interval): Same.
22749         (gcc_type_for_interval): Same.
22750         (graphite_create_new_guard): Same.
22751         (compute_bounds_for_level): Same.
22752         (graphite_create_new_loop_guard): Same.
22753         * graphite-interchange.c
22754         (build_linearized_memory_access): Same.
22755         (pdr_stride_in_loop): Same.
22756         (memory_strides_in_loop_1): Same.
22757         (memory_strides_in_loop): Same.
22758         (extend_scattering): Same.
22759         (psct_scattering_dim_for_loop_depth): Same.
22760         (pbb_number_of_iterations): Same.
22761         * graphite-poly.h
22762         (debug_iteration_domains): Same.
22763         * graphite-ppl.c
22764         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
22765         (ppl_set_inhomogeneous_gmp): Same.
22766         (ppl_strip_loop): Same.
22767         (ppl_lexico_compare_linear_expressions): Same.
22768         (ppl_read_polyhedron_matrix): Same.
22769         (ppl_max_for_le_pointset): Same.
22770         * graphite-ppl.h
22771         (ppl_read_polyhedron_matrix): Same.
22772         (tree_int_to_gmp): Same.
22773         (gmp_cst_to_tree): Same.
22774         (ppl_set_inhomogeneous): Same.
22775         (ppl_set_inhomogeneous_tree): Same.
22776         (ppl_set_coef): Same.
22777         (ppl_set_coef_tree): Same.
22778         * graphite-sese-to-poly.c
22779         (build_pbb_scattering_polyhedrons): Same.
22780         (build_scop_scattering): Same.
22781         (scan_tree_for_params_right_scev): Same.
22782         (scan_tree_for_params): Same.
22783         (find_params_in_bb): Same.
22784         (find_scop_parameters): Same.
22785         (add_upper_bounds_from_estimated_nit): Same.
22786         (build_loop_iteration_domains): Same.
22787         (add_condition_to_domain): Same.
22788         (pdr_add_memory_accesses): Same.
22789
22790 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
22791
22792         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
22793         CLooG's value_* macros to their respective mpz_* counterparts.
22794         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
22795         (graphite_create_new_loop_guard): Same.
22796         * graphite-interchange.c (build_linearized_memory_access): Same.
22797         (pdr_stride_in_loop): Same.
22798         (memory_strides_in_loop_1): Same.
22799         (1st_interchange_profitable_p): Same.
22800         * graphite-poly.c (extend_scattering): Same.
22801         (psct_scattering_dim_for_loop_depth): Same.
22802         (pbb_number_of_iterations): Same.
22803         (pbb_number_of_iterations_at_time): Same.
22804         * graphite-poly.h (new_1st_loop): Same.
22805         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
22806         (oppose_constraint): Same.
22807         (insert_constraint_into_matrix): Same.
22808         (ppl_set_inhomogeneous_gmp): Same.
22809         (ppl_set_coef_gmp): Same.
22810         (ppl_strip_loop): Same.
22811         (ppl_lexico_compare_linear_expressions): Same.
22812         (ppl_max_for_le_pointset): Same.
22813         (ppl_min_for_le_pointset): Same.
22814         (ppl_build_realtion): Same.
22815         * graphite-ppl.h (gmp_cst_to_tree): Same.
22816         (ppl_set_inhomogeneous): Same.
22817         (ppl_set_inhomogeneous_tree): Same.
22818         (ppl_set_coef): Same.
22819         (ppl_set_coef_tree): Same.
22820         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22821         (build_scop_scattering): Same.
22822         (add_value_to_dim): Same.
22823         (scan_tree_for_params_right_scev): Same.
22824         (scan_tree_for_params_int): Same.
22825         (scan_tree_for_params): Same.
22826         (find_params_in_bb): Same.
22827         (find_scop_parameters): Same.
22828         (add_upper_bounds_from_estimated_nit): Same.
22829         (build_loop_iteration_domains): Same.
22830         (create_linear_expr_from_tree): Same.
22831         (add_condition_to_domain): Same.
22832         (pdr_add_memory_accesses): Same.
22833
22834 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
22835             Jason Merrill  <jason@redhat.com>
22836
22837         * c-common.c (c_common_reswords): Add nullptr.
22838         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
22839         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
22840         (gen_type_die_with_usage): Likewise.
22841         * dbxout.c (dbxout_type): Likewise.
22842         * sdbout.c (plain_type_1): Likewise.
22843
22844 2010-05-06  Jason Merrill  <jason@redhat.com>
22845
22846         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
22847         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
22848         ret appropriately.
22849         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
22850
22851         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
22852         stripping WITH_SIZE_EXPR.
22853         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
22854         change.
22855
22856 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22857
22858         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
22859         list of obsolete configurations.
22860         Disabled check for obsolete configurations.
22861         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
22862         Removed support for previous versions.
22863         * config/mips/iris.h: Removed.
22864         * config/mips/iris5.h: Removed.
22865         * config/mips/iris6.h: Merged old iris.h contents.
22866         (TARGET_IRIX): Removed.
22867         (DRIVER_SELF_SPECS): Removed mabi=32.
22868         (IDENT_ASM_OP): Removed undef.
22869         (STARTFILE_SPEC): Removed mabi=32.
22870         (ENDFILE_SPEC): Likewise.
22871         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
22872         (MACHINE_TYPE): Update for IRIX 6.5.
22873         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
22874         TARGET_IRIX by TARGET_IRIX6.
22875         (mips_file_start): Likewise.
22876         (mips_output_external): Remove IRIX 5/6 O32 support.
22877         (mips_output_function_prologue): Likewise.
22878         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
22879         TARGET_IRIX6.
22880         (TARGET_CPU_CPP_BUILTINS): Likewise.
22881         (TARGET_IRIX): Removed.
22882         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
22883         (MULTILIB_DIRNAMES): Removed 32.
22884         (MULTILIB_OSDIRNAMES): Removed ../lib.
22885         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
22886         (Specific, mips-sgi-irix5): Document removal.
22887         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
22888         Remove references to older IRIX 6 releases and the O32 ABI.
22889
22890 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
22891
22892         PR bootstrap/43994
22893         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
22894         instead of DF_REF_REAL_REG.
22895
22896 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
22897
22898         PR target/43888
22899         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
22900         handling to still return true for x64 targets.
22901
22902 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
22903
22904         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
22905
22906 2010-05-06  Jan Hubicka  <jh@suse.cz>
22907
22908         PR tree-optimization/43791
22909         * ipa-inline.c (update_caller_keys): Remove bogus
22910         disregard_inline_limits check.
22911
22912 2010-05-06  Michael Matz  <matz@suse.de>
22913
22914         PR tree-optimization/43984
22915         * tree-ssa-pre.c (inserted_phi_names): Remove.
22916         (inserted_exprs): Change to bitmap.
22917         (create_expression_by_pieces): Set bits, don't append to vector.
22918         (insert_into_preds_of_block): Don't handle inserted_phi_names.
22919         (eliminate): Don't look at inserted_phi_names, remove deleted
22920         insns from inserted_exprs.
22921         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
22922         (init_pre, fini_pre): Allocate and free bitmaps.
22923         (execute_pre): Insert insns on edges before elimination.
22924
22925 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
22926
22927         * tree.c (initializer_zerop): Handle STRING_CST.
22928
22929 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22930
22931         PR 40989
22932         * doc/invoke.texi (Wimplicit): Document as C only.
22933         * opts.c (common_handle_option): Add argument kind.
22934         (handle_option): Rename as read_cmdline_option. Factor out code to...
22935         (handle_option): ... here. New.
22936         (handle_options): Rename as read_cmdline_options.
22937         (decode_options): Update call.
22938         (set_option): Use option index instead of option pointer. Classify
22939         diagnostics correctly.
22940         (enable_warning_as_error): Call handle_option.
22941         * opts.h (set_option): Update declaration.
22942         (handle_option): Declare.
22943         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
22944         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
22945         * c-opts.c (set_Wimplicit): Delete.
22946         (c_family_lang_mask): New static constant.
22947         (c_common_handle_option): Add argument kind. Use handle_option
22948         instead of set_Wimplicit.
22949         (c_common_post_options): warn_implicit and warn_implicit_int
22950         are disabled by default.
22951         * c-common.c (warn_implicit): Do not define here.
22952         * c-common.h (warn_implicit): Do not declare here.
22953         (c_common_handle_option): Update declaration.
22954         * lto-opts.c (lto_reissue_options): Update call to set_option.
22955
22956 2010-05-06  Richard Guenther  <rguenther@suse.de>
22957
22958         PR tree-optimization/43571
22959         * domwalk.c (walk_dominator_tree): Walk the dominator
22960         sons in more optimal order.
22961
22962 2010-05-06  Richard Guenther  <rguenther@suse.de>
22963
22964         PR tree-optimization/43934
22965         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
22966         (stmt_cost): Likewise.
22967         (extract_true_false_args_from_phi): New helper.
22968         (determine_max_movement): For PHI nodes verify we can hoist them
22969         and compute their cost.
22970         (determine_invariantness_stmt): Handle PHI nodes.
22971         (move_computations_stmt): Likewise.  Hoist PHI nodes in
22972         if-converted form using COND_EXPRs.
22973         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
22974         (tree_ssa_lim): Likewise.
22975         * tree-flow.h (tree_ssa_lim): Adjust prototype.
22976         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
22977
22978 2010-05-06  Richard Guenther  <rguenther@suse.de>
22979
22980         PR tree-optimization/43987
22981         * tree-ssa-structalias.c (could_have_pointers): For possibly
22982         address-taken variables force pointers to be recorded.
22983         (create_variable_info_for_1): Likewise.
22984         (push_fields_onto_fieldstack): Pass in wheter all fields
22985         must have pointers.
22986         (find_func_aliases): Query types instead of vars whether
22987         they contain pointers where appropriate.
22988
22989 2010-05-06  Jan Hubicka  <jh@suse.cz>
22990
22991         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
22992         (record_reference, mark_address, mark_load, mark_store): Record
22993         references.
22994         (record_references_in_initializer): Update call of record_references.
22995         (rebuild_cgraph_edges): Remove all references before rebuiding.
22996         * cgraph.c (cgraph_create_node): Clear ref list.
22997         (cgraph_remove_node): Remove references.
22998         (dump_cgraph_node): Dump references.
22999         (cgraph_clone_node): Clone references.
23000         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
23001         (struct cgraph_node, varpool_node): Add ref_lst.
23002         * ipa-ref.c: New file.
23003         * ipa-ref.h: New file.
23004         * ipa-ref-inline.h: New file.
23005         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
23006         (referenced_from_other_partition_p): New function.
23007         (lto_output_varpool_node): Take set arugment; call
23008         referenced_from_other_partition.
23009         (lto_output_ref): New.
23010         (add_references): New.
23011         (output_refs): New.
23012         (output_cgraph): Compute boundary based on references; output refs.
23013         (output_varpool): Accept cgraph_node_set argument.
23014         (input_ref): New.
23015         (input_refs): New.
23016         (input_cgraph): Call input_refs.
23017         * lto-section-in.c (lto_section_name): Add refs.
23018         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
23019         (ipa-ref.o): New file.
23020         * varpool.c (varpool_node): Clear ipa ref list.
23021         (varpool_remove_node): Remove references.
23022         (dump_varpool_node): Dump references.
23023         (varpool_assemble_decl): Only compile finalized ones.
23024         (varpool_extra_name_alias): Initialize ref list.
23025         * lto-streamer.c (lto-get_section_name): Add .refs section.
23026         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
23027         (referenced_from_other_partition_p): Declared.
23028
23029 2010-05-06  Ira Rosen  <irar@il.ibm.com>
23030
23031         PR tree-optimization/43901
23032         * tree-vect-stmts.c (vectorizable_call): Assert that vector
23033         type is not NULL if it's transformation phase, and return
23034         FALSE if it's analysis.
23035         (vectorizable_conversion, vectorizable_operation,
23036         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
23037
23038 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
23039
23040         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23041         Delete.
23042         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
23043         New define.
23044         * config/mips/mips-protos.h
23045         (mips_small_register_classes_for_mode_p): Delete prototype.
23046
23047 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
23048
23049         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
23050         * config/arm/arm.c (multiple_operation_profitable_p,
23051         compute_offset_order): New static functions.
23052         (load_multiple_sequence, store_multiple_sequence): Use them.
23053         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
23054         memory offsets, not register numbers.
23055         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
23056
23057 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
23058
23059         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
23060         (get_pending_sizes, put_pending_size, put_pending_sizes):
23061         Update the uses of pending_sizes.
23062         * c-decl.c (store_parm_decls): Likewise.
23063         * c-tree.h (struct c_arg_info): Likewise.
23064         * tree.h: Update the prototype for get_pending_sizes and
23065         put_pending_sizes.
23066
23067 2010-05-05  Jason Merrill  <jason@redhat.com>
23068
23069         PR debug/43370
23070         * c-common.c (handle_aligned_attribute): Respect
23071         ATTR_FLAG_TYPE_IN_PLACE.
23072
23073         PR testsuite/43758
23074         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
23075         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23076         (TARGET_INITIALIZER): Use it.
23077         * c-common.c (attribute_takes_identifier_p): Call it.
23078         * c-common.h: Update prototype.
23079         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
23080         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
23081
23082 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
23083
23084         PR debug/43950
23085         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
23086         DW_ID_down_case for Fortran compilation units.
23087
23088 2010-05-05  Jan Hubicka  <jh@suse.cz>
23089
23090         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
23091         handle aliases.
23092
23093 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
23094
23095         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
23096         a variable-sized RESULT_DECL.
23097
23098 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
23099
23100         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
23101
23102 2010-05-05  Jason Merrill  <jason@redhat.com>
23103
23104         PR c++/43787
23105         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
23106         returns GS_OK.
23107         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
23108
23109 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
23110             Jakub Jelinek  <jakub@redhat.com>
23111
23112         PR debug/43478
23113         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
23114         (dead_debug_init, dead_debug_finish): New functions.
23115         (dead_debug_add, dead_debug_insert_before): Likewise.
23116         (df_note_bb_compute): Initialize a dead_debug object, add dead
23117         debug uses to it, insert debug bind insns before death insns,
23118         reset debug insns that refer to pending uses at the end.
23119         * rtl.h (make_debug_expr_from_rtl): New prototype.
23120         * varasm.c (make_debug_expr_from_rtl): New function.
23121
23122 2010-05-05  Jan Hubicka  <jh@suse.cz>
23123
23124         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
23125         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
23126         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
23127         lto_varpool_encoder_deref, lto_varpool_encoder_size,
23128         lto_varpool_encoder_encode_initializer_p,
23129         lto_set_varpool_encoder_encode_initializer): New functions.
23130         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
23131         call output_varpool.
23132         (input_varpool_node): Do not always set analyzed.
23133         (input_cgraph_1): Return vector of cgraph nodes.
23134         (input_varpool_1): Return vector of varpools.
23135         (input_cgraph): Free the vectors.
23136         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23137         output only initializers needed.
23138         (lto_output): Only call output_cgraph.
23139         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
23140         * lto-section-out.c (lto_new_out_decl_state): Initialize
23141         state->varpool_node_encoder.
23142         * lto-streamer.h (lto_varpool_encoder_d): New.
23143         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
23144         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
23145         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
23146         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
23147         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
23148         Declare.
23149         (output_varpool, input_varpool): Remove declarations.
23150
23151 2010-05-05  Jan Hubicka  <jh@suse.cz>
23152
23153         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
23154         with body can prevail.
23155
23156 2010-05-05  Jan Hubicka  <jh@suse.cz>
23157
23158         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
23159         size.
23160
23161 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23162
23163         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
23164
23165         * gengtype.h (erro_at_line): Constify pos argument.
23166
23167         * gengtype.c: Include hashtab.h.
23168         (enum gc_used): Document GC_MAYBE_POINTED_TO.
23169         (error_at_line): Constify pos argument.
23170         (do_typedef): Initialize p->opt field.
23171         (get_file_gtfilename): Fix comment typo.
23172         (struct walk_type_data): Constify line field.
23173         (get_output_file_for_structure): New function.
23174         (write_local_func_for_structure): Constify orig_s argument.
23175         Use get_output_file_for_structure.
23176         (write_func_for_structure): Use get_output_file_for_structure.
23177         (INDENT): New define.
23178         (dump_pair, dump_type, dump_type_list, dump_typekind)
23179         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
23180         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
23181         functions.
23182         (seen_types): New variable.
23183         (main): New variable do_dump.  Process "-d" command line option.
23184         Call dump_everything if dump requested.
23185
23186 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
23187
23188         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
23189         in a temporary instead of invoking the macro multiple times.
23190         (track_expr_p): Likewise.
23191
23192 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
23193
23194         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
23195         per new semantics.
23196         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
23197         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
23198         conditions for printing notes.
23199         * common.opt (-Wcoverage-mismatch): Allow negative, default to
23200         true, update documentation.
23201         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
23202
23203 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
23204
23205         PR c/43981
23206         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
23207         on dimen.
23208
23209 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
23210
23211         PR target/43799
23212         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
23213         (*sse_prologue_save_insn1): Likewise.
23214         (SSE prologue save splitter): Likewise.
23215
23216 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23217
23218         * tree.c (free_lang_data_in_one_sizepos): New inline function.
23219         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
23220         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
23221         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
23222         all decls.  Call it on DECL_FIELD_OFFSET of fields.
23223         (find_decls_types_r): Follow DECL_VALUE_EXPR.
23224         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
23225
23226 2010-05-04  Martin Jambor  <mjambor@suse.cz>
23227
23228         * tree-sra.c (build_access_from_expr_1): The first parameter type
23229         changed to simple tree.
23230         (build_access_from_expr): Likewise, gsi parameter was eliminated.
23231         (scan_assign_result): Renamed to assignment_mod_result, enum elements
23232         renamed as well.
23233         (build_accesses_from_assign): Removed all parameters except for a
23234         simple gimple statement.  Now returns a simple bool.
23235         (scan_function): All non-analysis parts moved to separate functions
23236         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
23237         parameters and updated both callers.
23238         (sra_modify_expr): Removed parameter data.
23239         (sra_modify_function_body): New function.
23240         (perform_intra_sra): Call sra_modify_function_body to modify the
23241         function body.
23242         (replace_removed_params_ssa_names): Parameter data changed into
23243         adjustments vector.
23244         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
23245         changed the parameter dont_convert to convert with the opposite
23246         meaning.
23247         (sra_ipa_modify_assign): Parameter data changed into adjustments
23248         vector, return value changed to bool.
23249         (ipa_sra_modify_function_body): New function.
23250         (sra_ipa_reset_debug_stmts): Updated a comment.
23251         (modify_function): Use ipa_sra_modify_function_body to modify function
23252         body.
23253
23254 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
23255
23256         PR middle-end/43671
23257         * alias.c (true_dependence): Handle the same VALUE in x and mem.
23258         (canon_true_dependence): Likewise.
23259         (write_dependence_p): Likewise.
23260
23261 2010-05-04  Jan Hubicka  <jh@suse.cz>
23262
23263         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
23264         * cgraphbuild.c: Include ipa-utils.h
23265         (record_reference_ctx): New struct.
23266         (record_reference): Simplify to work on initializers; not statements.
23267         (mark_address, mark_load, mark_store): New.
23268         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23269         walk PHI nodes too.
23270         (record_references_in_initializer): Update use of record_reference.
23271         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
23272         walk PHI nodes too.
23273
23274 2010-05-04  Jan Hubicka  <jh@suse.cz>
23275
23276         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
23277         node will be removed anyway.
23278         (lto_varpool_replace_node): Allow also unanalyzed nodes;
23279         relink aliases of node into prevailing node.
23280         * varpool.c (varpool_remove_node): Remove aliases properly;
23281         when removing node, remove all its aliases too; remove DECL_INITIAL
23282         of removed node; ggc_free the varpool node.
23283
23284 2010-05-04  Richard Guenther  <rguenther@suse.de>
23285
23286         PR tree-optimization/43879
23287         * tree-ssa-structalias.c (alias_get_name): Use
23288         DECL_ASSEMBLER_NAME if available.
23289         (create_function_info_for): Return the varinfo node.
23290         (ipa_pta_execute): Associate same-body aliases and extra names
23291         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
23292
23293 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
23294
23295         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
23296
23297 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
23298
23299         PR bootstrap/43964
23300         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
23301         only if HONOR_REG_ALLOC_ORDER is not defined.
23302
23303 2010-05-04  Richard Guenther  <rguenther@suse.de>
23304
23305         PR tree-optimization/43949
23306         * tree-vrp.c (extract_range_from_binary_expr): Only handle
23307         TRUNC_MOD_EXPR.
23308
23309 2010-04-26  Jason Merrill  <jason@redhat.com>
23310
23311         * c.opt (-fstrict-enums): New.
23312         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
23313
23314 2010-05-03  David Ung  <davidu@mips.com>
23315             James E. Wilson  <wilson@codesourcery.com>
23316
23317         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
23318         emit the trap instruction before the divide for TUNE_74K.
23319
23320 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
23321
23322         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
23323         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
23324         based on the above, for new target hook.
23325
23326         * hooks.c (hook_bool_mode_true): New generic hook.
23327         * hooks.h (hook_bool_mode_true): Add prototype.
23328
23329         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
23330         target hook.
23331         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
23332         target hook, set to hook_bool_mode_false.
23333         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
23334         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
23335         with targetm.small_register_classes_for_mode_p.
23336         (find_reusable_reload): Likewise.
23337         (combine_reloads): Likewise.
23338         * reload1.c (reload_as_needed): Likewise.
23339         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
23340         * ifcvt.c (noce_process_if_block, check_cond_move_block,
23341         dead_or_predicable): Likewise.
23342         * regmove.c (optimize_reg_copy_1): Likewise.
23343         * calls.c (prepare_call_address): Likewise.
23344         (precompute_register_parameters): Likewise.
23345
23346         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
23347         hook definition.
23348         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
23349         implementation of the hook that considers all register classes
23350         small except for SH64.
23351         (sh_override_options): Use the new hook.
23352         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
23353         Add prototype.
23354
23355         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
23356         hook definition.
23357         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
23358         implementation of the hook that considers all register classes
23359         small for THUMB1.
23360         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
23361         Add prototype.
23362
23363         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
23364         hook definition.
23365         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
23366         implementation of the hook that considers all register classes
23367         small for MIPS16.
23368         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
23369         Add prototype.
23370
23371         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
23372         hook definition.
23373         * config/m32c/m32c.h: Likewise.
23374         * config/pdp11/pdp11.h: Likewise.
23375         * config/avr/avr.h: Likewise.
23376         * config/xtensa/xtensa.h: Likewise.
23377         * config/m68hc11/m68hc11.h: Likewise.
23378         * config/mn10300/mn10300.h: Likewise.
23379         * config/mcore/mcore.h: Likewise.
23380         * config/h8300/h8300.h: Likewise.
23381         * config/bfin/bfin.h: Likewise.
23382
23383         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
23384         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
23385
23386 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
23387
23388         * double-int.h (tree_to_double_int): Remove macro.
23389         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
23390         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23391         (tree_to_double_int): New function.
23392         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
23393         Move ...
23394         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
23395
23396 2010-05-03  Richard Guenther  <rguenther@suse.de>
23397
23398         PR tree-optimization/43971
23399         * tree-ssa-structalias.c (get_constraint_for_1): Fix
23400         constraints in the !flag_delete_null_pointer_checks case.
23401
23402 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
23403
23404         PR debug/43972
23405         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
23406         result mode matches original rtl mode.
23407
23408 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
23409
23410         PR target/43888
23411         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
23412
23413 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23414
23415         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
23416         when processing flag options.
23417
23418 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23419
23420         * gcov-iov.c (main): Change format string placeholder
23421         from %#08x to 0x%08x.
23422         * genchecksum.c (dosum): Change format string placeholder
23423         from %#02x to 0x%02x.
23424
23425 2010-05-02  Richard Guenther  <rguenther@suse.de>
23426
23427         PR tree-optimization/43879
23428         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
23429
23430 2010-05-02  Bruno Haible  <bruno@clisp.org>
23431
23432         * doc/extend.texi (Function Attributes): Fix a typo.
23433
23434 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23435
23436         Revert:
23437         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
23438         placeholder from 0x%x to %#x.
23439         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23440         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
23441         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
23442         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
23443         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
23444         * config/i386/i386.c (ix86_target_string): Ditto.
23445         * config/i386/i386.c (output_pic_addr_const): Ditto.
23446         (print_operand): Ditto.
23447
23448 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
23449
23450         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
23451         placeholder from 0x%x to %#x.
23452         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
23453         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
23454         (ASM_OUTPUT_DEBUG_DATA): Ditto.
23455         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
23456         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
23457         * optc-gen.awk: Ditto.
23458         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
23459         (HOST_WIDE_INT_PRINT_HEX): Ditto.
23460         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
23461         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
23462
23463 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
23464
23465         * target.h (struct calls): Add function_value_regno_p field.
23466         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
23467         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
23468         * targhooks.c (default_function_value_regno_p): New function.
23469         * targhooks.h (default_function_value_regno_p): Declare function.
23470         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
23471         * builtins.c. (apply_result_size): (Ditto.).
23472         * combine.c. (likely_spilled_retval_p): (Ditto.).
23473         * mode-switching.c. Include 'target.h'.
23474         (create_pre_exit): Use function_value_regno_p hook.
23475         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
23476         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
23477         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
23478
23479         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
23480         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
23481         (ix86_function_value_regno_p): Declare as static, change argument
23482         type to const unsigned int.
23483         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
23484
23485 2010-05-01  Richard Guenther  <rguenther@suse.de>
23486
23487         PR tree-optimization/43949
23488         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
23489         types.
23490         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
23491
23492 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
23493
23494         * rtl.h (CONST_DOUBLE_P): Define.
23495         (rtx_to_double_int): Declare.
23496         * emit-rtl.c (rtx_to_double_int): New function.
23497         * dwarf2out.c (insert_double): New function.
23498         (loc_descriptor, add_const_value_attribute): Clean up, use
23499         rtx_to_double_int and insert_double functions.
23500
23501 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
23502
23503         * doc/extend.texi (Inline): Add missing return keyword to examples.
23504         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
23505         "command-line".
23506
23507 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
23508
23509         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
23510         the variable part of the offset as well.  Use highest_pow2_factor for
23511         all alignment checks.
23512
23513 2010-04-30  Richard Guenther  <rguenther@suse.de>
23514
23515         PR tree-optimization/43879
23516         * tree-ssa-structalias.c (type_could_have_pointers): Functions
23517         can have pointers.
23518
23519 2010-04-30  Jan Hubicka  <jh@suse.cz>
23520
23521         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
23522         varpool.
23523         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
23524
23525 2010-04-30  Jan Hubicka  <jh@suse.cz>
23526
23527         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
23528         New.
23529         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
23530         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
23531         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
23532         cgraph_node_set_needs_ltrans_p): Remove.
23533
23534 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
23535
23536         * sdbout.c: Include vec.h, do not include varray.h.
23537         (deferred_global_decls, sdbout_global_decl,
23538         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
23539         * toplev.c: Do not include varray.h.
23540         (dump_memory_report): Do not dump VARRAY statistics.
23541         * gengtype.c (open_base_file): Ignore varray.h.
23542         * Makefile.in: Update for abovementioned changes.
23543         Remove all traces of varray.c and varray.h.
23544         * varray.c: Remove file.
23545         * varray.h: Remove file.
23546
23547 2010-04-30  Jan Hubicka  <jh@suse.cz>
23548
23549         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
23550         references.
23551
23552 2010-04-30  Jan Hubicka  <jh@suse.cz>
23553
23554         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
23555         needed.
23556
23557 2010-04-30  Richard Guenther  <rguenther@suse.de>
23558
23559         * tree-ssa-structalias.c (get_constraint_for_1): Generate
23560         constraints for CONSTRUCTOR.
23561
23562 2010-04-30  Richard Guenther  <rguenther@suse.de>
23563
23564         PR lto/43946
23565         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
23566         first after all lowering passes.
23567
23568 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
23569
23570         * toplev.c: Include varray.h for statistics dumping.
23571         * tree.h: Do not declare varray_head_tag.
23572         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
23573         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
23574         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
23575         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
23576         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
23577         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
23578         c-common.c, c-common.h, reg-stack.c, basic-block.h,
23579         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
23580         include varray.h.
23581         * Makefile.in: Update for abovementioned changes.
23582
23583 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
23584
23585         PR debug/43942
23586         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
23587
23588 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
23589
23590         * config/picochip/picochip.c (picochip_legitimize_address): Define.
23591         Use this function to do machine-specific conversion.
23592         (picochip_legitimize_reload_address): Likewise.
23593         (picochip_legitimate_address_p): Check valid base register only if
23594         strict.
23595         (picochip_check_conditional_copy): Check for modw only if opnd is
23596         register.
23597         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
23598         to call the function in c.
23599         * config/picochip/picochip-protos.h
23600         (picochip_legitimize_reload_address): Define.
23601         * config/picochip/picochip.md (supported_compare1): Define.
23602
23603 2010-04-30  Jan Hubicka  <jh@suse.cz>
23604
23605         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
23606         (cgraph_global_info): Remove inlined.
23607         (LTO_cgraph_tag_names): Remove.
23608         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
23609         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
23610         simplify cgraph tags and document.
23611         (lto_output_node): Use only LTO_cgraph_unavail_node and
23612         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
23613         for_functions_valid, global info, process and output flags.
23614         (input_overwrite_node): Initialize estimated stack size and
23615         estimated growth.  Do not read flags we no longer store.
23616         (input_node): Likewise do not read info no longer stored.
23617         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
23618         flag.
23619
23620 2010-04-30  Richard Guenther  <rguenther@suse.de>
23621
23622         PR tree-optimization/43879
23623         * tree-ssa-structalias.c (get_constraint_for_1): Properly
23624         handle non-zero initializers.
23625
23626 2010-04-30  Richard Guenther  <rguenther@suse.de>
23627
23628         * builtins.c (fold_builtin_1): Delete free (0).
23629
23630 2010-04-29  Jan Hubicka  <jh@suse.cz>
23631
23632         * gengtype.c (open_base_files): Add lto-streamer.h
23633         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
23634         (pass_ipa_cp): GGC collect.
23635         * toplev. (compile_file): Do not output symbols.
23636         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
23637         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
23638         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
23639         * lto-section-in.c: Include ggc.h
23640         (lto_new_in_decl_state): Alloc in GGC.
23641         (lto_delete_in_decl_state): Likewise.
23642         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
23643         Collect.
23644
23645 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
23646
23647         PR target/42895
23648         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
23649         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
23650         (HONOR_REG_ALLOC_ORDER): Describe new macro.
23651         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
23652         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
23653         account only if HONOR_REG_ALLOC_ORDER is not defined.
23654         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
23655         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
23656
23657 2010-04-29  Jon Grant  <04@jguk.org>
23658
23659         * collect2.c (vflag): Change type from int to bool.
23660         (debug): Likewise.
23661         (helpflag): New global bool.
23662         (main): Set vflag and debug with boolean, not integer truth values.
23663         Accept new "--help" option and output usage text if found.
23664         * collect2.h (vflag): Update prototype.
23665         (debug): Likewise.
23666
23667 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
23668
23669         PR bootstrap/43936
23670         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
23671
23672 2010-04-29  Richard Guenther  <rguenther@suse.de>
23673
23674         PR bootstrap/43935
23675         * plugin.h (invoke_plugin_callbacks): Annotate arguments
23676         with ATTRIBUTE_UNUSED.
23677
23678 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
23679
23680         PR target/43921
23681         * config/i386/i386.c (get_some_local_dynamic_name): Replace
23682         INSN_P with NONDEBUG_INSN_P.
23683         (distance_non_agu_define): Likewise.
23684         (distance_agu_use): Likewise.
23685
23686 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
23687
23688         From Dominique d'Humieres  <dominiq@lps.ens.fr>
23689         PR bootstrap/43858
23690         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
23691         test_set.
23692
23693 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
23694
23695         * plugin.h (invoke_plugin_callbacks): New inline function.
23696         * plugin.c (flag_plugin_added): New global flag.
23697         (add_new_plugin): Initialize above flag.
23698         (invoke_plugin_callbacks): Rename to ...
23699         (invoke_plugin_callbacks_full): ... this.
23700
23701 2010-04-28  Jan Hubicka  <jh@suse.cz>
23702
23703         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
23704         (lto_varpool_replace_node): New.
23705         (lto_symtab_resolve_symbols): Resolve varpool nodes.
23706         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
23707         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
23708         * cgraph.h (varpool_node_ptr): New type.
23709         (varpool_node_ptr): New vector.
23710         (varpool_node_set_def): New structure.
23711         (varpool_node_set): New type.
23712         (varpool_node_set): New vector.
23713         (varpool_node_set_element_def): New structure.
23714         (varpool_node_set_element, const_varpool_node_set_element): New types.
23715         (varpool_node_set_iterator): New type.
23716         (varpool_node): Add prev pointers, add used_from_other_partition,
23717         in_other_partition.
23718         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
23719         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
23720         varpool_get_node, varpool_remove_node): Declare.
23721         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
23722         varpool_node_set_size): New inlines.
23723         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
23724         * tree-pass.h (varpool_node_set_def): Forward declare.
23725         (ipa_opt_pass_d): Summary writting takes vnode sets too.
23726         (ipa_write_optimization_summaries): Update prototype.
23727         * ipa-cp.c (ipcp_write_summary): Update.
23728         * ipa-reference.c (ipa_reference_write_summary): Update.
23729         * lto-cgraph.c (lto_output_varpool_node): New static function.
23730         (output_varpool): New function.
23731         (input_varpool_node): New static function.
23732         (input_varpool_1): New function.
23733         (input_cgraph): Input varpool.
23734         * ipa-pure-const.c (pure_const_write_summary): Update.
23735         * lto-streamer-out.c (lto_output): Update, output varpool too.
23736         (write_global_stream): Kill WPA hack.
23737         (produce_asm_for_decls): Update.
23738         (output_alias_pair_p): Handle variables.
23739         (output_unreferenced_globals): Output only needed partition of varpool.
23740         * ipa-inline.c (inline_write_summary): Update.
23741         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
23742         cgraph.
23743         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
23744         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
23745         varpool_node_set_new, varpool_node_set_add,
23746         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
23747         debug_varpool_node_set): New functions.
23748         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
23749         (execute_one_pass): Process new decls too.
23750         (ipa_write_summaries_2): Pass around vsets.
23751         (ipa_write_summaries_1): Likewise.
23752         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
23753         to add.
23754         (ipa_write_optimization_summaries_1): Pass around vsets.
23755         (ipa_write_optimization_summaries): Likewise.
23756         * varpool.c (varpool_get_node): New.
23757         (varpool_node): Update doubly linked lists.
23758         (varpool_remove_node): New.
23759         (dump_varpool_node): More dumping.
23760         (varpool_enqueue_needed_node): Update doubly linked lists.
23761         (decide_is_variable_needed): Kill ltrans hack.
23762         (varpool_finalize_decl): Kill lto hack.
23763         (varpool_assemble_decl): Skip decls in other partitions.
23764         (varpool_assemble_pending_decls): Update doubly linkes lists.
23765         (varpool_empty_needed_queue): Likewise.
23766         (varpool_extra_name_alias): Likewise.
23767         * lto-streamer.c (lto_get_section_name): Add vars section.
23768         * lto-streamer.h (lto_section_type): Update.
23769         (output_varpool, input_varpool): Declare.
23770
23771 2010-04-28  Mike Stump  <mikestump@comcast.net>
23772
23773         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
23774
23775 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23776
23777         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
23778         record or union type with RECORD_OR_UNION_TYPE_P predicate.
23779         (lto_input_ts_type_tree_pointers): Likewise.
23780         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
23781         (lto_output_ts_type_tree_pointers): Likewise.
23782
23783 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23784
23785         Uniquization of constants at the Tree level
23786         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
23787         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
23788         bit to the end.
23789         (tree_output_constant_def): Declare.
23790         * gimplify.c (gimplify_init_constructor): When using block copy, first
23791         uniquize the constant constructor on the RHS.
23792         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
23793         DECL_IN_CONSTANT_POOL flag.
23794         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
23795         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
23796         constant pool.
23797         (assemble_variable): Deal with symbols belonging to the tree constant
23798         pool.
23799         (get_constant_section): Add ALIGN parameter and simplify.
23800         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
23801         (assemble_constant_contents): Use the expression of the VAR_DECL.
23802         (output_constant_def_contents): Use the alignment of the VAR_DECL.
23803         (tree_output_constant_def): New global function.
23804         (mark_constant): Use the expression of the VAR_DECL.
23805         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
23806         its expression.
23807         (output_object_block): Likewise and assemble the expression.
23808
23809 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
23810
23811         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
23812         hash_tree, eq_tree): New tree hash table.
23813         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
23814         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
23815         lto_orig_address_remove): Reimplement.
23816
23817 2010-04-28  Xinliang David Li  <davidxl@google.com>
23818
23819         PR c/42643
23820         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
23821         (compute_uninit_opnds_pos): New function.
23822         (is_non_loop_exit_postdominating): New function.
23823         (compute_control_dep_chain): New function.
23824         (find_pdom): New function.
23825         (convert_control_dep_chain_into_preds): New function.
23826         (find_predicates): New function.
23827         (find_control_equiv_block): New function.
23828         (collect_phi_def_edges): New function.
23829         (find_def_preds): New function.
23830         (find_dom): New function.
23831         (dump_predicates): New function.
23832         (get_cmp_code): New function.
23833         (is_value_included_in): New function.
23834         (find_matching_predicate_in_rest_chains): New function.
23835         (use_pred_not_overlap_with_undef_path_pred): New function.
23836         (is_use_properly_guarded): New function.
23837         (normalize_cond_1): New function.
23838         (is_and_or_or): New function.
23839         (normalize_cond): New function.
23840         (is_gcond_subset_of): New function.
23841         (is_subset_of_any): New function.
23842         (is_or_set_subset_of): New function.
23843         (is_and_set_subset_of): New function.
23844         (is_norm_cond_subset_of): New function.
23845         (is_pred_expr_subset_of): New function.
23846         (is_pred_chain_subset_of): New function.
23847         (is_included_in): New function.
23848         (is_superset_of): New function.
23849         (find_uninit_use): New function.
23850         (warn_uninitialized_phi): New function.
23851         (compute_possibly_undefined_names): New function.
23852         (ssa_undefined_value_p): New function.
23853         (execute_late_warn_uninitialized): New function.
23854         * tree-ssa.c (ssa_undefined_value_p): Removed.
23855         (warn_uninit): Changed to extern.
23856         (warn_uninitialized_phi): Removed.
23857         (warn_uninitialized_vars): Changed to extern.
23858         (execute_late_warn_uninitialized): Removed
23859         * tree-flow.h: Add new prototypes.
23860         * timevar.def: Add new time variable.
23861         * Makefile.in: Add new build file.
23862
23863 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
23864
23865         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
23866         type if available.
23867
23868 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23869
23870         PR target/22224
23871         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
23872
23873 2010-04-28  Martin Jambor  <mjambor@suse.cz>
23874
23875         * cgraph.h (struct cgraph_node): New field indirect_calls.
23876         (struct cgraph_indirect_call_info): New type.
23877         (struct cgraph_edge): Removed field indirect_call. New fields
23878         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
23879         (cgraph_create_indirect_edge): Declare.
23880         (cgraph_make_edge_direct): Likewise.
23881         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
23882         * ipa-prop.h (struct ipa_param_call_note): Removed.
23883         (struct ipa_node_params): Removed field param_calls.
23884         (ipa_create_all_structures_for_iinln): Declare.
23885         * cgraph.c: Described indirect edges and uids in initial comment.
23886         (cgraph_add_edge_to_call_site_hash): New function.
23887         (cgraph_edge): Search also among the indirect edges, use
23888         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
23889         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
23890         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
23891         site hash.
23892         (initialize_inline_failed): Assign a reason to indirect edges.
23893         (cgraph_create_edge_1): New function.
23894         (cgraph_create_edge): Moved some functionality to
23895         cgraph_create_edge_1.
23896         (cgraph_create_indirect_edge): New function.
23897         (cgraph_edge_remove_callee): Add an assert checking for
23898         non-indirectness.
23899         (cgraph_edge_remove_caller): Special-case indirect edges.
23900         (cgraph_remove_edge): Likewise.
23901         (cgraph_set_edge_callee): New function.
23902         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
23903         (cgraph_make_edge_direct): New function.
23904         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
23905         the declaration of the call statement matches.
23906         (cgraph_node_remove_callees): Special-case indirect edges.
23907         (cgraph_clone_edge): Likewise.
23908         (cgraph_clone_node): Clone also the indirect edges.
23909         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
23910         indirect_call, dump count of indirect_calls edges.
23911         * ipa-prop.c (iinlining_processed_edges): New variable.
23912         (ipa_note_param_call): Create indirect edges instead of
23913         creating notes.  New parameter node.
23914         (ipa_analyze_call_uses): New parameter node, pass it on to
23915         ipa_note_param_call.
23916         (ipa_analyze_stmt_uses): Likewise.
23917         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
23918         (print_edge_addition_message): Work on edges rather than on notes.
23919         (update_call_notes_after_inlining): Likewise, renamed to
23920         update_indirect_edges_after_inlining.
23921         (ipa_create_all_structures_for_iinln): New function.
23922         (ipa_free_node_params_substructures): Do not free notes.
23923         (ipa_edge_duplication_hook): Propagate bits within
23924         iinlining_processed_edges bitmap.
23925         (ipa_node_duplication_hook): Do not duplicate notes.
23926         (free_all_ipa_structures_after_ipa_cp): Renamed to
23927         ipa_free_all_structures_after_ipa_cp.
23928         (free_all_ipa_structures_after_iinln): Renamed to
23929         ipa_free_all_structures_after_iinln.
23930         (ipa_write_param_call_note): Removed.
23931         (ipa_read_param_call_note): Removed.
23932         (ipa_write_indirect_edge_info): New function.
23933         (ipa_read_indirect_edge_info): Likewise.
23934         (ipa_write_node_info): Do not stream notes, do stream information
23935         in indirect edges.
23936         (ipa_read_node_info): Likewise.
23937         (lto_ipa_fixup_call_notes): Removed.
23938         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
23939         * ipa-inline.c (pass_ipa_inline): Likewise.
23940         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
23941         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
23942         * tree-inline.c (copy_bb): Removed an unnecessary double check for
23943         is_gimple_call.
23944         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
23945         edges.
23946         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
23947         (output_cgraph): Stream also indirect edges.
23948         (lto_output_edge): Added capability to stream indirect edges.
23949         (input_edge): Likewise.
23950         (input_cgraph_1): Likewise.
23951         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
23952         of indirect edges.
23953
23954 2010-04-28  Richard Guenther  <rguenther@suse.de>
23955
23956         PR tree-optimization/43879
23957         PR tree-optimization/43909
23958         * tree-ssa-structalias.c (struct variable_info): Add
23959         only_restrict_pointers flag.
23960         (new_var_info): Initialize it.  Increment stats.total_vars here.
23961         (create_function_info_for): Do not increment stats.total_vars here.
23962         (get_function_part_constraint): Fix build with C++.
23963         (insert_into_field_list): Remove.
23964         (push_fields_onto_fieldstack): Properly merge fields.
23965         (create_variable_info_for): Split and simplify.
23966         (create_variable_info_for_1): New piece.
23967         (intra_create_variable_infos): Properly make restrict constraints
23968         from parameters.
23969
23970 2010-04-28  Richard Guenther  <rguenther@suse.de>
23971
23972         PR c++/43880
23973         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
23974
23975 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23976             Jan Hubicka  <hubicka@ucw.cz>
23977
23978         * doc/invoke.texi (-Wsuggest-attribute=const,
23979         -Wsuggest-attribute=pure): Document.
23980         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
23981         (function_always_visible_to_compiler_p,
23982         suggest_attribute, warn_function_pure, warn_function_const):
23983         New functions.
23984         (check_call): Improve debug info.
23985         (analyze_function): Do not check availability.
23986         (add_new_function): Check availability.
23987         (propagate): Output warnings.
23988         (skip_function_for_local_pure_const): New function.
23989         (local_pure_const): Use it; output warnings.
23990         * common.opt (Wsuggest-attribute=const,
23991         Wsuggest-attribute=pure): New.
23992
23993 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
23994
23995         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
23996         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
23997         or DW_CFA_def_cfa_offset{,_sf}.
23998
23999 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24000
24001         * tree.h: Fix truncated long macros.
24002
24003 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
24004
24005         * collect2.c (TARGET_64BIT): Redefine to target's default.
24006         * tlink.c: Likewise.
24007         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
24008         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
24009         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
24010         for underscoring __USER_LABEL_PREFIX__.
24011         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
24012         (SUB_LINK_ENTRY32): New.
24013         (SUB_LINK_ENTRY64): New.
24014         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
24015         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
24016         (SUB_LINK_ENTRY64): New.
24017         (SUB_LINK_ENTRY): New.
24018         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
24019         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
24020         x64 target is choosen.
24021         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
24022         * configure: Regenerated.
24023         * configure.ac (leading-mingw64-underscores): Option added.
24024
24025 2010-04-27  Jan Hubicka  <jh@suse.cz>
24026
24027         * doc/invoke.texi (-fipa-profile): Document.
24028         * opts.c (decode_options): Enable ipa-profile at -O1.
24029         * timevar.def (TV_IPA_PROFILE): Define.
24030         * common.opt (fipa-profile): Add.
24031         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
24032         flag for clones.
24033         (cgraph_propagate_frequency): Handle only local ones.
24034         * tree-pass.h (pass_ipa_profile): Declare.
24035         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
24036         (pass_ipa_profile): Use TV_IPA_PROFILE.
24037         * ipa.c (ipa_profile): New function.
24038         (gate_ipa_profile): Likewise.
24039         (pass_ipa_profile): New global variable.
24040         * passes.c (pass_ipa_profile): New.
24041
24042 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
24043
24044         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
24045
24046 2010-04-27  Martin Jambor  <mjambor@suse.cz>
24047
24048         PR middle-end/43812
24049         * ipa.c (dissolve_same_comdat_group_list): New function.
24050         (function_and_variable_visibility): Call
24051         dissolve_same_comdat_group_list when comdat group contains external or
24052         newly local nodes.
24053         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
24054         lists are circular and that they contain only DECL_ONE_ONLY nodes.
24055
24056 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
24057
24058         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
24059         (const_hash_1) <VECTOR_CST>: New case.
24060         (compare_constant) <VECTOR_CST>: Likewise.
24061         <ADDR_EXPR>: Deal with LABEL_REFs.
24062         (copy_constant) <VECTOR_CST>: New case.
24063
24064 2010-04-27  Jan Hubicka  <jh@suse.cz>
24065
24066         * cgraph.c (cgraph_propagate_frequency): New function.
24067         * cgraph.h (cgraph_propagate_frequency): Declare.
24068         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
24069         cgraph_propagate_frequency.
24070
24071 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
24072
24073         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
24074
24075 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
24076
24077         PR target/40657
24078         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
24079         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
24080         here to determine which regs to push and how much stack to reserve.
24081
24082 2010-04-27  Jie Zhang  <jie@codesourcery.com>
24083
24084         * doc/gimple.texi (gimple_statement_with_ops): Remove
24085         addresses_taken field.
24086         (gimple_statement_with_memory_ops): Likewise.
24087
24088 2010-04-27  Jan Hubicka  <jh@suse.cz>
24089
24090         * tree-inline.c (eni_inlining_weights): Remove.
24091         (estimate_num_insns): Special case more builtins.
24092
24093 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
24094
24095         PR c/32207
24096         * c-typeck.c (build_binary_op): Move forward check for comparison
24097         pointer with null pointer constant and adjust the diagnostic message.
24098
24099 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
24100
24101         PR lto/42776
24102         * configure.ac (gcc_cv_as_section_has_align): Set if installed
24103         binutils supports extended .section directive needed by LTO, or
24104         warn if older binutils found.
24105         (LTO_BINARY_READER): New AC_SUBST'd variable.
24106         (LTO_USE_LIBELF): Likewise.
24107         * config.gcc (lto_binary_reader): New target-specific configure
24108         variable.
24109         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
24110         (LTO_USE_LIBELF): Likewise.
24111         * configure: Regenerate.
24112
24113         * collect2.c (is_elf): Rename from this ...
24114         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
24115          object files in addition to ELF-formatted ones.
24116         (scan_prog_file): Caller updated.  Also allow for LTO info marker
24117         symbol to be prefixed or not by an extra underscore.
24118
24119         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
24120         * config/i386/winnt.c: Also #include lto-streamer.h
24121         (i386_pe_asm_named_section): Specify 1-byte section alignment for
24122         LTO named sections.
24123         (i386_pe_asm_output_aligned_decl_common): Add comment.
24124         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
24125
24126 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
24127
24128         PR target/43889
24129         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
24130         Add missing earlyclobber for second alternative.
24131
24132 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
24133
24134         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
24135         bits for artificial defs at the top of the block.
24136         * fwprop.c (single_def_use_enter_block): Don't call it.
24137
24138 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
24139
24140         PR 43715
24141         * configure.ac: Use "$gcc_cv_nm -g" on darwin
24142         instead of "$gcc_cv_objdump -T".
24143         Use "-undefined dynamic_lookup" on darwin.
24144         * configure: Regenerate.
24145
24146 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
24147
24148         PR c/43893
24149         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
24150
24151 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
24152
24153         * c-parser.c (struct c_token): Move location field up.
24154         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
24155         (struct c_declspecs): Convert typespec_word, storage_class, and
24156         default_int_p into bitfields.
24157         (struct c_declarator): Move loc field up.
24158
24159 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
24160
24161         * cfgloop.h (struct loop): Move can_be_parallel field up.
24162         * ipa-prop.h (struct ip_node_params): Move bitfields up.
24163         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
24164         down.
24165         (struct iv_cand): Convert pos field into a bitfield.
24166         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
24167         field up.
24168         (struct _stmt_vec_info): Shuffle fields for better packing.
24169
24170 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
24171
24172         * varasm.c (IN_NAMED_SECTION): Remove guard.
24173         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
24174         (IN_NAMED_SECTION_P): ...this.
24175         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
24176         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
24177
24178 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
24179
24180         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
24181         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
24182         of shadowing it.  Fix comments.
24183
24184 2010-04-26  Jan Hubicka  <jh@suse.cz>
24185
24186         * cgraph.c (cgraph_create_node): Set node frequency to normal.
24187         (cgraph_clone_node): Copy function frequency.
24188         * cgraph.h (node_frequency): New enum
24189         (struct cgraph_node): Add.
24190         * final.c (rest_of_clean_state): Update.
24191         * lto-cgraph.c (lto_output_node): Output node frequency.
24192         (input_overwrite_node): Input node frequency.
24193         * tre-ssa-loop-ivopts (computation_cost): Update.
24194         * lto-streamer-out.c (output_function): Do not output function
24195         frequency.
24196         * predict.c (maybe_hot_frequency_p): Update and handle functions
24197         executed once.
24198         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
24199         attribute lookup.
24200         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
24201         (compute_function_frequency): Set noreturn functions to be executed
24202         once.
24203         (choose_function_section): Update.
24204         * lto-streamer-in.c (input_function): Do not input function frequency.
24205         * function.c (allocate_struct_function): Do not initialize function
24206         frequency.
24207         * function.h (function_frequency): Remove.
24208         (struct function): Remove function frequency.
24209         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
24210         (try_update): Update.
24211         * tree-inline.c (initialize_cfun): Do not update function frequency.
24212         * passes.c (pass_init_dump_file): Update.
24213         * i386.c (ix86_compute_frame_layout): Update.
24214         (ix86_pad_returns): Update.
24215
24216 2010-04-26  Jie Zhang  <jie@codesourcery.com>
24217
24218         PR tree-optimization/43833
24219         * tree-vrp.c (range_int_cst_p): New.
24220         (range_int_cst_singleton_p): New.
24221         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
24222         when both operands are constants.  Use range_int_cst_p in
24223         BIT_IOR_EXPR case.
24224
24225 2010-04-26  Jan Hubicka  <jh@suse.cz>
24226
24227         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
24228
24229 2010-04-26  Richard Guenther  <rguenther@suse.de>
24230
24231         PR lto/43080
24232         * gimple.c (gimple_decl_printable_name): Deal gracefully
24233         with a NULL DECL_NAME.
24234
24235 2010-04-26  Richard Guenther  <rguenther@suse.de>
24236
24237         PR lto/42425
24238         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
24239         if emitting debug information and it is either a function
24240         or a namespace decl.
24241
24242 2010-04-26  Ira Rosen  <irar@il.ibm.com>
24243
24244         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
24245         determine if the statement is vectorizable, and a macro to access it.
24246         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24247         Skip statements that can't be vectorized. If the analysis fails,
24248         mark the statement as unvectorizable if vectorizing basic block.
24249         (vect_compute_data_refs_alignment): Likewise.
24250         (vect_verify_datarefs_alignment): Skip statements marked as
24251         unvectorizable. Add print.
24252         (vect_analyze_group_access): Skip statements that can't be
24253         vectorized. If the analysis fails, mark the statement as
24254         unvectorizable if vectorizing basic block.
24255         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
24256         * tree-vect-stmts.c (vectorizable_store): Fix the number of
24257         generated stmts for SLP.
24258         (new_stmt_vec_info): Initialize the new field.
24259         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
24260         statements marked as unvectorizable.
24261
24262 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
24263
24264         * c-common.c (flag_isoc1x): New.
24265         (flag_isoc99): Update comment.
24266         * c-common.h (flag_isoc1x): New.
24267         (flag_isoc99): Update comment.
24268         * c-cppbuiltin.c (builtin_define_float_constants): Also define
24269         __<type>_DECIMAL_DIG__.
24270         * c-opts.c (set_std_c1x): New.
24271         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
24272         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
24273         * c.opt (-std=c1x, -std=gnu1x): New options.
24274         * doc/cpp.texi: Mention -std=c1x.
24275         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
24276         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
24277         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
24278         * doc/standards.texi: Mention C1X.
24279         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
24280         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
24281         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
24282         Define for C1X.
24283
24284 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
24285
24286         * config/i386/gmon-sol2.c (_mcleanup): Change format string
24287         placeholder from 0x%x to %#x.
24288         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
24289         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
24290         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
24291         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
24292         * config/i386/i386.c (ix86_target_string): Ditto.
24293         (output_pic_addr_const): Ditto.
24294         (print_operand): Ditto.
24295
24296 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
24297
24298         * combine.c (find_split_point): Add third argument.  Use it
24299         to find nested multiply-accumulate instructions.  Adjust calls.
24300         (try_combine): Adjust call to find_split_point.
24301
24302 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
24303
24304         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
24305
24306 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
24307
24308         PR tree-optimization/41442
24309         * fold-const.c (merge_truthop_with_opposite_arm): New function.
24310         (fold_binary_loc): Call it.
24311
24312 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24313
24314         * toplev.c (general_init): Set default for fdiagnostics-show-option.
24315         * opts.c (common_handle_option): Allow disabling it.
24316         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
24317
24318 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
24319
24320         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
24321         between modes if both types are integral.
24322
24323 2010-04-23  Richard Guenther  <rguenther@suse.de>
24324
24325         PR tree-optimization/43572
24326         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
24327
24328 2010-04-23  Richard Guenther  <rguenther@suse.de>
24329
24330         PR lto/43455
24331         * tree-inline.c (tree_can_inline_p): Also check compatibility
24332         of return types.
24333
24334 2010-04-23  Martin Jambor  <mjambor@suse.cz>
24335
24336         PR tree-optimization/43846
24337         * tree-sra.c (struct access): New flag grp_assignment_read.
24338         (build_accesses_from_assign): Set grp_assignment_read.
24339         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
24340         (enum mark_read_status): New type.
24341         (analyze_access_subtree): Propagate grp_assignment_read, create
24342         accesses also if both direct_read and root->grp_assignment_read.
24343
24344 2010-04-23  Martin Jambor  <mjambor@suse.cz>
24345
24346         PR middle-end/43835
24347         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
24348         function does not have type attributes.
24349
24350 2010-04-23  Richard Guenther  <rguenther@suse.de>
24351
24352         PR lto/42653
24353         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
24354         of FUNCTION_DECLs.
24355
24356 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24357
24358         * sese.h (create_if_region_on_edge): Remove.
24359
24360         * sese.c (create_if_region_on_edge): Make static.
24361
24362         * tree-inline.c: Do not include ggc.h.
24363
24364         * expr.c: Do not include ggc.h.
24365
24366         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
24367         dependencies.
24368
24369 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
24370
24371         PR target/43744
24372         * config/sh/sh.c (find_barrier): Don't emit a constant pool
24373         in the middle of insns for casesi_worker_2.
24374
24375 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
24376
24377         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
24378
24379 2010-04-22  Ira Rosen  <irar@il.ibm.com>
24380
24381         PR tree-optimization/43842
24382         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
24383         loop unrolling in update of exit phis. Fix comment.
24384         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
24385         least two reduction statements in the loop before starting SLP
24386         analysis.
24387
24388 2010-04-22  Nick Clifton  <nickc@redhat.com>
24389
24390         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
24391
24392 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
24393
24394         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
24395         to simplify a + ~a.
24396
24397 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24398
24399         * tree-parloops.c (loop_parallel_p): New argument
24400         parloop_obstack.  Pass it down.
24401         (parallelize_loops): New variable parloop_obstack.  Initialize it,
24402         pass it down, free it.
24403
24404         * tree-loop-linear.c (linear_transform_loops): Pass down
24405         lambda_obstack.
24406
24407         * tree-data-ref.h (lambda_compute_access_matrices): New argument
24408         of type struct obstack *.
24409
24410         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
24411         scratch_obstack.  Initialize it, pass down, free it.
24412
24413         * lambda.h (lambda_loop_new): Remove.
24414         (lambda_matrix_new, lambda_matrix_inverse)
24415         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
24416         argument of type struct obstack *.
24417
24418         * lambda-trans.c (lambda_trans_matrix_new): New argument
24419         lambda_obstack.  Pass it down, use obstack allocation for ret.
24420         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
24421         it down.
24422
24423         * lambda-mat.c (lambda_matrix_get_column)
24424         (lambda_matrix_project_to_null): Remove.
24425         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
24426         allocation for mat.
24427         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
24428         lambda_obstack.
24429
24430         * lambda-code.c (lambda_loop_new): New function.
24431         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
24432         (lambda_compute_auxillary_space, lambda_compute_target_space)
24433         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
24434         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
24435         (build_access_matrix): New argument lambda_obstack.  Use obstack
24436         allocation for am.
24437         (lambda_compute_step_signs, lambda_compute_access_matrices): New
24438         argument lambda_obstack.  Pass it down.
24439
24440 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
24441
24442         * optabs.h (expand_widening_mult): Declare.
24443
24444 2010-04-22  Richard Guenther  <rguenther@suse.de>
24445
24446         PR tree-optimization/43845
24447         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
24448         lookup the CALL_EXPR function and arguments.
24449
24450 2010-04-22  Nick Clifton  <nickc@redhat.com>
24451
24452         * config/stormy16/stormy16.c
24453         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
24454         * config/stormy16/stormy16.h: Tidy up formatting.
24455         (DONT_USE_BUILTIN_SETJMP): Remove definition.
24456         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
24457         (ineqbranchsi): Delete pattern.
24458         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
24459         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
24460         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
24461         stormy16-lib2-ucmpsi2.c.
24462
24463 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
24464
24465         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
24466         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
24467         extra set merge_set_noclobber, and use it to relax the final test
24468         slightly.
24469         * df.h (df_simulate_find_noclobber_defs): Declare.
24470         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
24471         conditional defs.
24472         (df_simulate_find_noclobber_defs): New function.
24473
24474 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
24475
24476         * config/i386/i386.md: Use {} around multi-line preparation statements.
24477
24478 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24479
24480         * c-tree.h (push_init_level, pop_init_level, set_init_index)
24481         (process_init_element): New argument of type struct obstack *.
24482
24483         * c-typeck.c (push_init_level, pop_init_level, set_designator)
24484         (set_init_index, set_init_label, set_nonincremental_init)
24485         (set_nonincremental_init_from_string, find_init_member)
24486         (output_init_element, output_pending_init_elements)
24487         (process_init_element): New argument braced_init_obstack.  Pass it
24488         down.
24489         (push_range_stack, add_pending_init): New argument
24490         braced_init_obstack.  Use obstack allocation.
24491
24492         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
24493         braced_init_obstack.  Pass it down.
24494         (c_parser_braced_init): New variables ret, braced_init_obstack.
24495         Initialize obstack, pass it down and finally free it.
24496
24497 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
24498
24499         PR middle-end/29274
24500         * tree-pass.h (pass_optimize_widening_mul): Declare.
24501         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
24502         gate_optimize_widening_mul): New static functions.
24503         (pass_optimize_widening_mul): New.
24504         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
24505         <case MULT_EXPR>: Remove support for widening multiplies.
24506         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
24507         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
24508         simplify_gen_unary rather than directly building extensions.
24509         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
24510         WIDEN_MULT_EXPR.
24511         * expmed.c (expand_widening_mult): New function.
24512         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
24513
24514 2010-04-21  Jan Hubicka  <jh@suse.cz>
24515
24516         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
24517         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
24518         * lto-wpa-fixup.c: Remove.
24519         * Makefile.in (lto-wpa-fixup.o): Remove.
24520         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
24521         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
24522         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
24523
24524 2010-04-21  Jan Hubicka  <jh@suse.cz>
24525
24526         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
24527         add write_optimization_summary, read_optimization_summary.
24528         (ipa_write_summaries_of_cgraph_node_set): Remove.
24529         (ipa_write_optimization_summaries): Declare.
24530         (ipa_read_optimization_summaries): Declare.
24531         * ipa-cp.c (pass_ipa_cp): Update.
24532         * ipa-reference.c (pass_ipa_reference): Update.
24533         * ipa-pure-const.c (pass_ipa_pure_const): Update.
24534         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
24535         Update.
24536         * ipa-inline.c (pass_ipa_inline): Update.
24537         * ipa.c (pass_ipa_whole_program): Update.
24538         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
24539         * passes.c (ipa_write_summaries_1): Do not test wpa.
24540         (ipa_write_optimization_summaries_1): New.
24541         (ipa_write_optimization_summaries): New.
24542         (ipa_read_summaries): Do not test ltrans.
24543         (ipa_read_optimization_summaries_1): New.
24544         (ipa_read_optimization_summaries): New.
24545
24546 2010-04-21  Jan Hubicka  <jh@suse.cz>
24547
24548         * lto-cgraph.c (lto_output_node): Do not output comdat groups
24549         for boundary nodes.
24550         (output_cgraph): Do not arrange comdat groups for boundary nodes.
24551
24552 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
24553
24554         PR debug/40040
24555         * dwarf2out.c (add_name_and_src_coords_attributes): Add
24556         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
24557
24558 2010-04-21  Jan Hubicka  <jh@suse.cz>
24559
24560         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
24561
24562 2010-04-21  Jan Hubicka  <jh@suse.cz>
24563
24564         * varpool.c (decide_is_variable_needed): Variable is always needed
24565         during ltrans.
24566
24567 2010-04-21  Jan Hubicka  <jh@suse.cz>
24568
24569         * opts.c (decode_options): Enable pure-const pass for whopr.
24570
24571 2010-04-21  Jan Hubicka  <jh@suse.cz>
24572
24573         * cgraph.c (dump_cgraph_node): Dump also assembler name.
24574         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
24575         at WPA dumping.
24576         (cgraph_decide_inlining): Do not expect callee to be removed in all
24577         cases.
24578
24579 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
24580
24581         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
24582
24583 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
24584
24585         * config/i386/i386.md (x86_shrd): Add athlon_decode and
24586         amdfam10_decode attributes.
24587
24588 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
24589
24590         PR middle-end/43570
24591         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
24592         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
24593         (lower_copyprivate_clauses): Use private var in outer
24594         context instead of original var.  Make sure the types
24595         are correct for VLAs.
24596
24597 2010-04-21  Richard Guenther  <rguenther@suse.de>
24598
24599         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
24600         to non-pointer objects.
24601
24602 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
24603
24604         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
24605         last chain entry if it starts with the still current label.
24606         (add_location_or_const_value_attribute): Check that
24607         loc_list->first->next is NULL instead of comparing ->first with ->last.
24608         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
24609         to add_var_loc_to_decl.
24610
24611         * dwarf2out.c (output_call_frame_info): For dw_cie_version
24612         >= 4 add also address size and segment size fields into CIE header.
24613
24614         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
24615         long as address size is the same as sizeof (void *) and
24616         segment size is 0.
24617         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
24618         address size or segment size is unexpected, return DW_EH_PE_omit.
24619         (classify_object_over_fdes): If get_cie_encoding returned
24620         DW_EH_PE_omit, return -1.
24621         (init_object): If classify_object_over_fdes returned -1,
24622         pretend there were no FDEs at all.
24623
24624 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
24625
24626         * config/i386/i386.md (bswap<mode>2): Macroize expander from
24627         bswap{si,di}2 using SWI48 mode iterator.
24628         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
24629         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
24630         set modrm attribute of bswap insn to 0 and remove length attribute.
24631         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
24632         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
24633         set mode attribute to <MODE> and remove length attribute.
24634
24635 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
24636
24637         PR rtl-optimization/43520
24638         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
24639         zero available registers.
24640
24641 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24642
24643         * builtins.c (fold_builtin_cproj): Fold more cases.
24644
24645 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24646
24647         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
24648         (fold_builtin_1): Fold builtin cproj.
24649         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
24650         Use ATTR_CONST_NOTHROW_LIST.
24651
24652 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
24653
24654         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
24655         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
24656         ffsi2_no_cmove for !TARGET_CMOVE.
24657         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
24658         (ffssi2): Remove expander.
24659         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
24660         mode iterator.
24661         (ctz<mode>2): Ditto from ctz{si,di}2.
24662         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
24663         mode iterator.
24664         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
24665         mode iterator.
24666
24667 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
24668
24669         * dwarf2out.c (AT_linkage_name): Define.
24670         (clone_as_declaration): Handle DW_AT_linkage_name.
24671         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
24672         of DW_AT_MIPS_linkage_name.
24673         (move_linkage_attr): Likewise.
24674         (dwarf2out_finish): Likewise.
24675
24676 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
24677
24678         PR middle-end/41952
24679         * fold-const.c (fold_comparison): New folding rule.
24680
24681 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
24682
24683         * double-int.h (double_int_setbit): Declare.
24684         * double-int.c (double_int_setbit): New function.
24685         * rtl.h (immed_double_int_const): Declare.
24686         * emit-rtl.c (immed_double_int_const): New function.
24687         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
24688         and immed_double_int_const functions.
24689         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
24690         expand_copysign_bit): (Ditto.).
24691         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
24692         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
24693         * dojump.c (prefer_and_bit_test): (Ditto.).
24694         * expr.c (convert_modes, reduce_to_bit_field_precision,
24695         const_vector_from_tree): (Ditto.).
24696         * expmed.c (mask_rtx, lshift_value): (Ditto.).
24697
24698 2010-04-20  Jan Hubicka  <jh@suse.cz>
24699
24700         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
24701         (dump_cgraph_node): Dump new flags.
24702         * cgraph.h (struct cgraph_node): Add flags
24703         reachable_from_other_partition and in_other_partition.
24704         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
24705         other partition can not be removed.
24706         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
24707         the other partition must be output; silence sanity checking on
24708         leaking functions bodies from other paritition.
24709         * lto-cgraph.c (reachable_from_other_partition_p): New function.
24710         (lto_output_node): Output new flags; do not sanity check that inline
24711         clones are output; drop lto_forced_extern_inline_p code; do not mock
24712         visibility flags at partition boundaries.
24713         (add_node_to): New function.
24714         (output_cgraph): Use it to sort functions so masters appear before
24715         clones.
24716         (input_overwrite_node): Input new flags.
24717         * passes.c (ipa_write_summaries): Do not call
24718         lto_new_extern_inline_states.
24719         * lto-section-out.c (forced_extern_inline,
24720         lto_new_extern_inline_states lto_delete_extern_inline_states,
24721         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
24722         * lto-streamer.h (lto_new_extern_inline_states,
24723         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
24724         lto_forced_extern_inline_p): Kill.
24725
24726 2010-04-20  Richard Guenther  <rguenther@suse.de>
24727
24728         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
24729         from vars that can have pointers.
24730         (process_constraint): Dump useless constraints.
24731
24732 2010-04-20  Richard Guenther  <rguenther@suse.de>
24733
24734         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
24735         (dump_sa_points_to_info): Remove asserts.
24736         (init_base_vars): nothing_id isn't an escape point nor does it
24737         have pointers.
24738
24739 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
24740
24741         * tree.h (TYPE_REF_IS_RVALUE): Define.
24742         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
24743         should_move_die_to_comdat, prune_unused_types_walk): Handle
24744         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
24745         (modified_type_die, gen_reference_type_die): Emit
24746         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
24747         if TYPE_REF_IS_RVALUE and -gdwarf-4.
24748
24749 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24750
24751         PR target/43635
24752         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
24753         calls for -fpic -m31 if they have been sibcall optimized.
24754
24755 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
24756
24757         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
24758         ar.lc fixed and call-used.
24759
24760         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
24761
24762 2010-04-19  Jan Hubicka  <jh@suse.cz>
24763
24764         * opts.c (decode_options): Disable whpr incompatible passes.
24765         * lto/lto.c (lto_1_to_1_map): Skip clones.
24766         (read_cgraph_and_symbols): Do not mark everything as needed.
24767         (do_whole_program_analysis): Do map only after optimizing;
24768         set proper cgraph_state; use passmanager.
24769
24770 2010-04-19  DJ Delorie  <dj@redhat.com>
24771
24772         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
24773         POINTER_PLUS_EXPR and fix them.
24774
24775 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
24776
24777         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
24778         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
24779         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
24780         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
24781         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
24782         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
24783         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
24784         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
24785         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
24786         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
24787         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
24788
24789 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24790
24791         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
24792         (check_cond_move_block): Likewise.
24793         (cond_move_process_if_block): Likewise.
24794         (noce_find_if_block): Improve formatting.
24795         (find_if_header): Pass 0 to memset and tweak conditions.
24796         (cond_exec_find_if_block): Fix long lines and tweak conditions.
24797
24798 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
24799
24800         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
24801         for -gdwarf-4.
24802
24803         PR middle-end/43337
24804         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
24805         with non-local decl doesn't need chain.
24806
24807 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
24808
24809         * ira-color.c (allocno_reload_assign): Avoid accumulating
24810         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
24811
24812 2010-04-19  Martin Jambor  <mjambor@suse.cz>
24813
24814         * gimple.h (create_tmp_reg): Declare.
24815         * gimplify.c (create_tmp_reg): New function.
24816         (gimplify_return_expr): Use create_tmp_reg.
24817         (gimplify_omp_atomic): Likewise.
24818         (gimple_regimplify_operands): Likewise.
24819         * tree-dfa.c (make_rename_temp): Likewise.
24820         * tree-predcom.c (predcom_tmp_var): Likewise.
24821         (reassociate_to_the_same_stmt): Likewise.
24822         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
24823         (get_replaced_param_substitute): Likewise.
24824         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
24825         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
24826         * tree-ssa-pre.c (get_representative_for): Likewise.
24827         (create_expression_by_pieces): Likewise.
24828         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
24829         (create_tailcall_accumulator): Likewise.
24830
24831 2010-04-19  Martin Jambor  <mjambor@suse.cz>
24832
24833         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
24834         new_stmt.
24835         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
24836
24837 2010-04-19  Richard Guenther  <rguenther@suse.de>
24838
24839         PR tree-optimization/43796
24840         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
24841         from SCEV in the lattice.
24842         (vrp_visit_phi_node): Dump change.
24843
24844 2010-04-19  Richard Guenther  <rguenther@suse.de>
24845
24846         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
24847         * configure: Re-generated.
24848
24849 2010-04-19  Richard Guenther  <rguenther@suse.de>
24850
24851         PR tree-optimization/43783
24852         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
24853         constant ARRAY_REF operands two and three if possible.
24854
24855 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
24856
24857         PR target/43766
24858         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
24859
24860 2010-04-19  Jie Zhang  <jie@codesourcery.com>
24861
24862         PR target/43662
24863         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
24864
24865 2010-04-19  Ira Rosen  <irar@il.ibm.com>
24866
24867         PR tree-optimization/37027
24868         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
24869         and macro to access it.
24870         (vectorizable_reduction): Add argument.
24871         (vect_get_slp_defs): Likewise.
24872         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
24873         statements for possible use in SLP.
24874         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
24875         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
24876         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
24877         add new argument.
24878         (vectorizable_reduction): Likewise.
24879         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
24880         vect_get_slp_defs.
24881         (vectorizable_type_demotion, vectorizable_type_promotion,
24882         vectorizable_store): Likewise.
24883         (vect_analyze_stmt): Update call to vectorizable_reduction.
24884         (vect_transform_stmt): Likewise.
24885         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
24886         (vect_build_slp_tree): Fix indentation. Check that there are no loads
24887         from different interleaving chains in same node.
24888         (vect_slp_rearrange_stmts): New function.
24889         (vect_supported_load_permutation_p): Allow load permutations for
24890         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
24891         inside SLP nodes if necessary.
24892         (vect_analyze_slp_instance): Handle reductions.
24893         (vect_analyze_slp): Try to build SLP instances originating from groups
24894         of reductions.
24895         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
24896         (vect_get_constant_vectors): Create initial vectors for reductions
24897         according to reduction code. Add new argument.
24898         (vect_get_slp_defs): Add new argument, pass it to
24899         vect_get_constant_vectors.
24900         (vect_schedule_slp_instance): Remove SLP tree root statements.
24901
24902 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
24903
24904         * tree.h (ENUM_IS_SCOPED): Define.
24905         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
24906         for ENUM_IS_SCOPED enums.
24907
24908 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
24909
24910         * fold-const.c (fold_comparison): Use ssizetype.
24911         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
24912         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
24913         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
24914         * tree-object-size.c (compute_object_sizes): Use size_type_node.
24915
24916         * tree.h (initialize_sizetypes): Remove parameter.
24917         (build_common_tree_nodes): Remove second parameter.
24918         * stor-layout.c (initialize_sizetypes): Remove parameter.
24919         Always create an unsigned type.
24920         (set_sizetype): Assert that the passed type is unsigned and simplify.
24921         * tree.c (build_common_tree_nodes): Remove second parameter.
24922         Adjust call to initialize_sizetypes.
24923         * c-decl.c (c_init_decl_processing): Remove second argument in call to
24924         build_common_tree_nodes.
24925
24926 2010-04-18  Matthias Klose  <doko@ubuntu.com>
24927
24928         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
24929
24930 2010-04-18  Ira Rosen  <irar@il.ibm.com>
24931
24932         PR tree-optimization/43771
24933         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
24934         load permutation doesn't have gaps.
24935
24936 2010-04-18  Jan Hubicka  <jh@suse.cz>
24937
24938         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
24939         (sse_prologue_save_insn expander): Use new pattern.
24940         (sse_prologue_save_insn1): New pattern and splitter.
24941         (sse_prologue_save_insn): Update to deal also with 64bit aligned
24942         blocks.
24943         * i386.c (setup_incoming_varargs_64): Do not compute jump
24944         destination here.
24945         (ix86_gimplify_va_arg): Update alignment needed.
24946         (ix86_local_alignment): Do not align all local arrays to 128bit.
24947
24948 2010-04-17  Jan Hubicka  <jh@suse.cz>
24949
24950         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
24951
24952 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
24953
24954         * arm.md (negdi2): Remove redundant code to force values into a
24955         register.
24956
24957 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
24958
24959         * arm/bpabi.S: Add EABI alignment attributes to objects.
24960         * arm/bpabi-v6m.S: Likewise.
24961         * arm/crti.asm: Likewise.
24962         * arm/crtn.asm: Likewise.
24963         * arm/lib1funcs.asm: Likewise.
24964         * arm/libunwind.S: Likewise.
24965
24966 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
24967
24968         * arm-protos.h (tune_params): New structure.
24969         * arm.c (current_tune): New variable.
24970         (arm_constant_limit): Delete.
24971         (struct processors): Add pointer to the tune parameters.
24972         (arm_slowmul_tune): New tuning option.
24973         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
24974         (all_cores): Adjust to pick up the tuning model.
24975         (arm_constant_limit): New function.
24976         (arm_override_options): Select the appropriate tuning model.  Delete
24977         initialization of arm_const_limit.
24978         (arm_split_constant): Use the new constant-limit model.
24979         (arm_rtx_costs): Pick up the current tuning model.
24980         * arm.md (is_strongarm, is_xscale): Delete.
24981         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
24982         for Xscale variant architectures.
24983         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
24984
24985 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24986
24987         * config/arm/arm.c (arm_gen_constant): Remove unused variable
24988         can_shift.
24989         (arm_rtx_costs_1): Remove unused variable extra_cost.
24990         (arm_unwind_emit_set): Use variable offset.
24991         (thumb1_output_casesi): Remove unused variable flags.
24992
24993 2010-04-16  Jeff Law  <law@redhat.com>
24994
24995         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
24996         needing assignment rather than doing a two-phase assignment.  Remove
24997         unused variable 'm'.
24998
24999 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
25000
25001         PR bootstrap/43767
25002         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
25003
25004 2010-04-16  Doug Kwan  <dougkwan@google.com>
25005
25006         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
25007         (next_operand_entry_id): New static variable.
25008         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
25009         (add_to_ops_vec): Assigned unique ID to operand entry.
25010         (struct oecount_s): New field ID.
25011         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
25012         (undistribute_ops_list): Assign unique IDs to oecounts.
25013         (init_reassoc): reset next_operand_entry_id.
25014
25015 2010-04-16  Doug Kwan  <dougkwan@google.com>
25016
25017         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
25018         missing left parenthesis.
25019
25020 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
25021
25022         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
25023         *btdi_rex64 using SWI48 mode iterator.
25024         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
25025         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
25026         *jcc_btdi_mask_rex64.
25027
25028 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
25029
25030         * double-int.h (tree_to_double_int): Convert to macro.
25031         * double-int.c (tree_to_double_int): Remove.
25032
25033 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
25034
25035         PR debug/43762
25036         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
25037         with want_address 2 and in case a single element list might be
25038         possible, call it again with want_address 0.
25039
25040 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25041
25042         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
25043         case 'W' print operands for HI mode.
25044         * config/h8300/h8300.h (Y0, Y2) : New constraints.
25045         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
25046         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
25047         * config/h8300/predicate.md (bit_register_indirect_operand): New.
25048
25049         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
25050
25051         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
25052         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
25053         #xx:3 and #xx:4 mode.
25054
25055         * config/h8300/h8300.md (inverted load with HImode dest): Add
25056         support for H8300SX.
25057
25058         * config/h8300/predicate.md (bit_operand): Allow immediate values that
25059         satisfy 'U' constraint.
25060
25061 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25062
25063         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
25064         * configure: Regenerate.
25065         * config.in: Regenerate.
25066         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
25067         works.
25068
25069 2010-04-16  Richard Guenther  <rguenther@suse.de>
25070
25071         * tree.h (struct tree_decl_minimal): Move pt_uid ...
25072         (struct tree_decl_common): ... here.
25073         (DECL_PT_UID): Adjust.
25074         (SET_DECL_PT_UID): Likewise.
25075         (DECL_PT_UID_SET_P): Likewise.
25076
25077 2010-04-16  Richard Guenther  <rguenther@suse.de>
25078
25079         PR tree-optimization/43572
25080         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
25081         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
25082         * tree-flow.h (is_call_clobbered): Remove.
25083         * tree-flow-inline.h (is_call_clobbered): Likewise.
25084         * tree-dfa.c (dump_variable): Do not dump call clobber state.
25085         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
25086         (execute_return_slot_opt): Adjust.
25087         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
25088         check for call clobbered vars here.
25089         (find_tail_calls): Move tailcall verification to the
25090         proper place.
25091
25092 2010-04-16  Diego Novillo  <dnovillo@google.com>
25093
25094         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
25095
25096 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
25097
25098         PR target/40603
25099         * config/arm/arm.md (cbranchqi4): New pattern.
25100         * config/arm/predicates.md (const0_operand,
25101         cbranchqi4_comparison_operator): New predicates.
25102
25103 2010-04-16  Richard Guenther  <rguenther@suse.de>
25104
25105         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
25106         (dump_gimple_stmt): Likewise.
25107
25108 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
25109
25110         * recog.h (struct recog_data): New field is_operator.
25111         (struct insn_operand_data): New field is_operator.
25112         * recog.c (extract_insn): Set recog_data.is_operator.
25113         * genoutput.c (output_operand_data): Emit code to set the
25114         is_operator field.
25115         * reload.c (find_reloads): Use it rather than testing for an
25116         empty constraint string.
25117
25118         PR target/41514
25119         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
25120         If the previous insn is a cbranchsi4_insn with the same arguments,
25121         omit the compare instruction.
25122
25123         * config/arm/arm.md (addsi3_cbranch): If destination is a high
25124         register, inputs must be low registers and we need a low register
25125         scratch.  Handle alternative 2 like alternative 3.
25126
25127 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
25128
25129         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
25130         don't call get_addr on both.  If one expression is a VALUE and
25131         the other a REG, check VALUE's locs if the REG isn't among them.
25132
25133 2010-04-16  Christian Bruel  <christian.bruel@st.com>
25134
25135         * config/sh/sh.h (sh_frame_pointer_required): New function.
25136         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
25137         (flag_omit_frame_pointer) Set.
25138         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
25139         (rounded_frame_size): Adjust size with outgoing_args_size.
25140         (sh_set_return_address): Must return from stack pointer.
25141         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
25142         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
25143         (ACCUMULATE_OUTGOING_ARGS): Define.
25144         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
25145         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
25146
25147 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
25148
25149         PR target/43471
25150         * config/sh/sh.c (sh_legitimize_reload_address): Use
25151         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
25152         Remove a unneeded check for offset_base.
25153
25154 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
25155
25156         * configure: Regenerated.
25157
25158 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25159
25160         * config/s390/s390.c (s390_call_save_register_used): Switch back
25161         to HARD_REGNO_NREGS.
25162
25163 2010-04-15  Richard Guenther  <rguenther@suse.de>
25164
25165         * alias.c (alias_set_subset_of): Handle alias-set zero
25166         child properly.
25167
25168 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
25169             Julian Brown  <julian@codesourcery.com>
25170
25171         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
25172         alternatives according to use of high and low regs.
25173         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
25174         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
25175         optimizing for size on Thumb-2.
25176
25177 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
25178
25179         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
25180
25181 2010-04-15  Richard Guenther  <rguenther@suse.de>
25182
25183         * tree-ssa-structalias.c (struct variable_info): Add
25184         is_fn_info flag.
25185         (new_var_info): Initialize it.
25186         (dump_constraints): Support printing last added constraints.
25187         (debug_constraints): Adjust.
25188         (dump_constraint_graph): Likewise.
25189         (make_heapvar_for): Check for NULL cfun.
25190         (get_function_part_constraint): New function.
25191         (get_fi_for_callee): Likewise.
25192         (find_func_aliases): Properly implement IPA PTA constraints.
25193         (process_ipa_clobber): New function.
25194         (find_func_clobbers): Likewise.
25195         (insert_into_field_list_sorted): Remove.
25196         (create_function_info_for): Properly allocate vars for IPA mode.
25197         Do not use insert_into_field_list_sorted.
25198         (create_variable_info_for): Properly generate constraints for
25199         global vars in IPA mode.
25200         (dump_solution_for_var): Always dump the solution.
25201         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
25202         (find_what_var_points_to): Adjust.
25203         (pt_solution_set): Change.
25204         (pt_solution_ior_into): New function.
25205         (pt_solution_empty_p): Export.
25206         (pt_solution_includes_global): Adjust.
25207         (pt_solution_includes_1): Likewise.
25208         (pt_solutions_intersect_1): Likewise.
25209         (dump_sa_points_to_info): Check some invariants.
25210         (solve_constraints): Move constraint dumping ...
25211         (compute_points_to_sets): ... here.
25212         (ipa_pta_execute): ... and here.
25213         (compute_may_aliases): Do not re-compute points-to info
25214         locally if IPA info is available.
25215         (ipa_escaped_pt): New global var.
25216         (ipa_pta_execute): Properly implement IPA PTA.
25217         * tree-into-ssa.c (dump_decl_set): Support dumping
25218         decls not in referenced-vars.
25219         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
25220         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
25221         (dump_points_to_solution): Likewise.
25222         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
25223         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
25224         (remap_gimple_stmt): Reset call clobber/use information if necessary.
25225         (copy_decl_to_var): Copy DECL_PT_UID.
25226         (copy_result_decl_to_var): Likewise.
25227         * tree.c (make_node_stat): Initialize DECL_PT_UID.
25228         (copy_node_stat): Copy it.
25229         * tree.h (DECL_PT_UID): New macro.
25230         (SET_DECL_PT_UID): Likewise.
25231         (DECL_PT_UID_SET_P): Likewise.
25232         (struct tree_decl_minimal): Add pt_uid member.
25233         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
25234         (pt_solution_empty_p): Declare.
25235         (pt_solution_set): Adjust.
25236         (ipa_escaped_pt): Declare.
25237         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
25238         * gimple-pretty-print.c (pp_points_to_solution): New function.
25239         (dump_gimple_call): Dump call clobber/use information.
25240         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
25241         * tree-pass.h (TDF_ALIAS): New dump option.
25242         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
25243         * doc/invoke.texi (-fipa-pta): Update documentation.
25244
25245 2010-04-15  Richard Guenther  <rguenther@suse.de>
25246
25247         * Makefile.in (OBJS-common): Add gimple-fold.o.
25248         (gimple-fold.o): New rule.
25249         * tree.h (maybe_fold_offset_to_reference,
25250         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
25251         prototypes ...
25252         * gimple.h: ... here.
25253         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
25254         may_propagate_address_into_dereference): Move prototypes ...
25255         * gimple.h: ... here.
25256         * tree-ssa-ccp.c (get_symbol_constant_value,
25257         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
25258         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
25259         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
25260         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
25261         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
25262         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
25263         gimplify_and_update_call_from_tree): Move ...
25264         * gimple-fold.c: ... here.  New file.
25265         (ccp_fold_builtin): Rename to ...
25266         (gimple_fold_builtin): ... this.
25267         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
25268
25269 2010-04-15  Richard Guenther  <rguenther@suse.de>
25270
25271         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
25272         fit_double_type, force_fit_type_double, add_double_with_sign,
25273         neg_double, mul_double_with_sign, lshift_double, rshift_double,
25274         lrotate_double, rrotate_double, div_and_round_double): Move ...
25275         * double-int.c: ... here.
25276         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
25277         add_double, neg_double, mul_double_with_sign, mul_double,
25278         lshift_double, rshift_double, lrotate_double, rrotate_double,
25279         div_and_round_double): Move prototypes ...
25280         * double-int.h: ... here.
25281
25282 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
25283
25284         PR target/43742
25285         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
25286         matching constraints to ensure inputs match the output.
25287
25288 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
25289
25290         PR target/43742
25291         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
25292         in an input-only operand.
25293
25294 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
25295
25296         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
25297         (double_int_not, double_int_lshift, double_int_rshift): Declare.
25298         (double_int_negative_p): Convert to static inline function.
25299         * double-int.c (double_int_lshift, double_int_lshift): New functions.
25300         (double_int_negative_p): Remove.
25301         * tree.h (lshift_double, rshift_double):
25302         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
25303         * fold-const.c (fold_convert_const_int_from_real,
25304         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
25305         (lshift_double): Change type of arith argument to bool.
25306         (rshift_double): Change type of arith argument to bool. Correct
25307         comment.
25308         * expmed.c (mask_rtx, lshift_value): (Ditto.).
25309
25310 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
25311
25312         PR target/21803
25313         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
25314         at the start and end of the then/else blocks, and omit them from the
25315         conversion.
25316         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
25317         argument; all callers changed.  Pass zero to old_insns_match_p instead.
25318         (flow_find_head_matching_sequence): New function.
25319         (old_insns_match_p): Check REG_EH_REGION notes for calls.
25320         * basic-block.h (flow_find_cross_jump,
25321         flow_find_head_matching_sequence): Declare functions.
25322
25323 2010-04-14  Jason Merrill  <jason@redhat.com>
25324
25325         PR c++/36625
25326         * c-common.c (attribute_takes_identifier_p): New fn.
25327         * c-common.h: Declare it.
25328
25329 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25330
25331         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
25332         splitter condition.
25333         (*udivmod<mode>4): Ditto.
25334
25335 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25336
25337         * config/i386/i386.md (maxmin_int): Rename code attribute from
25338         maxminiprefix and update all users.
25339         (maxmin_float): Ditto from maxminfprefix.
25340         (logic): Ditto from logicprefix.
25341         (absneg_mnemonic): Ditto from absnegprefix.
25342         * config/i386/mmx.md: Update all users of maxminiprefix,
25343         maxminfprefix and logicprefix for rename.
25344         * config/i386/sse.md: Ditto.
25345         * config/i386/sync.md (sync_<code><mode>): Update for
25346         logicprefix rename.
25347
25348 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25349
25350         PR 42966
25351         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
25352         warnings converted to errors.
25353
25354 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25355
25356         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
25357         used insn_type variable.
25358         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
25359         to avoid set-but-not-used warning.
25360
25361 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25362
25363         * df-core.c (df_ref_debug): Change format string placeholder
25364         from 0x%x to %#x.
25365         * dwarf2asm.c (dw2_asm_output_data_raw,
25366         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
25367         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
25368         * dwarf2out.c (output_cfi, output_cfi_directive,
25369         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
25370         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
25371         Ditto.
25372         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
25373         * print-rtl.c (print_rtx): Ditto.
25374
25375 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25376
25377         PR middle-end/42694
25378         * builtins.c (expand_builtin_pow_root): New function to expand pow
25379         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
25380         series of sqrt and cbrt calls under -ffast-math.
25381         (expand_builtin_pow): Call it.
25382
25383 2010-04-14  Michael Matz  <matz@suse.de>
25384
25385         PR tree-optimization/42963
25386         * tree-cfg.c (touched_switch_bbs): New static variable.
25387         (group_case_labels_stmt): New function broken out from ...
25388         (group_case_labels): ... here, use the above.
25389         (start_recording_case_labels): Allocate touched_switch_bbs.
25390         (end_recording_case_labels): Deallocate it, call
25391         group_case_labels_stmt.
25392         (gimple_redirect_edge_and_branch): Remember index of affected BB.
25393
25394 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25395
25396         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
25397         from insn template.
25398
25399 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
25400
25401         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
25402
25403 2010-04-13  Jan Hubicka  <jh@suse.cz>
25404
25405         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
25406         of optimized out static functions.
25407         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
25408         cost computation.  Also sanity check for overflows.
25409         (update_caller_keys): Update cgraph_edge_badness call; properly
25410         update fibheap and sanity check that it is up to date.
25411         (add_new_edges_to_heap): Update cgraph_edge_badness.
25412         (cgraph_decide_inlining_of_small_function): Likewise;
25413         add sanity checking that badness in heap is up to date;
25414         improve dumping of reason; Update badness of calls to the
25415         offline copy of function currently inlined; dump badness
25416         of functions not inlined because of unit growth limits.
25417
25418 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
25419
25420         PR middle-end/32628
25421         * c-common.c (pointer_int_sum): Disregard overflow that occured only
25422         because of sign-extension change when converting to sizetype here...
25423         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
25424
25425         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
25426         the folding to constants.  Remove redundant final conversion.
25427         (fold_binary) <associate>: Do not associate if the re-association of
25428         constants alone overflows.
25429         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
25430         to the end of the list.
25431         (multiple_of_p) <COND_EXPR>: New case.
25432
25433 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25434
25435         * opt-functions.awk (opt_sanitized_name): New.
25436         (opt_enum): New.
25437         * optc-gen.awk: Use it
25438         * opth-gen.awk: Use it.
25439
25440 2010-04-13  Martin Jambor  <mjambor@suse.cz>
25441
25442         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
25443         (sra_modify_assign): Delete stmts loading dead data even if racc has no
25444         children.  Call replace_uses_with_default_def_ssa_name to handle
25445         SSA_NAES on lhs.
25446
25447 2010-04-13  Michael Matz  <matz@suse.de>
25448
25449         PR middle-end/43730
25450         * builtins.c (expand_builtin_interclass_mathfn): Also create
25451         a register if the predicate doesn't match.
25452
25453 2010-04-13  Diego Novillo  <dnovillo@google.com>
25454
25455         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
25456         * c-pch.c: Include timevar.h.
25457         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
25458         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
25459         * ggc-common.c: Include timevar.h.
25460         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
25461         * timevar.def (TV_PCH_SAVE): Define.
25462         (TV_PCH_CPP_SAVE): Define.
25463         (TV_PCH_PTR_REALLOC): Define.
25464         (TV_PCH_PTR_SORT): Define.
25465         (TV_PCH_RESTORE): Define.
25466         (TV_PCH_CPP_RESTORE): Define.
25467
25468 2010-04-13  Michael Matz  <matz@suse.de>
25469
25470         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
25471         into MINUS_EXPRs.
25472         (can_reassociate_p): New function.
25473         (break_up_subtract_bb, reassociate_bb): Use it.
25474
25475 2010-04-13  Richard Guenther  <rguenther@suse.de>
25476
25477         PR bootstrap/43737
25478         * builtins.c (c_readstr): Fix assert.
25479
25480 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
25481
25482         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
25483         when generating cltd insn.
25484
25485         (*ashl<mode>3_1): Remove special handling for register operand 2.
25486         (*ashlsi3_1_zext): Ditto.
25487         (*ashlhi3_1): Ditto.
25488         (*ashlhi3_1_lea): Ditto.
25489         (*ashlqi3_1): Ditto.
25490         (*ashlqi3_1_lea): Ditto.
25491         (*<shiftrt_insn><mode>3_1): Ditto.
25492         (*<shiftrt_insn>si3_1_zext): Ditto.
25493         (*<shiftrt_insn>qi3_1_slp): Ditto.
25494         (*<rotate_insn><mode>3_1): Ditto.
25495         (*<rotate_insn>si3_1_zext): Ditto.
25496         (*<rotate_insn>qi3_1_slp): Ditto.
25497
25498 2010-04-13  Richard Guenther  <rguenther@suse.de>
25499
25500         * tree-ssa-structalias.c (callused_id): Remove.
25501         (call_stmt_vars): New.
25502         (get_call_vi): Likewise.
25503         (lookup_call_use_vi): Likewise.
25504         (lookup_call_clobber_vi): Likewise.
25505         (get_call_use_vi): Likewise.
25506         (get_call_clobber_vi): Likewise.
25507         (make_transitive_closure_constraints): Likewise.
25508         (handle_const_call): Adjust to do per-call call-used handling.
25509         (handle_pure_call): Likewise.
25510         (find_what_var_points_to): Remove general callused handling.
25511         (init_base_vars): Likewise.
25512         (init_alias_vars): Initialize call_stmt_vars.
25513         (compute_points_to_sets): Process call-used and call-clobbered
25514         vars for call statements.
25515         (delete_points_to_sets): Free call_stmt_vars.
25516
25517 2010-04-13  Richard Guenther  <rguenther@suse.de>
25518
25519         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25520         Only add RW dependence for dependence distance zero.
25521         Adjust maximal vectorization factor according to dependences.
25522         Move alignment handling ...
25523         (vect_find_same_alignment_drs): ... here.  New function.
25524         (vect_analyze_data_ref_dependences): Adjust.
25525         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
25526         (vect_analyze_data_refs): Adjust minimal vectorization factor
25527         according to data references.
25528         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
25529         dependences before determining the vectorization factor.
25530         Analyze alignment after determining the vectorization factor.
25531         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
25532         dependences before alignment.
25533         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
25534         Adjust prototype.
25535         (vect_analyze_data_refs): Likewise.
25536         (MAX_VECTORIZATION_FACTOR): New define.
25537
25538 2010-04-13  Duncan Sands  <baldrick@free.fr>
25539
25540         * except.h (lang_eh_type_covers): Remove.
25541         * except.c (lang_eh_type_covers): Likewise.
25542
25543 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25544             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25545
25546         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
25547         * config/s390/s390.c: Replace UNTIS_PER_WORD with
25548         UNITS_PER_LONG where it is ABI relevant.
25549         (s390_return_addr_rtx): Likewise.
25550         (s390_back_chain_rtx): Likewise.
25551         (s390_frame_area): Likewise.
25552         (s390_frame_info): Likewise.
25553         (s390_initial_elimination_offset): Likewise.
25554         (save_gprs): Likewise.
25555         (s390_emit_prologue): Likewise.
25556         (s390_emit_epilogue): Likewise.
25557         (s390_function_arg_advance): Likewise.
25558         (s390_function_arg): Likewise.
25559         (s390_va_start): Likewise.
25560         (s390_gimplify_va_arg): Likewise.
25561         (s390_function_profiler): Likewise.
25562         (s390_optimize_prologue): Likewise.
25563         (s390_rtx_costs): Likewise.
25564         (s390_secondary_reload): Likewise.
25565         (s390_promote_function_mode): Likewise.
25566         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
25567         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
25568         registers available.
25569         (s390_unwind_word_mode): New function.
25570         (s390_function_value): Split 64 bit values into register pair if
25571         used as return value.
25572         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
25573         function call parameters.  Handle parallels.
25574         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
25575         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
25576         (DWARF_CIE_DATA_ALIGNMENT): New macro.
25577         (s390_expand_setmem): Remove unused variable src_addr.
25578         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
25579         deal with 64 bit registers.
25580         * config/s390/s390.h: Define __zarch__ predefined macro.
25581         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
25582         (UNITS_PER_LONG): New macro.
25583         * libjava/include/s390-signal.h: Define extended ucontext
25584         structure containing the upper halfs of the 64 bit registers.
25585
25586 2010-04-13  Simon Baldwin  <simonb@google.com>
25587
25588         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
25589
25590 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
25591
25592         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
25593         rvalue on the RHS if the LHS is of a non-renamable type.
25594         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
25595
25596 2010-04-13  Matthias Klose  <doko@ubuntu.com>
25597
25598         * gcc.c (cc1_options): Handle -iplugindir before processing
25599         the cc1 spec. Only add -iplugindir once.
25600         (cpp_unique_options): Add -iplugindir option if -fplugin* options
25601         found.
25602         * common.opt (iplugindir): Remove `Separate' property, initialize.
25603         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
25604         option.
25605         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
25606         (distclean): Remove plugin dir.
25607         * doc/invoke.texi: Document -iplugindir.
25608
25609 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
25610
25611         * doc/plugins.texi (Loading Plugins): Document short
25612         -fplugin=foo option.
25613         (Plugin API): Mention default_plugin_dir_name function.
25614
25615         * gcc.c (find_file_spec_function): Add new declaration.
25616         (static_spec_func): Use it for "find-file".
25617         (find_file_spec_function): Add new function.
25618         (cc1_options): Add -iplugindir option if -fplugin* options found.
25619
25620         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
25621
25622         * plugin.c (add_new_plugin): Updated comment, and handle short
25623         plugin name.
25624         (default_plugin_dir_name): Added new function.
25625
25626         * common.opt (iplugindir): New option to set the plugin directory.
25627
25628 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
25629
25630         * config/i386/i386.md (any_rotate): New code iterator.
25631         (rotate_insn): New code attribute.
25632         (rotate): Ditto.
25633         (SWIM124): New mode iterator.
25634         (<rotate_insn>ti3): New expander.
25635         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
25636         any_rotate code iterator.
25637         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
25638         using any_rotate code iterator and SWIM124 mode iterator.
25639         (ix86_rotlti3): New insn_and_split pattern.
25640         (ix86_rotrti3): Ditto.
25641         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
25642         ix86_rotl{di,ti}3 patterns.
25643         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
25644         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
25645         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
25646         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
25647         code iterator and SWI mode iterator.
25648         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
25649         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
25650         code iterator.
25651         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
25652         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
25653         (bswap rotatert splitter): Add splitter.
25654         (bswap splitter): Macroize splitter using any_rotate code iterator.
25655         Add insn predicate to split only for TARGET_USE_XCHGB or when
25656         optimizing function for size.
25657
25658 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
25659
25660         * config/pa/pa.c (emit_move_sequence): Remove use of
25661         deleted variable flag_argument_noalias.
25662
25663 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25664
25665         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
25666         configurations.
25667         Add to unsupported targets list.
25668         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
25669         sparc*-sun-solaris2.[567]* from target lists.
25670         * configure: Regenerate.
25671         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
25672         removal.
25673         Remove Solaris 7 patch references.
25674         (Specific, sparc-sun-solaris2.7): Removed.
25675         (sparc-sun-solaris2*): Update Solaris 7 example.
25676         (sparc64-*-solaris2*): Likewise.
25677
25678 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25679
25680         * config.build (alpha*-dec-osf4*): Remove.
25681         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
25682         of obsolete configurations.
25683         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
25684         support.
25685         * config/alpha/t-osf4: Renamed to ...
25686         * config/alpha/t-osf5: ... this.
25687         * config/alpha/osf.h: Renamed to ...
25688         * config/alpha/osf5.h: ... this.
25689         Merged old osf5.h contents.
25690         Update comments.
25691         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
25692         (EXTRA_SPECS): Removed.
25693         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
25694         reflect removal of Tru64 UNIX V4.0/V5.0 support.
25695         Document that.
25696
25697 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25698
25699         * doc/contrib.texi (Contributors, Rainer Orth): Update.
25700
25701 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
25702
25703         PR/43702
25704         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
25705         __thiscall convention.
25706
25707 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
25708
25709         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
25710         orig_base.
25711         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
25712
25713 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
25714
25715         * function.c (assign_parms_initialize_all): Add unused attribute
25716         to fntype.
25717
25718 2010-04-12  Richard Guenther  <rguenther@suse.de>
25719
25720         * gsstruct.def (GSS_CALL): New.
25721         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
25722         * gimple.h: Include tree-ssa-alias.h.
25723         (struct gimple_statement_call): New.
25724         (union gimple_statement_struct_d): Add gimple_call member.
25725         (gimple_call_reset_alias_info): Declare.
25726         (gimple_call_use_set): New function.
25727         (gimple_call_clobber_set): Likewise.
25728         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
25729         * gimple.c (gimple_call_reset_alias_info): New function.
25730         (gimple_build_call_1): Call it.
25731         * lto-streamer-in.c (input_gimple_stmt): Likewise.
25732         * tree-inline.c (remap_gimple_stmt): Likewise.
25733         (expand_call_inline): Remove callused handling.
25734         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
25735         * tree-dfa.c (dump_variable): Likewise.
25736         * tree-parloops.c (parallelize_loops): Likewise.
25737         * tree-ssa.c (init_tree_ssa): Likewise.
25738         (delete_tree_ssa): Likewise.
25739         * tree-flow-inline.h (is_call_used): Remove.
25740         * tree-flow.h (struct gimple_df): Remove callused member.
25741         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
25742         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
25743         (ref_maybe_used_by_call_p_1): Simplify.
25744         (call_may_clobber_ref_p_1): Likewise.
25745         * tree-ssa-structalias.c (compute_points_to_sets): Set
25746         the call stmt used and clobbered sets.
25747         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
25748         (find_tail_calls): Verify the tail call.
25749
25750 2010-04-12  Richard Guenther  <rguenther@suse.de>
25751
25752         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
25753         single-iteration always-inline inlining.
25754         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
25755         (cgraph_decide_inlining): Do not handle always-inline specially.
25756         (try_inline): Remove always-inline cycle detection special case.
25757         Do not recurse on always-inlines.
25758         (cgraph_early_inlining): Do not iterate if not optimizing.
25759         (cgraph_gate_early_inlining): remove.
25760         (pass_early_inline): Run unconditionally.
25761         (gate_cgraph_decide_inlining): New function.
25762         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
25763         not inlining or optimizing.
25764         (cgraph_decide_inlining_of_small_functions): Also consider
25765         always-inline functions.
25766         (cgraph_default_inline_p): Return true for nodes which should
25767         disregard inline limits.
25768         (estimate_function_body_sizes): Assume zero size and time for
25769         nodes which are marked as disregarding inline limits.
25770         (cgraph_decide_recursive_inlining): Do not perform recursive
25771         inlining on always-inline nodes.
25772
25773 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
25774
25775         PR bootstrap/43699
25776         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
25777         for exprs satisfying handled_component_p.
25778
25779 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
25780
25781         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
25782         non-constant aggregate elements.
25783
25784         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
25785         is a real initialization.
25786
25787 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
25788
25789         PR c/36774
25790         * c-decl.c (start_function): Move forward check for nested function.
25791
25792 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
25793
25794         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
25795         * config/sh/sh.c: Include reload.h.
25796         (sh_legitimize_reload_address): New.
25797         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
25798         sh_legitimize_reload_address.
25799
25800 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25801
25802         * config/sh/sh.md (*movqi_pop): New insn pattern.
25803         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
25804
25805 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
25806
25807         * config/i386/i386.md (any_shiftrt): New code iterator.
25808         (shiftrt_insn): New code attribute.
25809         (shiftrt): Ditto.
25810         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
25811         using any_shiftrt code iterator.
25812         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
25813         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
25814         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
25815         pattern from corresponding peephole2 patterns.
25816         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
25817         using any_shiftrt code iterator.
25818         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
25819         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
25820         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
25821         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
25822         *{ashr,lshr}<mode>3_cmp_zext.
25823         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
25824
25825 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
25826
25827         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
25828         scratch register.
25829         (*lshr<mode>3_cconly): Ditto.
25830
25831 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
25832
25833         * config/i386/i386.md (lshr<mode>3): Macroize expander from
25834         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
25835         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
25836         pattern from *lshr{di,ti}3_1 and corresponding splitters using
25837         DWI mode iterator.
25838         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
25839         from corresponding peephole2 patterns.
25840         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
25841         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
25842         and *lshrdi3_1_rex64 using SWI mode iterator.
25843         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
25844         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
25845         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
25846         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
25847         and *lshrdi3_cmp_rex64 using SWI mode iterator.
25848         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
25849         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
25850         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
25851         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
25852         SWI mode iterator.
25853
25854 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
25855
25856         * config/i386/i386.md (ashr<mode>3): Macroize expander from
25857         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
25858         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
25859         pattern from *ashr{di,ti}3_1 and corresponding splitters using
25860         DWI mode iterator.
25861         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
25862         from corresponding peephole2 patterns.
25863         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
25864         (ashrsi3_cvt): Rename from ashrsi3_31.
25865         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
25866         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
25867         and x86_64_shift_adj_3 using SWI48 mode iterator.
25868         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
25869         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
25870         and *ashrdi3_1_rex64 using SWI mode iterator.
25871         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
25872         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
25873         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
25874         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
25875         and *ashrdi3_cmp_rex64 using SWI mode iterator.
25876         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
25877         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
25878         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
25879         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
25880         SWI mode iterator.
25881         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
25882         * config/i386/i386.c (ix86_split_ashr): Update for renamed
25883         x86_shift<mode>_adj_3 expanders.
25884
25885 2010-04-10  Wei Guozhi  <carrot@google.com>
25886
25887         PR target/42601
25888         * config/arm/arm.c (arm_pic_static_addr): New function.
25889         (legitimize_pic_address): Call arm_pic_static_addr when it detects
25890         a static symbol.
25891         (arm_output_addr_const_extra): Output expression for new pattern.
25892         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
25893
25894 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
25895
25896         * ira-costs.c (record_reg_classes): Ignore alternatives that are
25897         not enabled.
25898
25899         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
25900         * web.c: Include "insn-config.h" and "recog.h".
25901         (union_match_dups): New function.
25902         (web_main): Call it.
25903         (union_defs): Don't try to recognize match_dups.
25904
25905         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
25906         if doing so would replace the entire pattern.
25907
25908 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
25909
25910         PR target/43707
25911         PR target/43709
25912         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
25913         and splitter pattern.  Change splitter operand 1 predicate to
25914         nonmemory_operand.
25915
25916 2010-04-09  Martin Jambor  <mjambor@suse.cz>
25917
25918         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
25919         lattices are addresses of CONST_DECLs with the same initial value.
25920         (ipcp_print_all_lattices): Print values of CONST_DECLs.
25921         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
25922
25923 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
25924             Bernd Schmidt  <bernds@codesourcery.com>
25925
25926         * loop-invariant.c (replace_uses): New static function.
25927         (move_invariant_reg): Use it to ensure we can replace the uses.
25928
25929 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
25930
25931         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
25932         function template.
25933         (picochip_override_options): Enable section anchors only above -O1.
25934         (picochip_reorg): Fixed a couple of build warnings.
25935
25936 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25937
25938         * configure.ac (plugin -rdynamic test): Log result.
25939         * configure: Regenerate.
25940         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
25941         (RDYNAMIC_SPEC): Define.
25942         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
25943
25944 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25945
25946         * configure.ac: Determine Sun ld version numbers.
25947         (comdat_group): Restrict GNU ld version checks to gld.
25948         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
25949         (enable_comdat): Support --enable-comdat.
25950         * configure: Regenerate.
25951         * doc/install.texi (Configuration): Document --enable-comdat.
25952
25953 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25954
25955         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
25956         * config/sol2-gld.h: ... here.
25957         * config.gcc (sparc*-*-solaris2*): Reflect this.
25958         (i[34567]86-*-solaris2*): Use it.
25959
25960 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
25961
25962         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
25963         setup_clocks_p.
25964         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
25965
25966 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25967
25968         PR 42965
25969         * diagnostic.c (diagnostic_initialize): Initialize
25970         some_warnings_are_errors.
25971         (diagnostic_finish): New.
25972         (diagnostic_action_after_output): Call it before exiting.
25973         (diagnostic_report_diagnostic): Do not print message here. Set
25974         some_warnings_are_errors.
25975         * diagnostic.h (diagnostic_context): Delete
25976         issue_warnings_are_errors_message. Add some_warnings_are_errors.
25977         (diagnostic_finish): Declare.
25978         * toplev.c (toplev_main): Call it before exit.
25979
25980 2010-04-09  Jason Merrill  <jason@redhat.com>
25981
25982         PR c++/42623
25983         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
25984         for incomplete type.
25985
25986         PR c++/41788
25987         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
25988         based on a warning flag.
25989
25990 2010-04-09  Richard Guenther  <rguenther@suse.de>
25991
25992         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
25993
25994 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
25995
25996         PR bootstrap/43684
25997         * varasm.c (default_assemble_visibility): Wrap vars that are
25998         set, but unused, by targets without GAS.
25999         * config/rs6000/rs6000.c (paired_emit_vector_compare):
26000         Remove set, but unused, vars.
26001         (rs6000_legitimize_tls_address): Likewise.
26002         (altivec_expand_dst_builtin): Likewise.
26003         * config/darwin.c (machopic_classify_symbol): Likewise.
26004         (machopic_indirection_name): Likewise.
26005
26006 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
26007
26008         * config/i386/i386.md (DWI): New mode iterator.
26009         (S): New mode attribute.
26010         (shift_operand): Ditto.
26011         (shift_immediate_operand): Ditto.
26012         (ashl_input_operand): Ditto.
26013         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
26014         using SDWIM mode iterator.
26015         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
26016         pattern from *ashl{di,ti}3_1 and corresponding splitters using
26017         DWI mode iterator.
26018         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
26019         from corresponding peephole2 patterns.
26020         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
26021         and x86_64_shift_adj_1 using SWI48 mode iterator.
26022         (x86_shift<mode>_adj_2): Ditto.
26023         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
26024         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
26025         using SWI48 mode iterator.
26026         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
26027         *ashldi3_cmp_rex64 using SWI mode iterator.
26028         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
26029         *ashldi3_cconly_rex64 using SWI mode iterator.
26030         * config/i386/i386.c (ix86_split_ashl): Update for renamed
26031         x86_shift<mode>_adj_{1,2}.
26032         (ix86_split_ashr): Ditto.
26033         (ix86_split_lshr): Ditto.
26034
26035 2010-04-09  Richard Guenther  <rguenther@suse.de>
26036
26037         * target.h (builtin_conversion): Pass in input and output types.
26038         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
26039         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
26040         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
26041         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
26042
26043         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
26044         Handle AVX modes.
26045         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
26046
26047 2010-04-09  Richard Guenther  <rguenther@suse.de>
26048
26049         PR target/43152
26050         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
26051
26052 2010-04-09  Richard Guenther  <rguenther@suse.de>
26053
26054         * tree-vectorizer.h (struct _stmt_vec_info): Document
26055         that vectype is the type of the LHS.
26056         (supportable_widening_operation, supportable_narrowing_operation):
26057         Get both input and output vector types as arguments.
26058         (vect_is_simple_use_1): Declare.
26059         (get_same_sized_vectype): Likewise.
26060         * tree-vect-loop.c (vect_determine_vectorization_factor):
26061         Set STMT_VINFO_VECTYPE to the vector type of the def.
26062         (vectorizable_reduction): Adjust.
26063         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
26064         Adjust.  Specify the output vector type.
26065         (vect_pattern_recog_1): Adjust.
26066         * tree-vect-stmts.c (get_same_sized_vectype): New function.
26067         (vectorizable_call): Adjust.
26068         (vectorizable_conversion): Likewise.
26069         (vectorizable_operation): Likewise.
26070         (vectorizable_type_demotion): Likewise.
26071         (vectorizable_type_promotion): Likewise.
26072         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
26073         the def.
26074         (vect_is_simple_use_1): New function.
26075         (supportable_widening_operation): Get both input and output
26076         vector types.
26077         (supportable_narrowing_operation): Likewise.
26078         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
26079
26080 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
26081
26082         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
26083         __thiscall and _thiscall as predefined macros.
26084         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
26085         thiscall attribute handling.
26086         (ix86_comp_type_attributes): Likewise.
26087         (ix86_function_regparm): Likewise.
26088         (ix86_return_pops_args): Likewise.
26089         (init_cumulative_args): Likewise.
26090         (find_drap_reg): Likewise.
26091         (ix86_static_chain): Likewise.
26092         (x86_this_parameter): Likewise.
26093         (x86_output_mi_thunk): Likewise.
26094         (ix86_attribute_table): Add description for thiscall attribute.
26095         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
26096         * doc/extend.texi: Add documentation for thiscall.
26097
26098 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26099
26100         PR c++/28584
26101         * c.opt (Wint-to-pointer-cast): Available in C++.
26102         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
26103
26104 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
26105
26106         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
26107         * calls.c (expand_call): Pass the function type to aggregate_value_p.
26108         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
26109         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
26110         function type instead.  Reorder and simplify checks.
26111
26112         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
26113
26114 2010-04-08  Jing Yu  <jingyu@google.com>
26115             Zdenek Dvorak  <ook@ucw.cz>
26116
26117         PR tree-optimization/42720
26118         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
26119         loop unswitch conditions here from ...
26120         (tree_unswitch_single_loop): ... here.
26121
26122 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
26123
26124         * tree-if-conv.c: Fix comments and simplify logic.
26125
26126 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
26127
26128         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
26129         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
26130         (main_tree_if_conversion): Update call to tree_if_conversion.
26131
26132 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26133
26134         PR 42485
26135         * doc/invoke.texi (-b,-V): Delete.
26136         * doc/tm.texi: Do not mention -b.
26137         * gcc.c (display_help): Delete -b and -V.
26138         (process_command): Delete -b and -V.
26139         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
26140
26141 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
26142             Wolfgang Gellerich  <gellerich@de.ibm.com>
26143
26144         Implement target hook for loop unrolling
26145         * target.h (loop_unroll_adjust): Add a new target hook function.
26146         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
26147         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
26148         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
26149         (s390_loop_unroll_adjust): Implement the new target hook for s390.
26150         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
26151         target hook.
26152         (decide_unroll_stupid): Likewise.
26153
26154 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26155
26156         PR target/43643
26157         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
26158
26159 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26160
26161         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
26162         (Specific, *-*-solaris2*): Likewise.
26163         Don't prefer Sun as over GNU as.
26164
26165 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
26166
26167         * config/s390/s390.c (override_options): Adjust the z10 defaults
26168         for max-unroll-times, max-completely-peeled-insns
26169         and max-completely-peel-times.
26170
26171 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26172
26173         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
26174         instructions for z10.
26175         (s390_expand_setmem): Likewise.
26176         (s390_expand_cmpmem): Likewise.
26177
26178 2010-04-08  Richard Guenther  <rguenther@suse.de>
26179
26180         PR tree-optimization/43679
26181         * tree-ssa-pre.c (eliminate): Only propagate copies.
26182
26183 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
26184
26185         PR bootstrap/43681
26186         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
26187         set but not used variable warning.
26188
26189 2010-04-08  Wei Guozhi  <carrot@google.com>
26190
26191         PR target/41653
26192         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
26193         (arm_size_rtx_costs): Call the new function when optimized for size.
26194
26195 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
26196
26197         PR debug/43670
26198         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
26199         op0 is not a MEM, just return NULL instead of assertion
26200         failure.
26201         (discover_nonconstant_array_refs): Don't walk debug stmts.
26202
26203 2010-04-08  Doug Kwan  <dougkwan@google.com>
26204
26205         * configure.ac: Recognize gold and do not use its version number
26206         to test ld features.
26207         * configure: Regenerate.
26208
26209 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26210
26211         PR middle-end/40815
26212         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
26213         (negate_value): Move code to push elements to broken_up_substracts ...
26214         (eliminate_plus_minus_pair): ... here.  Push operands that have no
26215         negative pair to plus_negates.
26216         (repropagate_negates, init_reassoc, fini_reassoc): Update.
26217
26218 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26219
26220         * doc/install.texi (Configuration): Move description of
26221         --enable-lto, --with-libelf*, --enable-gold from Java section to
26222         general section.
26223
26224         * doc/generic.texi (Working with declarations)
26225         (Function Properties, C and C++ Trees): Fix typos.
26226         * doc/sourcebuild.texi (Top Level): Likewise.
26227
26228 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
26229
26230         PR c/18624
26231         * tree.h (DECL_READ_P): Define.
26232         (struct tree_decl_common): Add decl_read_flag.
26233         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
26234         a set but not used warning.
26235         (merge_decls): Merge DECL_READ_P flag.
26236         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
26237         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
26238         * c-common.c (handle_used_attribute, handle_unused_attribute):
26239         Likewise.
26240         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
26241         New prototypes.
26242         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
26243         New functions.
26244         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
26245         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
26246         c_parser_binary_expression, c_parser_cast_expression,
26247         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
26248         Call default_function_array_read_conversion instead of
26249         default_function_array_conversion where needed.
26250         (c_parser_unary_expression, c_parser_conditional_expression,
26251         c_parser_postfix_expression_after_primary, c_parser_initelt):
26252         Likewise.  Call mark_exp_read where needed.
26253         (c_parser_statement_after_labels, c_parser_asm_operands,
26254         c_parser_typeof_specifier, c_parser_sizeof_expression,
26255         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
26256         where needed.
26257         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
26258         New.
26259         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
26260         (warn_unused_but_set_parameter): Default to warn_unused
26261         && extra_warnings.
26262         * doc/invoke.texi: Document -Wunused-but-set-variable and
26263         -Wunused-but-set-parameter.
26264
26265         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
26266         used count variable.
26267         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
26268         when operandN variables aren't used in the body of the expander
26269         or splitter.
26270         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
26271         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
26272         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
26273         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
26274         FOR_EACH_IMM_USE_ON_STMT): Likewise.
26275         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
26276         * tree.c (PROCESS_ARG): Likewise.
26277
26278 2010-04-07  Simon Baldwin  <simonb@google.com>
26279
26280         * diagnostic.h (diagnostic_override_option_index): New macro to
26281         set a diagnostic's option_index.
26282         * c-tree.h (c_cpp_error): Add warning reason argument.
26283         * opts.c (_warning_as_error_callback): New.
26284         (register_warning_as_error_callback): Store callback for
26285         warnings enabled via enable_warning_as_error.
26286         (enable_warning_as_error): Call callback, minor code tidy.
26287         * opts.h (register_warning_as_error_callback): Declare.
26288         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
26289         response to -Werror=.
26290         (c_common_init_options): Register warning_as_error_callback in opts.c.
26291         * common.opt: Add -Wno-cpp option.
26292         * c-common.c (struct reason_option_codes_t): Map cpp warning
26293         reason codes to gcc option indexes.
26294         * (c_option_controlling_cpp_error): New function, lookup the gcc
26295         option index for a cpp warning reason code.
26296         * (c_cpp_error): Add warning reason argument, call
26297         c_option_controlling_cpp_error for diagnostic_override_option_index.
26298         * doc/invoke.texi: Document -Wno-cpp.
26299
26300 2010-04-07  Richard Guenther  <rguenther@suse.de>
26301
26302         * ipa-reference.c (mark_load): Use get_base_address.
26303         (mark_store): Likewise.
26304
26305         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
26306         inserting GIMPLE_NOPs into the IL.
26307         * tree-ssa-structalias.c (get_constraint_for_component_ref):
26308         Explicitly strip handled components and indirect references.
26309
26310         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
26311         folding address expressions.
26312         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
26313         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
26314         operand_equal_p to compare decls.
26315         (ptr_deref_may_alias_decl_p): Likewise.
26316         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
26317         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
26318         Handle reversed comparison ops.
26319         * tree-sra.c (asm_visit_addr): Use get_base_address.
26320         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
26321         * ipa-reference.c (mark_address): Use get_base_address.
26322
26323 2010-04-07  Richard Guenther  <rguenther@suse.de>
26324
26325         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
26326         Propagate constants everywhere.
26327
26328 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
26329
26330         PR debug/43516
26331         * tree.c (MAX_INT_CACHED_PREC): Define.
26332         (nonstandard_integer_type_cache): New array.
26333         (build_nonstandard_integer_type): Cache results for precision
26334         <= MAX_INT_CACHED_PREC.
26335
26336 2010-04-07  Richard Guenther  <rguenther@suse.de>
26337
26338         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
26339         -fargument-noalias-global, -fargument-noalias-anything): Remove.
26340         * common.opt: Likewise.
26341         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
26342         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
26343         (nonoverlapping_memrefs_p): Likewise.
26344         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
26345         * opts.c (common_handle_option): Handle OPT_fargument_alias,
26346         OPT_fargument_noalias, OPT_fargument_noalias_anything and
26347         OPT_fargument_noalias_global for backward compatibility.
26348
26349 2010-04-07  Richard Guenther  <rguenther@suse.de>
26350
26351         PR tree-optimization/43270
26352         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
26353         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
26354         * tree-ssa-pre.c (phi_translate_1): Adjust.
26355         (fully_constant_expression): Split out vn_reference handling to ...
26356         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
26357         Fold reads from constant strings.
26358         (vn_reference_lookup): Handle fully constant references.
26359         (vn_reference_lookup_pieces): Likewise.
26360         * Makefile.in (expmed.o-warn): Add -Wno-error.
26361
26362 2010-04-07  Martin Jambor  <mjambor@suse.cz>
26363
26364         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
26365
26366 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
26367
26368         PR driver/41594
26369         * gcc.c: Add -static-libstdc++ to list of recognized options.
26370
26371 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26372
26373         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
26374
26375 2010-04-07  Richard Guenther  <rguenther@suse.de>
26376
26377         PR middle-end/42617
26378         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
26379         bases build simple mem attributes to retain points-to information.
26380
26381 2010-04-07  Richard Guenther  <rguenther@suse.de>
26382
26383         PR middle-end/42617
26384         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
26385         preserve points-to related information.
26386
26387 2010-04-07  Richard Guenther  <rguenther@suse.de>
26388
26389         PR middle-end/42617
26390         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
26391         discard plain indirect references.
26392         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
26393         * tree.c (tree_nop_conversion): Likewise.
26394
26395 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
26396
26397         PR debug/43628
26398         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
26399
26400 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
26401
26402         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
26403         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
26404
26405 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
26406
26407         * tree-if-conv.c: Fix indentation and comments.
26408
26409 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
26410
26411         * tree-if-conv.c: Sort static functions in topological order.
26412
26413 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
26414
26415         * tree-if-conv.c: Fix indentation and comments.
26416
26417 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26418
26419         PR middle-end/43519
26420         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
26421         lang_hooks.types.type_for_size instead of
26422         build_nonstandard_integer_type.
26423         When converting an unsigned type to signed, double its precision.
26424         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
26425         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
26426         (graphite_create_new_loop_guard): When ub + 1 wraps around,
26427         use lb <= ub.
26428
26429 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26430
26431         PR middle-end/43519
26432         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
26433         POINTER_PLUS_EXPR for pointer types.
26434
26435 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26436
26437         PR middle-end/43519
26438         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
26439         * graphite-clast-to-gimple.c: Include langhooks.h.
26440         (max_signed_precision_type): New.
26441         (max_precision_type): Takes two types as arguments.
26442         (precision_for_value): New.
26443         (precision_for_interval): New.
26444         (gcc_type_for_interval): New.
26445         (gcc_type_for_value): New.
26446         (gcc_type_for_clast_term): New.
26447         (gcc_type_for_clast_red): New.
26448         (gcc_type_for_clast_bin): New.
26449         (gcc_type_for_clast_expr): Split up into several functions.
26450         (gcc_type_for_clast_eq): Rewritten.
26451         (compute_bounds_for_level): New.
26452         (compute_type_for_level_1): New.
26453         (compute_type_for_level): New.
26454         (gcc_type_for_cloog_iv): Removed.
26455         (gcc_type_for_iv_of_clast_loop): Rewritten.
26456         (graphite_create_new_loop): Compute the lower and upper bound types
26457         with gcc_type_for_clast_expr.
26458         (graphite_create_new_loop_guard): Same.
26459         (find_cloog_iv_in_expr): Removed.
26460         (compute_cloog_iv_types_1): Removed.
26461         (compute_cloog_iv_types): Removed.
26462         (gloog): Do not call compute_cloog_iv_types.
26463         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
26464         GBB_CLOOG_IV_TYPES.
26465         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
26466         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
26467         (GBB_CLOOG_IV_TYPES): Removed.
26468
26469 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26470
26471         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
26472         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
26473         (detect_commutative_reduction): Same.
26474
26475 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26476
26477         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
26478         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
26479         argument.
26480         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
26481         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
26482         (rewrite_commutative_reductions_out_of_ssa): Same.
26483         * passes.c (execute_function_todo): Call verify_ssa for every pass
26484         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
26485         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
26486         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
26487         with an extra argument.
26488         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
26489         verify_ssa only when the extra argument is true.
26490         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
26491         with an extra argument.
26492         (tree_transform_and_unroll_loop): Same.
26493
26494 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
26495
26496         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
26497         for all the passes of the LNO having LOOP_CLOSED_SSA.
26498         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
26499         * tree-loop-distribution.c (pass_loop_distribution): Same.
26500         * tree-pass.h (TODO_verify_loops): Removed.
26501         * tree-ssa-loop.c (pass_tree_loop_init): Same.
26502         (pass_lim): Same.
26503         (pass_tree_unswitch): Same.
26504         (pass_predcom): Same.
26505         (pass_vectorize): Same.
26506         (pass_linear_transform): Same.
26507         (pass_graphite_transforms): Same.
26508         (pass_iv_canon): Same.
26509         (pass_complete_unroll): Same.
26510         (pass_complete_unrolli): Same.
26511         (pass_parallelize_loops): Same.
26512         (pass_loop_prefetch): Same.
26513         (pass_iv_optimize): Same.
26514
26515 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
26516
26517         PR middle-end/32824
26518         * passes.c (init_optimization_passes): Move pass_lim before
26519         pass_copy_prop and pass_dce_loop.
26520
26521 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
26522
26523         PR target/43667
26524         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
26525         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
26526         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
26527         MULTI_* defines for 4 argument vpermil2p* builtins.
26528
26529 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
26530
26531         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
26532         * config/i386/i386.c (x86_maybe_negate_const_int): New.
26533         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
26534         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
26535         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
26536         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
26537         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
26538         Use x86_maybe_negate_const_int to output insn mnemonic.
26539         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
26540         check from instruction predicate.  Update comments.
26541         * config/i386/sync.md (sync_add<mode>): Use
26542         x86_maybe_negate_const_int to output insn mnemonic.
26543
26544 2010-04-06  Jan Hubicka  <jh@suse.cz>
26545
26546         PR tree-optimization/42906
26547         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
26548         IGNORE_SELF argument.  Set visited_control_parents for fully
26549         processed BBs.
26550         (find_obviously_necessary_stmts): Update call of
26551         mark_control_dependent_edges_necessary.
26552         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
26553
26554 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
26555
26556         * config/i386/i386.md: Remove comment about 'e' and 'E'
26557         operand modifier.
26558
26559 2010-04-06  Richard Guenther  <rguenther@suse.de>
26560
26561         PR tree-optimization/43627
26562         * tree-vrp.c (extract_range_from_unary_expr): Widenings
26563         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
26564         not varying.
26565
26566 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
26567
26568         * BASE-VER: Change to 4.6.0.
26569
26570         PR target/43638
26571         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
26572         handling.
26573
26574 2010-04-06  Richard Guenther  <rguenther@suse.de>
26575
26576         PR middle-end/43661
26577         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
26578
26579 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26580
26581         * doc/invoke.texi (Optimize Options): Document that LTO
26582         won't remove object access purely due to incompatible
26583         declarations.
26584
26585 2010-04-04  Matthias Klose  <doko@ubuntu.com>
26586
26587         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
26588         Initialize variable.
26589
26590 2010-04-03  Richard Guenther  <rguenther@suse.de>
26591
26592         PR middle-end/42509
26593         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
26594         require a non-NULL MEM_OFFSET.
26595
26596 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
26597
26598         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
26599         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
26600         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
26601         config/alpha/predicates.md, config/arm/arm.md,
26602         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
26603         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
26604         config/darwin9.h, config/darwin.c, config/darwin.h,
26605         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
26606         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
26607         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
26608         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
26609         config/mips/mips.md, config/mn10300/mn10300.c,
26610         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
26611         config/rs6000/aix.h, config/rs6000/dfp.md,
26612         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
26613         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
26614         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
26615         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
26616         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
26617         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
26618         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
26619         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
26620         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
26621         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
26622         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
26623         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
26624         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
26625         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
26626         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
26627         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
26628         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
26629         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
26630         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
26631         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
26632         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
26633         opt-functions.awk, opth-gen.awk, params.def, passes.c,
26634         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
26635         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
26636         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
26637         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
26638         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
26639         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
26640         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
26641         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
26642         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
26643         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
26644         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
26645         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
26646         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
26647         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
26648
26649 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26650
26651         PR other/43620
26652         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
26653         * aclocal.m4: Regenerate.
26654
26655 2010-04-02  Richard Guenther  <rguenther@suse.de>
26656
26657         PR tree-optimization/43629
26658         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
26659         if we have seen a constant value.
26660
26661 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
26662
26663         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
26664
26665 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
26666
26667         PR target/43469
26668         * arm.c (legitimize_tls_address): Adjust call to
26669         gen_tls_load_dot_plus_four.
26670         (arm_note_pic_base): New function.
26671         (arm_cannot_copy_insn_p): Use it.
26672         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
26673         constraint.
26674
26675 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26676
26677         PR bootstrap/43531
26678
26679         Revert:
26680         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26681
26682         * Makefile.in ($(out_object_file)): Depend on
26683         gt-$(basename $(notdir $(out_file))).h.
26684
26685 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
26686
26687         * config.gcc (lm32-*-rtems*): Add t-lm32.
26688
26689 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
26690
26691         * config.gcc: Add lm32-*-rtems*.
26692         * config/lm32/rtems.h: New file.
26693
26694 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
26695
26696         PR target/42609
26697         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
26698
26699 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
26700
26701         * dwarf2out.c (output_compilation_unit_header): For
26702         -gdwarf-4 use version 4 instead of version 3.
26703         (output_line_info): For version 4 and above emit additional
26704         maximum ops per insn header field.
26705         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
26706
26707         * dwarf2out.c (is_c_family, is_java): Remove.
26708         (lower_bound_default): New function.
26709         (add_bound_info, gen_descr_array_type_die): Use it.
26710
26711 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
26712
26713         PR debug/43325
26714         * dwarf2out.c (gen_variable_die): Allow debug info for variable
26715         re-declaration when it happens in a function.
26716
26717 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
26718
26719         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
26720         (cgraph_remove_function_insertion_hook): Same.
26721         (cgraph_call_function_insertion_hooks): Same.
26722
26723 2010-04-01  Richard Guenther  <rguenther@suse.de>
26724
26725         PR middle-end/43614
26726         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
26727         and TREE_THIS_VOLATILE.
26728         (copy_ref_info): Likewise.
26729         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
26730         * tree.c (build6_stat): Ignore side-effects of all but arg5
26731         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
26732         TARGET_MEM_REF.
26733
26734 2010-04-01  Richard Guenther  <rguenther@suse.de>
26735
26736         PR tree-optimization/43607
26737         * ipa-type-escape.c (check_call): Do not access non-existing
26738         arguments.
26739
26740 2010-04-01  Richard Guenther  <rguenther@suse.de>
26741
26742         PR middle-end/43602
26743         Revert
26744         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
26745                     Jack Howarth  <howarth@bromo.med.uc.edu>
26746
26747         * tree-profile.c (tree_init_ic_make_global_vars): Make static
26748         variables TLS.
26749
26750 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26751
26752         * doc/install.texi (Prerequisites): Document libelf usability on
26753         IRIX 5/6 and Solaris 2.
26754         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
26755         Update GNU as, GNU ld requirements.
26756         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
26757         Document Sun Studio compiler download.
26758         Update and simplify as, ld recommendations.
26759         (Specific, *-*-solaris2.7): Note obsoletion, removal.
26760
26761 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26762
26763         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
26764         with_tune_32 to pentium4.
26765
26766 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
26767
26768         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
26769
26770 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26771
26772         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
26773         obsoletion, removal.
26774         Update IDO URL.
26775         Document GNU as requirement.
26776         Update configure requirements.
26777         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
26778         Recomment IRIX 6.5.18+.
26779         Document IDF/IDL requirement.
26780         Document GNU as requirement.
26781         Document GNU ld bootstrap failure.
26782         Remove freeware.sgi.com reference.
26783
26784 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26785
26786         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
26787         UNIX V4.0, V5.0 obsoletion, removal.
26788         Remove --with-gc=simple reference.
26789         Update VM requirements during bootstrap.
26790         Remove -oldas bootstrap description.
26791         Update binutils reference.
26792         Remove comparison failure note.
26793
26794 2010-03-31  Richard Guenther  <rguenther@suse.de>
26795             Zdenek Dvorak  <ook@ucw.cz>
26796             Sebastian Pop  <sebastian.pop@amd.com>
26797
26798         PR middle-end/43464
26799         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
26800         with multiple arguments.
26801         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
26802
26803 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
26804
26805         * graphite-dependences.c (print_pddr): Call print_pdr with an
26806         extra argument.
26807         * graphite-poly.c (debug_pdr): Add an extra argument for the
26808         verbosity level.
26809         (print_pdr): Same.
26810         (print_pbb_domain): Same.
26811         (print_pbb): Same.
26812         (print_scop_context): Same.
26813         (print_scop): Same.
26814         (print_cloog): Same.
26815         (debug_pbb_domain): Same.
26816         (debug_pbb): Same.
26817         (print_pdrs): Same.
26818         (debug_pdrs): Same.
26819         (debug_scop_context): Same.
26820         (debug_scop): Same.
26821         (debug_cloog): Same.
26822         (print_scop_params): Same.
26823         (debug_scop_params): Same.
26824         (print_iteration_domain): Same.
26825         (print_iteration_domains): Same.
26826         (debug_iteration_domain): Same.
26827         (debug_iteration_domains): Same.
26828         (print_scattering_function): Same.
26829         (print_scattering_functions): Same.
26830         (debug_scattering_function): Same.
26831         (debug_scattering_functions): Same.
26832         * graphite-poly.h (debug_pdr): Update declaration.
26833         (print_pdr): Same.
26834         (print_pbb_domain): Same.
26835         (print_pbb): Same.
26836         (print_scop_context): Same.
26837         (print_scop): Same.
26838         (print_cloog): Same.
26839         (debug_pbb_domain): Same.
26840         (debug_pbb): Same.
26841         (print_pdrs): Same.
26842         (debug_pdrs): Same.
26843         (debug_scop_context): Same.
26844         (debug_scop): Same.
26845         (debug_cloog): Same.
26846         (print_scop_params): Same.
26847         (debug_scop_params): Same.
26848         (print_iteration_domain): Same.
26849         (print_iteration_domains): Same.
26850         (debug_iteration_domain): Same.
26851         (debug_iteration_domains): Same.
26852         (print_scattering_function): Same.
26853         (print_scattering_functions): Same.
26854         (debug_scattering_function): Same.
26855         (debug_scattering_functions): Same.
26856
26857 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
26858
26859         * graphite-poly.c (print_scattering_function_1): New.
26860         (print_scattering_function): Call it.
26861         (print_scop_params): Remove spaces at the end of lines.
26862         (print_cloog): New.
26863         (debug_cloog): New.
26864         * graphite-poly.h (print_cloog): Declared.
26865         (debug_cloog): Declared.
26866
26867 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
26868
26869         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
26870         in loop->header.
26871         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
26872         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
26873         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
26874         to switch between adding the IV bump in loop->latch or in loop->header.
26875
26876 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
26877
26878         * graphite-poly.c (print_scattering_function): Pretty print following
26879         the scoplib format.
26880         (print_pdr): Same.
26881         (print_pbb_domain): Same.
26882         (dump_gbb_cases): Same.
26883         (dump_gbb_conditions): Same.
26884         (print_pdrs): Same.
26885         (print_pbb): Same.
26886         (print_scop_params): Same.
26887         (print_scop_context): Same.
26888         (print_scop): Same.
26889         (print_pbb_body): New.
26890         (lst_indent_to): New.
26891         (print_lst): Start new lines with a #.
26892         * graphite-poly.h (pbb_bb): New.
26893         (pbb_index): Use pbb_bb.
26894         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
26895         disjuncts.
26896         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
26897
26898 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
26899
26900         * dwarf2out.c (size_of_die): For -gdwarf-4 use
26901         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
26902         and 0 instead of 1 for dw_val_class_flag.
26903         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
26904         dw_val_class_range_list, dw_val_class_loc_list,
26905         dw_val_class_lineptr and dw_val_class_macptr, use
26906         DW_FORM_flag_present for dw_val_class_flag and
26907         DW_FORM_exprloc for dw_val_class_loc.
26908         (output_die): For -gdwarf-4 print dw_val_class_loc
26909         size as uleb128 instead of 1 or 2 bytes and don't print
26910         anything for dw_val_class_flag.
26911
26912         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
26913         instead of cselib_lookup following by tweaking locs->setting_insn.
26914
26915         PR bootstrap/43596
26916         * cselib.c (cselib_process_insn): Clear cselib_current_insn
26917         even before returning from label, setjmp call or volatile asm
26918         handling.
26919
26920 2010-03-31  Richard Guenther  <rguenther@suse.de>
26921
26922         PR middle-end/43600
26923         * cgraphunit.c (cgraph_output_in_order): Do not allocate
26924         temporary data on stack.
26925
26926 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26927
26928         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
26929         (PUSHSECTION_ASM_OP): Remove.
26930         (POPSECTION_ASM_OP): Remove.
26931         (PUSHSECTION_FORMAT): Remove.
26932         * config/sol2.h (PUSHSECTION_FORMAT): Define.
26933         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
26934         * config/sol2.c (solaris_output_init_fini): Use it.
26935
26936 2010-03-31  Jie Zhang  <jie@codesourcery.com>
26937
26938         PR 43574
26939         * opt-functions.awk (var_type_struct): Use signed char type
26940         for simple variables.
26941
26942 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26943
26944         * config/sol2.c: Include output.h.
26945         (solaris_assemble_visibility): New function.
26946         * config/t-sol2 (sol2.o): Add output.h dependency.
26947         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
26948         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
26949         Redefine.
26950
26951 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
26952
26953         PR target/43580
26954         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
26955         V2SImode or XFmode on PRE_DEC.
26956
26957         PR debug/43557
26958         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
26959         BLKmode.
26960
26961 2010-03-31  Jie Zhang  <jie@codesourcery.com>
26962
26963         PR 43562
26964         * reload.h (caller_save_initialized_p): Declare.
26965         * toplev.c (backend_init_target): Don't call
26966         init_caller_save but set caller_save_initialized_p to false.
26967         * caller-save.c (caller_save_initialized_p): Define.
26968         (init_caller_save): Check caller_save_initialized_p.
26969         * ira.c (ira): Call init_caller_save if flag_caller_saves.
26970
26971 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26972
26973         PR target/39048
26974         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
26975         and soft-fp/t-softfp to tmake_file.
26976         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
26977         (LIBGCC2_TF_CEXT): Define.
26978         (TF_SIZE): Define.
26979
26980 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
26981
26982         PR debug/42977
26983         * cselib.c (n_useless_values): Document handling of debug locs.
26984         (n_useless_debug_values, n_debug_values): New variables.
26985         (new_elt_loc_list): Don't add to debug values, keep count.
26986         (promote_debug_loc): New.
26987         (cselib_reset_table): Zero new variables.
26988         (entry_and_rtx_equal_p): Promote debug locs.
26989         (discard_useless_locs): Increment n_useless_debug_values for
26990         debug values.
26991         (remove_useless_values): Adjust n_useless_values and n_debug_values
26992         with n_useless_debug_values.
26993         (add_mem_for_addr): Promote debug locs.
26994         (cselib_lookup_mem): Likewise.
26995         (cselib_lookup_addr): Renamed to...
26996         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
26997         (cselib_log_lookup): ... this.  Turn into...
26998         (cselib_lookup_addr): ... new wrapper.
26999         (cselib_lookup_from_insn): New.
27000         (cselib_invalidate_regno): Increment n_useless_debug_values for
27001         debug values.
27002         (cselib_invalidate_mem): Likewise.
27003         (cselib_process_insn): Take n_deleted and n_debug_values into
27004         account to guard remove_useless_value call.
27005         (cselib_finish): Zero n_useless_debug_values.
27006         * cselib.h (cselib_lookup_from_insn): Declare.
27007         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
27008         (sched_analyze_2): Likewise.
27009
27010 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
27011
27012         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
27013         functions.
27014         (adjust_mems): Replace narrowing SUBREG of expression containing
27015         just PLUS, MINUS, MULT and ASHIFT of registers and constants
27016         with operations in the narrower mode.
27017
27018         PR debug/43593
27019         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
27020         regs_invalidated_by_call instead all call_used_reg_set registers.
27021
27022 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
27023
27024         PR middle-end/43430
27025         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
27026         pointer comparisons with types_compatible_p.
27027         * tree-vect-stmts.c (vectorizable_call): Same.
27028         (vectorizable_condition): Same.
27029
27030 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27031
27032         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
27033         stack check if the mask would be zero.
27034
27035 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
27036             Jack Howarth  <howarth@bromo.med.uc.edu>
27037
27038         * tree-profile.c (tree_init_ic_make_global_vars): Make static
27039         variables TLS.
27040
27041 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
27042
27043         PR other/25232
27044         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
27045         and __unordtf2.
27046         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
27047         Include ___unordxf2 and ___unordtf2.
27048         * config/i386/libgcc-glibc.ver: Do not define inheritance from
27049         GCC_4.4.0 here.
27050
27051 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
27052
27053         * config/lm32/t-lm32: New file.
27054         * config.gcc: Use the above file when targetting lm32.
27055
27056 2010-03-28  Duncan Sands  <baldrick@free.fr>
27057
27058         * Makefile.in (PLUGIN_HEADERS): Add except.h.
27059
27060 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
27061
27062         PR middle-end/43431
27063         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
27064         Improve vectorization cost model diagnostic.
27065
27066 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
27067
27068         PR middle-end/43436
27069         * tree-vect-data-refs.c (vect_analyze_data_refs): When
27070         compute_data_dependences_for_loop returns false, early exit
27071         and output an extra diagnostic for the failed data reference
27072         analysis.
27073
27074 2010-03-29  Richard Guenther  <rguenther@suse.de>
27075
27076         PR tree-optimization/43560
27077         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
27078         (can_sm_ref_p): Treat stores to readonly locations as trapping.
27079
27080 2010-03-29  Jie Zhang  <jie@codesourcery.com>
27081
27082         PR 43564
27083         * toplev.c (process_options): Set optimization_default_node
27084         and optimization_current_node.
27085         * opts.c (decode_options): Don't set optimization_default_node
27086         and optimization_current_node.
27087
27088 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
27089
27090         * config/rtems.h: Abandon -qrtems_debug.
27091
27092 2010-03-28  Jan Hubicka  <jh@suse.cz>
27093
27094         PR tree-optimization/43505
27095         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
27096         map should not be copied.
27097
27098 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27099
27100         PR middle-end/41674
27101         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
27102         cdtors, set DECL_PRESERVE_P.
27103         * ipa.c (cgraph_externally_visible_p): Return true if declaration
27104         should be preseved.
27105
27106 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
27107
27108         PR tree-optimization/43528
27109         * stor-layout.c (place_field): Check that constant fits into
27110         unsigned HWI when skipping calculation of MS bitfield layout.
27111
27112 2010-03-27  Jan Hubicka  <jh@suse.cz>
27113
27114         PR middle-end/43391
27115         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
27116         notice_global_symbol work.
27117
27118 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
27119
27120         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
27121         instead of dwarf2out_decl.
27122         (struct var_loc_node): Remove section_label field.
27123         (dwarf2out_function_decl): New function.
27124         (dwarf2out_var_location): Don't set section_label field.
27125         (dwarf2out_begin_function): Don't empty decl_loc_table here.
27126
27127 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
27128
27129         PR tree-optimization/43544
27130         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27131         First argument for builtin vectorized function hook is now a
27132         tree to be able to distinguish between machine specific and
27133         standard builtins.
27134         * targhooks.c (default_builtin_vectorized_function): Ditto.
27135         * targhooks.h (default_builtin_vectorized_function): Ditto.
27136         * target.h (struct gcc_target): Ditto.
27137         * tree-vect-stmts.c (vectorizable_function): Ditto.
27138         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
27139         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
27140         Ditto.
27141
27142 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
27143
27144         PR c/43381
27145         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
27146         nested binding iff it is a FUNCTION_DECL.
27147         (store_parm_decls_newstyle): Pass nested=true to bind for
27148         FUNCTION_DECLs amongst parameters.
27149
27150 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
27151
27152         * var-tracking.c (vt_expand_loc_callback): Don't run
27153         cselib_expand_value_rtx_cb in dummy mode if
27154         cselib_dummy_expand_value_rtx_cb returned false.
27155
27156         * var-tracking.c (emit_note_insn_var_location): For one part
27157         notes with offset 0, don't add EXPR_LIST around the location.
27158         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
27159         add_location_or_const_value_attribute): Adjust for that change.
27160
27161         PR debug/43540
27162         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
27163         into first operand and location into second.
27164         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
27165         dw_cfi_oprnd_loc for DW_CFA_expression.
27166         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
27167         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
27168         assume first argument is regnum and second argument is location.
27169
27170 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
27171
27172         PR target/42113
27173         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
27174         of scratch register to DImode.  Split to DImode comparison operator.
27175         Use SImode subreg of scratch register in the multiplication.
27176         (*cmp_sadd_sidi): Ditto.
27177         (*cmp_ssub_si): Ditto.
27178         (*cmp_ssub_sidi): Ditto.
27179
27180 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
27181
27182         PR target/43524
27183         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
27184         Remove invalid assert and wrong comment.
27185
27186 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
27187
27188         PR debug/43516
27189         * flags.h (final_insns_dump_p): New extern.
27190         * final.c (final_insns_dump_p): New variable.
27191         (rest_of_clean_state): Set it before -fdump-final-insns=
27192         dumping, clear afterwards.
27193         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
27194         MEM_ALIAS_SET on MEMs.
27195
27196 2010-03-26  David S. Miller  <davem@davemloft.net>
27197
27198         * configure.ac: Fix sparc GOTDATA_OP bug check.
27199         * configure: Rebuild.
27200
27201 2010-03-26  Alan Modra  <amodra@gmail.com>
27202
27203         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
27204
27205 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27206
27207         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
27208         TLS_SECTION_ASM_FLAG.
27209
27210 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
27211
27212         PR bootstrap/43511
27213         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
27214         Clear first_function_block_is_cold.
27215
27216         PR c/43385
27217         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
27218         argument if the argument is truth_value_p.
27219
27220 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27221
27222         * config/rs6000/constraints.md: Update copyright year for my changes.
27223
27224         PR target/43484
27225         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
27226         used in reg+reg addressing, swap registers.
27227
27228 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
27229
27230         PR debug/43293
27231         * target.h (struct gcc_target): Add code_end hook.
27232         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
27233         if not yet defined.
27234         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
27235         * toplev.c (compile_file): Call targetm.asm_out.code_end
27236         hook before unwind info/debug info output.
27237         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
27238         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
27239         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27240         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
27241         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
27242         * config/i386/i386.c (ix86_file_end): Renamed to...
27243         (ix86_code_end): ... this.  Make static.  Don't call
27244         file_end_indicate_exec_stack.  Emit unwind info using
27245         final_start_function/final_end_function.
27246         (darwin_x86_file_end): Remove.
27247         (TARGET_ASM_CODE_END): Define.
27248         * config/i386/i386.h (TARGET_ASM_FILE_END,
27249         NEED_INDICATE_EXEC_STACK): Don't define.
27250         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
27251         (TARGET_ASM_FILE_END): Define to darwin_file_end.
27252         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
27253         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
27254
27255         PR target/43498
27256         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
27257         at the beginning and final_end_function at the end.
27258         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27259
27260 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27261
27262         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
27263         and Sun as TLS syntax.
27264         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
27265         * configure: Regenerate.
27266         * config.in: Regenerate.
27267         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
27268         (default_elf_asm_named_section): Use it.
27269         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
27270         (i386_output_dwarf_dtprel): Likewise.
27271         (output_addr_const_extra): Likewise.
27272         (output_pic_addr_const): Lowercase @GOTTPOFF.
27273         (output_addr_const_extra): Likewise.
27274         (output_pic_addr_const): Lowercase @GOTNTPOFF.
27275         (output_addr_const_extra): Likewise.
27276         (output_pic_addr_const): Lowercase @INDNTPOFF.
27277         (output_addr_const_extra): Likewise.
27278         (output_pic_addr_const): Lowercase @NTPOFF.
27279         (output_addr_const_extra): Likewise.
27280         (output_pic_addr_const): Lowercase @TPOFF.
27281         (output_addr_const_extra): Likewise.
27282         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
27283         (*tls_global_dynamic_64): Likewise.
27284         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
27285         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
27286
27287         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
27288         (ASM_OUTPUT_TLS_COMMON): Use it.
27289         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
27290
27291         PR target/38118
27292         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
27293         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27294         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
27295         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
27296         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27297         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
27298
27299 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27300
27301         * config/i386/i386.c (override_options): Don't accept
27302         -mtls-dialect=sun any longer.
27303         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
27304         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
27305         (*tls_local_dynamic_base_32_sun): Likewise.
27306         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
27307
27308 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
27309
27310         PR debug/43508
27311         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
27312         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
27313
27314         PR debug/43479
27315         * ira.c (adjust_cleared_regs): New function.
27316         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
27317
27318         PR debug/19192
27319         PR debug/43479
27320         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
27321         from gimple_block.
27322         * expr.c (expand_expr_real): Restore previous
27323         curr_insn_source_location and curr_insn_block after
27324         expand_expr_real_1 call.
27325         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
27326         instead of expand_expr_real_1.
27327
27328 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
27329
27330         PR rtl-optimization/43413
27331         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
27332         hard regs too.
27333
27334 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
27335
27336         PR target/43348
27337         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
27338         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
27339
27340 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
27341
27342         * config/i386/i386.c (ix86_target_string): Add -mfma.
27343         Fix a typo in comment.
27344
27345 2010-03-22  Mike Stump  <mikestump@comcast.net>
27346
27347         PR target/23071
27348         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
27349         Don't overly align based upon packed packed fields.
27350
27351 2010-03-22  Jason Merrill  <jason@redhat.com>
27352
27353         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
27354         Use () rather than [], and move before the element type.
27355
27356 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27357
27358         * doc/configfiles.texi (Configuration Files): Removed
27359         fixinc/Makefile*, intl/Makefile.*.
27360         * doc/makefile.texi: Fixed markup. Abstract from version
27361         control system used.
27362         (Makefile): Removed obsolete java/parse.y example.
27363         * doc/sourcebuild.texi: Likewise.
27364         (Top Level): Added config, gnattools, libdecnumber, libgcc,
27365         libgomp, libssp.  Removed fastjar.
27366         (Miscellaneous Docs): Clarify location.
27367         Added COPYING3, COPYING3.LIB.
27368         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
27369
27370 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27371
27372         PR target/38085
27373         * config/i386/i386.c (x86_function_profiler)
27374         [!NO_PROFILE_COUNTERS]: Fix typo.
27375         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
27376         instead of callq.
27377
27378 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
27379             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27380
27381         * doc/sourcebuild.texi (Test Directives): Split into six
27382         subsections, with most of the current text in new subsections
27383         Directives, Selectors, and Final Actions.
27384         (Directives): Split list of test directives into multiple
27385         subsubsections.
27386         (Selectors): Describe use and syntax of selectors.
27387         (Effective-Target Keywords): Describe all existing keywords.
27388         (Add Options): Describe features for dg-add-options.
27389         (Require Support): Describe variants of dg-require-support.
27390         (Final Actions): Describe commands to use in dg-final.
27391
27392 2010-03-22  Michael Matz  <matz@suse.de>
27393
27394         PR middle-end/43475
27395         * recog.c (validate_replace_rtx_group): Replace also in
27396         REG_EQUAL and REG_EQUIV notes.
27397
27398 2010-03-22  Richard Guenther  <rguenther@suse.de>
27399
27400         PR tree-optimization/43390
27401         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
27402         sure vector extracts are type correct.
27403
27404 2010-03-22  Richard Guenther  <rguenther@suse.de>
27405
27406         PR middle-end/40106
27407         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
27408         x * sqrt (x) even when optimizing for size if the target
27409         has native support for sqrt.
27410
27411 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
27412
27413         * varasm.c (make_decl_rtl_for_debug): Also clear
27414         flag_mudflap for the duration of make_decl_rtl call.
27415
27416         PR debug/43443
27417         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
27418         locs from preserved VALUEs.
27419
27420 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27421
27422         PR middle-end/42718
27423         * pa.md (movmemsi): Set align to one if zero.
27424         (movmemdi): Likewise.
27425
27426 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
27427
27428         PR target/42321
27429         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
27430         with their corresponding prologue pushes.
27431
27432 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
27433
27434         PR target/43156
27435         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
27436         at the begining or end.
27437         (spu_expand_epilogue): Likewise.
27438
27439 2010-03-20  Richard Guenther  <rguenther@suse.de>
27440
27441         PR rtl-optimization/43438
27442         * combine.c (make_extraction): Properly zero-/sign-extend an
27443         extraction of the low part of a CONST_INT.  Also handle
27444         CONST_DOUBLE.
27445
27446 2010-03-19  Mike Stump  <mikestump@comcast.net>
27447
27448         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
27449         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
27450         (override_options): Use SUBTARGET32_DEFAULT_CPU.
27451
27452 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
27453
27454         PR c/43211
27455         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
27456         an error.
27457
27458 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
27459
27460         PR rtl-optimization/42258
27461         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
27462         use that may match DEF.
27463
27464         PR target/40697
27465         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
27466         the cost of loading the constant rather than assuming
27467         COSTS_N_INSNS (1).
27468         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
27469         outer code is AND, do the same tests as the andsi3 expander and
27470         return COSTS_N_INSNS (1) if and is cheap.
27471
27472         * optabs.c (avoid_expensive_constant): Fix formatting.
27473
27474 2010-03-19  Michael Matz  <matz@suse.de>
27475
27476         PR c++/43116
27477         * attribs.c (decl_attributes): When rebuilding a function pointer
27478         type use the same qualifiers as the original pointer type.
27479
27480 2010-03-19  Martin Jambor  <mjambor@suse.cz>
27481
27482         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
27483         and is_gimple_ip_invariant_address.
27484
27485 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27486
27487         Revert
27488         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27489
27490         * config/arm/arm.c (arm_override_options): Turn off
27491         flag_dwarf2_cfi_asm for AAPCS variants.
27492
27493 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27494
27495         PR target/43399
27496         * config/arm/arm.c (emit_multi_reg_push): Update comments.
27497         Use PRE_MODIFY instead of PRE_DEC.
27498         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
27499         (vfp_emit_fstmd): Likewise.
27500
27501 2010-03-19  Michael Matz  <matz@suse.de>
27502
27503         PR target/43305
27504         * builtins.c (expand_builtin_interclass_mathfn,
27505         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
27506         if that fails.
27507
27508 2010-03-19  Richard Guenther  <rguenther@suse.de>
27509
27510         PR tree-optimization/43415
27511         * tree-ssa-pre.c (phi_translate): Split out worker to ...
27512         (phi_translate_1): ... this.
27513         (phi_translate): Move all caching here.  Cache all NARY
27514         and REFERENCE translations.
27515
27516 2010-03-19  David S. Miller  <davem@davemloft.net>
27517
27518         With help from Eric Botcazou.
27519         * config/sparc/sparc.c: Include dwarf2out.h.
27520         (emit_pic_helper): Delete.
27521         (pic_helper_symbol_name): Delete.
27522         (pic_helper_emitted_p): Delete.
27523         (pic_helper_needed): New.
27524         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
27525         (get_pc_thunk_name): New.
27526         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
27527         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
27528         Set pic_helper_needed to true.  Don't call emit_pic_helper.
27529         (sparc_expand_prologue): Update load_pic_register call.
27530         (sparc_output_mi_thunk): Likewise.
27531         (sparc_file_end): Emit a hidden comdat symbol for the PIC
27532         thunk if possible.  Output CFI information as needed.
27533
27534 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
27535             Jack Howarth  <howarth@bromo.med.uc.edu>
27536
27537         PR target/36399
27538         * config/i386/i386.h: Fix ABI on darwin x86-32.
27539
27540 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
27541
27542         * tree.h: Declare make_decl_rtl_for_debug.
27543         * varasm.c (make_decl_rtl_for_debug): New.
27544         * dwarf2out.c (rtl_for_decl_location): Call it.
27545         * cfgexpand.c (expand_debug_expr): Call it.
27546
27547 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
27548
27549         PR bootstrap/43399
27550         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
27551         mem_mode.
27552
27553         PR bootstrap/43403
27554         * var-tracking.c (vt_init_cfa_base): Do nothing if
27555         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
27556
27557 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
27558
27559         PR debug/42873
27560         * var-tracking.c (canonicalize_vars_star): New.
27561         (dataflow_post_merge_adjust): Use it.
27562
27563 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
27564
27565         PR debug/43058
27566         * var-tracking.c (non_suitable_const): New function.
27567         (add_uses): For DEBUG_INSNs with constants, don't record any
27568         value, instead just the constant value itself.
27569         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
27570         is not VAR_LOC_UNKNOWN_P, set var to the constant.
27571         (emit_notes_in_bb): Likewise.
27572         (emit_note_insn_var_location): For onepart variables if
27573         cur_loc is a VOIDmode constant, use DECL_MODE.
27574
27575 2010-03-18  Martin Jambor  <mjambor@suse.cz>
27576
27577         PR middle-end/42450
27578         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
27579         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
27580         all non-clones.  Moved call redirection...
27581         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
27582         (cgraph_materialize_all_clones): Dispose of all
27583         combined_args_to_skip bitmaps.
27584         (verify_cgraph_node): Do not check for edges pointing to wrong
27585         nodes in inline clones.
27586         * tree-inline.c (copy_bb): Call
27587         cgraph_redirect_edge_call_stmt_to_callee.
27588         * ipa.c (cgraph_remove_unreachable_nodes): Call
27589         cgraph_node_remove_callees even when there are used clones.
27590
27591 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
27592
27593         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
27594
27595 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
27596
27597         PR target/43383
27598         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
27599         for 32bit.
27600
27601 2010-03-18  Michael Matz  <matz@suse.de>
27602
27603         PR middle-end/43419
27604         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
27605         into sqrt(x) if we need to preserve signed zeros.
27606
27607 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
27608             Eric Botcazou  <ebotcazou@adacore.com>
27609
27610         PR rtl-optimization/43360
27611         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
27612         note if we don't know its invariant status.
27613
27614 2010-03-18  Michael Matz  <matz@suse.de>
27615
27616         PR tree-optimization/43402
27617         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
27618         PHI chains of ssa names registered for update.
27619
27620 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
27621
27622         PR target/42427
27623         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
27624         non-offsettable and pre_modify update addressing.
27625         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
27626         and "2" alternatives "#".
27627         (*movdd_softfloat32): Make all alternatives "#";
27628         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
27629         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
27630         (*movdf_softfloat32): Make all alternatives "#";
27631         (movdi): Use the new DIFD mode iterator to create a common splitter
27632         for movdi, movdf and movdd patterns.
27633
27634 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
27635
27636         * common.opt (dumpdir): Remove redundant tab.
27637
27638 2010-03-17  Martin Jambor  <mjambor@suse.cz>
27639
27640         PR tree-optimization/43347
27641         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
27642         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
27643
27644 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
27645
27646         PR rtl-optimization/42216
27647         * regrename.c (create_new_chain): New function, broken out from...
27648         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
27649         appending a use to an empty chain.
27650         (build_def_use): Remove previous changes that convert OP_INOUT to
27651         OP_OUT operands; instead detect the case where an OP_INOUT operand
27652         uses a previously untracked register and create an empty chain for it.
27653
27654 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27655
27656         * doc/extend.texi (Function Attributes): Rewrite unfinished
27657         sentence in ms_abi documentation.
27658
27659 2010-03-17  Alan Modra  <amodra@gmail.com>
27660
27661         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
27662         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
27663         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
27664         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
27665
27666 2010-03-16  Richard Henderson  <rth@redhat.com>
27667
27668         PR middle-end/43365
27669         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
27670         (lower_try_finally): Save and restore eh_seq around the expansion
27671         of the try-finally.
27672
27673 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
27674
27675         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
27676         statements before splitting block.
27677
27678 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27679
27680         * doc/sourcebuild.texi (Testsuites): Fix markup.
27681         Use pathnames relative to gcc/testsuite.
27682         (Test Directives): Move description of how timeout is determined.
27683         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
27684         (C Tests): Correct gcc.misc-tests directory.
27685         Framework tests now live in gcc.test-framework.
27686
27687 2010-03-16  Richard Guenther  <rguenther@suse.de>
27688
27689         PR middle-end/43379
27690         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
27691         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
27692
27693 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
27694             Alexandre Oliva  <aoliva@redhat.com>
27695
27696         PR tree-optimization/42917
27697         * lambda-code.c (remove_iv): Skip debug statements.
27698         (lambda_loopnest_to_gcc_loopnest): Likewise.
27699         (not_interesting_stmt): Debug statements are not interesting.
27700
27701 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
27702
27703         PR debug/43051
27704         PR debug/43092
27705         * cselib.c (cselib_preserve_constants,
27706         cfa_base_preserved_val): New static variables.
27707         (preserve_only_constants): New function.
27708         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
27709         clear its REG_VALUES.  If cselib_preserve_constants, don't
27710         empty the whole hash table, but preserve there VALUEs with constants,
27711         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
27712         (cselib_preserve_cfa_base_value): New function.
27713         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
27714         (cselib_init): Change argument to int bitfield.  Set
27715         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
27716         is in it.
27717         (cselib_finish): Clear cselib_preserve_constants and
27718         cfa_base_preserved_val.
27719         * cselib.h (enum cselib_record_what): New enum.
27720         (cselib_init): Change argument to int.
27721         (cselib_preserve_cfa_base_value): New prototype.
27722         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
27723         * dse.c (dse_step1): Likewise.
27724         * cfgcleanup.c (thread_jump): Likewise.
27725         * sched-deps.c (sched_analyze): Likewise.
27726         * gcse.c (local_cprop_pass): Likewise.
27727         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
27728         If FN is non-NULL, call the callback always and whenever it returns
27729         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
27730         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
27731         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
27732         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
27733         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
27734         * var-tracking.c: Include recog.h.
27735         (bb_stack_adjust_offset): Remove.
27736         (vt_stack_adjustments): Don't call it, instead just gather the
27737         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
27738         (adjust_stack_reference): Remove.
27739         (compute_cfa_pointer): New function.
27740         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
27741         (struct adjust_mem_data): New type.
27742         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
27743         functions.
27744         (get_address_mode): New function.
27745         (replace_expr_with_values): Use it.
27746         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
27747         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
27748         (adjust_sets): Remove.
27749         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
27750         Use get_address_mode.
27751         (get_adjusted_src): Remove.
27752         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
27753         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
27754         (add_with_sets): Don't call adjust_sets.
27755         (fp_setter, vt_init_cfa_base): New functions.
27756         (vt_initialize): Change return type to bool.  Move most of pool etc.
27757         initialization to the beginning of the function from end.  Pass
27758         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
27759         If !frame_pointer_needed, call vt_stack_adjustment before mos
27760         vector is filled, call vt_init_cfa_base if argp/framep has been
27761         eliminated to sp.  If frame_pointer_needed and argp/framep has
27762         been eliminated to hard frame pointer, set
27763         hard_frame_pointer_adjustment and call vt_init_cfa_base after
27764         encountering fp setter in the prologue.  For MO_ADJUST, call
27765         log_op_type before pusing the op into mos vector, not afterwards.
27766         Call adjust_insn before cselib_process_insn/add_with_sets,
27767         call cancel_changes (0) afterwards.
27768         (variable_tracking_main_1): Adjust for vt_initialize calling
27769         vt_stack_adjustments and returning whether it succeeded or not.
27770
27771 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
27772
27773         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
27774         debug statements.
27775
27776 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
27777
27778         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
27779         has been set.
27780         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
27781         drap_reg has not been set.
27782
27783 2010-03-15  Michael Matz  <matz@suse.de>
27784
27785         PR middle-end/43300
27786         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
27787         use it to expand block copies.
27788         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
27789         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
27790         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
27791
27792 2010-03-15  Richard Guenther  <rguenther@suse.de>
27793
27794         PR tree-optimization/43367
27795         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
27796         elimination check.
27797
27798 2010-03-15  Richard Guenther  <rguenther@suse.de>
27799
27800         PR tree-optimization/43317
27801         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
27802
27803 2010-03-15  Martin Jambor  <mjambor@suse.cz>
27804
27805         PR tree-optimization/43141
27806         * tree-sra.c (create_abstract_origin): New function.
27807         (modify_function): Call create_abstract_origin.
27808
27809 2010-03-15  Chris Demetriou  <cgd@google.com>
27810
27811         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
27812         wasn't copied.
27813
27814 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27815
27816         PR middle-end/43354
27817         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
27818         call insert_out_of_ssa_copy for default definitions.
27819
27820 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27821
27822         * graphite-clast-to-gimple.c (my_long_long): Defined.
27823         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
27824         * graphite-sese-to-poly.c (my_long_long): Defined.
27825         (scop_ivs_can_be_represented): Use it.
27826
27827 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27828
27829         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
27830         graphite-max-bbs-per-function, and loop-block-tile-size.
27831         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
27832         with "maximum".
27833         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
27834
27835 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27836
27837         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
27838         forward declaration.
27839         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
27840         (add_upper_bounds_from_estimated_nit): New.
27841         (build_loop_iteration_domains): Use it.
27842
27843 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27844
27845         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
27846
27847 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27848
27849         PR middle-end/43306
27850         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
27851         should be an INTEGER_CST.  Also handle CASE_CONVERT.
27852
27853 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27854
27855         * graphite.c (graphite_initialize): To bound the number of bbs per
27856         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
27857         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
27858         * doc/invoke.texi: Document it.
27859
27860 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27861
27862         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
27863         * graphite-sese-to-poly.h (build_poly_scop): Same.
27864
27865 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
27866
27867         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
27868         the number of parameters in the scop.  Use as an upper bound
27869         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
27870         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
27871         * doc/invoke.texi: Document it.
27872
27873 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
27874
27875         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
27876         * doc/c-tree.texi: Remove.
27877         * doc/generic.texi: Merge c-tree.texi here.
27878         * doc/gccint.texi (Trees): Remove menu entry.
27879         (c-tree.texi): Remove @include.
27880         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
27881         * doc/languages.texi (Reading RTL): Ditto.
27882
27883 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
27884
27885         PR target/42869
27886         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
27887
27888 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
27889
27890         PR middle-end/42431
27891         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
27892         code added to work around reload clobbering CONST insns.
27893
27894 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
27895
27896         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
27897         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
27898         (cselib_preserve_only_values): Remove retain argument, don't
27899         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
27900         * cselib.h (cselib_preserve_only_values): Remove retain argument.
27901         * var-tracking.c (micro_operation): Move insn field before union.
27902         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
27903         (struct variable_tracking_info_def): Remove n_mos field, change
27904         mos into a vector of micro_operations.
27905         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
27906         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
27907         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
27908         changing into a vector.
27909         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
27910         come before all other uops generated by add_stores.
27911         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
27912         argument removal.
27913         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
27914         a vector.  Run just one pass over the bbs instead of separate counting
27915         and computation phase.
27916         (vt_finalize): Free VTI (bb)->mos vector instead of array.
27917
27918         PR debug/43329
27919         * tree-inline.c (remap_decls): Put old_var rather than origin_var
27920         into *nonlocalized_list vector.
27921         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
27922         even if origin is non-NULL.
27923         (gen_variable_die): Likewise.
27924         (process_scope_var): Don't change origin.
27925         (gen_decl_die): Likewise.
27926         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
27927         before adding new edges instead of after it, fix moving over
27928         debug stmts.
27929
27930 2010-03-11  David S. Miller  <davem@davemloft.net>
27931
27932         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
27933         of four.
27934         * configure: Rebuild.
27935
27936 2010-03-11  Martin Jambor  <mjambor@suse.cz>
27937
27938         PR tree-optimization/43257
27939         * tree.c (assign_assembler_name_if_neeeded): New function.
27940         (free_lang_data_in_cgraph): Assembler name assignment moved to the
27941         above new function.
27942         * tree.h (assign_assembler_name_if_neeeded): Declare.
27943         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
27944         the function if needed.
27945
27946 2010-03-11  Chris Demetriou  <cgd@google.com>
27947
27948         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
27949         include/stdint-gcc.h, and include/stdint.h world-readable.
27950
27951 2010-03-11  Richard Guenther  <rguenther@suse.de>
27952
27953         PR tree-optimization/43255
27954         * tree-vrp.c (process_assert_insertions_for): Do not insert
27955         asserts for trivial conditions.
27956
27957 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27958
27959         PR tree-optimization/43280
27960         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
27961         generation.  Move calculation of size out of the if branch.
27962         (find_bswap): Modify compare number generation.
27963
27964 2010-03-11  Richard Guenther  <rguenther@suse.de>
27965
27966         PR lto/43200
27967         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
27968         (input_gimple_stmt): Fixup handled component types during
27969         operand read.  Also fix up decls in ADDR_EXPRs.
27970
27971 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
27972
27973         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
27974         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
27975
27976 2010-03-10  Jan Hubicka  <jh@suse.cz>
27977
27978         PR c/43288
27979         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
27980         * varasm.c (get_variable_section): Don't do that here...
27981         (make_decl_rtl): ... and here.
27982         (do_assemble_alias): Produce decl RTL.
27983         (assemble_alias): Likewise.
27984
27985 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
27986
27987         PR debug/43290
27988         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
27989         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
27990         of fde->vdrap_reg.
27991         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
27992         (based_loc_descr): Only express drap or vdrap regno based expressions
27993         using DW_OP_fbreg when not optimizing.
27994         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
27995         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
27996         REG_CFA_SET_VDRAP note.
27997
27998 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
27999
28000         PR tree-optimization/43236
28001         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
28002         error in calculation of base address in reverse iteration case.
28003         (generate_builtin): Take number of latch executions if the statement
28004         is in the latch.
28005
28006 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
28007
28008         PR middle-end/42859
28009         * tree-eh.c: Include pointer-set.h.
28010         (lower_eh_dispatch): Filter out duplicate case labels and
28011         remove the unneeded edge when the label is unused.  Return
28012         true when some edges are removed.
28013         (execute_lower_eh_dispatch): When any lowering resulted in
28014         removing an edge, also delete unreachable blocks.
28015
28016 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
28017
28018         PR bootstrap/43287
28019         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28020         UNSPEC_MACHOPIC_OFFSET.
28021
28022 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
28023
28024         PR target/43294
28025         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
28026         (m68k_delegitimize_address): New function.
28027
28028 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
28029
28030         PR debug/43299
28031         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
28032
28033         PR debug/43299
28034         * var-tracking.c (adjust_sets): New function.
28035         (count_with_sets, add_with_sets): Use it.
28036         (get_adjusted_src): New inline function.
28037         (add_stores): Use it.
28038
28039         PR debug/43304
28040         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
28041         call cselib_dummy_expand_value_rtx_cb instead of
28042         cselib_expand_value_rtx_cb.
28043
28044         PR debug/43293
28045         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
28046         * config/i386/i386.c: Include debug.h and dwarf2out.h.
28047         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
28048         and .cfi_endproc around the pic thunks.
28049         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
28050         all queued unwind info register saves are saved before the call.
28051         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
28052         considered as sp-=4 for unwind info and the pop as sp+=4 which
28053         also clobbers dest, but doesn't actually restore it.
28054
28055         PR debug/43290
28056         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
28057         RTX_FRAME_RELATED_P.
28058
28059 2010-03-09  Jie Zhang  <jie@codesourcery.com>
28060
28061         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
28062         whitespaces in output template.
28063
28064 2010-03-09  Jie Zhang  <jie@codesourcery.com>
28065
28066         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
28067         out array boundary.
28068
28069 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
28070
28071         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
28072         builtins.exp in a separate job.
28073
28074 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28075
28076         * graphite-sese-to-poly.c (add_param_constraints): Use
28077         lower_bound_in_type and upper_bound_in_type.
28078
28079 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28080
28081         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
28082         instead of unsigned_type_node.
28083
28084 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28085             Reza Yazdani  <reza.yazdani@amd.com>
28086
28087         PR middle-end/43065
28088         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
28089         on pointer type parameters.
28090
28091 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
28092
28093         PR middle-end/42644
28094         PR middle-end/42130
28095         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
28096         handle conversions from pointer to integers.
28097         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
28098         induction variable, to be able to work with code generated by CLooG.
28099         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
28100         (build_poly_scop): Bail out if we cannot codegen a loop.
28101
28102 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
28103
28104         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
28105         code generation with gloog_error.
28106
28107 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28108
28109         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
28110         Call fold_convert on all the returned values.
28111         (expand_scalar_variables_expr): Pass to
28112         expand_scalar_variables_ssa_name the type of the resulting expression.
28113
28114 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28115
28116         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
28117         ppl_min_for_le_pointset.
28118         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
28119         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
28120
28121 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28122
28123         * graphite-dependences.c (map_into_dep_poly): Removed.
28124         (dependence_polyhedron_1): Use combine_context_id_scat.
28125
28126 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28127
28128         * graphite-poly.h (struct poly_scattering): Add layout documentation.
28129         (struct poly_bb): Same.
28130         (combine_context_id_scat): New.
28131
28132 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28133
28134         PR middle-end/42326
28135         * sese.c (name_defined_in_loop_p): Return false for default
28136         definitions.
28137
28138 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28139
28140         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
28141         and clean up the logic.
28142
28143 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
28144
28145         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
28146         early return.
28147
28148 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
28149
28150         * var-tracking.c (remove_cselib_value_chains): Define only for
28151         ENABLE_CHECKING.
28152         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
28153         delete_slot_part, emit_notes_for_differences_1): Don't call
28154         remove_cselib_value_chains here.
28155         (set_slot_part, emit_notes_for_differences_2): Don't call
28156         add_cselib_value_chains here.
28157         (preserved_values): New vector.
28158         (preserve_value): New function.
28159         (add_uses, add_stores, vt_add_function_parameters): Use it
28160         instead of cselib_preserve_value.
28161         (changed_values_stack): New vector.
28162         (check_changed_vars_0): New function.
28163         (check_changed_vars_1, check_changed_vars_2): Use it.
28164         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
28165         changed_values_stack VALUEs.
28166         (vt_emit_notes): For all preserved_values call
28167         add_cselib_value_chains.  If ENABLE_CHECKING call
28168         remove_cselib_value_chains before verifying value_chains is empty.
28169         Initialize and free changed_values_stack.
28170         (vt_initialize): Initialize preserved_values.
28171         (vt_finalize): Free preserved_values.
28172
28173 2010-03-08  Richard Guenther  <rguenther@suse.de>
28174
28175         PR tree-optimization/43269
28176         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
28177         region detection.
28178
28179 2010-03-08  Martin Jambor  <mjambor@suse.cz>
28180
28181         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
28182         (ipa_is_param_called): Removed.
28183         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
28184         (ipa_print_node_params): Do not print the called flag.
28185         (ipa_write_node_info): Do not stream the called flag.
28186         (ipa_read_node_info): Likewise.
28187
28188 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
28189
28190         PR debug/43176
28191         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
28192         * cselib.c (struct expand_value_data): Add dummy field.
28193         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
28194         dummy to false.
28195         (cselib_dummy_expand_value_rtx_cb): New function.
28196         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
28197         any rtl.
28198         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
28199         * var-tracking.c: Include pointer-set.h.
28200         (variable): Change n_var_parts to char from int.  Add
28201         cur_loc_changed and in_changed_variables fields.
28202         (variable_canonicalize): Remove.
28203         (shared_var_p): New inline function.
28204         (unshare_variable): Maintain cur_loc_changed and
28205         in_changed_variables fields.  If var was in changed_variables,
28206         replace it there with new_var.  Just copy cur_loc instead of
28207         resetting it to something else.
28208         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
28209         (dataflow_set_union): Don't call variable_canonicalize.
28210         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
28211         of their DEBUG_EXPR_TREE_DECLs.
28212         (canonicalize_loc_order_check): Verify that cur_loc is NULL
28213         and in_changed_variables and cur_loc_changed is false.
28214         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
28215         and cur_loc_changed.  Don't update cur_loc here.
28216         (variable_merge_over_src): Don't call variable_canonicalize.
28217         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
28218         removing loc that is equal to cur_loc, clear cur_loc,
28219         set cur_loc_changed and ensure variable_was_changed is called.
28220         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
28221         compare pointers in cur_loc check, if it is equal to loc,
28222         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
28223         (variable_different_p): Remove compare_current_location argument,
28224         don't compare cur_loc.
28225         (dataflow_set_different_1): Adjust variable_different_p caller.
28226         (variable_was_changed): If dv had some var in changed_variables
28227         already, reset in_changed_variables flag for it and propagate
28228         cur_loc_changed over to the new variable.  On empty var
28229         always set cur_loc_changed.  Set in_changed_variables on whatever
28230         var is added to changed_variables.
28231         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
28232         Use shared_var_p.  When removing loc that is equal to cur_loc,
28233         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
28234         end, don't set it to something else, just call variable_was_changed.
28235         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
28236         loc being removed, clear cur_loc and set cur_loc_changed.
28237         Set cur_loc_changed if all locations have been removed.
28238         (struct expand_loc_callback_data): New type.
28239         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
28240         allocated.  Always create SUBREGs if simplify_subreg failed.
28241         Prefer to use cur_loc, when that fails and still in
28242         changed_variables (and seen first time) recompute it.  Set
28243         cur_loc_changed of variables which had to change cur_loc and
28244         compute elcd->cur_loc_changed if any of the subexpressions used
28245         had to change cur_loc.
28246         (vt_expand_loc): Adjust to pass arguments in
28247         expand_loc_callback_data structure.
28248         (vt_expand_loc_dummy): New function.
28249         (emitted_notes): New variable.
28250         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
28251         that weren't used for any other decl in current
28252         emit_notes_for_changes call call vt_expand_loc_dummy to update
28253         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
28254         first loc_chain location if NULL before.  Always use just
28255         cur_loc instead of first loc_chain location.  When cur_loc_changed
28256         is false, when not --enable-checking=rtl just don't emit any note.
28257         When rtl checking, compute the note and assert it is the same
28258         as previous note.  Clear cur_loc_changed and in_changed_variables
28259         at the end before removing from changed_variables.
28260         (check_changed_vars_3): New function.
28261         (emit_notes_for_changes): Traverse changed_vars to call
28262         check_changed_vars_3 on each changed var.
28263         (emit_notes_for_differences_1): Clear cur_loc_changed and
28264         in_changed_variables.  Recompute cur_loc of new_var.
28265         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
28266         (vt_emit_notes): Initialize and destroy emitted_notes.
28267
28268 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
28269
28270         PR rtl-optimization/42220
28271         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
28272         Use verify_reg_tracked to determine if we should use OP_OUT rather
28273         than OP_INOUT.
28274         (build_def_use): If we see an in-out operand for a register that we
28275         know nothing about, treat is an output if possible, fail the block if
28276         not.
28277
28278 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
28279
28280         PR debug/42897
28281         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
28282         permanently.
28283
28284 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
28285
28286         PR debug/42897
28287         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
28288         uses of relevant DEFs that are dead outside the loop too.
28289
28290 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
28291
28292         * var-tracking.c (dataflow_set_merge): Swap src and src2.
28293         Reverted:
28294         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28295         PR debug/41371
28296         * var-tracking.c (values_to_unmark): New variable.
28297         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28298         values_to_unmark vector.  Moved body to...
28299         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28300         instead queue it into values_to_unmark vector.
28301         (vt_find_locations): Free values_to_unmark vector.
28302
28303 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
28304
28305         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
28306         (site.exp): Export them when plugins are enabled.
28307
28308 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
28309
28310         PR middle-end/42326
28311         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
28312         that contain scevs.
28313         (chrec_fold_multiply): Same.
28314
28315 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
28316
28317         PR c/43248
28318         * c-decl.c (build_compound_literal): Return early if init is
28319         an error_mark_node.
28320
28321 2010-03-04  Martin Jambor  <mjambor@suse.cz>
28322
28323         PR tree-optimization/43164
28324         PR tree-optimization/43191
28325         * tree-sra.c (type_consists_of_records_p): Reject records with
28326         zero-size bit-fields at the end.
28327
28328 2010-03-04  Mike Stump  <mikestump@comcast.net>
28329
28330         * Makefile.in (TAGS): Remove *.y.
28331
28332 2010-03-04  Richard Guenther  <rguenther@suse.de>
28333
28334         PR tree-optimization/40761
28335         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
28336         in reverse order.
28337         (my_rev_post_order_compute): New function.
28338         (init_pre): Call it.
28339
28340 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
28341
28342         PR middle-end/43209
28343         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
28344         decrease the cost of an IV candidate when the cost is infinite.
28345
28346 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28347
28348         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
28349         Use '3DNow!' for the extension of that name, ensure normal space
28350         after the string.
28351         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
28352
28353 2010-03-03  Jeff Law  <law@redhat.com>
28354
28355         * PR middle-end/32693
28356         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
28357         than gen_rtx_SUBREG.
28358         (extract_bit_field_1): Likewise.
28359
28360 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
28361
28362         * doc/sourcebuild.texi (Test directives): Document that arguments
28363         include-opts and exclude-opts are now optional for dg-skip-if,
28364         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
28365
28366 2010-03-03  Jason Merrill  <jason@redhat.com>
28367
28368         PR c++/12909
28369         * cgraph.h (varpool_node): Add extra_name field.
28370         * varpool.c (varpool_extra_name_alias): New.
28371         (varpool_assemble_decl): Emit extra name aliases.
28372         (varpool_mark_needed_node): Look past an extra name alias.
28373         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
28374         * lto-streamer-in.c (lto_input_tree): Read it.
28375         * lto-streamer-out.c (output_unreferenced_globals): Write it.
28376
28377 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28378
28379         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
28380         (sparc*-*-solaris2*): ...this.
28381
28382 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
28383
28384         PR debug/43229
28385         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
28386         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
28387         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
28388         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
28389
28390         PR debug/43237
28391         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
28392         fallthrough to default handling, just with want_address 0 instead of 2.
28393         For single element lists, add_AT_loc directly, otherwise create an
28394         artificial variable DIE and stick location list to it.
28395
28396         PR debug/43177
28397         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
28398         (VAL_EXPR_HAS_REVERSE): Define.
28399         (reverse_op): New function.
28400         (add_stores): For reversible operations add an extra MO_VAL_USE.
28401
28402 2010-03-02  Jason Merrill  <jason@redhat.com>
28403
28404         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
28405
28406 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
28407
28408         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
28409         (sparc64-*-linux*): Likewise.
28410         (sparc64-*-solaris2*): Include assembler files before linker ones.
28411         (sparc-*-solaris2*): Simplify and reorder to match previous case.
28412         * config/sparc/gas.h: Delete.
28413         * config/sparc/sol2-64.h: Add copyright notice.
28414         * config/sparc/sol2-gas-bi.h: Likewise.
28415         * config/sparc/sol2-gld.h: Likewise.
28416         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
28417         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
28418         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
28419         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
28420         (sparc_elf_asm_named_section): Rename into...
28421         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
28422
28423 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
28424
28425         * config/alpha/alpha.c (override_options): Fix -mtune error message.
28426
28427 2010-03-02  Jeff Law  <law@redhat.com>
28428
28429         PR middle-end/42431
28430         * reload1.c (rtx_p, substitute_stack): Declare.
28431         (substitute): Record addresses of changed rtxs.
28432         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
28433         Restore the original rtx when complete.
28434         (reload): Free subsitute_stack when complete.
28435
28436 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
28437
28438         * doc/gccint.texi (menu): Add Testsuites as a chapter.
28439         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
28440         new chapter.
28441         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
28442         LTO Testing, gcov Testing, profopt Testing, compat Testing,
28443         Torture Tests): Change from subsection to section.
28444
28445 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
28446             Steven Bosscher  <steven@gcc.gnu.org>
28447
28448         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
28449         instead of bb.
28450
28451 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
28452
28453         PR middle-end/42640
28454         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
28455         the assignment from the new induction variable to the assignment
28456         of the value from the original loop PHI function.
28457
28458 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
28459             Daniel Jacobowitz  <dan@codesourcery.com>
28460
28461         * doc/sourcebuild.texi (Test directives): Clarify options to
28462         dg-skip-if.
28463
28464 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28465
28466         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
28467         Disable cfi directives unless GCC and gas agree on using read-only
28468         .eh_frame sections for 64-bit.
28469         * configure: Regenerate.
28470
28471 2010-03-01  Richard Guenther  <rguenther@suse.de>
28472
28473         PR tree-optimization/43220
28474         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
28475         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
28476
28477 2010-03-01  Richard Guenther  <rguenther@suse.de>
28478             Martin Jambor  <mjambor@suse.cz>
28479
28480         PR middle-end/41250
28481         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
28482         gimplified parameters.
28483
28484 2010-03-01  Christian Bruel  <christian.bruel@st.com>
28485
28486         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
28487
28488 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
28489
28490         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
28491
28492 2010-03-01  Richard Guenther  <rguenther@suse.de>
28493
28494         PR middle-end/43213
28495         * expr.c (expand_assignment): Use the alias-oracle to tell
28496         if the rhs aliases the result decl.
28497
28498 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28499
28500         PR pch/14940
28501         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
28502         to sol_gt_pch_get_address.
28503         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
28504         64-bit, SPARC and x86.
28505         (sol_gt_pch_get_address): New function.
28506
28507 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
28508
28509         * toplev.h (inform_n, error_n): Declare.
28510         * diagnostic.c (inform_n, error_n): New function.
28511
28512 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
28513
28514         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
28515         has no rtl yet when processing local_decls, queue it and recheck
28516         if deferred stack allocation hasn't assigned it rtl.
28517
28518 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
28519
28520         * config/sh/sh.c (unspec_bbr_uid): New.
28521         (gen_block_redirect): Use it instead of INSN_UID.
28522         (gen_far_branch): Likewise.
28523
28524 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
28525
28526         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
28527         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
28528
28529 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28530
28531         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
28532         (Warning Options): -Wno-conversion-null is valid for
28533         Objective-C++ as well.
28534         * doc/tm.texi (Named Address Spaces): Likewise.
28535         * doc/plugins.texi (Plugins): Replace TABs with spaces.
28536         * doc/tree-ssa.texi (Tree SSA): Likewise.
28537
28538 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
28539
28540         PR bootstrap/43202
28541         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
28542         by default.  Don't set the default arch for
28543         i[34567]86-*-darwin*|x86_64-*-darwin*.
28544
28545 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
28546
28547         PR bootstrap/43202
28548         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
28549         default.  Set the default 32bit/64bit archs with $with_arch
28550         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
28551
28552 2010-02-27  Richard Guenther  <rguenther@suse.de>
28553
28554         PR tree-optimization/43186
28555         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
28556         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
28557         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
28558         unroller iterations.
28559
28560 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
28561
28562         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
28563         required and i[34567]86-*-* targets don't support 64bit ISA.
28564
28565 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
28566
28567         PR ada/43096
28568         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
28569         the same alias set.
28570
28571 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
28572
28573         * config.gcc: Set the default arch at least to Prescott for
28574         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
28575         if SSE math is enabled.
28576
28577 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28578
28579         * diagnostic.c (diagnostic_initialize): Update.
28580         (diagnostic_report_diagnostic): Test inhibit_notes_p for
28581         informative notes.
28582         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
28583         (diagnostic_inhibit_notes): New.
28584         * toplev.c (process_options): inhibit notes with -fcompare-debug.
28585
28586 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28587
28588         PR c/20631
28589         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
28590         * doc/standards.texi: Likewise.
28591         * doc/extend.texi: Likewise.
28592         * doc/trouble.texi: Likewise.
28593         * doc/cppopts.texi: Likewise.
28594         * doc/install.texi: Likewise.
28595         * c.opt (std=c90,std=gnu90): New options.
28596         * c-opts.c (c_common_handle_option): Handle them.
28597
28598 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28599
28600         PR c/24577
28601         * c-decl.c (undeclared_variable): Use an informative note.
28602
28603 2010-02-26  Richard Guenther  <rguenther@suse.de>
28604
28605         PR tree-optimization/43186
28606         * gimple.h (gimple_fold): Remove.
28607         * gimple.c (gimple_fold): Remove.  Inline into single user ...
28608         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
28609         Try harder for conditions.
28610
28611 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
28612
28613         PR debug/43190
28614         * function.c (used_types_insert): Don't skip through named pointer
28615         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
28616         and it is different from the main variant's type.
28617
28618 2010-02-26  Nick Clifton  <nickc@redhat.com>
28619
28620         * config/rx/rx.md (sminsi3): Remove bogus alternative.
28621
28622 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
28623
28624         * config.gcc: Support --with-fpmath=sse for x86.
28625
28626         * config/i386/ssemath.h: New.
28627
28628         * doc/install.texi (--with-fpmath=sse): Documented.
28629
28630 2010-02-26  Richard Guenther  <rguenther@suse.de>
28631
28632         PR tree-optimization/43188
28633         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
28634         vector types of over-aligned element type.
28635
28636 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
28637
28638         PR target/43175
28639         * config/i386/i386.c (expand_vec_perm_blend): Use correct
28640         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
28641
28642 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
28643
28644         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
28645
28646 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
28647
28648         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
28649         * var-tracking.c: Include diagnostic.h.
28650         (debug_dv): New function.
28651         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
28652
28653         PR debug/43160
28654         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
28655         (add_value_chain, add_value_chains, remove_value_chain,
28656         remove_value_chains): Handle DEBUG_EXPRs.
28657         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
28658
28659         PR debug/43161
28660         * regcprop.c (struct queued_debug_insn_change): New type.
28661         (struct value_data_entry): Add debug_insn_changes field.
28662         (struct value_data): Add n_debug_insn_changes field.
28663         (debug_insn_changes_pool): New variable.
28664         (free_debug_insn_changes, apply_debug_insn_changes,
28665         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
28666         (kill_value_one_regno): Call free_debug_insn_changes if needed.
28667         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
28668         fields.
28669         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
28670         changes for them.
28671         (copyprop_hardreg_forward_1): Don't call apply_change_group for
28672         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
28673         changes, call cprop_find_used_regs via note_stores.
28674         (copyprop_hardreg_forward): When copying vd from predecessor
28675         which has any queued DEBUG_INSN changes, make sure the pointers are
28676         cleared.  At the end call df_analyze and then if there are any
28677         DEBUG_INSN changes queued at the end of some basic block for still
28678         live registers, apply them.
28679         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
28680
28681 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
28682
28683         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
28684         (arm*-*-*): Ditto.
28685
28686 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
28687
28688         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
28689         targets.  Set the default with_cpu/with_arch from arch/cpu.
28690         Allow x86-64 and native for with_cpu/with_arch.
28691
28692 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
28693
28694         * ebitmap.c: Change calls to verify_popcount with calls to
28695         sbitmap_verify_popcount.
28696         (ebitmap_clear_bit): Fixed map->cacheindex test and
28697         map>cache update when bit clearing results in an empty
28698         element.
28699
28700 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
28701
28702         PR target/43154
28703         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
28704         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
28705         and support both V2DF and V2DI modes.
28706         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
28707         support both V2DF and V2DI modes.
28708         (general): Delete trailing whitespace from a few patterns.
28709
28710         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28711         V2DF/V2DI interleave high/low builtins.
28712
28713         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
28714         new VSX builtins.
28715
28716         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
28717         interleave high/low functions.
28718
28719 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
28720
28721         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
28722         #pragma extern_prefix.
28723
28724 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
28725
28726         PR debug/43166
28727         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
28728         BLKmode, assert op0 is a MEM and just adjust its mode.
28729
28730         PR debug/43165
28731         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
28732         if bitpos isn't multiple of mode's bitsize.
28733
28734 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28735
28736         * c.opt (-ftemplate-depth=): New.
28737         (-ftemplate-depth-): Deprecate.
28738         * optc-gen.awk: Handle -ftemplate-depth=.
28739         * opth-gen.awk: Likewise.
28740         * c-opts.c (c_common_handle_option): Likewise.
28741         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
28742
28743 2010-02-24  Jason Merrill  <jason@redhat.com>
28744
28745         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
28746
28747 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28748
28749         * cfg.c (alloc_aux_for_block): Remove inline.
28750         (alloc_aux_for_edge): Likewise.
28751
28752 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28753
28754         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
28755
28756 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28757
28758         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
28759         * config/i386/sol2-gas.h: New file.
28760         * config.gcc (i[34567]86-*-solaris2*): Use it.
28761
28762 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28763
28764         PR c/43128
28765         * c-typeck.c (ep_convert_and_check): New.
28766         (build_conditional_expr): Use it.
28767         (build_binary_op): Likewise.
28768
28769 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
28770
28771         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
28772
28773         PR debug/43150
28774         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
28775         bounds even for -O+.
28776         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
28777         expr needs to have DECL_NAME set.
28778
28779 2010-02-24  Nick Clifton  <nickc@redhat.com>
28780
28781         * config/mep/mep.c: Include gimple.h.
28782         (mep_function_uses_sp): Delete unused function.
28783         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
28784         parameters.  Use unsigned integers to count args.  Return a
28785         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
28786
28787 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
28788
28789         PR target/43107
28790         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
28791         greater or equal to nelt instead of 2 * nelt.
28792         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
28793         with nelt - 1.
28794
28795 2010-02-23  Jason Merrill  <jason@redhat.com>
28796
28797         PR debug/42800
28798         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
28799         in cfun->local_decls even if they have register types.
28800
28801         PR c++/42837
28802         * stor-layout.c (place_field): Don't warn about unnecessary
28803         DECL_PACKED if the type is packed.
28804
28805 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
28806
28807         PR target/43139
28808         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
28809         GOTOFF relocs, even when the base reg isn't pic pointer.
28810
28811 2010-02-23  Michael Matz  <matz@suse.de>
28812
28813         PR debug/43077
28814         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
28815         (expand_gimple_basic_block): Generate and use debug temps if there
28816         are debug uses left after the last real use of TERed ssa names.
28817         Unlink debug immediate uses when they are expanded.
28818
28819 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28820
28821         PR 43123
28822         * config/i386/i386.c (override_options): Reorganise to provide
28823         better error messages.
28824
28825 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28826
28827         PR middle-end/43083
28828         * graphite-scop-detection.c (create_single_exit_edge): Move
28829         the call to find_single_exit_edge to....
28830         (create_sese_edges): ...here.  Don't handle multiple edges
28831         exiting the function.
28832         (build_graphite_scops): Don't handle multiple edges
28833         exiting the function.
28834
28835 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28836
28837         PR middle-end/43097
28838         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
28839         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
28840
28841 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28842
28843         PR middle-end/43026
28844         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
28845
28846 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28847
28848         PR c++/43126
28849         * c-typeck.c (convert_arguments): Print declaration location.
28850         * c-common.c (validate_nargs): Rename as
28851         builtin_function_validate_nargs.
28852         (check_builtin_function_arguments): Update.
28853
28854 2010-02-22  Richard Guenther  <rguenther@suse.de>
28855
28856         PR lto/43045
28857         * tree-inline.c (declare_return_variable): Use the type of
28858         the call stmt lhs if available.
28859
28860 2010-02-22  Duncan Sands  <baldrick@free.fr>
28861
28862         * passes.c (register_pass): Always consider all pass lists when
28863         ref_pass_instance_number is zero.
28864
28865 2010-02-22  Richard Guenther  <rguenther@suse.de>
28866
28867         PR tree-optimization/42749
28868         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
28869         parameter.  Do arithmetic in the original type.
28870         (update_accumulator_with_ops): Likewise.
28871         (adjust_accumulator_values): Adjust.
28872
28873 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28874
28875         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
28876         (QI to BLKmode splitter): New splitter.
28877
28878 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
28879
28880         * config/i386/i386.c (initial_ix86_tune_features): Turn on
28881         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
28882
28883 2010-02-22  Richard Guenther  <rguenther@suse.de>
28884
28885         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
28886
28887 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
28888
28889         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
28890         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
28891         ($(T)crti.o, $(T)crtn.o): Remove rules.
28892
28893 2010-02-21  Tobias Burnus  <burnus@net-b.de>
28894
28895         PR fortran/35259
28896         * doc/invoke.texi (-fassociative-math): Document that this
28897         option is automatically enabled for Fortran.
28898
28899 2010-02-20  David S. Miller  <davem@davemloft.net>
28900
28901         * configure.ac: Test if linker and assembler properly support
28902         GOTDATA_OP relocations.
28903         * configure: Rebuild.
28904         * config.in: Likewise.
28905         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
28906         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
28907         (movsi_high_pic): Likewise.
28908         (movdi_lo_sum_pic): Likewise.
28909         (movdi_high_pic): Likewise.
28910         (movsi_pic_gotdata_op): New pattern.
28911         (movdi_pic_gotdata_op): Likewise.
28912         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
28913         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
28914
28915 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
28916
28917         PR target/43067
28918         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
28919         attribute to ssemul.
28920         (xop_mulv2div2di3_high): Ditto.
28921
28922 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28923
28924         PR c++/35669
28925         * c.opt (Wconversion-null): New option.
28926         * doc/invoke.texi (Wconversion-null): Document.
28927
28928 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28929
28930         * common.opt (Wlarger-than-): Add Undocumented.
28931
28932 2010-02-19  Mike Stump  <mikestump@comcast.net>
28933
28934         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
28935
28936 2010-02-19  Jason Merrill  <jason@redhat.com>
28937
28938         PR target/40332
28939         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
28940         * configure: Likewise.
28941
28942 2010-02-20  Alan Modra  <amodra@gmail.com>
28943
28944         PR middle-end/42344
28945         * cgraph.h (cgraph_make_decl_local): Declare.
28946         * cgraph.c (cgraph_make_decl_local): New function.
28947         (cgraph_make_node_local): Use it.
28948         * cgraphunit.c (cgraph_function_versioning): Likewise.
28949         * ipa.c (function_and_variable_visibility): Likewise.
28950
28951 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
28952
28953         PR bootstrap/43121
28954         * except.c (sjlj_emit_function_enter): Don't call
28955         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
28956         directly.
28957         * rtl.h (add_reg_br_prob_note): Remove prototype.
28958
28959 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28960
28961         PR 41779
28962         * c-common.c (conversion_warning): Remove widening conversions
28963         before checking the conversion of integers to reals.
28964
28965 2010-02-19  Mike Stump  <mikestump@comcast.net>
28966
28967         PR middle-end/43125
28968         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
28969
28970         PR objc/43061
28971         * cgraphunit.c (process_function_and_variable_attributes): Check
28972         DECL_PRESERVE_P instead of looking up attribute "used".
28973         * ipa-pure-const.c (check_decl): Likewise.
28974         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
28975         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
28976         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
28977         instead of attribute "used".
28978         * config/sol2-c.c (solaris_pragma_init): Likewise.
28979         (solaris_pragma_fini): Likewise.
28980
28981 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
28982
28983         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
28984         Use XCNEW instead of xcalloc.
28985         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
28986         XNEW instead of xmalloc.
28987         (get_fields): Use XNEWVEC instead of xmalloc.
28988
28989         PR debug/43084
28990         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
28991         populate vars array.
28992         (create_new_general_access): For debug stmts just reset value.
28993         (get_stmt_accesses): For accesses within debug stmts just record them
28994         using add_access_to_acc_sites instead of preventing the peeling or
28995         counting them as accesses.
28996
28997         PR middle-end/42233
28998         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
28999
29000 2010-02-19  Richard Guenther  <rguenther@suse.de>
29001
29002         PR tree-optimization/42916
29003         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
29004         instructions.
29005
29006 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
29007
29008         * configure.ac: Replace all uses of changequote in macro arguments
29009         with proper quoting.
29010
29011 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
29012
29013         PR middle-end/42233
29014         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
29015
29016 2010-02-19  Richard Guenther  <rguenther@suse.de>
29017
29018         PR tree-optimization/42944
29019         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
29020         test for aliasing with errno.
29021
29022 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
29023
29024         PR middle-end/42233
29025         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
29026         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
29027         * dojump.c: Include output.h.
29028         (inv): New inline function.
29029         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
29030         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
29031         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
29032         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
29033         argument, pass it down to other calls.
29034         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
29035         add REG_BR_PROB note to the conditional jump.
29036         * cfgexpand.c (add_reg_br_prob_note): Removed.
29037         (expand_gimple_cond): Don't call it, add the probability
29038         as last argument to jumpif_1/jumpifnot_1.
29039         * Makefile.in (dojump.o): Depend on output.h.
29040         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
29041         callers.
29042         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
29043         * stmt.c (do_jump_if_equal): Likewise.
29044         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
29045         * loop-unswitch.c (compare_and_jump_seq): Likewise.
29046         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
29047         Likewise.
29048         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
29049         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
29050         jumpifnot_1 callers.
29051         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
29052         callers.
29053         (store_expr): Adjust jumpifnot caller.
29054         (store_constructor): Adjust jumpif caller.
29055
29056         PR middle-end/42233
29057         * gimplify.c (gimple_boolify): For __builtin_expect call
29058         gimple_boolify also on its first argument.
29059
29060 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
29061
29062         * configure.ac (gnu-unique-object): Wrap regexps using [] in
29063         changequote block.
29064         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
29065         * configure: Regenerated.
29066
29067 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29068
29069         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
29070         lang_hooks.types_compatible_p instead of comptypes.
29071
29072 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
29073
29074         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
29075         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
29076         if __prefer_thumb__ is defined.
29077
29078 2010-02-18  Martin Jambor  <mjambor@suse.cz>
29079
29080         PR tree-optimization/43066
29081         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
29082         array with zero-sized element type.
29083
29084 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
29085
29086         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
29087         rtx, allocate struct var_loc_node here and return it to the
29088         caller, and only if it is actually needed.
29089         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
29090         move it earlier and return immediately if it returns NULL.
29091
29092 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
29093
29094         * config/sparc/gas.h: New file.  Restore
29095         TARGET_ASM_NAMED_SECTION to its ELF default.
29096         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
29097         check !HAVE_GNU_AS.
29098         * config/sparc/sparc.c (sparc_elf_asm_named_section):
29099         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
29100         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
29101         after sparc/sysv4.h.
29102
29103 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
29104
29105         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
29106
29107 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
29108
29109         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
29110         patterns from predicated pattern.
29111
29112 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
29113
29114         PR target/43103
29115         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
29116         for insn mnemonic suffix.
29117
29118 2010-02-17  Richard Guenther  <rguenther@suse.de>
29119
29120         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
29121         to loop PHI nodes.
29122
29123 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
29124
29125         PR debug/42918
29126         * caller-save.c (save_call_clobbered_regs): If BB ends with
29127         a DEBUG_INSN, move any notes in between last real insn and the last
29128         DEBUG_INSN after the last DEBUG_INSN.
29129
29130 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
29131
29132         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
29133         Fix return type.  Fix argument type.  Explain meaning of return value.
29134
29135 2010-02-16  Richard Guenther  <rguenther@suse.de>
29136
29137         PR tree-optimization/41043
29138         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
29139         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
29140         statements ...
29141         (vrp_visit_phi_node): ... but only for loop PHI nodes.
29142
29143 2010-02-16  Ira Rosen  <irar@il.ibm.com>
29144
29145         PR tree-optimization/43074
29146         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
29147         * tree-vect-loop.c (vect_analyze_loop_operations): Add
29148         vectorizable cycles in hybrid SLP check.
29149         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
29150
29151 2010-02-16  Richard Guenther  <rguenther@suse.de>
29152
29153         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
29154         (true_dependence): If memrefs_conflict_p computes must-alias
29155         trust it.  Move TBAA check after offset-based disambiguation.
29156         (canon_true_dependence): Likewise.
29157
29158 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
29159
29160         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
29161         * doc/invoke.texi: Document it.
29162         * var-tracking.c: Include toplev.h and params.h.
29163         (vt_find_locations): Return bool indicating success.  Compute
29164         hash sizes unconditionally.  Check new parameter, report.
29165         (variable_tracking_main_1): Check vt_find_locations results and
29166         retry.  Renamed from...
29167         (variable_tracking_main): ... this.  New wrapper to preserve
29168         flag_var_tracking_assignments.
29169         * Makefile.in (var-tracking.o): Adjust dependencies.
29170
29171 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
29172             Jakub Jelinek  <jakub@redhat.com>
29173
29174         PR target/42854
29175         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
29176         if weak_import attribute is present.
29177         * config/darwin.c (machopic_select_section): Likewise.
29178
29179 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
29180
29181         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
29182         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
29183         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
29184         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
29185
29186         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
29187         types.
29188
29189         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29190         Fix argument types.
29191
29192         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
29193         Rewrite text to refer to the names.
29194
29195 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
29196
29197         * config/i386/i386-builtin-types.def
29198         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
29199         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
29200         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
29201         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
29202         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
29203         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
29204         IX86_BUILTIN_VPERMIL2PS256.
29205         (MULTI_ARG_4_DF2_DI_I): Defined.
29206         (MULTI_ARG_4_DF2_DI_I1): Defined.
29207         (MULTI_ARG_4_SF2_SI_I): Defined.
29208         (MULTI_ARG_4_SF2_SI_I1): Defined.
29209         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
29210         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
29211         __builtin_ia32_vpermil2ps256.
29212         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29213         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29214         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
29215         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
29216         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
29217         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
29218         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
29219         CODE_FOR_xop_vpermil2v8sf3.
29220         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
29221         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
29222         * config/i386/xopintrin.h (_mm_permute2_pd): New.
29223         (_mm256_permute2_pd): New.
29224         (_mm_permute2_ps): New.
29225         (_mm256_permute2_ps): New.
29226
29227 2010-02-15  Nick Clifton  <nickc@redhat.com>
29228
29229         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
29230         boolean parameters.  Use emit_jump_insn when emitting a pop
29231         instruction containing a return insn.
29232         (push): Use 'true' rather than '1' as second parameter to F.
29233         (h8300_expand_prologue): Likewise.
29234         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
29235         (h8300_expand_epilogue): Likewise.
29236
29237 2010-02-15  Richard Guenther  <rguenther@suse.de>
29238
29239         PR middle-end/43068
29240         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
29241         if that is zero.
29242
29243 2010-02-15  Nick Clifton  <nickc@redhat.com>
29244
29245         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
29246         delta.
29247
29248 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
29249
29250         * intl.c (fake_ngettext): New function.
29251         * intl.h (fake_ngettext): Declare.
29252         (ngettext): Define macro.
29253         * collect2.c (notice_translated): New function.
29254         (main): Use notice_translated and ngettext.
29255         * collect2.h (notice_translated): Declare.
29256
29257 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
29258
29259         * reorg.c (delete_computation): Comment fixes.
29260         * caller-save.c (setup_save_areas): Idem.
29261         * sel-sched-dump.c (dump_lv_set): Idem.
29262         * rtl.def: Idem.
29263
29264 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29265
29266         * config/s390/s390.c (s390_sched_init): New function.
29267         (TARGET_SCHED_INIT): Target hook defined.
29268
29269 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
29270             Jack Howarth  <howarth@bromo.med.uc.edu>
29271             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
29272
29273         PR target/42982
29274         Partial revert of unintended change in fix for PR41605.
29275         * config/darwin.h: Fix typo.
29276         * config/darwin9.h: Same.
29277
29278 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
29279
29280         * c-pch.c (pch_init): Clear v.
29281
29282 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29283
29284         PR middle-end/42930
29285         * graphite-scop-detection.c (graphite_can_represent_scev): Call
29286         graphite_can_represent_init for MULT_EXPR.
29287
29288 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29289
29290         PR middle-end/42914
29291         PR middle-end/42530
29292         * graphite-sese-to-poly.c (remove_phi): New.
29293         (translate_scalar_reduction_to_array): Call remove_phi.
29294
29295 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29296
29297         PR middle-end/42771
29298         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
29299         * graphite-clast-to-gimple.h (gloog): Update declaration.
29300         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
29301         * graphite-poly.h (struct poly_bb): Add missing comments.
29302         (struct scop): Add poly_scop_p field.
29303         (POLY_SCOP_P): New.
29304         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
29305         * graphite.c (graphite_transform_loops): Build the polyhedral
29306         representation for each scop before code generation.
29307         * sese.c (rename_variables_in_operand): Removed.
29308         (rename_variables_in_expr): Return the renamed expression.
29309         (rename_sese_parameters): New.
29310         * sese.h (rename_sese_parameters): Declared.
29311
29312 2010-02-11  Richard Guenther  <rguenther@suse.de>
29313
29314         PR tree-optimization/42998
29315         * tree-ssa-pre.c (create_expression_by_pieces): Treat
29316         POINTER_PLUS_EXPR properly.
29317
29318 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
29319             Changpeng Fang  <changpeng.fang@amd.com>
29320
29321         PR middle-end/40886
29322         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
29323         the cost of an IV candidate when the IV is used in a test against zero.
29324
29325         * gcc.dg/tree-ssa/ivopts-3.c: New.
29326
29327 2010-02-11  Richard Guenther  <rguenther@suse.de>
29328
29329         PR lto/41664
29330         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
29331         pointer-vs-decl case by swapping refs.  Handle some cases
29332         of pointer-vs-decl disambiguations more conservatively.
29333         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
29334         to false after expanding.
29335
29336 2010-02-11  Richard Guenther  <rguenther@suse.de>
29337
29338         PR driver/43021
29339         * gcc.c (process_command): Handle LTO file@offset case more
29340         appropriately.
29341
29342 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
29343
29344         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
29345         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
29346         of DEBUG_INSNs.
29347         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
29348
29349         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
29350         if MEM's mode size isn't DWARF2_ADDR_SIZE.
29351         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
29352         Optimize eq/ne comparisons when both arguments are known to be
29353         zero-extended.
29354         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
29355         Don't mask operands unnecessarily if they are known to be already
29356         zero-extended.
29357
29358 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
29359
29360         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
29361         instead of loop.
29362
29363 2010-02-10  Richard Guenther  <rguenther@suse.de>
29364
29365         PR tree-optimization/43017
29366         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
29367         for wrapping signed arithmetic.
29368
29369 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
29370
29371         PR debug/43010
29372         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
29373         if no debug info should be emitted for it.
29374
29375 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
29376
29377         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
29378         note when flag_exceptions is set.
29379
29380 2010-02-10  Duncan Sands  <baldrick@free.fr>
29381
29382         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
29383
29384 2010-02-10  Richard Guenther  <rguenther@suse.de>
29385
29386         PR c/43007
29387         * tree.c (get_unwidened): Handle constants.
29388         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
29389
29390 2010-02-10  Martin Jambor  <mjambor@suse.cz>
29391
29392         PR lto/42985
29393         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
29394         check for variable argument counts independently.
29395
29396 2010-02-10  Christian Bruel  <christian.bruel@st.com>
29397
29398         PR target/42841
29399         * config/sh/sh.c (find_barrier): Increase length for non delayed
29400         conditional branches.
29401
29402 2010-02-10  Christian Bruel  <christian.bruel@st.com>
29403
29404         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
29405
29406 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
29407
29408         * builtins.c (set_builtin_user_assembler_name): Also handle
29409         ffs if int is smaller than word.
29410
29411 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
29412
29413         PR middle-end/42973
29414         * ira-conflicts.c (get_dup): Remove.
29415         (process_reg_shuffles): Add new parameter.  Use it as an
29416         additional guard for copy generation.
29417         (add_insn_allocno_copies): Rewrite.
29418
29419 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
29420
29421         * common.opt (fsched2-use-traces): Preserved for backward
29422         compatibility.
29423         * doc/invoke.texi: Remove the documentation about option
29424         -fsched2-use-traces.
29425         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
29426         flag_sched2_use_traces.
29427         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
29428         the backward compatibility flag section.
29429
29430 2010-02-09  Richard Guenther  <rguenther@suse.de>
29431
29432         PR tree-optimization/43008
29433         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
29434         make HEAP variables initialized from global memory if they
29435         are not known builtin functions.
29436         (find_func_aliases): Adjust.
29437
29438 2010-02-09  Richard Guenther  <rguenther@suse.de>
29439
29440         PR tree-optimization/43000
29441         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
29442         arithmetic manually.
29443
29444 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
29445
29446         PR tree-optimization/42931
29447         * tree-loop-linear.c (try_interchange_loops): Don't call
29448         double_int_mul if estimated_loop_iterations failed.
29449
29450 2010-02-08  Martin Jambor  <mjambor@suse.cz>
29451
29452         PR middle-end/42898
29453         * tree-sra.c (build_accesses_from_assign): Do not mark in
29454         should_scalarize_away_bitmap if stmt has volatile ops.
29455         (sra_modify_assign): Do not process assigns piecemeal if if stmt
29456         has volatile ops.
29457
29458 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29459
29460         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
29461
29462 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
29463
29464         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
29465         before the pattern.
29466
29467 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
29468
29469         PR middle-end/42946
29470         * df-core.c (df_finish_pass): Change type of saved_flags to int.
29471
29472 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
29473
29474         PR middle-end/42988
29475         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
29476         to unknown_dependence.
29477         (graphite_legal_transform_dr): Handle the unknown_dependence.
29478         (graphite_carried_dependence_level_k): Same.
29479
29480 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
29481
29482         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
29483
29484 2010-02-07  Richard Guenther  <rguenther@suse.de>
29485
29486         PR middle-end/42991
29487         * expr.c (get_inner_reference): Always initialize *pbitsize.
29488
29489 2010-02-07  Richard Guenther  <rguenther@suse.de>
29490
29491         PR middle-end/42956
29492         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
29493         new ARRAY_REFs on variable size element or minimal index arrays.
29494         Complete.
29495         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
29496         gimple_fold_indirect_ref.
29497
29498 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
29499
29500         PR target/42957
29501         * arm.c (arm_override_options): Just return if the user has specified
29502         an invalid fpu name.
29503
29504 2010-02-03  Jason Merrill  <jason@redhat.com>
29505
29506         PR c++/42870
29507         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
29508         i386_pe_maybe_record_exported_symbol.
29509
29510 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
29511
29512         PR target/42924
29513         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29514         (pa_delegitimize_address): New function.
29515
29516 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
29517
29518         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
29519         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
29520
29521 2010-02-05  Richard Guenther  <rguenther@suse.de>
29522
29523         PR lto/42762
29524         * lto-streamer-in.c (get_resolution): Deal with references
29525         to undefined functions.
29526
29527 2010-02-05  Richard Guenther  <rguenther@suse.de>
29528
29529         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
29530         (fold_const_aggregate_ref): Likewise.
29531         (ccp_fold_stmt): Substitute loads.
29532         (maybe_fold_reference): Verify types before substituting.
29533         Unshare properly.
29534         (fold_gimple_assign): Unshare properly.
29535         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
29536
29537 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
29538
29539         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
29540         for rs6000_gen_cell_microcode.
29541
29542 2010-02-04  Richard Guenther  <rguenther@suse.de>
29543
29544         PR rtl-optimization/42952
29545         * dse.c (const_or_frame_p): Remove MEM handling.
29546
29547 2010-02-04  Nick Clifton  <nickc@redhat.com>
29548
29549         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
29550         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
29551         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
29552         (mn10300_asm_output_mi_thunk): New function.
29553         (mn10300_can_output_mu_thunk): New function.
29554         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
29555         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
29556         (FUNCTION_ARG): Delete incorrect comment.
29557
29558 2010-02-03  Jason Merrill  <jason@redhat.com>
29559
29560         PR c++/40138
29561         * fold-const.c (operand_equal_p): Handle erroneous types.
29562
29563 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29564
29565         * config/h8300/h8300.md (can_delay): Fix attibute condition.
29566
29567 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
29568
29569         PR rtl-optimization/42941
29570         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
29571         of xmalloc.
29572
29573 2010-02-03  Jason Merrill  <jason@redhat.com>
29574
29575         PR c++/35652
29576         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
29577
29578 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
29579
29580         PR debug/42896
29581         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
29582         (cselib_reset_table): Renamed from...
29583         (cselib_reset_table_with_next_value): ... this.
29584         (cselib_get_next_uid): Renamed from...
29585         (cselib_get_next_unknown_value): ... this.
29586         * cselib.c (next_uid): Renamed from...
29587         (next_unknown_value): ... this.
29588         (cselib_clear_table): Adjust.
29589         (cselib_reset_table): Adjust.  Renamed from...
29590         (cselib_reset_table_with_next_value): ... this.
29591         (cselib_get_next_uid): Adjust.  Renamed from...
29592         (cselib_get_next_unknown_value): ... this.
29593         (get_value_hash): Use hash.
29594         (cselib_hash_rtx): Likewise.
29595         (new_cselib_val): Adjust.  Set and dump uid.
29596         (cselib_lookup_mem): Pass next_uid as hash.
29597         (cselib_subst_to_values): Likewise.
29598         (cselib_log_lookup): Dump uid.
29599         (cselib_lookup): Pass next_uid as hash.  Adjust.
29600         (cselib_process_insn): Adjust.
29601         (cselib_init): Initialize next_uid.
29602         (cselib_finish): Adjust.
29603         (dump_cselib_table): Likewise.
29604         * dse.c (canon_address): Dump value uid.
29605         * print-rtl.c (print_rtx): Print value uid.
29606         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
29607         (dvuid): New type.
29608         (dv_uid): New function, sort of renamed from...
29609         (dv_htab_hash): ... this, reimplemented in terms of it and...
29610         (dv_uid2hash): ... this.  New.
29611         (variable_htab_eq): Drop excess assertions.
29612         (tie_break_pointers): Removed.
29613         (canon_value_cmp): Compare uids.
29614         (variable_post_merge_New_vals): Print uids.
29615         (vt_add_function_parameters): Adjust.
29616         (vt_initialize): Reset table.  Adjust.
29617
29618 2010-02-03  Richard Guenther  <rguenther@suse.de>
29619
29620         PR tree-optimization/42944
29621         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
29622         (call_may_clobber_ref_p_1): Likewise.  Properly handle
29623         malloc and calloc clobbering errno.
29624
29625 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
29626
29627         * doc/invoke.texi: Fix name of sched1 dump.
29628
29629         * opts.c (decode_options): Set flag_tree_switch_conversion
29630         only conditionally on optimize >= 2.
29631
29632         * gcse.c: Assorted comment fixes in pass description.
29633
29634 2010-02-03  Anthony Green  <green@moxielogic.com>
29635
29636         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
29637         nop padding in order to maintain alignment of storage location of
29638         target function address.
29639         (moxie_trampoline_init): Store target function address at newly
29640         aligned location.
29641         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
29642         to 32.
29643         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
29644
29645 2010-02-03  Richard Guenther  <rguenther@suse.de>
29646
29647         PR middle-end/42927
29648         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
29649
29650 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29651
29652         * config.gcc: Reenable check for obsolete targets.
29653         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
29654         mips-sgi-irix6.[0-4]*.
29655
29656 2010-02-02  Nick Clifton  <nickc@redhat.com>
29657
29658         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
29659         constant size of 4 as being the same as 0.
29660         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
29661         can take values in the range 0..4.
29662
29663 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
29664
29665         PR java/41991
29666         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
29667         as _darwin10_Unwind_FindEnclosingFunction().
29668         * libgcc-libsystem.ver: New.
29669
29670 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
29671
29672         PR target/41399
29673         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
29674         implicitly set registers.
29675
29676 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
29677
29678         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
29679         (arm_override_options): Allow automatic selection of the thread
29680         pointer register if thumb2.
29681         (legitimize_pic_address): Improve code sequences for Thumb2.
29682         (arm_call_tls_get_addr): Likewise.
29683         (legitimize_tls_address): Likewise.
29684         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
29685         (pic_load_addr_32bit): ... this.  New named pattern.
29686         * thumb2.md (pic_load_addr_thumb2): Delete.
29687         (pic_load_dot_plus_four): Delete.
29688         (tls_load_dot_plus_four): New named pattern.
29689
29690 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29691
29692         PR libgomp/29986
29693         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
29694         Document fix for TLS bug.
29695
29696 2010-01-31  Richard Guenther  <rguenther@suse.de>
29697
29698         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
29699         conservatively correct.
29700
29701 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29702
29703         PR target/42850
29704         Revert:
29705         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29706
29707         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29708
29709 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29710
29711         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
29712
29713 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
29714
29715         * config.gcc: Adjust order of makefile fragments for mingw targets.
29716
29717 2010-01-31  Richard Guenther  <rguenther@suse.de>
29718
29719         PR middle-end/42898
29720         * gimplify.c (gimplify_init_constructor): For volatile LHS
29721         initialize a temporary.
29722
29723 2010-01-31  Matthias Klose  <doko@ubuntu.com>
29724
29725         * configure.ac: Fix __stack_chk_fail check for cross builds configured
29726         --with-headers
29727         * configure: Regenerate.
29728
29729 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
29730
29731         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
29732         the same alias set and their sizes different constantness.
29733         (aliasing_component_refs_p): Revert 2009-10-24 change.
29734
29735 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29736
29737         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
29738         unused.
29739
29740 2010-01-29  Richard Guenther  <rguenther@suse.de>
29741
29742         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
29743         Assert we successfully updated the call.
29744
29745 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
29746
29747         PR rtl-optimization/42889
29748         * df.h (df_set_bb_dirty_nonlr): New prototype.
29749         * df-core.c (df_set_bb_dirty_nonlr): New function.
29750         * df-scan.c (df_insn_rescan): Call it instead of
29751         df_set_bb_dirty for DEBUG_INSNs.
29752
29753 2010-01-29  Richard Guenther  <rguenther@suse.de>
29754
29755         PR middle-end/37448
29756         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
29757         quadratic behavior in most cases.
29758
29759 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
29760
29761         PR target/42891
29762         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
29763         in the call to gen_x86_movsicc_0_m1.
29764
29765 2010-01-28  Richard Guenther  <rguenther@suse.de>
29766
29767         PR tree-optimization/42871
29768         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
29769
29770 2010-01-28  Richard Guenther  <rguenther@suse.de>
29771
29772         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
29773         into call arguments.
29774
29775 2010-01-28  Richard Guenther  <rguenther@suse.de>
29776
29777         PR middle-end/42883
29778         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
29779         the forwarder if the destination is an EH landing pad.
29780
29781 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
29782
29783         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
29784         block list passed to gimple_duplicate_sese_tail.
29785         (parallelize_loops): Avoid parallelization when the function
29786         has_nonlocal_label.
29787         Avoid parallelization when the preheader is IRREDUCIBLE.
29788         Try to optimize when estimated_loop_iterations_int is unresolved.
29789         Add the loop's location to the dump file.
29790         * tree-cfg.c (add_phi_args_after_redirect): Remove.
29791         (gimple_duplicate_sese_tail): Remove the check for the latch.
29792         Redirect nexits to the exit block.
29793         Remove handling of the incoming edges to the latch.
29794         Redirect the backedge from the copied latch to the exit bb.
29795
29796 2010-01-28  Michael Matz  <matz@suse.de>
29797
29798         PR target/42881
29799         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
29800         Wrap force_reg into a sequence, emit it before user.
29801
29802 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
29803
29804         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
29805         (arm_rev): New.
29806         (arm_legacy_rev): Likewise.
29807         (thumb_legacy_rev): Likewise.
29808
29809 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
29810
29811         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
29812         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
29813         on MEM's address failed, try avoid_constant_pool_reference and
29814         recurse if it returned something different.
29815         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
29816         address, try avoid_constant_pool_reference and recurse if it
29817         returned something different.
29818         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
29819         address and avoid_constant_pool_reference returned something
29820         different, don't set have_address.
29821
29822 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
29823
29824         PR debug/42861
29825         * var-tracking.c (val_store): Add modified argument, obey it.
29826         Adjust callers.
29827         (count_uses): Move down logging of main.
29828         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
29829         don't need resolution.
29830         (emit_notes_in_bb): Likewise.
29831
29832 2010-01-27  Richard Guenther  <rguenther@suse.de>
29833
29834         PR middle-end/42878
29835         * tree-inline.c (remap_decl): Delay remapping of SSA name
29836         default definitions until we need them.
29837
29838 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
29839
29840         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
29841         (rs6000_delegitimize_address): New function.
29842
29843         * config/s390/s390.c (s390_delegitimize_address): Call
29844         delegitimize_mem_from_attrs.
29845
29846         PR middle-end/42874
29847         * tree-inline.c (cannot_copy_type_1): Removed.
29848         (copy_forbidden): Don't forbid copying of functions containing
29849         records/unions with variable length fields.
29850
29851 2010-01-27  Christian Bruel  <christian.bruel@st.com>
29852
29853         Revert:
29854         PR target/42841
29855         * config/sh/sh.c (find_barrier): Increase length for non delayed
29856         conditional branches.
29857
29858 2010-01-27  Matthias Klose  <doko@ubuntu.com>
29859
29860         * configure.ac (gnu-unique-object): Fix ldd version check.
29861         * configure: Regenerate.
29862
29863 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29864
29865         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
29866         HAVE_GNU_AS value.
29867         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
29868         Test for HAVE_GNU_AS value.
29869
29870 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29871
29872         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
29873         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
29874         INT64_TYPE): Define.
29875         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
29876         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
29877         INT_LEAST64_TYPE): Define.
29878         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
29879         UINT_LEAST64_TYPE): Define.
29880         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
29881         INT_FAST64_TYPE): Define.
29882         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
29883         UINT_FAST64_TYPE): Define.
29884         (INTMAX_TYPE, UINTMAX_TYPE): Define.
29885         (INTPTR_TYPE, UINTPTR_TYPE): Define.
29886         (SIG_ATOMIC_TYPE): Define.
29887
29888 2010-01-26  Richard Guenther  <rguenther@suse.de>
29889
29890         * df-scan.c (df_scan_set_bb_info): Remove assert.
29891         (df_insn_rescan_debug_internal): Merge asserts.
29892         (df_install_ref): Likewise.
29893         (df_mark_reg): Use bitmap_set_range.
29894         (df_hard_reg_used_p): Remove assert.
29895         (df_hard_reg_used_count): Likewise.
29896
29897 2010-01-26  Richard Guenther  <rguenther@suse.de>
29898
29899         PR rtl-optimization/42685
29900         * web.c (web_main): Ignore DEBUG_INSNs.
29901
29902 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
29903
29904         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
29905
29906         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
29907         Fix types of fndecl and arglist parameters.
29908
29909 2010-01-26  Richard Guenther  <rguenther@suse.de>
29910
29911         PR middle-end/42806
29912         * tree-eh.c (unsplit_eh): Skip debug insns.
29913
29914 2010-01-26  Richard Guenther  <rguenther@suse.de>
29915
29916         PR tree-optimization/42250
29917         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
29918
29919 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
29920
29921         PR fortran/42866
29922         * omp-low.c (expand_omp_sections): Only use single_pred if
29923         l2_bb is single_pred_p.
29924
29925 2010-01-25  Christian Bruel  <christian.bruel@st.com>
29926
29927         PR target/42841
29928         * config/sh/sh.c (find_barrier): Increase length for non delayed
29929         conditional branches.
29930         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
29931
29932 2010-01-24  David S. Miller  <davem@davemloft.net>
29933
29934         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
29935         define if not using GAS.
29936         * config/sparc/sparc.c (sparc_elf_asm_named_section):
29937         Likewise.  Delete SECTION_MERGE code, which is only applicable
29938         when using GAS.
29939
29940 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
29941
29942         PR c++/42748
29943         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
29944         mangling of va_list in system headers.
29945
29946 2010-01-23  Toon Moene  <toon@moene.org>
29947
29948         * tree-predcom.c (combine_chains): Return NULL, not false.
29949
29950 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
29951
29952         * tree-loop-distribution.c (distribute_loop): Fix declaration and
29953         initialization of variable res to agree with return type.
29954
29955 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
29956
29957         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
29958         * tree-sra.c: Add include of expr.h.
29959
29960 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
29961
29962         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
29963         insert the debug stmt on the single non-EH edge from the stmt.
29964
29965 2010-01-22  Richard Henderson  <rth@redhat.com>
29966
29967         PR tree-opt/42833
29968         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
29969         the RHS until after generate_subtree_copies has insertted its
29970         code before the current statement.
29971
29972 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
29973
29974         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
29975
29976         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
29977
29978 2010-01-21  Martin Jambor  <mjambor@suse.cz>
29979
29980         PR tree-optimization/42585
29981         * tree-sra.c (struct access): New field grp_total_scalarization.
29982         (dump_access): Dump the new field.
29983         (should_scalarize_away_bitmap): New variable.
29984         (cannot_scalarize_away_bitmap): Likewise.
29985         (sra_initialize): Allocate new bitmaps.
29986         (sra_deinitialize): Free new bitmaps.
29987         (create_access_1): New function.
29988         (create_access): Parts moved to create_access_1.
29989         (type_consists_of_records_p): New function.
29990         (completely_scalarize_record): Likewise.
29991         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
29992         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
29993         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
29994         access.
29995         (analyze_all_variable_accesses): Completely scalarize small eligible
29996         records.
29997
29998 2010-01-21  Martin Jambor  <mjambor@suse.cz>
29999
30000         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
30001
30002 2010-01-21  Andrew Haley  <aph@redhat.com>
30003
30004         * gcc.c (process_command): Move lang_specific_driver before
30005         setting cc_libexec_prefix.
30006
30007 2010-01-21  Richard Guenther  <rguenther@suse.de>
30008
30009         PR middle-end/19988
30010         * fold-const.c (negate_expr_p): Pretend only negative
30011         real constants are easily negatable.
30012
30013 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
30014             Jason Merrill  <jason@redhat.com>
30015
30016         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
30017         (TYPE_TRANSPARENT_AGGR): this, for union and record.
30018         * calls.c (initialize argument_information): Handle it.
30019         * c-common.c (handle_transparent_union_attribute): Use new name.
30020         * c-decl.c (finish_struct): Ditto.
30021         * c-typeck.c (type_lists_compatible_p): Ditto.
30022         (convert_for_assignment): Use new name and also handle record.
30023         * function.c (aggregate_value_p): Handle it.
30024         (pass_by_reference): Ditto.
30025         (assign_parm_data_types): Ditto.
30026         * print-tree.c (print_node): Ditto.
30027         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
30028         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
30029         * tree.c (first_field): New fn.
30030
30031 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
30032
30033         PR target/42818
30034         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
30035         even when linking statically, for now.
30036
30037 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
30038
30039         PR debug/42715
30040         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
30041         without a cselib val.
30042         (count_uses): Accept MO_VAL_SET with no val on stores.
30043         (add_stores): Likewise.
30044
30045 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30046
30047         * var-tracking.c (check_value_val): Add a compile time assertion.
30048         (dv_is_decl_p): Simplify.
30049         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
30050         gcc_assert if ENABLE_CHECKING.
30051
30052 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
30053
30054         PR debug/42782
30055         * var-tracking.c: Include tree-flow.h.
30056         (mem_dies_at_call): New.
30057         (dataflow_set_preserve_mem_locs): Use it.
30058         (dataflow_set_remove_mem_locs): Likewise.
30059         (dump_var): Renamed from dump_variable.  Adjust all callers.
30060         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
30061         * Makefile.in (var-tracking.o): Adjust deps.
30062
30063 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
30064
30065         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
30066
30067 2010-01-20  Richard Guenther  <rguenther@suse.de>
30068
30069         PR tree-optimization/42717
30070         * tree-ssa-dce.c (get_live_post_dom): Remove.
30071         (forward_edge_to_pdom): Take an arbitrary edge to copy
30072         degenerate PHI args from.
30073         (remove_dead_stmt): Use the first post-dominator even if it
30074         does not contain live statements as redirection destination.
30075
30076 2010-01-20  Richard Guenther  <rguenther@suse.de>
30077
30078         * tree-inline.c (estimate_num_insns): Handle EH builtins.
30079
30080 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30081
30082         * sel-sched.c (create_speculation_check): Remove set but not used
30083         variable twin.
30084         (try_transformation_cache): Remove set but not used variable ds.
30085         (calculate_privileged_insns): Remove set but not used variables
30086         cur_insn and min_spec_insn.
30087         (find_best_expr): Remove set but not used variable avail_n.
30088         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
30089         variable e.
30090         * cgraphunit.c (assemble_thunk): Remove set but not used variable
30091         false_label.
30092         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
30093         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
30094         new_scop_exit_edge.
30095
30096 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
30097
30098         PR bootstrap/42786
30099         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
30100         cpu types.  Add support for *-sse3 cpu types.
30101         (x86_64-*-*): Ditto.
30102
30103 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30104
30105         PR middle-end/42803
30106         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
30107         argument, call initializer_constant_valid_p_1 instead of
30108         initializer_constant_valid_p, pass CACHE to it, return NULL
30109         immediately if first call returns NULL.
30110         (initializer_constant_valid_p_1): New function.
30111         (initializer_constant_valid_p): Use it.
30112
30113 2010-01-20  Thomas Quinot  <quinot@adacore.com>
30114
30115         * tree.def (PLACEHOLDER_EXPR): Fix comment.
30116
30117 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
30118
30119         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
30120         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
30121         (loc_list_from_tree): Don't handle unsigned division.  Handle
30122         signed modulo using DW_OP_{over,over,div,mul,minus}.
30123         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
30124         modulo instead of signed.
30125
30126 2010-01-20  DJ Delorie  <dj@redhat.com>
30127
30128         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
30129         (Fpa): Pass it
30130         (h8300_emit_stack_adjustment): Propogate it.
30131         (push): Pass it.
30132         (h8300_expand_prologue): Likewise.
30133         (h8300_expand_epilogue): Likewise.
30134
30135 2010-01-19  Michael Matz  <matz@suse.de>
30136
30137         PR tree-optimization/41783
30138         * tree-data-ref.c (toplevel): Include flags.h.
30139         (dump_data_dependence_relation):  Also dump the inputs if the
30140         result will be unknown.
30141         (split_constant_offset_1): Look through some conversions.
30142         * tree-predcom.c (determine_roots_comp): Restart a new chain if
30143         the offset from last element is too large.
30144         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
30145         (reassociate_to_the_same_stmt): Handle vector registers.
30146         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
30147         (e.g. conversions).
30148         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
30149         wide_prolog_niters argument, emit widening instructions.
30150         (vect_do_peeling_for_alignment): Adjust caller, use widened
30151         variant of the iteration cound.
30152         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
30153
30154 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30155
30156         PR target/38697
30157         * config/arm/neon-testgen.m (emit_automatics): New parameter
30158         features. Adjust for Fixed_return_reg feature.
30159         (test_intrinsic): Call emit_automatics with new feature.
30160         * config/arm/neon.ml: Update copyright years.
30161         (features): New Fixed_return_reg feature.
30162         (ops): Update feature for Vget_low.
30163
30164 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
30165
30166         PR tree-optimization/42719
30167         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
30168         stmt uses.
30169
30170         PR debug/42728
30171         * fwprop.c (all_uses_available_at): Return false if def_set dest
30172         is a REG that is used in def_insn.
30173
30174 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
30175
30176         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
30177
30178         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
30179         Add argument names.
30180
30181         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
30182
30183         * target.h (struct gcc_target) <secondary_reload>: Change type
30184         of last argument to secondary_reload_info *.
30185
30186 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
30187
30188         PR target/42774
30189         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
30190         memory references with unaligned offsets.  Remove CQImode handling.
30191         (unaligned_memory_operand): Return 1 for memory references with
30192         unaligned offsets.  Remove CQImode handling.
30193
30194 2010-01-18  Richard Guenther  <rguenther@suse.de>
30195
30196         PR middle-end/39954
30197         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
30198         builtin calls.
30199
30200 2010-01-18  Richard Guenther  <rguenther@suse.de>
30201
30202         PR tree-optimization/42781
30203         * tree-ssa-structalias.c (find_what_var_points_to): Skip
30204         restrict processing only if the original variable was artificial.
30205
30206 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
30207
30208         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
30209         find number of popped argument bytes.
30210
30211         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
30212         Fix the text that describes the return value for invalid insns.
30213
30214         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
30215
30216         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
30217         Clarify what 'cost of the -dependence' is.  Fix quoting.
30218
30219         * toplev.c (default_get_pch_validity): Rename argument to "sz".
30220         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
30221
30222 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
30223
30224         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30225         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
30226
30227 2010-01-17  Richard Guenther  <rguenther@suse.de>
30228
30229         PR middle-end/42248
30230         * function.c (split_complex_args): Take a VEC to modify.
30231         (assign_parms_augmented_arg_list): Build a VEC instead of
30232         a chain of PARM_DECLs.
30233         (assign_parms_unsplit_complex): Take a VEC of arguments.
30234         Do not fixup unmodified parms.
30235         (assign_parms): Deal with the VEC.
30236         (gimplify_parameters): Likewise.
30237
30238 2010-01-17  Richard Guenther  <rguenther@suse.de>
30239
30240         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
30241         node existence check.
30242         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
30243         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
30244         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
30245         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
30246         (gimple_execute_on_growing_pred): Likewise.
30247
30248 2010-01-17  Richard Guenther  <rguenther@suse.de>
30249
30250         PR tree-optimization/42773
30251         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
30252         (compute_antic_aux): Likewise.
30253         (compute_partial_antic_aux): Likewise.
30254
30255 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
30256
30257         PR debug/42767
30258         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
30259         and US_TRUNCATE.
30260
30261 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
30262
30263         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
30264         appearance.
30265
30266         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
30267         Fix markup for strict argument.
30268
30269         (TARGET_SCHED_REORDER2): Fix argument types.
30270
30271         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
30272         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
30273
30274         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
30275         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
30276
30277         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
30278         Add argument name.
30279
30280         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
30281         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
30282         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
30283         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
30284         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
30285
30286         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
30287
30288         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
30289
30290         (TARGET_ASM_RELOC_RW_MASK): Add return type.
30291         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
30292
30293         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
30294
30295         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
30296         Use prototype.
30297
30298         (TARGET_ASM_NAMED_SECTION): Fix argument list.
30299
30300         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
30301         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
30302
30303         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
30304
30305         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
30306
30307         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
30308         referring to it.  Fix language.
30309
30310         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
30311
30312         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
30313
30314         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
30315
30316         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
30317
30318         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
30319         '@var{stream}.  Remove stray 'and'.
30320
30321         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
30322
30323         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
30324
30325         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
30326
30327         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
30328         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
30329
30330         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
30331         Fix description of return value.
30332         Rename argument "sz" to "len."
30333
30334         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
30335         Clarify meaning of 'true' return value.
30336
30337         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
30338
30339         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
30340         rep_mode versus mode_rep.
30341
30342         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
30343
30344         (TARGET_BUILTIN_DECL): Fix name.
30345
30346         (TARGET_COMMUTATIVE_P): Fix type of first argument.
30347
30348         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
30349
30350         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
30351
30352         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
30353
30354         (TARGET_RELAXED_ORDERING): Use @deftypevr.
30355
30356         (TARGET_GET_DRAP_RTX): Note that this is a hook.
30357         Clarify language.
30358
30359         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
30360         Rename argument tm_fn to md_fn.
30361
30362         (TARGET_OPTION_PRINT): Fix argument list.
30363
30364 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
30365
30366         PR target/42664
30367         * config/i386/i386.c (ix86_fixup_binary_operands):
30368         Revert FMA4 fixup of operands.
30369
30370 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30371
30372         PR gcc/42525
30373         * Makefile.in (write_entries_to_file, install-plugin):
30374         Use \012 instead of \n with tr.
30375
30376 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
30377
30378         * configure.ac (HAVE_AS_REF): New C macro.
30379         * configure: Regenerate.
30380         * config.in: Likewise.
30381         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
30382         if HAVE_AS_REF.
30383         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
30384         if HAVE_AS_REF.
30385
30386 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
30387
30388         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
30389
30390         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
30391
30392         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
30393
30394         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
30395
30396         (TARGET_IN_SMALL_DATA_P): Fix argument type.
30397
30398         (TARGET_BINDS_LOCAL_P): Fix argument type.
30399
30400         (TARGET_ASM_FILE_END): Use prototype.
30401
30402         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
30403
30404         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
30405
30406         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
30407
30408         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
30409
30410         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
30411         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
30412
30413         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
30414         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
30415
30416         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
30417         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
30418         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
30419         (TARGET_ADDR_SPACE_CONVERT): Likewise.
30420
30421         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
30422
30423         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
30424
30425         (TARGET_INIT_BUILTINS): Use prototype.
30426
30427         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
30428         Put 'const char *' in braces.  Fix parameter types.
30429         (TARGET_INVALID_CONVERSION): Fix parameter types.
30430         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
30431         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
30432
30433         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
30434         Fix argument type.
30435
30436         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
30437
30438         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
30439
30440 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
30441
30442         * doc/tm.texi (TARGET_HELP): Fix return type.
30443
30444         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
30445         in braces.  Fix argument types.
30446
30447         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
30448
30449         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
30450
30451         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
30452
30453         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
30454         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
30455
30456         (TARGET_MANGLE_TYPE): Fix argument types.
30457
30458         (TARGET_IRA_COVER_CLASSES): Use prototype.
30459
30460         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
30461
30462         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
30463
30464         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
30465
30466         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
30467
30468         (TARGET_CALLEE_COPIES): Fix argument types.
30469
30470         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
30471
30472         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
30473
30474         (TARGET_FUNCTION_VALUE): Fix argument types.
30475
30476         (TARGET_RETURN_IN_MSB): Fix argument type.
30477
30478         (TARGET_RETURN_IN_MEMORY): Fix argument types.
30479
30480         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
30481
30482         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
30483
30484         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
30485         agree with return type.
30486
30487         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
30488
30489 2010-01-15  Jing Yu  <jingyu@google.com>
30490
30491         PR rtl-optimization/42691
30492         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
30493         a pseudo to a constant and are merged, and adjust comments.
30494
30495 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30496
30497         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
30498
30499 2010-01-15  Richard Guenther  <rguenther@suse.de>
30500
30501         PR middle-end/42739
30502         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
30503         labels of computed or non-local gotos to the destination.
30504         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
30505         landing pad label is the first label.
30506
30507 2010-01-15  Richard Guenther  <rguenther@suse.de>
30508
30509         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
30510
30511 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
30512
30513         PR target/42747
30514         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
30515         to allow generation of the xssqrtdp instruction on power7.
30516         (sqrtdf2_fpr): Ditto.
30517
30518 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
30519
30520         PR middle-end/42674
30521         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
30522         functions with noreturn attribute.
30523
30524         PR c++/42608
30525         * varasm.c (declare_weak): Add weak attribute to decl if it
30526         doesn't have one already.
30527         (assemble_external): Only add decls to weak_decls if they also
30528         have weak attribute.
30529
30530 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
30531
30532         * var-tracking.c (var_reg_delete): Don't delete the association
30533         between REGs and values or one-part variables if the register
30534         isn't clobbered.
30535
30536 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
30537
30538         PR debug/42657
30539         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
30540         because its first operand is a non-localized variable.
30541
30542 2010-01-14  Martin Jambor  <mjambor@suse.cz>
30543
30544         PR tree-optimization/42706
30545         * tree-sra.c (encountered_recursive_call): New variable.
30546         (encountered_unchangable_recursive_call): Likewise.
30547         (sra_initialize): Initialize both new variables.
30548         (callsite_has_enough_arguments_p): New function.
30549         (scan_function): Call decl and flags check only for IPA-SRA, check
30550         whether there is a recursive call and whether it has enough arguments.
30551         (all_callers_have_enough_arguments_p): New function.
30552         (convert_callers): Look for recursive calls only when
30553         encountered_recursive_call is set.
30554         (ipa_early_sra): Bail out either if
30555         !all_callers_have_enough_arguments_p or
30556         encountered_unchangable_recursive_call.
30557
30558 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30559
30560         * sel-sched.c: Add 2010 to copyright years.
30561         * sel-sched-ir.c: Likewise.
30562         * sel-sched-ir.h: Likewise.
30563
30564 2010-01-14  Martin Jambor  <mjambor@suse.cz>
30565
30566         PR tree-optimization/42714
30567         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
30568         constructors specially.
30569
30570 2010-01-14  Andi Kleen  <ak@linux.intel.com>
30571
30572         * config/i386/drivers-i386.c (detect_caches_intel):
30573         Add l2sizekb parameter and fill in.
30574         (host_detect_local_cpu): Add l2sizekb, fill in.
30575         Add Atom small cache heuristic.
30576
30577 2010-01-14  Andi Kleen  <ak@linux.intel.com>
30578
30579         * config/i386/drivers-i386.c (detect_caches_cpuid4):
30580         Add level3 parameter and fill in.
30581         (detect_caches_intel): Handle level3 cache.
30582
30583 2010-01-14  Andi Kleen  <ak@linux.intel.com>
30584
30585         * config/i386/drivers-i386.c (host_detect_local_cpu):
30586         Fix core duo detection.
30587
30588 2010-01-14  Andi Kleen  <ak@linux.intel.com>
30589
30590         * config/i386/drivers-i386.c (host_detect_local_cpu):
30591         Fix Atom detection.
30592
30593 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30594
30595         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
30596         (rs6000_variable_issue_1): this.  Use...
30597         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
30598
30599 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30600
30601         * sel-sched-ir.c (sel_restore_other_notes): Rename to
30602         sel_restore_notes.  Update all callers.  Call reemit_notes
30603         for all insns.
30604
30605 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
30606
30607         PR rtl-optimization/42246
30608         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
30609         loops.
30610
30611 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
30612
30613         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
30614         all successors is the same as number of successors in current region.
30615
30616 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30617
30618         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
30619         to rename is not separable.  Otherwise check that its LHS is not NULL.
30620
30621 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30622
30623         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
30624
30625 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30626
30627         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
30628         available registers when failed to discover LHS register class.
30629         Fix indentation.  Update comment.
30630
30631 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
30632             Alexander Monakov  <amonakov@ispras.ru>
30633
30634         PR rtl-optimization/42389
30635         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
30636         to can_issue_more.
30637         (advance_state_on_fence): Likewise.
30638         (sel_target_adjust_priority): Print debug output only when
30639         sched_verbose >= 4, not 2.
30640         (get_expr_cost): Do not issue all unique insns on the next cycle.
30641         (fill_insns): Initialize can_issue_more from the value saved
30642         with the fence.
30643         * sel-sched-ir.c (flist_add): New parameter issue_more.
30644         Init FENCE_ISSUE_MORE with it.
30645         (merge_fences): Likewise.
30646         (init_fences): Update call to flist_add.
30647         (add_to_fences, add_clean_fence_to_fences)
30648         (add_dirty_fence_to_fences): Likewise.
30649         (move_fence_to_fences): Update call to merge_fences.
30650         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
30651         sched groups.
30652         * sel-sched-ir.h (struct _fence): New field issue_more.
30653         (FENCE_ISSUE_MORE): New accessor macro.
30654
30655 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
30656
30657         PR rtl-optimization/42388
30658         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
30659         that have no predecessors nor successors.  Do not call move_bb_info
30660         for empty blocks outside of current region.
30661
30662 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30663
30664         PR rtl-optimization/42294
30665         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
30666         * sel-sched.c (move_exprs_to_boundary): Transitively add all
30667         originators' originators.
30668
30669 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
30670
30671         PR rtl-optimization/39453
30672         PR rtl-optimization/42246
30673         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
30674         for pipelining_p.
30675         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
30676
30677 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
30678             Alexander Monakov  <amonakov@ispras.ru>
30679
30680         PR middle-end/42245
30681         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
30682         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
30683         argument.  Update all callers.
30684         (tidy_control_flow): ... and here.  Recompute topological order
30685         of basic blocks in region if necessary.
30686         (sel_redirect_edge_and_branch): Change return type.  Return true
30687         if topological order might have been invalidated.
30688         (purge_empty_blocks): Export and move from...
30689         * sel-sched.c (purge_empty_blocks): ... here.
30690         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
30691         (maybe_tidy_empty_bb): Delete prototype.
30692         (purge_empty_blocks): Declare.
30693
30694 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
30695
30696         PR rtl-optimization/42249
30697         * sel-sched.c (try_replace_dest_reg): When chosen register
30698         and original register is the same, do not bail out early, but
30699         still check all original insns for validity of replacing destination
30700         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
30701         in this case.
30702
30703 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
30704
30705         PR c/42721
30706         Port from no-undefined-overflow branch:
30707         2009-03-09  Richard Guenther  <rguenther@suse.de>
30708
30709         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
30710
30711 2010-01-14  Richard Guenther  <rguenther@suse.de>
30712
30713         PR lto/42665
30714         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
30715
30716 2010-01-14  Ira Rosen  <irar@il.ibm.com>
30717
30718         PR tree-optimization/42709
30719         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
30720         as scalar type in creation of constant vector operand.
30721
30722 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30723
30724         PR testsuite/42414
30725         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
30726         (check-parallel-%): Match `testsuite' directory component only
30727         at the end.
30728
30729 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
30730
30731         PR translation/39521
30732         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
30733         strings with _().
30734
30735 2010-01-13  Richard Guenther  <rguenther@suse.de>
30736
30737         PR tree-optimization/42730
30738         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
30739         offset zero.
30740
30741 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
30742
30743         PR target/pr42542
30744         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
30745         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
30746         them signed.
30747
30748 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
30749
30750         * config/bfin/libgcc-bfin.ver: Regenerate based on current
30751         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
30752         ___umulsi3_highpart.
30753
30754         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
30755         rather than schedule_insns if the pass is enabled.
30756
30757 2010-01-13  Martin Jambor  <mjambor@suse.cz>
30758
30759         PR tree-optimization/42704
30760         * tree-sra.c (sra_modify_assign): Do not delete assignments to
30761         SSA_NAMEs.
30762
30763 2010-01-13  Martin Jambor  <mjambor@suse.cz>
30764
30765         PR tree-optimization/42703
30766         * tree-sra.c (analyze_access_subtree): Check that we can build a
30767         reference to the original data within the aggregate.
30768
30769 2010-01-13  Richard Guenther  <rguenther@suse.de>
30770
30771         PR tree-optimization/42705
30772         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
30773
30774 2010-01-13  Richard Guenther  <rguenther@suse.de>
30775
30776         PR middle-end/42716
30777         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
30778
30779 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
30780
30781         PR debug/41371
30782         * var-tracking.c (values_to_unmark): New variable.
30783         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30784         values_to_unmark vector.  Moved body to...
30785         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
30786         instead queue it into values_to_unmark vector.
30787         (vt_find_locations): Free values_to_unmark vector.
30788
30789 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
30790
30791         * config/s390/s390.c (override_options): Set
30792         default of max-pending-list-length to 256
30793
30794 2010-01-13  Richard Guenther  <rguenther@suse.de>
30795
30796         PR lto/42678
30797         * tree-pass.h (PROP_gimple_lcx): New.
30798         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
30799         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
30800         before the final cleanup_eh.
30801         (dump_properties): Dump PROP_gimple_lcx.
30802         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
30803         (tree_lower_complex_O0): Remove.
30804         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
30805         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
30806         tree_lower_complex, schedule TODO_update_ssa.
30807         * lto-streamer-out.c (output_function): Stream the functions
30808         properties.
30809         * lto-streamer-in.c (input_function): Likewise.
30810         (lto_read_body): Do not override them here.
30811
30812 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
30813
30814         PR c/42708
30815         * c-typeck.c (build_c_cast): Fold value cast to union type before
30816         wrapping it in a CONSTRUCTOR.
30817
30818 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
30819
30820         PR rtl-optimization/42699
30821         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
30822         involved.
30823
30824 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30825
30826         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
30827         SUBTARGET_WARN_UNUSED_SPEC): Move ...
30828         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
30829         SUBTARGET_WARN_UNUSED_SPEC): ... here
30830         * config/mips/iris5.h (LIBGCC_SPEC): Define.
30831
30832 2010-01-12  Julian Brown  <julian@codesourcery.com>
30833
30834         * config/arm/neon-schedgen.ml (Utils): Don't try to
30835         open missing module.
30836         (find_with_result): New.
30837
30838 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
30839
30840         PR debug/42662
30841         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
30842         sharing when canonicalizing ({lt,ge}u (plus a b) b).
30843
30844         PR tree-optimization/42645
30845         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
30846         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
30847         decl_map, set processing_debug_stmt to -1 and return name without
30848         any remapping.
30849
30850 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
30851
30852         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
30853         binutils version, and reword target configuration description.
30854
30855 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
30856
30857         * config/avr/avr.h (LINKER_NAME): Remove.
30858
30859 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
30860
30861         PR target/42416
30862         * config/rs6000/rs6000.c (rs6000_override_options): On targets
30863         that support VSX, warn for -mno-altivec if vsx is not disabled,
30864         and disable vsx.
30865
30866 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
30867             Shujing Zhao  <pearly.zhao@oracle.com>
30868
30869         PR translation/42469
30870         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
30871         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
30872         character between option name and help text.
30873         * c.opt (imultilib): Likewise.
30874
30875 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
30876
30877         * lto-streamer-out.c (output_unreferenced_globals): Output static
30878         variables.
30879
30880 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
30881
30882         PR rtl-optimization/42621
30883         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
30884         optimizing for size.
30885         (duplicate_computed_gotos): Remove now-redundant check.
30886
30887 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
30888
30889         PR target/37454
30890         * configure.ac: Save and restore LDFLAGS and LIBS
30891         * configure: Regenerate.
30892
30893 2010-01-10  Richard Guenther  <rguenther@suse.de>
30894
30895         PR middle-end/42667
30896         * builtins.c (fold_builtin_strlen): Add type argument and
30897         convert the resulting length to it.
30898         (fold_builtin_1): Adjust.
30899
30900 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
30901
30902         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
30903         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
30904         1 insn.
30905         (num_insns_constant_wide): Adjust for that change.
30906
30907 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30908
30909         PR debug/42631
30910         * web.c (union_defs): Add used argument, to combine uses of
30911         uninitialized regs.
30912         (entry_register): Adjust type and tests of used argument.
30913         (web_main): Widen used for new use.  Pass it to union_defs.
30914         * df.h (union_defs): Adjust prototype.
30915
30916 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30917
30918         PR debug/42630
30919         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
30920         uses in new incoming argument.  Free body.
30921         (reset_debug_uses_in_loop): New.
30922         (analyze_insn_to_expand_var): Call the latter if the former found
30923         anything.  Fix whitespace.  Reject invalid dest overlaps before
30924         going through all insns in the loop.
30925
30926 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30927
30928         PR debug/42629
30929         * haifa-sched.c (dying_use_p): Debug insns don't count.
30930
30931 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30932
30933         PR middle-end/42363
30934         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
30935         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
30936         (verify_gimple_call): Reject LHS in noreturn calls.
30937
30938 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30939
30940         PR debug/42604
30941         PR debug/42395
30942         * tree-vect-loop-manip.c (adjust_info): New type.
30943         (adjust_vec): New pointer to vector.
30944         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
30945         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
30946         (slpeel_update_phis_for_duplicate_loop): Use them.
30947         (slpeel_update_phi_nodes_for_guard1): Likewise.
30948         (slpeel_update_phi_nodes_for_guard2): Likewise.
30949         (slpeel_tree_peel_loop_to_edge): Likewise.
30950         (vect_update_ivs_after_vectorizer): Likewise.
30951
30952 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30953
30954         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
30955         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
30956
30957 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30958
30959         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
30960         bogus uninitialized warning.
30961
30962 2010-01-09  Richard Guenther  <rguenther@suse.de>
30963
30964         PR middle-end/42512
30965         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
30966         the evolution is compatible with the initial condition.
30967
30968 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
30969
30970         * gcc.c (process_command): Update copyright notice dates.
30971         * gcov.c (print_version): Likewise.
30972         * gcov-dump.c (print_version): Likewise.
30973         * mips-tfile.c (main): Likewise.
30974         * mips-tdump.c (main): Likewise.
30975
30976 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
30977
30978         PR target/41885
30979         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
30980         (rotlhi3): Delete.
30981         (rotlhi3_8): Delete.
30982         (rotlsi3): Delete.
30983         (rotlsi3_8): Delete.
30984         (rotlsi3_16): Delete.
30985         (rotlsi3_24): Delete.
30986         (rotl<mode>3): New.
30987         (*rotw<mode>3): New.
30988         (*rotb<mode>3): New.
30989         * config/avr/avr.c (avr_rotate_bytes): New function.
30990         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
30991
30992 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
30993
30994         PR target/37454
30995         * configure.ac: Modify -rdynamic check.
30996         * configure: Regenerate.
30997
30998 2010-01-08  DJ Delorie  <dj@redhat.com>
30999
31000         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
31001         register popping order.
31002
31003 2010-01-08  Richard Guenther  <rguenther@suse.de>
31004
31005         PR lto/42528
31006         * c.opt (fsigned-char): Also let LTO handle this option.
31007         (funsigned-char): Likewise.
31008
31009 2010-01-07  Richard Guenther  <rguenther@suse.de>
31010
31011         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
31012         (gimple_op): Likewise.
31013         (gimple_op_ptr): Likewise.
31014         (gimple_assign_set_lhs): Remove gcc_assert.
31015         (gimple_assign_set_rhs1): Likewise.
31016         (gimple_assign_set_rhs2): Likewise.
31017         (gimple_call_set_lhs): Likewise.
31018         (gimple_call_set_fn): Likewise.
31019         (gimple_call_set_fndecl): Likewise.
31020         (gimple_call_fndecl): Likewise.
31021         (gimple_call_return_type): Likewise.
31022         (gimple_call_set_chain): Likewise.
31023         (gimple_call_num_args): Likewise.
31024         (gimple_call_set_arg): Likewise.
31025         (gimple_cond_set_code): Likewise.
31026         (gimple_cond_set_lhs): Likewise.
31027         (gimple_cond_set_rhs): Likewise.
31028         (gimple_cond_set_true_label): Likewise.
31029         (gimple_cond_set_false_label): Likewise.
31030         (gimple_label_set_label): Likewise.
31031         (gimple_goto_set_dest): Likewise.
31032         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
31033         (gimple_debug_bind_get_value): Likewise.
31034         (gimple_debug_bind_get_value_ptr): Likewise.
31035         (gimple_debug_bind_set_var): Likewise.
31036         (gimple_debug_bind_set_value): Likewise.
31037         (gimple_debug_bind_reset_value): Likewise.
31038         (gimple_debug_bind_has_value_p): Likewise.
31039         (gimple_return_retval_ptr): Remove gcc_assert.
31040         (gimple_return_retval): Likewise.
31041         (gimple_return_set_retval): Likewise.
31042         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
31043         (safe_referenced_var_iterator): Remove.
31044         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
31045         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
31046         (fill_referenced_var_vec): Remove.
31047         (first_readonly_imm_use): Remove redundant gcc_assert.
31048         (phi_arg_index_from_use): Combine gcc_asserts.
31049         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
31050         (first_imm_use_stmt): Remove redundant gcc_assert.
31051         * tree-cfg.c (verify_gimple_call): Verify function and chain
31052         operands.  Verify arguments.
31053         (verify_types_in_gimple_stmt): Verify condition code and labels.
31054
31055 2010-01-07  Richard Guenther  <rguenther@suse.de>
31056
31057         PR tree-optimization/42641
31058         * sese.c (rename_map_elt_info): Use the SSA name version, do
31059         not hash pointers.
31060
31061 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
31062
31063         PR tree-optimization/42625
31064         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
31065         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
31066
31067 2010-01-07  Duncan Sands  <baldrick@free.fr>
31068
31069         * Makefile.in (PLUGIN_HEADERS): Add version.h.
31070
31071 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
31072
31073         PR target/42511
31074         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
31075         note itself is not function_invariant_p.
31076
31077 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
31078
31079         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
31080         Do not add the DF_NOTE problem.
31081         * store-motion.c (execute_rtl_store_motion): Likewise.
31082
31083 2010-01-07  Martin Jambor  <mjambor@suse.cz>
31084
31085         PR tree-optimization/42157
31086         * tree-sra.c (compare_access_positions): Stabilize sort if both
31087         accesses have integer types, return zero immediately if they are the
31088         same.
31089
31090 2010-01-06  Richard Henderson  <rth@redhat.com>
31091
31092         PR middle-end/41883
31093         * haifa-sched.c (add_to_note_list): Merge into ...
31094         (concat_note_lists): ... here, and ...
31095         (unlink_other_notes, rm_other_notes): Merge into...
31096         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
31097         NOTE_INSN_EPILOGUE_BEG.
31098
31099 2010-01-06  Richard Guenther  <rguenther@suse.de>
31100
31101         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
31102         not inline regular functions into always-inline functions.
31103
31104 2010-01-06  Nick Clifton  <nickc@redhat.com>
31105
31106         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
31107         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
31108         used together.
31109         (OVERRIDE_OPTIONS): Delete.
31110         (OPTIMIZATION_OPTIONS): Define.
31111         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
31112         * config/rx/rx.c (rx_handle_option): Issue an error message if
31113         -mcpu=rx200 and -fpu are used together.
31114         (rx_set_optimization_options): New function.  Issue an error
31115         message if an optimization attribute attempts to reset the FPU/
31116         math optimization pairing.
31117         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
31118         * config/rx/rx.opt: Set the default to 32-bit doubles.
31119         * config/rx/t-rx: Add multilibs for -nofpu option.
31120         * doc/invoke.texi: Update documentation of RX options.
31121
31122 2010-01-06  Richard Guenther  <rguenther@suse.de>
31123
31124         * tree-ssa-pre.c (name_to_id): New global.
31125         (alloc_expression_id): Simplify SSA name handling.
31126         (lookup_expression_id): Likewise.
31127         (init_pre): Zero name_to_id.
31128         (fini_pre): Free it.
31129
31130 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
31131
31132         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
31133
31134 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
31135
31136         PR target/42542
31137         * config/i386/sse.md (smaxv2di3): New.
31138         (umaxv2di3): Likewise.
31139         (sminv2di3): Likewise.
31140         (uminv2di3): Likewise.
31141
31142 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31143
31144         PR target/42564
31145         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
31146         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
31147         (legitimize_tls_address): Likewise.
31148         (sparc_tls_referenced_p): Likewise.
31149         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
31150         and adjust calls to legitimize_pic_address.
31151         (legitimate_constant_p) Use sparc_tls_referenced_p.
31152         (legitimate_pic_operand_p): Likewise.
31153         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
31154         (sparc_tls_symbol_ref_1): Delete.
31155         (sparc_tls_referenced_p): Make static, recognize specific patterns.
31156         (legitimize_tls_address): Make static, handle CONST patterns.
31157         (legitimize_pic_address): Make static, remove unused parameter and
31158         adjust recursive calls.
31159         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
31160         and adjust call to legitimize_pic_address.
31161         (sparc_output_mi_thunk): Likewise.
31162
31163 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
31164             H.J. Lu  <hongjiu.lu@intel.com>
31165
31166         PR target/42542
31167         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
31168         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
31169         operands to make them signed.
31170
31171         Revert:
31172         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
31173
31174         PR target/42542
31175         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31176         GTU to GT for V4SI and V2DI.
31177
31178         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31179         (umin<mode>3): Removed.
31180         (uminv8hi3): New.
31181         (uminv4si3): Likewise.
31182
31183 2010-01-05  Martin Jambor  <mjambor@suse.cz>
31184
31185         PR tree-optimization/42462
31186         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
31187         current_function_decl to helper functions and macros.
31188
31189 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31190
31191         PR bootstrap/41771
31192         * flags.h: Don't include real.h.
31193         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
31194         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
31195         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
31196         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
31197         * dominance.c: Update copyright.
31198         * gimple.c (walk_gimple_op): Remove inline.
31199         * tree-ssa-reassoc.c: Include real.h.
31200         * Makefile.in (FLAGS_H): Remove $(REAL_H).
31201         (tree-ssa-reassoc.o): Depend on $(REAL_H).
31202
31203 2010-01-05  Nick Clifton  <nickc@redhat.com>
31204
31205         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
31206         register to push into the stack frame when the accumulator has to
31207         be saved during interrupts.
31208
31209 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
31210
31211         * doc/invoke.texi: Remove the documentation about option
31212         -Wunreachable-code.
31213         * common.opt (Wunreachable-code):  Preserved for backward
31214         compatibility.
31215         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
31216         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
31217         the backward compatibility flag section.
31218
31219 2010-01-05  Richard Guenther  <rguenther@suse.de>
31220
31221         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
31222
31223 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
31224
31225         PR other/42611
31226         * cfgexpand.c (expand_one_var): Diagnose too large variables.
31227
31228         PR tree-optimization/42508
31229         * tree-sra.c (convert_callers): Check for recursive call
31230         by comparing cgraph nodes instead of decls.
31231         (modify_function): Call ipa_modify_formal_parameters also
31232         on all same_body aliases.
31233
31234         * cgraphunit.c (cgraph_materialize_all_clones): Compare
31235         cgraph nodes when checking for same_body aliases.
31236
31237 2010-01-05  Richard Guenther  <rguenther@suse.de>
31238
31239         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
31240         allocation and lookup.
31241         (get_or_alloc_expr_for_constant): Likewise.
31242         (phi_translate): Sink allocation.
31243
31244 2010-01-04  Richard Guenther  <rguenther@suse.de>
31245
31246         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
31247         a new entry only if needed.
31248         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
31249         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
31250         hashtable lookup.
31251         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
31252         the result array.
31253         (phi_translate): Handle CONSTANTs early.
31254
31255 2010-01-04  Martin Jambor  <mjambor@suse.cz>
31256
31257         PR tree-optimization/42398
31258         * tree-sra.c (struct access): Removed flag grp_different_types.
31259         (dump_access): Do not dump the removed flag.
31260         (sort_and_splice_var_accesses): Do not set the removed flag.
31261         (sra_modify_expr): Check for type compatibility directly.
31262
31263 2010-01-04  Martin Jambor  <mjambor@suse.cz>
31264
31265         PR tree-optimization/42366
31266         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
31267         edges with variable number of parameters.
31268         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
31269         flag instead of asserting it.
31270         (ipa_read_node_info): Read uses_analysis_done flag.
31271
31272 2010-01-04  Richard Guenther  <rguenther@suse.de>
31273
31274         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
31275         iterative_hash_* as intended.
31276         (vn_reference_compute_hash): Likewise.  Simplify hashing
31277         SSA names.
31278         (vn_reference_lookup_2): Likewise.
31279         (vn_nary_op_compute_hash): Likewise.
31280         (vn_phi_compute_hash): Likewise.
31281         (expressions_equal_p): Remove strange code.
31282         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
31283         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
31284         (bitmap_insert_into_set_1): Take value-id as parameter.
31285         (add_to_value): Pass it.
31286         (bitmap_insert_into_set): Likewise.
31287         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
31288
31289 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
31290
31291         PR driver/42442
31292         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
31293         (do_self_spec): For switches with SWITCH_IGNORE set set also
31294         SWITCH_IGNORE_PERMANENTLY.
31295         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
31296         of SWITCH_IGNORE.
31297
31298 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
31299
31300         * lto-streamer-out.c (output_unreferenced_globals): Output the full
31301         tree of an unreferenced global var.
31302
31303 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
31304
31305         PR target/42542
31306         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
31307         GTU to GT for V4SI and V2DI.
31308
31309         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
31310         (umin<mode>3): Removed.
31311         (uminv8hi3): New.
31312         (uminv4si3): Likewise.
31313
31314 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
31315
31316         PR lto/42581
31317         * collect2.c (main): Turn on trace in collect2 if -v is passed
31318         to gcc with LTO.
31319
31320 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
31321
31322         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
31323         description of expression operand.
31324
31325 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
31326
31327         * configure.ac: Add install-html to target_list for Make-hooks.
31328         * configure: Regenerate.
31329         * fortran/Make-lang.in (F95_HTMLFILES): New.
31330         (fortran.html): Use it.
31331         (fortran.install-html): New.
31332         * Makefile.in (install-html): Add lang.install-html.
31333         * java/Make-lang.in (JAVA_HTMLFILES): New.
31334         (java.html): Use it.
31335         (java.install-html): New.
31336         * objc/Make-lang.in (objc.install-html): New.
31337         * objcp/Make-lang.in (obj-c++.install-html): New.
31338         * cp/Make-lang.in (c++.install-html): New.
31339         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
31340         * lto/Make-lang.in (lto.install-html): New.
31341
31342 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31343
31344         PR lto/42520
31345         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
31346
31347 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
31348
31349         PR rtl-optimization/41862
31350         * store-motion.c (store_killed_in_insn, compute_store_table,
31351         remove_reachable_equiv_notes, replace_store_insn,
31352         build_store_vectors): Ignore all DEBUG_INSNs.
31353
31354 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
31355
31356         PR lto/41564
31357         * common.opt: Add dumpdir.
31358
31359         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
31360         isn't specified.
31361         (option_map): Add --dumpdir.
31362
31363         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
31364
31365         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
31366
31367         * opts.c (decode_options): Try dump_dir_name first if
31368         dump_base_name isn't an absolute path.
31369         (common_handle_option): Handle OPT_dumpdir.
31370
31371         * toplev.c (dump_dir_name): New.
31372         (print_switch_values): Also ignore -dumpdir.
31373
31374         * toplev.h (dump_dir_name): New.
31375
31376 2010-01-03  Richard Guenther  <rguenther@suse.de>
31377
31378         PR tree-optimization/42589
31379         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
31380         double-word expansion of bswap32.
31381
31382 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
31383
31384         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
31385         with BLOCK_FOR_INSN.
31386         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
31387         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
31388         noce_process_if_block): Likewise.
31389         * gcse.c (compute_local_properties, insert_expr_in_table,
31390         insert_set_in_table, canon_list_insert, find_avail_set,
31391         pre_insert_copy_insn): Likewise.
31392
31393         * basic-block.h (BLOCK_NUM): Move from here...
31394         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
31395
31396 2010-01-03  Richard Guenther  <rguenther@suse.de>
31397
31398         PR tree-optimization/42438
31399         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
31400         contains_may_not_return_call flag.
31401         (BB_MAY_NOTRETURN): New.
31402         (valid_in_sets): Trapping nary operations are not valid
31403         in blocks that may not return.
31404         (insert_into_preds_of_block): Remove check for trapping expressions.
31405         (compute_avail): Compute also BB_MAY_NOTRETURN.
31406
31407 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
31408
31409         * doc/invoke.texi: Add 2010 to copyright years.
31410
31411 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
31412
31413         * config/sparc/sparc.c: Fix formatting nits.
31414
31415 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
31416             Alexander Monakov  <amonakov@ispras.ru>
31417
31418         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
31419
31420 2010-01-02  Richard Guenther  <rguenther@suse.de>
31421
31422         PR middle-end/42577
31423         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
31424         (simplify_switch_using_ranges): Mark to be removed edges
31425         as non-executable.
31426
31427 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31428
31429         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31430
31431         * collect2.c (scan_libraries): Add missing argument in call to
31432         scan_prog_file.
31433
31434 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
31435
31436         PR target/42448
31437         * config/alpha/predicates.md (aligned_memory_operand): Return false
31438         for CQImode.
31439         (unaligned_memory_operand): Return true for CQImode.
31440         * config/alpha/alpha.c (get_aligned_mem): Assert that location
31441         doesn not cross aligned SImode word boundary.
31442
31443 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
31444
31445         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
31446         Remove.
31447         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
31448         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
31449
31450 2010-01-02  Richard Guenther  <rguenther@suse.de>
31451
31452         PR lto/41597
31453         * toplev.c (compile_file): Emit LTO marker properly.  Change
31454         it to __gnu_lto_v1.
31455         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
31456
31457 2010-01-01  Richard Guenther  <rguenther@suse.de>
31458
31459         PR debug/42455
31460         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
31461
31462 2010-01-01  Richard Guenther  <rguenther@suse.de>
31463
31464         PR c/42570
31465         * c-decl.c (grokdeclarator): For zero-size arrays force
31466         structural equality checks as layout_type does.
31467
31468 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
31469
31470         * builtins.c: Update copyright to 2010.
31471
31472 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
31473
31474         PR lto/42531
31475         * lto-streamer-out.c (produce_asm): Revert the last change.
31476         (copy_function): Likewise.
31477
31478         * lto-streamer.c (lto_get_section_name): Skip any leading
31479         asterisk in name.
31480
31481 2010-01-01  Richard Guenther  <rguenther@suse.de>
31482
31483         PR middle-end/42559
31484         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
31485         for LABEL_DECLs.
31486
31487 \f
31488 Copyright (C) 2010 Free Software Foundation, Inc.
31489
31490 Copying and distribution of this file, with or without modification,
31491 are permitted in any medium without royalty provided the copyright
31492 notice and this notice are preserved.