OSDN Git Service

* config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
2
3         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
4         unwind info for exceptions.
5
6 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7
8         PR testsuite/45851
9         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
10         Document optional target selector.
11
12 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
13
14         * flag-types.h: New.
15         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
16         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
17         options.h.
18         (OPTIONS_H): Define.
19         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
20         of options.h.
21         * configure.ac (tm_include_list): Include options.h not flags.h.
22         * configure: Regenerate.
23         * flags.h: Include flag-types.h.  Include options.h at top of file
24         again.
25         (enum debug_info_type, enum debug_info_level, enum
26         debug_info_usage, enum symbol_visibility, struct visibility_flags,
27         enum ira_algorithm, enum ira_region, enum excess_precision, enum
28         graph_dump_types, enum stack_check_type, enum
29         warn_strict_overflow_code): Move to flag-types.h
30         * opth-gen.awk: Include flag-types.h in options.h.
31
32 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
33
34         * expr.c (store_expr): Share code for STRING_CST and
35         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
36         check if target is a MEM.
37
38         * rtl.h: Include hashtab.h.
39         (iterative_hash_rtx): New prototype.
40         * rtl.c (iterative_hash_rtx): New function.
41         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
42         (output_loc_list): Return immediately if emitted is set,
43         set it.
44         (hash_loc_operands, hash_locs, hash_loc_list,
45         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
46         optimize_location_lists_1, optimize_location_lists): New function.
47         (dwarf2out_finish): Call optimize_location_lists.
48         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
49
50 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51
52         PR testsuite/45974
53         Revert:
54         * Makefile.in ($(lang_checks_parallel))
55         ($(lang_checks_parallelized)): Use single quotes for
56         $(RUNTESTFLAGS), to allow passing quoted content.
57
58 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
59
60         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
61         actual_oldval.  Use __builtin_expect.
62         (SUBWORD_VAL_CAS): Likewise.
63
64 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
65
66         * recog.c (nonmemory_operand): Call immediate_operand for
67         CONSTANT_P operands.
68
69 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
70
71         * config/i386/i386.md (movmem<mode>): Macroize expander from
72         movmem{si,di} using SWI48 mode iterator.
73         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
74         *strmovsi_rex_1 using P mode iterator.
75         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
76         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
77         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
78         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
79         (setmem<mode>): Macroize expander from setmem{si,di} using
80         SWI48 mode iterator.
81         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
82         *strsetsi_rex_1 using P mode iterator.
83         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
84         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
85         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
86         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
87         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
88         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
89         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
90         mode iterator.
91         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
92         *strlenqi_rex_1 using P mode iterator.
93
94 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
95
96         PR bootstrap/45445
97         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
98         static functions.
99         (mark_ref_live, mark_ref_dead): Use them.
100         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
101         Save the original reg, and use the new functions.
102         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
103         changed.
104         (check_and_make_def_conflict): Save the original reg.
105
106 2010-10-11  Martin Jambor  <mjambor@suse.cz>
107
108         PR middle-end/45699
109         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
110         thunks.
111
112 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113
114         * Makefile.in ($(lang_checks_parallel))
115         ($(lang_checks_parallelized)): Use single quotes for
116         $(RUNTESTFLAGS), to allow passing quoted content.
117
118         PR bootstrap/35855
119         * opt-functions.awk (BEGIN): New section.
120         (lower, upper, digit, alnum): New variables.
121         (static_var, opt_sanitized_name): Use alnum instead of character
122         classes, for non-C locale.
123         * optc-gen.awk: Likewise.
124         * opth-gen.awk: Likewise.
125
126 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
127
128         * target.def (preferred_reload_class): New hook.
129         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
130         * doc/tm.texi: Regenerate.
131         * targhooks.c (default_preferred_reload_class): New function.
132         * targhooks.h (default_preferred_reload_class): Declare.
133         * reload.c (find_dummy_reload): Change preferred_class variable type
134         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
135         target hook.
136         (find_reloads): Change goal_alternative array type from int to
137         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
138         (push_reload, find_reloads_address_part): Use
139         TARGET_PREFERRED_RELOAD_CLASS target hook.
140         * reload1.c (emit_input_reload_insns): Ditto.
141         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
142         hook. Change rclass argument and secondary_class variable types from
143         'enum reg_class' to reg_class_t.
144
145         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
146         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
147         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
148         Change regclass argument and result types from enum reg_class to
149         reg_class_t.
150         (TARGET_PREFERRED_RELOAD_CLASS): Define.
151
152 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
153
154         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
155         in masking operations.
156         (simplify_const_unary_operation): Likewise.
157         (simplify_binary_operation_1): Likewise.
158         (simplify_const_binary_operation): Likewise.
159         (simplify_const_relational_operation): Likewise.
160         (simplify_ternary_operation): Likewise.
161         (simplify_immed_subreg): Likewise.
162
163 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
164
165         PR middle-end/45862
166         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
167         (TARGET_SUPPORTS_WEAK): New.
168         * doc/tm.texi: Regenerate.
169         * defaults.h (SUPPORTS_WEAK): Update comment.
170         (TARGET_SUPPORTS_WEAK): New.
171         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
172         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
173         SUPPORTS_WEAK.
174         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
175         make_decl_one_only): Likewise.
176         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
177         TARGET_SUPPORTS_WEAK.
178         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
179         instead of SUPPORTS_WEAK.
180
181 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
182
183         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
184
185 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
186
187         * vec.h (VEC_qsort): Define.
188         * dbxout.c (output_used_types): Use it.
189         * df-scan.c (df_sort_and_compress_refs): Likewise.
190         (df_sort_and_compress_mws): Likewise.
191         * genautomata.c (uniq_sort_alt_states): Likewise.
192         (evaluate_equiv_classes): Likewise.
193         (output_trans_table): Likewise.
194         (output_state): Likewise.
195         * gimplify.c (compare_case_labels): Likewise.
196         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
197         * ipa.c (build_cdtor_fns): Likewise.
198         * lto.c (lto_wpa_write_files): Likewise.
199         * sel-sched.c (fill_vec_av_set): Likewise.
200         * tree-predcom.c (determine_roots_comp): Likewise.
201         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
202         (splice_param_accesses): Likewise.
203         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
204         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
205         (reassociate_bb): Likewise.
206         * tree-ssa-sccvn.c (sort_scc): Likewise.
207         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
208
209 2010-10-11  Ian Lance Taylor  <iant@google.com>
210
211         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
212         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
213         TREE_THIS_NOTRAP when appropriate.
214         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
215         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
216         newly created MEM_REF.
217
218 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
219
220         Nathan Froyds patch to hooks FUNCTION_ARG etc.
221         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
222         (picochip_incoming_function_arg): Delete.
223         (picochip_arg_advance): Delete.
224         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
225         (FUNCTION_INCOMING_ARG): Delete.
226         (FUNCTION_ARG_ADVANCE): Delete.
227         * config/picochip/picochip.c (picochip_function_arg): Take a
228         const_tree and a bool.
229         (picochip_incoming_function_arg): Likewise.
230         (picochip_arg_advance): Likewise.
231         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
232         (TARGET_FUNCTION_ARG_ADVANCE): Define.
233
234 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
235
236         PR middle-end/45955
237         * ipa.c (build_cdtor): Delete endless loop.
238
239 2010-10-07  Andi Kleen  <ak@linux.intel.com>
240
241         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
242         checksum-options.
243         (checksum-options): Add.
244         (cc1-dummy): Remove.
245         (cc1-checksum): Change to run checksum over object files
246         and options only.
247         * dummy-checksum.c: Remove.
248         * genchecksum.c: Update copyright.
249         (usage): Allow multiple arguments.
250         (BLOCKSIZE): Add.
251         (dosum): Change for incremental checksum. Remove C output.
252         (main): Iterate over all argument files. Add C output.
253
254 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
255
256         * params.c (set_param_value_internal): New.
257         (set_param_value): Use set_param_value_internal.
258         (maybe_set_param_value, set_default_param_value): New.
259         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
260         (maybe_set_param_value, set_default_param_value): Declare.
261         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
262         * config/i386/i386.c (ix86_option_override_internal): Use
263         maybe_set_param_value.
264         * config/ia64/ia64.c (ia64_option_default_params,
265         TARGET_OPTION_DEFAULT_PARAMS): New.
266         (ia64_option_optimization): Move some code to
267         ia64_option_default_params.
268         * config/picochip/picochip.c (picochip_option_override): Use
269         maybe_set_param_value.
270         * config/rs6000/rs6000.c (rs6000_option_default_params,
271         TARGET_OPTION_DEFAULT_PARAMS): New.
272         (rs6000_option_override_internal): Use maybe_set_param_value.
273         (rs6000_option_optimization): Move some code to
274         rs6000_option_default_params.
275         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
276         * config/sh/sh.c (sh_option_default_params,
277         TARGET_OPTION_DEFAULT_PARAMS): New.
278         (sh_option_optimization): Move some code to sh_option_default_params.
279         * config/sparc/sparc.c (sparc_option_override): Use
280         maybe_set_param_value.
281         * config/spu/spu.c (spu_option_default_params,
282         TARGET_OPTION_DEFAULT_PARAMS): New.
283         (spu_option_optimization): Move some code to spu_option_default_params.
284         (spu_option_override): Use maybe_set_param_value.
285         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
286         * doc/tm.texi: Regenerate.
287         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
288         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
289         compiler_params.
290         (default_options_optimization): Use maybe_set_param_value.
291         (finish_options): Use maybe_set_param_value.
292         * target.def (target_option.default_params): New hook.
293         * toplev.c (general_init): Call targetm.target_option.default_params.
294
295 2010-10-11  Ira Rosen  <irar@il.ibm.com>
296
297         PR tree-optimization/45902
298         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
299         vector type for constants, unless it's a pointer.
300
301 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
302
303         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
304
305 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
306
307         PR target/45870
308         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
309         (ix86_delegitimize_address): Use it.
310
311 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
312
313         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
314
315 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
316
317         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
318         to cum struct in the call to function_arg_advance.
319         (alpha_function_arg_advance): Mark named as unused.
320
321 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
322
323         * config/mips/mips.c (mips_handle_option): Make "value" with
324         ATTRIBUTE_UNUSED.
325
326 2010-10-09  Richard Henderson  <rth@redhat.com>
327
328         PR rtl-opt/33721
329         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
330         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
331         required_align, tidy the code a bit.  Emit split_stack code in the
332         right place.  Mark the return value with the alignment properly.
333         * expr.h (allocate_dynamic_stack_space): Update decl.
334         * builtins.c (expand_builtin_apply): Update call to
335         allocate_dynamic_stack_space.
336         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
337         * calls.c (initialize_argument_information): Update call to
338         allocate_dynamic_stack_space.
339         (expand_call): Likewise.
340
341         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
342         Don't update_stack_alignment here.
343         (alloc_stack_frame_space): Make ALIGN unsigned.
344         (stack_var_cmp): Sort by alignment too.
345         (partition_stack_vars): Don't merge large and small alignment vars.
346         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
347         Take care when BASE is not virtual_stack_vars_rtx.
348         (expand_stack_vars): Allocate dynamic stack space for large
349         alignment variables.
350         (expand_one_stack_var): Update all to expand_one_stack_var_at.
351         (defer_stack_allocation): True for large alignment vars.
352         (update_stack_alignment): Merge into ...
353         (expand_one_var): ... here.
354         (gimple_expand_cfg): Place code from expand_stack_vars.
355
356 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
357
358         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
359         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
360         (pdp11_function_arg_advance): New function.
361         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
362
363 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
364
365         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
366         * libgcc2.c: Likewise.
367
368 2010-10-09  Richard Guenther  <rguenther@suse.de>
369
370         PR lto/45956
371         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
372         Properly check if a decl is an automatic var.
373
374 2010-10-09  Richard Guenther  <rguenther@suse.de>
375
376         PR lto/45947
377         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
378
379 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
380
381         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
382         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
383         * config/mmix/mmix.c (mmix_function_arg): Rename to...
384         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
385         bool arguments.
386         (mmix_function_arg): New function.
387         (mmix_function_incoming_arg): New function.
388         (mmix_function_arg_advance): New function.
389         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
390         (TARGET_FUNCTION_ARG_ADVANCE): Define.
391
392 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
393
394         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
395         * config/vax/vax.c (vax_function_arg): New function.
396         (vax_function_arg_advance): New function.
397         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
398
399 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
400
401         * config/pa/pa-protos.h (function_arg): Delete.
402         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
403         * config/pa/pa.c (function_arg): Rename to...
404         (pa_function_arg): ...this.  Make static.  Take a const_tree and
405         a bool.
406         (pa_function_arg_advance): New function.
407         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
408
409 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
410
411         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
412         * config/m68k/m68k.c (m68k_function_arg): New function.
413         (m68k_function_arg_advance): New function.
414         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
415
416 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
417
418         * config/avr/avr-protos.h (function_arg): Delete.
419         (function_arg_advance): Delete.
420         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
421         * config/avr/avr.c (function_arg): Rename to...
422         (avr_function_arg): ...this.  Make static.  Take a const_tree and
423         a bool.
424         (function_arg_advance): Rename to...
425         (avr_function_arg_advance): ...this.  Make static.  Take a
426         const_tree and a bool.
427         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
428
429 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
430
431         * config/alpha/alpha-protos.h (function_arg): Delete.
432         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
433         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
434         * config/alpha/alpha.c (function_arg): Rename to...
435         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
436         a bool.  Delete TARGET_ABI_UNICOSMK code.
437         (alpha_function_arg_advance): New function.
438         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
439
440 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
441
442         * config/mep/mep-protos.h (mep_function_arg): Delete.
443         (mep_function_arg_advance): Delete.
444         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
445         * config/mep/mep.c (mep_function_arg): Make static.  Take a
446         const_tree and a bool.
447         (mep_function_arg_advance): Likewise.
448         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
449
450 2010-10-09  Richard Guenther  <rguenther@suse.de>
451
452         PR tree-optimization/45945
453         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
454
455 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
456
457         PR tree-optimization/45612
458         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
459         Test LABEL_DECLs as well.  Fix formatting issues.
460         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
461         whose label is present in NON_SSA_VARS.
462         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
463         as well.  Fix formatting issues.
464         (visit_bb): Fix typos and formatting issue.
465
466 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
467
468         PR tree-optimization/45950
469         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
470         before initializing vno->op.
471
472 2010-10-09  Ralf Corsépius <ralf.corsepius@rtems.org>
473
474         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
475         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
476
477 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
478
479         PR target/45913
480         * config/i386/i386.c (ix86_binary_operator_ok): Support
481         "andhi/andsi/anddi" as a zero-extending move.
482
483 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
484
485         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
486         into a temporary array.
487
488 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
489
490         PR tree-optimization/45903
491         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
492         of {A,L}SHIFTRT of MEM.
493
494 2010-10-08  Richard Guenther  <rguenther@suse.de>
495
496         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
497         Re-construct BLOCK_VARS.
498         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
499         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
500         * tree.c (free_lang_data_in_block): Remove.
501         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
502         Do not touch the BLOCK tree.
503         * expr.c (expand_expr_real_1): Allow externals.
504
505 2010-10-08  Richard Guenther  <rguenther@suse.de>
506
507         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
508         Do not output BLOCK_SUBBLOCKS.
509         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
510         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
511         Re-construct BLOCK_SUBBLOCKS of parent block.
512         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
513         for BINFO_BASE_ACCESSES.
514
515 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
516
517         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
518         (TREE_H): Include $(FLAGS_H) instead of options.h.
519         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
520         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
521         * common.opt (flag_complex_method, flag_evaluation_order,
522         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
523         Variable declarations.
524         * configure.ac (tm_include_list): Include flags.h instead of options.h.
525         * configure: Regenerate.
526         * flags.h: Condition out contents for target libraries.  Include
527         options.h at end of file.
528         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
529         flag_evaluation_order, flag_warn_unused_result): Remove.
530         * gcc.c (main): Intialize global_options with global_options_init.
531         * langhooks-def.h (lhd_init_options_struct): Declare.
532         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
533         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
534         * langhooks.c (lhd_init_options_struct): New.
535         * langhooks.h (struct lang_hooks): Add init_options_struct.
536         Update comment on init_options.
537         * optc-gen.awk: Generate initializer for global_options_init, not
538         global_options.
539         * opth-gen.awk: Condition out structure declarations for target
540         libraries.  Declare global_options_init.
541         * opts-common.c: Include flags.h instead of options.h.
542         * opts.c (flag_warn_unused_result): Remove.
543         (read_cmdline_options): Take gcc_options parameters.  Pass them to
544         read_cmdline_option.
545         (initial_lang_mask, initial_min_crossjump_insns,
546         initial_max_fields_for_field_sensitive,
547         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
548         (init_options_once): New.  Split out of decode_options.
549         (init_options_struct): New.  Split out of decode_options.
550         (decode_cmdline_options_to_array_default_mask): New.
551         (default_options_optimization): New.  Split out of decode_options.
552         (decode_options): Move most code to other functions.  Update call
553         to read_cmdline_options.
554         (finish_options): New.  Split out of decode_options.
555         * opts.h (decode_options): Add gcc_options parameters.
556         (init_options_once, init_options_struct,
557         decode_cmdline_options_to_array_default_mask): New.
558         * toplev.c (flag_complex_method, flag_ira_algorithm,
559         flag_ira_region, flag_evaluation_order): Remove.
560         (general_init): Use global_options_init for initial flag values
561         for global_dc.
562         (toplev_main): Call init_options_once, init_options_struct,
563         lang_hooks.init_options_struct,
564         decode_cmdline_options_to_array_default_mask and
565         lang_hooks.init_option before decode_options.  Update arguments to
566         decode_options.
567         * tree.h: Include flags.h instead of options.h.
568
569 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
570
571         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
572
573 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
574
575         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
576         Delete.
577         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
578         (FUNCTION_INCOMING_ARG): Delete.
579         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
580         (function_arg_slotno): Likewise.  Take bool arguments.
581         (sparc_arg_partial_bytes): Update call to it.
582         (function_arg): Rename to...
583         (sparc_function_arg_1): ...this.  Take bool arguments.
584         (sparc_function_arg, sparc_function_incoming_arg): New functions.
585         (function_arg_advance): Rename to...
586         (sparc_function_arg_advance): ...this.  Take bool argument.
587         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
588         (TARGET_FUNCTION_INCOMING_ARG): Define.
589
590 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
591
592         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
593         Delete.
594         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
595         * config/bfin/bfin.c (function_arg_advance): Rename to...
596         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
597         and bool arguments.
598         (function_arg): Rename to...
599         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
600         arguments.
601         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
602
603 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
604
605         * config/score/score-protos.h (score_function_arg): Delete.
606         (score_function_arg_advance): Delete.
607         * config/score/score3.h (score3_function_arg_advance): Take a
608         const_tree and a bool.
609         (score3_function_arg): Likewise.
610         * config/score/score7.h (score7_function_arg_advance): Likewise.
611         (score7_function_arg): Likewise.
612         * config/score/score3.c (score3_classify_arg): Likewise.
613         (score3_function_arg_advance, score3_function_arg): Likewise.
614         * config/score/score7.c (score7_classify_arg): Likewise.
615         (score7_function_arg_advance, score7_function_arg): Likewise.
616         * config/score/score.c (score_function_arg_advance): Likewise.
617         (score_function_arg): Likewise.  De-const-ify `cum' argument.
618         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
619
620 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
621
622         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
623         (s390_function_arg): Delete.
624         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
625         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
626         (s390_function_arg_integer): Likewise.
627         (s390_function_arg_advance): Make static.  Take a const_tree and
628         a bool.
629         (s390_function_arg): Likewise.
630         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
631
632 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
633
634         * config/spu/spu-protos.h (spu_function_arg): Delete.
635         * config/spu/spu.h (FUNCTION_ARG): Delete.
636         (FUNCTION_ARG_ADVANCE): Move code to ...
637         * config/spu/spu.c (spu_function_arg_advance): New function.
638         (spu_function_arg): Make static.  Take a const_tree and a bool.
639         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
640         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
641
642 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
643
644         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
645
646 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
647
648         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
649         (init_vn_nary_op_from_op): New function.
650         (init_vn_nary_op_from_stmt): New function.
651         (vn_nary_op_lookup_1): New function.
652         (sizeof_vn_nary_op): New function.
653         (alloc_vn_nary_op_noinit): New function.
654         (alloc_vn_nary_op): New function.
655         (vn_nary_op_insert_into): New function.
656         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
657         (vn_nary_op_lookup): Likewise.
658         (vn_nary_op_lookup_stmt): Likewise.
659         (vn_nary_op_insert_pieces): Likewise.
660         (vn_nary_op_insert): Likewise.
661         (vn_nary_op_insert_stmt): Likewise.
662         (copy_nary): Likewise.
663         (set_value_id_for_result): New function.
664         (set_hashtable_value_ids): Call it.
665
666 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
667
668         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
669         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
670
671 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
672
673         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
674         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
675
676 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
677
678         PR debug/45656
679         * cse.c (cse_extended_basic_block): Preserve cc0 info across
680         debug isnsn.  Skip them when searching for cc0 setter.
681         (set_live_p): Skip debug insns when searching for cc0 user.
682
683 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
684
685         PR debug/45673
686         PR debug/45604
687         PR debug/45419
688         PR debug/45408
689         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
690         type of MEM_REFs to INTEGER_CSTs.
691
692 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
693
694         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
695         m68hc11_print_operand_address.
696
697 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
698
699         * builtins.c (rewrite_call_expr): Move code to...
700         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
701         (rewrite_call_expr_array): New function.
702         (fold_builtin_sprintf_chk_1): New function.
703         (fold_builtin_sprintf_chk): Call it.
704         (gimple_fold_builtin_sprintf_chk): Likewise.
705         (fold_builtin_snprintf_chk_1): New function.
706         (fold_builtin_snprintf_chk): Call it.
707         (gimple_fold_builtin_snprintf_chk): Likewise.
708         (gimple_rewrite_call_expr): Delete.
709
710 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
711
712         * config.host: Update copyright year.
713
714 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
715
716         * config.host (host_lto_plugin_soname): New shell variable.
717         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
718         * config.in: Regenerate.
719         * configure: Regenerate.
720         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
721         LTO plugin shared library.
722
723 2010-10-07  Richard Henderson  <rth@redhat.com>
724
725         * target.h (enum unwind_info_type): Move ...
726         * coretypes.h: ... here.
727
728 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
729
730         * doc/objc.texi (Fast enumeration protocol): Mention that
731         'unsigned int' can also be used instead of 'unsigned long' in
732         countByEnumeratingWithState:objects:count:.
733
734 2010-10-07  Martin Jambor  <mjambor@suse.cz>
735
736         * tree-sra.c (struct access): New field grp_assignment_write.
737         (dump_access): Dump grp_assignment_write.
738         (build_accesses_from_assign): Set grp_assignment_write.
739         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
740         (mark_read_status): Renamed to mark_rw_status, individual values
741         renamed too.
742         (analyze_access_subtree): Changed type of mark_write to
743         mark_read_status.  Fixed propagating of mark_read and
744         mark_write.  Changed benefit estimate.  Updated comment.
745
746 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
747
748         PR Tree-Vect/45847
749         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
750         check for vectype_out returned by get_vectype_for_scalar_type().
751
752 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
753
754         PR target/45805
755         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
756         constraint, add register specifier in instruction template.
757         (neon_vec_pack_trunc_<mode>): Likewise.
758         (neon_vec_<US>mult_<mode>): Add register specifier to
759         instruction template.
760
761 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
762
763         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
764         cygwin2.o.
765         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
766         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
767         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
768         (cygwin2.o): Likewise.
769         * config/i386/cygwin1.c: Delete file.
770         * config/i386/cygwin2.c: Likewise.
771         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
772         make all {%!mno-cygwin} ones unconditional.
773         (STARTFILE_SPEC): Likewise.
774         (REAL_LIBGCC_SPEC): Likewise.
775         (LIB_SPEC): Likewise.
776         (CXX_WRAP_SPEC): Likewise.
777         (LINK_SPEC): Likewise.
778         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
779         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
780         (cygwin_gplusplus_include_dir): Delete now-unused array.
781         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
782         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
783         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
784         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
785         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
786         (cygwin_local_include_dir): Delete now-unused array.
787         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
788         (cygwin_cross_include_dir): Delete now-unused array.
789         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
790         (cygwin_tool_include_dir): Delete now-unused array.
791         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
792         (cygwin_standard_include_dir): Delete now-unused array.
793         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
794         (GEN_CVT_ARRAY): Delete now-unused macro definition.
795         (cvt_to_mingw): Delete now-unused array.
796         (mingw_scan): Remove prototype of deleted function.
797         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
798         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
799         * doc/invoke.texi (-mcygwin): Don't document removed option.
800         (-mno-cygwin): Likewise.
801
802 2010-10-07  Richard Guenther  <rguenther@suse.de>
803
804         * machmode.h (mode_for_vector): Declare.
805         * stor-layout.c (mode_for_vector): New function, split out from ...
806         (layout_type): ... here.
807         * tree-vectorizer.h (current_vector_size): Declare.
808         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
809         mask vector type is available.
810         (get_vectype_for_scalar_type): Rename to ...
811         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
812         size argument.
813         (get_vectype_for_scalar_type): New wrapper around
814         get_vectype_for_scalar_type_and_size using current_vector_size.
815         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
816         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
817         of vect_analyze_loop here.
818         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
819         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
820         to autodetect.
821         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
822         V8SF to V8SI conversion builtin.
823
824 2010-10-07  Richard Guenther  <rguenther@suse.de>
825
826         * target.def (autovectorize_vector_sizes): New target hook.
827         * targhooks.c (default_autovectorize_vector_sizes): New function.
828         * targhooks.h (default_autovectorize_vector_sizes): Declare.
829         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
830         Document.
831         * doc/tm.texi: Update.
832         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
833         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
834
835 2010-10-07  Richard Guenther  <rguenther@suse.de>
836
837         * target.def (units_per_simd_word): Rename to ...
838         (preferred_simd_mode): ... this.  Return mode instead of size.
839         * targhooks.c (default_units_per_simd_word): Rename to ...
840         (default_preferred_simd_mode): ... this.  Return word_mode.
841         * targhooks.h (default_preferred_simd_mode): Declare.
842         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
843         (arm_preferred_simd_mode): ... this.  Re-implement.
844         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
845         (ix86_preferred_simd_mode): ... this.  Re-implement.
846         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
847         (sparc_preferred_simd_mode): ... this.  Re-implement.
848         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
849         (mips_preferred_simd_mode): ... this.  Re-implement.
850         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
851         (rs6000_preferred_simd_mode): ... this.  Re-implement.
852         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
853         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
854         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
855         * doc/tm.texi: Update.
856
857 2010-10-07  Richard Guenther  <rguenther@suse.de>
858
859         PR middle-end/45869
860         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
861         of pointers.
862
863 2010-10-07  Alan Modra  <amodra@gmail.com>
864
865         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
866         rather than sign extension by hand.
867
868 2010-10-07  Jan Hubicka  <jh@suse.cz>
869
870         PR middle-end/45926
871         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
872
873 2010-10-07  Richard Guenther  <rguenther@suse.de>
874
875         PR bootstrap/45914
876         * configure.ac: Fix typo.
877         * configure: Regenerated.
878
879 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
880
881         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
882         define_builtin_std where it's unnecessary.
883         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
884
885 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
886
887         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
888         * doc/tm.texi.in: Regenerate.
889         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
890         * targhooks.c (default_class_likely_spilled_p): Don't use the
891         CLASS_LIKELY_SPILLED_P macro.
892
893         * config/arm/arm.md: Update comment.
894
895 2010-10-06  Jan Hubicka  <jh@suse.cz>
896
897         * ipa.c (cgraph_remove_unreachable_nodes): External references can
898         always be removed.
899         (cgraph_externally_visible_p): We can not bring local comdats that
900         are known to linker; fix handling of internal visibility.
901         (function_and_variable_visibility): Likewise.
902
903 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
904
905         PR rtl-optimization/45394
906         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
907         (struct rtx_subst_pair): Remove AFTER field.
908         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
909         (propagate_for_debug): Remove MOVE parameter and adjust.
910         (try_combine): In the special case where I2 is a PARALLEL, combine only
911         destinations of SETs and set I2SRC to the I2 source.
912         Adjust calls to propagate_for_debug throughout.
913         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
914         insns.
915
916 2010-10-06  Olivier Hainque  <hainque@adacore.com>
917
918         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
919         switch on insn codes as sequence of ifs.
920
921 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
922
923         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
924         be UI_NONE for picochip.
925         (picochip_option_override): Do not disable exception flags.
926         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
927         Declare.
928
929 2010-10-06  Richard Guenther  <rguenther@suse.de>
930
931         * Makefile.in (regmove.o): Depend on $(TARGET_H).
932
933 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
934
935         Implemented fast enumeration for Objective-C.
936         * c-parser.c (objc_could_be_foreach_context): New.
937         (c_lex_one_token): Recognize RID_IN keyword in a potential
938         Objective-C foreach context.
939         (c_parser_declaration_or_fndef): Added parameter.  Accept
940         Objective-C RID_IN keyword as terminating a declaration; in that
941         case, return the declaration in the new parameter.
942         (c_parser_extenral_declaration): Updated calls to
943         c_parser_declaration_or_fndef.
944         (c_parser_declaration_or_fndef): Same change.
945         (c_parser_compound_statement_nostart): Same change.
946         (c_parser_label): Same change.
947         (c_parser_objc_methodprotolist): Same change.
948         (c_parser_omp_for_loop): Same change.
949         (c_parser_for_statement): Detect and parse Objective-C foreach
950         statements.
951         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
952         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
953         fast enumeration parsing code to turn off the c99 error but still
954         perform checks on the loop declarations.
955         * c-tree.h (check_for_loop_decls): Updated declaration.
956         * doc/objc.texi: Document fast enumeration.
957
958 2010-10-06  Nick Clifton  <nickc@redhat.com>
959
960         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
961         (MDR_REGNUM): Define.
962         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
963         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
964         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
965         (REGISTER_NAMES): Add MDR.
966         (DWARF2_DEBUGGING_INFO): Define to 1.
967         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
968         (F): New function.  Sets RTX_FRAME_RELATED_P.
969         (mn10300_gen_multiple_store): Use F.
970         (expand_prologue): Use F.  Use gen_movsf() to push floating
971         point registers.
972         (expand_epilogue): Use gen_movsf() to pop floating point registers.
973         (mn10300_option_override): Disable combine stack adjust pass.
974
975 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
976
977         PR target/45901
978         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
979         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
980
981 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
982
983         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
984         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
985         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
986         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
987         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
988         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
989         BUILT_IN_TOUPPER): Mark as leaf.
990
991         PR middle-end/45838
992         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
993         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
994         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
995         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
996         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
997         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
998         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
999
1000 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
1001
1002         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
1003         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1004         (m68hc11_class_likely_spilled_p): New function.
1005
1006 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
1007
1008         * c-parser.c (c_parser_objc_method_definition): Updated comment.
1009
1010 2010-10-05  Jan Hubicka  <jh@suse.cz>
1011
1012         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
1013         Document.
1014         * opts.c (decode_options): Handle lto partitions.
1015         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
1016         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
1017
1018 2010-10-05  Jan Hubicka  <jh@suse.cz>
1019
1020         * cgraphunit.c (assemble_function): Output thunks and aliases before
1021         the function itself.
1022
1023 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
1024
1025         * config/picochip/picochip.c (picochip_option_override): Disable
1026         exception flags for picochip.
1027
1028 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
1029
1030         * opts-common.c (handle_option, handle_generated_option,
1031         read_cmdline_option, set_option): Add diagnostic_context
1032         parameter.  Update calls among these functions.
1033         (set_option): Don't use global_dc.
1034         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
1035         (decode_options): Pass global_dc to enable_warning_as_error.
1036         (common_handle_option): Pass global_dc to enable_warning_as_error.
1037         (enable_warning_as_error): Add diagnostic_context parameter.
1038         Document parameters.  Don't use global_dc.  Pass
1039         diagnostic_context parameter to handle_generated_option.
1040         * opts.h (set_option, handle_option, handle_generated_option,
1041         read_cmdline_option, enable_warning_as_error): Add
1042         diagnostic_context parameter.
1043         * Makefile.in (lto-opts.o): Update dependencies.
1044         * coretypes.h (struct diagnostic_context, diagnostic_context):
1045         Declare here.
1046         * diagnostic.h (diagnostic_context): Don't declare typedef here.
1047         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
1048         * langhooks-def.h (struct diagnostic_context): Don't declare here.
1049         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
1050         using diagnostic_context typedef.
1051         * langhooks.c (lhd_initialize_diagnostics): Declare using
1052         diagnostic_context typedef.
1053         * langhooks.h (struct diagnostic_context): Don't declare here.
1054         (initialize_diagnostics, print_error_function): Declare using
1055         diagnostic_context typedef.
1056         * lto-opts.c: Include diagnostic.h.
1057         (lto_reissue_options): Pass global_dc to set_option.  Pass
1058         DK_UNSPECIFIED not 0.
1059         * plugin.c (plugins_internal_error_function): Declare using
1060         diagnostic_context typedef.
1061         * plugin.h (struct diagnostic_context): Don't declare here.
1062         (plugins_internal_error_function): Declare using
1063         diagnostic_context typedef.
1064
1065 2010-10-05  Olivier Hainque  <hainque@adacore.com>
1066             Nicolas Roche  <roche@adacore.com>
1067
1068         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
1069         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
1070
1071 2010-10-05  Ira Rosen  <irar@il.ibm.com>
1072
1073         PR tree-optimization/45752
1074         * tree-vect-slp.c (vect_get_mask_element): Remove static
1075         variables, make them function arguments.
1076         (vect_transform_slp_perm_load): Pass new arguments to
1077         vect_get_mask_element.
1078
1079 2010-10-05  Richard Guenther  <rguenther@suse.de>
1080
1081         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
1082         (gimple_mod_pow2): Likewise.
1083         (gimple_mod_subtract): Likewise.
1084         (gimple_ic): Likewise.
1085         (gimple_stringop_fixed_value): Likewise.
1086         * tree-profile.c (tree_init_edge_profiler): Mark profile
1087         functions nothrow and leaf.
1088         (add_abnormal_goto_call_edges): Remove.
1089         (tree_gen_edge_profiler): Work on SSA form.
1090         (tree_gen_ic_profiler): Likewise.  Simplify.
1091         (do_tree_profiling): Update SSA form.
1092         (pass_tree_profile): Remove.
1093         (do_tree_profiling): Likewise.
1094         (gate_tree_profile_ipa): New function.
1095         (pass_ipa_tree_profile): New.
1096         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
1097         state of instrumented functions.
1098         * passes.c (init_optimization_passes): Remove early non-SSA
1099         inlining.  Move profiling after early optimizations.
1100         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
1101         (pass_ipa_early_inline): Likewise.
1102         * tree-pass.h (pass_ipa_early_inline): Remove.
1103         (pass_tree_profile): Likewise.
1104         (pass_ipa_tree_profile): Declare.
1105
1106 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1107             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
1108
1109         * gcc/config/s390/s390.c (z196_cost): New.
1110         (s390_handle_arch_option): Add -march=z196.
1111         (s390_option_override): Use the new cost function and use the z10
1112         defaults also for z196.
1113         (legitimate_reload_constant_p): Adjust comment.
1114         (legitimate_reload_fp_constant_p): New function.
1115         (s390_preferred_reload_class): Distingiush between FP and Int constants.
1116         (preferred_la_operand_p): Avoid la with index on z196.
1117         (s390_adjust_priority): Trigger also for z196.
1118         (s390_issue_rate): Issue rate for z196 is 3.
1119         (s390_z10_fix_long_loop_prediction): Rename to ...
1120         (s390_fix_long_loop_prediction): ... this.
1121         (s390_reorg): Apply the z10 adjustments also for z196.
1122         (s390_loop_unroll_adjust): Do this also for z196.
1123         * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
1124         (enum processor_flags): Add PF_Z196.
1125         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
1126         (TARGET_CPU_Z196, TARGET_Z196): New macros.
1127         * gcc/config.gcc: Enable z196 for --with-arch.
1128         * gcc/config/s390/2817.md: New file.
1129         * gcc/config/s390/2084.md: New type for multiply and add.
1130         * gcc/config/s390/2097.md: Likewise.
1131         * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
1132         (UNSPECV_ATOMIC_OP): New constants.
1133         (fmadddf, fmaddsf): New values for type attribute.
1134         (z196prop): New insn attribute.
1135         (cpu, cpu_facility): Add z196.
1136         (ATOMIC_Z196): New code iterator.
1137         (noxa): New code attribute.
1138         (gk): New mode attribute.
1139         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
1140         Support load zero for fp constants.
1141         (fixuns_truncdddi2, fixuns_trunctddi2)
1142         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
1143         for z196.
1144         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
1145         (popcounthi2, popcountqi2): New expander.
1146         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
1147         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
1148         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
1149         insn definition.
1150         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
1151         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
1152         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
1153         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
1154         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
1155         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
1156         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
1157         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
1158         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
1159         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
1160         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
1161         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
1162         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
1163         Support new z196 instructions.
1164
1165 2010-10-05  Richard Guenther  <rguenther@suse.de>
1166
1167         PR middle-end/45877
1168         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
1169         case where gimplification optimizes away the stmt.
1170
1171 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
1172
1173         PR debug/45849
1174         * var-tracking.c (strip_pointer_flags): New function.
1175         (emit_note_insn_var_location): If rtx_equal_p check failed,
1176         retry on locations simplified with simplify_replace_fn_rtx
1177         and strip_pointer_flags as its callback.
1178
1179 2010-10-04  Jan Hubicka  <jh@suse.cz>
1180
1181         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
1182         (can_refer_decl_in_current_unit_p): ... this one; reverse return
1183         value; handle comdats too.
1184         (canonicalize_constructor_val): Use it; handle function_decls
1185         correctly.
1186         (gimple_fold_obj_type_ref_known_binfo): Likewise.
1187         * gimple.c (get_base_address): Accept all kinds of decls.
1188
1189 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
1190
1191         * flags.h (g_switch_value, g_switch_set): Remove.
1192         * opts.c (g_switch_value, g_switch_set): Remove.
1193         * config/g.opt (G): Add Var(g_switch_value).
1194         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
1195         (alpha_option_override): Check global_options_set.x_g_switch_value
1196         instead of g_switch_set.
1197         (alpha_in_small_data_p): Remove cast in comparison with
1198         g_switch_value.
1199         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
1200         g_switch_value to unsigned HOST_WIDE_INT.
1201         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
1202         with g_switch_value.
1203         (frv_handle_option): Don't handle -G here.
1204         (frv_option_override): Check global_options_set.x_g_switch_value
1205         instead of g_switch_set.  Don't modify g_switch_set.
1206         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
1207         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
1208         g_switch_value to unsigned HOST_WIDE_INT.
1209         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
1210         (ia64_option_override): Check global_options_set.x_g_switch_value
1211         instead of g_switch_set.
1212         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
1213         Remove.
1214         (lm32_in_small_data_p): Remove cast in comparison with
1215         g_switch_value.
1216         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
1217         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
1218         HOST_WIDE_INT.
1219         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
1220         (m32r_init): Check global_options_set.x_g_switch_value instead of
1221         g_switch_set.
1222         (m32r_in_small_data_p): Remove cast in comparison with
1223         g_switch_value.
1224         (m32r_file_start): Format g_switch_value with %d.
1225         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
1226         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
1227         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
1228         handle -G here.
1229         (microblaze_option_override): Check
1230         global_options_set.x_g_switch_value instead of g_switch_set.
1231         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
1232         (mips_option_override): Check global_options_set.x_g_switch_value
1233         instead of g_switch_set.
1234         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
1235         (rs6000_file_start): Format g_switch_value with %d.
1236         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
1237         comparisons with g_switch_value.
1238         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
1239         global_options_set.x_g_switch_value instead of g_switch_set.
1240         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1241         global_options_set.x_g_switch_value instead of g_switch_set.
1242         * config/score/score.c (score_handle_option): Don't handle -G here.
1243         * config/score/score3.c (score3_option_override): Check
1244         global_options_set.x_g_switch_value instead of g_switch_set.
1245         * config/score/score7.c (score7_option_override): Check
1246         global_options_set.x_g_switch_value instead of g_switch_set.
1247
1248 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
1249
1250         * common.opt (fira-coalesce): Remove.
1251
1252         * doc/invoke.texi (flag_ira_coalesce): Remove.
1253
1254         * ira-color.c (allocno_coalesced_p): Move before
1255         copy_freq_compare_func.
1256         processed_coalesced_allocno_bitmap): Ditto.
1257         (update_conflict_hard_regno_costs): Don't use
1258         ALLOCNO_FIRST_COALESCED_ALLOCNO.
1259         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
1260         (assign_hard_reg): Assume no coalesced allocnos.
1261         (get_coalesced_allocnos_attributes): Remove.
1262         (bucket_allocno_compare_func): Assume no coalesced allocnos.
1263         (push_allocno_to_stack): Ditto.
1264         (remove_allocno_from_bucket_and_push): Use
1265         ira_print_expanded_allocno instead of print_coalesced_allocno.
1266         (push_allocnos_to_stack): Assume uncoalesced allocnos.
1267         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
1268         all_conflicting_hard_regs.
1269         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
1270         (setup_allocno_left_conflicts_size): Ditto.
1271         (put_allocno_into_bucket): Ditto.
1272         (copy_freq_compare_func): Remove.
1273         (copy_freq_compare_func, merge_allocnos): Move before
1274         coalesced_pseudo_reg_freq_compare.
1275         coalesced_allocno_conflict_p): Ditto.
1276         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
1277         parameter.  Assume it true.
1278         (color_allocnos): Assume uncoalesced allocnos.  Use
1279         ira_print_expanded_allocno instead of print_coalesced_allocno.
1280         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
1281         parameter.
1282
1283         * ira.c: Remove comment about coalescing.
1284
1285 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
1286
1287         * config/mips/mips.h (target_flags_explicit): Declare for
1288         GENERATOR_FILE.
1289
1290 2010-10-04  Andi Kleen <ak@linux.intel.com>
1291
1292         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
1293         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
1294
1295 2010-10-04  Matthias Klose  <doko@ubuntu.com>
1296
1297         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
1298         multilib osdirname if it exists.
1299         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
1300
1301 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
1302
1303         PR middle-end/45876
1304         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
1305         arg0's type or its unsigned counterpart as utype.  Convert
1306         arg1 to utype unconditionally.
1307
1308 2010-10-04  Julian Brown  <julian@codesourcery.com>
1309
1310         * expr.c (expand_assignment): Add assertion to prevent emitting
1311         null rtx for movmisalign pattern.
1312         (expand_expr_real_1): Likewise.
1313         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
1314         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
1315         (arm_vector_alignment_reachable): New.
1316         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
1317         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
1318         (arm_print_operand): Include alignment qualifier in %A.
1319         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
1320         (movmisalign<mode>): New expander.
1321         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
1322         insn patterns.
1323
1324 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
1325
1326         * optc-gen.awk: Define global_options_set.  Don't define
1327         target_flags_explicit.
1328         * opth-gen.awk: Declare global_options_set.  Define
1329         target_flags_explicit as macro.
1330         * opts-common.c (handle_option): Take opts_set and generated_p
1331         parameters.
1332         (handle_generated_option, read_cmdline_option, set_option): Take
1333         opts_set parameter.
1334         (set_option): Use opts_set instead of hardcoding target_flags and
1335         target_flags_explicit.
1336         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
1337         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
1338         flag_value_profile_transformations_set, flag_peel_loops_set,
1339         flag_branch_probabilities_set, flag_inline_functions_set,
1340         flag_ipa_cp_set, flag_ipa_cp_clone_set,
1341         flag_predictive_commoning_set, flag_unswitch_loops_set,
1342         flag_gcse_after_reload_set): Remove.
1343         (common_handle_option, lang_handle_option, target_handle_option):
1344         Take opts_set parameter.  Assert that it is &global_options_set.
1345         (common_handle_option): Don't set _set variables.  Check opts_set
1346         instead of such variables.
1347         (enable_warning_as_error): Pass &global_options_set to
1348         handle_generated_option.
1349         * opts.h (cl_option_handler_func.handler, set_option,
1350         handle_option, handle_generated_option, read_cmdline_option): Add
1351         opts_set parameters.
1352         (handle_option): Add generated_p parameter.
1353         * config/i386/i386.c (ix86_function_specific_save,
1354         ix86_function_specific_restore): Updat for renaming of
1355         target_flags_explicit field.
1356         * config/i386/i386.opt (target_flags_explicit): Rename to
1357         ix86_target_flags_explicit.
1358         * config/ia64/ia64.c (ia64_override_options_after_change): Check
1359         global_options_set.x_flag_selective_scheduling and
1360         global_options_set.x_flag_selective_scheduling2, not
1361         sel_sched_switch_set.
1362         * flags.h (sel_sched_switch_set,
1363         flag_speculative_prefetching_set): Remove.
1364         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
1365         that it is &global_options_set.
1366         (process_command): Pass &global_options_set to read_cmdline_option.
1367         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
1368         set_option.
1369         * toplev.c (target_flags_explicit): Remove.
1370
1371 2010-10-04  Jan Hubicka  <jh@suse.cz>
1372
1373         PR middle-end/45871
1374         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
1375         use get_ref_base_and_offset to handle references.
1376         (fold_const_aggregate_ref): Update.
1377
1378 2010-10-04  Martin Jambor  <mjambor@suse.cz>
1379
1380         PR tree-optimization/45572
1381         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
1382         ipa_check_create_node_params.
1383         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
1384
1385 2010-10-04  Yao Qi  <yao@codesourcery.com>
1386
1387         * doc/passes.texi: Clean up.
1388
1389 2010-10-03  Ian Lance Taylor  <iant@google.com>
1390
1391         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
1392         referring to a field using a typedef name.
1393         (find_anonymous_field_with_type): New static function.
1394         (convert_to_anonymous_field): New static function.
1395         (convert_for_assignment): If -fplan9-extensions, permit converting
1396         pointer to struct to pointer to anonymous field.
1397         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
1398         (is_duplicate_field): New static function.
1399         (detect_field_duplicates_hash): If -fplan9-extensions, check for
1400         typedef names duplicating field names.
1401         (detect_field_duplicates): Likewise.
1402         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
1403         (C Dialect Options): Document -fplan9-extensions.
1404         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
1405
1406 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
1407
1408         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
1409         revision 164914.
1410         (vect_create_data_ref_ptr): Likewise.
1411         * tree-vect-stmts.c (vectorizable_store): Likewise.
1412         (perm_mask_for_reverse): Likewise.
1413         (reverse_vec_elements): Likewise.
1414         (vectorizable_load): Likewise.
1415
1416 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1417
1418         * cppbuiltin.c: New file.
1419         * cppbuiltin.h: New file.
1420         * Makefile.in: Take into account cppbuiltin.{h,c}.
1421
1422 2010-10-03  Andi Kleen <ak@linux.intel.com>
1423
1424         * lto-cgraph.c (input_cgraph): Check for missing sections.
1425
1426 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
1427
1428         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
1429         to nonimmediate_operand.  Force operand 2 to register when allowed.
1430         (*<shiftrt_insn><mode>3_mask): Ditto.
1431         (*<rotate_insn><mode>3_mask): Ditto.
1432
1433 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1434
1435         PR tree-optimization/45720
1436         PR tree-optimization/45764
1437         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
1438         Don't accept backwards consecutive accesses.
1439         (vect_create_data_ref_ptr): Disallow negative steps.
1440
1441         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
1442         (perm_mask_for_reverse): Removed.
1443         (reverse_vec_elements): Likewise.
1444         (vectorizable_load): Don't handle negative steps.
1445
1446 2010-10-02  Jan Hubicka  <jh@suse.cz>
1447
1448         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
1449         call destination is known.
1450
1451 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1452
1453         PR target/45820
1454         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
1455         earlier.
1456
1457 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1458
1459         * doc/install.texi (Configuration): Document build_configargs,
1460         host_configargs, target_configargs.
1461
1462 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
1463
1464         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
1465         (*<shiftrt_insn><mode>3_mask): Ditto.
1466         (*<rotate_insn><mode>3_mask): Ditto.
1467
1468 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
1469
1470         PR tree-optimization/44716
1471         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1472         (HOT_TEXT_SECTION_NAME): Define.
1473
1474 2010-10-01  Nick Clifton  <nickc@redhat.com>
1475
1476         * common.opt: Add -fcombine-stack-adjustments.
1477         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
1478         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
1479         flag_combine_stack_adjustments.
1480         * doc/invoke.texi: Document the new option.
1481
1482 2010-10-01  Richard Guenther  <rguenther@suse.de>
1483
1484         PR tree-optimization/45854
1485         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
1486
1487 2010-10-01  Anthony Green  <green@moxielogic.com>
1488
1489         * config.gcc: Fix moxie-*-rtems* configuration.
1490
1491 2010-10-01  Richard Guenther  <rguenther@suse.de>
1492
1493         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
1494         (gen_decl_die): Likewise.
1495
1496 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1497
1498         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
1499         to the function code for SPU MD builtins.
1500         (spu_expand_builtin): Update.
1501         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
1502
1503 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1504
1505         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
1506         sjlj_except_unwind_info.
1507
1508 2010-10-01  Tristan Gingold  <gingold@adacore.com>
1509
1510         * configure.ac: Define the nop insn for avr*-*-*
1511         * configure: Regenerate.
1512
1513 2010-10-01  Alan Modra  <amodra@gmail.com>
1514
1515         PR target/45807
1516         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
1517         extend toc_restore_insn.
1518
1519 2010-09-30  Richard Guenther  <rguenther@suse.de>
1520
1521         PR tree-optimization/43959
1522         * function.c (gimplify_parameters): Use create_tmp_reg instead of
1523         create_tmp_var.
1524
1525 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1526
1527         * config/sh/sh.c (sh_expand_prologue): Set
1528         current_function_static_stack_size.
1529
1530 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1531
1532         * configure.ac: Check for Solaris 8 ld with .hidden support.
1533         * configure: Regenerate.
1534
1535 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1536
1537         PR middle-end/45758
1538         * graphite.c (graphite_initialize): Call scev_reset.
1539
1540 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1541
1542         * sese.h (scev_analyzable_p): Return false for real or floating
1543         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
1544
1545 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1546
1547         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
1548         and ps.
1549         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
1550         domain.
1551         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
1552         Do not allocate ub_expr, it is passed in initialized.
1553
1554 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1555
1556         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
1557         (build_cloog_prog): Dump CLooG input file when
1558         flag_graphite_dump_cloog is set.  This is disabled on trunk.
1559         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
1560
1561 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1562
1563         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
1564         verify_dominators for CDI_POST_DOMINATORS.
1565         * sese.h: Remove comment about CDI_POST_DOMINATORS.
1566         (recompute_all_dominators): Remove call to free_dominance_info
1567         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
1568         for CDI_POST_DOMINATORS.
1569
1570 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1571
1572         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
1573         over pbb_dim_iter_domain.
1574
1575 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1576
1577         * graphite-flattening.c: Fix comments.
1578
1579 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1580
1581         * Makefile.in (OBJS-common): Add graphite-flattening.o.
1582         (graphite-flattening.o): New rule.
1583         * common.opt (floop-flatten): New flag.
1584         * doc/invoke.texi (-floop-flatten): Documented.
1585         * graphite-flattening.c: New.
1586         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
1587         * graphite-poly.h (flatten_all_loops): Declared.
1588         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
1589         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
1590         is set, also set flag_graphite.
1591
1592 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1593
1594         * graphite-poly.c (cloog_checksum): New.
1595         * graphite-poly.h (cloog_checksum): Declared.
1596
1597 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1598
1599         * graphite-poly.c (pbb_number_of_iterations): Removed.
1600         (pbb_number_of_iterations_at_time): Correctly compute the number
1601         of iterations in the transformed loop.
1602         * graphite-poly.h (pbb_number_of_iterations): Removed.
1603
1604 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1605
1606         * graphite-poly.h (lst_update_scattering_seq): Removed.
1607         (lst_update_scattering): Correctly handle outermost loop dewey
1608         renumbering.
1609
1610 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1611
1612         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
1613         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
1614         * graphite-poly.h (lst_niter_for_loop): New.
1615
1616 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1617
1618         * graphite-poly.c (apply_poly_transforms): Do not abort when the
1619         transform read from disk is not legal.  Call fatal_error instead.
1620
1621 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1622
1623         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
1624         (print_scop_header): Removed.  Inlined in the only call place...
1625         (print_scop): ... here.
1626
1627 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1628
1629         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
1630
1631 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1632
1633         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
1634
1635 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1636
1637         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
1638         (dot_deps_stmt): Same.
1639         * graphite-poly.c (dot_lst): Same.
1640
1641 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1642
1643         * graphite-blocking.c (scop_do_strip_mine): Do not call
1644         graphite_legal_transform.
1645         (scop_do_block): Same.
1646
1647 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
1648
1649         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
1650         description.
1651
1652 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1653
1654         * tree-scalar-evolution.c (instantiate_array_ref): New.
1655         (instantiate_scev_r): Also handle ARRAY_REFs.
1656
1657 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1658
1659         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1660         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
1661         RESULT_DECL, and FIELD_DECL.  Return false for an
1662         SSA_NAME_IS_DEFAULT_DEF.
1663         (compute_scalar_evolution_in_loop): Do not further analyze the
1664         scalar evolution when no_evolution_in_loop_p returns true.
1665
1666 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1667
1668         * tree-chrec.h (evolution_function_is_affine_p): Do not check
1669         whether CHREC_LEFT is invariant.  A function is affine when
1670         CHREC_RIGHT is invariant.
1671
1672 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1673
1674         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
1675         is_gimple_reg.
1676         (rewrite_degenerate_phi): Same.
1677         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
1678
1679 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
1680
1681         * graphite-scop-detection.c (graphite_can_represent_scev,
1682         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
1683         graphite_can_represent_loop): Remove outermost_loop.
1684
1685 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1686
1687         PR middle-end/45229
1688         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
1689         handle GIMPLE_CALLs with no LHS.
1690
1691 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
1692
1693         * graphite-poly.c (init_graphite_out_file): New.
1694         (init_graphite_in_file): New.
1695         (apply_poly_transforms): Updated to enable reading and writing of
1696         multiple scop files.
1697
1698 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
1699
1700         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
1701         redundant checks.
1702
1703 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1704
1705         * graphite-clast-to-gimple.c (precision_for_value): Adjust
1706         computation of precision by 1.
1707
1708 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
1709
1710         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
1711         (openscop_read_polyhedron_matrix): New.
1712         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
1713         (openscop_read_N_int): Same.
1714         * graphite-poly.c (openscop_read_N_int): New.
1715         (openscop_read_one_int): New.
1716         (openscop_read_N_string): New.
1717         (openscop_read_one_string): New.
1718         (openscop_read_powerset_matrix): New.
1719         (graphite_read_transforms): Remove.
1720         (graphite_read_scatt): New.
1721         (graphite_read_scop_file): New.
1722         (apply_poly_transforms): Updated to call graphite_read_scop_file.
1723
1724 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1725
1726         * graphite-poly.c: Change include order.
1727
1728 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1729
1730         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
1731         (cloog_matrix_nrows): New.
1732
1733 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
1734
1735         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
1736         from matrix lines.
1737         * graphite-poly.c (openscop_print_scattering_function_1): Same.
1738         (print_scattering_function_1): Same.
1739         (openscop_print_pbb_domain): Same.
1740         (openscop_print_scop_context): Same.
1741         (print_scop_context): Same.
1742
1743 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
1744
1745         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
1746         (openscop_print_pdr_polyhedron): Print pph.
1747
1748 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1749
1750         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
1751         priority signed types.
1752
1753 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1754
1755         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
1756         the call to lang_hooks.types.type_for_size.  Call
1757         build_nonstandard_integer_type.
1758
1759 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
1760
1761         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
1762         (openscop_print_polyhedron_matrix): New.
1763         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
1764         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
1765         (openscop_print_pdr_powerset): New.
1766         (openscop_print_powerset_matrix): New.
1767         (openscop_print_scattering_function_1): New.
1768         (print_scattering_function): Add support for scattering names and
1769         OpenScop format.
1770         (graphite_write_transforms): Remove.
1771         (print_pdr_access_layout): Updated to support OpenScop format.
1772         (print_pdr): Same.
1773         (openscop_print_pbb_domain): New.
1774         (print_pbb_body): Added a parameter to allow indicating that pbb_body
1775         is not provided.
1776         (print_pbb): Updated to call the new print_pbb_body.
1777         (openscop_print_scop_context): New.
1778         (print_scop_header): New.
1779         (print_scop): Updated to call print_scop_header.
1780         * graphite-poly.h: Document OpenScop format.
1781
1782 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
1783
1784         * config/cris/m32c.c (cris_memory_move_cost): New.
1785         (cris_register_move_cost): Make static. Change arguments type from
1786         enum reg_class to reg_class_t.
1787         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1788         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1789         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
1790
1791 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
1792
1793         PR target/45843
1794         * config/i386/i386.c (ix86_gimplify_va_arg): Use
1795         INTVAL (XEXP (slot, 1)) as prev_size.
1796
1797 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
1798
1799         PR target/45837
1800         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
1801         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
1802         defined.
1803         * config/rs6000/option-defaults.h (toplevel): Change #if
1804         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
1805         global option changes.
1806
1807 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
1808
1809         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
1810
1811         PR tree-optimization/31261
1812         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
1813         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
1814
1815 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1816
1817         PR bootstrap/45796
1818         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
1819         special-casing for generators and turn into ...
1820         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
1821         rule, for better error messages in case of toplevel dependency errors.
1822         (genprog): Add hooks, rename to ...
1823         (genprogerr): ... this, and let genprog also contain check,
1824         checksum, condmd.
1825         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
1826         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
1827         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
1828
1829 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
1830             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1831
1832         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
1833         for GMP, MPFR and MPC.
1834
1835 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1836
1837         * config/sparc/sparc.opt (mimpure-text): Move ...
1838         * config/sol2.opt: ... here.  Correct description.
1839         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
1840         * doc/invoke.texi (Option Summary, SPARC Options): Move
1841         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
1842         (Option Summary, Solaris 2 Options): ... here.
1843         (Submodel Options, Solaris 2 Options): New menu entry.
1844         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
1845         (Solaris 2 Options): ... here.
1846
1847 2010-09-30  Michael Eager  <eager@eagercon.com>
1848
1849         * extend.texi (interrupt_handler): Add MicroBlaze to list.
1850         (save_volatiles): Describe option for MicroBlaze.
1851         * invoke.texi: Add MicroBlaze Options.
1852         * contrib.texi: Add acknowledgment.
1853         * md.texi: Add MicroBlaze d and z constraints.
1854         * install.texi: Add microblaze-*-elf.
1855         * configure.ac: Add microblaze-*-* to target list.
1856         * configure: Regenerate.
1857         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
1858         * config/microblaze/microblaze-protos.h: New.
1859         * config/microblaze/crti.s: New.
1860         * config/microblaze/predicates.md: New.
1861         * config/microblaze/linux.h: New.
1862         * config/microblaze/microblaze.md: New.
1863         * config/microblaze/constraints.md: New.
1864         * config/microblaze/crtn.s: New.
1865         * config/microblaze/microblaze.opt: New.
1866         * config/microblaze/microblaze-c.c: New.
1867         * config/microblaze/t-microblaze: New.
1868         * config/microblaze/microblaze.c: New.
1869         * config/microblaze/microblaze.h: New.
1870
1871 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1872
1873         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
1874         parse @optional/@required and set the flags as appropriate.
1875
1876 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
1877
1878         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
1879
1880 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
1881
1882         * opt-functions.awk (static_var): Update comment.
1883         (var_ref): Return offsetof expression or -1, not variable address.
1884         * optc-gen.awk: Generate structure field initializers instead of
1885         static variables.  Expect -1 for missing variables instead of null
1886         pointer.  Add gcc_options parameters to generated functions.
1887         * opth-gen.awk: Generate structure fields for static variables.
1888         Add gcc_options parameters to generated functions.
1889         * common.opt (optimize, optimize_size): Add variables.
1890         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
1891         &global_options to cl_target_option_restore.
1892         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
1893         &global_options to cl_optimization_restore, cl_target_option_save
1894         and cl_target_option_restore.
1895         (ix86_set_current_function): Pass &global_options to
1896         cl_target_option_restore.
1897         * config/pdp11/pdp11.h (optimize): Remove.
1898         * config/rs6000/rs6000.h (optimize): Remove.
1899         * config/sh/sh.h (optimize): Remove.
1900         * config/xtensa/xtensa.h (optimize): Remove.
1901         * coretypes.h (struct gcc_options): Declare.
1902         * diagnostic.c (diagnostic_initialize): Initialize
1903         context->option_state.
1904         (diagnostic_report_diagnostic): Pass option_state to
1905         option_enabled hook.
1906         * diagnostic.h (diagnostic_context.option_enabled): Add void *
1907         parameter.
1908         (diagnostic_context.option_state): New field.
1909         * final.c (final_start_function, final, final_scan_insn): Rename
1910         optimize parameter to optimize_p.
1911         * flags.h (optimize, optimize_size): Remove.
1912         * function.c (invoke_set_current_function_hook): Pass
1913         &global_options to cl_optimization_restore.
1914         * gcc.c (driver_handle_option): Take gcc_options parameter.
1915         Assert that it is &global_options.
1916         (process_command): Pass &global_options to read_cmdline_option.
1917         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
1918         option_enabled.
1919         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
1920         &global_options to set_option.
1921         * opts-common.c (handle_option, handle_generated_option,
1922         read_cmdline_option, set_option): Take explicit gcc_options
1923         parameters.  Use option_flag_var.
1924         (option_flag_var): New.
1925         * opts.c (common_handle_option, lang_handle_option,
1926         target_handle_option): Take gcc_options parameter.  Assert that it
1927         is &global_options.
1928         (read_cmdline_options): Pass &global_options to read_cmdline_option.
1929         (print_filtered_help): Use option_flag_var.  Pass &global_options
1930         to option_enabled.
1931         (common_handle_option): Use option_flag_var.
1932         (option_enabled): Take opts parameter.  Use option_flag_var.
1933         (get_option_state): Take gcc_options parameter.  Use
1934         option_flag_var.  Pass gcc_options parameter to option_enabled.
1935         (enable_warning_as_error): Pass &global_options to
1936         handle_generated_option.
1937         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
1938         (cl_option_handler_func.handler): Take gcc_options parameter.
1939         (option_enabled, get_option_state, set_option, handle_option,
1940         handle_generated_option, read_cmdline_option): Take gcc_options
1941         parameters.
1942         * toplev.c (optimize, optimize_size): Remove.
1943         (print_switch_values): Pass &global_options to option_enabled.
1944         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
1945         to get_option_state.
1946         (general_init): Initialize global_dc->option_state.
1947         * tree.c (build_optimization_node): Pass &global_options to
1948         cl_optimization_save.
1949         (build_target_option_node): Pass &global_options to
1950         cl_target_option_save.
1951
1952 2010-09-30  Martin Jambor  <mjambor@suse.cz>
1953
1954         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
1955         zero sized bit-fields.
1956
1957 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1958
1959         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
1960         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
1961         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
1962         (c_parser_objc_class_declaration): Same change.
1963         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
1964         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1965         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
1966         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
1967         and RID_AT_PUBLIC instead of RID_PUBLIC.
1968         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
1969         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1970
1971 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
1972
1973         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
1974         Add links to current providers of packages for Solaris and IRIX.
1975
1976 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1977
1978         Merge from 'apple/trunk' branch on FSF servers.
1979         * c-parser.c: Applied change originally in c-parse.in.
1980
1981         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1982
1983         Radar 4281748
1984         * c-decl.c (start_decl): Check for redeclaration of class name.
1985         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
1986
1987 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
1988
1989         * config/ia64/ia64.c (ia64_builtin_decl): New.
1990         (TARGET_BUILTIN_DECL): Define.
1991         (ia64_builtins): New.
1992         (ia64_init_builtins): Save decls in ia64_builtins.
1993
1994 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
1995
1996         PR target/40457
1997         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
1998         (move2add_use_add3_insn): Likewise.
1999         (reload_cse_move2add): Likewise.
2000         * rtlanal.c (get_full_rtx_cost): New function.
2001         * rtl.h (struct full_rtx_costs): New.
2002         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
2003         costs_add_n_insns): New inline functions.
2004         (get_full_rtx_cost): Declare.
2005
2006         PR c/45054
2007         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
2008         invariants.  Check for reg_equiv_invariant.
2009         (reload): Assert that spilled_pseudos is empty when returning.
2010
2011 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
2012
2013         * config/i386/mingw32.h (TARGET_64BIT): replaced by
2014         TARGET_64BIT_DEFAULT in #if check.
2015
2016 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
2017
2018         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
2019
2020 2010-09-29  Mike Stump  <mikestump@comcast.net>
2021
2022         * config/darwin.h (flag_mkernel): Remove.
2023         (flag_apple_kext): Likewise.
2024
2025 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2026             Jack Howarth <howarth@bromo.med.uc.edu>
2027
2028         * config/darwin.opt (undefined): Add.
2029
2030 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
2031
2032         PR testsuite/45664
2033         * configure.ac: Add --enable-indirect-function option.
2034         * config.gcc: Add default_gnu_indirect_function.
2035         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
2036         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
2037         * varasm.c (do_assemble_alias): Adjust for macro name change.
2038         * configure: Rebuilt.
2039         * doc/install.texi: Document --enable-indirect-function.
2040
2041 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2042
2043         * doc/options.texi (Variable, Var, Init): Update documentation
2044         without reference to VarExists.
2045         (VarExists): Remove.
2046         * common.opt, config/i386/i386.opt, config/linux.opt,
2047         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
2048         Don't use VarExists.
2049
2050 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
2051
2052         * optc-gen.awk: Generate global_options initializer instead of
2053         individual variables.  Add x_ prefix to names of structure members.
2054         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
2055         names of structure members.
2056         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2057         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
2058         * doc/tm.texi: Regenerate.
2059         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2060         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
2061         * c-parser.c (disable_extension_diagnostics,
2062         restore_extension_diagnostics): Update names of cpp_options members.
2063         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2064         * common.opt (fcompare-debug-second): Don't use Var.
2065         * config/alpha/alpha.h (target_flags): Remove.
2066         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2067         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
2068         * config/bfin/bfin.h (target_flags): Remove.
2069         * config/cris/cris.h (target_flags): Remove.
2070         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
2071         cl_target_option members.
2072         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
2073         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
2074         ix86_can_inline_p): Update names of cl_target_option members.
2075         * config/i386/i386.h (ix86_isa_flags): Remove.
2076         * config/lm32/lm32.h (target_flags): Remove.
2077         * config/mcore/mcore.h (mcore_stack_increment): Remove.
2078         * config/mcore/mcore.md (addsi3): Remove extern declaration of
2079         flag_omit_frame_pointer.
2080         * config/mep/mep.h (target_flags): Remove.
2081         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2082         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
2083         * config/mmix/mmix.h (target_flags): Remove.
2084         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
2085         flag_expensive_optimizations): Remove.
2086         * config/s390/s390.h (flag_pic): Remove.
2087         * config/score/score-conv.h (target_flags): Remove.
2088         * config/sh/sh.h (sh_fixed_range_str): Remove.
2089         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
2090         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
2091         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2092         * diagnostic.c (diagnostic_initialize): Update names of
2093         diagnostic_context members.
2094         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
2095         warn_system_headers.
2096         (diagnostic_report_warnings_p): Update for new names.
2097         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
2098         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
2099         HARD_FRAME_POINTER_IS_ARG_POINTER.
2100         * flags.h (flag_compare_debug): Declare.
2101         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2102         * opts.c (flag_compare_debug): Define.
2103         (common_handle_option): Update names of diagnostic_context
2104         members.  Handle -fcompare-debug-second.
2105         (fast_math_flags_struct_set_p): Update names of cl_optimization
2106         members.
2107         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2108         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2109         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2110         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2111         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
2112         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
2113         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
2114         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
2115         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
2116
2117 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
2118
2119         * config/picochip/picochip.c (picochip_output_internal_label):
2120         This function can now be called for debug CFI labels, which can come
2121         in the middle of a vliw instruction.  Postpone until end of vliw.
2122
2123 2010-09-29  Richard Guenther  <rguenther@suse.de>
2124
2125         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
2126         (DECL_FILE_SCOPE_P): Use it.
2127         (TYPE_FILE_SCOPE_P): New macro.
2128
2129 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2130
2131         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
2132         a CPP_NAME which is a reserved word, clearly separate cases for
2133         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
2134
2135 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2136
2137         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
2138         token->value with the canonical spelling.  Do exactly like C and
2139         C++ and leave it as it is.
2140
2141 2010-09-28  Richard Henderson  <rth@redhat.com>
2142
2143         * config/alpha/alpha.c (alpha_builtins): New.
2144         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
2145         (alpha_builtin_function): New.
2146         (alpha_add_builtins, alpha_init_builtins): Use it.
2147
2148 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
2149
2150         * doc/standards.texi (Standards): Expanded the section on
2151         Objective-C and Objective-C++.
2152
2153 2010-09-28  DJ Delorie  <dj@redhat.com>
2154
2155         PR target/45800
2156         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
2157         volatile MEMs.
2158
2159 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
2160
2161         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
2162         attributes on methods.
2163          (c_parser_objc_method_definition): Handle attributes.
2164         (c_parser_objc_methodproto): Likewise.
2165         (c_parser_objc_maybe_method_attributes): New.
2166         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
2167         missing definition, similar to that in ObjC++.
2168
2169 2010-09-28  Richard Henderson  <rth@redhat.com>
2170
2171         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
2172         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
2173         (CONFIG_SJLJ_EXCEPTIONS): Remove.
2174         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
2175         (STACK_CHECK_PROTECT): Likewise.
2176         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
2177         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
2178         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
2179         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
2180         (dwarf2out_assembly_start): Likewise.
2181         * except.c (init_eh): Use targetm.except_unwind_info.
2182         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
2183         (output_one_function_exception_table): Likewise.
2184         * final.c: Unconditionally include dwarf2out.h.
2185         (final_start_function): Unconditionally call dwarf2out routines.
2186         (final_end_function, final_scan_insn): Likewise.
2187         * function.c (expand_function_end): Use targetm.except_unwind_info.
2188         * opts.c (decode_options): Use targetm.except_unwind_info.
2189         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
2190         * target.def (debug_unwind_info, except_unwind_info): New.
2191         * target.h (enum unwind_info_type): New.
2192         * targhooks.c (default_debug_unwind_info): New.
2193         (default_except_unwind_info): New.
2194         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
2195         * targhooks.h: Declare them.
2196         * tree-tailcall.c: Include "target.h"
2197         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
2198         * Makefile.in (tree-tailcall.o): Update.
2199         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
2200         (lhd_gcc_personality): Likewise.
2201
2202         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
2203         (TARGET_EXCEPT_UNWIND_INFO): New.
2204         (DWARF2_UNWIND_INFO): Update.
2205         (TARGET_DEBUG_UNWIND_INFO): New.
2206         * doc/tm.texi: Rebuild.
2207
2208         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
2209         targetm.except_unwind_info.
2210
2211         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
2212         (arm_except_unwind_info): New.
2213         (arm_compute_func_type): Use it.
2214         (arm_expand_prologue, thumb_pushpop): Likewise.
2215         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
2216         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
2217         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
2218         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
2219         (DWARF2_UNWIND_INFO): Remove.
2220         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
2221         (ARM_EABI_UNWIND_TABLES): Remove.
2222
2223         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
2224         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
2225         (ia64_except_unwind_info): New.
2226         (ia64_output_function_prologue): Use it.
2227         (ia64_add_bundle_selector_before): Likewise.
2228         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
2229         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
2230         (TARGET_UNWIND_INFO): Remove.
2231
2232         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
2233
2234 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
2235
2236         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
2237         (c_parser_objc_protocol_definition): Likewise.
2238         (c_parser_external_declaration): Provide dummy attribute arguments.
2239         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
2240         (c_parser_objc_class_definition): Handle attributes.
2241         (c_parser_objc_protocol_definition): Likewise.
2242
2243 2010-09-28  Tobias Burnus  <burnus@net-b.de>
2244
2245         PR fortran/40569
2246         PR fortran/40568
2247         * toplev.h (save_decoded_options, save_decoded_options_count):
2248         New global variables.
2249         * toplev.c (save_decoded_options, save_decoded_options_count):
2250         Export variables.
2251
2252 2010-09-28  Ian Lance Taylor  <iant@google.com>
2253
2254         * config/i386/i386.c (ix86_supports_split_stack): Test
2255         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
2256
2257 2010-09-28  Ian Lance Taylor  <iant@google.com>
2258
2259         PR target/45815
2260         * opts.c (decode_options): Don't test whether the target supports
2261         split stack if flag_split_stack == 0.
2262
2263 2010-09-28  Jan Hubicka  <jh@suse.cz>
2264
2265         * builtin-attrs.def (ATTR_LEAF): New attribute.
2266         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
2267         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
2268         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
2269         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
2270         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
2271         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
2272         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
2273         * sync-builtins.def: Annotate all builtins by leaf.
2274         * omp-builtins.def: Annotate all builtins by leaf.
2275         * builtins.def: Annotate relevant builtins with leaf attribute.
2276         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
2277         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
2278         leaf.
2279
2280 2010-09-28  Jan Hubicka  <jh@suse.cz>
2281
2282         * tree-ssa-ccp.c (fold_ctor_reference): New function.
2283         (fold_const_aggregate_ref): Use it.
2284         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
2285         into external static.
2286
2287 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2288
2289         PR target/44452
2290         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
2291         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
2292         (ix86_solaris_return_in_memory): Remove.
2293         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
2294         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
2295         (TARGET_SUBTARGET_DEFAULT): Redefine.
2296         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
2297         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
2298         (TARGET_SUBTARGET_DEFAULT): Redefine.
2299         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
2300         -mvect8-ret-in-mem.
2301         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
2302
2303 2010-09-29  Alan Modra  <amodra@gmail.com>
2304
2305         PR target/45807
2306         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
2307         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
2308         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
2309         Delete.
2310         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
2311         (rs6000_emit_prologue): Don't just create frame save info for r2,
2312         actually save r2.
2313
2314 2010-09-28  Richard Henderson  <rth@redhat.com>
2315
2316         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
2317         when 8 bytes are requested.
2318
2319 2010-09-28  Tristan Gingold  <gingold@adacore.com>
2320
2321         * config/avr/avr.c (expand_prologue): Set
2322         current_function_static_stack_size.
2323
2324 2010-09-28  Tristan Gingold  <gingold@adacore.com>
2325
2326         * config/alpha/alpha.md: Change the initial condition of the
2327         probing loop.
2328
2329 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
2330
2331         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
2332         Split from *avx_<maxmin:code><mode>3.
2333         (*avx_<smaxmin:code><mode>3): Ditto.
2334         * config/i386/i386.md (maxmin): Remove code iterator.
2335
2336 2010-09-27  Ian Lance Taylor  <iant@google.com>
2337
2338         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
2339         requires assembler support for CFI directives.
2340
2341 2010-09-27  Richard Henderson  <rth@redhat.com>
2342
2343         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
2344
2345 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
2346
2347         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
2348         that AFTER is not in the range FROM..TO, inclusive.
2349
2350 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
2351             Bernd Schmidt  <bernds@codesourcery.com>
2352
2353         PR rtl-optimization/45792
2354         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
2355         If not all insns are to be merged, for each edge, stash the
2356         next candidate after the to-be-merged insns before doing the
2357         merge, and use them for the retry at the new insertion point.
2358         Handle CC0 targets when retrying.
2359
2360 2010-09-27  Ian Lance Taylor  <iant@google.com>
2361
2362         * common.opt (fsplit-stack): New option.
2363         * opts.c (decode_options): Set flag_split_stack to final value.
2364         * target.def (supports_split_stack): New hook.
2365         * gcc.c (STACK_SPLIT_SPEC): Define.
2366         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
2367         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
2368         (Code Gen Options): Document -fsplit-stack.
2369         * doc/extend.texi (Function Attributes): Mention no_split_stack.
2370         (Function Attributes): Document no_split_stack.
2371         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
2372         TARGET_SUPPORTS_SPLIT_STACK.
2373         * doc/tm.texi: Rebuild.
2374         * function.c (thread_prologue_and_epilogue_insns): If
2375         flag_split_stack, add split stack prologue.
2376         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
2377         * varasm.c (saw_no_split_stack): New static variable.
2378         (assemble_start_function): Set saw_no_split_stack if the function
2379         has the no_split_stack attribute.
2380         (file_end_indicate_split_stack): New function.
2381         * output.h (file_end_indicate_split_stack): Declare.
2382         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
2383         and function.
2384         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
2385         routines.
2386         * config/i386/i386.c (ix86_option_override_internal): Don't set
2387         expand_builtin_va_start to NULL if -fsplit-stack.
2388         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
2389         -fsplit-stack.
2390         (ix86_va_start): If -fsplit-stack, get overflow pointer from
2391         scratch register set by prologue.
2392         (ix86_code_end): If -fsplit-stack, call
2393         file_end_indicate_split_stack.
2394         (ix86_supports_split_stack): New static function.
2395         (SPLIT_STACK_AVAILABLE): Define.
2396         (split_stack_prologue_scratch_regno): New static function.
2397         (split_stack_fn): New static variable.
2398         (ix86_expand_split_stack_prologue): New function.
2399         (ix86_live_on_entry): New static function.
2400         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
2401         (output_pic_addr_const): Likewise.
2402         (i386_asm_output_addr_const_extra): Likewise.
2403         (ix86_expand_call): Change return type to rtx.  Return the new
2404         call instruction.
2405         (TARGET_SUPPORTS_SPLIT_STACK): Define.
2406         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2407         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
2408         (split_stack_prologue, split_stack_return): New insns.
2409         (split_stack_space_check): New insn.
2410         * config/i386/i386.h (struct machine_function): Add
2411         split_stack_varargs_pointer field.
2412         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
2413         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
2414         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
2415         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
2416         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
2417         Declare.
2418         (ix86_expand_call): Update declaration.
2419
2420 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2421
2422         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
2423         code.  Added byref, which was missing in the list of codes.
2424         Explain that enumeration values are encoded as the integer type
2425         that the compiler uses to store them.  Explain and make examples
2426         of how 'const' interacts with pointers, and the complication of
2427         the encoding of 'const char *'.
2428         (Legacy type encoding): New subsection, explaining that GCC emits
2429         incorrect type encodings for the NeXT runtime for compatibility
2430         reasons.
2431         (@@encode): New subsection, explaining @encode and particularly
2432         that protocol qualifiers are not recognized inside an @encode()
2433         expression.
2434         (Method signatures): New subsection, explaining how method
2435         signatures are encoded.
2436
2437 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2438
2439         Merge from 'apple/trunk' branch on FSF servers.  Removed small
2440         change in build_conditional_expr that had been added when fixing
2441         PR objc/27377 and which did the same check in a less complete way.
2442
2443         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
2444
2445         Radar 4229905
2446         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
2447         looking for objective-c common pointer types.
2448
2449         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
2450
2451         Radar 4154928
2452         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
2453         use their ObjC common type.
2454
2455 2010-09-27  Richard Guenther  <rguenther@suse.de>
2456
2457         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
2458
2459 2010-09-27  Jie Zhang  <jie@codesourcery.com>
2460
2461         * print-tree.c (print_node): Print in-constant-pool.
2462
2463 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
2464
2465         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
2466         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
2467         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
2468         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
2469
2470 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
2471
2472         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
2473         from pro_epilogue_adjust_stack_<mode>_{1,2}.
2474         (pro_epilogue_adjust_stack_<mode>_add): Rename from
2475         pro_epilogue_adjust_stack_<mode>_3.
2476         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
2477         renamed pro_epilogue_adjust_stack_{si,di}_add.
2478         (ix86_expand_prologue): Use indirect functions.  Update for renamed
2479         pro_epilogue_adjust_stack_{si,di}_sub.
2480
2481 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
2482
2483         * config/i386/i386.md (movmsk_df): New insn.
2484         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
2485         sequence for TARGET_SSE_MATH.
2486
2487 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
2488
2489         * config/mips/mips.c (mips_builtin_decls): Declare.
2490         (mips_init_builtins): Store function declarations in
2491         mips_builtin_decls.
2492         (mips_builtin_decl): New function.
2493         (TARGET_BUILTIN_DECL): Define.
2494
2495 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
2496             Richard Henderson  <rth@redhat.com>
2497
2498         * config/i386/cygwin.asm: Include auto-host.h.
2499         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
2500         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
2501         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
2502         alignment code from the 64-bit path.  Use gas local labels.
2503         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
2504         from _di_2.  Remove the useless constant integer argument.
2505         (pro_epilogue_adjust_stack_<mode>_3): New.
2506         (allocate_stack_worker_probe_<mode>): Macroize from
2507         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
2508         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
2509         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
2510         (__chkstk_ms): New function.
2511         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
2512         * gcc/config/i386/t-interix: Likewise.
2513         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
2514         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
2515         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
2516         * configure, config.in: Rebuild.
2517
2518 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
2519
2520         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
2521         statements because of the return slot optimization.
2522
2523 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
2524
2525         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
2526         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
2527         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2528         (class_likely_spilled_p): Rename to...
2529         (avr_class_likely_spilled_p): ...this. Make static. Change argument
2530         type to reg_class_t.
2531
2532 2010-09-24  Jan Hubicka  <jh@suse.cz>
2533
2534         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
2535         (lto_symtab_resolve_symbols): Set it.
2536         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
2537         store resolution field in cgraph/varpool.
2538         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
2539         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
2540         (cgraph_dump_node): Drop used_from_object_file.
2541         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
2542         (cgraph_function_body_availability): Use decl_replaceable_p.
2543         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
2544         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
2545         cgraph_used_from_object_file_p.
2546         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
2547         cgraph_used_from_object_file_p.
2548         (resolution_used_from_other_file_p): New functoin.
2549         (cgraph_used_from_object_file_p): New predicate.
2550         * cgraph.h: Include plugin-api.h
2551         (struct cgraph_local_info): Remove used_from_object_file.
2552         (struct cgraph_node): Add resolution field.
2553         (struct varpool_node): Likewise; remove used_from_object_file;
2554         reove const_value_known.
2555         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
2556         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
2557         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2558         varpool_used_from_object_file_p): Declare.
2559         (varpool_get_node, varpool_extra_name_alias): Update prototype.
2560         * tree.h (DECL_REPLACEABLE_P): Remove.
2561         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
2562         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
2563         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2564         input_overwrite_node, input_node, input_varpool_node): Stream
2565         resolution.
2566         * expr.c (expand_expr_real_1): Use const_value_known_p
2567         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
2568         const_value_known.
2569         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
2570         (function_and_variable_visibility): Set resolution for local vars
2571         and functions; use varpool_used_from_object_file_p.
2572         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
2573         static functions.
2574         (default_binds_local_p_1): Use resolutoin info.
2575         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
2576         * varpool.c (varpool_get_node): Constify.
2577         (const_value_known_p): Do not use vnode->const_value_known;
2578         use decl_replaceable_p.
2579         (varpool_finalize_decl): Do not set const_value_known.
2580         (cgraph_variable_initializer_availability): Use decl_replaceable_p
2581         (varpool_extra_name_alias): Return new node.
2582         (varpool_used_from_object_file_p): New function.
2583
2584 2010-09-24  Richard Henderson  <rth@redhat.com>
2585
2586         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
2587         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
2588         (do_spill): Use REG_CFA_OFFSET.
2589         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
2590         as appropriate.
2591         (ia64_expand_epilogue): Likewise.
2592         (process_set): Split into ...
2593         (process_cfa_adjust_cfa): this,
2594         (process_cfa_register): this,
2595         (process_cfa_offset): and this new function.
2596         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
2597         instead of REG_FRAME_RELATED_EXPR.
2598
2599 2010-09-24  Olivier Hainque  <hainque@adacore.com>
2600
2601         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
2602
2603 2010-09-24  Jan Hubicka  <jh@suse.cz>
2604
2605         * doc/extend.texi: (attribute leaf): Document.
2606         * tree.c (local_define_builtin): Handle ECF_LEAF.
2607         (build_common_builtin_nodes): Set ECF_LEAF where needed.
2608         * tree.h (ECF_LEAF): New.
2609         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
2610         overwrittable and unavailable functions.
2611         (ipa_init): Put all_module_statics into optimization_summary_obstack.
2612         (copy_global_bitmap): Do not copy all_module_statics.
2613         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
2614         (propagate): Handle overwritable and unavailable leaf functions;
2615         initialize global info for overwritable and unavailable leaf functions;
2616         do not free all module statics.
2617         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
2618         local statics.
2619         * calls.c (flags_from_decl_or_type): Handle leaf.
2620         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
2621         abnormal gotos.
2622
2623 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
2624
2625         * gengtype.c: Reindented.
2626         * gengtype.h: Reindented.
2627         * gengtype-parse.c: Reindented.
2628
2629 2010-09-24  Jan Hubicka  <jh@suse.cz>
2630
2631         PR tree-optimization/45738
2632         PR tree-optimization/45741
2633         * expr.c (string_constant): Allow CONST_DECL too;
2634         check that DECL_INITIAL is set.
2635         * varpool.c (const_value_known_p): Only look into VAR_DECL
2636         and CONST_DECL.
2637
2638 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
2639
2640         * common.opt (undef): New.
2641
2642 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
2643
2644         PR middle-end/45234
2645         * rtl.h (enum global_rtl_index): Add
2646         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
2647         (LAST_VIRTUAL_POINTER_REGISTER): Define.
2648         (virtual_preferred_stack_boundary_rtx,
2649         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
2650         (LAST_VIRTUAL_REGISTER): Increase by one.
2651         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
2652         instead of LAST_VIRTUAL_REGISTER.
2653         * function.c (instantiate_new_reg): Handle
2654         virtual_preferred_stack_boundary_rtx.
2655         * emit-rtl.c (init_virtual_regs): Handle
2656         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
2657         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
2658         * explow.c (round_push): If crtl->preferred_stack_boundary
2659         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
2660         virtual_preferred_stack_boundary_rtx alignment instead of
2661         crtl->preferred_stack_boundary alignment.
2662         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
2663         macros.  Never decrease crtl->preferred_stack_boundary,
2664         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
2665         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
2666         stack_pointer_delta in dynamic allocation, even when size
2667         is constant.
2668         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
2669         macro.
2670         * print-rtl.c (print_rtx): Handle
2671         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
2672         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
2673         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
2674         * config/frv/frv.c (frv_emit_movsi): Likewise.
2675         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
2676         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
2677         Likewise.
2678
2679         Revert:
2680         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2681
2682         PR middle-end/45234
2683         * calls.c (expand_call): Make sure that all variable sized
2684         adjustments are multiple of preferred stack boundary after
2685         stack alignment.
2686
2687 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
2688             Dominique Dhumieres  <dominiq@lps.ens.fr>
2689
2690         PR bootstrap/45751
2691         * gcc/config/darwin-driver.c (darwin_default_min_version):
2692         Adjust size passed to memcpy in two places.
2693
2694 2010-09-24  Richard Guenther  <rguenther@suse.de>
2695
2696         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
2697         Make sure to not call set_type_context with error_mark_node.
2698         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
2699
2700 2010-09-24  Richard Guenther  <rguenther@suse.de>
2701
2702         * Makefile.in (OBJS-onestep): Remove.
2703         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
2704         (libbackend.a): Remove onestep support.
2705         (libbackend.o): Remove.
2706         * configure.ac (--enable-intermodule): Remove.
2707         * configure: Regenerate.
2708
2709 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
2710
2711         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
2712         reaching the end of a block if it occurs at a DEBUG_INSN.
2713
2714 2010-09-09  Tristan Gingold  <gingold@adacore.com>
2715
2716         PR target/44242
2717         * config/vms/vms-crt0-64.c: Removed.
2718         * config/vms/vms-crt0.c: Removed.
2719         * config/vms/vms-psxcrt0-64.c: Removed.
2720         * config/vms/vms-psxcrt0.c: Removed.
2721         * config/vms/vms-ucrt0.c: New file.
2722         * config/vms/t-vms64: Removed.
2723         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
2724         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
2725         * config.gcc (alpha-dec-vms): Use t-vms.
2726
2727 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
2728
2729         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
2730         underfull hbox in DVI output.
2731         (-fobjc-class-cxx-cdtors): Same change.
2732         (-fobjc-exceptions): Tidied up documentation.  Explain what the
2733         option does, but moved the (lenghty) description of the exception
2734         syntax into objc.texi.
2735         (-fobjc-gc): Explain that the option is not useful with the GNU
2736         runtime.
2737         (-fzero-link): Explain that the GNU runtime always works in
2738         "zero-link" mode.
2739         * doc/objc.texi: All sections: simplified @node declarations
2740         removing specification of next, previous, up node.
2741         (Objective-C): Updated introduction.
2742         (Garbage Collection): Updated.  The bohem-gc library is now
2743         included in gcc itself.  Mention that this section only applies to
2744         the GNU Objective-C runtime.
2745         (compatibility_alias): Small tidy up.
2746         (Exceptions): New section mostly containing text previously in the
2747         description of the -fobjc-exception command-line option.
2748         (Synchronization): Same.
2749
2750 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
2751
2752         * config/i386/i386.md (ix86_code_end): Move the initialization of
2753         xops array near the consumer.  Use AX_REG and SP_REG instead of
2754         numerical constants.
2755
2756 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
2757
2758         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
2759         method [methodname]' for an Objective-C method instead of the less
2760         satisfactory 'too many arguments to function' (with no method name).
2761
2762 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
2763
2764         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
2765         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
2766         (execute_update_addresses_taken): Remove parameter.  Execute the
2767         optimization unconditionally.
2768         * passes.c (execute_function_todo): Call execute_update_addresses_taken
2769         unconditionally if TODO_rebuild_alias is set, else only when optimizing
2770         if TODO_update_address_taken is set.
2771
2772 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
2773
2774         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2775         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
2776         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2777         (arm_output_addr_const_extra): Make static.
2778
2779 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
2780
2781         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
2782         define as unspec_volatile.
2783         ("nops"): Define as unspec_volatile. Use fputs to write to
2784         asm_out_file directly.  Output NOPs on separate lines using while loop.
2785         * config/i386/i386.c (ix86_code_end): Use fputs to write to
2786         asm_out_file directly.  Output NOPs on separate lines using while loop.
2787
2788 2010-09-23  Richard Guenther  <rguenther@suse.de>
2789
2790         PR tree-optimization/45565
2791         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
2792         Make sure to adjust the fndecl before replacing the stmt.
2793
2794 2010-09-23  Richard Guenther  <rguenther@suse.de>
2795
2796         PR middle-end/45750
2797         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
2798         gimplifying MEM_REF.
2799
2800 2010-09-23  Alan Modra  <amodra@gmail.com>
2801
2802         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
2803         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
2804
2805 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
2806
2807         PR rtl-optimization/44374
2808         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
2809         * df-core.c (df_set_bb_dirty): Set it.
2810         * ifcvt.c (find_memory): Remove function.
2811         (dead_or_predicable): Use can_move_insns_across.
2812         * df.h (can_move_insns_across): Declare function.
2813         * cfgcleanup.c (block_was_dirty): New static variable.
2814         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
2815         than df_get_bb_dirty.
2816         (try_head_merge_bb): New static function.
2817         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
2818         is set.
2819         * df-problems.c: Include "target.h"
2820         (df_simulate_find_uses): New static function.
2821         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
2822         (find_memory, find_memory_store): New static functions.
2823         (can_move_insns_across): New function.
2824         * Makefile.in (df-problems.o): Update dependencies.
2825
2826 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2827
2828         PR java/44095
2829         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
2830         is specified and the suffix of the file isn't ".c".
2831         * config/sparc/linux64.h (ASM_SPEC): Likewise.
2832
2833 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2834
2835         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
2836         * doc/cppopts.texi: Fix markup of index entry.
2837         * doc/extend.texi (Constructing Calls): Fix markup of
2838         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
2839         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
2840         (Vague Linkage, C++ Attributes): Fix markup of index entries and
2841         keywords.
2842         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
2843         avoid long lines.
2844         (C Dialect Options, C++ Dialect Options, Warning Options)
2845         (Debugging Options, Spec Files, Darwin Options)
2846         (i386 and x86-64 Options, MIPS Options)
2847         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
2848         index entries, avoid abbreviations, allow URLs to wrap, avoid
2849         long lines, avoid overlong pages from long @itemx lists.
2850         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
2851         * doc/standards.texi (Standards): Likewise.
2852         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
2853
2854 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2855
2856         * opts-common.c (prune_options): Make static.  Work with decoded
2857         options.
2858         (decode_cmdline_options_to_array): Call prune_options.  Don't
2859         resize option array here.
2860         * opts.h (prune_options): Remove prototype.
2861         * gcc.c (process_command): Take decoded options; don't call
2862         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
2863         (main): Call decode_cmdline_options_to_array here instead of
2864         prune_options.  Update call to process_command.
2865         * config/darwin-driver.c: Include opts.h.
2866         (darwin_default_min_version): Work with decoded options.  Don't
2867         handle -b or -V here.
2868         * config/darwin.h (darwin_default_min_version): Update prototype.
2869         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
2870         darwin_default_min_version.
2871         * config/i386/cygwin.h (mingw_scan): Update prototype.
2872         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
2873         * config/i386/cygwin1.c: Include opts.h.
2874         (mingw_scan): Work with decoded options.
2875         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
2876         * config/t-darwin (darwin-driver.o): Update dependencies.
2877
2878 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2879
2880         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
2881         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
2882         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
2883         -force-link, -force-link=, -language, -language=,
2884         -library-directory, -library-directory=, -no-canonical-prefixes,
2885         -no-standard-libraries, -no-warnings, -optimize, -output,
2886         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
2887         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
2888         -print-file-name=, -print-libgcc-file-name,
2889         -print-multi-directory, -print-multi-lib,
2890         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
2891         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
2892         -profile, -save-temps, -shared, -specs, -specs=, -static,
2893         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
2894         symbolic): New.
2895         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
2896         * gcc.c (A Short Introduction to Adding a Command-Line Option):
2897         Remove comment.
2898         (cc1_options): Correct specs for passing down --help,
2899         --target-help and --help=*.  Add spec for passing down --version.
2900         (struct option_map, option_map, target_option_translations,
2901         translate_options): Remove.
2902         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
2903         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
2904         OPT_fhelp_ and OPT_ftarget_help.
2905         (process_command): Don't call translate_options.  Call
2906         decode_cmdline_options_to_array before checking for
2907         -no-canonical-prefixes using decoded options.
2908         * opts-common.c (tm.h): Update comment on #include.
2909         (find_opt): Allow abbreviations of long options.
2910         (struct option_map, option_map): New.
2911         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
2912         and -mno handling.
2913         (target_option_translations): New.
2914         (decode_cmdline_options_to_array): Handle
2915         TARGET_OPTION_TRANSLATE_TABLE in driver.
2916         * opts.c (common_handle_option): Don't handle OPT_fhelp,
2917         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
2918
2919 2010-09-22  Richard Guenther  <rguenther@suse.de>
2920
2921         * tree-inline.c (optimize_inline_calls): Schedule cleanups
2922         only if we inlined something.  Block compaction and conditional
2923         folding are done by cfg cleanup.  Schedule update-address-taken.
2924         (tree_function_versioning): Remove redundant call to number_blocks.
2925         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
2926         folding is done by cfg cleanup.
2927         * passes.c (init_optimization_passes): Remove update-address-taken
2928         pass after IPA inlining.
2929
2930 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
2931
2932         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
2933         to update conditions. Fix reg_mode[] check.
2934
2935 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
2936
2937         * config/picochip/picochip.md (movhicc): Use expand to check whether
2938         movhicc is available and split it after reload.
2939
2940 2010-09-22  Richard Guenther  <rguenther@suse.de>
2941
2942         * tree-ssanames.c (release_dead_ssa_names): Do not remove
2943         callee edges here.
2944         * passes.c (init_optimization_passes): Remove early CFG cleanup.
2945         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
2946         (pass_cleanup_cfg): Likewise.
2947         (execute_fixup_cfg): Cleanup.
2948         * tree-pass.h (pass_cleanup_cfg): Remove.
2949
2950 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2951
2952         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
2953         builtins if it is true.
2954         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
2955         parameter.
2956
2957 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2958
2959         * tree-sra.c (struct access): New field grp_no_warning.
2960         (create_access_replacement): Set TREE_NO_WARNING according to
2961          grp_no_warning.
2962         (create_artificial_child_access): Use build_ref_for_model and set
2963         grp_no_warning if build_user_friendly_ref_for_offset fails.
2964         (propagate_subaccesses_across_link): Likewise.
2965
2966 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2967
2968         PR target/35664
2969         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
2970         ('f'): Likewise.
2971
2972 2010-09-22  Tristan Gingold  <gingold@adacore.com>
2973
2974         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
2975
2976 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
2977
2978         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
2979         * config/i386/i386.c (decide_alg): Update for rename.
2980
2981 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
2982
2983         PR rtl-optimization/45739
2984         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
2985         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
2986
2987 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
2988
2989         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
2990         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
2991         Remove.
2992         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
2993         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2994
2995 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2996
2997         PR objc/23710
2998         * c-parser.c (c_parser_objc_method_definition): Check the return
2999         value of objc_start_method_definition and if false is returned,
3000         parse the method definition but emit no code.
3001
3002 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3003
3004         PR objc/25965
3005         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
3006         call objc_get_interface_ivars ().
3007
3008 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
3009
3010         PR target/45694
3011         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
3012         static chain-register is used for 64-bit.
3013
3014 2010-09-21  Richard Guenther  <rguenther@suse.de>
3015
3016         * dwarf2out.c (is_cu_die): New function.
3017         (add_pubtype): Use it.
3018         (gen_subprogram_die): Likewise.
3019         (gen_struct_or_union_type_die): Likewise.
3020         (dwarf2out_finish): Likewise.
3021         (comp_unit_die): Rename to ...
3022         (single_comp_unit_die): ... this.
3023         (comp_unit_die): New function lazily constructing and
3024         returning single_comp_unit_die.
3025         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
3026         base_type_die, subrange_type_die, modified_type_die,
3027         lower_bound_default, add_bound_info, add_prototyped_attribute,
3028         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
3029         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
3030         force_decl_die, gen_namespace_die, dwarf2out_decl,
3031         dwarf2out_start_source_file, dwarf2out_end_source_file,
3032         prune_unused_types, dwarf2out_finish): Use it.
3033         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
3034         the global list of translation-unit decls.
3035         (dwarf2out_init): Do not create single_comp_unit_die here.
3036         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
3037
3038 2010-09-21  Richard Guenther  <rguenther@suse.de>
3039
3040         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
3041         for bool for C++.
3042
3043 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
3044
3045         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
3046         (qhs_extenddi_cstr): Likewise.
3047         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
3048         them for the source operand.
3049
3050 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
3051
3052         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
3053         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
3054         (ix86_split_ashr): Ditto.
3055         (ix86_split_lshr): Ditto.
3056
3057 2010-09-21  Richard Guenther  <rguenther@suse.de>
3058
3059         PR tree-optimization/45580
3060         * tree-ssa-propagate.c (substitute_and_fold): Always replace
3061         regular uses.
3062         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
3063         virtuals fold the call into a regular indirect one.
3064
3065 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3066
3067         PR rtl-optimization/42775
3068         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
3069         scheduling is enabled.
3070
3071 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
3072
3073         PR rtl-optimization/45728
3074         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
3075         gen_lowpart_common first and if that fails, force_reg first
3076         before calling gen_lowpart.
3077
3078         PR middle-end/45678
3079         * cfgexpand.c (expand_one_stack_var_at): Use
3080         crtl->max_used_stack_slot_alignment as max_align, instead
3081         of maximum of that and PREFERRED_STACK_BOUNDARY.
3082         Don't call update_stack_alignment.
3083
3084 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3085
3086         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
3087         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
3088         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
3089         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
3090         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
3091         (build_nonstandard_integer_type): Likewise.
3092         (build_range_type_1): New function, built from...
3093         (build_range_type): ...this.  Call build_range_type_1.
3094         (build_nonshared_range_type): New function.
3095         (build_array_type_1): New function, built from...
3096         (build_array_type: ...this.  Call build_array_type_1.
3097         (build_nonshared_array_type): New function.
3098         * tree.h (build_nonshared_range_type): Declare.
3099         (build_nonshared_array_type): Likewise.
3100
3101 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
3102
3103         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
3104         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3105         (arm_class_likely_spilled_p): New function.
3106
3107 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
3110         indirect functions.
3111         (ix86_split_ashl): Ditto.
3112         (ix86_split_ashr): Ditto.
3113         (ix86_split_lshr): Ditto.
3114         (ix86_adjust_counter): Ditto.
3115
3116 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3117
3118         * c-family/c-common.h (constant_string_class): Documented with
3119         comment identical to the one already in c-common.c.
3120
3121 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
3122
3123         * dwarf2out.c (any_cfis_emitted): New static variable.
3124         (add_fde_cfi): Set it.
3125         (dwarf2out_frame_debug): Clear it before processing,
3126         if it is set afterwards, flush any queued reg saves.
3127
3128         PR debug/45124
3129         * dwarf2out.c (add_accessibility_attribute): Assume
3130         DW_ACCESS_private as the default for dwarf_version > 2
3131         and DW_TAG_class_type parent.
3132         (gen_inheritance_die): Assume DW_ACCESS_public as the default
3133         for dwarf_version > 2 and parent other than DW_TAG_class_type.
3134
3135 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
3136
3137         PR target/45726
3138         * arm.md (arm_movt): Only enable on machines with MOVT.
3139
3140 2010-09-20  Jie Zhang  <jie@codesourcery.com>
3141
3142         * config/arm/arm.c (arm_address_offset_is_imm): New.
3143         (arm_early_store_addr_dep): New.
3144         (arm_early_load_addr_dep): New.
3145         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
3146         (arm_early_load_addr_dep): Declare.
3147         (arm_address_offset_is_imm): Declare.
3148         * config/arm/cortex-m4.md: New file.
3149         * config/arm/cortex-m4-fpu.md: New file.
3150         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
3151         (attr generic_sched): Exclude cortexm4.
3152         (attr generic_vfp): Exclude cortexm4.
3153
3154 2010-09-20  Richard Guenther  <rguenther@suse.de>
3155
3156         PR middle-end/45704
3157         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
3158
3159 2010-09-20  Jan Hubicka  <jh@suse.cz>
3160
3161         PR tree-optimize/45605
3162         * cgraph.h (const_value_known_p): Declare.
3163         (varpool_decide_const_value_known): Remove.
3164         * tree-ssa-ccp.c (get_base_constructor): Use it.
3165         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
3166         * expr.c (string_constant): Likewise.
3167         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
3168         * ipa.c (ipa_discover_readonly_nonaddressable_var,
3169         function_and_variable_visibility): Likewise.
3170         * gimplify.c (gimplify_call_expr): Likewise.
3171         * gimple-fold.c (get_symbol_constant_value): Likewise.
3172         * varpool.c (varpool_decide_const_value_known): Replace by...
3173         (const_value_known_p): ... this one; handle other kinds of DECLs
3174         too and work for automatic vars.
3175         (varpool_finalize_decl): Use const_value_known_p.
3176
3177 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
3178
3179         PR target/45726
3180         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
3181
3182 2010-09-20  Richard Guenther  <rguenther@suse.de>
3183
3184         PR tree-optimization/45705
3185         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
3186
3187 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
3188
3189         PR rtl-optimization/45695
3190         * combine.c (try_combine): When splitting a two set pattern,
3191         make sure the pattern which will be put into i2 doesn't use REGs
3192         or MEMs set by insns in between i2 and i3.
3193
3194 2010-09-19  Jan Hubicka  <jh@suse.cz>
3195
3196         PR lto/44246
3197         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
3198         processing same node twice.
3199
3200 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
3201
3202         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
3203         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3204         (bfin_class_likely_spilled_p): New function
3205
3206 2010-09-19  Ira Rosen  <irar@il.ibm.com>
3207
3208         PR tree-optimization/45714
3209         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
3210         created in vectorizable_call instead of the original statement in
3211         def stmt updates.
3212
3213 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
3214
3215         * config/i386/i386-protos.h (split_double_mode): New prototype.
3216         (split_di, split_ti): Remove prototypes.
3217         * config/i386/i386.c (split_double_mode): New function.
3218         (split_di, split_ti): Remove.
3219         (ix86_expand_branch): Use split_double_mode.
3220         (ix86_split_to_parts): Ditto.
3221         (ix86_split_ashl): Ditto.
3222         (ix86_split_ashr): Ditto.
3223         (ix86_split_lshr): Ditto.
3224         (ix86_force_to_memory): Ditto.
3225         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
3226
3227 2010-09-18  Jan Hubicka  <jh@suse.cz>
3228
3229         PR tree-optimization/45453
3230         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
3231         virtual functions are reachable.
3232         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
3233         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
3234         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
3235         when modifying function.
3236
3237 2010-09-18  Jan Hubicka  <jh@suse.cz>
3238
3239         PR tree-optimization/45605
3240         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
3241         * gimple-fold.c (static_object_in_other_unit_p): New function.
3242         (canonicalize_constructor_val): Use it.
3243         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
3244         returning NULL.
3245         (gimple_fold_obj_type_ref_known_binfo): Use
3246         static_object_in_other_unit_p.
3247
3248 2010-09-18  Richard Guenther  <rguenther@suse.de>
3249
3250         PR tree-optimization/45709
3251         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
3252         insertions until after all PHI nodes of the block are processed.
3253
3254 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
3255
3256         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
3257
3258 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
3259
3260         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
3261
3262 2010-09-18  Richard Guenther  <rguenther@suse.de>
3263
3264         PR tree-optimization/45709
3265         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
3266
3267 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
3268
3269         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
3270         (dot_deps_stmt): Same.
3271         * graphite-poly.c (dot_lst): Same.
3272         * graphite-scop-detection.c (dot_all_scops): Same.
3273         (dot_scop): Same.
3274
3275 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
3276
3277         Revert:
3278         2009-12-16  Ben Elliston  <bje@au.ibm.com>
3279
3280         * tree-data-ref.c (dot_rdg_1): Added back.
3281         (dot_rdg): Same.  Added "#if 0" around system call.
3282
3283 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
3284             Richard Henderson  <rth@redhat.com>
3285
3286         * config/i386/i386.c (initial_ix86_tune_features): Add
3287         X86_TUNE_PAD_SHORT_FUNCTION.
3288         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
3289         (ix86_count_insn): New.
3290         (ix86_pad_short_function): Likewise.
3291         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
3292
3293         * config/i386/i386.h (ix86_tune_indices): Add
3294         X86_TUNE_PAD_SHORT_FUNCTION.
3295         (TARGET_PAD_SHORT_FUNCTION): New.
3296
3297         * config/i386/i386.md (UNSPEC_NOPS): New.
3298         (nops): Likewise.
3299
3300 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
3301
3302         PR middle-end/45234
3303         * calls.c (expand_call): Make sure that all variable sized
3304         adjustments are multiple of preferred stack boundary after
3305         stack alignment.
3306
3307 2010-09-17  DJ Delorie  <dj@redhat.com>
3308
3309         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
3310         passed an invalid value, print an error instead of ICEing.
3311         (valid_psw_flag): New.
3312         (rx_expand_builtin): Call it for setpsw/clrpsw.
3313         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
3314
3315         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
3316         (bitclr_in_memory): Likewise.
3317         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
3318
3319 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
3320
3321         PR middle-end/45678
3322         * cfgexpand.c (update_stack_alignment): New.
3323         (get_decl_align_unit): Use it.
3324         (expand_one_stack_var_at): Call update_stack_alignment.
3325
3326 2010-09-17  Richard Guenther  <rguenther@suse.de>
3327
3328         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
3329         Properly copy the read string.
3330
3331 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
3332
3333         * doc/options.texi (Variable): Document.
3334         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
3335         generate target_flags declarations explicitly.  Don't define
3336         VarExists variables for the driver.
3337         * common.opt (target_flags): New Variable record.
3338         (flag_dump_unnumbered, flag_dump_unnumbered_links,
3339         flag_var_tracking, flag_var_tracking_assignments,
3340         flag_var_tracking_assignments_toggle): Don't mark variables with
3341         VarExists.
3342         * config/i386/i386.c (ix86_isa_flags): Don't define here.
3343         * config/i386/i386.opt (ix86_isa_flags): Define here.
3344         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
3345         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
3346         VarExists.
3347         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
3348         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
3349         Only define for generator programs.
3350         * rtlanal.c (target_flags): Remove.
3351         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
3352         flag_var_tracking_assignments_toggle): Remove.
3353
3354 2010-09-17  Michael Matz  <matz@suse.de>
3355
3356         PR tree-optimization/43432
3357         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
3358         Accept backwards consecutive accesses.
3359         (vect_create_data_ref_ptr): If step is negative generate
3360         decreasing IVs.
3361         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
3362         (perm_mask_for_reverse, reverse_vec_elements): New functions.
3363         (vectorizable_load): Handle loads with negative steps when easily
3364         possible.
3365
3366 2010-09-03  Jan Hubicka  <jh@suse.cz>
3367
3368         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
3369
3370 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
3371
3372         * config/v850/v850.c (v850_function_value_regno_p): Make static.
3373         Adjust comments. Declare.
3374         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3375         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
3376
3377 2010-09-17  Richard Guenther  <rguenther@suse.de>
3378
3379         * common.opt (combine): Remove.
3380         * gcc.c (default_compilers): Remove specs testing combine.
3381         The C compilers no longer can combine.
3382         (option_map): Remove -combine.
3383         (display_help): Remove -combine.
3384         (driver_handle_option): Remove OPT_combine handling.
3385         (compile_input_file_p): Remove.
3386         (do_spec): Remove code concerning combine.
3387         (main): Likewise.
3388         * doc/invoke.texi: Remove traces of -combine.
3389         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
3390
3391 2010-09-17  Richard Guenther  <rguenther@suse.de>
3392
3393         PR middle-end/45678
3394         * builtins.c (fold_builtin_memory_op): Always properly adjust
3395         alignment of memory accesses.
3396
3397 2010-09-16  Jan Hubicka  <jh@suse.cz>
3398
3399         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
3400         processing clone.
3401
3402 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
3403
3404         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
3405
3406         * config/i386/i386.c (predict_jump): Add prototype.
3407         (flag_opts): Add -m8bit-idiv.
3408         (ix86_split_idivmod): New.
3409
3410         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
3411         Add 2 splitters for SI/DI mode divide.
3412         (divmod<mode>4_1): New pattern.
3413         (udivmod<mode>4_1): Likewise.
3414         (testdi_ccno_1): Likewise.
3415
3416         * config/i386/i386.opt (m8bit-idiv): New.
3417
3418         * doc/invoke.texi: Document -m8bit-idiv.
3419
3420 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
3421
3422         PR bootstrap/45680
3423         * config/i386/i386.c (min_insn_size): Moved out of the
3424         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
3425
3426 2010-09-16  Jan Hubicka  <jh@suse.cz>
3427
3428         * lto-cgraph.c (lto_output_node): Fix handling of clones.
3429         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
3430         unreachable clones with reachable clones.
3431         * tree-inline.c (copy_bb): Fix sanity checking when producing
3432         unreachable clone.
3433
3434 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
3435
3436         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
3437         (TARGET_MEMORY_MOVE_COST): Define.
3438         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
3439
3440 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
3441
3442         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
3443         maybe_tidy_empty_bb.
3444
3445         Revert:
3446         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
3447         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
3448
3449 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
3450
3451         * target.def (target_option.optimization): New hook.
3452         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
3453         TARGET_OPTION_OPTIMIZATION hook.
3454         * doc/tm.texi: Regenerate.
3455         * hooks.c (hook_void_int_int): New.
3456         * hooks.h (hook_void_int_int): Declare.
3457         * opts.c: Don't include tm_p.h.
3458         (decode_options): Use targetm.target_option.optimization instead
3459         of OPTIMIZATION_OPTIONS.
3460         * system.h (OPTIMIZATION_OPTIONS): Poison.
3461         * config/arm/arm-protos.h (arm_optimization_options): Remove.
3462         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
3463         (arm_optimization_options): Rename to arm_option_optimization.
3464         Make static.
3465         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
3466         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
3467         (cris_option_optimization): New.
3468         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
3469         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
3470         (crx_option_optimization): New.
3471         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
3472         * config/frv/frv-protos.h (frv_optimization_options): Remove.
3473         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
3474         (frv_optimization_options): Rename to frv_option_optimization.
3475         Make static.
3476         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
3477         * config/h8300/h8300.c (h8300_option_optimization): New.
3478         (TARGET_OPTION_OPTIMIZATION): Define.
3479         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
3480         * config/i386/i386-protos.h (optimization_options): Remove.
3481         * config/i386/i386.c (optimization_options): Rename to
3482         ix86_option_optimization.  Make static.
3483         (TARGET_OPTION_OPTIMIZATION): Define.
3484         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
3485         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
3486         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
3487         (ia64_optimization_options): Rename to ia64_option_optimization.
3488         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
3489         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
3490         commented-out definition.
3491         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
3492         instead of OPTIMIZATION_OPTIONS.
3493         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
3494         (m32r_option_optimization): New.
3495         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
3496         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
3497         Remove.
3498         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
3499         (mcore_option_optimization): New.
3500         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
3501         * config/mep/mep-protos.h (mep_optimization_options): Remove.
3502         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
3503         (mep_optimization_options): Rename to mep_option_optimization.
3504         Make static.  Take unused level and size parameters.
3505         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
3506         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
3507         (mmix_option_optimization): New.
3508         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
3509         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
3510         (pdp11_option_optimization): New.
3511         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
3512         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
3513         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
3514         (optimization_options): Rename to rs6000_option_optimization.
3515         Make static.
3516         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
3517         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
3518         * config/rx/rx.c (rx_set_optimization_options): Rename to
3519         rx_option_optimization.  Make static.  Take unused level and size
3520         parameters.
3521         (TARGET_OPTION_OPTIMIZATION): Define.
3522         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
3523         * config/s390/s390-protos.h (optimization_options): Remove.
3524         * config/s390/s390.c (optimization_options): Rename to
3525         s390_option_optimization.  Make static.  Don't mark size parameter
3526         unused.
3527         (TARGET_OPTION_OPTIMIZATION): Define.
3528         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
3529         * config/sh/sh-protos.h (sh_optimization_options): Remove.
3530         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
3531         (sh_optimization_options): Rename to sh_option_optimization.  Make
3532         static.  Don't mark parameters unused.
3533         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
3534         * config/spu/spu-protos.h (spu_optimization_options): Remove.
3535         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
3536         (spu_optimization_options): Rename to spu_option_optimization.
3537         Make static.
3538         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
3539         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
3540         (v850_option_optimization): New.
3541         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
3542         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
3543         (xtensa_option_optimization): New.
3544         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
3545
3546 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
3547
3548         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
3549         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
3550         * doc/tm.texi: Regenerate.
3551         * system.h (OVERRIDE_OPTIONS): Poison.
3552         * target.def (override): Default to hook_void_void.
3553         * targhooks.c (default_target_option_override): Remove.
3554         * genmodes.c, machmode.def: Update comments mentioning
3555         OVERRIDE_OPTIONS.
3556         * config/alpha/alpha-modes.def: Update comment mentioning
3557         alpha_override_options.
3558         * config/alpha/alpha-protos.h (override_options): Remove.
3559         * config/alpha/alpha.c (override_options): Rename to
3560         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
3561         (TARGET_OPTION_OVERRIDE): Define.
3562         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
3563         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
3564         of OVERRIDE_OPTIONS.
3565         * config/arc/arc-protos.h (arc_init): Remove.
3566         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
3567         (arc_init): Rename to arc_option_override.  Make static.
3568         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
3569         (OVERRIDE_OPTIONS): Remove.
3570         * config/arm/arm-protos.h (arm_override_options): Remove.
3571         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
3572         (arm_override_options): Rename to arm_option_override.  Make
3573         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
3574         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
3575         * config/arm/arm.md: Update comment referring to arm_override_options.
3576         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
3577         instead of OVERRIDE_OPTIONS.
3578         * config/avr/avr-protos.h (avr_override_options): Remove.
3579         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
3580         (avr_override_options): Rename to avr_option_override.  Make static.
3581         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
3582         * config/bfin/bfin-protos.h (override_options): Remove (twice).
3583         * config/bfin/bfin.c (override_options): Rename to
3584         bfin_option_override.  Make static.
3585         (TARGET_OPTION_OVERRIDE): Define.
3586         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
3587         * config/cris/cris-protos.h (cris_override_options): Remove.
3588         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
3589         (cris_override_options): Rename to cris_option_override.  Make static.
3590         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
3591         * config/frv/frv-protos.h (frv_override_options): Remove.
3592         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
3593         (frv_override_options): Rename to frv_option_override.  Make static.
3594         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
3595         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
3596         * config/h8300/h8300.c (h8300_init_once): Rename to
3597         h8300_option_override.  Make static.
3598         (TARGET_OPTION_OVERRIDE): Define.
3599         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
3600         * config/i386/i386-protos.h (override_options): Remove.
3601         * config/i386/i386.c (override_options): Rename to
3602         ix86_option_override_internal.  Make static.  Comments referring
3603         to this function and callers changed.
3604         (ix86_option_override): New.
3605         (TARGET_OPTION_OVERRIDE): Define.
3606         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
3607         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
3608         * config/ia64/ia64.c (ia64_file_start): Update comment referring
3609         to ia64_override_options.
3610         * config/iq2000/iq2000-protos.h (override_options): Remove.
3611         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
3612         (override_options): Rename to iq2000_option_override.  Make static.
3613         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
3614         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
3615         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
3616         (lm32_override_options): Rename to lm32_option_override.  Make static.
3617         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
3618         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
3619         (m32r_option_override): New.
3620         (m32r_init): Update comment.
3621         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
3622         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
3623         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
3624         (m68hc11_override_options): Rename to m68hc11_option_override.
3625         Make static.  Return void.
3626         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
3627         * config/m68k/m68k-protos.h (override_options): Remove.
3628         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
3629         (override_options): Rename to m68k_option_override.  Make static.
3630         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
3631         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
3632         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
3633         (mcore_override_options): Rename to mcore_option_override.  Make
3634         static.
3635         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
3636         * config/mep/mep-protos.h (mep_override_options): Remove.
3637         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
3638         (mep_override_options): Rename to mep_option_override.  Make static.
3639         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
3640         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
3641         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
3642         (mmix_override_options): Rename to mmix_option_override.  Make static.
3643         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
3644         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
3645         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
3646         (mn10300_override_options): Rename to mn10300_option_override.
3647         Make static.
3648         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
3649         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
3650         * config/moxie/moxie.c (moxie_override_options): Rename to
3651         moxie_option_override.  Make static.
3652         (TARGET_OPTION_OVERRIDE): Define.
3653         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
3654         * config/picochip/picochip-protos.h (picochip_override_options):
3655         Remove.  Update comment referring to picochip_override_options.
3656         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
3657         (picochip_override_options): Rename to picochip_option_override.
3658         Make static.  Update comment and definition of
3659         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
3660         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
3661         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
3662         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
3663         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
3664         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
3665         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
3666         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
3667         instead of OVERRIDE_OPTIONS.
3668         * config/rs6000/rs6000-modes.def: Update comment referring to
3669         rs6000_override_options.
3670         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
3671         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
3672         (rs6000_override_options): Rename to
3673         rs6000_option_override_internal.  Make static.  Commented
3674         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
3675         (rs6000_option_override): New.
3676         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
3677         instead of OVERRIDE_OPTIONS.
3678         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
3679         * config/s390/s390-protos.h (override_options): Remove.
3680         * config/s390/s390.c (override_options): Rename to
3681         s390_option_override.  Make static.
3682         (TARGET_OPTION_OVERRIDE): Define.
3683         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
3684         * config/score/score-protos.h (score_override_options): Remove.
3685         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
3686         (score_override_options): Rename to score_option_override.  Make
3687         static.
3688         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
3689         Update comment referring to override_options.
3690         * config/score/score3.c (score3_override_options): Rename to
3691         score3_option_override.
3692         * config/score/score3.h (score3_override_options): Rename to
3693         score3_option_override.
3694         * config/score/score7.c (score7_override_options): Rename to
3695         score7_option_override.
3696         * config/score/score7.h (score7_override_options): Rename to
3697         score7_option_override.
3698         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
3699         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
3700         (sparc_override_options): Rename to sparc_option_override.  Make
3701         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
3702         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
3703         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
3704         instead of OVERRIDE_OPTIONS.
3705         * config/spu/spu-protos.h (spu_override_options): Remove.
3706         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
3707         (spu_override_options): Rename to spu_option_override.  Make
3708         static.
3709         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
3710         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
3711         OVERRIDE_OPTIONS.
3712         * config/vax/vax-protos.h (override_options): Remove.
3713         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
3714         (override_options): Rename to vax_option_override.  Make static.
3715         Call SUBTARGET_OVERRIDE_OPTIONS.
3716         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
3717         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
3718         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
3719         * config/xtensa/xtensa-protos.h (override_options): Remove.
3720         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
3721         (override_options): Rename to xtensa_option_override.  Make static.
3722         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
3723
3724 2010-09-16  Richard Guenther  <rguenther@suse.de>
3725
3726         PR tree-optimization/45623
3727         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
3728         (get_constraint_for_component_ref): If computing a constraint
3729         for the rhs handle type punning through unions.
3730         (get_constraint_for_address_of): Adjust.
3731         (get_constraint_for_1): Likewise.
3732         (get_constraint_for): Likewise.
3733         (get_constraint_for_rhs): New function.
3734         (do_structure_copy): Adjust.
3735         (make_constraint_to): Likewise.
3736         (handle_const_call): Likewise.
3737         (find_func_aliases): Likewise.
3738         (process_ipa_clobber): Likewise.
3739         (create_variable_info_for): Likewise.
3740
3741 2010-09-16  Ira Rosen  <irar@il.ibm.com>
3742
3743         * tree-vectorizer.c: Fix documentation.
3744         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
3745         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
3746         is_pattern_stmt_p, is_loop_header_bb_p,
3747         stmt_vinfo_set_inside_of_loop_cost,
3748         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
3749         known_alignment_for_access_p): Likewise.
3750         * tree-vect-loop.c: Fix documentation.
3751         (vect_get_cost): Start function name from new line.
3752         * tree-vect-data-refs.c: Fix documentation.
3753         * tree-vect_stmts.c: Likewise.
3754         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
3755         (vectorizable_store): Free vec_oprnds if allocated.
3756         (vectorizable_condition): Initialize several variables to avoid
3757         warnings.
3758         * tree-vect-slp.c: Fix documentation.
3759
3760 2010-09-16  Richard Guenther  <rguenther@suse.de>
3761
3762         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
3763         is TS_TRANSLATION_UNIT_DECL.
3764         (initialize_tree_contains_struct): Adjust.
3765         (all_translation_units): New global vector.
3766         (build_translation_unit_decl): New function.
3767         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
3768         (struct tree_translation_unit_decl): New.
3769         (all_translation_units): Declare.
3770         (union tree_node): Add translation_unit_decl member.
3771         (build_translation_unit_decl): Declare.
3772         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
3773         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
3774         New function.
3775         (pack_value_fields): Call it.
3776         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
3777         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
3778         (lto_output_tree_pointers): Call it.
3779         * lto-streamer-in.c (lto_input_tree_ref): Handle references
3780         to TRANSLATION_UNIT_DECL.
3781         (unpack_ts_translation_unit_decl_value_fields): New function.
3782         (unpack_value_fields): Call it.
3783         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
3784         (lto_input_tree_pointers): Call it.
3785         * lto-streamer.c (check_handled_ts_structures): Adjust.
3786         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
3787         * c-decl.c (all_translation_units): Remove.
3788         (pop_scope): Use build_translation_unit_decl.
3789         (collect_all_refs): Adjust.
3790         (for_each_global_decl): Likewise.
3791         (c_write_global_declarations): Likewise.
3792
3793 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
3794
3795         PR bootstrap/45686
3796         * fold-const.c (fold_checksum_tree): Change slot from const void **
3797         to void **, use CONST_CAST_TREE to store into *slot.
3798
3799 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
3800
3801         * config/i386/i386.md: Remove unneeded empty conditions and
3802         preparation statements from expanders.
3803         * config/i386/mmx.md: Ditto.
3804         * config/i386/sse.md: Ditto.
3805
3806 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
3807
3808         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
3809
3810 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3811
3812         PR rtl-optimization/45593
3813         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
3814         insns that were in delay slots as stand-alone insns.
3815
3816 2010-09-15  Ian Lance Taylor  <iant@google.com>
3817
3818         * incpath.c (remove_duplicates): If name is not a directory, issue
3819         a warning rather than an error.
3820
3821 2010-09-15  Martin Jambor  <mjambor@suse.cz>
3822
3823         PR middle-end/45644
3824         * tree-sra.c (create_access): Check for bit-fields directly.
3825
3826 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
3827
3828         PR tree-optimization/45633
3829         * tree-cfg.c (verify_gimple_assign_binary): Allow
3830         MINUS_EXPR with lhs and rhs1 pointer vector and
3831         rhs2 sizetype vector.
3832         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
3833         or vector pointer use TER to optimize pointer subtraction.
3834
3835 2010-09-15  Jie Zhang  <jie@codesourcery.com>
3836
3837         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
3838         fcmpd to fcmps.
3839
3840 2010-09-15  Ian Lance Taylor  <iant@google.com>
3841
3842         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
3843
3844 2010-09-15  Ian Lance Taylor  <iant@google.com>
3845
3846         * function.c (get_arg_pointer_save_area): Set
3847         arg_pointer_save_area_init to true.
3848
3849 2010-09-15  Martin Jambor  <mjambor@suse.cz>
3850
3851         * tree-sra.c (generate_subtree_copies): Updated comment.
3852         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
3853         obtained from the statement iterator instead.
3854         (load_assign_lhs_subreplacements): Removed parameters lhs and
3855         right_offset, which is obtained from top_racc instead.  Parameter lacc
3856         is now expected to be the root of the processed tree rather than root's
3857         first child.  Updated all callers.
3858
3859 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
3860
3861         * config/pdp11/pdp11.c (register_move_cost): Rename to
3862         pdp11_register_move_cost.
3863         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
3864         pdp11_register_move_cost.
3865         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
3866         pdp11_register_move_cost instead of register_move_cost.
3867
3868 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
3869
3870         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
3871         pattern for vmovn. Expansion in case of non
3872         -mvectorize-with-neon-quad.
3873         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
3874         non- -mvectorize-with-neon-quad case.
3875         (move_lo_quad_<mode>): New expansion to vmov into low part.
3876         (move_hi_quad_<mode>): New expansion to vmov into high part.
3877         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
3878         (move_lo_quad_v4sf): Likewise.
3879         (move_lo_quad_v8hi): Likewise.
3880         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
3881         low part.
3882         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
3883         high part.
3884         * config/arm/iterators.md (ANY128): New mode iterator.
3885         (V_narrow_pack): New mode attribute.
3886         (V_HALF): Add attribute.
3887         (V_DOUBLE): Add attribute.
3888         (V_mode_nunits): Add attribute.
3889
3890 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3891
3892         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
3893         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
3894
3895 2010-09-15  Olivier Hainque  <hainque@adacore.com>
3896             Jose Ruiz  <ruiz@adacore.com>
3897
3898         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
3899         * config/alpha/osf5-unwind.h: New file.
3900
3901 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3902
3903         PR bootstrap/45672
3904         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
3905         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3906         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3907
3908 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3909
3910         * c-lang.h (struct lang_type): Add variable_size GTY option.
3911
3912 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3913
3914         PR bootstrap/45672
3915         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3916
3917 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
3920         result isn't used in memory address.
3921
3922 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3923
3924         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
3925         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
3926         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
3927         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
3928         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
3929         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
3930
3931         * target.def: Add units_per_simd_word to vectorize.
3932
3933         * targhooks.c (default_units_per_simd_word): New.
3934         * targhooks.h (default_units_per_simd_word): Likewise.
3935         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
3936         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3937         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
3938         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3939         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3940         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3941         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3942         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3943
3944         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
3945         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
3946
3947         * tree-vect-stmts.c: Don't include "tm_p.h".
3948         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
3949         with targetm.vectorize.units_per_simd_word.
3950
3951         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
3952
3953         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
3954
3955         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
3956         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3957
3958         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
3959         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
3960
3961         * doc/tm.texi: Regenerated.
3962
3963 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3964
3965         * tree-vect-stmts.c: Include "tm_p.h".
3966
3967         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
3968         out of RTX_CODE.
3969
3970 2010-09-14  Martin Jambor  <mjambor@suse.cz>
3971
3972         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
3973         location of generated statement.  Changed all callers.
3974         (build_ref_for_model): New parameter loc which used to set location of
3975         all generated expressions.  Changed all callers.
3976         (generate_subtree_copies): Likewise.
3977         (init_subtree_with_zero): Likewise.
3978         (sra_modify_expr): Set locations of all generated statements and
3979         expressions to the location the original statement.
3980         (handle_unscalarized_data_in_subtree): Likewise.
3981         (load_assign_lhs_subreplacements): Likewise.
3982         (sra_modify_constructor_assign): Likewise.
3983         (sra_modify_assign): Likewise.
3984
3985 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3986
3987         PR target/45277
3988         PR target/45363
3989         PR target/45407
3990         * doc/install.texi (sparc*-*-*): New section.
3991         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
3992
3993 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3994
3995         PR middle-end/45567
3996         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
3997         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
3998         (expand_builtin): Adjust caller.
3999         (expand_builtin_unop): Only use subtarget if it has the right mode.
4000
4001 2010-09-14  Tristan Gingold  <gingold@adacore.com>
4002
4003         * configure.ac (plugins): Fix typos.
4004         * configure: Regenerate.
4005
4006 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
4007
4008         PR debug/45660
4009         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
4010         gen_type_die for function/method return type.
4011
4012 2010-09-14  Ira Rosen  <irar@il.ibm.com>
4013
4014         PR tree-optimization/45470
4015         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4016         can throw an exception.
4017         * tree-vect-stmts.c (vectorizable_call): Likewise.
4018
4019 2010-09-14  DJ Delorie  <dj@redhat.com>
4020
4021         PR target/44749
4022         * config/mep/mep-protos.h (mep_save_register_info,
4023         mep_reinit_regs, mep_init_regs): Declare.
4024
4025         * config/mep/mep.c: Move all target definitions to the end of the
4026         file to avoid the need for duplicate declarations.
4027         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
4028         (mep_reorg_erepeat): Remove unused variables.
4029         (mep_expand_builtin): Likewise.
4030
4031         * config/mep/mep-pragma.c: Don't include rtl.h.
4032         (INVALID_REGNUM): New.
4033         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
4034         functions.
4035         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
4036         Avoid enum/integer math.
4037
4038 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
4039
4040         PR target/44749
4041         * config/mep/t-mep (GTM_H): Add insn-constants.h.
4042         * config/mep/mep.c (mep_conditional_register_usage): Take no
4043         parameters.
4044         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
4045         prototype.
4046         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
4047         call to mep_conditional_register_usage.
4048
4049 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
4050
4051         PR debug/43937
4052         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
4053         the DECL as well.
4054
4055 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
4056
4057         PR rtl-optimization/45617
4058         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
4059         even if low N bits of X aren't known to be zero.
4060
4061 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
4062
4063         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
4064
4065         * config/i386/i386.c (initial_ix86_tune_features): Add
4066         X86_TUNE_VECTORIZE_DOUBLE.
4067         (ix86_units_per_simd_word): New.
4068
4069         * config/i386/i386.h (ix86_tune_indices): Add
4070         X86_TUNE_VECTORIZE_DOUBLE.
4071         (TARGET_VECTORIZE_DOUBLE): New.
4072         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
4073
4074 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
4075
4076         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
4077         (new_temp_expr_table): Allocate call_cnt vector.
4078         (free_temp_expr_table): Free it.
4079         (process_replaceable): Add call_cnt parm and set in vector.
4080         (find_replaceable_in_bb): Skip replacement if def/use span a call.
4081         (debug_ter): Dump call_cnt value, remove stderr uses.
4082
4083 2010-09-13  Jan Hubicka  <jh@suse.cz>
4084
4085         * tree.c (build_zero_cst): New.
4086         * tree.h (build_zero_cst): Declare.
4087         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
4088         (get_base_constructor): Break out from ...
4089         (fold_const_aggregate_ref): Here; handle empty constructors.
4090
4091 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4092
4093         * config/arm/arm.md: (define_attr "conds"): Update comment.
4094         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
4095         conds attribute to clob.
4096         (arm_sync_compare_and_swapsi): Likewise.
4097         (arm_sync_compare_and_swap<mode>): Likewise.
4098         (arm_sync_lock_test_and_setsi): Likewise.
4099         (arm_sync_lock_test_and_set<mode>): Likewise.
4100         (arm_sync_new_<sync_optab>si): Likewise.
4101         (arm_sync_new_nandsi): Likewise.
4102         (arm_sync_new_<sync_optab><mode>): Likewise.
4103         (arm_sync_new_nand<mode>): Likewise.
4104         (arm_sync_old_<sync_optab>si): Likewise.
4105         (arm_sync_old_nandsi): Likewise.
4106         (arm_sync_old_<sync_optab><mode>): Likewise.
4107         (arm_sync_old_nand<mode>): Likewise.
4108
4109 2010-09-13  Olivier Hainque  <hainque@adacore.com>
4110
4111         * fwprop.c (forward_propagate_and_simplify): Only attach a
4112         REG_EQUAL note to an insn if the destination is a register.
4113         * gcse.c (try_replace_reg): Likewise.
4114
4115 2010-09-13  Richard Guenther  <rguenther@suse.de>
4116
4117         PR tree-optimization/45611
4118         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
4119         (copy_ref_info): Likewise.
4120
4121 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
4122
4123         PR debug/45604
4124         PR debug/45419
4125         PR debug/45408
4126         * tree-pretty-print.c (dump_generic_node): Disregard top-level
4127         types of MEM_REF pointer types to the same type.
4128
4129 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
4130
4131         PR rtl-optimization/41087
4132         * ifcvt.c (noce_get_condition): Don't allow conditions with
4133         side-effects.
4134
4135 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
4136
4137         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4138         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
4139         * config/frv/frv.c (frv_register_move_cost): Make static. Change
4140         arguments type to reg_class_t. Add mode argument.
4141         (frv_memory_move_cost): New.
4142         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
4143
4144 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
4145
4146         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
4147         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
4148
4149 2010-09-10  Jan Hubicka  <jh@suse.cz>
4150
4151         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
4152
4153 2010-09-10  Richard Guenther  <rguenther@suse.de>
4154
4155         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
4156         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
4157         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
4158         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
4159         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
4160
4161 2010-09-10  Richard Guenther  <rguenther@suse.de>
4162
4163         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
4164         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
4165         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
4166         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
4167
4168 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
4169
4170         PR middle-end/45634
4171         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
4172         of string folding is of integral type.
4173
4174 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
4175
4176         * doc/invoke.texi (-x): Fix typo.
4177
4178 2010-09-10  Richard Guenther  <rguenther@suse.de>
4179
4180         PR debug/44115
4181         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
4182         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4183         Output DECL_DEBUG_EXPR.
4184         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4185         Input DECL_DEBUG_EXPR.
4186
4187 2010-09-10  Richard Guenther  <rguenther@suse.de>
4188
4189         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
4190         (build_index_type): Implement in terms of build_range_type.
4191         (build_range_type): Do not allow NULL_TREE type, improve
4192         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
4193         if we didn't hash.
4194         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
4195         create a distinct copy of the type.
4196
4197 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
4198
4199         * configure: Regenerated.
4200         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
4201
4202 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4203
4204         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
4205         * config/arm/cortex-a9-neon.md: New and partially generated.
4206         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
4207
4208 2010-09-10  Richard Guenther  <rguenther@suse.de>
4209
4210         * tree.h (build_index_2_type): Remove.
4211         * tree.c (build_index_2_type): Remove.
4212
4213 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
4214
4215         PR bootstrap/45630
4216         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
4217         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
4218         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
4219
4220 2010-09-10  Martin Jambor  <mjambor@suse.cz>
4221
4222         PR tree-optimization/44972
4223         * tree-sra.c: Include toplev.h.
4224         (build_ref_for_offset): Entirely reimplemented.
4225         (build_ref_for_model): New function.
4226         (build_user_friendly_ref_for_offset): New function.
4227         (analyze_access_subtree): Removed build_ref_for_offset check.
4228         (propagate_subaccesses_across_link): Likewise.
4229         (create_artificial_child_access): Use
4230         build_user_friendly_ref_for_offset.
4231         (propagate_subaccesses_across_link): Likewise.
4232         (ref_expr_for_all_replacements_p): Removed.
4233         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
4234         (sra_modify_expr): Use build_ref_for_model.
4235         (load_assign_lhs_subreplacements): Likewise.
4236         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
4237         checks for return values of build_ref_for_offset.
4238         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
4239         build_ref_for_offset.
4240         * ipa-prop.h: Include gimple.h
4241         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
4242         (ipa_analyze_indirect_call_uses): Update comment.
4243         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
4244         (IPA_PROP_H): Likewise.
4245
4246 2010-09-10  Martin Jambor  <mjambor@suse.cz>
4247
4248         PR tree-optimization/44972
4249         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
4250         calling build_ref_for_offset.
4251
4252 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4253
4254         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
4255         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
4256         * config/arm/arm-tune.md: Regenerate.
4257         * doc/invoke.texi (ARM Options): Document it.
4258
4259 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
4260
4261         * config/i386/i386.c: Include sched-int.h.
4262         (TARGET_SCHED_DISPATCH): Defined.
4263         (TARGET_SCHED_DISPATCH_DO): Defined.
4264         (DISPATCH_WINDOW_SIZE): Defined.
4265         (MAX_DISPATCH_WINDOWS): Defined.
4266         (MAX_INSN): Defined.
4267         (MAX_IMM): Defined.
4268         (MAX_IMM_SIZE): Defined.
4269         (MAX_IMM_32): Defined.
4270         (MAX_IMM_64): Defined.
4271         (MAX_LOAD): Defined.
4272         (MAX_STORE): Defined.
4273         (BIG): Defined.
4274         (dispatch_group): New.
4275         (num_allowable_groups): New.
4276         (group_name): New.
4277         (sched_insn_info_s): New.
4278         (dispatch_windows_s): New.
4279         (imm_info_s): New.
4280         (dispatch_window_list): New.
4281         (dispatch_window_list1): New.
4282         (get_mem_group): New.
4283         (is_cmp): New.
4284         (dispatch_violation): New.
4285         (is_branch): New.
4286         (is_prefetch): New.
4287         (init_window): New.
4288         (allocate_window): New.
4289         (init_dispatch_sched): New.
4290         (is_end_basic_block): New.
4291         (process_end_window): New.
4292         (allocate_next_window): New.
4293         (find_constant_1): New.
4294         (find_constant): New.
4295         (get_num_immediates): New.
4296         (has_immediate): New.
4297         (get_insn_path): New.
4298         (get_insn_group): New.
4299         (count_num_restricted): New.
4300         (fits_dispatch_window): New.
4301         (add_insn_window): New.
4302         (add_to_dispatch_window): New.
4303         (debug_dispatch_window_file): New.
4304         (debug_dispatch_window): New.
4305         (debug_insn_dispatch_info_file): New.
4306         (debug_ready_dispatch): New.
4307         (do_dispatch): New.
4308         (has_dispatch): New.
4309         * config/i386/i386.h (debug_ready_dispatch): Declared.
4310         (debug_dispatch_window): Declared.
4311         * config/i386/i386.opt (mdispatch-scheduler): New flag.
4312         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
4313         (TARGET_SCHED_DISPATCH_DO): New.
4314         * doc/tm.texi: Regererated.
4315         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
4316         ready_remove_first_dispatch
4317         (schedule_block): Call targetm.sched.dispatch and
4318         targetm.sched.dispatch_do.
4319         (sched_init): Call targetm.sched.dispatch and
4320         targetm.sched.dispatch_do.
4321         (ready_remove_first_dispatch): New.
4322         (number_in_ready): New.
4323         (get_ready_element): New.
4324         * hooks.c (hook_bool_rtx_int_false): New.
4325         (hook_void_rtx_int): New.
4326         * hooks.h (hook_bool_rtx_int_false): Declared.
4327         (hook_void_rtx_int): Declared.
4328         * sched-int.h (IS_DISPATCH_ON): Defined.
4329         (IS_CMP): Defined.
4330         (DISPATCH_VIOLATION): Defined.
4331         (FITS_DISPATCH_WINDOW): Defined.
4332         (DISPATCH_INIT): Defined.
4333         (ADD_TO_DISPATCH_WINDOW): Defined.
4334         (get_ready_element): Declared.
4335         (number_in_ready): Declared.
4336         * target.def (dispatch): Defined.
4337         (dispatch_do): Defined.
4338
4339 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
4340
4341         PR middle-end/45312
4342         * reload1.c (merge_assigned_reloads): Remove.
4343         (reload_as_needed): Don't call it.
4344
4345 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
4346
4347         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
4348         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4349         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4350
4351 2010-09-09  Matthias Klose  <doko@ubuntu.com>
4352
4353         PR bootstrap/43847
4354         * configure.ac (--enable-plugin): Enhance for cross builds.
4355         * configure: Regenerate.
4356
4357 2010-09-09  Jan Hubicka  <jh@suse.cz>
4358
4359         PR tree-optimization/45598
4360         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
4361         string folding is of integral type.
4362
4363 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4364
4365         * configure.ac (gnu_indirect_function): New test.
4366         * configure: Rebuilt.
4367         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
4368         * defaults.h (IFUNC_ASM_TYPE): Provide default.
4369
4370         * doc/extend.texi (Function Attributes): Document ifunc.
4371         * varasm.c (do_assemble_alias): Deal with ifuncs too.
4372
4373 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
4374
4375         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
4376         epilogue instruction move.
4377
4378 2010-09-09  Jan Hubicka  <jh@suse.cz>
4379
4380         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
4381         command line to allow more partitions than input files.
4382
4383 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
4384
4385         PR middle-end/44554
4386         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
4387
4388 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
4389
4390         PR middle-end/40386
4391         * ira.c (pseudo_for_reload_consideration_p): Don't use
4392         flag_ira_share_spill_slots.
4393
4394 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4395
4396         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
4397         point zero operands that fit into a single GPR.
4398         (s390_preferred_reload_class): Ensure we only return general-purpose
4399         register classes.
4400         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
4401         floating-point zero operands into GPRs.
4402         ("*mov<mode>_64"): Likewise.
4403         ("mov<mode>"): Likewise using lhi.
4404
4405 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4406
4407         * config/s390/s390.c (s390_symref_operand_p): Return false for
4408         literal pool references.
4409         (s390_check_qrst_address): Update caller.
4410
4411 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
4412
4413         * config/i386/predicates.md (ext_register_operand): Check that
4414         SUBREG_REG is really a register before looking for REGNO.
4415         (reg_not_xmm0_operand): Handle SUBREGs correctly.
4416         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
4417
4418 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
4419
4420         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
4421         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
4422         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
4423         * print-rtl.c (print_rtx): Likewise.
4424         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
4425         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
4426         for ADDR_EXPR with non-addressable object.
4427         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
4428         (struct dw_val_struct): Add v.val_decl_ref.
4429         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
4430         Handle DW_OP_GNU_implicit_pointer.
4431         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
4432         (get_ref_die_offset_label): New function.
4433         (implicit_ptr_descriptor): New function.
4434         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
4435         (loc_descriptor): Likewise.
4436         (gen_variable_die): Put even definitions into decl_die_table.
4437         (resolve_addr_in_expr): Resolve still unresolved
4438         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
4439         return false.
4440         (dwarf2out_finish): Call output_location_lists after outputting
4441         .debug_info and .debug_abbrev instead of before.
4442
4443 2010-09-09  Roland McGrath  <roland@redhat.com>
4444
4445         * dwarf2out.c (DWARF_REF_SIZE): Define.
4446         (size_of_loc_descr): Use it for DW_OP_call_ref.
4447
4448 2010-09-09  Alan Modra  <amodra@gmail.com>
4449
4450         * doc/invoke.text: Reinstate mcmodel=medium.
4451         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
4452         CMODEL_MEDIUM as default.
4453         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
4454         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
4455         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
4456         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
4457
4458 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4459
4460         PR target/45250
4461         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
4462         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
4463         (builtin_longjmp): Likewise.
4464         (allocate_stack): Use hard_frame_pointer_rtx instead of
4465         frame_pointer_rtx.
4466         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
4467         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
4468         (pa_can_eliminate): Likewise.
4469         (TARGET_INTERNAL_ARG_POINTER): Define.
4470         (TARGET_CAN_ELIMINATE): Define.
4471         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
4472         pointer.
4473         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
4474         (pa_internal_arg_pointer, pa_can_eliminate,
4475         pa_initial_elimination_offset): New.
4476         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
4477         (HARD_FRAME_POINTER_REGNUM): Set to register three.
4478         (INITIAL_FRAME_POINTER_OFFSET): Delete.
4479         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
4480         Define.
4481         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
4482         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
4483         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
4484         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
4485         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
4486         new soft frame pointer.
4487         * config/pa/pa64-regs.h: Likewise.
4488
4489 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
4490
4491         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
4492         numerical constant.
4493         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
4494
4495 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
4496
4497         PR debug/45531
4498         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
4499
4500 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
4501
4502         PR debug/45419
4503         PR debug/45408
4504         * tree-pretty-print.c (dump_generic_node): Disregard top-level
4505         qualifiers in otherwise equal MEM_REF pointer types.
4506         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
4507         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
4508
4509 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4510
4511         PR target/44392
4512         * config/arm/arm.md (bswapsi2): Handle condition correctly
4513         for armv6 and optimize_size.
4514
4515 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4516
4517         PR other/18555
4518         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
4519
4520 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
4521
4522         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
4523         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
4524         ix86_expand_strlen, legitimate_pic_address_disp_p,
4525         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
4526         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
4527         ix86_check_movabs, ix86_secondary_memory_needed): Change function
4528         prototype to bool.
4529         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
4530         return_in_memory_ms_64, ix86_check_movabs,
4531         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
4532         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
4533         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
4534         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
4535         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
4536         ix86_secondary_memory_needed): Change to bool.  Return
4537         "true" and "false" values.
4538         * config/i386/i386.md: Return "true" and "false" values.
4539
4540 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4541
4542         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4543         run_expensive_tests.
4544
4545 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4546
4547         * toplev.c (output_stack_usage): Use lbasename instead of basename.
4548
4549 2010-09-08  Martin Jambor  <mjambor@suse.cz>
4550
4551         PR other/45443
4552         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
4553         at -O3.
4554
4555 2010-09-08  Richard Guenther  <rguenther@suse.de>
4556
4557         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
4558         (visit): Adjust.
4559         (iterative_hash_gimple_type): Likewise.
4560         (gimple_type_hash): Likewise.
4561         (gimple_register_type): Likewise.
4562         (print_gimple_types_stats): Likewise.
4563         (free_gimple_type_tables): Likewise.
4564
4565 2010-09-08  Michael Matz  <matz@suse.de>
4566
4567         PR tree-optimization/43430
4568         * tree-vect-stmts.c (vectorizable_condition): Support multiple
4569         copies for conditional statements if it's not part of a reduction.
4570
4571 2010-09-08  Michael Matz  <matz@suse.de>
4572
4573         PR tree-optimization/33244
4574         * tree-ssa-sink.c (statement_sink_location): Don't sink into
4575         empty loop latches.
4576
4577 2010-09-08  Richard Guenther  <rguenther@suse.de>
4578
4579         PR tree-optimization/45578
4580         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
4581         Be more careful when transfering alignment information to
4582         the new induction variable.
4583         (copy_ref_info): Likewise.
4584
4585 2010-09-08  Richard Guenther  <rguenther@suse.de>
4586
4587         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
4588         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
4589
4590 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
4591
4592         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
4593         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
4594
4595 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
4596
4597         PR doc/45587
4598         * doc/md.texi: Fixed modes on several standard pattern names.
4599
4600 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
4601
4602         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
4603         (ashl<mode>3): ...this.
4604         (loongson_psra<V_suffix>): Rename to...
4605         (ashr<mode>3): ...this.
4606         (loongson_psrl<V_suffix>): Rename to...
4607         (lshr<mode>3): ...this.
4608         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
4609         (CODE_FOR_loongson_psllw): Define.
4610         (CODE_FOR_loongson_psrlh): Define.
4611         (CODE_FOR_loongson_psrlw): Define.
4612         (CODE_FOR_loongson_psrah): Define.
4613         (CODE_FOR_loongson_psraw): Define.
4614
4615 2010-09-07  Richard Henderson  <rth@redhat.com>
4616
4617         * tree-vect-data-refs.c: Include tm_p.h.
4618         * Makefile.in (tree-vect-data-refs.o): Update deps.
4619         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
4620         Move delarations outside #ifdef RTX_CODE.
4621
4622 2010-09-07  Richard Henderson  <rth@redhat.com>
4623
4624         * final.c (rest_of_handle_final): Unconditionally do
4625         output_function_exception_table before assemble_end_function.
4626
4627 2010-09-07  Jan Hubicka  <jh@suse.cz>
4628
4629         * tree-inline.c (tree_inlinable_function_p): Do not test
4630         DECL_REPLACEABLE_P.
4631         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
4632         update_callee_keys, cgraph_decide_inlining): Test function availability.
4633         * cif-code.def (OVERWRITABLE): New code.
4634
4635 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
4636             Jack Howarth  <howarth@bromo.med.uc.edu>
4637
4638         PR target/36502
4639         PR target/42313
4640         PR target/44651
4641         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
4642         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
4643         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
4644         MAX macro.
4645
4646 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
4647
4648         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
4649         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
4650
4651 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
4652
4653         * config.gcc: Don't append t-android for Android targets.
4654
4655         * config/t-android: Removed.
4656
4657 2010-09-07  Richard Henderson  <rth@redhat.com>
4658
4659         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
4660         * doc/tm.texi.in: Add doc marker.
4661         * doc/tm.texi: Rebuild.
4662         * except.c (switch_to_exception_section): Always build.
4663         (output_one_function_exception_table): Move section switch,
4664         personality output, and label output ...
4665         (output_function_exception_table): ... here.  Use the new
4666         personality hook.
4667
4668         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
4669         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
4670         TARGET_ASM_INIT_SECTIONS): New.
4671         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
4672         make static.
4673         (TARGET_ASM_UNWIND_EMIT): Update to match.
4674         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
4675
4676         * config/arm/arm.c (arm_asm_emit_except_personality): New.
4677         (arm_asm_init_sections): New.
4678         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
4679
4680 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4681
4682         * config/arm/arm.md: Remove unused variable.
4683
4684 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
4685
4686         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4687         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
4688         (m32r_memory_move_cost): New function.
4689
4690 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
4691
4692         * config.gcc: Append t-android for Android targets.
4693
4694         * config/t-android: New.
4695
4696 2010-09-07  Richard Henderson  <rth@redhat.com>
4697
4698         * target.def (unwind_emit_before_insn): New hook.
4699         * doc/tm.texi.in: Add @hook marker for it.
4700         * doc/tm.texi: Rebuild.
4701         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
4702
4703 2010-09-07  Martin Jambor  <mjambor@suse.cz>
4704
4705         PR fortran/43665
4706         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
4707         are any type attributes.
4708
4709 2010-09-07  Jan Hubicka  <jh@suse.cz>
4710
4711         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
4712         array_ref_low_bound in string access folding.
4713
4714 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
4715
4716         PR target/45206
4717         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
4718         eh_return fixup sequence.
4719
4720 2010-09-07  Jan Hubicka  <jh@suse.cz>
4721
4722         * gimple-fold.c (maybe_fold_reference): Verify that operand is
4723         gimple_min_invariant.
4724
4725 2010-09-07  Richard Guenther  <rguenther@suse.de>
4726
4727         PR middle-end/45569
4728         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
4729         nor CONSTRUCTOR can trap.
4730         * tree-complex.c (update_complex_assignment): Update EH info.
4731
4732 2010-09-07  Richard Guenther  <rguenther@suse.de>
4733
4734         PR middle-end/45569
4735         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
4736         * passes.c (execute_function_todo): Do not verify anything if
4737         we saw errors.
4738
4739 2010-09-07  Richard Guenther  <rguenther@suse.de>
4740
4741         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
4742
4743 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
4744
4745         PR target/43137
4746         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
4747         New define_mode_attrs.
4748         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
4749         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
4750         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
4751         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
4752         Remove pool_range attribute.
4753         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
4754         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
4755         pool_range and neg_pool_range attributes.
4756         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
4757         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
4758         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
4759
4760 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4761
4762         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
4763         check glibc.
4764
4765 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
4766
4767         PR target/22152
4768         * config/i386/mmx.md (*mov<mode>_internal_rex64,
4769         *mov<mode>_internal_avx, *mov<mode>_internal,
4770         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
4771         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
4772
4773 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4774
4775         * c-typeck.c (do_warn_double_promotion): Remove.
4776         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
4777         Objective-C++ too.
4778
4779 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
4780
4781         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
4782         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
4783         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
4784         argument type to reg_class_t. Change result type to bool.
4785         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4786
4787 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4788
4789         PR libobjc/19850
4790         * gthr-posix.h (__gthread_objc_thread_detach): Use
4791         _objc_thread_attribs when detaching a thread.
4792         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
4793
4794 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
4795
4796         PR target/45524
4797         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
4798         * configure: Regenerated.
4799
4800 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4801
4802         * combine.c (try_combine): Set subst_low_luid to i0.
4803
4804 2010-09-06  Richard Guenther  <rguenther@suse.de>
4805
4806         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
4807         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
4808         (build_aligned_type): Declare.
4809         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
4810         (check_aligned_type): New function.
4811         (build_aligned_type): Likewise.
4812         * expr.c (expand_assignment): Handle misaligned stores via
4813         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
4814         (expand_expr_real_1): Likewise.
4815         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
4816         * tree-vect-stmts.c (vectorizable_store): Do not build
4817         MISALIGNED_INDIRECT_REF but initialize alignment information.
4818         (vectorizable_load): Likewise.
4819         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
4820         handling.
4821         * cfgexpand.c (expand_debug_expr): Likewise.
4822         * dwarf2out.c (loc_list_from_tree): Likewise.
4823         * fold-const.c (maybe_lvalue_p): Likewise.
4824         (operand_equal_p): Likewise.
4825         (build_fold_addr_expr_with_type_loc): Likewise.
4826         * gimplify.c (gimplify_addr_expr): Likewise.
4827         (gimplify_expr): Likewise.
4828         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
4829         (verify_gimple_assign_single): Likewise.
4830         * tree-dump.c (dequeue_and_dump): Likewise.
4831         (tree_could_trap_p): Likewise.
4832         * tree-predcom.c (ref_at_iteration): Likewise.
4833         * tree-pretty-print.c (dump_generic_node): Likewise.
4834         (op_code_prio): Likewise.
4835         (op_symbol_code): Likewise.
4836         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
4837         * tree-ssa-loop-im.c (for_each_index): Likewise.
4838         (gen_lsm_tmp_name): Likewise.
4839         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
4840         (find_interesting_uses_address): Likewise.
4841         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
4842         * tree-ssa-operands.c (get_expr_operands): Likewise.
4843         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4844         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4845         (ao_ref_init_from_vn_reference): Likewise.
4846         * tree.c (staticp): Likewise.
4847         (build1_stat): Likewise.
4848         (reference_alias_ptr_type): Likewise.
4849         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4850         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
4851         MISALIGNED_INDIRECT_REF handling.
4852
4853 2010-09-06  Richard Guenther  <rguenther@suse.de>
4854
4855         PR tree-optimization/45534
4856         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
4857         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
4858         on the target.
4859         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
4860         valid on the target.
4861
4862 2010-09-06  Andreas Schwab  <schwab@redhat.com>
4863
4864         * configure.ac: Quote argument of AC_MSG_WARN.
4865         * configure: Regenerate.
4866
4867 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
4868
4869         * sel-sched.c (move_cond_jump): Correct arguments to
4870         maybe_tidy_empty_bb.
4871         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4872
4873 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
4874
4875         PR rtl-optimization/44919
4876         * sel-sched.c (move_cond_jump): Remove assert, check that
4877         the several blocks case can only happen with mutually exclusive
4878         insns instead.  Rewrite the movement code to support moving through
4879         several basic blocks.
4880
4881 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
4882
4883         * config/i386/i386.md (iptrsize): New mode attribute.
4884         (tp_seg): Ditto.
4885         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
4886         mode iterator.
4887         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
4888         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
4889         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
4890         (stack_tls_protect_set_<mode>): Ditto from
4891         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
4892         of thread base pointer load.
4893         (stack_tls_protect_test_<mode>): Ditto from
4894         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
4895         of thread base pointer load.
4896         (stack_protect_set): Rewrite using indirect functions.
4897         (stack_protect_test): Ditto.
4898         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
4899         (ix86_print_operand): Handle '@'.
4900
4901 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
4902
4903         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
4904         MINUS_EXPR.
4905
4906 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4907
4908         * doc/invoke.texi: Document -Wdouble-promotion.
4909         * c-typeck.c (convert_arguments): Check for implicit conversions
4910         from float to double.
4911         (do_warn_double_promotion): New function.
4912         (build_conditional_expr): Use it.
4913         (build_binary_op): Likewise.
4914
4915 2010-09-05  Richard Guenther  <rguenther@suse.de>
4916
4917         PR tree-optimization/45535
4918         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
4919         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
4920         dereferencing it.
4921         (indirect_refs_may_alias_p): Likewise.
4922
4923 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
4924
4925         * config/sh/sh.c (sh_option_override): Make static.
4926         Adjust comments.  Declare.
4927         (sh_function_value_regno_p): Likewise.
4928         (sh_register_move_cost): Modify the arguments, make static.
4929         Adjust comments.  Declare.
4930         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
4931         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4932         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
4933         REGISTER_MOVE_COST): Delete.
4934         * config/sh/sh-protos.h (sh_override_options): Delete.
4935         (sh_register_move_cost): Delete.
4936         (sh_function_value_regno_p): Delete.
4937
4938 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
4939
4940         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
4941         m32r_function_value_regno_p): New functions.
4942         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4943         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
4944         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
4945         FUNCTION_VALUE_REGNO_P): Remove.
4946
4947 2010-09-04  Jan Hubicka  <jh@suse.cz>
4948
4949         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
4950         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
4951         fold_read_from_constant_string.
4952
4953         * gimple.h (canonicalize_constructor_val): Declare.
4954         * gimple-fold.c (canonicalize_constructor_val): New function.
4955         (get_symbol_constant_value):Use it.
4956         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4957
4958 2010-09-04  Jan Hubicka  <jh@suse.cz>
4959
4960         * tree-switch-conversion.c (build_one_array): Set constructor to be
4961         static.
4962         * varpool.c (varpool_finalize_decl): Compute const_value_known.
4963
4964 2010-09-04  Richard Guenther  <rguenther@suse.de>
4965
4966         PR bootstrap/45519
4967         * tree-flow.h (force_gimple_operand_1): Declare.
4968         (force_gimple_operand_gsi_1): Likewise.
4969         * gimplify.c (force_gimple_operand_1): New worker taking a
4970         gimple predicate for ...
4971         (force_gimple_operand): ... which now wraps it.
4972         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
4973         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
4974         last change.
4975         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
4976         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
4977         (create_mem_ref): Likewise.
4978
4979 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
4980
4981         * config/i386/predicates.md (sse_reg_operand): New predicate.
4982         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
4983         predicate for operand 1.
4984         (XFmode push splitter): Use fp_register_operand predicate
4985         for operand 1.
4986         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
4987         (SF-DF float_extend push splitter): Add reload_completed insn
4988         predicate.
4989         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
4990         MODEF mode macro.  Add reload_completed insn predicate.
4991
4992 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
4993
4994         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
4995         (struct df_extract_ref): Remove.
4996         (union df_ref_d): Remove extract_ref member.
4997         (df_ref_create): Remove last three arguments.
4998         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
4999         * df-scan.c (df_ref_record): Remove last three arguments, do not
5000         pass them to df_ref_create_structure.
5001         (df_uses_record): Remove first and last three arguments.  Replace
5002         first argument with DF_REF_REGULAR, adjust calls to remove the
5003         width, offset and mode.  Always call recursively on the second
5004         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
5005         (df_ref_create_structure): Remove first argument.
5006         (struct df_scan_problem_data): Remove ref_extract_pool.
5007         (df_scan_free_internal): Do not free it.
5008         (df_scan_alloc): Do not allocate it.
5009         (df_ref_create): Remove last three arguments, do not pass them to
5010         df_ref_create_structure.
5011         (df_free_ref): Remove DF_REF_EXTRACT case.
5012         (df_notes_rescan): Adjust call to df_uses_record.
5013         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
5014         Remove DF_REF_EXTRACT case.
5015         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
5016         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
5017         and SUBREG definitions.
5018         (df_get_conditional_uses): Remove references to width/offset/mode,
5019         adjust call to df_ref_create_structure.
5020         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5021         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
5022         calls to df_uses_record and df_ref_record.
5023         * fwprop.c (update_df): Remove references to width/offset/mode,
5024         adjust call to df_ref_create.
5025
5026 2010-09-03  Jan Hubicka  <jh@suse.cz>
5027
5028         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
5029         (build_cdtor_fns): Update use of build_cdtor.
5030
5031 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
5032
5033         * doc/options.texi (SeparateAlias): Document.
5034         * opt-functions.awk (switch_flags): Handle SeparateAlias.
5035         * opth-gen.awk: Generate enumeration names for options marked
5036         SeparateAlias, but not for those marked Ignore.
5037         * opts-common.c (generate_canonical_option): Don't output separate
5038         argument for options marked CL_SEPARATE_ALIAS.
5039         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
5040         * opts.h (CL_SEPARATE_ALIAS): New.
5041         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
5042         CL_COMMON): Adjust definitions.
5043         * config/i386/darwin.opt, config/mips/sde.opt: New.
5044         * common.opt (fdump-final-insns): New.
5045         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5046         i386/darwin.opt.
5047         (mips*-sde-elf*): Add mips/sde.opt.
5048         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
5049         -mno-data-in-code and -mcode-xonly here.
5050         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
5051         * gcc.c (option_map): Add "j" to --dump entry.
5052         (translate_options): Don't translate -d to -foutput-class-dir= here.
5053
5054 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
5055
5056         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
5057         DR_IS_WRITE.
5058         (compute_all_dependences): Same.
5059         (create_rdg_edge_for_ddr): Same.
5060         * tree-data-ref.h (DR_IS_WRITE): New.
5061         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
5062         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
5063         (write_memrefs_written_at_least_once): Same.
5064         * tree-predcom.c (suitable_component_p): Same.
5065         (determine_roots_comp): Same.
5066         (execute_load_motion): Same.
5067         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
5068         (vect_enhance_data_refs_alignment): Same.
5069         (vect_analyze_group_access): Same.
5070
5071 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
5072
5073         PR testsuite/42843
5074         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
5075         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
5076
5077 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
5078
5079         * dwarf2out.c (file scope): Remove #if0'd code.
5080         (gen_subprogram_die): Same.
5081
5082 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
5083
5084         PR middle-end/45484
5085         * dwarf2out.c (flush_queued_reg_saves): Rename to...
5086         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
5087         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
5088         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
5089         * config/i386/i386.c (output_set_got): Call it.
5090
5091 2010-09-03  Michael Matz  <matz@suse.de>
5092
5093         PR middle-end/45415
5094         * tree-sra.c (sra_modify_assign): If we modify the statement,
5095         say so.
5096
5097         * tree-ssa.c (verify_ssa): Check number of operands and links
5098         per statement to agree.
5099
5100 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
5101             Iain Sandoe  <iains@gcc.gnu.org>
5102
5103         PR target/45476
5104         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
5105         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
5106         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
5107
5108 2010-09-03  Richard Guenther  <rguenther@suse.de>
5109
5110         * lto-streamer-out.c (output_function): Output function
5111         start and end loci.
5112         * lto-streamer-in.c (input_function): Input function start
5113         and end loci.
5114
5115 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5116
5117         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
5118         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
5119         * configure: Regenerate.
5120         * aclocal.m4: Regenerate.
5121
5122 2010-09-03  Jan Hubicka  <jh@suse.cz>
5123
5124         PR lto/44812
5125         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
5126         on functions/variables in other partition.
5127
5128 2010-09-03  Jan Hubicka  <jh@suse.cz>
5129
5130         * cgraph.h (struct varpool_node): Add const_value_known.
5131         (varpool_decide_const_value_known): Declare.
5132         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
5133         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
5134         (input_varpool_node): Restore const_value_known.
5135         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
5136         initializer folding.
5137         * ipa.c (ipa_discover_readonly_nonaddressable_var,
5138         function_and_variable_visibility): Compute const_value_known.
5139         * gimple-fold.c (get_symbol_constant_value): Use varpool for
5140         initializer folding.
5141         * varpool.c (varpool_decide_const_value_known): New function.
5142
5143 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
5144
5145         * config/i386/i386.md: Remove empty preparation statements
5146         from splitters.
5147
5148 2010-09-03  Jan Hubicka  <jh@suse.cz>
5149
5150         * passes.c (rest_of_decl_compilation): Do not add local vars into
5151         varpool.
5152         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
5153         static or extern vars are in varpool.
5154         (varpool_finalize_decl): Sanity check that only static vars are
5155         finalized.
5156
5157 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
5158
5159         PR debug/45500
5160         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
5161         not just generic vectors with BLKmode.
5162
5163 2010-09-03  Richard Guenther  <rguenther@suse.de>
5164
5165         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
5166         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
5167         * tree.h (TMR_SYMBOL): Remove.
5168         (TMR_BASE, TMR_OFFSET): Adjust.
5169         (TMR_INDEX2): New.
5170         * alias.c (ao_ref_from_mem): Use TMR_BASE.
5171         * builtins.c (get_object_alignment): Merge TMR_BASE and
5172         TMR_SYMBOL handling.
5173         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
5174         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
5175         handling.  Also allow TARGET_MEM_REF as base address.
5176         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
5177         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
5178         base.  Gimplify TMR_INDEX2.
5179         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
5180         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5181         (get_addr_base_and_unit_offset): Likewise.
5182         * tree-eh.c (tree_could_trap_p): Likewise.
5183         * tree-pretty-print.c (dump_generic_node): Likewise.
5184         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
5185         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
5186         base to index2.
5187         (get_address_description): Reconstruct addres description
5188         from merged TMR_BASE and TMR_INDEX2.
5189         (maybe_fold_tmr): Fold propagated addresses.
5190         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
5191         MEM_REF and TARGET_MEM_REF paths.
5192         (indirect_refs_may_alias_p): Likewise.
5193         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
5194         instead of TMR_SYMBOL.
5195         * tree-ssa-operands.c (get_tmr_operands): Simplify.
5196         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
5197         according to changes ...
5198         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
5199         Split TARGET_MEM_REF into two fields plus the base.
5200         * tree.c (mem_ref_offset): Simplify.
5201         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
5202         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
5203         Strip NOPs when folding MEM_REF addresses.
5204         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
5205         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
5206         (fold_gimple_assign): ... not here.
5207
5208 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
5209
5210         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
5211         * config/mips/mips.c (mips_shift_truncation_mask): New function.
5212         (TARGET_SHIFT_TRUNCATION_MASK): Define.
5213
5214 2010-09-02  Richard Henderson  <rth@redhat.com>
5215
5216         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
5217         instead of readelf in the test.
5218         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
5219         in the .debug_frame section for coff targets.
5220         * configure: Rebuild.
5221
5222 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
5223
5224         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
5225         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
5226         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5227         (m32c_class_likely_spilled_p): Make static. Change argument type to
5228         reg_class_t. Change result type to bool.
5229
5230 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5231
5232         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
5233         to convert (double)(long) into a single FRIZ instruction or not
5234         when -ffast-math is used.
5235
5236         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
5237         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
5238         or FRIZ instruction if -ffast-math.
5239         * config/rs6000/rs6000.md (friz): Ditto.
5240
5241         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
5242
5243 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
5244
5245         * opth-gen.awk (quote, comma): Remove unused variables.
5246
5247 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
5248
5249         * arm.c (arm_override_options): Correct fall-back code to use
5250         SUBTARGET_CPU_DEFAULT.
5251
5252 2010-09-02  Julian Brown  <julian@codesourcery.com>
5253
5254         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
5255         unspecs.
5256         (vcond<mode>, vcondu<mode>): New expanders.
5257         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
5258         comparisons with zero.
5259         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
5260         * config/arm/constraints.md (Dz): New constraint.
5261
5262 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
5263
5264         * target.def (class_likely_spilled_p): New hook.
5265         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
5266         * doc/tm.texi: Regenerate.
5267         * targhooks.c (default_class_likely_spilled_p): New function.
5268         * targhooks.h (default_class_likely_spilled_p): Declare.
5269         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
5270         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
5271         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
5272         Use fixed_reg_set instead of fixed_regs.
5273         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
5274         * calls.c (avoid_likely_spilled_reg): Ditto.
5275         * ira-conflicts.c (ira_build_conflicts): Ditto.
5276         * ira.c (update_equiv_regs): Ditto.
5277         * mode-switching.c (create_pre_exit): Ditto.
5278         * regmove.c (find_matches): Ditto.
5279         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
5280         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
5281         (small_register_class_p): New inline function.
5282         (push_secondary_reload, find_reusable_reload, find_reloads): Use
5283         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
5284
5285         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
5286         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
5287         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5288
5289 2010-09-02  Richard Guenther  <rguenther@suse.de>
5290
5291         PR tree-optimization/44937
5292         PR tree-optimization/45412
5293         * ipa-split.c (split_function): Properly remove PHI nodes.
5294
5295 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
5296
5297         * opts.h (struct cl_option): Add warn_message field.
5298         (struct cl_decoded_option): Add warn_message field.
5299         * doc/options.texi (Ignore, Warn): Document.
5300         * opt-functions.awk (needs_state_p): Don't consider aliases or
5301         ignored options to need state saved.
5302         * optc-gen.awk: Handle Warn and Ignore.
5303         * opth-gen.awk: Output OPT_SPECIAL_ignore.
5304         * opts-common.c (decode_cmdline_option): Set warn_message field.
5305         Handle ignored options.
5306         (decode_cmdline_options_to_array, generate_option,
5307         generate_option_input_file): Set warn_message field.
5308         (read_cmdline_option): Generate warnings from warn_message field.
5309         Handle ignored options.
5310         * common.opt (Wunreachable-code, fargument-alias,
5311         fargument-noalias, fargument-noalias-global,
5312         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
5313         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
5314         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
5315         ftree-salias): Mark Ignore.
5316         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
5317         -mintel-syntax and -mno-intel-syntax here.
5318         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
5319         using Warn.
5320         * opts.c (common_handle_option): Don't handle options marked as
5321         ignored.
5322         (enable_warning_as_error): Handle ignored options.
5323
5324 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
5325
5326         PR driver/44076
5327         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
5328         alias_target fields.
5329         * opt-functions.awk (opt_sanitized_name): Don't handle
5330         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
5331         * optc-gen.awk: Generate alias fields.
5332         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
5333         Don't generate such constants for aliases.
5334         * opts-common.c (generate_canonical_option): New.
5335         (decode_cmdline_option): Handle aliases.  Use
5336         generate_canonical_option for known options instead of copying the
5337         input option text.
5338         * doc/options.texi (Alias): Document.
5339         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
5340         fstack-check, specs): Mark as aliases.
5341         * gcc.c (driver_handle_option): Canonicalize -L options to joined
5342         arguments.
5343         (driver_handle_option): Don't handle OPT_specs.
5344         * opts.c (common_handle_option): Don't handle options marked as
5345         aliases.
5346         (enable_warning_as_error): Handle aliases.
5347         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
5348         OPT_Wlarger_than_eq.
5349         * tree-optimize.c (tree_rest_of_compilation): Use
5350         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
5351
5352 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
5353
5354         * config/i386/i386.md (nonmemory_operand): New mode attribute.
5355         (push memory peephole2): Macroize peepholes using SWI mode iterator.
5356         (move immediate to memory peephole2): Macroize peepholes using
5357         SWI124 mode iterator.
5358         (non-pairable NOT peephole2): Macroize peepholes using SWI124
5359         mode iterator.
5360         (simple lea add peephole2): Macroize peepholes using SWI48
5361         mode iterator.
5362         (simple lea mult peephole2): Ditto.
5363         (imul by 3,5,9 to lea peephole2): Ditto.
5364         (mov $-1, reg peephole2): Macroize peepholes using SWI248
5365         mode iterator.
5366         (imul $32bit_imm,mem,reg peephole2): Ditto.
5367         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
5368
5369 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
5370
5371         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
5372
5373 2010-09-02  Olivier Hainque  <hainque@adacore.com>
5374
5375         PR middle-end/44763
5376         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
5377         (allocno_priority_compare_func): Use it instead of a straight
5378         difference computation over priorities.
5379
5380 2010-09-02  Andi Kleen  <ak@linux.intel.com>
5381
5382         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
5383
5384 2010-09-02  Ira Rosen  <irar@il.ibm.com>
5385
5386         * tree-vectorizer.h (get_later_stmt): New function.
5387         (vect_analyze_data_ref_dependences): Add argument.
5388         * tree-vect-loop.c (vect_analyze_loop): Update call to
5389         vect_analyze_data_ref_dependences.
5390         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
5391         New function.
5392         (vect_analyze_data_ref_dependence): Add argument for basic block
5393         dependencies. Check dependencies in basic block vectorization.
5394         (vect_analyze_data_ref_dependences): Add argument and update call to
5395         vect_analyze_data_ref_dependences.
5396         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
5397         (vect_bb_vectorizable_with_dependencies): New.
5398         (vect_slp_analyze_bb): Check dependencies in basic block.
5399         (vect_schedule_slp_instance): Insert stores before the last store in
5400         SLP instance.
5401
5402 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
5403
5404         PR target/45476
5405         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
5406         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
5407
5408 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
5409
5410         PR middle-end/45458
5411         * bb-reorder.c (add_labels_and_missing_jumps): Treat
5412         bbs ending with throwing insns like blocks ending with a call.
5413         (fix_up_fall_thru_edges): Likewise.
5414
5415 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
5416
5417         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
5418         (m32c_function_arg_advance): Delete.
5419         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5420         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
5421         comments.  Take a const_tree and a bool.  Declare.
5422         (m32c_function_arg_advance): Likewise.
5423         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5424
5425 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
5426
5427         PR target/45476
5428         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
5429         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
5430         * config/i386/mingw32.h: ... here.
5431
5432 2010-09-01  Andi Kleen  <ak@linux.intel.com>
5433
5434         PR lto/45475
5435         * lto-streamer-in.c (lto_input_ts_target_option): Add.
5436         (lto_input_tree_pointers): Call lto_input_ts_target_option.
5437         * lto-streamer-out (lto_output_ts_target_option): Add.
5438         (lto_output_tree_pointers): Call lto_output_ts_target_option.
5439
5440 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
5441
5442         PR/target 45452
5443         * config/i386/cygwin.h: Change order of specified import libraries.
5444         * config/i386/mingw32.h: Likewise.
5445         * config/i386/t-cygwin: Likewise.
5446         * config/i386/t-mingw32: Likewise.
5447         * config/i386/t-mingw-w32: Likewise.
5448         * config/i386/t-mingw-w64: Likewise.
5449
5450 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5451
5452         * config/arm/neon-schedgen.ml (core): New type.
5453         (allCores): List of supported cores.
5454         (availability_table): Add supported cores.
5455         (collate_bypasses): Accept core as a parameter.
5456         (worst_case_latencies_and_bypasses): Accept core as a parameter.
5457         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
5458         and coreStr to get tune attribute and prefix for functional units.
5459         (emit_bypasses): Accept core name and use it.
5460         (calculate_per_core_availability_table): New.
5461         (filter_core): New.
5462         (calculate_core_availability_table): New.
5463         (main): Use calculate_core_availablity_table.
5464         * config/arm/cortex-a8-neon.md: Update copyright year.
5465         Regenerated from ml file and merged in.
5466         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
5467         cortex_a8_neon_mrc.
5468
5469 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
5470
5471         * Makefile.in (tree-switch-conversion.o): Update dependencies.
5472
5473 2010-09-01  Richard Guenther  <rguenther@suse.de>
5474
5475         * alias.c (ao_ref_from_mem): Adjust.
5476         * builtins.c (get_object_alignment): Likewise.
5477         * cfgexpand.c (expand_debug_expr): Likewise.
5478         * gimple.c (get_base_address): Likewise.
5479         * tree-dfa.c (get_ref_base_and_extent): Likewise.
5480         (get_addr_base_and_unit_offset): Likewise.  Fix for
5481         both TMR_SYMBOL and TMR_BASE being set.
5482         * tree-eh.c (tree_could_trap_p): Likewise.
5483         * gimplify.c (gimplify_expr): Do not attempt to gimplify
5484         TMR_SYMBOL.  Always gimplify TMR_BASE.
5485         * tree-cfg.c (verify_types_in_gimple_reference): Verify
5486         TMR_BASE if there is a TMR_SYMBOL.
5487         * tree-pretty-print.c (dump_generic_node): Adjust.
5488         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
5489         (tree_mem_ref_addr): Likewise.
5490         (create_mem_ref_raw): Likewise.
5491         (move_fixed_address_to_symbol): Likewise.
5492         (create_mem_ref): Likewise.
5493         (dump_mem_address): Likewise.
5494         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
5495         Fix for both TMR_SYMBOL and TMR_BASE being set.
5496         (indirect_refs_may_alias_p): Likewise.
5497         * tree-ssa-operands.c (get_tmr_operands): Adjust.
5498         * tree.def (TARGET_MEM_REF): Adjust documentation.
5499
5500 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
5501
5502         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
5503         Rename from X86_TUNE_ADD_ESP_4.
5504         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
5505         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
5506         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
5507         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
5508         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
5509         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
5510         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
5511         * config/i386/i386.c (initial_ix86_tune_features)
5512         <X86_TUNE_SINGLE_POP>: Invert members.
5513         <X86_TUNE_DOUBLE_POP>: Ditto.
5514         <X86_TUNE_SINGLE_PUSH>: Ditto.
5515         <X86_TUNE_DOUBLE_PUSH>: Ditto.
5516         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
5517         No longer exported.
5518         (push peephole2 patterns): Macroize peepholes using P mode iterator.
5519         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
5520         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
5521         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
5522
5523 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
5524
5525         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
5526         a volatile LHS if the constructor has only one element.
5527
5528 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
5529
5530         PR bootstrap/45321
5531         * tree.c (stdarg_p): Make fntype parameter const.
5532         * tree.h (stdarg_p): Likewise.
5533         (function_args_iterator): Remove unused fntype field.
5534         (function_args_iter_init): Do not initialize fntype
5535         field.  Make fntype parameter const.
5536
5537 2010-09-01  Richard Guenther  <rguenther@suse.de>
5538
5539         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
5540         estimate.
5541         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
5542         (execute_vrp): Compute number of iteration estimates.
5543         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
5544         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
5545         * tree-data-ref.c (estimated_loop_iterations): Adjust.
5546         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
5547         Infer loop bounds from undefined behavior based on a new parameter.
5548         (estimate_numbers_of_iterations): Likewise.
5549         (scev_probably_wraps_p): Adjust.
5550         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
5551
5552 2010-09-01  Nick Clifton  <nickc@redhat.com>
5553
5554         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
5555         where appropriate.
5556         (xstormy16_legitimate_address_p): Use true and false instead of 1
5557         and 0.
5558         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
5559         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
5560         magic constant 2.
5561         (xstormy16_expand_call): Fix comment at start of function.
5562
5563 2010-09-01  Nick Clifton  <nickc@redhat.com>
5564
5565         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
5566         when pushing accumulator register.
5567         (rx_get_stack_layout): Always save call clobbered registers inside
5568         interrupt handlers.
5569         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
5570
5571 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
5572
5573         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
5574         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
5575
5576         * libgcc-std.ver (GCC_4.6.0): Define version.
5577
5578 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
5579
5580         * tree-nested.c (convert_all_function_calls): Iterate until after the
5581         sum of static chains in the nest doesn't change.
5582
5583 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
5584
5585         * config/m32c/m32c.c (classes_intersect): Remove.
5586         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
5587         reg_classes_intersect_p instead of classes_intersect.
5588         (class_can_hold_mode): Change arguments type from enum reg_class to
5589         reg_class_t.  Use reg_class_contents instead of class_contents.
5590         (m32c_register_move_cost): Make static. Change arguments type from
5591         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
5592         classes_intersect. Use reg_class_contents instead of class_contents.
5593         (m32c_memory_move_cost): Make static. Change arguments type from
5594         enum reg_class to reg_class_t.
5595         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5596         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5597         * config/m32c/m32c-protos.h (m32c_register_move_cost,
5598         m32c_memory_move_cost): Remove.
5599
5600 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
5601
5602         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
5603         (arm_function_arg): Delete.
5604         (arm_needs_doubleword_align): Take a const_tree.
5605         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5606         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
5607         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
5608         (arm_function_arg): Make static.  Take a const_tree and a bool.
5609         (arm_function_arg_advance): Likewise.
5610         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5611
5612 2010-08-31  Andi Kleen  <ak@linux.intel.com>
5613
5614         * common.opt (fwhopr=): Update for -fwhopr=jobserver
5615         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
5616         * lto-wrapper.c (run_gcc): Add jobserver mode.
5617         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
5618         argument.
5619
5620 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
5621
5622         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
5623         (popsi1): Ditto.
5624         (*popdi1_epilogue): Ditto.
5625         (*popsi1_epilogue): Ditto.
5626         (popsi, popdi peephole2 patterns): Update peepholes for changed
5627         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
5628
5629         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
5630         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
5631
5632         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
5633         (override_options): Do not initialize removed ix86_gen_pop1.
5634         (gen_pop): New static function.
5635         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
5636         (release_scratch_register_on_entry): Ditto.
5637         (ix86_restore_reg_using_pop): Ditto.
5638         (ix86_expand_epilogue): Ditto.
5639
5640 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
5641
5642         PR middle-end/45461
5643         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
5644
5645 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
5646
5647         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
5648         semicolons.
5649
5650 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5651
5652         * doc/extend.texi: Fix documentation of the return value of
5653         __builtin_choose_expr.
5654
5655 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
5656
5657         * config/v850/v850-protos.h (function_arg): Delete.
5658         * config/v850/v850.h (FUNCTION_ARG): Delete.
5659         (FUNCTION_ARG_ADVANCE): Move code to...
5660         * config/v850/v850.c (v850_function_arg_advance): ...here.
5661         (v850_function_arg): Make static.  Take a const_tree and a bool.
5662         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5663
5664 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
5665
5666         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
5667         these...
5668         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
5669         ...and these...
5670         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
5671         ..to here..
5672         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
5673         ...and here.
5674         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5675
5676 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
5677
5678         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
5679         Delete.
5680         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5681         * config/rx/rx.c (rx_function_arg_size): Make static.
5682         (rx_function_arg): Likewise.
5683         (rx_function_arg_advance): New function.
5684         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5685
5686 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
5687
5688         * config/arm/arm.c (arm_override_options): Remove superfluous test.
5689         Fix indentation.
5690
5691 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
5692
5693         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
5694         (dwarf2out_decl) <CONST_DECL>: Likewise.
5695
5696 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
5697
5698         Stack usage support
5699         * common.opt (-fstack-usage): New option.
5700         * doc/invoke.texi (Debugging options): Document it.
5701         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
5702         allocate_dynamic_stack_space.
5703         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
5704         and propagate it to allocate_dynamic_stack_space.
5705         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
5706         * calls.c (initialize_argument_information): Pass TRUE as 4th
5707         argument to allocate_dynamic_stack_space.
5708         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
5709         to 1 when pushing a variable-sized argument onto the stack.  Pass
5710         TRUE as 4th argument to allocate_dynamic_stack_space.
5711         Update current_function_pushed_stack_size.
5712         (emit_library_call_value_1): Likewise.
5713         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
5714         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
5715         attempt to find an upper bound.  Remove redundant code for the
5716         SETJMP_VIA_SAVE_AREA case.
5717         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
5718         * function.h (struct stack_usage): New structure.
5719         (current_function_static_stack_size): New macro.
5720         (current_function_dynamic_stack_size): Likewise.
5721         (current_function_pushed_stack_size): Likewise.
5722         (current_function_dynamic_alloc_count): Likewise.
5723         (current_function_has_unbounded_dynamic_stack_size): Likewise.
5724         (current_function_allocates_dynamic_stack_space): Likewise.
5725         (struct function): Add new field 'su'.
5726         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
5727         add the value of the dynamic offset to the dynamic stack usage.
5728         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
5729         for variable-sized objects.
5730         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
5731         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
5732         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
5733         BUILT_IN_ALLOCA for variable-sized objects.
5734         * output.h (output_stack_usage): Declare.
5735         * toplev.c (stack_usage_file): New file pointer.
5736         (output_stack_usage): New function.
5737         (open_auxiliary_file): Likewise.
5738         (lang_dependent_init): Open file if flag_stack_usage is set.
5739         (finalize): Close file if stack_usage_file is not null.
5740         * tree.h (ALLOCA_FOR_VAR_P): New macro.
5741         * config/alpha/alpha.c (compute_frame_size): New function.
5742         (alpha_expand_prologue): Use it.
5743         (alpha_start_function): Likewise.
5744         (alpha_expand_epilogue): Likewise.  Set stack usage info.
5745         * config/i386/i386.c (ix86_expand_prologue): Likewise.
5746         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5747         * config/mips/mips.c (mips_expand_prologue): Likewise.
5748         * config/pa/pa.c (hppa_expand_prologue): Likewise.
5749         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5750         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5751
5752 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
5753
5754         PR tree-optimization/45427
5755         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
5756         Handle the case that the exit is never taken correctly.
5757         (number_of_iterations_ne): Pass exit_must_be_taken to
5758         number_of_iterations_ne_max.
5759
5760 2010-08-30  Catherine Moore  <clm@codesourcery.com>
5761
5762         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
5763         Infer -mdspr2 for the the 74K.
5764
5765 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
5766
5767         PR debug/45419
5768         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
5769
5770         PR middle-end/45423
5771         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
5772         and TRUTH_{AND,OR,XOR}_EXPR.
5773         * c-parser.c (c_parser_omp_atomic): Handle boolean
5774         {PRE,POST}_{INC,DEC}REMENT.
5775
5776 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
5777
5778         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
5779         (function_arg): Delete.
5780         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5781         (FUNCTION_INCOMING_ARG): Delete.
5782         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
5783         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
5784         and a bool.
5785         (function_arg): Rename to...
5786         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
5787         a bool.
5788         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
5789         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5790         (TARGET_FUNCTION_INCOMING_ARG): Define.
5791
5792 2010-08-30  Richard Guenther  <rguenther@suse.de>
5793
5794         PR tree-optimization/21602
5795         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
5796         using points-to information.
5797
5798 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
5799
5800         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
5801
5802 2010-08-30  Richard Guenther  <rguenther@suse.de>
5803
5804         PR tree-optimization/45449
5805         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
5806         variables.
5807
5808 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * opts.h (CL_ERR_NEGATIVE): Define.
5811         * opts.c (unknown_option_callback): Don't postpone warnings for
5812         options marked with CL_ERR_NEGATIVE.
5813         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
5814         for negative versions of CL_REJECT_NEGATIVE options.
5815
5816 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
5817
5818         * config/i386/i386.md (zero_extendsidi2_1): Rename from
5819         zero_extendsidi2_32.
5820         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
5821         using SWI12 mode iterator.
5822         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
5823         to define_insn_and_split pattern.
5824         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
5825         using SWI24 mode iterator.
5826         (*zero_extendqi<mode>2_and): Macroize insn from
5827         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
5828         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
5829         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
5830         SWI24 mode iterator.
5831         (*zero_extendqi<mode>2_movzbl): Ditto from
5832         *zero_extendqi{hi,si}2_movzbl.
5833         (extendsidi2_1): Rename from extendsidi2_32.
5834         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
5835         SWI12 mode iterator.
5836
5837 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
5838
5839         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
5840         general purpose registers.
5841         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
5842         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
5843         with general purpose registers and memory operands.  Add associated
5844         CCImode post-reload splitter.
5845         * config/ia64/div.md: Change BImode to CCImode throughout.
5846
5847 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
5848
5849         * config/ia64/ia64.md (cstorebi4): Fix thinko.
5850
5851 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
5852
5853         * config/picochip/picochip.c (reorder_var_tracking_notes): This
5854         function was dropping debug insns which caused PR45299.
5855
5856 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
5857
5858         * config/i386/sse.md (extsuffix): New code attribute.
5859         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
5860         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
5861         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
5862         and sse4_1_zero_extendv4qiv4si2.
5863         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
5864         and sse4_1_zero_extendv2qiv2di2.
5865         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
5866         and sse4_1_zero_extendv4hiv4si2.
5867         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
5868         and sse4_1_zero_extendv2hiv2di2.
5869         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
5870         and sse4_1_zero_extendv2siv2di2
5871
5872         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
5873         using any_extend code iterator.
5874         (*avx_<s>mulv8hi3_highpart): Macroize insn from
5875         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
5876         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
5877
5878         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
5879         gen_sse4_1_sign_extend* functions.
5880         (struct builtin_description bdesc_args): Ditto.
5881
5882 2010-08-27  Xinliang David Li  <davidxl@google.com>
5883
5884         PR/45422
5885         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
5886         (iv_ca_set_no_cp): Update used inv expr count.
5887         (iv_ca_set_cp): Ditto.
5888         (iv_ca_new): Initialize new member.
5889         (iv_ca_free): Free memory.
5890
5891 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5892
5893         * config/sh/sh-protos.h (sh_function_arg): Delete.
5894         (sh_function_arg_advance): Delete.
5895         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5896         (PASS_IN_REG_P): Eliminate cast.
5897         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
5898         const_tree and a bool.
5899         (sh_function_arg): Likewise.
5900         (sh_output_mi_thunk): Call sh_function_arg_advance) and
5901         sh_function_arg.
5902         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5903
5904 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
5905             Kaz Kojima  <kkojima@gcc.gnu.org>
5906
5907         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
5908         when possible.
5909         (sh_expand_epilogue): Likewise.
5910         * config/sh/sh.md (movml_push_banked): New insn.
5911         (movml_pop_banked): Likewise.
5912
5913 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
5914
5915         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
5916         gen_regexp_oneof, gen_regexp_sequence): Use the string found
5917         in vector element 0 rather than the original string when there's
5918         only one element.
5919         (gen_regexp): Remove extra semicolon.
5920
5921         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
5922         thumb2_movsf_vfp): Set attribute "insn".
5923         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
5924         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
5925         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
5926         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
5927         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
5928         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
5929         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
5930         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
5931         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
5932         if_not_arith, if_arith_not, cond_move_not): Likewise.
5933
5934 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5935
5936         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
5937         New declaration.
5938         (rs6000_allocate_stack_temp): Ditto.
5939         (rs6000_expand_convert_si_to_sfdf): Ditto.
5940
5941         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
5942         line.  Update the options set if power6 or power7 server/embedded
5943         type options are used.  If we give a warning for no vsx under
5944         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
5945         (rs6000_allocate_stack_temp): New function to allocate a stack
5946         tempoary and adjust the address so it meets either REG+OFFSET or
5947         REG+REG addressing requirements.
5948         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
5949         that they can be used with the LFIWAX/LFIWZX instrucitons.
5950         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
5951         converting signed/unsigned SImode to either SFmode/DFmode.
5952
5953         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
5954         whether certain instructions can be generated.
5955         (TARGET_FCTIDZ): Ditto.
5956         (TARGET_STFIWX): Ditto.
5957         (TARGET_LFIWAX): Ditto.
5958         (TARGET_LFIWZX): Ditto.
5959         (TARGET_FCFIDS): Ditto.
5960         (TARGET_FCFIDU): Ditto.
5961         (TARGET_FCFIDUS): Ditto.
5962         (TARGET_FCTIDUZ): Ditto.
5963         (TARGET_FCTIWUZ): Ditto.
5964
5965         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
5966         (UNSPEC_FCTID): Ditto.
5967         (UNSPEC_LFIWAX): Ditto.
5968         (UNSPEC_LFIWZX): Ditto.
5969         (UNSPEC_FCTIWUZ): Ditto.
5970         (rreg): Use correct constraints.
5971         (SI_CONVERT_FP): New mode attribute for floating point conversion
5972         tests.
5973         (E500_CONVERT): Ditto.
5974         (lfiwax): New insns for converting from integer to floating point
5975         utilizing newer instructions.  Attempt to optimize conversions
5976         that come from memory so that we don't load the value into a GPR,
5977         spill it to the stack and reload it into a FPR.
5978         (floatsi<mode>2_lfiwax): Ditto.
5979         (floatsi<mode>2_lfiwax_mem): Ditto.
5980         (floatsi<mode>2_lfiwax_mem2): Ditto.
5981         (lfiwzx): Ditto.
5982         (floatunssi<mode>2_lfiwzx): Ditto.
5983         (floatunssi<mode>2_lfiwzx_mem): Ditto.
5984         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5985         (floatdidf2_mem): Ditto.
5986         (floatunsdidf2_fcfidu): Ditto.
5987         (floatunsdidf2_mem): Ditto.
5988         (floatunsdisf2): Ditto.
5989         (floatunsdisf2_fcfidus): Ditto.
5990         (floatunsdisf2_mem): Ditto.
5991         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
5992         Use FCFID on 32-bit hosts that support it.
5993         (floatsidf2_internal): Ditto.
5994         (floatunssisf2): Ditto.
5995         (floatunssidf2): Ditto.
5996         (floatunssidf2_internal): Ditto.
5997         (floatsisf2): Ditto.
5998         (floatdidf2): Ditto.
5999         (floatdidf2_fpr): Ditto.
6000         (floatunsdidf2): Ditto.
6001         (floatdisf2): Ditto.
6002         (floatdisf2_fcfids): Ditto.
6003         (floatdisf2_internal1): Ditto.
6004         (fixuns_truncsfsi2): Delete, merge into common pattern for both
6005         SF/DF.  Add power7 support.
6006         (fix_truncsfsi2): Ditto.
6007         (fixuns_truncdfsi2): Ditto.
6008         (fixuns_truncdfdi2): Ditto.
6009         (fix_truncdfsi2): Ditto.
6010         (fix_truncdfsi2_internal): Ditto.
6011         (fix_truncdfsi2_internal_gfxopt): Ditto.
6012         (fix_truncdfsi2_mfpgpr): Ditto.
6013         (fctiwz): Ditto.
6014         (btruncdf2): Ditto.
6015         (btruncdf2_fpr): Ditto.
6016         (btructsf2): Ditto.
6017         (ceildf2): Ditto.
6018         (ceildf2_fpr): Ditto.
6019         (ceilsf2): Ditto.
6020         (floordf2): Ditto.
6021         (floordf2_fpr): Ditto.
6022         (floorsf2): Ditto.
6023         (rounddf2): Ditto.
6024         (rounddf2_fpr): Ditto.
6025         (roundsf2): Ditto.
6026         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
6027         (fix_trunc<mode>di2): Ditto.
6028         (fixuns_trunc<mode>si2): Ditto.
6029         (fixuns_trunc<mode>di2): Ditto.
6030         (fctiwz_<mode>): Ditto.
6031         (btrunc<mode>2): Ditto.
6032         (btrunc<mode>2_fpr): Ditto.
6033         (ceil<mode>2): Ditto.
6034         (ceil<mode>2_fpr): Ditto.
6035         (floor<mode>2): Ditto.
6036         (float<mode>2_fpr): Ditto.
6037         (round<mode>2): Ditto.
6038         (round<mode>2_fpr): Ditto.
6039         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
6040         (fixuns_trunc<mode>si2_stfiwx): Ditto.
6041         (fix_truncdfsi2_internal): Ditto.
6042         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
6043         converted value on stack, loaded into GPR, and then stored into
6044         the final destination.
6045         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
6046         FCTIDZ.
6047         (lrint<mode>di2): New insn, provide the lrint builtin functions.
6048         (ftruncdf2): Delete, unused.
6049         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
6050
6051         * config/rs6000/vsx.md (toplevel): Update copyright year.
6052         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
6053         (VSr3): Ditto.
6054
6055 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
6056             Jeremie Salvucci  <jeremie.salvucci@free.fr>
6057
6058         * gengtype.c (output_type_enum): Test the right union member.
6059
6060 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
6061
6062         PR target/41484
6063         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
6064         operands for operand 1.
6065         (sse4_1_extendv4qiv4si2): Ditto.
6066         (sse4_1_extendv2qiv2di2): Ditto.
6067         (sse4_1_extendv4hiv4si2): Ditto.
6068         (sse4_1_extendv2hiv2di2): Ditto.
6069         (sse4_1_extendv2siv2di2): Ditto.
6070         (sse4_1_zero_extendv8qiv8hi2): Ditto.
6071         (sse4_1_zero_extendv4qiv4si2): Ditto.
6072         (sse4_1_zero_extendv2qiv2di2): Ditto.
6073         (sse4_1_zero_extendv4hiv4si2): Ditto.
6074         (sse4_1_zero_extendv2hiv2di2): Ditto.
6075         (sse4_1_zero_extendv2siv2di2): Ditto.
6076         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
6077         (*sse4_1_extendv4qiv4si2): Ditto.
6078         (*sse4_1_extendv2qiv2di2): Ditto.
6079         (*sse4_1_extendv4hiv4si2): Ditto.
6080         (*sse4_1_extendv2hiv2di2): Ditto.
6081         (*sse4_1_extendv2siv2di2): Ditto.
6082         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
6083         (*sse4_1_zero_extendv4qiv4si2): Ditto.
6084         (*sse4_1_zero_extendv2qiv2di2): Ditto.
6085         (*sse4_1_zero_extendv4hiv4si2): Ditto.
6086         (*sse4_1_zero_extendv2hiv2di2): Ditto.
6087         (*sse4_1_zero_extendv2siv2di2): Ditto.
6088
6089 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
6090
6091         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
6092         (mips_function_arg): Delete.
6093         (mips_function_arg_boundary): Take a const_tree.
6094         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
6095         (mips_arg_info): Likewise.
6096         (mips_setup_incoming_varargs): Call mips_function_arg_advance
6097         instead of FUNCTION_ARG_ADVANCE.
6098         (mips_function_arg_advance): Adjust prototype.  Make static.
6099         (mips_function_arg): Likewise.
6100         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6101         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
6102
6103 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
6104
6105         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6106         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
6107         (function_arg): Delete.
6108         (function_arg_boundary): Take a const_tree.
6109         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
6110         (rs6000_spe_function_arg): Likewise.
6111         (rs6000_parm_start): Likewise.
6112         (rs6000_arg_size): Likewise.
6113         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
6114         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
6115         (rs6000_mixed_function_arg): Likewise.
6116         (function_arg): Rename to...
6117         (rs6000_function_arg): ...this.
6118         (function_arg_advance): Rename to...
6119         (rs6000_function_arg_advance_1): ...this
6120         (rs6000_function_arg_advance): New function.  Call it.
6121         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
6122         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
6123         (rs6000_function_value): Likewise.
6124         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6125
6126 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6127
6128         * config/arm/arm.md (enabled): Test the value of arch_enabled
6129         rather than just using it.
6130
6131 2010-08-27  Olivier Hainque  <hainque@adacore.com>
6132             Eric Botcazou  <ebotcazou@adacore.com>
6133
6134         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
6135         cover all the possible offsets from this base.
6136         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
6137
6138 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
6139
6140         PR tree-optimization/44485
6141         * calls.c (flags_from_decl_or_type): For const or pure
6142         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
6143         together with ECF_CONST resp. ECF_PURE.
6144         * builtins.c (expand_builtin): Use flags_from_decl_or_type
6145         instead of querying flags directly.
6146         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
6147         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
6148
6149 2010-08-26  Richard Guenther  <rguenther@suse.de>
6150
6151         PR tree-optimization/45255
6152         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
6153         and externals are also invariant.
6154
6155 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
6156
6157         PR rtl-optimization/44858
6158         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
6159         newi2pat, make sure they don't affect newpat.
6160
6161         PR rtl-optimization/45400
6162         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
6163         SUBREG_REG if both modes are of MODE_INT class.
6164
6165 2010-08-25  Julian Brown  <julian@codesourcery.com>
6166
6167         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
6168         * config/arm/arm.md (generic_sched): No for Cortex-A5.
6169         (generic_vfp): Likewise.
6170         (cortex-a5.md): Include.
6171         * config/arm/cortex-a5.md: New.
6172
6173 2010-08-25  Richard Guenther  <rguenther@suse.de>
6174
6175         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
6176         * gimple.c (gimple_get_alias_set): Remove special handling
6177         for pointers.
6178
6179 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
6180
6181         PR middle-end/45355
6182         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
6183         dead_or_set_p when computing i0_feeds_i2_n.
6184
6185         * combine.c (find_split_point): Undo canonicalization of multiply-add
6186         to (minus x (mult)) when it seems likely that this will increase the
6187         chances of a split.
6188
6189 2010-08-25  Richard Guenther  <rguenther@suse.de>
6190
6191         PR lto/44562
6192         * lto-streamer.c (lto_record_common_node): Do not mess with
6193         TYPE_CANONICAL when not in lto.
6194         * gimple.c (gimple_register_type): Likewise.
6195
6196 2010-08-25  Richard Guenther  <rguenther@suse.de>
6197
6198         PR tree-optimization/45316
6199         * tree-ssa-pre.c (eliminate): Properly clean EH info.
6200
6201 2010-08-25  Richard Guenther  <rguenther@suse.de>
6202
6203         PR tree-optimization/45393
6204         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
6205         and clean EH info.  Avoid SSA update.
6206         (execute_cse_sincos): Cleanup the CFG if it has changed.
6207
6208 2010-08-25  Richard Guenther  <rguenther@suse.de>
6209
6210         PR middle-end/45379
6211         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
6212         TARGET_MEM_REF in alignment computation.
6213
6214 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
6215
6216         PR tree-optimization/45059
6217         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
6218         type conversions from newop{1,2}.  Assert t is a comparison and
6219         newop{1,2} after the stripping are gimple vals.
6220
6221 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
6222
6223         * config/arm/iterators.md (VU, SE, V_widen_l): New.
6224         (V_unpack, US): New.
6225         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
6226         (vec_unpack<US>_lo_<mode>): Likewise.
6227         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
6228         (neon_vec_unpack<US>_lo_<mode>): Likewise.
6229         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
6230         (vec_widen_<US>mult_hi_<mode>): Likewise.
6231         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
6232         (neon_vec_<US>mult_hi_<mode>"): Likewise.
6233         (neon_unpack<US>_<mode>): Widening move intermediate step for
6234         vectorizing without -mvectorize-with-neon-quad.
6235         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
6236         for vectorizing without -mvectorize-with-neon-quad.
6237         * config/arm/predicates.md (vect_par_constant_high): Check for
6238         high-half lanes of a vector.
6239         (vect_par_constant_low): Check for low-half lanes of a vector.
6240
6241 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
6242
6243         * tree-if-conv.c (struct ifc_dr): New.
6244         (IFC_DR): New.
6245         (DR_WRITTEN_AT_LEAST_ONCE): New.
6246         (DR_RW_UNCONDITIONALLY): New.
6247         (memref_read_or_written_unconditionally): Use the cached values
6248         when possible.
6249         (write_memref_written_at_least_once): Same.
6250         (if_convertible_loop_p): Initialize and free DR->aux fields.
6251
6252 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
6253
6254         * gimple.c (gimple_could_trap_p_1): Not static anymore.
6255         Pass an extra bool parameter include_mem.
6256         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
6257         (gimple_assign_rhs_could_trap_p): Same.
6258         * gimple.h (gimple_could_trap_p_1): Declared.
6259         * tree-data-ref.h (same_data_refs_base_objects): New.
6260         (same_data_refs): New.
6261         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
6262         (write_memrefs_written_at_least_once): New.
6263         (ifcvt_memrefs_wont_trap): New.
6264         (operations_could_trap): New.
6265         (ifcvt_could_trap_p): New.
6266         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
6267         Gets a vector of data refs.
6268         (if_convertible_stmt_p): Same.
6269         (if_convertible_loop_p_1): New.
6270         (if_convertible_loop_p): Call if_convertible_loop_p_1.
6271
6272 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
6273
6274         * common.opt (ftree-loop-if-convert-stores): New flag.
6275         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
6276         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
6277         the created statement before GSI.
6278         (if_convertible_phi_p): Allow virtual phi nodes when
6279         flag_loop_if_convert_stores is set.
6280         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
6281         Do not handle types that do not match is_gimple_reg_type.
6282         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
6283         when flag_loop_if_convert_stores is set, as LHS can contain
6284         memory refs.
6285         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
6286         to if_convertible_gimple_assign_stmt_p.
6287         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
6288         (replace_phi_with_cond_gimple_assign_stmt): Renamed
6289         predicate_scalar_phi.  Do not handle virtual phi nodes.
6290         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
6291         Call predicate_scalar_phi.
6292         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
6293         just after the labels for flag_loop_if_convert_stores, otherwise
6294         insert the predicate in the end of the BB.
6295         (predicate_mem_writes): New.
6296         (combine_blocks): Call predicate_all_scalar_phis.  When
6297         flag_loop_if_convert_stores is set, call predicate_mem_writes.
6298         (tree_if_conversion): Call mark_sym_for_renaming when
6299         flag_loop_if_convert_stores is set.
6300         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
6301         flag_loop_if_convert_stores is set.
6302
6303 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
6304
6305         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
6306         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
6307         (pa_function_value): Make static.
6308         (override_options): Rename to...
6309         (pa_option_override): ...this. Make static.
6310         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
6311         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
6312         TARGET_OPTION_OVERRIDE): Define.
6313         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
6314         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
6315         Remove.
6316         * config/pa/pa-protos.h (override_options): Remove.
6317
6318 2010-08-24  Richard Guenther  <rguenther@suse.de>
6319
6320         PR middle-end/45379
6321         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
6322         if addr->index is NULL or zero.
6323         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
6324         TARGET_MEM_REF more properly.
6325         (indirect_ref_may_alias_decl_p): Likewise.
6326         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
6327         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
6328
6329 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
6330
6331         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
6332         (m32c_override_options): Rename to...
6333         (m32c_option_override): ...this. Make static.
6334         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
6335         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
6336         Remove.
6337         * config/m32c/m32c-protos.h (m32c_override_options,
6338         m32c_function_value_regno_p): Remove.
6339
6340 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
6341
6342         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
6343         Fix a typo in a previous commit.
6344
6345 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
6346
6347         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
6348         Pre-initialize innerloop_iters to one.
6349
6350 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
6351
6352         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
6353         existing static function global.
6354
6355         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
6356         is changed to global.
6357
6358         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
6359         may_be_nonaddressable_p on base, and don't collect this reference
6360         if the address of the base could not be taken.
6361
6362 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6363
6364         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
6365         enable the compiler to autovectorize mathmetical functions for
6366         power7 using the Mathematical Acceleration Subsystem library.
6367
6368         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
6369         handle which vector math library we have.
6370         (rs6000_override_options): Add -mveclibabi=mass support.
6371         (rs6000_builtin_vectorized_libmass): New function to handle auto
6372         vectorizing math functions that are in the MASS library.
6373         (rs6000_builtin_vectorized_function): Call it.
6374
6375         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6376         -mveclibabi=mass.
6377
6378 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6379
6380         PR boehm-gc/34544
6381         * gthr-posix.h (__gthread_active_init): Delete.
6382         (__gthread_active_p): Do activity check here.
6383         Don't include errno.h on hppa-hpux.  Update comment.
6384         * gthr-posix95.h (__gthread_active_init): Delete.
6385         (__gthread_active_p): Do activity check here.
6386         Don't include errno.h on hppa-hpux.  Update comment.
6387         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
6388         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
6389         add -lpthread when -mt or -pthread is specified.
6390         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
6391         (LINK_GCC_C_SEQUENCE_SPEC): Define.
6392         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
6393         (stublib.c, pthread_default_stacksize_np-stub.o,
6394         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
6395         $(T)libgcc_stub.a): Add methods.
6396         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
6397         (stublib.c, pthread_default_stacksize_np-stub.o,
6398         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
6399         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6400         pthread_mutex_unlock): New stubs.
6401
6402 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
6403
6404         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
6405         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
6406         options.
6407         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
6408         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
6409         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
6410         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
6411         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
6412         "-l".
6413         * cppspec.c: Include opts.h.
6414         (lang_specific_driver): Use cl_decoded_option structures.
6415         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
6416         * doc/tm.texi: Regenerate.
6417         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
6418         (driver_handle_option): Allow driver options needing no special
6419         processing.
6420         (process_command): Decode options before call to
6421         lang_specific_driver.  Pass decoded options to
6422         lang_specific_driver.
6423         * gcc.h (lang_specific_driver): Update prototype.
6424         * gccspec.c: Include opts.h.
6425         (lang_specific_driver): Use cl_decoded_option structures.
6426         * opts-common.c (option_ok_for_language, generate_option,
6427         generate_option_input_file): New.
6428         (decode_cmdline_option): Use option_ok_for_language.
6429         (decode_cmdline_options_to_array): Use generate_option_input_file.
6430         (handle_generated_option): Use generate_option.
6431         * opts.h (generate_option, generate_option_input_file): Declare.
6432
6433 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
6434
6435         * config/mips/mips.c (mips_override_options): Rename to...
6436         (mips_option_override): ...this. Make static.
6437         (TARGET_OPTION_OVERRIDE): Define.
6438         (mips_in_small_data_p): Update comment.
6439         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
6440         (FIXED_REGISTERS): Update comment.
6441         * config/mips/mips-protos.h (mips_override_options): Remove.
6442
6443 2010-08-21  Olivier Hainque  <hainque@adacore.com>
6444
6445         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
6446
6447 2010-08-21  Olivier Hainque  <hainque@adacore.com>
6448
6449         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
6450         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
6451
6452 2010-08-20  Jan Hubicka  <jh@suse.cz>
6453
6454         * tree-pass.h (pass_ipa_cdtor_merge): New function.
6455         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
6456         heap allocated.
6457         (record_cdtor_fn): Move to ipa.c; do not test for
6458         have_ctors_dtors.
6459         (build_cdtor): Move to ipa.c; add code avoiding construction
6460         when target have ctors/dtors and there is only one ctor/dtor at given
6461         priority.
6462         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
6463         sort; reverse order of constructors.
6464         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
6465         (cgraph_finalize_function): Do not call record_cdtor_fn.
6466         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
6467         (cgraph_build_static_cdtor): Move to ipa.c.
6468         * ipa.c: Include target.h and tree-iterator.h.
6469         (cgraph_build_static_cdtor, static_ctors, static_dtors,
6470         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
6471         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
6472         pass_ipa_cdtor_merge): New.
6473         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
6474         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
6475         bounds access.
6476
6477 2010-08-20  Jan Hubicka  <jh@suse.cz>
6478
6479         PR c++/45307
6480         PR c++/17736
6481         * cgraph.h (cgraph_only_called_directly_p,
6482         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
6483         static cdtors.
6484         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
6485         are not needed.
6486         (cgraph_finalize_function): Static cdtors are reachable.
6487         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
6488
6489 2010-08-20  Jan Hubicka  <jh@suse.cz>
6490
6491         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
6492         flag_wpa.
6493         * lto-streamer-out.c (lto_output): Likewise.
6494         * passes.c (ipa_write_optimization_summaries): Initialize statement
6495         uids.
6496
6497 2010-08-20  Olivier Hainque  <hainque@adacore.com>
6498
6499         * tree.h (alias_diag_flags): New enum.
6500         (alias_pair): Add an 'emitted_diags' field.
6501         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
6502         (assemble_alias): Initialize emitted_diags of new pairs.
6503
6504 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
6505
6506         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6507         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6508         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6509         (STACK_CHECK_PROTECT): Define.
6510         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
6511         (output_probe_stack_range): Likewise.
6512         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
6513         builtin stack checking is enabled.
6514         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
6515         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6516         (probe_stack_range): New insn.
6517
6518 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6519
6520         PR target/45336
6521         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
6522         short first.
6523
6524         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
6525         char first.
6526
6527 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
6528
6529         PR target/45336
6530         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
6531         to cover zero extension into 64-bit register.
6532         (*sse2_pextrw): Likewise.
6533         (*sse4_1_pextrd_zext): New insn.
6534
6535 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
6536
6537         revert r163410, partially revert r163267.
6538         * config/rs6000/darwin.h (LIB_SPEC): Remove.
6539         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
6540         Darwin versions.
6541
6542 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
6543
6544         PR middle-end/44974
6545         * builtins.c (expand_builtin): Don't optimize away
6546         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
6547
6548 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
6549
6550         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
6551         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
6552         alternative 1 of operand 2.
6553
6554 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
6555             Paolo Bonzini  <bonzini@gnu.org>
6556
6557         * simplify-rtx.c (simplify_unary_operation_1): Optimize
6558         (sign_extend (zero_extend (...)) and
6559         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
6560
6561 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
6562
6563         PR rtl-optimization/45353
6564         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
6565         after bb_note is a BARRIER.
6566
6567 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
6568
6569         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
6570         linking libgcc.a.
6571
6572 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
6573             Michael Matz  <matz@suse.de>
6574
6575         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
6576
6577 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
6578
6579         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
6580         (ggc_mark_roots): ...here.
6581
6582 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
6583
6584         * vec.h (FOR_EACH_VEC_ELT): Define.
6585         * c-decl.c: Use it.
6586         * cfgloop.c: Likewise.
6587         * cfgloopmanip.c: Likewise.
6588         * cgraph.c: Likewise.
6589         * cgraphunit.c: Likewise.
6590         * combine.c: Likewise.
6591         * config/bfin/bfin.c: Likewise.
6592         * config/mips/mips.c: Likewise.
6593         * config/rs6000/rs6000.c: Likewise.
6594         * dbxout.c: Likewise.
6595         * df-scan.c: Likewise.
6596         * dominance.c: Likewise.
6597         * dse.c: Likewise.
6598         * dwarf2out.c: Likewise.
6599         * except.c: Likewise.
6600         * expr.c: Likewise.
6601         * function.c: Likewise.
6602         * gcse.c: Likewise.
6603         * genattr.c: Likewise.
6604         * ggc-common.c: Likewise.
6605         * gimplify.c: Likewise.
6606         * graphite-blocking.c: Likewise.
6607         * graphite-clast-to-gimple.c: Likewise.
6608         * graphite-dependences.c: Likewise.
6609         * graphite-interchange.c: Likewise.
6610         * graphite-poly.c: Likewise.
6611         * graphite-scop-detection.c: Likewise.
6612         * graphite-sese-to-poly.c: Likewise.
6613         * graphite.c: Likewise.
6614         * haifa-sched.c: Likewise.
6615         * ifcvt.c: Likewise.
6616         * implicit-zee.c: Likewise.
6617         * ipa-prop.c: Likewise.
6618         * ipa-struct-reorg.c: Likewise.
6619         * ipa.c: Likewise.
6620         * ira-build.c: Likewise.
6621         * ira-color.c: Likewise.
6622         * ira-emit.c: Likewise.
6623         * lambda-code.c: Likewise.
6624         * loop-invariant.c: Likewise.
6625         * loop-unroll.c: Likewise.
6626         * lower-subreg.c: Likewise.
6627         * lto-cgraph.c: Likewise.
6628         * lto-opts.c: Likewise.
6629         * lto-streamer-in.c: Likewise.
6630         * lto-streamer-out.c: Likewise.
6631         * lto-streamer.c: Likewise.
6632         * lto-symtab.c: Likewise.
6633         * matrix-reorg.c: Likewise.
6634         * opts.c: Likewise.
6635         * predict.c: Likewise.
6636         * print-tree.c: Likewise.
6637         * sdbout.c: Likewise.
6638         * sel-sched-dump.c: Likewise.
6639         * sel-sched-ir.c: Likewise.
6640         * sel-sched.c: Likewise.
6641         * sese.c: Likewise.
6642         * stor-layout.c: Likewise.
6643         * tree-cfg.c: Likewise.
6644         * tree-cfgcleanup.c: Likewise.
6645         * tree-chrec.c: Likewise.
6646         * tree-data-ref.c: Likewise.
6647         * tree-emutls.c: Likewise.
6648         * tree-inline.c: Likewise.
6649         * tree-into-ssa.c: Likewise.
6650         * tree-loop-distribution.c: Likewise.
6651         * tree-loop-linear.c: Likewise.
6652         * tree-mudflap.c: Likewise.
6653         * tree-outof-ssa.c: Likewise.
6654         * tree-parloops.c: Likewise.
6655         * tree-predcom.c: Likewise.
6656         * tree-pretty-print.c: Likewise.
6657         * tree-scalar-evolution.c: Likewise.
6658         * tree-ssa-live.c: Likewise.
6659         * tree-ssa-loop-im.c: Likewise.
6660         * tree-ssa-loop-ivcanon.c: Likewise.
6661         * tree-ssa-loop-ivopts.c: Likewise.
6662         * tree-ssa-loop-manip.c: Likewise.
6663         * tree-ssa-loop-niter.c: Likewise.
6664         * tree-ssa-loop-prefetch.c: Likewise.
6665         * tree-ssa-phiprop.c: Likewise.
6666         * tree-ssa-pre.c: Likewise.
6667         * tree-ssa-reassoc.c: Likewise.
6668         * tree-ssa-sccvn.c: Likewise.
6669         * tree-ssa-structalias.c: Likewise.
6670         * tree-ssa.c: Likewise.
6671         * tree-vect-data-refs.c: Likewise.
6672         * tree-vect-loop-manip.c: Likewise.
6673         * tree-vect-loop.c: Likewise.
6674         * tree-vect-patterns.c: Likewise.
6675         * tree-vect-slp.c: Likewise.
6676         * tree-vect-stmts.c: Likewise.
6677         * tree-vrp.c: Likewise.
6678         * tree.c: Likewise.
6679         * value-prof.c: Likewise.
6680         * var-tracking.c: Likewise.
6681         * varasm.c: Likewise.
6682         * vmsdbgout.c: Likewise.
6683
6684 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
6685             Richard Guenther  <richard.guenther@gmail.com>
6686
6687         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
6688         copy the src value and return a copy.
6689         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
6690         (C++ Volatiles): Adjust to describe C++ semantics only.
6691
6692 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
6693
6694         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
6695         be zero or nonzero.
6696         * doc/tm.texi: Regenerate.
6697         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
6698         * df-scan.c (df_get_exit_block_use_set), reginfo.c
6699         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
6700         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
6701         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
6702         to 1.
6703
6704 2010-08-20  Olivier Hainque  <hainque@adacore.com>
6705
6706         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
6707         an extra nop past a sibling call at the very end.
6708
6709 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
6710
6711         PR bootstrap/45350
6712         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
6713         a comment.
6714
6715 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
6716
6717         * target.def (function_arg, function_incoming_arg): Remove const
6718         qualifier on CUMULATIVE_ARGS parameter.
6719         * targhooks.h (default_function_arg, default_function_incoming_arg):
6720         Likewise.
6721         * targhooks.c (default_function_arg, default_function_incoming_arg):
6722         Likewise.
6723         * config/i386/i386.c (ix86_function_arg): Likewise.
6724
6725 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
6726
6727         PR target/45336
6728         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
6729         SIGN_EXTENDs or ZERO_EXTENDs.
6730
6731 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
6732
6733         PR target/42172
6734         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
6735         Take its cost into account if nonnull.
6736         (insn_a_feeds_b): New static function.
6737         (combine_instructions): Look for four-insn combinations.
6738         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
6739         them into account when computing all_adjacent and looking for other
6740         uses.
6741         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
6742         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
6743         (try_combine): New arg I0.  Handle four-insn combinations.
6744         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
6745         like ELIM_I1.
6746
6747 2010-08-19  Jason Merrill  <jason@redhat.com>
6748
6749         PR c++/45307
6750         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
6751         if ctor is empty.
6752         (gimplify_modify_expr_rhs): Adjust.
6753
6754 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
6755
6756         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
6757         bitmap_bit_p.
6758         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
6759         * dominance.c (iterate_fix_dominators): Likewise.
6760         * dse.c (set_usage_bits): Likewise.
6761         (set_position_unneeded, record_store): Likewise.
6762         * gimple-fold.c (get_maxval_strlen): Likewise.
6763         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
6764         * ipa-inline.c (update_caller_keys): Likewise.
6765         * ipa-split.c (verify_non_ssa_vars): Likewise.
6766         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
6767         (close_type_exposed_parameter, close_type_full_escape): Likewise.
6768         (close_addressof_down): Likewise.
6769         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
6770         (setup_allocno_left_conflicts_size): Likewise.
6771         (ira_reassign_conflict_allocnos): Likewise.
6772         (ira_reassign_pseudos): Likewise.
6773         * ira-emit.c (change_loop): Likewise.
6774         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
6775         * lto-streamer-out.c (write_symbol): Likewise.
6776         * predict.c (expr_expected_value_1): Likewise.
6777         * regstat.c (regstat_bb_compute_ri): Likewise.
6778         * sel-sched.c (create_block_for_bookkeeping): Likewise.
6779         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
6780         * stmt.c (expand_case): Likewise.
6781         * tree-eh.c (emit_eh_dispatch): Likewise.
6782         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
6783         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
6784         Likewise.
6785         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
6786         (rdg_build_components): Likewise.
6787         * tree-object-size.c (collect_object_sizes_for): Likewise.
6788         * tree-sra.c (convert_callers): Likewise.
6789         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
6790         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
6791         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
6792
6793 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
6794
6795         * config/i386/i386.md (*lea_1): Use P mode iterator.
6796         (lea add splitter): Also handle DImode operands.
6797         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
6798         predicate.  Do not use ix86_lea_for_add_ok.
6799         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
6800         (lea ashift splitter): Also handle DImode operands.
6801         (DImode lea ashift splitter): Remove splitter.
6802
6803 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
6804
6805         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
6806         ix86_binary_operator_ok.
6807
6808 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
6809
6810         PR rtl-optimization/44691
6811         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
6812         is not a register.
6813
6814 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
6815
6816         PR target/45070
6817         * config/arm/arm.c (arm_output_epilogue): Ensure that return
6818          value of size 1-3 is handled correctly.
6819
6820 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
6821
6822         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
6823         type for the conditional has wide enough range.
6824
6825 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
6826
6827         PR target/45327
6828         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
6829         ix86_binary_operator_ok.
6830
6831 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
6832
6833         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
6834         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
6835         code to output insn mnemonic.  Fix comment.
6836         (*addsi_1_zext): Add r-r-0 alternative 1.
6837         <TYPE_LEA>: Split insn to lea.
6838         <default>: Handle alternative 1.
6839         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
6840         multi-level if_then_else RTX to set "type" attribute.
6841         <default>: Handle alternative 2.
6842         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
6843         Use cond RTX instead of multi-level if_then_else RTX to set
6844         "type" attribute.
6845         <default>: Handle alternatives 2 and 4.
6846         (lea splitters): Update calls to ix86_lea_for_add_ok.
6847
6848         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
6849         argument.
6850         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
6851
6852 2010-08-18  Richard Guenther  <rguenther@suse.de>
6853
6854         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
6855         use operand helpers.
6856
6857 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
6858
6859         PR middle-end/45292
6860         * optabs.c (expand_bool_compare_and_swap): Expand pending
6861         pops before trying the optab.
6862
6863 2010-08-18  Yao Qi  <yao@codesourcery.com>
6864
6865         PR target/45094
6866         * config/arm/arm.c (output_move_double): Fix typo generating
6867         instructions ('ldr'->'str').
6868
6869 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6870
6871         PR rtl-optimization/42575
6872         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
6873         live ranges.
6874
6875 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6876
6877         * config/arm/arm-protos.h (arm_expand_sync): New.
6878         (arm_output_memory_barrier, arm_output_sync_insn): New.
6879         (arm_sync_loop_insns): New.
6880         * config/arm/arm.c (FL_ARCH7): New.
6881         (FL_FOR_ARCH7): Include FL_ARCH7.
6882         (arm_arch7): New.
6883         (arm_print_operand): Support %C markup.
6884         (arm_legitimize_sync_memory): New.
6885         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
6886         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
6887         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
6888         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
6889         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
6890         (arm_process_output_sync_insn, arm_output_sync_insn): New.
6891         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
6892         * config/arm/arm.h (struct arm_sync_generator): New.
6893         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
6894         (TARGET_HAVE_MEMORY_BARRIER): New.
6895         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
6896         * config/arm/arm.md: Include sync.md.
6897         (UNSPEC_MEMORY_BARRIER): New.
6898         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
6899         (VUNSPEC_SYNC_OP):New.
6900         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
6901         (sync_result, sync_memory, sync_required_value): New attributes.
6902         (sync_new_value, sync_t1, sync_t2): Likewise.
6903         (sync_release_barrier, sync_op): Likewise.
6904         (length): Add logic to length attribute defintion to call
6905         arm_sync_loop_insns when appropriate.
6906         * config/arm/sync.md: New file.
6907
6908 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6909
6910         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
6911         ENABLE_TREE_CHECKING.
6912         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
6913         and GCC >= 4.3.
6914
6915 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6916
6917         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
6918         or optimizing for size, always avoid lea if possible.
6919
6920         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
6921
6922 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
6923
6924         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
6925         Dunmmy function with NULL return unless the target is
6926         OSX >= 10.6 (Darwin10).
6927
6928 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
6929
6930         * gcc.c (spec_function): Add remove-outfile.
6931         (remove_outfile_spec_function): New function.
6932         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
6933         * invoke.texi (replace-outfile): Document.
6934
6935 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
6936
6937         PR target/45296
6938         * reginfo.c (globalize_reg): Reject stack registers.
6939
6940 2010-08-17  Richard Guenther  <rguenther@suse.de>
6941
6942         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
6943         list of conditional equivalences.
6944         (free_all_edge_infos): Adjust.
6945         (record_equivalences_from_incoming_edge): Likewise.
6946         (record_cond): Likewise.
6947         (build_and_record_new_cond): Likewise.
6948         (record_conditions): Likewise.
6949         (dom_opt_leave_block): Likewise.
6950
6951 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
6952
6953         * doc/invoke.texi (ms-extension): Add documentation.
6954
6955 2010-08-17  Richard Guenther  <rguenther@suse.de>
6956
6957         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
6958
6959 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
6960
6961         PR c/40563
6962         * c-decl.c (diagnose_uninitialized_cst_member): New function.
6963         (finish_decl): Use it to issue a -Wc++-compat warning about
6964         uninitialized const field in struct or union.
6965
6966         (finish_struct): Use strip_array_types.
6967
6968 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6969
6970         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
6971         functions.
6972         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
6973         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
6974         call block_nreverse here.
6975         (blocks_nreverse): Rename decl temporary to block.
6976
6977 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
6978
6979         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
6980         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
6981         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
6982         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
6983         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
6984         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
6985         thumb2_iorsi3): Delete.
6986         (orsi_notsi_si): No longer a named pattern.
6987         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
6988         * config/arm/predicates.md (shift_amount_operand): New.
6989         (mult_operator): New.
6990         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
6991         attr enabled): New.
6992         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
6993         arch matches t2.
6994         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
6995         (not_shiftsi_compare0): Likewise, renamed from
6996         arm_notsi_shiftsi_compare0.
6997         (not_shiftsi_compare0_scratch): Likweise, renamed from
6998         arm_notsi_shiftsi_compare0_scratch.
6999         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
7000         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
7001         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
7002         so that the register alternative is disabled when the shift_operator
7003         is MULT.  Use "M" as the constraint for constants.
7004         (arith_shiftsi splitter): Enable for TARGET_32BIT.
7005         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
7006         constraint for constants.
7007         (arith_shiftsi_compare0_scratch): Likewise.
7008         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
7009         Handle Thumb2 alternative.
7010
7011 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
7012
7013         * doc/options.texi (NoDriverArg): Document.
7014         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
7015         -MDX and -MMDX.
7016         * opt-functions.awk (switch_flags): Handle NoDriverArg.
7017         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
7018         marking for CL_NO_DRIVER_ARG options when in the driver.
7019         * opts.h (CL_NO_DRIVER_ARG): Define.
7020         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7021         CL_COMMON): Update values.
7022
7023 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
7024
7025         * common.opt: Add driver options.
7026         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
7027         * doc/options.texi (Driver, RejectDriver): Document.
7028         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
7029         print_prog_name, print_multi_directory, print_sysroot,
7030         print_multi_os_directory, print_multi_lib,
7031         print_sysroot_headers_suffix, report_times, combine_flag,
7032         use_pipes, wrapper_string): Remove.
7033         (save_switch, driver_unknown_option_callback,
7034         driver_wrong_lang_callback, driver_post_handling_callback,
7035         driver_handle_option): New.
7036         (spec_lang, last_language_n_infiles): Make file-scope static
7037         instead of local to process_command.
7038         (process_command): Use decode_cmdline_options_to_array and
7039         read_cmdline_option for option processing.  Compute have_c in
7040         prescan of decoded options.
7041         * opt-functions.awk (switch_flags): Handle Driver and
7042         RejectDriver.
7043         (var_type, var_type_struct): Handle Separate options as generating
7044         const char * variables.
7045         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
7046         CL_TARGET to be passed by caller if required.
7047         (decode_cmdline_options_to_array): Update comment.
7048         * opts.c (complain_wrong_lang): Handle options only valid for the
7049         driver.
7050         (decode_options): Update call to decode_cmdline_options_to_array.
7051         (print_filtered_help): Ignore driver-only options.
7052         (print_specific_help): Ignore CL_DRIVER.
7053         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
7054         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
7055         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
7056         Update values.
7057
7058 2010-08-16  Richard Guenther  <rguenther@suse.de>
7059
7060         * tree-cfg.c (verify_types_in_gimple_reference): Verify
7061         TARGET_MEM_REF a bit.
7062         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
7063         (create_mem_ref_raw): Always create TMR_OFFSET, store the
7064         alias pointer type via it.
7065         (copy_mem_ref_info): Adjust.
7066         (maybe_fold_tmr): Likewise.
7067         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
7068         (reference_alias_ptr_type): Likewise.
7069         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
7070         adjust documentation of TMR_OFFSET operand.
7071         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
7072         use the alias pointer type.
7073         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
7074         initialize mem attrs but the TMR itself.
7075         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
7076         similar to MEM_REF.
7077         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
7078         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
7079         (unshare_and_remove_ssa_names): Likewise.
7080         (copy_ref_info): Adjust.
7081         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
7082         TARGET_MEM_REF case.
7083         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
7084         at TMR_ORIGINAL.
7085         * tree.h (TMR_ORIGINAL): Remove.
7086         * gimple.c (get_base_address): For TARGET_MEM_REF with a
7087         symbol return that.
7088         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
7089         with a symbol.
7090         (get_addr_base_and_unit_offset): Likewise.
7091         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
7092         TARGET_MEM_REFs.
7093         (indirect_ref_may_alias_decl_p): Likewise.
7094         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
7095
7096 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
7097
7098         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
7099         with GCC version 4.6, the default setting (when not optimizing
7100         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
7101         been changed to -fomit-frame-pointer.
7102
7103 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
7104
7105         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
7106         Darwin10.  Do not link libgcc.a for Darwin >= 9.
7107
7108 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
7109
7110         * doc/invoke.texi (Warning Options): Fix terminology and markup
7111         in the description of how unknown warning options are handled.
7112
7113 2010-08-15  Ira Rosen  <irar@il.ibm.com>
7114
7115         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
7116         in basic blocks.
7117         (vect_supportable_dr_alignment): Check alignment for basic blocks.
7118         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
7119         data references.
7120         (vect_bb_vectorization_profitable_p): New function.
7121         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
7122         check if it's worthwhile to vectorize the basic block.
7123
7124 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
7125
7126         * reload.h (register_move_cost, memory_move_secondary_cost,
7127         secondary_reload_class): Adjust prototype.
7128         * rtl.h (reg_class_subset_p): Adjust prototype.
7129         * reload.c (secondary_reload_class): Change arguments type from
7130         enum reg_class to reg_class_t. Change result type to reg_class_t.
7131         * reginfo.c (register_move_cost, reg_class_subset_p): Change
7132         arguments type from enum reg_class to reg_class_t.
7133         (memory_move_secondary_cost): Change arguments type from
7134         enum reg_class to reg_class_t. Change type of saved_flags to
7135         reg_class_t.
7136
7137         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7138         Remove macros.
7139         (mips_cost): Remove.
7140         (struct mips_rtx_cost_data): Moved to mips.c.
7141         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
7142         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
7143         (mips_cost): Make static.
7144         (mips_canonicalize_move_class): Change argument type to reg_class_t.
7145         Change result type to reg_class_t.
7146         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
7147         type from enum reg_class to reg_class_t.
7148         (mips_register_move_cost): Make static. Change arguments
7149         type from enum reg_class to reg_class_t.
7150         (mips_memory_move_cost): New function.
7151         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7152
7153 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
7154
7155         PR rtl-optimization/43358
7156         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
7157         of a single hard register, using simplify_subreg_regno to decide
7158         what that register should be.
7159
7160 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
7161
7162         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
7163         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
7164         (loongson_pmull<V_suffix>): Rename to...
7165         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
7166
7167 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
7168
7169         * configure.ac: Enable -fomit-frame-pointer on darwin
7170         which support dwarf2.
7171         * config/i386/i386.c (override_options): Same.
7172
7173 2010-08-13  Jie Zhang  <jie@codesourcery.com>
7174
7175         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
7176
7177 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
7178
7179         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
7180         -MMD.
7181
7182 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
7183
7184         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
7185         up dot_prod pattern searching if a stmt is outside the loop.
7186
7187 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
7188             Uros Bizjak  <ubizjak@gmail.com>
7189
7190         * config.gcc: Handle --enable-frame-pointer.
7191
7192         * configure.ac: Add --enable-frame-pointer.
7193         * configure: Regenerated.
7194
7195         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
7196         (override_options): If not configured with --enable-frame-pointer,
7197         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
7198         optimizing for size), -fasynchronous-unwind-tables and
7199         -maccumulate-outgoing-args by default.
7200
7201 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
7202
7203         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
7204
7205         PR middle-end/45262
7206         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
7207         -a overflows.  Normalize the range.
7208
7209 2010-08-12  Richard Guenther  <rguenther@suse.de>
7210
7211         PR tree-optimization/45232
7212         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
7213         for types with undefined overflow.
7214         (reassociate_bb): Allow re-associating of bit and min/max
7215         operations for types with undefined overflow.
7216         * tree-ssa-forwprop.c (associate_plusminus): New function.
7217         (tree_ssa_forward_propagate_single_use_vars): Call it.
7218
7219 2010-08-12  Richard Guenther  <rguenther@suse.de>
7220
7221         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
7222         * tree-ssa-alias.c (get_ptr_info): Move ...
7223         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
7224         align and misalign fields conservatively.
7225         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
7226         derive alignment information.
7227         (evaluate_stmt): Derive alignment information from memory
7228         allocation functions.
7229         * tree.h (get_pointer_alignment): Make unsigned.
7230         * builtins.c (get_object_alignment): Use alignment information we
7231         have computed for pointers.
7232         (get_pointer_alignment): Likewise.  Make conservative, return
7233         and unsigned value.
7234         (expand_builtin_strlen): Adjust.
7235         (expand_builtin_memcmp): Likewise.
7236         (expand_builtin_strcmp): Likewise.
7237         (expand_builtin_strncmp): Likewise.
7238         (get_builtin_sync_mem): Use at least mode alignment.
7239         (fold_builtin_memset): Adjust.
7240         (fold_builtin_memory_op): Likewise.
7241         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
7242         information also dump pointer alignment knowledge.
7243         (dump_gimple_stmt): Likewise.
7244
7245 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
7246
7247         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
7248         (EMPTY_FIELD_BOUNDARY): Remove.
7249         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
7250
7251 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
7252
7253         PR debug/45259
7254         * caller-save.c (save_call_clobbered_regs): Only swap notes with
7255         DEBUG_INSNs if n_regs_saved.
7256
7257 2010-08-12  Wei Guozhi  <carrot@google.com>
7258
7259         PR target/44999
7260         * config/arm/arm.md (andsi3): Change to zero extension if possible.
7261         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
7262
7263 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
7264
7265         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
7266
7267         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
7268
7269 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7270
7271         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
7272         the case removed in the previous patch, when the only phi argument
7273         is defined in the same loop as the phi node itself.  Handle it
7274         separately from the invariant case by both propagating it outside
7275         the region and replacing the phi node with an assign.
7276
7277 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7278
7279         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
7280         constant phi nodes with one argument are is_gimple_min_invariant
7281         and SSA_NAME_IS_DEFAULT_DEF.
7282
7283 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7284
7285         * graphite-cloog-util.c (oppose_constraint):
7286         Extend loop counter's value range (CLOOG_ORG).
7287         (cloog_matrix_to_ppl_constraint): Same.
7288         (new_Constraint_System_from_Cloog_matrix): Same.
7289         * graphite-cloog-compat.h (matrix_num_type): New.
7290
7291 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7292
7293         * graphite.c (graphite_initialize): Do not initialize
7294         CLooG and initialize the Parma Polyhedra Library
7295         manually when using CLOOG_ORG.
7296         (graphite_finalize): Do not finalize CLooG and finalize
7297         the Parma Polyhedra Library manually when using CLOOG_ORG.
7298         * graphite-cloog-compat.h (cloog_initialize): Hide function
7299         when using CLOOG_ORG.
7300         (cloog_finalize): Same.
7301
7302 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7303
7304         * graphite-clast-to-gimple.c (free_scattering): Change
7305         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
7306         (CLOOG_ORG).
7307         (build_cloog_prog): Same.
7308         * graphite-cloog-compat.h (cloog_domain): Removed.
7309         (cloog_scattering): New.
7310         (cloog_set_domain): Removed.
7311         (cloog_set_scattering): New.
7312         (cloog_next_domain): Removed.
7313         (cloog_next_scattering): New.
7314         (cloog_set_next_domain): Removed.
7315         (cloog_set_next_scattering): New.
7316         (CloogScatteringList): New.
7317         (CloogScattering): New.
7318         (cloog_scattering_free): New.
7319         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
7320         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
7321         New.
7322
7323 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7324
7325         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
7326         CloogState.
7327         (set_cloog_options): Same.
7328         (print_clast_stmt): Same.
7329         (scop_to_clast): Same.
7330         (print_generated_program): Same.
7331         (gloog): Same.
7332         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
7333         (scop_to_clast): Extend with CloogState.
7334         * graphite-cloog-util.c: Include graphite-cloog-compat.h
7335         (new_Cloog_Domain_from_ppl_Polyhedron):
7336         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
7337         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
7338         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
7339         * graphite-cloog-util.h (build_cloog_prog): Same.
7340         * graphite-cloog-copat.h (build_cloog_prog): New.
7341         (CloogState): New.
7342         (cloog_state_malloc): New.
7343         (cloog_state_free): New.
7344         (cloog_loop_malloc): New.
7345         (cloog_options_malloc): New.
7346         (cloog_statement_alloc): New.
7347         (cloog_domain_from_cloog_matrix): New.
7348         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
7349         (new_Cloog_Domain_from_ppl_Polyhedron): New.
7350
7351 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7352
7353         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
7354         type of NAME now depends on used CLooG version.
7355         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
7356         (gcc_type_for_clast_expr): Same.
7357         (print_clast_stmt): Replace pprint with clast_pprint.
7358         * graphite-cloog-compat.h: Provide compatibility macros for
7359         CLooG Legacy.
7360         (clast_name_p): New.
7361         (clast_expr_term): New.
7362         (clast_expr_red): New.
7363         (clast_expr_bin): New.
7364         (clast_pprint): New.
7365
7366 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7367
7368         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
7369         compatible to newer CLooG releases (CLOOG_ORG).
7370         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
7371         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
7372         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
7373         (build_cloog_prog) : New.
7374         (cloog_program_extract_scalars): New.
7375         (cloog_program_scatter): New.
7376
7377 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7378
7379         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
7380         conditionally (CLOOG_ORG).
7381         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
7382         (cloog_statement_usr): New.
7383         (cloog_domain): Same.
7384         (cloog_set_domain): Same.
7385         (cloog_next_domain): Same.
7386         (cloog_set_next_domain): Same.
7387         (cloog_program_nb_scattdims): Same.
7388         (cloog_program_set_nb_scattdims): Same.
7389         (cloog_program_names): Same.
7390         (cloog_program_set_names): Same.
7391         (cloog_program_set_context): Same.
7392         (cloog_program_set_loop): Same.
7393         (cloog_program_blocklist): Same.
7394         (cloog_program_set_blocklist): Same.
7395         (cloog_program_scaldims): Same.
7396         (cloog_program_set_scaldims): Same.
7397         (cloog_names_nb_parameters): Same.
7398         (cloog_names_set_nb_parameters): Same.
7399         (cloog_names_parameters): Same.
7400         (cloog_names_set_parameters): Same.
7401         (cloog_names_set_nb_iterators): Same.
7402         (cloog_names_set_iterators): Same.
7403         (cloog_names_set_nb_scattering): Same.
7404         (cloog_names_set_scattering): Same.
7405         (cloog_statement_set_usr): Same.
7406         (cloog_loop_set_next): Same.
7407         (cloog_loop_set_domain): Same.
7408         (cloog_loop_set_block): Same.
7409         (cloog_block_list_next): Same.
7410         (cloog_block_list_set_next):
7411         (cloog_block_list_set_block): Same.
7412
7413 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7414
7415         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
7416         a bool.
7417         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
7418         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
7419         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
7420         when something has been changed.
7421         (rewrite_commutative_reductions_out_of_ssa): Same.
7422
7423 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7424
7425         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
7426         handle the case when def is in the sese region.
7427         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
7428         for invariant expressions.
7429         (rewrite_cross_bb_phi_deps): Removed.
7430         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
7431         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
7432         rewrite_cross_bb_phi_deps.
7433
7434 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7435
7436         * graphite-sese-to-poly.c
7437         (rewrite_commutative_reductions_out_of_ssa_loop): Call
7438         scev_analyzable_p only on is_gimple_reg
7439
7440 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7441
7442         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
7443         (rewrite_close_phi_out_of_ssa): Propagate constant values or
7444         parametric expressions outside the scop region.
7445         (rewrite_cross_bb_scalar_deps): Same.
7446         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
7447
7448 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7449
7450         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
7451         SSA_NAME_DEF_STMT only on SSA_NAMEs.
7452
7453 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7454
7455         * tree-scalar-evolution.c (instantiate_scev_name): Do not
7456         instantiate default definitions.
7457
7458 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
7459             Sebastian Pop  <sebastian.pop@amd.com>
7460
7461         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
7462         (loop_exits_from_bb_p): New.
7463         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
7464         (loop_exits_from_bb_p): Declared.
7465         * graphite-scop-detection.c (scopdet_basic_block_info): Call
7466         loop_exits_to_bb_p.
7467
7468 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7469
7470         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
7471         extra parameter for the region.  Call scev_analyzable_p.
7472         (rewrite_reductions_out_of_ssa): Update call to
7473         rewrite_close_phi_out_of_ssa.
7474         (rewrite_cross_bb_phi_deps): Same.
7475         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
7476         parameter for the region.  Call scev_analyzable_p.
7477         (rewrite_commutative_reductions_out_of_ssa): Update call to
7478         rewrite_commutative_reductions_out_of_ssa_loop.
7479
7480 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7481
7482         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
7483
7484 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7485
7486         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
7487         SSA scalar phi nodes that can be scev_analyzable_p.
7488
7489 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7490
7491         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
7492         handle SSA_NAME_IS_DEFAULT_DEF.
7493
7494 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7495
7496         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
7497
7498 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7499
7500         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
7501         case non close-phi nodes with one argument.
7502
7503 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7504
7505         * sese.h (scev_analyzable_p): Scevs could be expressions without
7506         chrecs and still be scev_analyzable_p.
7507
7508 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7509
7510         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7511
7512 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7513
7514         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
7515         * cfgloop.h (struct loop): Remove single_iv field.
7516         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
7517         (scop_canonicalize_loops): Removed.
7518         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
7519         over all the loop phi nodes in loop->header.
7520         (build_poly_scop): Remove use of scop_canonicalize_loops.
7521
7522 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7523
7524         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
7525         handle GIMPLE_CALL.
7526
7527 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7528
7529         * tree-chrec.c (chrec_apply): Should only apply to the specified
7530         variable.  Also handle multivariate chains of recurrences that
7531         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
7532
7533 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7534
7535         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
7536         (debug_clast_name_indexes_1): Removed.
7537         (debug_clast_name_indexes): Removed.
7538         (pbb_to_depth_to_oldiv): Removed.
7539         (build_iv_mapping): Replace the use of rename_map with iv_map.
7540         (translate_clast_user): Remove uses of rename_map.  Allocate and
7541         free iv_map.
7542         (translate_clast_for_loop): Remove uses of rename_map.
7543         (translate_clast_for): Same.
7544         (translate_clast_guard): Same.
7545         (translate_clast): Same.
7546         (gloog): Same.
7547         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
7548         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
7549         * sese.c (set_rename): Now static.
7550         (rename_variables_in_stmt): Removed.
7551         (rename_uses): New.
7552         (is_parameter): Removed.
7553         (is_iv): Removed.
7554         (expand_scalar_variables_call): Removed.
7555         (expand_scalar_variables_ssa_name): Removed.
7556         (expand_scalar_variables_expr): Removed.
7557         (expand_scalar_variables_stmt): Removed.
7558         (expand_scalar_variables): Removed.
7559         (rename_variables): Removed.
7560         (remove_condition): Removed.
7561         (get_true_edge_from_guard_bb): Removed.
7562         (get_false_edge_from_guard_bb): Removed.
7563         (struct igp): Removed.
7564         (default_before_guard): Removed.
7565         (convert_for_phi_arg): Removed.
7566         (add_guard_exit_phis): Removed.
7567         (insert_guard_phis): Removed.
7568         (graphite_copy_stmts_from_block): Now also uses iv_map and a
7569         region.  Do not copy conditions.  Do not copy induction variables.
7570         Call rename_uses.
7571         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
7572         the translated statement.  Use the iv_map for the induction
7573         variable renaming.
7574         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
7575         (set_rename): Removed declaration.
7576         (scev_analyzable_p): ...here.
7577         * tree-chrec.c (chrec_apply_map): New.
7578         * tree-chrec.h (chrec_apply_map): Declared.
7579
7580 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7581
7582         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
7583         insert_loop_close_phis.
7584         * sese.c (name_defined_in_loop_p): Removed.
7585         (expr_defined_in_loop_p): Removed.
7586         (alive_after_loop): Removed.
7587         (close_phi_not_yet_inserted_p): Removed.
7588         (struct alep): Removed.
7589         (add_loop_exit_phis): Removed.
7590         (insert_loop_close_phis): Removed.
7591
7592 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7593
7594         * graphite-cloog-util.c
7595         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
7596         * graphite-poly.c
7597         (psct_scattering_dim_for_loop_depth): Same.
7598
7599 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7600
7601         * graphite-cloog-util.h: Added cloog.h.
7602         * graphite-blocking.c: Removed cloog.h.
7603         * graphite-dependences.c: Same.
7604         * graphite-interchange.c: Same.
7605         * graphite-poly.c: Same.
7606         * graphite-ppl.c: Same.
7607         * graphite-scop-detection.c: Same.
7608         * graphite-sese-to-poly.c:
7609         Removed cloog.h.
7610         Removed graphite-clast-to-gimple.h.
7611         (check_poly_representation): Removed (unused).
7612         * graphite-sese-to-poly.h
7613         (check_poly_representation): Removed (unused).
7614
7615 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7616
7617         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
7618         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
7619         (graphite-cloog-util.o): New.
7620         (graphite-ppl.o): Added graphite-cloog-util.h.
7621         * graphite-clast-to-gimple.c:
7622         Added graphite-cloog-util.h to include statements.
7623         * graphite-cloog-util.c: New.
7624         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
7625         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
7626         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7627         (new_C_Polyhedron_from_Cloog_Matrix): Same.
7628         (insert_constraint_into_matrix): Same.
7629         (ppl_Constrain_System_number_of_constraints): Same.
7630         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
7631         (oppose_constraint): Same.
7632         (cloog_matrix_to_ppl_constraint): Same.
7633         (new_Constraint_System_from_Cloog_Matrix): Same.
7634         * graphite-cloog-util.h: New.
7635         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
7636         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
7637         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7638         (new_C_Polyhedron_from_Cloog_Matrix): Same.
7639         (insert_constraint_into_matrix): Same.
7640         * graphite-ppl.c:
7641         Added graphite-cloog-util.h to include statements.
7642         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
7643         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
7644         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7645         (new_C_Polyhedron_from_Cloog_Matrix): Same.
7646         (insert_constraint_into_matrix): Same.
7647         (ppl_Constrain_System_number_of_constraints): Same.
7648         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
7649         (oppose_constraint): Same.
7650         (cloog_matrix_to_ppl_constraint): Same.
7651         (new_Constraint_System_from_Cloog_Matrix): Same.
7652         * graphite-ppl.h:
7653         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
7654         graphite-cloog-util.h.
7655         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
7656         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7657         (new_C_Polyhedron_from_Cloog_Matrix): Same.
7658         (insert_constraint_into_matrix): Same.
7659
7660 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7661
7662         * graphite-clast-to-gimple.c
7663         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
7664         (precision_for_interval): Same.
7665         (gcc_type_for_interval): Same.
7666         (compute_type_for_level): Same.
7667         * graphite-interchange.c
7668         (lst_interchange_profitable_p): Same.
7669         * graphite-poly.c
7670         (psct_scattering_dim_for_loop_depth): Same.
7671         * graphite-ppl.c
7672         (ppl_max_for_le_pointset): Same.
7673         (ppl_min_for_le_pointset): Same.
7674
7675 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7676
7677         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
7678         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
7679
7680 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7681
7682         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
7683         rewrite_close_phi_out_of_ssa.
7684
7685 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7686
7687         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
7688
7689 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7690
7691         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
7692         rename_map.
7693         * sese.c (debug_rename_map): Same.
7694         (get_rename): Same.
7695         (set_rename): Same.
7696         (rename_variables_in_stmt): Same.
7697         (expand_scalar_variables_call): Same.
7698         (expand_scalar_variables_ssa_name): Same.
7699         (expand_scalar_variables_expr): Same.
7700         (expand_scalar_variables_stmt): Same.
7701         (expand_scalar_variables): Same.
7702         (rename_variables): Same.
7703         (graphite_copy_stmts_from_block): Same.
7704         (copy_bb_and_scalar_dependences): Same.
7705
7706 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7707
7708         * graphite-clast-to-gimple.c (copy_renames): Removed.
7709         (translate_clast_for): Do not call copy_renames.
7710         (translate_clast_guard): Same.
7711
7712 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7713
7714         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
7715         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
7716         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
7717         before rewrite_cross_bb_scalar_deps.
7718
7719 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7720
7721         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
7722         Early return in when flag_associative_math is not set.
7723
7724 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7725
7726         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
7727         of SSA copies on edges except for loop->latch.
7728
7729 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7730
7731         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
7732         Split out of rewrite_reductions_out_of_ssa.
7733         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
7734         Declared.
7735         * graphite.c (graphite_transform_loops): Call it.
7736
7737 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7738
7739         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
7740
7741 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
7742
7743         * dbgcnt.def (graphite_scop): New counter.
7744         * graphite.c: Include dbgcnt.h.
7745         (graphite_transform_loops): Use new counter to limit transformations.
7746         * Makefile.in (graphite.o): Depend on DBGCNT_H.
7747
7748 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7749
7750         * passes.c (init_optimization_passes): Add pass_graphite.
7751         Schedule a pass_copy_prop before pass_graphite_transforms.
7752         * timevar.def (TV_GRAPHITE): Declared.
7753         * tree-pass.h (pass_graphite): Declared.
7754         * tree-ssa-loop.c (pass_graphite): New.
7755
7756 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7757
7758         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
7759         Remove calls to rename_nb_iterations and rename_sese_parameters.
7760         * graphite-clast-to-gimple.h (gloog): Update declaration.
7761         * graphite.c (graphite_transform_loops): Update call to gloog.
7762         * sese.c (rename_variables_in_expr): Removed.
7763         (rename_nb_iterations): Removed.
7764         (rename_sese_parameters): Removed.
7765         * sese.h (rename_nb_iterations): Removed.
7766         (rename_sese_parameters): Removed.
7767
7768 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7769
7770         * graphite-clast-to-gimple.c (gloog): Remove call to
7771         sese_adjust_liveout_phis.
7772         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
7773         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
7774         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
7775         rewrite_phi_out_of_ssa.
7776         * sese.c (get_vdef_before_sese): Removed.
7777         (sese_adjust_vphi): Removed.
7778         (sese_adjust_liveout_phis): Removed.
7779         * sese.h (sese_adjust_liveout_phis): Removed.
7780
7781 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7782
7783         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
7784         argument for the place after which to insert the out of SSA copy.
7785         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
7786         (rewrite_phi_out_of_ssa): Same.
7787         (rewrite_cross_bb_scalar_deps): Same.
7788         (insert_copyout): Removed.
7789         (insert_copyin): Removed.
7790         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
7791         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
7792         insert_copyin.
7793
7794 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7795
7796         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
7797         (rewrite_reductions_out_of_ssa): Same.
7798         (rewrite_commutative_reductions_out_of_ssa): Same.
7799         (build_poly_scop): Do not call these functions.
7800         * graphite-sese-to-poly.h (build_poly_scop): Declared.
7801         (rewrite_reductions_out_of_ssa): Declared.
7802         (rewrite_commutative_reductions_out_of_ssa): Declared.
7803         * graphite.c (graphite_transform_loops): Call on every scop
7804         rewrite_commutative_reductions_out_of_ssa before calling
7805         rewrite_reductions_out_of_ssa and build_scop_bbs.
7806
7807 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7808
7809         * graphite-dependences.c (dot_deps): Make system call to dotty run
7810         in background.
7811         (dot_deps_stmt): Same.
7812         * graphite-poly.c (dot_lst): Same.
7813
7814 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
7815
7816         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
7817         phi_arg_in_outermost_loop.
7818         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
7819         (remove_invariant_phi): Same.
7820
7821 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
7822
7823         * target.def (output_addr_const_extra): New hook.
7824         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
7825         * doc/tm.texi: Regenerate.
7826         * targhooks.c (default_asm_output_addr_const_extra): New function.
7827         * targhooks.h (default_asm_output_addr_const_extra): Declare.
7828         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
7829         target hook.
7830
7831         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7832         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
7833         * config/i386/i386.h (output_addr_const_extra): Rename to...
7834         (i386_asm_output_addr_const_extra): ...this. Make static.
7835         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7836
7837 2010-08-11  Richard Henderson  <rth@redhat.com>
7838
7839         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
7840
7841 2010-08-11  Nick Clifton  <nickc@redhat.com>
7842
7843         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
7844         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
7845         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
7846         stormy16-lib2-cmpsi.c.
7847
7848         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
7849         -O2.
7850
7851 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
7852
7853         * opts.h (struct cl_option_handler_func): Make handler take
7854         cl_decoded_option structure as parameter, not individual elements.
7855         (struct cl_option_handlers): Make callbacks take cl_decoded_option
7856         structure as parameter, not individual elements.
7857         (handle_option): Take cl_decoded_option structure as parameter,
7858         not individual elements.
7859         (handle_generated_option): Declare.
7860         * opts-common.c (handle_option): Take cl_decoded_option structure
7861         as parameter, not individual elements.  Update calls to callback
7862         and handler functions.
7863         (handle_generated_option): New.
7864         (read_cmdline_option): Update calls to callback functions and
7865         handle_option.
7866         * opts.c (common_handle_option, complain_wrong_lang,
7867         unknown_option_callback, post_handling_callback,
7868         lang_handle_option, target_handle_option): Take cl_decoded_option
7869         structure as parameter, not individual elements.
7870         (lang_handle_option, target_handle_option, common_handle_option):
7871         Assert option has at most one argument.
7872         (enable_warning_as_error): Call handle_generated_option instead of
7873         handle_option.  Do not pass -Werror argument as argument of
7874         generated option.
7875
7876 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7877
7878         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7879         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7880         (SUBWORD_BOOL_CAS): Likewise.
7881         (SUBWORD_SYNC_OP): Likewise.
7882         (SUBWORD_TEST_AND_SET): Likewise.
7883         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7884         (SUBWORD_SYNC_OP): Likewise.
7885         (OP_AND_FETCH_WORD): Likewise.
7886
7887 2010-08-10  Xinliang David Li  <davidxl@google.com>
7888
7889         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
7890         compute max/min offset in address.
7891
7892 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
7893
7894         * ira-live.c: Include sbitmap.h.
7895         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
7896         Compress live ranges even more.
7897
7898 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7899
7900         * coverage.c (ctr_labels): Delete.
7901
7902 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7903
7904         PR bootstrap/45177
7905         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
7906         test here from arm_gen_load_multiple_1.
7907         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
7908         multiple_operation_profitable_p.
7909
7910 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7911
7912         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
7913         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
7914
7915 2010-08-10  Richard Henderson  <rth@redhat.com>
7916
7917         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
7918         after saving registers.  Assert that SSE registers are only saved
7919         with a sufficiently aligned frame.
7920         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
7921         remove stack_realign_fp handling.
7922         (ix86_expand_prologue): Save int registers before stack_realign_fp,
7923         and do not mark the stack alignment as frame related.
7924         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
7925
7926         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
7927         saves when re-aligning the stack.
7928
7929 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7930
7931         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
7932         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
7933         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
7934
7935 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7936
7937         * dwarf2out.c (struct die_struct): Move die_tag to the end.
7938
7939 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
7940
7941         * config/arm/iterators.md: New file.
7942         * config/arm/arm.md: Include iterators.md.
7943         (QHSI): Move to new file.
7944         (LTUGEU, cnb, optab, ior_xor): Likewise.
7945         * config/arm/iwmmxt.md (VMMX): Move to new file.
7946         (VSHFT, MMX_char): Likewise.
7947         * config/arm/neon.md (VD): Move to new file.
7948         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
7949         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
7950         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
7951         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
7952         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
7953         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
7954         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
7955         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
7956         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
7957         (Is_d_reg, V_mode_nunits): Likewise.
7958         * config/arm/vec-common.md (VALL): Move to new file.
7959         (VALLW, VINT, VINTW): Likewise.
7960
7961 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7962
7963         PR middle-end/45182
7964         * combine.c (make_compound_operation): Don't try to convert
7965         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
7966
7967 2010-08-10  Richard Guenther  <rguenther@suse.de>
7968
7969         * tree.h (get_object_alignment): Adjust prototype.
7970         * builtins.c (get_object_alignment): Return unsigned int,
7971         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
7972         and TARGET_MEM_REF properly.
7973         (get_pointer_alignment): Adjust.
7974         * emit-rtl.c (get_mem_align_offset): Adjust comment.
7975         (set_mem_attributes_minus_bitpos): Adjust.
7976         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
7977
7978 2010-08-10  Richard Guenther  <rguenther@suse.de>
7979
7980         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
7981         (copy_prop_visit_assignment): Simplify.
7982         (copy_prop_visit_stmt): Also visit assignments from
7983         constants.
7984         (copy_prop_visit_phi_node): Use operand_equal_p.
7985
7986 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7987
7988         * ipa-split.c (find_split_points): Free stack.
7989
7990 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7991
7992         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
7993         * tree.c (tree_node_kind): Delete corresponding entries.
7994
7995 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7996
7997         * alias.c (may_alias_p): Remove unused ret.
7998
7999 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
8000
8001         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
8002         alias_sets_conflict_p.
8003         (walk_mems_1): Moved from alias.c.
8004         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
8005         in alias.c.
8006         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
8007         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
8008         * alias.c (walk_mems_2): Moved to ddg.c.
8009         (walk_mems_1): Ditto.
8010         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
8011         to ddg.c.
8012         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
8013         disambiguation.
8014         *(may_alias_p): New function to check whether two memory expression
8015         may alias or not. Currently used in buidling inter-iteration memory
8016         dependence.
8017         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
8018         (insn_alias_sets_conflict_p): Removed
8019         *rtl.h (may_alias_p): New function prototype.
8020
8021 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
8022
8023         * tree.c (nreverse): Assert that we don't have a BLOCK.
8024
8025 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
8026
8027         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
8028         * config/arm/arm.c (arm_get_pcs_model): Likewise.
8029         * config/avr/avr.c (init_cumulative_args): Likewise.
8030         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8031         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8032         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
8033         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8034         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
8035         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8036         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
8037         * dwarf2out.c (gen_subprogram_die): Likewise.
8038         * function.c (allocate_struct_function): Likewise.
8039         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
8040         (deserves_ellipsis): Delete.
8041
8042 2010-08-09  Richard Guenther  <rguenther@suse.de>
8043
8044         * tree-ssa-copy.c (cached_last_copy_of): Remove.
8045         (valueize_val): New function.
8046         (get_last_copy_of): Remove.
8047         (set_copy_of_val): Simplify.
8048         (dump_copy_of): Likewise.
8049         (copy_prop_visit_cond_stmt): Use valueize_val.
8050         (copy_prop_visit_phi_node): Properly handle unvisited names.
8051         Drop code managing copy-of chains.
8052         (init_copy_prop): Adjust.
8053         (fini_copy_prop): Likewise.
8054         (execute_copy_prop): Remove obsolete comment.
8055
8056 2010-08-09  Richard Guenther  <rguenther@suse.de>
8057
8058         PR middle-end/44632
8059         * function.c (gimplify_parameters): Do not clear addressable
8060         bit of the original parameter.
8061
8062 2010-08-09  Richard Guenther  <rguenther@suse.de>
8063
8064         PR middle-end/45212
8065         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
8066         alignment from MEM_REF offset only if we took it from the
8067         base object.
8068
8069 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
8070
8071         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
8072
8073 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8074
8075         * c-tree.h (build_arg_info): Declare.
8076         * c-decl.c (build_arg_info): Define.
8077         (get_parm_info): Call it.  Delete initialization code.
8078         * c-parser.c (c_parser_parms_declarator): Likewise.
8079         (c_parser_parms_list_declaractor): Likewise.
8080
8081 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8082
8083         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
8084         (struct c_arg_info): Change type of tags field.
8085         * c-decl.c (grokdeclarator): Update for changed type of tags field.
8086         (get_parm_info): Likewise.
8087         (store_parm_decls_newstyle): Likewise.
8088
8089 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
8090
8091         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
8092         (branch_island_list): Delete.
8093         (branch_islands): Declare.
8094         (add_compiler_branch_island): Adjust for branch_islands instead of
8095         branch_island_list.
8096         (macho_branch_islands): Likewise.
8097         (no_previous_def): Likewise.
8098         (get_prev_label): Likewise.
8099
8100 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8101
8102         PR boehm-gc/34544
8103         * gthr-posix.h (__gthread_start): Delete.
8104         (__gthread_active_init): Use pthread_default_stacksize_np instead of
8105         pthread_create to determine if hpux pthreads are active.
8106         * gthr-posix95.h (__gthread_start): Delete.
8107         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
8108
8109 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
8110
8111         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
8112         _WIN64 not expanded.
8113
8114 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
8115             H.J. Lu  <hongjiu.lu@intel.com>
8116
8117         PR target/45213
8118         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
8119         to output 32bit SFmode immediate as 8 byte sign extended value.
8120
8121 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8122
8123         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
8124         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
8125         (SUBWORD_BOOL_CAS): Likewise.
8126         (SUBWORD_SYNC_OP): Likewise.
8127         (SUBWORD_TEST_AND_SET): Likewise.
8128         (FETCH_AND_OP_WORD): Parenthesise INF_OP
8129         (SUBWORD_SYNC_OP): Likewise.
8130         (OP_AND_FETCH_WORD): Likewise.
8131
8132 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8133
8134         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
8135         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
8136         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
8137         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
8138         generic part.
8139         (cortex_a9_sched_adjust_cost): New function.
8140         (xscale_sched_adjust_cost): New function.
8141         * config/arm/arm-protos.h (struct tune_params): New field
8142         sched_adjust_cost.
8143         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
8144
8145 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
8146
8147         PR target/44942
8148         * config/sparc/sparc.c (function_arg_advance): Always take into account
8149         the padding, if any.
8150
8151 2010-08-06  Richard Guenther  <rguenther@suse.de>
8152
8153         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
8154         (dump_lattice_value): Dump it.
8155         (get_default_value): Adjust.
8156         (get_constant_value): Likewise.
8157         (set_value_varying): Likewise.
8158         (set_lattice_value): Make sure to not go up the lattice
8159         with bitwise constant values.
8160         (get_value_for_expr): Handle ADDR_EXPRs.
8161         (value_to_double_int): New function.
8162         (get_value_from_alignment): Likewise.
8163         (do_dbg_cnt): Adjust.
8164         (ccp_lattice_meet): Handle partially constant values.
8165         (bit_value_unop_1): New function.
8166         (bit_value_binop_1): Likewise.
8167         (bit_value_unop): Likewise.
8168         (bit_value_binop): Likewise.
8169         (evaluate_stmt): Track partially constant values if
8170         flag_tree_bit_ccp is set.
8171         (ccp_fold_stmt): Dump if we folded a predicate.
8172         (ccp_visit_stmt): Adjust.
8173         * common.opt (ftree-bit-ccp): New flag.
8174         * doc/invoke.texi (ftree-bit-ccp): Document.
8175         * opts.c (decode_options): Enable bit-CCP at -O1.
8176
8177 2010-08-06  Alan Modra  <amodra@gmail.com>
8178
8179         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
8180         and -mrelocatable-lib description.
8181
8182 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
8183
8184         From Martin Thuresson  <martint@google.com>
8185         * postreload.c (reload_cse_simplify_operands): Use
8186         SET_REGNO_RAW instead of SET_REGNO.
8187         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
8188         SET_REGNO.
8189         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
8190         instead of SET_REGNO.
8191         * rtl.h (SET_REGNO_RAW): New macro.
8192
8193 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
8194
8195         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
8196         computations.  Fix formatting issues.
8197         (num_sign_bit_copies1): Likewise.
8198         (canonicalize_condition): Likewise.
8199
8200 2010-08-05  Richard Henderson  <rth@redhat.com>
8201
8202         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
8203         (floor_log2): Use clz_hwi.
8204         (exact_log2): Use ctz_hwi.
8205         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
8206         * builtins.c (fold_builtin_bitop): Use them.
8207         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8208         * combine.c (get_pos_from_mask): Use ctz_hwi.
8209         * double-int.c (double_int_ctz): Likewise.
8210         * explow.c (force_reg): Likewise.
8211         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
8212
8213 2010-08-05  Richard Henderson  <rth@redhat.com>
8214
8215         PR target/45189
8216         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
8217         the alignment constant is properly sign-extended.
8218
8219 2010-08-05  Richard Guenther  <rguenther@suse.de>
8220
8221         * expr.c (store_expr): Use emit_block_move only if both
8222         source and target are MEMs.  Use store_bit_field if only
8223         the target is a MEM.
8224
8225 2010-08-05  Richard Henderson  <rth@redhat.com>
8226
8227         PR debug/45188
8228         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
8229         (INCOMING_RETURN_ADDR_RTX): Likewise.
8230         (dwarf2out_do_frame): Remove conditional compilation.
8231         (dwarf2out_frame_init): Likewise.
8232
8233 2010-08-05  Nicolas Setton  <setton@adacore.com>
8234
8235         * gcov.c (flag_display_progress): New static variable.
8236         (main): Display progress info on standard output if requested.
8237         (options): Add -d/--display-progress.
8238         (print_usage): Print them.
8239         (process_args): Handle them.
8240         * doc/gcov.texi: Document them.
8241
8242 2010-08-05  Martin Jambor  <mjambor@suse.cz>
8243
8244         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
8245         (ipcp_insert_stage): Redirect only edges not flagged with
8246         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
8247         discovered constants.
8248
8249 2010-08-05  Martin Jambor  <mjambor@suse.cz>
8250
8251         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
8252         (struct ipa_param_descriptor): New fields types and
8253         cannot_devirtualize.
8254         (ipa_param_cannot_devirtualize_p): New function.
8255         (ipa_param_types_vec_empty): Likewise.
8256         (ipa_make_edge_direct_to_target): Declare.
8257         * ipa-cp.c: Fixed first stage driver name in initial comment,
8258         described devirtualization there too.
8259         (ipcp_analyze_node): Call ipa_analyze_params_uses.
8260         (ipcp_print_all_lattices): Print devirtualization info.
8261         (ipa_set_param_cannot_devirtualize): New function.
8262         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
8263         lattice to BOTTOM.
8264         (ipcp_init_stage): Merged into...
8265         (ipcp_generate_summary): ...its caller.
8266         (ipcp_change_tops_to_bottom): Also process type lists.
8267         (ipcp_add_param_type): New function.
8268         (ipcp_copy_types): Likewise.
8269         (ipcp_propagate_types): Likewise.
8270         (ipcp_propagate_stage): Also propagate types.
8271         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
8272         Also return true if propagated types require it.
8273         (ipcp_update_callgraph): Dump redirection info.
8274         (ipcp_process_devirtualization_opportunities): New function.
8275         (ipcp_const_param_count): Include known type information.
8276         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
8277         on new node.  Fixed formatting.
8278         * ipa-prop.c (make_edge_direct_to_target): Renamed to
8279         ipa_make_edge_direct_to_target and changed all callers.  Made
8280         externally visible.
8281         (ipa_node_duplication_hook): Duplicate types vector.
8282         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
8283         redirect outgoing calls for which we can't get a decl from the
8284         statement.  Check that we can get a decl from the call statement.
8285         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8286         ipa_analyze_params_uses only when ipa-cp is disabled.
8287         * tree-inline.c (get_indirect_callee_fndecl): Removed.
8288         (expand_call_inline): Do not call get_indirect_callee_fndecl.
8289         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
8290         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
8291
8292 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
8293
8294         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
8295         temporary. Emit move from temporary to accum, so REG_EQUAL note will
8296         be attached to this insn in correct mode.
8297
8298 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
8299
8300         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
8301         using REGNO of base_reg directly.
8302
8303 2010-08-05  Jie Zhang  <jie@codesourcery.com>
8304
8305         PR tree-optimization/45144
8306         * tree-sra.c (type_consists_of_records_p): Return false
8307         if the record contains bit-field.
8308
8309 2010-08-04  Richard Henderson  <rth@redhat.com>
8310
8311         * config/i386/i386.c (struct ix86_frame): Remove padding and
8312         to_allocate members.
8313         (ix86_compute_frame_layout): Don't store them.
8314         (ix86_can_use_return_insn_p): Use a more direct and more obviously
8315         correct condition for the position of the stack pointer.
8316         (ix86_expand_prologue): Compute remaining stack allocation based
8317         on the ultimate stack pointer offset.
8318         (ix86_expand_epilogue): Use more obvious expressions testing for
8319         the stack pointer already pointing to the saved registers.
8320
8321         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
8322         duplication deconstructing the frame pointer.  Simplify
8323         deallocation of the local stack frame.
8324
8325         * reg-notes.def (CFA_EXPRESSION): New.
8326         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8327         (dwarf2out_frame_debug_cfa_expression): New.
8328         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
8329
8330         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
8331         * config/i386/i386.c (ix86_expand_prologue): Set it.
8332         (ix86_expand_epilogue): Clear it.
8333         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
8334         context, add REG_CFA_EXPRESSION notes.
8335
8336         * config/i386/i386.h (struct machine_frame_state): Rename from
8337         machine_cfa_state.  Add members tracking SP and FP regardless
8338         of the current CFA register.
8339         (ix86_cfa_state): Remove.
8340         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
8341         and sse_reg_save_offset members.
8342         (ix86_compute_frame_layout): Set them.
8343         (gen_push): Increment sp_offset too.
8344         (choose_baseaddr_len, choose_baseaddr): New.
8345         (ix86_emit_save_reg_using_mov): New.
8346         (ix86_emit_save_regs_using_mov): Use it.
8347         (ix86_emit_save_sse_regs_using_mov): Likewise.
8348         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
8349         compare vs the saved red_zone_offset.
8350         (pro_epilogue_adjust_stack): Adjust sp_offset.
8351         (ix86_adjust_stack_and_probe): Likewise.
8352         (ix86_expand_prologue): Set up, use, and validate the new
8353         frame_state_info members.  Use gen_frame_mem.
8354         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
8355         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
8356         new frame_state_info members.
8357         (ix86_emit_leave): Likewise.
8358         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
8359         out-of-range stack pointer offsets here.
8360         (ix86_emit_restore_sse_regs_using_mov): Likewise.
8361         (ix86_expand_epilogue): Use and validate the new frame_state_info
8362         members.  Break up and simplify the logic selecting the
8363         restore_regs_via_mov code path.  Ensure that there will be no
8364         out-of-range stack pointer offsets.
8365
8366         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
8367
8368         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
8369         argument name to reflect the expected tree; fix indentation.
8370         (ix86_asm_output_function_label): Output the entire 32-bit
8371         ms_hook here as bytes ...
8372         (ix86_expand_prologue): ... not here as insns.  Attach the
8373         unwind info for the ms_hook to a blockage insn.
8374         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
8375         (ix86_ms_bitfield_layout_p): Fix indentation.
8376         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
8377
8378         * config/i386/i386.c (ix86_using_red_zone): New.
8379         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
8380         ix86_expand_prologue, ix86_force_to_memory): Use it.
8381
8382         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
8383         saving the int registers.
8384
8385         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
8386         and DWARF2_UNWIND_INFO conditional compilation.
8387
8388 2010-08-04  Richard Henderson  <rth@redhat.com>
8389
8390         PR debug/45171
8391         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
8392         an is_naming_typedef_decl.
8393
8394 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
8395
8396         PR rtl-optimization/45162
8397         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
8398         * dce.c (word_dce_process_block): Likewise.
8399
8400 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
8401
8402         PR target/44583
8403         * config/ia64/constraints.md (Z): New.
8404         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
8405         (xfreg_or_signed_fp01_operand): New.
8406         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
8407         with fr_reg_or_signed_fp01_operand and constraint G with Z.
8408         (subsf3): Ditto.
8409         (*maddsf4): Ditto.
8410         (*msubsf4): Ditto.
8411         (adddf3): Ditto.
8412         (adddf3_trunc): Ditto.
8413         (subdf3): Ditto.
8414         (*subdf3_trunc): Ditto.
8415         (*madddf4): Ditto.
8416         (*madddf4_trunc): Ditto.
8417         (*msubdf4): Ditto.
8418         (*msubdf4_trunc): Ditto.
8419         (addxf3): Replace xfreg_or_fp01_operand with
8420         xfreg_or_signed_fp01_operand and constraint G with Z.
8421         (*addxf3_truncsf): Ditto.
8422         (*addxf3_truncdf): Ditto.
8423         (subxf3): Ditto.
8424         (*subxf3_truncsf): Ditto.
8425         (*subxf3_truncdf): Ditto.
8426         (*maddxf4): Ditto.
8427         (*maddxf4_truncsf): Ditto.
8428         (*maddxf4_truncdf): Ditto.
8429         (*msubxf4): Ditto.
8430         (*msubxf4_truncsf): Ditto.
8431         (*msubxf4_truncdf): Ditto.
8432
8433 2010-08-04  Richard Guenther  <rguenther@suse.de>
8434
8435         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
8436         if either alias-set is zero.
8437
8438 2010-08-04  Richard Guenther  <rguenther@suse.de>
8439
8440         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
8441         * tree-ssa-ccp.c: ... here.
8442         * tree-ssa-copy.c: ... and here.
8443         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
8444         value_range_t): Move ...
8445         * tree-vrp.c: ... here.
8446         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
8447         (substitute_and_fold): Adjust prototype.
8448         * tree-ssa-propagate.c (replace_uses_in): Adjust.
8449         (replace_phi_args_in): Likewise.
8450         (substitute_and_fold): Take callback to query lattice instead
8451         of pointer to lattice.  Replace SSA name defs with lattice
8452         values first.
8453         * tree-ssa-ccp.c (ccp_finalize): Adjust.
8454         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
8455         (get_value): New function.
8456         (fini_copy_prop): Adjust.
8457         * tree-vrp.c (vrp_finalize): Adjust.
8458
8459 2010-08-04  Richard Guenther  <rguenther@suse.de>
8460
8461         PR middle-end/45176
8462         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
8463         points-to set for original MEM_REF.
8464
8465 2010-08-04  Richard Guenther  <rguenther@suse.de>
8466
8467         * tree-ssa-ccp.c (get_constant_value): New function.
8468         (get_rhs_assign_op_for_ccp): Remove.
8469         (valueize_op): New function.
8470         (ccp_fold): Use get_constant_value and valueize_op.
8471         (fold_const_aggregate_ref): Likewise.
8472         (ccp_fold_stmt): Likewise.
8473         (visit_assignment): Simplify.
8474
8475 2010-08-04  Richard Guenther  <rguenther@suse.de>
8476
8477         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
8478         * double-int.h (double_int_ctz): Declare.
8479         * double-int.c (double_int_ctz): New function.
8480
8481 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
8482
8483         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
8484         Define.
8485         picochip_expand_movmemhi : Expand movmem pattern.
8486         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
8487         Declare.
8488         * config/picochip/picochip.md (movmemhi) : New pattern.
8489
8490 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
8491
8492         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
8493
8494 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
8495
8496         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
8497         NEG as operand of a MULT by merging it with the other operand.
8498         * combine.c (make_compound_operation): Use trunc_int_for_mode when
8499         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
8500         MULT.
8501         * config/arm/constraints.md (M): Examine only 32 bits of a
8502         HOST_WIDE_INT.
8503         * config/arm/predicates.md (power_of_two_operand): Likewise.
8504
8505 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8506
8507         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
8508         non-NOTE insns.
8509
8510 2010-08-03  Jan Hubicka  <jh@suse.cz>
8511
8512         * ipa-split.c (struct split_point): Add split_part_set_retval.
8513         (find_retval): Forward declare.
8514         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
8515         (consider_split): Compute current->split_part_set_retval.
8516         (visit_bb): Do not look into return value.
8517         (split_function): Handle !split_part_set_retval
8518
8519 2010-08-03  Martin Jambor  <mjambor@suse.cz>
8520
8521         * tree-sra.c (completely_scalarize_record): New parameter REF, create
8522         its own access->expr intead of using build_ref_for_offset.
8523
8524 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
8525
8526         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
8527         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
8528         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
8529         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
8530         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
8531         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
8532         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
8533         DEFAULT_SWITCH_TAKES_ARG.
8534         * config/rx/rx.opt (-patch=): Remove option.
8535         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
8536         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
8537         * doc/invoke.texi (RX Options): Remove -patch=.
8538         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
8539         (option_map): Remove --profile-blocks, --quiet and --silent.
8540
8541 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
8542
8543         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
8544         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
8545         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
8546         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
8547         Update calls to ix86_expand_compare and ix86_expand_branch.
8548         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
8549         ix86_expand_compare.
8550         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
8551         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
8552         Make static.
8553         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
8554         and ix86_compare_op1.  Update calls to ix86_expand_compare.
8555         (ix86_expand_int_movcc): Ditto.
8556         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
8557         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
8558         (ix86_expand_setcc): Ditto.
8559         (ix86_expand_compare): Remove prototype.
8560         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
8561         ix86_compare_op0 and ix86_compare_op1.  Update calls
8562         to ix86_expand_branch to directly pass operands[1] and operands[2].
8563         (cbranchxf4): Ditto.
8564         (cbranch<MODEF:mode>4): Ditto.
8565         (cbranchcc4): Ditto.
8566         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
8567         Update calls to ix86_expand_setcc to directly pass operands[2] and
8568         operands[3].
8569         (cstorexf4): Ditto.
8570         (cstore<MODEF:mode>4): Ditto.
8571         (cstorecc4): Ditto.
8572
8573 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
8574
8575         PR target/45063
8576         * caller-save.c (save_call_clobbered_regs): Remove regs from
8577         hard_regs_saved when they are set.
8578
8579 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
8580
8581         PR target/41089
8582         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
8583         as volatile.
8584
8585 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
8586
8587         * common.opt (ftree-loop-distribute-patterns): New.
8588         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
8589         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
8590         at -O3.
8591         * tree-data-ref.c (stores_zero_from_loop): New.
8592         * tree-data-ref.h (stores_zero_from_loop): Declared.
8593         * tree-loop-distribution.c (tree_loop_distribution): Call
8594         stores_zero_from_loop.
8595         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
8596
8597 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
8598
8599         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
8600         into account.
8601
8602         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
8603         * config/arm/arm.c (thumb1_code): New variable.
8604         (arm_override_options): Set it.
8605         (thumb1_final_prescan_insn): Keep track of condition code status.
8606         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
8607         jumps that depend on them.
8608         * config/arm/arm.h (thumb1_code): Declare variable.
8609         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
8610         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
8611         thumb1_cc_mode.
8612         (CC_STATUS_INIT): New macro.
8613         * config/arm/constraints.md (Pd): New constraint.
8614         * config/arm/predicates.md (noov_comparison_operator): New predicate.
8615         * config/arm/arm.md (is_thumb1): New define_attr.
8616         (conds): Set default to "clob" when generating Thumb1 code.
8617         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
8618         code are set.  Use two-operand assembly syntax.
8619         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
8620         pattern.
8621         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
8622         codes are set.  Use two-operand assembly syntax.
8623         (zero_extendhisi splitter): Remove constraints.
8624         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
8625         thumb1_movsf_insn): Set conds attribute as appropriate.
8626         (cbranchsi4_insn): Use condition code status from struct
8627         machine_function to determine whether the comparison can be eliminated.
8628         Discourage the alternative using high registers.
8629         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
8630         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
8631         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
8632         subsi3_cbranch): Delete.
8633         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
8634         one subtract and one cbranch insn.
8635
8636         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
8637         thumb2_movdf_soft_insn): Delete patterns.
8638         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
8639         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
8640         (pool_range, neg_pool_range): Use them to define defaults.
8641         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
8642         and allow for TARGET_32BIT.
8643
8644         PR target/40457
8645         * config/arm/arm.h (arm_regs_in_sequence): Declare.
8646         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
8647         load_multiple_sequence, store_multiple_sequence): Delete
8648         declarations.
8649         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
8650         declarations.
8651         * config/arm/ldmstm.md: New file.
8652         * config/arm/arm.c (arm_regs_in_sequence): New array.
8653         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
8654         CHECK_REGS.  All callers changed.
8655         If SAVED_ORDER is nonnull, copy the computed order into it.
8656         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
8657         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
8658         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
8659         If SAVED_ORDER is nonnull, copy the computed order into it.
8660         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
8661         like REGS.  Handle Thumb mode.
8662         (arm_gen_load_multiple_1): New function, broken out of
8663         arm_gen_load_multiple.
8664         (arm_gen_store_multiple_1): New function, broken out of
8665         arm_gen_store_multiple.
8666         (arm_gen_multiple_op): New function, with code from
8667         arm_gen_load_multiple and arm_gen_store_multiple moved here.
8668         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
8669         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
8670         changed.
8671         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
8672         * config/arm/predicates.md (commutative_binary_operator): New.
8673         (load_multiple_operation, store_multiple_operation): Handle more
8674         variants of these patterns with different starting offsets.  Handle
8675         Thumb-1.
8676         * config/arm/arm.md: Include "ldmstm.md".
8677         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
8678         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
8679         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
8680         peepholes): Delete.
8681         * config/arm/ldmstm.md: New file.
8682         * config/arm/arm-ldmstm.ml: New file.
8683
8684         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
8685         if statement which adds extra costs to frame-related expressions.
8686
8687 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8688
8689         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
8690
8691 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
8692
8693         PR target/45142
8694         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
8695         alternative 2.
8696         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
8697         split V4SI operands.
8698
8699 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
8700
8701         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8702         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
8703         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
8704         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8705
8706 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
8707
8708         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
8709         LOCAL_INCLUDE_DIR.
8710
8711 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
8712
8713         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
8714         used in the call to optab_for_tree_code.  Fix the second
8715         is_widening_mult_p call.  Check that both unwidened operands
8716         have the same sign.
8717
8718 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
8719
8720         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
8721
8722 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
8723
8724         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8725
8726 2010-07-30  DJ Delorie  <dj@redhat.com>
8727
8728         * config/rx/predicates.md (rx_constshift_operand): New.
8729         * config/rx/rx.md (zs_cond): New.
8730         (cbranchsi4): Remove mode.
8731         (*cbranchsi4_<code>): Likewise.
8732         (*tstbranchsi4_<code>): New.
8733         (*tstbranchsi4r_<code>): New.
8734         (*tstbranchsi4m_eq): New.
8735         (*tstbranchsi4m_ne): New.
8736         (cbranchsf4): Remove mode.
8737         (*cbranchsf4_<code>): Likewise.
8738
8739 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
8740
8741         * rtlanal.c (simplify_subreg_regno): Don't treat
8742         HARD_FRAME_POINTER_REGNUM specially.
8743
8744 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
8745
8746         * common.opt (-G): Don't define option here.
8747         * config/g.opt: New.
8748         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
8749         rs6000/powerpc and score targets.
8750         * opts.c (common_handle_option): Don't handle -G here.
8751         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
8752         * config/frv/frv.c (frv_handle_option): Handle -G.
8753         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
8754         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
8755         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
8756         * config/mips/mips.c (mips_handle_option): Handle -G.
8757         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
8758         * config/score/score.c (score_handle_option): Handle -G.
8759
8760 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
8761
8762         * config/mmix/mmix.c: Include basic-block.h.
8763
8764 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
8765
8766         PR debug/45055
8767         PR rtl-optimization/45137
8768         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
8769         prototypes.
8770         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
8771         New functions.
8772         * combine.c (next_nonnote_nondebug_insn): Removed.
8773         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
8774         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
8775         * sched-deps.c (sched_analyze_insn): Likewise.
8776         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
8777         * rtlanal.c (canonicalize_condition): Likewise.
8778         * postreload.c (reload_combine_recognize_pattern): Likewise.
8779         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
8780
8781 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
8782
8783         * config/i386/i386.md (int_cond): Remove code iterator.
8784         (fp_cond): Ditto.
8785         (cbranch<mode>4): Use ordered_comparison_operator predicate
8786         for operator0.
8787         (cstore<mode>4): Ditto for operator1.
8788         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
8789         (add<mode>cc): ditto.
8790
8791 2010-07-30  Richard Guenther  <rguenther@suse.de>
8792
8793         PR middle-end/45141
8794         * expr.c (expand_expr_real_1): Check for not handled base address.
8795
8796 2010-07-30  Richard Guenther  <rguenther@suse.de>
8797
8798         * ipa-prop.c (ipa_modify_formal_parameters): Use
8799         build_distinct_type_copy.
8800
8801 2010-07-30  Anthony Green  <green@moxielogic.com>
8802
8803         * config/moxie/rtems.h: New file.
8804         * config.gcc: Add moxie-rtems support.
8805
8806 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8807
8808         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
8809         df flags as in run_fast_df_dce.
8810
8811 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
8812
8813         Revert:
8814         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8815
8816         * rtl.def (NOTE): Swap operands 4 and 5.
8817         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
8818         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
8819         Adjust accordingly.
8820         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
8821
8822 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
8823
8824         PR debug/45110
8825         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
8826         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
8827         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
8828         formal parameters.
8829         (gen_decl_die): Change return type to dw_die_ref, return what
8830         gen_formal_parameter_die returned.
8831
8832 2010-07-29  Martin Jambor  <mjambor@suse.cz>
8833
8834         * dbgcnt.def (eipa_sra): New counter.
8835         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
8836
8837 2010-07-29  Xinliang David Li  <davidxl@google.com>
8838
8839         PR bootstrap/45119
8840         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
8841         in revision 162652.
8842
8843 2010-07-29  Richard Guenther  <rguenther@suse.de>
8844
8845         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
8846         (TV_TREE_STORE_CCP): Likewise.
8847         (TV_TREE_REDPHI): Likewise.
8848
8849 2010-07-29  Richard Guenther  <rguenther@suse.de>
8850
8851         * double-int.h (double_int_and_not): New function.
8852         * combine.c (try_combine): Use it.
8853         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
8854
8855 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8856
8857         PR rtl-optimization/42575
8858         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
8859         Argument AU removed.  All callers changed.  Ignore artificial refs.
8860         Use return value of df_word_lr_simulate_defs to decide whether an insn
8861         is necessary.
8862         (fast_dce): Rename arg to WORD_LEVEL.
8863         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
8864         static.
8865         (pass_fast_rtl_byte_dce): Delete.
8866         * dce.h (run_word_dce): Declare.
8867         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
8868         All callers changed.  Simplify code to only deal with two-word regs.
8869         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
8870         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
8871         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
8872         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
8873         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
8874         (df_word_lr_mark_ref): Declare.
8875         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
8876         df_word_lr_simulate_uses): Declare or rename from byte variants.
8877         (df_byte_lr_simulate_artificial_refs_at_top,
8878         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8879         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
8880         declarations.
8881         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
8882         (enum df_mm): Delete.
8883         * df-byte-scan.c: Delete file.
8884         * df-problems.c (df_word_lr_problem_data): Renamed from
8885         df_byte_lr_problem_data, all members deleted except for
8886         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
8887         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
8888         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8889         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
8890         df_byte_lr_confluence_0): Delete functions.
8891         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
8892         callers changed.
8893         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
8894         Don't initialize members that were deleted, don't try to discover data
8895         about registers.  Ignore hard regs.
8896         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
8897         (df_word_lr_mark_ref): New function.
8898         (df_word_lr_bb_local_compute): Renamed from
8899         df_byte_bb_lr_local_compute; all callers changed.  Use
8900         df_word_lr_mark_ref.  Assert that artificial refs don't include
8901         pseudos.  Ignore hard registers.
8902         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
8903         Assert that exit block uses don't contain pseudos.
8904         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
8905         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
8906         callers changed.  Ignore hard regs.
8907         (df_word_lr_transfer_function): Renamed from
8908         df_byte_lr_transfer_function; all callers changed.
8909         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
8910         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
8911         changed.
8912         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
8913         callers changed.
8914         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
8915         confluence operator 0 set to NULL.
8916         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
8917         callers changed.
8918         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
8919         Return bool, true if bitmap changed or insn otherwise necessary.
8920         All callers changed.  Simplify using df_word_lr_mark_ref.
8921         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
8922         all callers changed.  Simplify using df_word_lr_mark_ref.
8923         * lower-subreg.c: Include "dce.h"
8924         (decompose_multiword_subregs): Call run_word_dce if df available.
8925         * Makefile.in (lower-subreg.o): Adjust dependencies.
8926         (df-byte-scan.o): Delete.
8927         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
8928
8929 2010-07-29  Richard Guenther  <rguenther@suse.de>
8930
8931         * tree.c (build_vector): Assert that the vector constant
8932         has enough elements.
8933         (build_vector_from_ctor): Pad with trailing zeros.
8934
8935 2010-07-29  Richard Guenther  <rguenther@suse.de>
8936
8937         PR tree-optimization/45120
8938         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8939         Handle offset in DEREFs properly.
8940         (get_constraint_for_1): Handle MEM_REF offset properly.
8941
8942 2010-07-29  Richard Guenther  <rguenther@suse.de>
8943
8944         PR middle-end/45034
8945         * convert.c (convert_to_integer): Always use an unsigned
8946         type for narrowed negate and bitwise not.
8947
8948 2010-07-29  Ira Rosen  <irar@il.ibm.com>
8949
8950         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
8951         to outer loop when creating reduction epilogue for double reduction,
8952         and switch back to the inner loop when updating the phi nodes.
8953         Update uses of outer loop exit phi nodes in double reduction (instead
8954         of uses of reduction).
8955
8956 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
8957
8958         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
8959         popcount on power7 and parity on power6 systems.
8960         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
8961         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
8962         instructions.
8963
8964         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
8965         (UNSPEC_PARITY): Ditto.
8966         (SFDF): New iterator for SF/DF.
8967         (rreg2): New mode attribute for floating register constraint.
8968         (TARGET_FLOAT): New mode attribute for whether single/double float
8969         is supported.
8970         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
8971         pattern.
8972         (parity<mode>2_cmpb): New insn for parity on power6 and newer
8973         machines.
8974         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
8975         pattern.  Add support for fcpsgn instruction added in power6.
8976         (copysignsf3): Delete.
8977         (copysigndf3): Delete.
8978         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
8979         instead of if_then_else in RTL to avoid problems with -0.
8980
8981         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
8982         of if_then_else to mirror scalar code.
8983         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
8984         rs6000.md.
8985
8986         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
8987         instead of if_then_else.
8988
8989 2010-07-28  Xinliang David Li  <davidxl@google.com>
8990
8991         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
8992         (dump_cand): Dump var_before/after.
8993         (htab_inv_expr_eq): New function.
8994         (htab_inv_expr_hash): New function.
8995         (tree_ssa_iv_optimize_init): Support pseudo invariants.
8996         (add_candidate_1): consider base type precision.
8997         (set_use_iv_cost): New parameter.
8998         (adjust_setup_cost): Use profile information.
8999         (get_address_cost): Do not hard code width in computing address
9000         offset limits.
9001         (compare_aff_trees): New function.
9002         (get_loop_invariant_expr_id): New function.
9003         (get_computation_cost_at): New parameter and use profile information.
9004         (get_computation_cost): New parameter.
9005         (determine_use_iv_cost_generic): Pass new parameter.
9006         (determine_use_iv_cost_address): Ditto.
9007         (determine_use_iv_cost_condition): Ditto.
9008         (autoinc_possible_for_pair): Ditto.
9009         (determine_use_iv_costs): More dumps.
9010         (iv_ca_get_num_inv_exprs): New function.
9011         (iv_ca_recount_cost): Consider loop invariants in register pressure
9012         cost.
9013         (iv_ca_add_use): New parameter.
9014         (iv_ca_dump): Better dumping.
9015         (iv_ca_extend): New parameter.
9016         (try_add_cand_for): Attempt to get better partial solution.
9017         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
9018         (create_new-ivs): More dumps.
9019         (rewrite_use_compare): Ditto.
9020         (free_loop_data): More cleanup.
9021         (treee_ssa_iv_optimize_finalize): Ditto.
9022
9023 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
9024
9025         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
9026         * config/i386/i386.c (ix86_profile_before_prologue): New.
9027         (override_options): Add special handling for -mfentry.
9028         (ix86_function_regparm): Likewise.
9029         (ix86_function_sseregparm): Likewise.
9030         (ix86_frame_pointer_required): Likewise.
9031         (ix86_expand_prologue): Check for ms_hook_prologue.
9032         (x86_function_profiler): Adjust mcount output.
9033         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
9034         * config/i386/i386.opt (mfentry): New.
9035         * doc/invoke.texi (mfentry): Add documentation.
9036         * doc/tm.texi: Regenerated..
9037         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
9038         * final.c (final_start_function): Replace macro
9039         PROFILE_BEFORE_PROLOGUE by target hook.
9040         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9041         * target.def (profile_before_prologue): New hook.
9042         * targhooks.c (default_profile_before_prologue): New.
9043         * targhooks.h (default_profile_before_prologue): New.
9044
9045 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
9046
9047         PR debug/45105
9048         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
9049
9050         PR debug/45103
9051         * dwarf2out.c (dwarf2out_var_location): Always consider
9052         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
9053
9054 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
9055
9056         PR rtl-optimization/45107
9057         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
9058
9059 2010-07-28  Richard Guenther  <rguenther@suse.de>
9060
9061         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
9062         (set_lattice_value): Do not query an old default value.
9063         (get_value_for_expr): New function.  Properly canonicalize
9064         float values.
9065         (ccp_visit_phi_node): Use it.
9066
9067 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
9068
9069         * config/arm/arm.c (arm_pcs_default): Remove static.
9070         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
9071         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
9072         (arm_pcs_default): Declare.
9073
9074 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
9075
9076         * config/rs6000/rs6000.c (rs6000_override_options):
9077         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
9078         ... to darwin_rs6000_override_options.
9079         (rs6000_return_in_memory): Update preceding comment for darwin
9080         64 bit ABI.  Use TARGET_MACHO inline.
9081         (rs6000_darwin64_struct_check_p): New.
9082         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
9083         (function_arg): Likewise.
9084         (rs6000_arg_partial_bytes): Likewise.
9085         (rs6000_function_value): Likewise.
9086
9087 2010-07-28  Andi Kleen  <ak@linux.intel.com>
9088
9089         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
9090
9091 2010-07-28  Richard Guenther  <rguenther@suse.de>
9092
9093         PR middle-end/44903
9094         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
9095         targets try harder to not generate unaligned accesses.
9096
9097 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
9098
9099         PR rtl-optimization/45101
9100         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
9101         for gcse-las.
9102
9103 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
9104
9105         PR tree-optimization/44885
9106         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
9107         with non-aliased component.
9108
9109 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
9110
9111         * config/darwin-driver.c (SWITCH_TAKES_ARG,
9112         WORD_SWITCH_TAKES_ARG): Remove.
9113         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
9114         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
9115         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
9116         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
9117         definitions from gcc.c.
9118         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
9119         defaults.h.
9120         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
9121         Move to defaults.h.
9122         * opts-common.c: Include tm.h.
9123         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
9124         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
9125         Handle more than one argument.  Set canonical_option_num_elements.
9126         (decode_cmdline_options_to_array): Set
9127         canonical_option_num_elements and trailing elements of
9128         canonical_option.
9129         * opts.h (struct cl_decoded_option): Allow four elements in
9130         canonical_option.  Add field canonical_option_num_elements.
9131         * Makefile.in (opts-common.o): Update dependencies.
9132
9133 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
9134
9135         PR middle-end/44790
9136         PR middle-end/44993
9137         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
9138         sure the base has address_mode before adding the offset.
9139
9140 2010-07-27  Xinliang David Li  <davidxl@google.com>
9141
9142         * tree-flow.h (create_mem_ref): Add one new parameter.
9143         * tree-ssa-address.c (create_mem_ref): New parameter.
9144         (addr_to_parts): Ditto.
9145         (move_variant_to_index): New function.
9146         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
9147
9148 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
9149
9150         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
9151         4 and 5.
9152         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
9153         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
9154         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
9155         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
9156         CODE_LABELs and NOTEs.
9157         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
9158         * combine.c (try_combine): Likewise.
9159         * ira.c (setup_prohibited_mode_move_regs): Likewise.
9160         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
9161
9162 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9163
9164         * coretypes.h (struct cl_option_handlers): Declare.
9165         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
9166         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
9167         * langhooks-def.h (lhd_handle_option): Declare.
9168         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
9169         * langhooks.c (lhd_handle_option): New.
9170         * langhooks.h (struct lang_hooks): Update prototype and return
9171         value type of handle_option hook.
9172         * optc-gen.awk: Generate target_flags_explicit definition for the
9173         driver.
9174         * opts-common.c: Include diagnostic.h.
9175         (handle_option): Move from opts.c.  Update prototype and return
9176         value type.  Use handlers structure.
9177         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
9178         handlers structure.
9179         (set_option): Move from opts.c.
9180         * opts.c (common_handle_option): Update prototype and return value
9181         type.  Update calls to handle_option and enable_warning_as_error.
9182         (unknown_option_callback, post_handling_callback,
9183         lang_handle_option, target_handle_option): New.
9184         (handle_option, read_cmdline_option): Move to opts-common.c.
9185         (read_cmdline_options): Update prototype.  Update call to
9186         read_cmdline_option.
9187         (decode_options): Initialize and use handlers structure.
9188         (set_option): Move to opts-common.c.
9189         (enable_warning_as_error): Update prototype.  Update call to
9190         handle_option.
9191         * opts.h (struct cl_option_handler_func, struct
9192         cl_option_handlers): New.
9193         (handle_option, enable_warning_as_error): Update prototypes.
9194         (read_cmdline_option): Declare.
9195         * Makefile.in (opts-common.o): Update dependencies.
9196
9197 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9198
9199         * config/arm/arm.c (params.h): Include.
9200         (arm_override_options): Tune gcse-unrestricted-cost.
9201         * config/arm/t-arm (arm.o): Define dependencies.
9202
9203 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9204
9205         PR target/42495
9206         PR middle-end/42574
9207         * basic-block.h (get_dominated_to_depth): Declare.
9208         * dominance.c (get_dominated_to_depth): New function, use
9209         get_all_dominated_blocks as a base.
9210         (get_all_dominated_blocks): Use get_dominated_to_depth.
9211
9212         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
9213         (hoist_exprs): Remove.
9214         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
9215         (compute_code_hoist_vbeinout): Add debug print outs.
9216         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
9217
9218         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
9219         quadratic behavior.
9220         * params.h (MAX_HOIST_DEPTH): New macro.
9221         * doc/invoke.texi (max-hoist-depth): Document.
9222
9223 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9224
9225         PR rtl-optimization/40956
9226         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
9227         constants.
9228
9229 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9230
9231         PR target/42495
9232         PR middle-end/42574
9233         * config/arm/arm.c (legitimize_pic_address): Use
9234         gen_calculate_pic_address pattern to emit calculation of PIC address.
9235         (will_be_in_index_register): New function.
9236         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
9237         (thumb1_legitimate_address_p): Use it provided !strict_p.
9238         * config/arm/arm.md (calculate_pic_address): New expand and split.
9239
9240 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9241
9242         PR target/42495
9243         PR middle-end/42574
9244         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
9245         * config/arm/arm.md (define_split "J", define_split "K"): Make
9246         IRA/reload friendly.
9247
9248 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9249
9250         * gcse.c (insert_insn_end_basic_block): Update signature, remove
9251         unused checks.
9252         (pre_edge_insert, hoist_code): Update.
9253
9254 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9255
9256         PR target/42495
9257         PR middle-end/42574
9258         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
9259
9260 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9261
9262         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
9263
9264 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9265
9266         PR rtl-optimization/40956
9267         PR target/42495
9268         PR middle-end/42574
9269         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
9270         for hoisting.
9271         (hoist_code): Count occurences in current block too.
9272
9273 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9274
9275         * gcse.c (struct expr:max_distance): New field.
9276         (doing_code_hoisting_p): New static variable.
9277         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
9278         simple expressions, don't change behavior for PRE.  Set max_distance.
9279         (insert_expr_in_table): Set new max_distance field.
9280         (hash_scan_set): Update.
9281         (hoist_expr_reaches_here_p): Stop search after max_distance
9282         instructions.
9283         (find_occr_in_bb): New static function.  Use it in ...
9284         (hoist_code): Calculate sizes of basic block before any changes are
9285         done.  Pass max_distance to hoist_expr_reaches_here_p.
9286         (one_code_hoisting_pass): Set doing_code_hoisting_p.
9287
9288         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
9289         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
9290         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
9291         macros.
9292         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
9293         Document.
9294
9295 2010-07-27  Jeff Law  <law@redhat.com>
9296             Maxim Kuvyrkov  <maxim@codesourcery.com>
9297
9298         * gcse.c (compute_transpout, transpout): Remove, move logic
9299         to prune_expressions.
9300         (compute_pre_data): Move pruning of trapping expressions ...
9301         (prune_expressions): ... here.  New static function.
9302         (compute_code_hoist_data): Use it.
9303         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
9304
9305 2010-07-27  Xinliang David Li  <davidxl@google.com>
9306
9307         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
9308         (rewrite_use_address): Adjust iv update position when needed.
9309
9310 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
9311
9312         * dbgcnt.def (hoist_insn): New debug counter.
9313         * gcse.c (hoist_code): Use it.
9314
9315 2010-07-27  Xinliang David Li  <davidxl@google.com>
9316
9317         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
9318         (niter_for_single_dom_exit): Passes additional parameter.
9319         (iv_period): Fix comments.
9320         (may_eliminate_iv): Handles multiple exit loops properly.
9321         (free_tree_niter_desc): New function.
9322         (free_loop_data): Frees up loop iteration descriptors.
9323
9324 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
9325
9326         PR target/44542
9327         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
9328         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
9329         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
9330         (expand_one_var): Don't consider DECL_ALIGN for variables for
9331         which expand_one_stack_var_at has been already called.
9332
9333         PR testsuite/44701
9334         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
9335         constraints on IA-64.
9336
9337 2010-07-27  Jie Zhang  <jie@codesourcery.com>
9338
9339         PR target/44290
9340         Revert:
9341         2010-07-23  Jie Zhang  <jie@codesourcery.com>
9342
9343         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
9344         false if ! tree_versionable_function_p.
9345
9346 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
9347
9348         * dwarf2out.c (add_data_member_location_attribute): Use
9349         add_AT_unsigned instead of add_AT_int if offset is non-negative.
9350
9351 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
9352
9353         * postreload.c (try_replace_in_use): New static function.
9354         (reload_combine_recognize_const_pattern): Use it here.  Allow
9355         substituting into a final add insn, and substituting into a memory
9356         reference in an insn that sets the reg.
9357
9358 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9359
9360         * common.opt (o): Add MissingArgError.
9361         * doc/options.texi (MissingArgError): Document.
9362         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
9363         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
9364         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
9365         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
9366         * langhooks.h (struct lang_hooks): Remove missing_argument.
9367         * optc-gen.awk: Handle MissingArgError and output new structure
9368         field initializers.
9369         * opts.c (read_cmdline_option): Use missing_argument_error field
9370         instead of missing_argument langhook.
9371         * opts.h (struct cl_option): Add missing_argument_error field.
9372         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
9373
9374 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
9375
9376         PR target/29090
9377         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
9378         Darwin64 ABI, for zero-sized objects.
9379
9380 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
9381
9382         PR target/35491
9383         PR target/29090
9384
9385         Merge from Apple local 4.2.1.
9386         2005-05-11  Stan Shebs  <shebs@apple.com>
9387         Fix 64-bit varargs for Darwin (Radar 4028089).
9388         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
9389         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
9390         Add argument, add case for 8-byte register half-filled with a float.
9391         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
9392         single-precision floats specially.
9393
9394 2010-07-27  Ira Rosen  <irar@il.ibm.com>
9395
9396         PR tree-optimization/44152
9397         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
9398         complex numbers for further check.
9399         (vect_supported_load_permutation_p): Check nodes with
9400         complex numbers.
9401
9402 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
9403
9404         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
9405         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
9406         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
9407         (LANG_HOOKS_INITIALIZER): Add new hooks.
9408         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
9409         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
9410         and complain_wrong_lang_p.  Update init_options prototype.
9411         * c-objc-common.c (c_initialize_diagnostics): First call
9412         c_common_initialize_diagnostics.
9413         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
9414         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
9415         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
9416         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
9417         (hook_uint_void_0): New.
9418         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
9419         (hook_uint_void_0): New.
9420         * opts-common.c (decode_cmdline_option,
9421         decode_cmdline_options_to_array): Also fill in canonical_option field.
9422         * opts.c (complain_wrong_lang): Use langhook to determine whether
9423         to complain instead of special-casing LTO.
9424         (decode_options): Separate lang_mask determination with
9425         option_lang_mask hook from call of init_options hook.
9426         * opts.h (struct cl_decoded_option): Add canonical_option.
9427
9428 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
9429
9430         PR tree-optimization/45083
9431         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
9432
9433 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
9434
9435         * postreload.c (reload_combine_recognize_const_pattern): Move test
9436         for limiting the insn movement to the right scope.
9437
9438         PR rtl-optimization/45051
9439         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
9440         than reg_mentioned_p.
9441
9442 2010-07-26  Richard Henderson  <rth@redhat.com>
9443
9444         PR target/44132
9445         * tree-emutls.c: New file.
9446         * Makefile.in (OBJS-common): Add it.
9447         * tree-pass.h (pass_ipa_lower_emutls): Declare.
9448         * passes.c (init_optimization_passes): Add it.
9449
9450         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
9451         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
9452         * expr.c (emutls_var_address): Delete.
9453         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
9454         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
9455         (emutls_finish): Delete.
9456         * toplev.c (compile_file): Don't call it.
9457         * tree.h (emutls_decl): Delete.
9458         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
9459         (emutls_finish, emutls_finalize_control_var): Delete.
9460         (emutls_object_type): Move to tree-emutls.c.
9461         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
9462         default_emutls_var_fields, get_emutls_object_type,
9463         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
9464         default_emutls_var_init): Likewise.
9465         (get_variable_section): Don't special case emutls.
9466         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
9467         default_elf_select_section, default_unique_section,
9468         default_encode_section_info): Likewise.
9469         * varpool.c (decide_is_variable_needed): Likewise.
9470         * gimple-iterator.c (update_call_edge_frequencies): New
9471         (gsi_insert_on_edge_immediate): Use it.
9472         (gsi_insert_seq_on_edge_immediate): Likewise.
9473         (gsi_commit_one_edge_insert): Likewise.
9474
9475         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
9476         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
9477         (x86_64_elf_unique_section): Likewise.
9478
9479 2010-07-26  Jan Hubicka  <jh@suse.cz>
9480
9481         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
9482         GTY((skip)).
9483
9484 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
9485
9486         * target.def (output_source_filename): New hook.
9487         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
9488         * doc/tm.texi: Regenerate.
9489         * toplev.c (output_file_directive) Remove function.
9490         * toplev.h (output_file_directive) Remove.
9491         * output.h (default_asm_output_source_filename,
9492         output_file_directive): Declare.
9493         * varasm.h (default_asm_output_source_filename,
9494         output_file_directive): New functions.
9495
9496         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
9497         * config/mips/mips-protos.h (mips_output_filename): Remove.
9498         * config/mips/mips.c (mips_output_filename): Make Static.
9499         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
9500
9501 2010-07-26  Richard Guenther  <rguenther@suse.de>
9502
9503         PR tree-optimization/43784
9504         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
9505         if the destination is used by the call.
9506
9507 2010-07-26  Richard Guenther  <rguenther@suse.de>
9508
9509         PR middle-end/45073
9510         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
9511         SSA updating on being in SSA form.
9512
9513 2010-07-26  Richard Guenther  <rguenther@suse.de>
9514
9515         PR middle-end/45056
9516         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
9517
9518 2010-07-26  Richard Guenther  <rguenther@suse.de>
9519
9520         PR tree-optimization/45071
9521         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
9522         adjust op->opcode.
9523
9524 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
9525
9526         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
9527         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
9528         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
9529         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
9530         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
9531         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
9532         save_r31, return_r31, save_interrupt, return_interrupt,
9533         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
9534         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
9535         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
9536         new ABI requirements.
9537         (save_r6_r9, L_callt_save_r6_r9): Remove.
9538         * config/v850/predicates.md (even_reg_operand, disp23_operand,
9539         const_float_1_operand const_float_0_operand): New Predicates.
9540         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
9541         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
9542         * config/v850/t-v850: Update multilibs for new target variants.
9543         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
9544         * config/v850/t-v850e: Likewise.
9545         * config/v850/v850.c (v850_issue_rate): New.
9546         (v850_strict_argument_naming): New.
9547         (function_arg): Modify to generate a different ABI.
9548         (print_operand): Update case 'z' to support float modes.
9549         (output_move_single): Modify to generate appropriate and better
9550         assembly.
9551         (v850_float_z_comparison_operator, v850_select_cc_mode,
9552         v850_float_nz_comparison_operator,  v850_gen_float_compare,
9553         v850_gen_compare): New functions to support comparison of float values.
9554         (ep_memory_offset): Add support for V850E2 targets.
9555         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
9556         (INTERRUPT_REGPARM_NUM): Remove.
9557         (compute_register_save_size): Add extra case to save/restore long call.
9558         (use_prolog_function): New function to support prologue.
9559         (expand_prologue): Add support for V850E2 targets and modified
9560         as per the current ABI requirements.
9561         (expand_epilogue): Likewise.
9562         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
9563         (construct_save_jarl): Likewise.
9564         (construct_dispose_instruction): Update as per the current ABI
9565         requirements.
9566         (construct_prepare_instruction): Likewise.
9567         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
9568         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
9569         (CPP_SPEC): Updated to support v850e2 targets.
9570         (STRICT_ALIGNMENT): Modified.
9571         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
9572         (FIXED_REGISTERS): Likewise.
9573         (CALL_USED_REGISTERS): Likewise.
9574         (CONDITIONAL_REGISTER_USAGE): Updated.
9575         (HARD_REGNO_MODE_OK): Updated.
9576         (reg_class): Updated to add even registers.
9577         (REG_CLASS_NAMES): Likewise.
9578         (REG_CLASS_CONTENTS): Likewise.
9579         (REGNO_REG_CLASS): Updated for CC registers.
9580         (REG_CLASS_FROM_LETTER): Added support for even registers.
9581         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
9582         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
9583         ARG_POINTER_REGNUM): Updated.
9584         (FUNCTION_ARG_ADVANCE): Define.
9585         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
9586         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
9587         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
9588         (GO_IF_LEGITIMATE_ADDRESS): Updated.
9589         (SELECT_CC_MODE): Define.
9590         (REGISTER_NAMES): Updated to add psw and fcc registers.
9591         (ADDITIONAL_REGISTER_NAMES): Updated.
9592         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
9593         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
9594         * config/v850/v850.md (define_constants): Define new constants.
9595         (type): Update store,bit1,macc,div,fpu and single attributes.
9596         (cpu): New attribute.
9597         (cc): Add set_z attribute.
9598         (unsign23byte_load, sign23byte_load, unsign23hword_load,
9599         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
9600         23word_store): New instructions for 23-bit displacement load and store.
9601         (movqi_internal, movhi_internal): Update the attributes.
9602         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
9603         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
9604         the attributes.
9605         (v850_tst1): Modified using CC_REGNUM.
9606         (tstsi): Remove.
9607         (cmpsi): Modified as define_expand from define_insn.
9608         (cmpsi_insn, cmpsf, cmpdf): New instructions.
9609         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
9610         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
9611         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
9612         one_cmplsi2): Clobber the CC_REGNUM register.
9613         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
9614         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
9615         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
9616         (setf_insn, set_z_insn, set_nz_insn): New instructions for
9617         v850e2v3 target.
9618         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
9619         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
9620         targets.
9621         (sasf_1, sasf_2): Remove.
9622         (sasf): New instruction.
9623         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
9624         targets. CC_REGNUM register is clobbered and attributes are
9625         updated.
9626         (branch_z_normal, branch_z_invert, branch_nz_normal,
9627         branch_nz_invert): New branch related instructions.
9628         (jump): Updated the attributes.
9629         (switch): Update to support new targets. CC_REGNUM register is
9630         clobbered and attributes are updated.
9631         (call_internal_short, call_internal_long, call_value_internal_short,
9632         call_value_internal_long): Updated the attributes.
9633         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
9634         clobbered and attributes are updated.
9635         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
9636         Update to support new targets. CC_REGNUM register is clobbered.
9637         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
9638         instructions.
9639         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
9640         are updated.
9641         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
9642         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
9643         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
9644         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
9645         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
9646         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
9647         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
9648         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
9649         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
9650         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
9651         point instructions defined for V850e2v3 target.
9652         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
9653         Add support for V850E2 targets and CC_REGNUM register is clobbered.
9654         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
9655         support for new targets.
9656         * config/v850/v850-modes.def: New file.
9657         * config/v850/v850.opt(mstrict-align): Remove.
9658         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
9659         mv850e2v3): New command line options for V850.
9660         * config.gcc: Update the newly added files.
9661         * doc/invoke.texi: Update the newly added command line options for
9662         V850 target.
9663
9664 2010-07-26  Richard Guenther  <rguenther@suse.de>
9665
9666         PR tree-optimization/45052
9667         * ipa-pure-const.c (check_stmt): Check volatileness.
9668
9669 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9670
9671         PR target/44707
9672         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
9673         * config/sparc/sparc.c: Include reload.h.
9674         (legitimize_tls_address): Rename into...
9675         (sparc_legitimize_tls_address): ...this.
9676         (legitimize_pic_address): Rename into...
9677         (sparc_legitimize_pic_address): ...this.
9678         (sparc_expand_move): Adjust to above renaming.
9679         (sparc_tls_referenced_p): Likewise.
9680         (sparc_legitimize_tls_address): Likewise.
9681         (sparc_legitimize_pic_address): Likewise.
9682         (sparc_legitimize_address): Likewise.
9683         (sparc_output_mi_thunk): Likewise.
9684         (sparc_legitimize_reload_address): New global function.  Recognize
9685         (lo_sum (high ...) ...) patterns generated by earlier passes.
9686         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
9687
9688 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9689
9690         PR target/44484
9691         * config/sparc/predicates.md (memory_reg_operand): Delete.
9692         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
9693         (*sync_compare_and_swap): Encode the address form in the pattern.
9694         (*sync_compare_and_swapdi_v8plus): Likewise.
9695
9696 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
9697
9698         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
9699         Streamline paragraph on compatibility with the system compiler.
9700
9701 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
9702
9703         PR middle-end/45035
9704         * alias.c (true_dependence_1): Fix thinko in merge of old
9705         true_dependence and canon_true_dependence.
9706
9707 2010-07-23  Jan Hubicka  <jh@suse.cz>
9708
9709         * lto-streamer-out.c (write_symbol): Fix visibilities of external
9710         references.
9711
9712 2010-07-23  Le-Chun Wu  <lcwu@google.com>
9713
9714         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
9715         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
9716         and an unnecessary assignment.
9717         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
9718         self-assign warning.
9719         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
9720         unnecessary self-init.
9721
9722 2010-07-23  Richard Guenther  <rguenther@suse.de>
9723
9724         PR lto/43071
9725         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
9726         for -flto and -fwhopr.
9727
9728 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
9729
9730         PR target/41943
9731         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
9732         (stmp-int-hdrs): Prefix/postfix headers by include_next.
9733         * config.gcc (user_headers_inc_next_pre): New.
9734         (user_headers_inc_next_post): Likewise.
9735         (*-w64-mingw*): Use for float.h post-fixing, and for
9736         stddef.h/stdarg.h pre-fixing by include_next.
9737         * configure.ac (user_headers_inc_next_post): New.
9738         (user_headers_inc_next_pre): New.
9739         * configure: Regenerated.
9740
9741 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9742
9743         * configure.ac: Don't disable TLS on Solaris 8/9 by default
9744         Set tga_func for Solaris 2/x86 resp. SPARC.
9745         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
9746         (LIB_THREAD_LDFLAGS_SPEC): Define.
9747         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
9748         * configure: Regenerate.
9749         * config.in: Regenerate.
9750         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
9751         -pthread, -threads, LIB_TLS_SPEC with -pthread.
9752         * doc/install.texi (Specific, *-*-solaris2*): Document use of
9753         alternate thread libraries on Solaris 8.
9754         Document TLS patch requirements.
9755         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
9756         Document tls.
9757
9758         PR target/18788
9759         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
9760         -shared.
9761
9762 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
9763
9764         * tree.h (struct tree_base): Add nameless_flag bitfield.
9765         (TYPE_NAMELESS, DECL_NAMELESS): Define.
9766         * omp-low.c (create_omp_child_function, scan_omp_parallel,
9767         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
9768         DECL_ARTIFICIAL where needed.
9769         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
9770         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
9771         has DECL_NAMELESS set.
9772
9773 2010-07-23  Martin Jambor  <mjambor@suse.cz>
9774
9775         PR tree-optimization/44915
9776         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
9777         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
9778         (analyze_function): Likewise.
9779
9780 2010-07-23  Martin Jambor  <mjambor@suse.cz>
9781
9782         PR tree-optimization/44914
9783         * tree-sra.c (sra_modify_function_body): Return true if CFG was
9784         changed, add purging dead eh edges.
9785         (ipa_sra_modify_function_body): Return true if CFG was changed,
9786         simplify purging dead eh edges.
9787         (modify_function): Return true if CFG was changed.
9788         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
9789         was changed.
9790         (ipa_early_sra): Likewise.
9791
9792 2010-07-23  Jie Zhang  <jie@codesourcery.com>
9793
9794         PR target/44290
9795         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
9796         if "naked".
9797         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
9798         false if ! tree_versionable_function_p.
9799
9800 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
9801
9802         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
9803         * ipa-pure-const.c (special_builtlin_state): Remove
9804         BUILT_IN_ARGS_INFO case.
9805         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9806         * builtins.c (expand_builtin): Likewise.
9807         (expand_builtin_args_info): Remove.
9808         * doc/tm.texi (__builtin_args_info): Remove.
9809         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
9810         * doc/tm.text.in: Likewise.
9811
9812 2010-07-23  Richard Guenther  <rguenther@suse.de>
9813
9814         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
9815         (lto_symtab_merge_decls_2): Likewise.
9816         * tree-ssa.c (useless_type_conversion_p): Likewise.
9817         * lto-streamer-in.c (input_gimple_stmt): Likewise.
9818         * gimple.c (gtc_visited2, gtc_ob2): Remove.
9819         (struct type_pair_d): Make same_p an array indexed by mode.
9820         Update comment.
9821         (lookup_type_pair): Update initialization.
9822         (struct sccs): Adjust same_p type.
9823         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
9824         Adjust.
9825         (print_gimple_types_stats): Likewise.
9826         * gimple.h (enum gtc_mode): New.
9827         (gimple_types_compatible_p): Adjust prototype.
9828
9829 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
9830
9831         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
9832         again after processing insn.
9833
9834 2010-07-23  Jie Zhang  <jie@codesourcery.com>
9835
9836         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
9837         proper words when !tree_versionable_function_p.
9838
9839 2010-07-23  Richard Guenther  <rguenther@suse.de>
9840
9841         PR tree-optimization/45037
9842         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
9843
9844 2010-07-23  Jie Zhang  <jie@codesourcery.com>
9845
9846         * doc/extend.texi: Remove IP2K from the description of naked attribute.
9847         Add MCORE instead.
9848
9849 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9850
9851         PR lto/44992
9852         * lto-opts.c (lto_write_options): Add NULL file_data argument to
9853         lto_get_section_name.
9854         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9855         * lto-streamer-out.c (produce_asm): Likewise.
9856         (copy_function): Likewise.
9857         (produce_symtab): Likewise.
9858         (produce_asm_for_decls): Likewise.
9859         * lto-streamer.c (lto_get_section_name): Add file_data argument.
9860         Rewrite to add random postfix to LTO sections.
9861         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
9862         (lto_get_section_name): Add file_data argument to prototype.
9863
9864 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9865
9866         * lto-section-in.c (lto_section_name): Synchronize names
9867         with lto_get_section_name.
9868
9869 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9870
9871         * lto-opts.c (lto_read_file_options): Check for missing section.
9872
9873 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9874
9875         * ira.c (check_allocation): Correctly handle the case where an allocno
9876         with two objects was allocated to a single reg.
9877
9878 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
9879
9880         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
9881         (is_widening_mult_p): Likewise.
9882         (convert_to_widen): Use them.
9883         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
9884         well as integer ones.
9885
9886 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
9887
9888         * alias.c (true_dependence_1): New function, merged version of
9889         true_dependence and canon_true_dependence.
9890         (true_dependence): Simplify.
9891         (canon_true_dependence): Simplify.
9892
9893 2010-07-22  Richard Henderson  <rth@redhat.com>
9894
9895         PR target/45027
9896         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
9897         of V4SFmode for the SSE saves; increase stack alignment if needed.
9898         (ix86_gimplify_va_arg): Don't increase stack alignment here.
9899
9900 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
9901
9902         PR bootstrap/45028
9903         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
9904         call cprop_find_used_regs again via note_uses.
9905
9906 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9907
9908         * alias.c (get_alias_set): Fix formatting issues.
9909
9910 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
9911
9912         PR middle-end/44878
9913         * stmt.c (expand_value_return):  Call promote_function_mode with
9914         a for_return argument of 2 when returning by reference.
9915
9916 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
9917
9918         PR debug/45024
9919         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
9920         unit DIE if we can find the scope DIE.
9921
9922 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9923
9924         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
9925         changed.  Initialize OBJECT_SUBWORD.
9926         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
9927         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
9928         all callers changed.
9929         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
9930         (finish_allocno): Likewise.
9931         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
9932         (remove_low_level_allocnos): Likewise.
9933         (update_bad_spill_attribute): Likewise.
9934         (setup_min_max_allocno_live_range_point): Likewise.
9935         (sort_conflict_id_map): Likewise.
9936         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
9937         (ior_hard_reg_conflicts): New function.
9938         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
9939         (compress_conflict_vecs): Iterate over objects, not allocnos.
9940         (ira_add_live_range_to_object): New function.
9941         (object_range_compare_func): Renamed from allocno_range_compare_func.
9942         All callers changed.
9943         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
9944         subobjects, widen the min/max range of the lowest-order object to
9945         potentially include all other such low-order objects.
9946         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
9947         (check_allocation): Likewise.  Use more fine-grained tests for register
9948         conflicts.
9949         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
9950         allocno subobjects.
9951         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
9952         choices about which bits to set in each set.  Don't use
9953         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
9954         using the multiple sets we computed.
9955         (push_allocno_to_stack): Iterate over allocno subobjects.
9956         (all_conflicting_hard_regs_coalesced): New static function.
9957         (setup_allocno_available_regs_num): Use it.
9958         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
9959         subobjects.
9960         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
9961         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9962         by ALLOCNO_NUM_OBJECTS.
9963         (calculate_spill_cost): Likewise.
9964         (color_pass): Express if statement in a more normal way.
9965         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
9966         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
9967         (setup_slot_coalesced_allocno_live_ranges): Likewise.
9968         (allocno_reload_assign): Likewise.
9969         (ira_reassign_pseudos): Likewise.
9970         (fast_allocation): Likewise.
9971         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9972         (print_allocno_conflicts): Likewise.
9973         (ira_build_conflicts): Likewise.
9974         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
9975         callers changed.  Test subword 0 of each allocno for conflicts.
9976         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
9977         callers changed.  Iterate over allocno subobjects.
9978         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
9979         * ira-int.h (struct ira_allocno): New member: num_objects.
9980         Rename object to objects and change it into an array.
9981         (ALLOCNO_OBJECT): Add new argument N.
9982         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
9983         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
9984         (ior_hard_reg_conflicts): Declare.
9985         (ira_add_live_range_to_object): Declare.
9986         (ira_allocno_object_iterator): New.
9987         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
9988         (FOR_EACH_ALLOCNO_OBJECT): New macro.
9989         * ira-lives.c (objects_live): Renamed from allocnos_live; all
9990         uses changed.
9991         (allocnos_processed): New sparseset.
9992         (make_object_born): Renamed from make_allocno_born; take an
9993         ira_object_t argument.  All callers changed.
9994         (make_object_dead): Renamed from make_allocno_dead; take an
9995         ira_object_t argument.  All callers changed.
9996         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
9997         All callers changed.
9998         (mark_pseudo_regno_live): Iterate over allocno subobjects.
9999         (mark_pseudo_regno_dead): Likewise.
10000         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
10001         functions.
10002         (mark_ref_live): Detect subword accesses and call
10003         mark_pseudo_regno_subword_live as appropriate.
10004         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
10005         (process_bb_nodes_live): Deal with object-related updates first; set
10006         and test bits in allocnos_processed to avoid computing allocno
10007         statistics more than once.
10008         (create_start_finish_chains): Iterate over objects, not allocnos.
10009         (print_object_live_ranges): New function.
10010         (print_allocno_live_ranges): Use it.
10011         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
10012         and objects_live.
10013
10014 2010-07-22  Richard Guenther  <rguenther@suse.de>
10015
10016         PR lto/42451
10017         * gimple.c (gtc_next_dfs_num): New global.
10018         (struct sccs): Make value a union, add integer same_p member.
10019         (gtc_visit): New function.
10020         (gimple_types_compatible_p_1): New function, split out from ...
10021         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
10022         (iterative_hash_gimple_type): Adjust for sccs change.
10023
10024 2010-07-22  Martin Jambor  <mjambor@suse.cz>
10025
10026         PR tree-optimization/44891
10027         * tree-sra.c: Include gimple-pretty-print.h.
10028         (replace_uses_with_default_def_ssa_name): Renamed to
10029         get_repl_default_def_ssa_name, return the new SSA name instead of
10030         replacing the old one.
10031         (sra_modify_assign): Dump a message when removing a load, if the LHS
10032         is an SSA_NAME, do not do any propagation, just set the RHS to a
10033         default definition SSA NAME, type convert if necessary.
10034         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
10035
10036 2010-07-22  Richard Guenther  <rguenther@suse.de>
10037
10038         PR tree-optimization/45017
10039         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
10040         TYPE_PRECISION of integral types in addition to size.
10041
10042 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10043
10044         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
10045         when no C library is specified.
10046
10047 2010-07-22  Martin Jambor  <mjambor@suse.cz>
10048
10049         * ipa-prop.h (struct ipa_node_params): Updated comment.
10050         (struct ipa_edge_args): Likewise.
10051         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
10052
10053 2010-07-22  Martin Jambor  <mjambor@suse.cz>
10054
10055         * cgraphunit.c (verify_edge_count_and_frequency): New function.
10056         (verify_cgraph_node): Verify frequencies of indirect edges.
10057         * tree-inline.c (tree_function_versioning): Update frequencies of
10058         indirect edges.
10059
10060 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10061
10062         PR target/43698
10063         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
10064         Set *arm_rev to be predicable.
10065
10066 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
10067
10068         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
10069         (LINK_COMMAND_SPEC_A): New.
10070         (DSYMUTIL): New.
10071         (DSYMUTIL_SPEC): New.
10072         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
10073         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
10074
10075 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
10076
10077         * calls.c (load_register_parameters): Move check for zero
10078         sized items so that only the call to
10079         mem_overlaps_already_clobbered_arg_p () is protected.
10080
10081 2010-07-22  Jan Hubicka  <jh@suse.cz>
10082
10083         * ipa-pure-const.c (varying_state): Break out from ...
10084         (get_function_state): ... here; always return varying_state
10085         when state would be NULL otherwise.
10086         (remove_node_data): Do not free varying state.
10087
10088 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
10089
10090         PR bootstrap/44970
10091         PR middle-end/45009
10092         * postreload.c: Include "target.h".
10093         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
10094         into account.
10095         (fixup_debug_insns): Don't copy the rtx.
10096         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
10097         Don't copy when replacing.  Call fixup_debug_insns in the case where
10098         we merged one add with another.
10099         (reload_combine_recognize_pattern): Fail if there aren't any uses.
10100         Try harder to determine whether we're picking a valid index register.
10101         Don't set store_ruid for an insn we're going to scan in the
10102         next iteration.
10103         (reload_combine): Remove unused code.
10104         (reload_combine_note_use): When updating use information for
10105         an old insn, ignore a use that occurs after store_ruid.
10106         * Makefile.in (postreload.o): Update dependencies.
10107
10108         * function.c (record_hard_reg_sets): Restrict the previous change
10109         to cases where the incoming nominal mode is the same as the
10110         incoming promoted mode and everything happens in MODE_INT.
10111
10112 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
10113
10114         PR debug/45015
10115         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
10116         ASM_OPERANDS_OUTPUT_IDX.
10117         (adjust_insn): For inline asm with multiple sets ensure first
10118         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
10119         the insn.
10120
10121 2010-07-21  Richard Henderson  <rth@redhat.com>
10122
10123         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
10124         comparison for avoiding xmm register saves.  Emit the xmm register
10125         saves explicitly.
10126         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
10127         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
10128         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
10129         Remove patterns and the associated splitters.
10130
10131 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
10132
10133         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
10134         and imagine parts of a complex, so that they can have the same
10135         base and fall into the same group.
10136
10137 2010-07-21  Richard Guenther  <rguenther@suse.de>
10138
10139         PR lto/45018
10140         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
10141         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
10142         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
10143
10144 2010-07-21  Martin Jambor  <mjambor@suse.cz>
10145
10146         PR tree-optimization/44900
10147         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
10148         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
10149
10150 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
10151
10152         PR middle-end/44738
10153         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
10154
10155 2010-07-21  Richard Guenther  <rguenther@suse.de>
10156
10157         PR middle-end/45013
10158         * tree-ssa.c (useless_type_conversion_p): Dispatch to
10159         gimple_types_compatible_p only when in lto.
10160         * gimple.c (gimple_types_compatible_p): Use canonical types
10161         to speed up comparison.
10162
10163 2010-07-21  Richard Guenther  <rguenther@suse.de>
10164
10165         * tree-flow.h (referenced_var): Move define ...
10166         * tree-flow-inline.h (referenced_var): ... here as an inline
10167         function.  Assert here ...
10168         * tree-dfa.c (referenced_var_lookup): ... instead of here.
10169         * tree-ssa.c (maybe_optimize_var): Check if the variable
10170         is in referenced vars.
10171         (execute_update_addresses_taken): Remove old broken check.
10172         * gimple-pretty-print.c (pp_points_to_solution): Use
10173         referenced_var_lookup.
10174         * tree-into-ssa.c (dump_decl_set): Likewise.
10175
10176 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
10177
10178         PR debug/45003
10179         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
10180         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
10181         ZERO_EXTEND here.
10182
10183 2010-07-20  Richard Henderson  <rth@redhat.com>
10184
10185         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
10186
10187 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
10188
10189         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
10190         computing the sum of the stack pointer and a large constant.
10191         * config/arm/constraints.md (M): Remove superfluous parentheses.
10192         (Pc): New constraint.
10193
10194 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
10195
10196         PR debug/45006
10197         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
10198         operand's type if exp is tcc_unary class tree.
10199
10200 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
10201
10202         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
10203         Reverse sense of if_then_else condition.
10204
10205 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
10206
10207         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
10208         * config/rs6000/rs6000.c (rs6000_override_options): Set
10209         rs6000_block_move_inline_limit appropriately.
10210         (expand_block_move): Use rs6000_block_move_inline_limit.
10211         * doc/invoke.texi (mblock-move-inline-limit): Document.
10212
10213 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
10214
10215         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
10216         FROM and TO.  All callers changed.  Don't look for tracked uses,
10217         just scan the RTL for DEBUG_INSNs and substitute.
10218         (reload_combine_recognize_pattern): Call fixup_debug_insns.
10219         (reload_combine): Ignore DEBUG_INSNs.
10220
10221 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
10222
10223         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
10224         depth to 8 from 5.
10225
10226         PR debug/45003
10227         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
10228         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
10229         instead of the result's type.
10230
10231 2010-07-20  Richard Guenther  <rguenther@suse.de>
10232
10233         PR tree-optimization/44977
10234         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
10235         SSA form.
10236
10237 2010-07-20  Richard Guenther  <rguenther@suse.de>
10238
10239         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
10240         (lto_symtab_merge_decls_2): Likewise.
10241         * gimple.h (gimple_types_compatible_p): Declare.
10242         * gimple.c (gimple_queue_type_fixup): Remove.
10243         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
10244         (gimple_compatible_complete_and_incomplete_type_p): New function.
10245         (gimple_types_compatible_p): Adjust.
10246         (gimple_register_type): Remove type fixup code.
10247         (print_gimple_types_stats): Adjust.
10248         (free_gimple_type_tables): Likewise.
10249         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
10250         * tree-ssa.c (useless_type_conversion_p): Likewise.
10251
10252 2010-07-20  Richard Guenther  <rguenther@suse.de>
10253
10254         PR middle-end/44971
10255         PR middle-end/44988
10256         * tree-ssa.c (maybe_optimize_var): New function split out from ...
10257         (execute_update_addresses_taken): ... here.
10258         (non_rewritable_mem_ref_base): Likewise.
10259         (execute_update_addresses_taken): Do not iterate over all referenced
10260         vars but just all local decls and parms.
10261         Properly check call and asm arguments and rewrite call arguments.
10262
10263 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
10264
10265         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
10266         to top level.
10267         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
10268         definitions ...
10269         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
10270         New macro.
10271         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
10272
10273 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10274
10275         * gengtype.c (start_root_entry): New function, split out from
10276         write_root.  Check whether V is null and raise an error if so.
10277         (write_field_root): Check for V being null.  Don't raise an error here;
10278         set V to null instead.
10279         (write_root): Update comment above function.  Use start_root_entry.
10280
10281 2010-07-19  Xinliang David Li  <davidxl@google.com>
10282
10283         PR testsuite/44932
10284         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
10285         def edges.
10286         (find_uninit_use): Add dump.
10287         (is_use_properly_guarded): Ditto.
10288         (warn_uninitialized_phi): Ditto.
10289         (execute_late_warn_uninitialized): Ditto.
10290
10291 2010-07-19  Richard Guenther  <rguenther@suse.de>
10292
10293         PR middle-end/44941
10294         * expr.c (emit_block_move_hints): Move zero size check first.
10295         Move asserts to more useful places.
10296         * calls.c (load_register_parameters): Check for zero size.
10297
10298 2010-07-19  Richard Henderson  <rth@redhat.com>
10299
10300         * tree-optimize.c (execute_all_early_local_passes): New.  Change
10301         cgraph_state here ...
10302         (execute_early_local_optimizations): ... not here.  Remove.
10303         (pass_early_local_passes, pass_all_early_optimizations): Update.
10304
10305 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
10306
10307         * postreload.c (reload_combine_closest_single_use): Ignore the
10308         number of uses for DEBUG_INSNs.
10309         (fixup_debug_insns): New static function.
10310         (reload_combine_recognize_const_pattern): Use it.  Don't let the
10311         main loop be affected by DEBUG_INSNs.
10312         Really disallow moving adds past a jump insn.
10313         (reload_combine_recognize_pattern): Don't update use_ruid here.
10314         (reload_combine_note_use): Do it here.
10315         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
10316
10317 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
10318
10319         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
10320         of a loop.
10321         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
10322
10323 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
10324
10325         * config/i386/darwin.h: Define darwin_emit_branch_islands.
10326         (TARGET_MACHO_BRANCH_ISLANDS): New.
10327         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
10328         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
10329         default value.
10330         * config/i386/i386.c (output_pic_addr_const): Do not emit
10331         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
10332         (x86_output_mi_thunk): Adjust symbol creation.
10333         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
10334         Remove out of date comment.
10335         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
10336         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
10337         (DARWIN_GENERATE_ISLANDS): Ditto.
10338         (output_call):  Do not emit branch islands unless
10339         darwin_emit_branch_islands is set.
10340         * config/darwin.c: Declare darwin_emit_branch_islands.
10341         (machopic_indirect_data_reference): Do not emit unless
10342         darwin_emit_branch_islands is set.
10343         (darwin_override_options): Set darwin_emit_branch_islands
10344         where it is needed.
10345         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
10346
10347 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10348
10349         * doc/sourcebuild.texi (Effective-Target Keywords): Document
10350         sse_runtime, sse2_runtime.
10351
10352 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
10353
10354         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
10355         low half of a single-register SCmode return value before ORing
10356         it with the high half.
10357         * config/mips/mips16.S (MERGE_GPRf): Likewise.
10358
10359 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10360
10361         PR target/44805
10362         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
10363         on all targets.
10364
10365 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
10366
10367         PR target/42235
10368         * postreload.c (reload_cse_move2add): Return bool, true if anything.
10369         changed.  All callers changed.
10370         (move2add_use_add2_insn): Likewise.
10371         (move2add_use_add3_insn): Likewise.
10372         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
10373         reload_combine.
10374         (RELOAD_COMBINE_MAX_USES): Bump to 16.
10375         (last_jump_ruid): New static variable.
10376         (struct reg_use): New members CONTAINING_MEM and RUID.
10377         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
10378         (reload_combine_split_one_ruid, reload_combine_split_ruids,
10379         reload_combine_purge_insn_uses, reload_combine_closest_single_use
10380         reload_combine_purge_reg_uses_after_ruid,
10381         reload_combine_recognize_const_pattern): New static functions.
10382         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
10383         is true for our reg and that we have available index regs.
10384         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
10385         callers changed.  Use them to initialize fields in struct reg_use.
10386         (reload_combine): Initialize last_jump_ruid.  Be careful when to
10387         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
10388         Call reload_combine_recognize_const_pattern.
10389         (reload_combine_note_store): Update REAL_STORE_RUID field.
10390
10391 2010-07-16  Jason Merrill  <jason@redhat.com>
10392
10393         * Makefile.in (opts-common.o): Depend on options.h.
10394
10395 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
10396
10397         * tree.c (build_common_builtin_nodes): Use build_function_type_list
10398         instead of build_function_type.
10399         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
10400         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
10401
10402 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
10403
10404         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
10405         do all the work.
10406         (rs6000_emit_int_cmove): Use function pointers for insn generation.
10407         Don't force values into registers unnecessarily.
10408         (output_isel): Assert that we're not given conditions we can't handle.
10409         Delete corresponding code.
10410         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
10411         scc_comparison_operator constraint.  Permit 0 for the consequent
10412         operand.  Permit any GPR for the alternative operand.
10413         (isel_unsigned_<mode>): Likewise.
10414
10415 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
10416
10417         PR target/44942
10418         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
10419         argument to const_tree.
10420         * config/i386/i386.c (function_arg_advance): If padding needs to be
10421         inserted before argument, increment cum->words by number of padding
10422         words as well.
10423         (contains_aligned_value_p): Change argument to const_tree.
10424         (ix86_function_arg_boundary): Change second argument to const_tree.
10425
10426 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
10427
10428         PR target/42235
10429         * function.c (record_hard_reg_sets): New static function.
10430         (assign_parm_setup_reg): If an optab for extending exists and the
10431         generated code clobbbers no hard regs, emit the insn directly and
10432         create a REG_EQUIV note.
10433
10434 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
10435
10436         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
10437         TREE_CHAIN.
10438         * c-typeck.c (push_init_level): Likewise.
10439         (process_init_element): Likewise.
10440
10441 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
10442
10443         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
10444         (integer_three_node): Add.
10445         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
10446         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
10447         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
10448         of call build_int_cst.
10449         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
10450         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
10451         (find_interesting_uses_address): Ditto.
10452         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
10453         * tree-eh.c (lower_eh_constructs_2): Ditto.
10454         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
10455         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
10456         * expmed.c (expand_divmod): Ditto.
10457         * tree-mudflap.c (mx_register_decls): Ditto.
10458         * varasm.c (array_size_for_constructor): Ditto.
10459         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
10460         * c-parser.c (c_parser_postfix_expression): Ditto.
10461
10462 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10463
10464         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
10465         New static variables.
10466         (reload_combine_recognize_pattern): New static function, broken out
10467         of reload_combine.
10468         (reload_combine): Use it.  Only initialize first_index_reg and
10469         last_index_reg once.
10470
10471 2010-07-15  Richard Henderson  <rth@redhat.com>
10472
10473         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
10474         when done.
10475
10476 2010-07-15  Jan Hubicka  <jh@suse.cz>
10477
10478         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
10479         comdats for broken gold.
10480         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
10481
10482 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
10483
10484         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
10485
10486 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
10487
10488         * tree.h (DECL_CHAIN): Define.
10489         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
10490         * c-decl.c: Likewise.
10491         * c-parser.c: Likewise.
10492         * c-typeck.c: Likewise.
10493         * cfgexpand.c: Likewise.
10494         * cgraph.c: Likewise.
10495         * cgraphunit.c: Likewise.
10496         * combine.c: Likewise.
10497         * config/alpha/alpha.c: Likewise.
10498         * config/arm/arm.c: Likewise.
10499         * config/frv/frv.c: Likewise.
10500         * config/i386/i386.c: Likewise.
10501         * config/i386/winnt-cxx.c: Likewise.
10502         * config/ia64/ia64.c: Likewise.
10503         * config/iq2000/iq2000.c: Likewise.
10504         * config/mep/mep.c: Likewise.
10505         * config/mips/mips.c: Likewise.
10506         * config/pa/som.h: Likewise.
10507         * config/rs6000/rs6000.c: Likewise.
10508         * config/s390/s390.c: Likewise.
10509         * config/sh/sh.c: Likewise.
10510         * config/sh/symbian-cxx.c: Likewise.
10511         * config/sparc/sparc.c: Likewise.
10512         * config/spu/spu.c: Likewise.
10513         * config/stormy16/stormy16.c: Likewise.
10514         * config/vxworks.c: Likewise.
10515         * config/xtensa/xtensa.c: Likewise.
10516         * coverage.c: Likewise.
10517         * dbxout.c: Likewise.
10518         * dwarf2out.c: Likewise.
10519         * emit-rtl.c: Likewise.
10520         * expr.c: Likewise.
10521         * function.c: Likewise.
10522         * gimple-low.c: Likewise.
10523         * gimple-pretty-print.c: Likewise.
10524         * gimplify.c: Likewise.
10525         * integrate.c: Likewise.
10526         * ipa-inline.c: Likewise.
10527         * ipa-prop.c: Likewise.
10528         * ipa-split.c: Likewise.
10529         * ipa-struct-reorg.c: Likewise.
10530         * ipa-type-escape.c: Likewise.
10531         * langhooks.c: Likewise.
10532         * lto-cgraph.c: Likewise.
10533         * omp-low.c: Likewise.
10534         * stor-layout.c: Likewise.
10535         * tree-cfg.c: Likewise.
10536         * tree-complex.c: Likewise.
10537         * tree-dfa.c: Likewise.
10538         * tree-dump.c: Likewise.
10539         * tree-inline.c: Likewise.
10540         * tree-mudflap.c: Likewise.
10541         * tree-nested.c: Likewise.
10542         * tree-object-size.c: Likewise.
10543         * tree-pretty-print.c: Likewise.
10544         * tree-sra.c: Likewise.
10545         * tree-ssa-live.c: Likewise.
10546         * tree-ssa-loop-niter.c: Likewise.
10547         * tree-ssa-math-opts.c: Likewise.
10548         * tree-ssa-reassoc.c: Likewise.
10549         * tree-ssa-sccvn.c: Likewise.
10550         * tree-ssa-structalias.c: Likewise.
10551         * tree-tailcall.c: Likewise.
10552         * tree-vrp.c: Likewise.
10553         * tree.c: Likewise.
10554         * var-tracking.c: Likewise.
10555         * varasm.c: Likewise.
10556
10557 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10558
10559         PR target/44877
10560         * config/spu/spu.c (spu_expand_builtin_1): Allow references
10561         (as well as pointers) as argument to mask_for_load builtins.
10562
10563 2010-07-15  Richard Guenther  <rguenther@suse.de>
10564
10565         PR tree-optimization/44946
10566         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
10567         with accessing only padding properly.
10568
10569 2010-07-15  Jan Hubicka  <jh@suse.cz>
10570
10571         * ipa.c (function_and_variable_visibility): Variables marked as used
10572         should not be localized.
10573
10574 2010-07-15  Jan Hubicka  <jh@suse.cz>
10575
10576         * cgraph.c: Include lto-streamer.h
10577         (change_decl_assembler_name): Work when assembler name hash is at place.
10578         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
10579         be sure to rename it to avoid name clash.
10580         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
10581         Localize hidden symbols only when locally defined.
10582
10583 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
10584
10585         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
10586
10587 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
10588             Kevin F. Quinn  <kevquinn@gentoo.org>
10589
10590         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
10591         * common.opt: Add -Wtrampolines.
10592         * doc/invoke.texi: Add -Wtrampolines.
10593
10594 2010-07-15  Jie Zhang  <jie@codesourcery.com>
10595
10596         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
10597         cortex_a8_issue_ls.
10598
10599 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
10600
10601         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
10602         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
10603
10604 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10605
10606         * config/spu/spu.c (reg_names): Remove prototype.
10607         (call_used_regs): Likewise.
10608
10609 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
10610
10611         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
10612         "unused" with attribute "used".
10613         (__JCR_END__): Likewise.
10614         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
10615         "used" attribute.
10616         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
10617
10618 2010-07-14  Richard Guenther  <rguenther@suse.de>
10619
10620         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
10621         (maybe_fixup_decls): Likewise.
10622         (input_gimple_stmt): Do not fixup anything.
10623         * lto-streamer-out.c (output_gimple_stmt): Make sure all
10624         non-automatic variable uses are wrapped inside a MEM_REF.
10625
10626 2010-07-14  Richard Henderson  <rth@redhat.com>
10627
10628         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
10629         for functions.
10630         * varasm.c (assemble_variable): Remove early exit for functions;
10631         assert that we're given a variable.
10632
10633 2010-07-14  Jie Zhang  <jie@codesourcery.com>
10634
10635         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
10636         cortex_a8_default when neon_type is not none.
10637
10638 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10639
10640         * lower-subreg.c (subreg_context): New static bitmap.
10641         (decompose_multiword_subregs): Allocate and free it.
10642         (find_decomposable_subregs): Set a bit in it for a register that
10643         occurs in a subreg that changes mode but not size.
10644         (can_decompose_p): Test it instead of non_decomposable_context.
10645
10646 2010-07-14  Richard Guenther  <rguenther@suse.de>
10647
10648         PR tree-optimization/44824
10649         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
10650         is_gimple_mem_ref_addr.
10651         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
10652         non-decl_address_invariant_p addresses.
10653
10654 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10655
10656         * reload.c (find_reloads): Revert code to penalize small register
10657         classes that was brought in with the IRA merge.
10658
10659 2010-07-14  Richard Guenther  <rguenther@suse.de>
10660
10661         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
10662         as base of ARRAY_REFs.
10663
10664 2010-07-14  Richard Guenther  <rguenther@suse.de>
10665
10666         PR middle-end/44930
10667         * tree-pretty-print.c (do_niy): Do not print a newline.
10668
10669 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10670
10671         * ira-int.h (struct ira_object): New.
10672         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
10673         (struct ira_allocno): Remove members min, max,
10674         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
10675         conflict_allocnos_num and conflict_vec_p.  Add new member object.
10676         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
10677         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
10678         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
10679         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
10680         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
10681         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
10682         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
10683         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
10684         an ira_object_t rather than ira_allocno_t.  All uses changed.
10685         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
10686         contains a vector of ira_object_t; all uses changed.
10687         (ira_objects_num): Declare variable.
10688         (ira_create_allocno_object): Declare function.
10689         (ira_conflict_vector_profitable_p): Adjust prototype.
10690         (ira_allocate_conflict_vec): Renamed from
10691         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
10692         (ira_allocate_object_conflicts): Renamed from
10693         ira_allocate_allocno_conflicts; first arg now ira_object_t.
10694         (struct ira_object_iterator): New.
10695         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
10696         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
10697         to conflict_vec_p.  All uses changed.
10698         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
10699         Changed to take into account that conflicts are now tracked for
10700         objects.
10701         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
10702         Args changed to accept ira_object_t.  All uses changed.
10703         (allocnos_conflict_p): New static function.
10704         (collected_conflict_objects): Renamed from collected_allocno_objects;
10705         now a vector of ira_object_t.  All uses changed.
10706         (build_conflict_bit_table): Changed to take into account that
10707         conflicts are now tracked for objects.
10708         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
10709         (print_allocno_conflicts, ira_build_conflicts): Likewise.
10710         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
10711         setup_allocno_left_conflicts_size, allocno_reload_assign,
10712         fast_allocation): Likewise.
10713         * ira-lives.c (make_hard_regno_born, make_allocno_born)
10714         process_single_reg_class_operands, process_bb_node_lives): Likewise.
10715         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
10716         Likewise.
10717         * ira-build.c (ira_objects_num): New variable.
10718         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
10719         contains a vector of ira_object_t; all uses changed.
10720         (ira_object_id_map_vec): Corresponding change.
10721         (object_pool): New static variable.
10722         (initiate_allocnos): Initialize it.
10723         (finish_allocnos): Free it.
10724         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
10725         New functions.
10726         (ira_create_allocno): Don't set members that were removed.
10727         (ira_set_allocno_cover_class): Don't change conflict hard regs.
10728         (merge_hard_reg_conflicts): Changed to take into account that
10729         conflicts are now tracked for objects.
10730         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
10731         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
10732         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
10733         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
10734         setup_min_max_conflict_allocno_ids, ):  Likewise.
10735         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
10736         to ira_object_t; all callers changed.
10737         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
10738         to ira_object_t, all callers changed.
10739         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
10740         to ira_object_t, all callers changed.
10741         (conflict_check, curr_conflict_check_tick): Renamed from
10742         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
10743         changed.
10744         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
10745         arg changed to ira_object_t, all callers changed.
10746         (create_cap_allocno): Call ira_create_allocno_object.
10747         (finish_allocno): Free the corresponding object.
10748         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
10749         callers changed.  Adjusted for dealing with objects.
10750         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
10751         dealing with objects.
10752         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
10753
10754         * ira-int.h (struct live_range): Rename allocno member to object
10755         and change type to ira_object_t.
10756         (struct ira_object): New member live_ranges.
10757         (struct ira_allocno): Remove member live_ranges.
10758         (ALLOCNO_LIVE_RANGES): Remove.
10759         (OBJECT_LIVE_RANGES): New macro.
10760         (ira_create_live_range, ira_copy_live_range_list,
10761         ira_merge_live_range_list, ira_live_ranges_intersect_p,
10762         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
10763         * ira-build.c (ira_create_object): Initialize live ranges here.
10764         (ira_create_allocno): Not here.
10765         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
10766         changed to ira_object_t, all callers changed.
10767         (copy_live_range): Rename from copy_allocno_live_range, all callers
10768         changed.
10769         (ira_copy_live_range_list): Rename from
10770         ira_copy_allocno_live_range_list, all callers changed.
10771         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
10772         all callers changed.
10773         (ira_live_ranges_intersect_p): Rename from
10774         ira_allocno_live_ranges_intersect_p, all callers changed.
10775         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
10776         callers changed.
10777         (ira_finish_live_range_list): Rename from
10778         ira_finish_allocno_live_range_list, all callers changed.
10779         (change_object_in_range_list): Rename from change_allocno_in_range_list,
10780         last arg changed to ira_object_t, all callers changed.
10781         (finish_allocno): Changed to expect live ranges in the allocno's object.
10782         (move_allocno_live_ranges, copy_allocno_live_ranges,
10783         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
10784         ira_flattening, ira_build): Likewise.
10785         * ira-color.c (allocnos_have_intersected_live_ranges_p,
10786         slot_coalesced_allocno_live_ranges_intersect,
10787         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
10788         * ira-conflicts.c (build_conflict_bit_table): Likewise.
10789         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10790         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
10791         make_allocno_dead, create_start_finish_chains,
10792         remove_some_program_points_and_update_live_ranges,
10793         ira_debug_live_range_list): Likewise.
10794
10795         * ira-int.h (ira_object_conflict_iterator): Rename from
10796         ira_allocno_conflict_iterator.
10797         (ira_object_conflict_iter_init): Rename from
10798         ira_allocno_conflict_iter_init, second arg changed to
10799         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
10800         FOR_EACH_ALLOCNO_CONFLICT.
10801         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
10802         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
10803         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
10804         * ira-conflicts.c (print_allocno_conflicts): Likewise.
10805
10806 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
10807
10808         PR other/44874
10809         * tree-dump.c (dump_options): Add enumerate_locals entry.
10810         Add TDF_NOID exclusion to all entry.
10811         * tree-dump.h (dump_enumerated_decls): Declare.
10812         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
10813         Don't display type uid.
10814         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
10815         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
10816         * tree-ssa-live.c: Include gimple.h.
10817         (numbered_tree_d): New struct.
10818         (numbered_tree): New typedef.
10819         (DEF_VEC_O (numbered_tree): New.
10820         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
10821         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
10822         (dump_enumerated_decls): Likewise.
10823         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
10824         debug info and flag_dump_final_insns, call dump_enumerated_decls.
10825         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
10826         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
10827
10828 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
10829
10830         * expmed.h (MAX_BITS_PER_WORD): Move to...
10831         * defaults.h (MAX_BITS_PER_WORD): ...here.
10832
10833 2010-07-13  DJ Delorie  <dj@redhat.com>
10834
10835         * config/h8300/h8300.c (h8300_init_once): Default to
10836         -fstrict_volatile_bitfields.
10837
10838         * config/sh/sh.c (sh_override_options): Default to
10839         -fstrict_volatile_bitfields.
10840
10841         * config/rx/rx.c (rx_option_override): New.
10842
10843         * config/m32c/m32c.c (m32c_override_options): Default to
10844         -fstrict_volatile_bitfields.
10845
10846 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
10847
10848         * tree.h (build_function_call_expr): Delete.
10849         (build_call_expr_loc_array): New function.
10850         (build_call_expr_loc_vec): New function.
10851         * tree-flow.h (struct omp_region): Change type of ws_args field
10852         to a VEC.
10853         * builtins.c (build_function_call_expr): Delete.
10854         (build_call_expr_loc_array): New function.
10855         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
10856         (build_call_expr): Likewise.
10857         (build_call_expr_loc_vec): New function.
10858         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
10859         build_function_call_expr.
10860         * expr.c (emutls_var_address): Likewise.
10861         * varasm.c (emutls_common_1): Likewise.
10862         * omp-low.c (expand_omp_atomic_mutex): Likewise.
10863         (expand_omp_taskreg): Adjust for new type of region->ws_args.
10864         (get_ws_args_for): Return a VEC instead of a tree.
10865         (expand_parallel_call): Call build_call_expr_loc_vec instead of
10866         build_function_call_expr.
10867         * stor-layout.c (self_referential_size): Likewise.
10868
10869 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10870
10871         PR testsuite/44701
10872         * recog.c (constrain_operands): Allow side-effects in memory
10873         operands if either < or > constraint is used, rather than if
10874         both < and > is used.
10875
10876 2010-07-13  Richard Guenther  <rguenther@suse.de>
10877
10878         PR middle-end/44911
10879         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
10880         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
10881         without name.
10882
10883 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10884
10885         PR target/44761
10886         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
10887         to variable emited.
10888         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
10889         * config/sh/sh.md (symGOT_load): Likewise.
10890         (symDTPOFF2reg): Likewise.
10891         (symTPOFF2reg): Likewise.
10892
10893 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10894
10895         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
10896         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
10897
10898 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10899
10900         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
10901         explanation.
10902         Find ucontext_t * on Solaris 11.
10903         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
10904         Handle new Solaris 11 __sighndlr patterns.
10905
10906 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10907
10908         PR debug/44901
10909         * vec.h (VEC_block_remove): Fix comment.
10910         * tree-ssa-live.c (remove_unused_locals): Don't use
10911         VEC_unordered_remove on local_decls, instead replace a single
10912         vector element in each iteration if at least one element had
10913         to be removed and VEC_truncate at the end.
10914         * omp-low.c (expand_omp_taskreg): Likewise.
10915
10916 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10917
10918         * c-decl.c (finish_function): Fix typo in comment.
10919
10920 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
10921
10922         PR bootstrap/44921
10923         * postreload.c (move2add_use_add3_insn): Silence gcc warning
10924         on min_regno.
10925
10926 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
10927
10928         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
10929         (simplify_stmt_using_ranges): Use it.
10930
10931 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10932
10933         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
10934         member.  Do not mark as GTY(()).
10935         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
10936         (spu_builtin_decls): New static variable.
10937         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
10938         (spu_init_builtins): Likewise.
10939         (spu_builtin_mul_widen_even): Likewise.
10940         (spu_builtin_mul_widen_odd): Likewise.
10941         (spu_builtin_mask_for_load): Likewise.
10942         (spu_builtin_vec_perm): Likewise.
10943         * config/spu/spu-c.c: Include "target.h".
10944         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
10945         of using spu_builtins[].fndecl.
10946
10947 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10948
10949         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
10950         imply -minterlink-mips16.
10951
10952 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10953
10954         * config/mips/mips.h (mips16_globals): Declare.
10955         (SWITCHABLE_TARGET): Define.
10956         * config/mips/mips.c: Include target-globals.h.
10957         (mips16_globals): New variable.
10958         (mips_set_mips16_mode): Use save_target_globals and
10959         restore_target_globals instead of target_reinit.
10960
10961 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10962
10963         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
10964         to say that the function can be called more than once.
10965         * target-globals.c (save_target_globals): Call init_reg_sets.
10966
10967 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10968
10969         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
10970         * bb-reorder.h: New file.
10971         * bb-reorder.c (default_target_bb_reorder): New variable.
10972         (this_target_bb_reorder): New conditional variable.
10973         (uncond_jump_length): Redefine as a macro.
10974         * target-globals.h (this_target_bb_reorder): Declare.
10975         (target_globals): Add a bb_reorder field.
10976         (restore_target_globals): Copy the bb_reorder field to
10977         this_target_bb-reorder.
10978         * target-globals.c: Include bb-reorder.h.
10979         (default_target_globals): Initialize the bb_reorder field.
10980         (save_target_globals): Likewise.
10981
10982 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10983
10984         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
10985         * gcse.h: New file.
10986         * gcse.c: Include gcse.h.
10987         (default_target_gcse): New variable.
10988         (this_target_gcse): New conditional variable.
10989         (can_copy): Redefine as a macro.
10990         (can_copy_init_p): New macro.
10991         (can_copy_p): Remove can_copy_init_p.
10992         * target-globals.h (this_target_gcse): Declare.
10993         (target_globals): Add a gcse field.
10994         (restore_target_globals): Copy the gcse field to this_target_gcse.
10995         * target-globals.c: Include gcse.h.
10996         (default_target_globals): Initialize the gcse field.
10997         (save_target_globals): Likewise.
10998
10999 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11000
11001         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
11002         and x_ira_prohibited_mode_move_regs_initialized_p.
11003         (ira_prohibited_mode_move_regs): Redefine as a macro.
11004         * ira.c (ira_prohibited_mode_move_regs): Delete.
11005         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
11006
11007 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11008
11009         * reload.h (target_reload): Add x_cached_reg_save_code and
11010         x_cached_reg_restore_code.
11011         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
11012         Redefine as macros.
11013
11014 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11015
11016         * Makefile.in (target-globals.o): Depend on builtins.h.
11017         * builtins.h: New file.
11018         * builtins.c: Include builtins.h.
11019         (default_target_builtins): New variable.
11020         (this_target_builtins): New conditional variable.
11021         (apply_args_mode, apply_result_mode): Redefine as macros.
11022         * target-globals.h (this_target_builtins): Declare.
11023         (target_globals): Add a builtins field.
11024         (restore_target_globals): Copy the builtins field to
11025         this_target_builtins.
11026         * target-globals.c: Include builtins.h.
11027         (default_target_globals): Initialize the builtins field.
11028         (save_target_globals): Likewise.
11029
11030 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11031
11032         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
11033         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
11034         from expmed.c.
11035         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
11036         (alg_hash, alg_hash_used_p): New macros.
11037         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
11038         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
11039         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
11040
11041 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11042
11043         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
11044         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
11045         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
11046         (this_op_costs, costs_classes): Redefine as macros.
11047         (record_reg_classes): Don't take op_costs as a parameter.
11048         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
11049         (scan_one_insn): Update call to record_operand_costs.
11050
11051 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11052
11053         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
11054         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
11055         (target_ira_int): New structure.
11056         (default_target_ira_int): Declare.
11057         (this_target_ira_int): Declare as a variable or define as a macro.
11058         (ira_reg_mode_hard_regset, ira_register_move_cost)
11059         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
11060         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
11061         (prohibited_class_mode_regs, ira_important_classes_num)
11062         (ira_important_classes, ira_reg_class_intersect)
11063         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
11064         (ira_reg_class_union): Redefine as macros.
11065         * ira.h (target_ira): New structure.
11066         (default_target_ira): Declare.
11067         (this_target_ira): Declare as a variable or define as a macro.
11068         (ira_available_class_regs, ira_hard_regno_cover_class)
11069         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
11070         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
11071         (ira_class_hard_regs_num): Redefine as macros.
11072         * ira.c (default_target_ira, default_target_ira_int): New variables.
11073         (this_target_ira, this_target_ira_int): New conditional variables.
11074         (ira_reg_mode_hard_regset, ira_memory_move_cost)
11075         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
11076         (ira_class_subset_p): Delete.
11077         (no_unit_alloc_regs): Redefine as a macro.
11078         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
11079         (ira_class_hard_regs_num, ira_class_hard_reg_index)
11080         (ira_available_class_regs): Delete.
11081         (alloc_reg_class_subclasses): Redefine as a macro.
11082         (ira_reg_class_cover_size, ira_reg_class_cover)
11083         (ira_important_classes_num, ira_important_classes)
11084         (ira_important_class_nums, ira_class_translate): Delete.
11085         (cover_class_order): Document the variable's lifetime.
11086         (reorder_important_classes): Don't set ira_important_class_nums.
11087         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
11088         (ira_reg_class_super_classes, ira_reg_class_union)
11089         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
11090         Delete.
11091         (setup_reg_class_nregs): Don't set ira_max_regs.
11092         (prohibited_class_mode_regs): Delete.
11093         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
11094         (target_globals): Add ira and ira_int fields.
11095         (restore_target_globals): Copy the ira field to this_target_ira
11096         and the ira_int field to this_target_ira_int.
11097         * target-globals.c: Include ira-int.h.
11098         (default_target_globals): Initialize the ira and ira_int fields.
11099         (save_target_globals): Likewise.
11100
11101 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11102
11103         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
11104         * cfgloop.h (target_cfgloop): New structure.
11105         (default_target_cfgloop): Declare.
11106         (this_target_cfgloop): Declare as a variable or define as a macro.
11107         (target_avail_regs, target_clobbered_regs, target_res_regs)
11108         (target_reg_cost, target_spill_cost): Redefine as macros.
11109         * cfgloopanal.c (default_target_cfgloop): New variable.
11110         (this_target_cfgloop): New conditional variable.
11111         (target_avail_regs, target_clobbered_regs, target_res_regs)
11112         (target_reg_cost, target_spill_cost): Delete.
11113         * target-globals.h (this_target_cfgloop): Declare.
11114         (target_globals): Add a cfgloop field.
11115         (restore_target_globals): Copy the cfgloop field to
11116         this_target_cfgloop.
11117         * target-globals.c: Include cfgloop.h.
11118         (default_target_globals): Initialize the cfgloop field.
11119         (save_target_globals): Likewise.
11120
11121 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11122
11123         * regs.h (target_regs): Add x_direct_load, x_direct_store and
11124         x_float_extend_from_mem.
11125         (direct_load, direct_store, float_extend_from_mem): New macros.
11126         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
11127
11128 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11129
11130         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
11131         (target-globals.o): Depend on $(LIBFUNCS_H).
11132         * libfuncs.h: Include hashtab.h.
11133         (libfunc_entry): Moved from optabs.c.
11134         (target_libfuncs): New structure.
11135         (default_target_libfuncs): Declare.
11136         (this_target_libfuncs): Declare as a variable or define as a macro.
11137         (libfunc_table): Redefine as a macro.
11138         * optabs.c (default_target_libfuncs): New variable.
11139         (this_target_libfuncs): New conditional variable.
11140         (libfunc_table): Delete.
11141         (libfunc_entry): Moved to optabs.h.
11142         (libfunc_hash): Redefine as a macro.
11143         (hash_libfunc, eq_libfunc): Fix comments.
11144         (init_optabs): Use libfunc_hash to detect cases where the function
11145         has already been called.  Clear the hash table instead of
11146         recreating it.
11147         * target-globals.h (this_target_libfuncs): Declare.
11148         (target_globals): Add a libfuncs field.
11149         (restore_target_globals): Copy the libfuncs field to
11150         this_target_libfuncs.
11151         * target-globals.c: Include libfuncs.h.
11152         (default_target_globals): Initialize the libfuncs field.
11153         (save_target_globals): Likewise.
11154
11155 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11156
11157         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
11158         in all dependency lists.
11159
11160 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11161
11162         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
11163         * optabs.h (target_optabs): New structure.
11164         (default_target_optabs): Declare.
11165         (this_target_optabs): Declare as a variable or define as a macro.
11166         (optab_table, convert_optab_table, direct_optab_table): Redefine
11167         as macros.
11168         * optabs.c (default_target_optabs): New variable.
11169         (this_target_optabs): New conditional variable.
11170         (optab_table, convert_optab_table, direct_optab_table): Delete.
11171         * target-globals.h (this_target_optabs): Declare.
11172         (target_globals): Add a optabs field.
11173         (restore_target_globals): Copy the optabs field to
11174         this_target_optabs.
11175         * target-globals.c: Include expr.h and optabs.h.
11176         (default_target_globals): Initialize the optabs field.
11177         (save_target_globals): Likewise.
11178
11179 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11180
11181         * flags.h (target_flagstate): Add x_flag_excess_precision.
11182         (flag_excess_precision): Redefine as a macro.
11183         * toplev.c (flag_excess_precision): Delete.
11184
11185 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11186
11187         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
11188         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
11189         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
11190         (no_caller_save_reg_set): Redefine as a macro.
11191         * reload.h (target_reload): Add x_caller_save_initialized_p and
11192         x_regno_save_mode.
11193         (caller_save_initialized_p): Redefine as a macro.
11194         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
11195         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
11196         (regno_save_mode): Redefine as a macro.
11197
11198 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11199
11200         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
11201         * expmed.h: New file.
11202         * expmed.c (default_target_costs): New variable.
11203         (this_target_costs): New conditional variable.
11204         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
11205         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
11206         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
11207         * target-globals.h (this_target_expmed): Declare.
11208         (target_globals): Add a expmed field.
11209         (restore_target_globals): Copy the expmed field to
11210         this_target_expmed.
11211         * target-globals.c: Include expmed.h.
11212         (default_target_globals): Initialize the expmed field.
11213         (save_target_globals): Likewise.
11214
11215 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11216
11217         * Makefile.in (target-globals.o): Depend on reload.h.
11218         * reload.h (target_reload): New structure.
11219         (default_target_reload): Declare.
11220         (this_target_reload): Declare as a variable or define as a macro.
11221         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
11222         * reload1.c (default_target_reload): New variable
11223         (this_target_reload): New conditional variable.
11224         (indirect_symref_ok, double_reg_address_ok): Delete.
11225         (spill_indirect_levels): Redefine as a macro.
11226         * target-globals.h (this_target_reload): Declare.
11227         (target_globals): Add a reload field.
11228         (restore_target_globals): Copy the reload field to
11229         this_target_reload.
11230         * target-globals.c: Include hard-reg-set.h.
11231         (default_target_globals): Initialize the reload field.
11232         (save_target_globals): Likewise.
11233
11234 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11235
11236         * rtl.h (target_rtl): Add x_static_reg_base_value.
11237         * alias.c (static_reg_base_value): Redefine as a macro.
11238
11239 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11240
11241         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
11242         (GTFILES): Remove reginfo.c.
11243         * rtl.h (target_rtl): Add x_top_of_stack.
11244         (top_of_stack): New macro.
11245         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
11246         (top_of_stack): Delete.
11247
11248 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11249
11250         * regs.h (target_regs): Add x_hard_regs_of_mode,
11251         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
11252         x_may_move_out_cost and x_last_mode_for_init_move_cost.
11253         (have_regs_of_mode, contains_reg_of_mode, move_cost)
11254         (may_move_in_cost, may_move_out_cost): Redefine as macros.
11255         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
11256         (may_move_in_cost, may_move_out_cost): Delete.
11257         (last_mode_for_init_move_cost): Redefine as a macro.
11258
11259 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11260
11261         * hard-reg-set.h (target_hard_regs): New structure.
11262         (default_target_hard_regs): Declare.
11263         (this_target_hard_regs): Declare as a variable or define as a macro.
11264         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
11265         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
11266         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
11267         (reg_class_size, reg_class_subclasses, reg_class_subunion)
11268         (reg_class_superunion, reg_names): Redefine as macros.
11269         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
11270         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
11271         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
11272         (reg_class_contents, reg_class_size, reg_class_subclasses)
11273         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
11274         (default_target_hard_regs): New variable
11275         (this_target_hard_regs, initial_call_really_used_regs)
11276         (initial_reg_alloc_order): New conditional variables.
11277         (initial_reg_names): New variable.
11278         (init_reg_sets): Assert that initial_call_really_used_regs,
11279         initial_reg_alloc_order and initial_reg_names
11280         are all the same size as their variable counterparts.  Use them to
11281         initialize those counterparts.
11282         * target-globals.h (this_target_hard_regs): Declare.
11283         (target_globals): Add a hard_regs field.
11284         (restore_target_globals): Copy the hard_regs field to
11285         this_target_hard_regs.
11286         * target-globals.c: Include hard-reg-set.h.
11287         (default_target_globals): Initialize the hard_regs field.
11288         (save_target_globals): Likewise.
11289
11290 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11291
11292         * Makefile.in (target-globals.o): Depend on $(RTL_H).
11293         * rtl.h (target_rtl): New structure.
11294         (default_target_rtl): Declare.
11295         (this_target_rtl): Declare as a variable or define as a macro.
11296         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
11297         Redefine as macros.
11298         * emit-rtl.c (default_target_rtl): New variable.
11299         (this_target_rtl): New conditional variable.
11300         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
11301         (return_address_pointer_rtx): Delete.
11302         (initial_regno_reg_rtx): New macro.
11303         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
11304         (init_emit_regs): Likewise.
11305         * target-globals.h (this_target_rtl): Declare.
11306         (target_globals): Add a rtl field.
11307         (restore_target_globals): Copy the rtl field to this_target_rtl.
11308         * target-globals.c: Include rtl.h.
11309         (default_target_globals): Initialize the rtl field.
11310         (save_target_globals): Likewise.
11311
11312 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11313
11314         * Makefile.in (target-globals.o): Depend on $(REGS_H).
11315         * regs.h (target_reg_modes): New structure.
11316         (default_target_reg_modes): Declare.
11317         (this_target_reg_modes): Declare as a variable or define as a macro.
11318         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
11319         * reginfo.c (default_target_reg_modes): New variable.
11320         (this_target_reg_modes): New conditional variable.
11321         (hard_regno_nregs, reg_raw_mode): Delete.
11322         * target-globals.h (this_target_regs): Declare.
11323         (target_globals): Add a regs field.
11324         (restore_target_globals): Copy the regs field to this_target_regs.
11325         * target-globals.c: Include regs.h.
11326         (default_target_globals): Initialize the regs field.
11327         (save_target_globals): Likewise.
11328
11329 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
11330
11331         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
11332         * doc/tm.texi: Regenerate.
11333         * Makefile.in (OBJS-common): Add target-globals.o.
11334         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
11335         and target-globals.h.
11336         (target-globals.o): New rule.
11337         (GTFILES): Include $(srcdir)/target-globals.h.
11338         * defaults.h (SWITCHABLE_TARGET): Define.
11339         * gengtype.c (open_base_files): Add target-globals.h to the
11340         list of includes.
11341         * target-globals.h: New file.
11342         * target-globals.c: Likewise.
11343
11344         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
11345         * flags.h (target_flag_state): New structure.
11346         (default_target_flag_state): Declare.
11347         (this_target_flag_state): Declare as a variable or define as a macro.
11348         (align_loops_log): Redefine as a macro.
11349         (align_loops_max_skip, align_jumps_log): Likewise.
11350         (align_jumps_max_skip, align_labels_log): Likewise.
11351         (align_labels_max_skip, align_functions_log): Likewise.
11352         * toplev.c (default_target_flag_state): New variable.
11353         (this_target_flag_state): New conditional variable.
11354         (align_loops_log): Delete.
11355         (align_loops_max_skip, align_jumps_log): Likewise.
11356         (align_jumps_max_skip, align_labels_log): Likewise.
11357         (align_labels_max_skip, align_functions_log): Likewise.
11358         * target-globals.h (this_target_flag_state): Declare.
11359         (target_globals): Add a flag_state field.
11360         (restore_target_globals): Copy the flag_state field to
11361         this_target_flag_state.
11362         * target-globals.c: Include flags.h.
11363         (default_target_globals): Initialize the flag_state field.
11364         (save_target_globals): Likewise.
11365
11366 2010-07-12  Jie Zhang  <jie@codesourcery.com>
11367
11368         * postreload.c (reg_symbol_ref[]): New.
11369         (move2add_use_add2_insn): New.
11370         (move2add_use_add3_insn): New.
11371         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
11372         (move2add_note_store): Likewise.
11373
11374 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
11375
11376         PR rtl-optimization/44752
11377         * genautomata.c (main): Don't emit an empty file even if there
11378         is no automaton.
11379
11380 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11381
11382         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
11383         ix86_solaris_return_in_memory.
11384         * config/i386-protos.h: Reflect this.
11385         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
11386         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
11387         Move ...
11388         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
11389
11390 2010-07-12  Jie Zhang  <jie@codesourcery.com>
11391
11392         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
11393         align the stack when it's going to be saved.
11394
11395 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11396
11397         PR pch/14940
11398         * config/host-solaris.c (mmap_fixed): New function.
11399         (sol_gt_pch_get_address): Use it.
11400         (sol_gt_pch_use_address): Likewise.
11401
11402 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11403
11404         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
11405         pentiumpro on Solaris 8 and 9/x86.
11406         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
11407         Document SSE/SSE2 support.
11408         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
11409
11410 2010-07-12  Andi Kleen  <ak@linux.intel.com>
11411
11412         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
11413         instead of gcc_assert to print better error message for multiple
11414         prevailing defs.
11415
11416 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
11417
11418         * config/i386/i386.c (ix86_asm_output_function_label): Change format
11419         string placeholder from 0x%x to %#x.
11420         (ix86_code_end): Use putc to output '\n'.
11421         (ix86_print_operand) <case ';'>: Use putc to output ';'.
11422
11423 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
11424
11425         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
11426         in directive -export.
11427
11428 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
11429
11430         * reginfo.h (reg_classes_intersect_p): Change arguments type to
11431         reg_class_t.
11432         * rtl.h (reg_classes_intersect_p): Adjust prototype.
11433
11434         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11435         Remove macros.
11436         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
11437         rs6000_memory_move_cost): Remove
11438         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
11439         TARGET_MEMORY_MOVE_COST): Define.
11440         (rs6000_register_move_cost): Make static. Change arguments type from
11441         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
11442         (rs6000_memory_move_cost): Make static. Change arguments type from
11443         'enum reg_class' to reg_class_t.
11444
11445 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
11446
11447         PR middle-end/42505
11448         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
11449         lookup code into....
11450         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
11451         new functions.
11452         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
11453         * cfgloopanal.c (target_clobbered_regs): Define.
11454         (init_set_costs): Initialize target_clobbered_regs.
11455         (estimate_reg_pressure_cost): Add call_p argument.  When true,
11456         adjust the number of available registers to exclude the
11457         call-clobbered registers.
11458         * cfgloop.h (target_clobbered_regs): Declare.
11459         (estimate_reg_pressure_cost): Adjust declaration.
11460         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
11461         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
11462         (determine_set_costs): Dump target_clobbered_regs.
11463         (loop_body_includes_call): New function.
11464         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
11465         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
11466         call_p flag through.
11467         (best_gain_for_invariant): Likewise.
11468         (find_invariants_to_move): Likewise.
11469         (move_single_loop_invariants): Likewise, using already-computed
11470         has_call field.
11471
11472 2010-07-10  Richard Guenther  <rguenther@suse.de>
11473             Joern Rennecke  <joern.rennecke@embecosm.com>
11474
11475         PR debug/44832
11476         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
11477         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
11478         unless they have DECL_IGNORED_P set.
11479
11480 2010-07-10  Richard Guenther  <rguenther@suse.de>
11481
11482         PR lto/44889
11483         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
11484         helper function.
11485         (gimple_types_compatible_p): Similar to pointed-to
11486         types allow and merge a mix of complete and incomplete aggregate.
11487         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
11488         (iterative_hash_gimple_type): Adjust for that.
11489
11490 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
11491
11492         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
11493
11494 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
11495
11496         PR objc/44140
11497         * config/darwin.c (output_objc_section_asm_op): Save and restore
11498         section when outputting ObjC section list.
11499
11500 2010-07-09  Jan Hubicka  <jh@suse.cz>
11501
11502         * lto-streamer-out.c (produce_symtab): Do not write alias
11503         cgraph/varpool nodes.
11504
11505 2010-07-09  Jan Hubicka  <jh@suse.cz>
11506
11507         * tree-inline.c (declare_return_variable): Fix ICE while
11508         inlining DECL_BY_VALUE function not in SSA form
11509
11510 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
11511
11512         PR tree-optimization/44576
11513         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
11514         New.  Pull out from is_loop_prefetching_profitable to implement
11515         the trip count to ahead ratio heuristic.
11516         (mem_ref_count_reasonable_p): New.  Pull out from
11517         is_loop_prefetching_profitable to implement the instruction to
11518         memory reference ratio heuristic.  Also consider not reasonable if
11519         the memory reference count is above a threshold (to avoid
11520         explosive compilation time.
11521         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
11522         is_loop_prefetching_profitable to implement the instruction to
11523         prefetch ratio heuristic.
11524         (is_loop_prefetching_profitable): Removed.
11525         (loop_prefetch_arrays): Distribute the cost analysis across the
11526         function to allow early exit of the prefetch analysis.
11527         is_loop_prefetching_profitable is splitted into three functions,
11528         with each one called as early as possible.
11529         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
11530         number of memory references in a loop is considered too many.
11531
11532 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
11533
11534         * reload.c (find_reloads): Don't clear badop if we have a winreg
11535         alternative, but not win, and the class only has fixed regs.
11536         * hard-reg-set.h (class_only_fixed_regs): Declare.
11537         * reginfo.c (class_only_fixed_regs): New array.
11538         (init_reg_sets_1): Initialize it.
11539         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
11540         discourage alternatives using the stack pointer.
11541
11542         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
11543
11544         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
11545
11546         * config/arm/arm.md (cbranchqi4): Fix array size.
11547         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
11548         calculating length.
11549
11550 2010-07-09  Richard Guenther  <rguenther@suse.de>
11551
11552         * gimple.c (struct type_fixup_s): New struct and VEC type.
11553         (gimple_register_type_fixups): New static global.
11554         (gimple_queue_type_fixup): New function.
11555         (gimple_types_compatible_p): Queue type fixups instead of
11556         applying them here.
11557         (gimple_register_type): Apply queued fixups for the
11558         canonical type.  Empty the type fixup queue.
11559
11560 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
11561
11562         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
11563         * configure: Regenerate.
11564         * config.in: Ditto.
11565
11566 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
11567             Denys Vlasenko  <dvlasenk@redhat.com>
11568             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11569
11570         PR tree-optimization/28632
11571         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
11572         (extract_range_from_binary_expr): Further optimize
11573         BIT_AND_EXPR and BIT_IOR_EXPR.
11574
11575 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
11576
11577         * tree-if-conv.c (fold_or_predicates): New.
11578         (add_to_predicate_list): Call it.
11579
11580 2010-07-09  Richard Guenther  <rguenther@suse.de>
11581
11582         PR middle-end/44890
11583         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
11584         if base is a pointer.
11585         * tree-cfg.c (verify_expr): Update MEM_REF checking.
11586
11587 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11588
11589         PR target/44877
11590         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
11591         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
11592         builtin mask for load/store builtins.
11593
11594 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
11595
11596         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
11597         for "lock addl".
11598         * configure: Regenerate.
11599         * config/i386/i386.c (ix86_print_operand) <case ';'>:
11600         Remove TARGET_MACHO.
11601
11602 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
11603
11604         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
11605         default ISA flags.
11606         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
11607
11608 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
11609
11610         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
11611
11612 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
11613
11614         * config/picochip/picochip.md (commsTestPort): Emit more
11615         efficient sequence for tstport instruction.
11616
11617 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
11618
11619         * config/i386/i386.c (ix86_veclib_handler): Make static.
11620
11621 2010-07-09  Richard Guenther  <rguenther@suse.de>
11622
11623         PR tree-optimization/44852
11624         * tree-ssa-alias.c: Include toplev.h for exact_log2.
11625         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
11626         in MEM_REF.
11627         (indirect_refs_may_alias_p): Likewise.
11628         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
11629
11630 2010-07-09  Richard Guenther  <rguenther@suse.de>
11631
11632         PR tree-optimization/44882
11633         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
11634         sets do conflict.
11635         (vectorizable_load): Likewise.
11636
11637 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
11638
11639         PR target/40657
11640         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
11641         All callers changed.
11642         Handle the case when we're called for the epilogue.
11643         (thumb_unexpanded_epilogue): Use it.
11644         (thumb1_expand_epilogue): Likewise.
11645
11646 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
11647
11648         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
11649         both ranges are range_int_cst_p with non-negative minimum,
11650         try harder to derive smaller range.
11651
11652 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11653
11654         * genrecog.c: Include diagnostic-core.h before toplev.h.
11655         * genoutput.c: Likewise.
11656         * genextract.c: Likewise.
11657         * genautomata.c: Likewise.
11658         * genemit.c: Likewise.
11659         * genpeep.c: Likewise.
11660         * genattrtab.c: Likewise.
11661         * genconditions.c: Likewise.
11662         * genpreds.c: Likewise.
11663
11664 2010-07-08  Andi Kleen  <ak@linux.intel.com>
11665
11666         * lto-section-in.c (lto_section_name): Add missing comma.
11667
11668 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
11669
11670         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
11671         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
11672         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
11673         (ia64_override_options): Rename to...
11674         (ia64_option_override): ... this one. Make static.
11675
11676 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11677
11678         PR middle-end/44843
11679         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
11680         pointed-to type of the offset in a MEM_REF to compute the alignment.
11681
11682 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
11683
11684         * final.c (final_scan_insn): Replace
11685         TARGET_UNWIND_INFO macro check by unwind_emit
11686         hook NULL check.
11687         * targhooks.c (default_unwind_emit): Removed.
11688         * targhooks.h (default_unwind_emit): Likewise.
11689         * target.def (unwind_emit): Set default value to NULL.
11690
11691         * config/i386/i386-protos.h (ix86_asm_output_function_label):
11692         New prototype.
11693         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
11694         for NULL fntype argument and allow 64-bit targets.
11695         (ix86_asm_output_function_label): New function.
11696         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
11697         (ix86_handle_fndecl_attribute): Likewise.
11698         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
11699         * doc/doc/tm.texi: Regenerated.
11700         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
11701         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
11702         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
11703         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
11704         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
11705         * config/elfos.h: Likewise.
11706         * config/i386/cygming.h: Likewise.
11707         * config/netbsd-aout.h: Likewise.
11708         * config/openbsd.h: Likewise.
11709         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
11710         by ix86_asm_output_function_label function call.
11711         * varasm.c (assemble_start_function): Use
11712         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
11713
11714 2010-07-08  Jan Hubicka  <jh@suse.cz>
11715
11716         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
11717         New function.
11718         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
11719         Declare.
11720         * ipa-cp.c (ipcp_estimate_growth): Use it.
11721         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
11722         Likewise.
11723
11724 2010-07-08  Jan Hubicka  <jh@suse.cz>
11725
11726         * tree-inline.c (declare_return_variable): Allocate annotation for new
11727         temporary.
11728
11729 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11730
11731         PR tree-optimization/44710
11732         * tree-if-conv.c (parse_predicate): New.
11733         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
11734         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
11735
11736 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11737
11738         * common.opt (ftree-loop-if-convert): New flag.
11739         * doc/invoke.texi (ftree-loop-if-convert): Documented.
11740         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
11741         when flag_tree_loop_if_convert is set.
11742
11743 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
11744
11745         * config/i386/i386.c: Use short syntax for function calls
11746         through function pointers.
11747         * config/i386/i386.md: Ditto.
11748
11749 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11750
11751         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
11752
11753 2010-07-08  Richard Guenther  <rguenther@suse.de>
11754
11755         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
11756         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
11757
11758 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
11759
11760         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
11761         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
11762         (loc_list_from_tree): Likewise.
11763         (output_loc_operands): Handle outputting DW_OP_const[48]u
11764         with loc->dtprel set.
11765         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
11766
11767 2010-07-08  Jan Hubicka  <jh@suse.cz>
11768
11769         * ipa.c: Include pointer-set.h
11770         (cgraph_externally_visible_p): New attribute ALIASED;
11771         when in LTO, hidden symbols are local unless they are aliased.
11772         (function_and_variable_visibility): Compute aliased nodes;
11773         handle LTO and hidden symbol on functions and vars.
11774         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
11775         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
11776
11777 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11778
11779         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11780         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11781         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11782         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11783         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11784         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
11785         (ix86_gen_probe_stack_range): Likewise.
11786         (override_options): Set them.
11787         (ix86_target_stack_probe): New function.
11788         (ix86_compute_frame_layout): Force use of push instructions to
11789         save registers if stack checking with probes is enabled.
11790         (get_scratch_register_on_entry): New function.
11791         (release_scratch_register_on_entry): Likewise.
11792         (ix86_adjust_stack_and_probe): Likewise.
11793         (output_adjust_stack_and_probe): Likewise.
11794         (ix86_emit_probe_stack_range): Likewise.
11795         (output_probe_stack_range): Likewise.
11796         (ix86_expand_prologue): Emit stack checking code if static built-in
11797         stack checking is enabled.
11798         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
11799         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
11800         (output_adjust_stack_and_probe): Likewise.
11801         (output_probe_stack_range): Likewise.
11802         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11803         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
11804         TARGET_STACK_PROBE.
11805         (allocate_stack_worker_64): Likewise.
11806         (allocate_stack): Likewise.
11807         (adjust_stack_and_probe): New insn.
11808         (probe_stack_range): Likewise.
11809
11810 2010-07-08  Richard Guenther  <rguenther@suse.de>
11811
11812         PR tree-optimization/44831
11813         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
11814         a MEM_REF preserving TBAA info of the original dereference.
11815         Dereference the original pointer if the address is not invariant.
11816         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
11817         at least one invariant address that we are going to dereference.
11818
11819 2010-07-08  Richard Guenther  <rguenther@suse.de>
11820
11821         PR tree-optimization/44861
11822         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
11823         information when building MEM_REFs.
11824         (vectorizable_load): Likewise.
11825         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
11826
11827 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11828
11829         * config/sol2-c.c: Do not include diagnostic-core.h.
11830
11831 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11832
11833         PR bootstrap/44768
11834         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
11835         with respect to current_function_decl. Pass decl of the function.
11836         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
11837         * ipa-inline.c (compute_inline_parameters): Pass decl to
11838         estimated_stack_frame_size.
11839
11840 2010-07-08  Richard Guenther  <rguenther@suse.de>
11841
11842         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
11843         New function.
11844         (valueize_refs): Call it.
11845
11846 2010-07-08  Richard Guenther  <rguenther@suse.de>
11847
11848         PR rtl-optimization/44838
11849         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
11850         SSA form do not use pointer equivalence.
11851
11852 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11853
11854         * dwarf2out.c (AT_linkage_name): Delete.
11855         (add_linkage_attr): New function.
11856         (add_linkage_name): Call it to emit the linkage attribute.
11857         (dwarf2out_finish): Likewise.
11858         (move_linkage_attr): Explicitly accept both attribute variants.
11859
11860 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11861
11862         * toplev.h: Do not include diagnostic-core.h.
11863         Include diagnostic-core.h in every file that includes toplev.h.
11864         * c-tree.h: Do not include toplev.h.
11865         * pretty-print.h: Update comment.
11866         * Makefile.in: Update dependencies.
11867         * alias.c: Include diagnostic-core.h in every file that includes
11868         toplev.h.
11869         * attribs.c: Likewise.
11870         * auto-inc-dec.c: Likewise.
11871         * bb-reorder.c: Likewise.
11872         * bt-load.c: Likewise.
11873         * caller-save.c: Likewise.
11874         * calls.c: Likewise.
11875         * cfg.c: Likewise.
11876         * cfganal.c: Likewise.
11877         * cfgbuild.c: Likewise.
11878         * cfgcleanup.c: Likewise.
11879         * cfghooks.c: Likewise.
11880         * cfgloop.c: Likewise.
11881         * combine.c: Likewise.
11882         * config/alpha/alpha.c: Likewise.
11883         * config/arc/arc.c: Likewise.
11884         * config/arm/arm.c: Likewise.
11885         * config/arm/pe.c: Likewise.
11886         * config/avr/avr.c: Likewise.
11887         * config/bfin/bfin.c: Likewise.
11888         * config/cris/cris.c: Likewise.
11889         * config/crx/crx.c: Likewise.
11890         * config/darwin-c.c: Likewise.
11891         * config/darwin.c: Likewise.
11892         * config/fr30/fr30.c: Likewise.
11893         * config/frv/frv.c: Likewise.
11894         * config/h8300/h8300.c: Likewise.
11895         * config/host-darwin.c: Likewise.
11896         * config/i386/i386.c: Likewise.
11897         * config/i386/netware.c: Likewise.
11898         * config/i386/nwld.c: Likewise.
11899         * config/i386/winnt-cxx.c: Likewise.
11900         * config/i386/winnt-stubs.c: Likewise.
11901         * config/i386/winnt.c: Likewise.
11902         * config/ia64/ia64-c.c: Likewise.
11903         * config/ia64/ia64.c: Likewise.
11904         * config/iq2000/iq2000.c: Likewise.
11905         * config/lm32/lm32.c: Likewise.
11906         * config/m32c/m32c-pragma.c: Likewise.
11907         * config/m32c/m32c.c: Likewise.
11908         * config/m32r/m32r.c: Likewise.
11909         * config/m68hc11/m68hc11.c: Likewise.
11910         * config/m68k/m68k.c: Likewise.
11911         * config/mcore/mcore.c: Likewise.
11912         * config/mep/mep-pragma.c: Likewise.
11913         * config/mep/mep.c: Likewise.
11914         * config/mmix/mmix.c: Likewise.
11915         * config/mn10300/mn10300.c: Likewise.
11916         * config/moxie/moxie.c: Likewise.
11917         * config/pa/pa.c: Likewise.
11918         * config/pdp11/pdp11.c: Likewise.
11919         * config/picochip/picochip.c: Likewise.
11920         * config/rs6000/rs6000-c.c: Likewise.
11921         * config/rs6000/rs6000.c: Likewise.
11922         * config/rx/rx.c: Likewise.
11923         * config/s390/s390.c: Likewise.
11924         * config/score/score.c: Likewise.
11925         * config/score/score3.c: Likewise.
11926         * config/score/score7.c: Likewise.
11927         * config/sh/sh.c: Likewise.
11928         * config/sh/symbian-base.c: Likewise.
11929         * config/sh/symbian-c.c: Likewise.
11930         * config/sh/symbian-cxx.c: Likewise.
11931         * config/sol2-c.c: Likewise.
11932         * config/sol2.c: Likewise.
11933         * config/sparc/sparc.c: Likewise.
11934         * config/spu/spu.c: Likewise.
11935         * config/stormy16/stormy16.c: Likewise.
11936         * config/v850/v850-c.c: Likewise.
11937         * config/v850/v850.c: Likewise.
11938         * config/vax/vax.c: Likewise.
11939         * config/vxworks.c: Likewise.
11940         * config/xtensa/xtensa.c: Likewise.
11941         * convert.c: Likewise.
11942         * cse.c: Likewise.
11943         * cselib.c: Likewise.
11944         * dbgcnt.c: Likewise.
11945         * dbxout.c: Likewise.
11946         * ddg.c: Likewise.
11947         * dominance.c: Likewise.
11948         * emit-rtl.c: Likewise.
11949         * explow.c: Likewise.
11950         * expmed.c: Likewise.
11951         * fixed-value.c: Likewise.
11952         * fold-const.c: Likewise.
11953         * fwprop.c: Likewise.
11954         * gcse.c: Likewise.
11955         * ggc-common.c: Likewise.
11956         * ggc-page.c: Likewise.
11957         * ggc-zone.c: Likewise.
11958         * gimple-low.c: Likewise.
11959         * gimplify.c: Likewise.
11960         * graph.c: Likewise.
11961         * haifa-sched.c: Likewise.
11962         * ifcvt.c: Likewise.
11963         * implicit-zee.c: Likewise.
11964         * integrate.c: Likewise.
11965         * ira-build.c: Likewise.
11966         * ira-color.c: Likewise.
11967         * ira-conflicts.c: Likewise.
11968         * ira-costs.c: Likewise.
11969         * ira-lives.c: Likewise.
11970         * ira.c: Likewise.
11971         * lists.c: Likewise.
11972         * loop-doloop.c: Likewise.
11973         * loop-iv.c: Likewise.
11974         * lto-opts.c: Likewise.
11975         * lto-symtab.c: Likewise.
11976         * main.c: Likewise.
11977         * modulo-sched.c: Likewise.
11978         * optabs.c: Likewise.
11979         * params.c: Likewise.
11980         * plugin.c: Likewise.
11981         * postreload-gcse.c: Likewise.
11982         * postreload.c: Likewise.
11983         * predict.c: Likewise.
11984         * profile.c: Likewise.
11985         * real.c: Likewise.
11986         * regcprop.c: Likewise.
11987         * reginfo.c: Likewise.
11988         * regmove.c: Likewise.
11989         * reorg.c: Likewise.
11990         * resource.c: Likewise.
11991         * rtl.c: Likewise.
11992         * rtlanal.c: Likewise.
11993         * sched-deps.c: Likewise.
11994         * sched-ebb.c: Likewise.
11995         * sched-rgn.c: Likewise.
11996         * sdbout.c: Likewise.
11997         * sel-sched-dump.c: Likewise.
11998         * sel-sched-ir.c: Likewise.
11999         * simplify-rtx.c: Likewise.
12000         * stmt.c: Likewise.
12001         * stor-layout.c: Likewise.
12002         * store-motion.c: Likewise.
12003         * targhooks.c: Likewise.
12004         * tree-cfg.c: Likewise.
12005         * tree-cfgcleanup.c: Likewise.
12006         * tree-dump.c: Likewise.
12007         * tree-eh.c: Likewise.
12008         * tree-inline.c: Likewise.
12009         * tree-nomudflap.c: Likewise.
12010         * tree-object-size.c: Likewise.
12011         * tree-optimize.c: Likewise.
12012         * tree-outof-ssa.c: Likewise.
12013         * tree-phinodes.c: Likewise.
12014         * tree-profile.c: Likewise.
12015         * tree-ssa-ccp.c: Likewise.
12016         * tree-ssa-coalesce.c: Likewise.
12017         * tree-ssa-live.c: Likewise.
12018         * tree-ssa-loop-niter.c: Likewise.
12019         * tree-ssa-loop-prefetch.c: Likewise.
12020         * tree-ssa-loop.c: Likewise.
12021         * tree-ssa-structalias.c: Likewise.
12022         * tree-ssa-uninit.c: Likewise.
12023         * tree-ssa.c: Likewise.
12024         * tree-vect-data-refs.c: Likewise.
12025         * tree-vect-loop-manip.c: Likewise.
12026         * tree-vect-loop.c: Likewise.
12027         * tree-vect-patterns.c: Likewise.
12028         * tree-vect-stmts.c: Likewise.
12029         * tree-vrp.c: Likewise.
12030         * varasm.c: Likewise.
12031         * vec.c: Likewise.
12032         * web.c: Likewise.
12033         * xcoffout.c: Likewise.
12034
12035 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
12036
12037         * gengtype.c (write_field_root): New function.
12038         (write_root): Use it.
12039
12040 2010-07-07  Wei Guozhi  <carrot@google.com>
12041
12042         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
12043         of lowest bits to lshift/compare): Add a missing line.
12044
12045 2010-07-07  Wei Guozhi  <carrot@google.com>
12046
12047         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
12048         of lowest bits to lshift/compare): New.
12049
12050 2010-07-07  Tom Tromey  <tromey@redhat.com>
12051
12052         * doc/tm.texi: Update.
12053         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
12054         Add @hook.
12055         * target.def (want_debug_pub_sections): New hook.
12056         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
12057         * dwarf2out.c (add_pubname_string): Check
12058         targetm.want_debug_pub_sections.
12059         (add_pubname): Likewise.
12060         (add_pubtype): Likewise.
12061
12062 2010-07-07  Jie Zhang  <jie@codesourcery.com>
12063
12064         * genautomata.c (output_automata_list_min_issue_delay_code):
12065         Correctly decompress min_issue_delay.
12066
12067 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
12068
12069         PR rtl-optimization/44404
12070         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
12071         possible, use reg_overlap_mentioned_p instead.
12072
12073 2010-07-07  Duncan Sands  <baldrick@free.fr>
12074
12075         PR middle-end/41355
12076         * tree.c (build_function_type_skip_args): Copy the original type using
12077         build_distinct_type_copy rather than copy_node.
12078
12079 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
12080
12081         PR target/44850
12082         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
12083         revision 161876.
12084         (ix86_expand_prologue): Likewise.
12085         (ix86_handle_fndecl_attribute): Likewise.
12086         (ix86_asm_declare_function_name): Likewise.
12087         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12088         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12089         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
12090         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
12091         * doc/extend.texi: Likewise.
12092
12093 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
12094
12095         PR target/44844
12096         * config/i386/i386.md (rdrand<mode>): Changed to expand to
12097         retry if the carry flag isn't valid.
12098         (rdrand<mode>_1): New.
12099
12100 2010-07-07  Richard Guenther  <rguenther@suse.de>
12101
12102         PR middle-end/44790
12103         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
12104         for expanding the constant offset for MEM_REFs.
12105
12106 2010-07-07  Richard Guenther  <rguenther@suse.de>
12107
12108         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
12109         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
12110         * gimple.h (is_gimple_operand): Remove.
12111         * gimple.c (is_gimple_operand): Likewise.
12112         (walk_gimple_op): Fix wi->val_only setting for calls.
12113         * tree-cfg.c (verify_gimple_call): Fix argument validation.
12114         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
12115         invalid gimple calls.
12116
12117 2010-07-06  Jan Hubicka  <jh@suse.cz>
12118
12119         * lto-cgraph.c (output_cgraph): Add missing declaration.
12120
12121 2010-07-06  Jan Hubicka  <jh@suse.cz>
12122
12123         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
12124         partition.
12125
12126 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
12127
12128         * doc/gimple.texi (GIMPLE_DEBUG): Document.
12129         * doc/rtl.texi (Debug Information): New node.
12130         (NOTE_INSN_VAR_LOCATION): Document.
12131         (debug_insn): Likewise.
12132         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
12133
12134 2010-07-07  Jan Hubicka  <jh@suse.cz>
12135
12136         With parts by Richard Guenther.
12137
12138         PR middle-end/44813
12139         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
12140         for functions passed by reference.
12141         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
12142         in memory when passed by reference.
12143         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
12144         beggining.
12145         * ipa-split.c (split_function): Cleanup way return value is passed;
12146         handle SSA DECL_BY_REFERENCE retvals.
12147         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
12148         DECL_BY_REFERENCE is set.
12149         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
12150         find_what_p_points_to): Handle RESULT_DECL.
12151         * tree-inline.c (declare_return_variable): Get new entry_block argument;
12152         when passing by reference ensure that RESULT_DECL is gimple_val.
12153         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
12154         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
12155
12156 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
12157
12158         PR rtl-optimization/44787
12159         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
12160         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
12161
12162 2010-07-06  Jan Hubicka  <jh@suse.cz>
12163
12164         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
12165         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
12166         with body can prevail.
12167         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
12168         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
12169         * cgraph.c (cgraph_get_node_or_alias): New function.
12170         * cgraph.h (cgraph_get_node_or_alias): Declare.
12171
12172 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
12173
12174         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
12175         support.
12176         (ix86_expand_prologue): Likewise.
12177         (ix86_handle_fndecl_attribute): Likewise.
12178         (ix86_asm_declare_function_name): New function for
12179         ASM_DECLARE_FUNCTION_NAME.
12180         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
12181         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
12182         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
12183         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
12184         * doc/extend.texi: Adjust documentation about ms_hook_prologue
12185         attribute.
12186
12187 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
12188
12189         * config/i386/i386.md (immediate_operand): New mode attribute.
12190
12191         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
12192         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
12193         using P mode iterator.
12194         (pro_epilogue_adjust_stack_di_2): Rename from
12195         pro_epilogue_adjust_stack_rex64_2.
12196
12197         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
12198
12199 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
12200
12201         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
12202         through gen_mov_insv_1 function pointer.
12203         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
12204         gen_truncxf<mode>2 through gen_truncxf function pointer.
12205         (remainder<mode>3): Ditto.
12206         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
12207         (allocate_stack): Call gen_allocate_stack_worker_64 or
12208         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
12209         function pointer.
12210         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
12211         function pointer.
12212
12213 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
12214
12215         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
12216         operand constraint instead of <r><i>m.
12217
12218 2010-07-06  Richard Guenther  <rguenther@suse.de>
12219
12220         PR middle-end/44828
12221         * convert.c (convert_to_integer): Watch out for overflowing
12222         MULT_EXPR as well.
12223
12224 2010-07-05  Jan Hubicka  <jh@suse.cz>
12225
12226         * lto-streamer.c (write_symbol_vec): Rename to ...
12227         (write_symbol) ... this one; write only symbol given and when
12228         present in cache. Sanity check that what is defined is present
12229         in cgraph/varpool with body/finalized decl.
12230         (write_symbols_of_kind): Remove.
12231         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
12232         pairs to produce symtab.
12233         (produce_asm_for_decls): Update call of produce_symtab; don't do so
12234         when doing WPA streaming.
12235
12236 2010-07-05  Jan Hubicka  <jh@suse.cz>
12237
12238         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
12239         function is still available to fold into.
12240
12241 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
12242
12243         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
12244         * function.h (struct_function): Change type of local_decls field
12245         to a VEC.
12246         (add_local_decl): New function.
12247         (FOR_EACH_LOCAL_DECL): New macro.
12248         * cfgexpand.c (init_vars_expansion): Adjust for new type of
12249         cfun->local_decls.
12250         (estimated_stack_frame_size): Likewise.
12251         (expand_used_vars): Likewise.
12252         * cgraphbuild.c (build_cgraph_edges): Likewise.
12253         * function.c (instantiate_decls_1): Likewise.
12254         * ipa-struct-reorg.c (build_data_structure): Likewise.
12255         * ipa-type-escape.c (analyze_function): Likewise.
12256         * lto-streamer-in.c (input_function): Likewise.
12257         * lto-streamer-out.c (output_function): Likewise.
12258         * tree-ssa-live.c (remove_unused_locals): Likewise.
12259         * tree.c (free_lang_data_in_decl): Likewise.
12260         (find_decls_types_in_node): Likewise.
12261         * omp-low.c (remove_exit_barrier): Likewise.
12262         (expand_omp_taskreg): Likewise.
12263         (list2chain): Rename to...
12264         (vec2chain): ...this.  Adjust.
12265         * cgraphunit.c (assemble_thunk): Call add_local_decl.
12266         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
12267         * gimple-low.c (record_vars_into): Likewise.
12268         * tree-inline.c (remap_decls): Likewise.
12269         (declare_return_variable): Likewise.
12270         (declare_inline_vars): Likewise.
12271         (copy_forbidden): Adjust for new type of cfun->local_decls.
12272         (add_local_variables): New function.
12273         (expand_call_inline): Call it.
12274         (tree_function_versioning): Likewise.
12275
12276 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12277
12278         AVX Programming Reference (June, 2010)
12279         * config/i386/cpuid.h (bit_F16C): New.
12280         (bit_RDRND): Likewise.
12281         (bit_FSGSBASE): Likewise.
12282
12283         * config/i386/i386-builtin-types.def: Add
12284         "DEF_FUNCTION_TYPE (UINT16)", function types for
12285         float16 <-> float conversions and
12286         "DEF_FUNCTION_TYPE (VOID, UINT64)".
12287
12288         * config/i386/i386-c.c (ix86_target_macros_internal): Support
12289         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
12290         OPTION_MASK_ISA_F16C.
12291
12292         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
12293         (OPTION_MASK_ISA_RDRND_SET): Likewise.
12294         (OPTION_MASK_ISA_F16C_SET): Likewise.
12295         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
12296         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
12297         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
12298         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
12299         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
12300         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
12301         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
12302         (override_options): Handle them.
12303         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
12304         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
12305         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
12306         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
12307         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
12308         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
12309         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
12310         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
12311         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
12312         (bdesc_args): Likewise.
12313         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
12314         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
12315         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
12316         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
12317         Handle non-memory store.
12318
12319         * config/i386/i386.h (TARGET_FSGSBASE): New.
12320         (TARGET_RDRND): Likewise.
12321         (TARGET_F12C): Likewise.
12322
12323         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
12324         (UNSPEC_VCVTPS2PH): Likewise.
12325         (UNSPECV_RDFSBASE): Likewise.
12326         (UNSPECV_RDGSBASE): Likewise.
12327         (UNSPECV_WRFSBASE): Likewise.
12328         (UNSPECV_WRGSBASE): Likewise.
12329         (UNSPECV_RDRAND): Likewise.
12330         (rdfsbase<mode>): Likewise.
12331         (rdgsbase<mode>): Likewise.
12332         (wrfsbase<mode>): Likewise.
12333         (wrgsbase<mode>): Likewise.
12334         (rdrand<mode>): Likewise.
12335
12336         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
12337
12338         * config/i386/immintrin.h (_rdrand_u16): New.
12339         (_rdrand_u32): Likewise.
12340         (_readfsbase_u32): Likewise.
12341         (_readfsbase_u64): Likewise.
12342         (_readgsbase_u32): Likewise.
12343         (_readgsbase_u64): Likewise.
12344         (_writefsbase_u32): Likewise.
12345         (_writefsbase_u64): Likewise.
12346         (_writegsbase_u32): Likewise.
12347         (_writegsbase_u64): Likewise.
12348         (_rdrand_u64): Likewise.
12349         (_cvtsh_ss): Likewise.
12350         (_mm_cvtph_ps): Likewise.
12351         (_mm256_cvtph_ps): Likewise.
12352         (_cvtss_sh): Likewise.
12353         (_mm_cvtps_ph): Likewise.
12354         (_mm256_cvtps_ph): Likewise.
12355
12356         * config/i386/sse.md (vcvtph2ps): New.
12357         (*vcvtph2ps_load): Likewise.
12358         (vcvtph2ps256): Likewise.
12359         (vcvtps2ph): Likewise.
12360         (*vcvtps2ph): Likewise.
12361         (*vcvtps2ph_store): Likewise.
12362         (vcvtps2ph256): Likewise.
12363
12364         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
12365
12366         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
12367
12368 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
12369
12370         PR bootstrap/44512
12371         * genenums.c (main): Output include of insn-constants.h
12372         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
12373
12374 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
12375
12376         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
12377         (override_options): Initialize it.
12378         (ix86_expand_prologue): Use it.
12379
12380 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
12381
12382         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
12383
12384 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
12385
12386         * double-int.h (fit_double_type): Remove declaration.
12387         * double-int.c (fit_double_type): Remove function.
12388         * tree.h (int_fits_type_p): Adjust prototype.
12389         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
12390         instead of fit_double_type.
12391         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
12392         instead of fit_double_type and build_int_cst_wide.
12393         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
12394         instead of fit_double_type and build_int_cst_wide.
12395         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
12396         of fit_double_type.
12397
12398 2010-07-05  Jan Hubicka  <jh@suse.cz>
12399
12400         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
12401         in_other_partition.
12402         * lto-cgraph.c (referenced_from_other_partition_p,
12403         reachable_from_other_partition_p): Use in_other_partition flags.
12404         (output_node, output_varpool_node): COMDAT nodes always have private
12405         copies and thus are never used from other partition.
12406
12407 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
12408
12409         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
12410         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
12411         * config/ia64/ia64.c Include reload.h.
12412         (ia64_memory_move_cost): New function.
12413         (TARGET_MEMORY_MOVE_COST): Define.
12414         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
12415         memory_move_cost.
12416
12417 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
12418
12419         PR middle-end/42505
12420         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
12421         comments about cost model.
12422         (try_add_cand_for):  Add second strategy for choosing initial set
12423         based on original IVs, controlled by ORIGINALP argument.
12424         (get_initial_solution): Add ORIGINALP argument.
12425         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
12426         (find_optimal_iv_set): Try two different strategies for choosing
12427         the IV set, and return the one with lower cost.
12428
12429 2010-07-05  Richard Guenther  <rguenther@suse.de>
12430
12431         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
12432
12433 2010-07-05  Richard Guenther  <rguenther@suse.de>
12434
12435         * tree.c (reference_alias_ptr_type): New function.
12436         * tree.h (reference_alias_ptr_type): Declare.
12437         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
12438         allow non-TARGET_MEM_REF new refs.
12439         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
12440         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
12441         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
12442         (create_mem_ref): Get alias pointer type.  Adjust calls to
12443         create_mem_ref_raw.
12444         (maybe_fold_tmr): Likewise.
12445         * tree-flow.h (create_mem_ref): Adjust prototype.
12446
12447 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
12448
12449         PR c++/44808
12450         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
12451         *from_p is VAR_DECL.
12452
12453 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
12454
12455         * tree.h (build_call_list): Remove.
12456         * tree.c (build_call_list): Remove.
12457
12458 2010-07-05  Richard Guenther  <rguenther@suse.de>
12459
12460         * double-int.h (double_int_sub): Declare.
12461         * double-int.c (double_int_sub): New function.
12462         * dwarf2out.c (field_byte_offset): Use it.
12463         * fixed-value.c (do_fixed_add): Likewise.
12464         (do_fixed_multiply): Likewise.
12465         (do_fixed_divide): Likewise.
12466         * tree-predcom.c (add_ref_to_chain): Likewise.
12467         (determine_roots_comp): Likewise.
12468         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12469
12470 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
12471
12472         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
12473         implementations.
12474
12475 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
12476
12477         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
12478         * arm-modes.def (CC_NOTB): Don't define.
12479         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
12480         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
12481         (LTUGEU): New code_iterator.
12482         (cnb, optab): New corresponding code_attrs.
12483         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
12484         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
12485         using LTUGEU.
12486         (addsi3_carryin_shift_<optab>): Likewise.
12487         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
12488         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
12489         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
12490         (subsi3_compare): Renamed from subsi3_compare0_c.
12491         Change CC_NOTB to CC.
12492         (arm_subsi3_insn): Allow constants for operand 0.
12493         (compare_scc peephole for eq case): New.
12494         (compare_scc splitters): Change CC_NOTB to CC.
12495
12496 2010-07-05  Richard Guenther  <rguenther@suse.de>
12497
12498         * tree-ssa-loop-im.c (for_each_index): Do not handle
12499         ALIGN_INDIRECT_REF.
12500         (gen_lsm_tmp_name): Likewise.
12501         * tree-dump.c (dequeue_and_dump): Likewise.
12502         * tree-pretty-print.c (dump_generic_node): Likewise.
12503         (op_code_prio): Likewise.
12504         (op_symbol_code): Likewise.
12505         * tree.c (staticp): Likewise.
12506         (build1_stat): Likewise.
12507         * tree.h (INDIRECT_REF_P): Likewise.
12508         * fold-const.c (maybe_lvalue_p): Likewise.
12509         (operand_equal_p): Likewise.
12510         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12511         (ao_ref_init_from_vn_reference): Likewise.
12512         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
12513         (find_interesting_uses_address): Likewise.
12514         * dwarf2out.c (loc_list_from_tree): Likewise.
12515         * gimplify.c (gimplify_expr): Likewise.
12516         * tree-eh.c (tree_could_trap_p): Likewise.
12517         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12518         * cfgexpand.c (expand_debug_expr): Likewise.
12519         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
12520         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
12521         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
12522         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
12523         * tree-ssa-operands.c (get_expr_operands): Likewise.
12524         * expr.c (safe_from_p): Likewise.
12525         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
12526         * tree-vect-data-refs.c (vect_setup_realignment): Build
12527         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
12528         * tree-vect-stmts.c (vectorizable_load): Likewise.
12529         * tree.def (ALIGN_INDIRECT_REF): Remove.
12530
12531 2010-07-05  Richard Guenther  <rguenther@suse.de>
12532
12533         PR tree-optimization/44784
12534         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
12535         for inserted stmts.
12536         (find_or_generate_expression): Fix SCCVN insertion check.
12537
12538 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
12539
12540         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
12541         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
12542         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
12543         directives.
12544
12545 2010-07-05  Ira Rosen  <irar@il.ibm.com>
12546
12547         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
12548         statements that are not vectorized.
12549         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
12550         in INSIDE_COST.
12551
12552 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
12553
12554         PR bootstrap/44820
12555         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
12556
12557 2010-07-05  Richard Guenther  <rguenther@suse.de>
12558
12559         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
12560         RESULT_DECLs properly.
12561
12562 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         PR rtl-optimization/44695
12565         * config/i386/i386.md (extract_code): Removed.
12566         (<u>divmodqi4): Likewise.
12567         (divmodqi4): New.
12568         (udivmodqi4): Likewise.
12569         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
12570         (udivmodhiqi3): Likewise.
12571
12572 2010-07-04  Jan Hubicka  <jh@suse.cz>
12573
12574         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
12575
12576 2010-07-04  Jan Hubicka  <jh@suse.cz>
12577
12578         * cgraphunit.c (init_cgraph): Only initialize dump file if it
12579         is not already initialized.
12580
12581 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
12582
12583         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
12584         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
12585         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
12586         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
12587         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
12588         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
12589         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
12590         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
12591         (sync_new_nand_optab): Redefine as macros.
12592         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
12593         Delete.
12594         (direct_optab_index): New enum.
12595         (direct_optab_d): New structure.
12596         (direct_optab): New typedef.
12597         (direct_optab_table): Declare.
12598         (direct_optab_handler, set_direct_optab_handler): New functions.
12599         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
12600         (sync_lock_release_optab): New macros.
12601         * optabs.c (direct_optab_table): New variable.
12602         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
12603         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
12604         cmpstr_optab and cmpstrn_optab.
12605         (emit_conditional_move): Likewise for movcc_optab.
12606         (can_conditionally_move_p): Likewise for movcc_gen_code.
12607         (init_insn_codes): Clear direct_optab_table.
12608         (init_optabs): Don't initialize the new "direct optabs" here.
12609         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
12610         vcond_gen_code.
12611         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
12612         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
12613         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
12614         (expand_sync_operation): Likewise other sync_*_optabs.
12615         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
12616         to sync_compare_and_swap_optab.
12617         (expand_sync_lock_test_and_set): Use direct_optab_handler for
12618         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
12619         to the names of both.
12620         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
12621         cmpstr_optab and cmpstrn_optab.
12622         (expand_builtin_lock_release): Likewise sync_lock_release.
12623         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
12624         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
12625         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
12626         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
12627         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
12628         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
12629         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
12630         (sync_lock_test_and_set, sync_lock_release): Delete.
12631         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
12632         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
12633         * genopinit.c (optabs): Use set_direct_optab_handler for the new
12634         macro optabs.
12635         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
12636         the "optab" local variable.  Use direct_optab_handler for optab and
12637         sync_compare_and_swap_optab.
12638         * reload1.c (reload_in_optab, reload_out_optab): Delete.
12639         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
12640         reload_in_optab and reload_out_optab.
12641         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12642         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
12643         * config/pa/pa.c (pa_secondary_reload): Likewise.
12644         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
12645         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
12646         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
12647         (VMSupportsCS8_builtin): Likewise.
12648
12649 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
12650
12651         * optabs.h (optab_handlers): Change type of insn_code to int.
12652         (optab_handler, set_optab_handler, convert_optab_handler)
12653         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
12654         CODE_FOR_nothing".
12655         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
12656         (init_insn_codes): Zero both the above arrays.
12657         (init_optabs): Never call init_insn_codes first time around.
12658
12659 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
12660
12661         * optabs.h (optab_handler, convert_optab_handler): Turn into
12662         inline functions that return an insn code.
12663         (set_optab_handler, set_convert_optab_handler): New functions.
12664         * builtins.c: Replace optab_handler(X)->insn_code with
12665         optab_handler or set_optab_handler thoughout.  Likewise
12666         convert_optab_handler(X)->insn_code with convert_optab_handler
12667         and set_convert_optab_handler.
12668         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
12669         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
12670         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
12671         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
12672         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
12673         config/spu/spu.c: Likewise.
12674
12675 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
12676
12677         PR target/44531
12678         * config.gcc (sh*-*-*): Use regular expressions instead of
12679         the 'i' modifier for sed substitutions.
12680
12681 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
12682
12683         * gimple.c (gimple_body): Comments added.
12684
12685 2010-07-04  Richard Guenther  <rguenther@suse.de>
12686
12687         PR middle-end/44809
12688         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
12689         of an INDIRECT_REF.
12690
12691 2010-07-04  Richard Guenther  <rguenther@suse.de>
12692
12693         PR tree-optimization/44479
12694         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
12695         extra SSA name copy statements which preserves points-to
12696         information.
12697         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12698         Copy points-to information for all pointers.  Properly handle
12699         MEM_REFs.
12700         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
12701         copy statements.
12702         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
12703         dependency.
12704
12705 2010-07-04  Richard Guenther  <rguenther@suse.de>
12706
12707         PR middle-end/44785
12708         * tree-inline.c (initialize_inlined_parameters): Do not
12709         re-use pointer-map slot over remap_type call.
12710
12711 2010-07-04  Richard Guenther  <rguenther@suse.de>
12712
12713         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
12714
12715 2010-07-04  Richard Guenther  <rguenther@suse.de>
12716
12717         PR tree-optimization/44656
12718         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
12719         again after value-replacing in the defintions lhs.
12720
12721 2010-07-04  Ira Rosen  <irar@il.ibm.com>
12722             Revital Eres  <eres@il.ibm.com>
12723
12724         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
12725         Document new arguments.
12726         * doc/tm.texi: Regenerate.
12727         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
12728         Handle unaligned store.
12729         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
12730         * target.def (builtin_vectorization_cost): Add new arguments.
12731         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
12732         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
12733         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
12734         (vect_vfa_segment_size): Fix indentation.
12735         * tree-vectorizer.h (struct _vect_peel_info): New.
12736         (struct _vect_peel_extended_info): New.
12737         (struct _loop_vec_info): Add new field for peeling hash table and a
12738         macro for its access.
12739         (VECT_MAX_COST): Define.
12740         (vect_get_load_cost): Declare.
12741         (vect_get_store_cost, vect_get_known_peeling_cost,
12742         vect_get_single_scalar_iteraion_cost): Likewise.
12743         (vect_supportable_dr_alignment): Add new argument.
12744         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
12745         field.
12746         (destroy_loop_vec_info): Free peeling hash table.
12747         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
12748         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
12749         vect_analyze_slp. Fix indentation.
12750         (vect_get_single_scalar_iteraion_cost): New function.
12751         (vect_get_known_peeling_cost): Likewise.
12752         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
12753         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
12754         statement. Move outside cost calculation inside unknown peeling case.
12755         Call vect_get_known_peeling_cost for known amount of peeling.
12756         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
12757         reference to the print message of forced alignment.
12758         (vect_verify_datarefs_alignment): Update call to
12759         vect_supportable_dr_alignment.
12760         (vect_get_data_access_cost): New function.
12761         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
12762         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
12763         vect_peeling_hash_choose_best_peeling): Likewise.
12764         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
12765         to store all the accesses in the loop and find best possible access to
12766         align using peeling for known alignment case. For unknown alignment
12767         check if stores are preferred or if peeling is worthy.
12768         (vect_find_same_alignment_drs): Analyze pairs of loads too.
12769         (vect_supportable_dr_alignment): Add new argument and check aligned
12770         accesses according to it.
12771         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
12772         (cost_for_stmt): Call vect_get_stmt_cost.
12773         (vect_model_simple_cost): Likewise.
12774         (vect_model_store_cost): Call vect_get_stmt_cost. Call
12775         vect_get_store_cost to calculate the cost of the statement.
12776         (vect_get_store_cost): New function.
12777         (vect_model_load_cost): Call vect_get_stmt_cost. Call
12778         vect_get_load_cost to calculate the cost of the statement.
12779         (vect_get_load_cost): New function.
12780         (vectorizable_store): Update call to vect_supportable_dr_alignment.
12781         (vectorizable_load): Likewise.
12782         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
12783         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
12784         arguments. Handle unaligned store.
12785         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
12786         (rs6000_builtin_support_vector_misalignment): Return true for word and
12787         double word alignments for VSX.
12788         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
12789         vect_supportable_dr_alignment and builtin_vectorization_cost.
12790
12791 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12792
12793         PR target/44597
12794         * config/pa/predicates.md (prefetch_cc_operand): Remove.
12795         (prefetch_nocc_operand): Likewise.
12796         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
12797         (prefetch_20): New insn.
12798         (prefetch_cc): Remove.
12799         (prefetch_nocc): Likewise.
12800
12801 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12802
12803         * expr.c (vector_mode_valid_p): Move to c-common.c.
12804         * expr.h (vector_mode_valid_p): Do not declare here.
12805         * system.h: Poison GCC_EXPR_H in front-ends.
12806         * Makefile.in: Update dependencies.
12807
12808 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12809
12810         PR target/44705
12811         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
12812
12813 2010-07-03  Jan Hubicka  <jh@suse.cz>
12814
12815         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
12816         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
12817         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
12818         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
12819         Likewise.
12820
12821         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
12822         Update timevars.V
12823         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
12824         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
12825         TV_IPA_LTO_DECL_OUT): New.
12826         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
12827
12828 2010-07-03  Jan Hubicka  <jh@suse.cz>
12829
12830         * ipa-inline.c (update_edge_key): Break out from ...
12831         update_callers_keys): ... here;
12832         (update_callee_keys): Update only the edges from caller to callee.
12833         (update_all_calle_keys): Do what update_calle_keys did.
12834         (decide_inlining_of_small_functions): Avoid recomputing of all
12835         callees when badness increase.
12836
12837 2010-07-03  Jie Zhang  <jie@codesourcery.com>
12838
12839         * config/arm/arm.c (arm_attr_length_move_neon): New.
12840         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
12841         * config/arm/neon.md (define_mode_attr V_slen): Remove.
12842         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
12843         to compute length attribute.
12844
12845 2010-07-03  Jie Zhang  <jie@codesourcery.com>
12846
12847         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
12848         as predicate for operand 1 and remove its constraint.
12849         * config/arm/predicates.md (vfp_register_operand): New.
12850         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
12851         (*push_fp_multi): Likewise.
12852
12853 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
12854
12855         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
12856
12857 2010-07-03  Jan Hubicka  <jh@suse.cz>
12858
12859         * config/i386/i386.c (override_options): Revert accidental commit.
12860
12861 2010-07-02  Le-Chun Wu  <lcwu@google.com>
12862
12863         PR c++/44128
12864         * doc/invoke.texi: Update documentation of -Wshadow.
12865
12866 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
12867             Julian Brown  <julian@codesourcery.com>
12868             Sandra Loosemore  <sandra@codesourcery.com>
12869
12870         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
12871         comparisons.  Adjust to take both operands.
12872         (arm_select_cc_mode): Handle DImode comparisons.
12873         (arm_gen_compare_reg): Generate a scratch register for DImode
12874         comparisons which require one.  Use xor for Thumb equality checks.
12875         (arm_const_double_by_immediates): New.
12876         (arm_print_operand): Allow 'Q' and 'R' for constants.
12877         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
12878         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
12879         arm_canonicalize_comparison.
12880         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
12881         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
12882         prototype.
12883         (arm_const_double_by_immediates): Declare.
12884         * config/arm/constraints.md (Di): New constraint.
12885         * config/arm/predicates.md (arm_immediate_di_operand)
12886         (arm_di_operand, cmpdi_operand): New.
12887         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
12888         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
12889         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
12890         (cstoredi4): Handle non-Cirrus also.
12891
12892 2010-07-02  Julian Brown  <julian@codesourcery.com>
12893             Sandra Loosemore  <sandra@codesourcery.com>
12894
12895         PR target/43703
12896         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
12897         (smax<mode>3): Disable for NEON float modes when
12898         flag_unsafe_math_optimizations is false.
12899         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
12900         (*mul<mode>3_neon)
12901         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
12902         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
12903         for NEON float modes when flag_unsafe_math_optimizations is false.
12904         (quad_halves_<code>v4sf): Only enable if
12905         flag_unsafe_math_optimizations is true.
12906         * doc/invoke.texi (ARM Options): Add note about floating point
12907         vectorization requiring -funsafe-math-optimizations.
12908
12909 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12910             Julian Brown  <julian@codesourcery.com>
12911
12912         * config/arm/neon.md (UNSPEC_VABA): Delete.
12913         (UNSPEC_VABAL): Delete.
12914         (UNSPEC_VABS): Delete.
12915         (UNSPEC_VMUL_N): Delete.
12916         (adddi3_neon): New.
12917         (subdi3_neon): New.
12918         (mul<mode>3add<mode>_neon): Make the pattern named.
12919         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
12920         (neon_vadd<mode>): Replace with define_expand, and move the remaining
12921         unspec parts...
12922         (neon_vadd<mode>_unspec): ...to this.
12923         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
12924         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
12925         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
12926         (neon_vaba<mode>): Rewrite in terms of vabd.
12927         (neon_vabal<mode>): Rewrite in terms of vabdl.
12928         (neon_vabs<mode>): Rewrite without unspec.
12929         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
12930         (*arm_subdi3): Likewise.
12931         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
12932         No_op attribute to disable assembly output checks.
12933         * config/arm/arm_neon.h: Regenerated.
12934         * doc/arm-neon-intrinsics.texi: Regenerated.
12935
12936 2010-07-02  Jan Hubicka  <jh@suse.cz>
12937
12938         * ipa-split.c (split_function): For aggregate values, set the return
12939         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
12940         *<retval> = fncall.part ().
12941         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
12942
12943 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12944
12945         * config/arm/neon.md (UNSPEC_VAND): Delete.
12946         (UNSPEC_VBIC): Delete.
12947         (UNSPEC_VCLZ): Delete.
12948         (UNSPEC_VCNT): Delete.
12949         (UNSPEC_VEOR): Delete.
12950         (UNSPEC_VORN): Delete.
12951         (UNSPEC_VORR): Delete.
12952         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
12953         core registers too.
12954         (anddi3_neon): Likewise.
12955         (orndi3_neon): Likewise.
12956         (bicdi3_neon): Likewise.
12957         (xordi3_neon): Likewise.
12958         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
12959         rid of unspec and handle unused operand.
12960         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
12961         * config/arm/predicates.md (imm_for_neon_logic_operand):
12962         Require TARGET_NEON.
12963         (imm_for_neon_inv_logic_operand): Likewise.
12964         * config/arm/arm.md (define_split for logical_binary_operator):
12965         Disable for NEON registers.
12966         (anddi3): Add new define_expand, and rename the insn.  Disable
12967         this insn for NEON, where anddi3_neon now applies.
12968         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
12969         (iordi3): As for anddi3.
12970         (xordi3): Likewise.
12971         * config/arm/neon.ml (Vand): Split DImode variants and mark them
12972         as No_op to disable testing for exact instruction match.
12973         (Vorr): Likewise.
12974         (Veor): Likewise.
12975         (Vbic): Likewise.
12976         (Vorn): Likewise.
12977         * config/arm/arm_neon.h: Regenerated.
12978         * doc/arm-neon-intrinsics.texi: Regenerated.
12979
12980 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12981
12982         * expr.h (emit_stack_probe): Declare.
12983         * explow.c (emit_stack_probe): Make global.
12984         (anti_adjust_stack_and_probe): Fix comments.
12985         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12986         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12987         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12988         * config/sparc/sparc.c: Include except.h.
12989         (sparc_emit_probe_stack_range): New function.
12990         (output_probe_stack_range): Likewise.
12991         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
12992         built-in stack checking is enabled.
12993         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
12994         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12995         (probe_stack_range): New insn.
12996
12997 2010-07-02  Richard Guenther  <rguenther@suse.de>
12998
12999         PR target/43958
13000         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
13001         for argument alignment.
13002
13003 2010-07-02  Jan Hubicka  <jh@suse.cz>
13004
13005         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
13006         walk backwards from entry_bb to check only those basic block of header
13007         that might lead to execution of split part.
13008         (consider_split) ... here.
13009         (find_return_bb): Allow assignment in return BB.
13010         (find_retval): New.
13011         (split_function): Fix name of cloned function; take care of updating
13012         return value in return_bb containing move.
13013
13014 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
13015
13016         PR target/44771
13017         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
13018         used variable insn.
13019
13020 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
13021
13022         * implicit-zee.c (combine_reaching_defs): Fix long lines.
13023         (is_set_with_extension_DI): Delete.
13024         (struct zero_extend_info): New structure.
13025         (add_removable_zero_extend): New function.
13026         (find_removable_zero_extends): Use note_stores to find SETs.
13027         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
13028
13029 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
13030
13031         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
13032         is_miss_rate_acceptable. Pull total_positions computation
13033         out of the loops.  Early return if miss_positions exceeds
13034         the acceptable threshold.
13035         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
13036         is_miss_rate_acceptable after renaming of compute_miss_rate.
13037
13038 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
13039
13040         PR middle-end/44576
13041         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
13042         of 1000) for miss rate if the address diference is greater than or
13043         equal to the cache line size (the two reference will never hit the
13044         same cache line).
13045
13046 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
13047
13048         PR target/42835
13049         * config/arm/arm-modes.def (CC_NOTB): New mode.
13050         * config/arm/arm.c (get_arm_condition_code): Handle it.
13051         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
13052         * config/arm/arm.md (subsi3_compare0_c): New pattern.
13053         (compare_scc): Now a define_and_split.  Add a number of extra
13054         splitters before it.
13055
13056         PR target/42172
13057         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
13058         and ZERO_EXTEND.
13059         (arm_rtx_costs_1): Likewise.
13060         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
13061         * config/arm/arm.md (is_arch6): New attribute.
13062         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
13063         extendqisi2): Tighten the code somewhat, avoiding invalid
13064         RTL to occur in the expander patterns.
13065         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
13066         (thumb1_zero_extendhisi2_v6): Delete.
13067         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
13068         (thumb1_extendhisi2_v6): Delete.
13069         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
13070         (thumb1_extendqisi2_v6): Delete.
13071         (zero_extendhisi2 for register input splitter): New.
13072         (zero_extendqisi2 for register input splitter): New.
13073         (thumb1_extendhisi2 for register input splitter): New.
13074         (extendhisi2 for register input splitter): New.
13075         (extendqisi2 for register input splitter): New.
13076         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
13077         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
13078         and add support for a register alternative requiring a split.
13079         (thumb1_zero_extendqisi2): Likewise.
13080         (arm_zero_extendqisi2): Likewise.
13081         (arm_extendhisi2): Likewise.
13082         (arm_extendqisi2): Likewise.
13083
13084 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
13085
13086         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
13087         instead of an unspec.
13088         (neon_expand_vector_init): Likewise.
13089         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
13090         (UNSPEC_VDUP_LANE): Delete.
13091         (UNSPEC VDUP_N): Delete.
13092         (UNSPEC_VGET_HIGH): Delete.
13093         (UNSPEC_VGET_LANE): Delete.
13094         (UNSPEC_VGET_LOW): Delete.
13095         (UNSPEC_VMVN): Delete.
13096         (UNSPEC_VSET_LANE): Delete.
13097         (V_double_vector_mode): New.
13098         (vec_set<mode>_internal): Make code emitted match that for the
13099         corresponding intrinsics.
13100         (vec_setv2di_internal): Likewise.
13101         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
13102         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
13103         (neon_vset_lane<mode>): Combine double and quad patterns and
13104         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
13105         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
13106         (neon_vdup_n<mode>): Rewrite RTL without unspec.
13107         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
13108         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
13109         with neon_vdup_lanev2di, adjusting the pattern from the latter
13110         to be predicable for consistency.
13111         (neon_vdup_lane<mode>_internal): New.
13112         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
13113         to avoid using an unspec.
13114         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
13115         (neon_vdup_lanev2di): Turn into a define_expand.
13116         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
13117         (neon_vget_high<mode>): Replace with....
13118         (neon_vget_highv16qi): New pattern using canonical RTL.
13119         (neon_vget_highv8hi): Likewise.
13120         (neon_vget_highv4si): Likewise.
13121         (neon_vget_highv4sf): Likewise.
13122         (neon_vget_highv2di): Likewise.
13123         (neon_vget_low<mode>): Replace with....
13124         (neon_vget_lowv16qi): New pattern using canonical RTL.
13125         (neon_vget_lowv8hi): Likewise.
13126         (neon_vget_lowv4si): Likewise.
13127         (neon_vget_lowv4sf): Likewise.
13128         (neon_vget_lowv2di): Likewise.
13129
13130         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
13131         test for this emitting vmov.
13132         (Vset_lane): Likewise.
13133         (Vdup_n): Likewise.
13134         (Vmov_n): Likewise.
13135
13136         * doc/arm-neon-intrinsics.texi: Regenerated.
13137
13138 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
13139
13140         * config/arm/neon.md (vec_extractv2di): Correct error in register
13141         numbering to reconcile with neon_vget_lanev2di.
13142
13143 2010-07-02  Richard Guenther  <rguenther@suse.de>
13144
13145         * tree-ssa-structalias.c (pt_solution_set_var): New function.
13146         * tree-ssa-alias.h (pt_solution_set_var): Declare.
13147         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
13148         points-to information.
13149
13150 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
13151
13152         * config/s390/s390.c (override_options): Adopt prefetching
13153         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
13154
13155 2010-07-02  Jan Hubicka  <jh@suse.cz>
13156
13157         * df-problems.c (df_kill_notes): Do not collect dead  notes.
13158         (df_set_note): Just call add_reg_note.
13159         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
13160         df_create_unused_note): Do not deal with lists of old notes.
13161         (df_note_bb_compute): Likewise.
13162
13163 2010-07-02  Richard Guenther  <rguenther@suse.de>
13164
13165         * tree-ssa-structalias.c (find_func_aliases): Handle
13166         pointer alignment via BIT_AND_EXPR.
13167         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
13168
13169 2010-07-02  Richard Guenther  <rguenther@suse.de>
13170
13171         * tree-data-ref.c (initialize_data_dependence_relation): Handle
13172         mismatching number of dimensions properly.
13173
13174 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13175
13176         PR target/44707
13177         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
13178         (lo_sum (high ...) ...) patterns generated by earlier passes.
13179
13180 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13181
13182         * doc/install.texi (Prerequisites): Document Perl requirement on
13183         Solaris 2.
13184         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
13185
13186 2010-07-02  Richard Guenther  <rguenther@suse.de>
13187
13188         PR middle-end/44777
13189         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
13190
13191 2010-07-02  Jan Hubicka  <jh@suse.cz>
13192
13193         PR middle-end/44706
13194         * predict.c (predict_paths_for_bb): Handle case when control dependence
13195         BB has only abnormal edges.
13196
13197 2010-07-02  Richard Guenther  <rguenther@suse.de>
13198
13199         PR tree-optimization/44748
13200         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
13201         the embedded conversion in MEM_REFs.
13202
13203 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
13204
13205         * reload.c: Include toplev.h.
13206         * recog.c:  Likewise.
13207         * Makefile.in: Adjust dependencies.
13208
13209 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
13210
13211         PR debug/44694
13212         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
13213         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
13214
13215 2010-07-01  Richard Guenther  <rguenther@suse.de>
13216
13217         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
13218         types for offsets.
13219
13220 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
13221
13222         PR target/44732
13223         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
13224         Fix argument types.
13225
13226 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
13227
13228         PR target/44727
13229         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
13230         Make sure operand 0 dies.
13231
13232 2010-07-01  Richard Guenther  <rguenther@suse.de>
13233
13234         PR middle-end/42834
13235         PR middle-end/44468
13236         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
13237         * doc/generic.texi (References to storage): Document MEM_REF.
13238         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
13239         (print_call_name): Likewise.
13240         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
13241         (build_simple_mem_ref_loc): New function.
13242         (mem_ref_offset): Likewise.
13243         * tree.h (build_simple_mem_ref_loc): Declare.
13244         (build_simple_mem_ref): Define.
13245         (mem_ref_offset): Declare.
13246         * fold-const.c: Include tree-flow.h.
13247         (operand_equal_p): Handle MEM_REF.
13248         (build_fold_addr_expr_with_type_loc): Likewise.
13249         (fold_comparison): Likewise.
13250         (fold_unary_loc): Fold
13251         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
13252         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
13253         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
13254         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
13255         (ptr_deref_may_alias_ref_p_1): Likewise.
13256         (ao_ref_base_alias_set): Properly differentiate base object for
13257         offset and TBAA.
13258         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
13259         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
13260         (indirect_refs_may_alias_p): Likewise.
13261         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
13262         chasing code.
13263         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
13264         (call_may_clobber_ref_p_1): Likewise.
13265         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
13266         * expr.c (expand_assignment): Handle MEM_REF.
13267         (store_expr): Handle MEM_REFs from STRING_CSTs.
13268         (store_field): If expanding a MEM_REF of a non-addressable
13269         decl use bitfield operations.
13270         (get_inner_reference): Handle MEM_REF.
13271         (expand_expr_addr_expr_1): Likewise.
13272         (expand_expr_real_1): Likewise.
13273         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
13274         * alias.c (ao_ref_from_mem): Handle MEM_REF.
13275         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
13276         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
13277         (dr_analyze_indices): Likewise.
13278         (dr_analyze_alias): Likewise.
13279         (object_address_invariant_in_loop_p): Likewise.
13280         * gimplify.c (mark_addressable): Handle MEM_REF.
13281         (gimplify_cond_expr): Build MEM_REFs.
13282         (gimplify_modify_expr_to_memcpy): Likewise.
13283         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
13284         (gimple_fold_indirect_ref): Adjust.
13285         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
13286         * tree.def (MEM_REF): New tree code.
13287         * tree-dfa.c: Include toplev.h.
13288         (get_ref_base_and_extent): Handle MEM_REF.
13289         (get_addr_base_and_unit_offset): New function.
13290         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
13291         * gimple-fold.c (may_propagate_address_into_dereference): Handle
13292         MEM_REF.
13293         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
13294         accesses if the array has just one dimension.  Remove always true
13295         parameter.  Do not require type compatibility here.
13296         (maybe_fold_offset_to_component_ref): Remove.
13297         (maybe_fold_stmt_indirect): Remove.
13298         (maybe_fold_reference): Remove INDIRECT_REF handling.
13299         Fold back to non-MEM_REF.
13300         (maybe_fold_offset_to_address): Simplify.  Deal with type
13301         mismatches here.
13302         (maybe_fold_reference): Likewise.
13303         (maybe_fold_stmt_addition): Likewise.  Also handle
13304         &ARRAY + I in addition to &ARRAY[0] + I.
13305         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
13306         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
13307         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
13308         * tree-ssa.c (useless_type_conversion_p): Make most pointer
13309         conversions useless.
13310         (warn_uninitialized_var): Handle MEM_REF.
13311         (maybe_rewrite_mem_ref_base): New function.
13312         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
13313         to SSA form.
13314         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
13315         INDIRECT_REF handling.
13316         (copy_tree_body_r): Handle MEM_REF.
13317         * gimple.c (is_gimple_addressable): Adjust.
13318         (is_gimple_address): Likewise.
13319         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
13320         invariant base are invariant.
13321         (is_gimple_min_lval): Adjust.
13322         (is_gimple_mem_ref_addr): New function.
13323         (get_base_address): Handle MEM_REF.
13324         (count_ptr_derefs): Likewise.
13325         (get_base_loadstore): Likewise.
13326         * gimple.h (is_gimple_mem_ref_addr): Declare.
13327         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
13328         * tree-cfg.c (verify_address): New function, split out from ...
13329         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
13330         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
13331         INDIRECT_REFs.
13332         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
13333         INDIRECT_REF.  Allow conversions.
13334         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
13335         a register does not change its size.
13336         (verify_types_in_gimple_reference): Verify MEM_REF.
13337         (verify_gimple_assign_single): Disallow INDIRECT_REF.
13338         Handle MEM_REF.
13339         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
13340         New.
13341         (mark_address_taken): Handle MEM_REF.
13342         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
13343         (get_asm_expr_operands): Pass opf_not_non_addressable.
13344         (get_expr_operands): Handle opf_[not_]non_addressable.
13345         Handle MEM_REF.  Remove INDIRECT_REF handling.
13346         * tree-vrp.c (check_array_ref): Handle MEM_REF.
13347         (search_for_addr_array): Likewise.
13348         (check_array_bounds): Likewise.
13349         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
13350         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
13351         (ref_always_accessed_p): Likewise.
13352         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
13353         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
13354         Handle MEM_REF.
13355         * cgraphbuild.c (mark_load): Properly check for NULL result
13356         from get_base_address.
13357         (mark_store): Likewise.
13358         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
13359         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
13360         handling for MEM_REF.
13361         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
13362         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
13363         * builtins.c (stabilize_va_list_loc): Use the function ABI
13364         valist type if we couldn't canonicalize the argument type.
13365         Always dereference with the canonical va-list type.
13366         (maybe_emit_free_warning): Handle MEM_REF.
13367         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
13368         memmove to memcpy.
13369         * builtins.c (fold_builtin_memory_op): Use ref-all types
13370         for all memcpy foldings.
13371         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
13372         (build_outer_var_ref): Likewise.
13373         (scan_omp_1_op): Likewise.
13374         (lower_rec_input_clauses): Likewise.
13375         (lower_lastprivate_clauses): Likewise.
13376         (lower_reduction_clauses): Likewise.
13377         (lower_copyprivate_clauses): Likewise.
13378         (expand_omp_atomic_pipeline): Likewise.
13379         (expand_omp_atomic_mutex): Likewise.
13380         (create_task_copyfn): Likewise.
13381         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
13382         Remove old union trick.  Initialize constant offsets.
13383         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
13384         INDIRECT_REF.  Init base_alias_set properly.
13385         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
13386         (vn_reference_fold_indirect): Adjust for MEM_REFs.
13387         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
13388         for ARRAY_REFs.
13389         (may_insert): Remove.
13390         (visit_reference_op_load): Do not test may_insert.
13391         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
13392         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
13393         a field to store the constant offset this op applies.
13394         (run_scc_vn): Adjust prototype.
13395         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
13396         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
13397         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
13398         bother about volatile qualifiers on pointers.
13399         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
13400         * tree-ssa-loop-ivopts.c
13401         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
13402         (strip_offset_1): Likewise.
13403         (find_interesting_uses_address): Replace INDIRECT_REF handling with
13404         MEM_REF handling.
13405         (get_computation_cost_at): Likewise.
13406         * ipa-pure-const.c (check_op): Handle MEM_REF.
13407         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
13408         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
13409         and constants.
13410         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
13411         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
13412         (eliminate_local_variables_1): Likewise.
13413         (create_call_for_reduction_1): Likewise.
13414         (create_loads_for_reductions): Likewise.
13415         (create_loads_and_stores_for_name): Likewise.
13416         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
13417         (ssa_accessed_in_tree): Handle MEM_REF.
13418         (ssa_accessed_in_assign_rhs): Likewise.
13419         (update_type_size): Likewise.
13420         (analyze_accesses_for_call_stmt): Likewise.
13421         (analyze_accesses_for_assign_stmt): Likewise.
13422         (transform_access_sites): Likewise.
13423         (transform_allocation_sites): Likewise.
13424         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
13425         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13426         not handle INDIRECT_REF.
13427         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
13428         (cond_store_replacement): Likewise.
13429         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
13430         MEM_REF, no not handle INDIRECT_REFs.
13431         (insert_into_preds_of_block): Properly initialize avail.
13432         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
13433         for ARRAY_REFs.  Properly handle reference lookups that
13434         require a bit re-interpretation.
13435         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
13436         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
13437         (build_ref_for_offset_1): Remove.
13438         (build_ref_for_offset): Build MEM_REFs.
13439         (gate_intra_sra): Disable for now.
13440         (sra_ipa_modify_expr): Handle MEM_REF.
13441         (ipa_early_sra_gate): Disable for now.
13442         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
13443         MEM_REF handling.
13444         (disqualify_base_of_expr): Likewise.
13445         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
13446         MEM_REF handling.
13447         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
13448         Use mem_ref_offset.  Remove bogus folding.
13449         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
13450         (make_fancy_name_1): Add support for MEM_REF.
13451         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
13452         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
13453         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
13454         (compute_complex_ancestor_jump_func): Likewise.
13455         (ipa_analyze_virtual_call_uses): Likewise.
13456         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
13457         INDIRECT_REF folding with more generalized MEM_REF folding.
13458         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
13459         (forward_propagate_addr_into_variable_array_index): Also handle
13460         &ARRAY + I in addition to &ARRAY[0] + I.
13461         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
13462         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
13463         creates assignments with overlap.
13464         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
13465         (get_frame_field): Likewise.
13466         (get_nonlocal_debug_decl): Likewise.
13467         (convert_nonlocal_reference_op): Likewise.
13468         (struct nesting_info): Add mem_refs pointer-set.
13469         (create_nesting_tree): Allocate it.
13470         (convert_local_reference_op): Insert to be folded mem-refs.
13471         (fold_mem_refs): New function.
13472         (finalize_nesting_tree_1): Perform defered folding of mem-refs
13473         (free_nesting_tree): Free the pointer-set.
13474         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
13475         (vectorizable_load): Likewise.
13476         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
13477         (propagate_with_phi): Likewise.
13478         * tree-object-size.c (addr_object_size): Handle MEM_REFs
13479         instead of INDIRECT_REFs.
13480         (compute_object_offset): Handle MEM_REF.
13481         (plus_stmt_object_size): Handle MEM_REF.
13482         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
13483         for &MEM_REF.
13484         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
13485         (symbol_marked_for_renaming): Likewise.
13486         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
13487         (fold-const.o): Add $(TREE_FLOW_H).
13488         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
13489         (find_func_clobbers): Likewise.
13490         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
13491         (decompose_access): Likewise.
13492         (replace_field_acc): Likewise.
13493         (replace_field_access_stmt): Likewise.
13494         (insert_new_var_in_stmt): Likewise.
13495         (get_stmt_accesses): Likewise.
13496         (reorg_structs_drive): Disable.
13497         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
13498         (ix86_canonical_va_list_type): Likewise.
13499
13500 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
13501
13502         PR other/44566
13503         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
13504         * target.def (struct gcc_target): Replace enum reg_class with
13505         reg_class_t in hook argument / return types.
13506         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
13507         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
13508         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13509         * targhooks.h (default_branch_target_register_class): Likewise.
13510         (default_ira_cover_classes, default_secondary_reload): Likewise.
13511         (default_memory_move_cost, default_register_move_cost): Likewise.
13512         * targhooks.c (default_branch_target_register_class): Likewise.
13513         (default_ira_cover_classes, default_secondary_reload): Likewise.
13514         (default_memory_move_cost, default_register_move_cost): Likewise.
13515         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
13516         * bt-load.c (branch_target_load_optimize): Likewise.
13517         * ira.c (setup_cover_and_important_classes): Likewise.
13518         * ira-costs.c (copy_cost): Likewise.
13519         * reload1.c (emit_input_reload_insns): Likewise.
13520         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
13521         * config/frv/frv.c (frv_secondary_reload): Likewise.
13522         * config/s390/s390.c (s390_secondary_reload): Likewise.
13523         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
13524         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
13525         (ix86_register_move_cost): Likewise.
13526         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
13527         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
13528         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
13529         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
13530         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
13531         (rs6000_ira_cover_classes): Likewise.
13532         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
13533         * config/picochip/picochip-protos.h (picochip_secondary_reload):
13534         Likewise.
13535         * config/pa/pa.c (pa_secondary_reload): Likewise.
13536         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
13537         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
13538         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
13539         * doc/tm.texi: Regenerate.
13540
13541 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
13542
13543         PR bootstrrap/44726
13544         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
13545         use.
13546         (build_alias_set_optimal_p): Likewise.
13547         (build_base_obj_set_for_drs): Likewise.
13548
13549 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
13550
13551         * target.def: Remove comment about licensing problems of function
13552         declarations.
13553
13554         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
13555         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
13556         * doc/tm.texi: Regenerate.
13557
13558         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
13559         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
13560
13561         * target.def (enum_va_list_p): Use DEFHOOK.
13562         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
13563         Rename ptype to ptree.
13564         * doc/tm.texi: Regenerate.
13565
13566         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
13567         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
13568         * doc/tm.texi: Regenerate.
13569
13570         * target.def (memory_move_cost): Use DEFHOOK.
13571         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
13572         Rename regclass AKA class to rclass.
13573         * doc/tm.texi: Regenerate.
13574
13575         * target.def (pragma_parse): Use DEFHOOK.
13576         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
13577         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
13578         * doc/tm.texi: Regenerate.
13579
13580         * target.def (pass_by_reference): Use DEFHOOK.
13581         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
13582         * doc/tm.texi: Regenerate.
13583
13584         * target.def (resolve_overloaded_builtin): Rename params to arglist.
13585         Use DEFHOOK.
13586         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
13587         * doc/tm.texi: Regenerate.
13588
13589         * target.def (return_pops_args): Use DEFHOOK.
13590         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
13591         Rename stack-size to size.
13592         * doc/tm.texi: Regenerate.
13593
13594         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
13595         last-sched_cycle to last_clock, cur_cycle to clock.
13596         * doc/tm.texi.in: Use @hook.
13597         * doc/tm.texi: Regenerate.
13598
13599         * target.def (print_operand, print_operand_address): Update comment.
13600         (print_operand_punct_valid_p): Likewise.
13601
13602 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13603
13604         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
13605         to rtl.h.
13606         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
13607         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
13608         * rtl-error.h: New.
13609         * regrename.c: Do not include toplev.h. Include rtl-error.h.
13610         * rtl-error.c: Likewise.
13611         * reload.c: Likewise.
13612         * recog.c:  Likewise.
13613         * sel-sched.c: Likewise.
13614         * function.c: Likewise.
13615         * reg-stack.c: Likewise.
13616         * cfgrtl.c: Likewise.
13617         * reload1.c: Likewise.
13618         * final.c: Include rtl-error.
13619         * Makefile.in: Adjust dependencies.
13620
13621 2010-06-30  Jan Hubicka  <jh@suse.cz>
13622
13623         PR middle-end/PR44706
13624         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
13625         to return the value.
13626
13627 2010-06-30  Michael Matz  <matz@suse.de>
13628
13629         PR bootstrap/44699
13630         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
13631         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
13632         a gimple reg, attach the original VDEF to the last store in the
13633         sequence.
13634
13635 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
13636
13637         PR other/44034
13638         * config/darwin.c (darwin_override_options): Use renamed
13639         targetm.asm_out.emit_unwind_label.
13640
13641 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
13642
13643         PR tree-optimization/39799
13644         * tree-inline.c (remap_ssa_name): Initialize variable only if
13645         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
13646
13647 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
13648
13649         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
13650
13651 2010-06-30  Richard Guenther  <rguenther@suse.de>
13652
13653         PR target/44722
13654         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
13655         against oscillation with reverse peephole2.
13656
13657 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13658
13659         PR target/44721
13660         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
13661         Fix last commit.
13662
13663 2010-06-30  Nick Clifton  <nickc@redhat.com>
13664
13665         * config/rx/rx-modes.def: New file.
13666         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
13667         (CC_REGNUM): Define.
13668         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
13669         register.
13670         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
13671         (SELECT_CC_MODE): Define.
13672         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
13673         (reg:CC CC_REG) instead of (cc0).
13674         (attr "cc"): Delete.
13675         (cbranchsi4): Do not split compare and branch here. Instead move
13676         it to...
13677         (cbranchsi4_<code>): ... here.  New patterns.
13678         (cmpsi): Call rx-compare_redundant to find out if it is necessary
13679         to emit the compare instruction.
13680         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
13681         cc_status flags.
13682         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
13683         FIRST_PSEUDO_REGNUM.
13684         (rx_expand_prologue, rx_expand_epilogue): Likewise.
13685         (rx_notice_update_cc): Delete.
13686         (rx_cc_modes_compatible): New function.
13687         (flags_needed_for_conditional): New function.
13688         (flags_from_mode): New function.
13689         (rx_compare_redundant): New function - scans backwards through
13690         insn list to find out if condition flags are already set correctly.
13691         (TARGET_CC_MODES_COMPATIBLE): Define.
13692         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
13693
13694         * config/rx/rx.h (BRANCH_COST): Define.
13695         (REGISTER_MOVE_COST): Define.
13696         * config/rx/predicates (rx_source_operand): Allow all constant types.
13697         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
13698         (tstsi4): New pattern.
13699         * config/rx/rx.c (rx_memory_move_cost): Define.
13700         (TARGET_MEMORY_MOVE_COST): Define.
13701
13702 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13703
13704         * tree.h (block_may_fallthru): Declare here.
13705         * tree-flow.h (block_may_fallthru): Do not declare here.
13706         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
13707         bitmap.h
13708         * Makefile.in (c-typeck.o): Update dependencies.
13709
13710 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
13711
13712         PR debug/44694
13713         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
13714         * cselib.c (cfa_base_preserved_regno): New static variable.
13715         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
13716         of REGNO (cfa_base_preserved_val->locs->loc).
13717         (cselib_preserve_cfa_base_value): Add regno argument, set
13718         cfa_base_preserved_regno to it.
13719         (cselib_invalidate_regno): Allow removal of registers other than
13720         cfa_base_preserved_regno from cfa_base_preserved_val.
13721         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
13722         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
13723         of MEM addresses, if not on LHS.
13724         (reverse_op): Don't add reverse ops for cfa_base_rtx.
13725         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
13726
13727 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
13728
13729         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
13730         static variables.
13731         (peep2_buf_position): New static function.
13732         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
13733         peephole2_optimize): Use it.
13734         (peep2_attempt, peep2_update_life): New static functions, broken out
13735         of peephole2_optimize.
13736         (peep2_fill_buffer): New static function.
13737         (peephole2_optimize): Change the main loop to try to fill the buffer
13738         with the maximum number of insns before matching them against
13739         peepholes.  Use a forward scan.  Remove special case for targets with
13740         conditional execution.
13741         * genrecog.c (change_state): Delete dead code.
13742         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
13743         Rewrite so as not to expect the second insn to have had a peephole
13744         applied yet.
13745
13746 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13747
13748         * genhooks.c (emit_findices): Cast field precision to int.
13749         (emit_documentation): Likewise.
13750
13751 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
13752
13753         PR tree-optimization/43801
13754         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
13755         if old_decl was DECL_ONE_ONLY.
13756
13757         PR debug/44668
13758         * dwarf2out.c (add_accessibility_attribute): New function.
13759         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
13760         instead of adding DW_AT_accessibility manually.
13761         (gen_enumeration_type_die, gen_struct_or_union_type_die,
13762         gen_typedef_die): Use it.
13763
13764 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
13765
13766         * vmsdbgout.c (full_name): Just output the file name if not native.
13767
13768 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
13769
13770         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
13771         (funcnam_table): New static table.
13772         (funcnum_table): New static table.
13773         (write_rtnbeg): Write value saved in funcnum_table.
13774         (write_rtnend): Write value saved in funcnum_table.
13775         (vmsdbgout_begin_function): Save current function info in
13776         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
13777         (vmsdbgout_finish): Iterate over funcnum_table.
13778
13779 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
13780
13781         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
13782         (vmsdbgout_type_decl): Declare
13783         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
13784         (FUNC_EPILOGUE_LABEL): New macro
13785         (vmsdbgout_begin_epilogue): New function.
13786         (vmsdbgout_type_decl): New function.
13787
13788 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
13789
13790         * vmsdbg.h: Update copyright.
13791
13792 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
13793
13794         * vmsdbg.h (DST_K_TBG): New DST constant.
13795         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
13796         (write_modbeg): Cast module_language to avoid warning.
13797         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
13798
13799 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
13800
13801         PR other/44034
13802         * target.def, doc/tm.texi.in, genhooks.c: New files.
13803         * target.h: Instead of defining individual hook members,
13804         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
13805         include target.def.
13806         * target-def.h: Instead of defining individual hook initializers,
13807         include target-hooks-def.h.
13808         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
13809         targetm.live_on_entry -> targetm.extra_live_on_entry
13810         targetm.sched.md_finish ->targetm.sched.finish
13811         targetm.sched.md_init -> targetm.sched.init
13812         targetm.sched.md_init_global -> targetm.sched.init_global
13813         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
13814         targetm.asm_out.except_table_label ->
13815           targetm.asm_out.emit_except_table_label
13816         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
13817         targetm.target_help -> targetm.help
13818         targetm.vectorize.builtin_support_vector_misalignment ->
13819           targetm.vectorize.support_vector_misalignment
13820         targetm.file_start_app_off -> targetm.asm_file_start_app_off
13821         targetm.file_start_file_directive ->
13822          targetm.asm_file_start_file_directive
13823         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
13824         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
13825         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
13826         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
13827           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
13828         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
13829           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
13830         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
13831         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
13832         * Makefile.in (TARGET_H): Depend on target.def.
13833         (TARGET_DEF_H): Depend on target-hooks-def.h.
13834         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
13835         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
13836         * doc/tm.texi: Regenerate.
13837
13838         * Makefile.in (s-tm-texi): Remove stray tab / rule.
13839
13840         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
13841         (targetm.sched.init): Likewise.
13842
13843 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13844
13845         PR bootstrap/44713
13846         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
13847         (function_arg_advance_32): Const-ify TYPE parameter.
13848         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
13849         (ix86_function_arg_advance): Change type of NAMED to bool.
13850         (function_arg_32): Const-ify CUM and TYPE parameters.
13851         (function_arg_64): Likewise.  Change type of NAMED to bool.
13852         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
13853         to bool.
13854         (ix86_function_arg): Change type of NAMED to bool.
13855         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
13856         last argument as a bool.
13857
13858 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
13859
13860         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
13861         (OVERRIDE_OPTIONS): Add note of obsolescence.
13862         Replace references with references to TARGET_OPTION_OVERRIDE.
13863         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
13864          the macro).
13865         * targhooks.c (default_target_option_override): New function.
13866         * targhooks.h (default_target_option_override): Declare.
13867         * target.h (struct gcc_target): Add override member to
13868         target_option member.
13869         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
13870         targetm.target_option.override call.
13871         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
13872         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
13873
13874 2010-06-29  Jan Hubicka  <jh@suse.cz>
13875
13876         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
13877
13878 2010-06-29  Jan Hubicka  <jh@suse.cz>
13879
13880         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
13881         unreachable.
13882         (rebuild_frequencies): New function.
13883         * predict.h (rebuild_frequencies): Declare.
13884         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
13885         entry block and edge reaching new_entry.
13886         (tree_function_versioning): When doing partial cloning, rebuild
13887         frequencies when done.
13888         * passes.c (execute_function_todo): Use rebild_frequencies.
13889
13890 2010-06-29  Richard Guenther  <rguenther@suse.de>
13891
13892         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
13893         * tree-flow.h (enum noalias_state): Remove.
13894         (struct var_ann_d): Remove noalias_state member.
13895
13896 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13897
13898         PR target/43902
13899         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
13900         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
13901         (maddhidi4): Likewise.
13902
13903         Revert parts of the change for PR25130.
13904         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13905         MEM_ALIAS_SET.
13906
13907 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13908
13909         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
13910         targetm.calls.function_incoming_arg, and
13911         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
13912         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
13913         * target.h (struct gcc_target): Add function_arg_advance,
13914         function_arg, and function_incoming_arg fields.
13915         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
13916         (TARGET_FUNCTION_INCOMING_ARG): Define.
13917         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
13918         and TARGET_FUNCTION_INCOMING_ARG.
13919         * targhooks.h (default_function_arg_advance): Declare.
13920         (default_function_arg, default_function_incoming_arg): Declare.
13921         * targhooks.c (default_function_arg_advance): New function.
13922         (default_function_arg, default_function_incoming_arg): New function.
13923         * config/i386/i386.c (function_arg_advance): Rename to...
13924         (ix86_function_arg_advance): ...this.  Make static.
13925         (function_arg): Rename to...
13926         (ix86_function_arg): ...this.  Make static.
13927         (TARGET_FUNCTION_ARG_ADVANCE): Define.
13928         (TARGET_FUNCTION_ARG): Define.
13929         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
13930         (FUNCTION_ARG): Delete.
13931         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
13932         (function_arg): Delete prototype.
13933
13934 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13935
13936         * reginfo.c (init_reg_sets_1): Adjust comments.
13937         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
13938         * calls.c (prepare_call_address): Likewise.
13939         (emit_call_1): Use targetm.calls.return_pops_args.
13940         (expand_call): Likewise.
13941         * function.c (assign_parms): Likewise.
13942         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
13943         * target.h (struct gcc_target) [struct calls]: Add
13944         return_pops_args field.
13945         * targhooks.h (default_return_pops_args): Declare.
13946         * targhooks.c (default_return_pops_args): Define.
13947         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
13948         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
13949         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
13950         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
13951         documentation.
13952         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
13953         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
13954         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
13955         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
13956         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
13957         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
13958         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
13959         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
13960         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
13961         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
13962         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
13963         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
13964         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
13965         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
13966         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
13967         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
13968         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
13969         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
13970         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
13971         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
13972         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
13973         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
13974         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
13975         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
13976         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
13977         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
13978         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
13979         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
13980         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
13981         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
13982         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
13983         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
13984         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
13985         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
13986         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
13987         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
13988         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
13989         * config/i386/i386.c (ix86_return_pops_args): Make static.
13990         Constify arguments.
13991         (TARGET_RETURN_POPS_ARGS): Define.
13992         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
13993         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
13994         (TARGET_RETURN_POPS_ARGS): Define.
13995         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
13996         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
13997         (TARGET_RETURN_POPS_ARGS): Define.
13998
13999 2010-06-29  Richard Guenther  <rguenther@suse.de>
14000
14001         PR middle-end/44667
14002         * tree-inline.c (initialize_inlined_parameters): Make sure
14003         to remap the inlined parameter variable substitutions types.
14004
14005 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
14006
14007         PR rtl-optimization/44659
14008         * combine.c (make_compound_operation) <SUBREG>: Do not return the
14009         result of force_to_mode if it partially re-expanded the compound.
14010
14011 2010-06-28  Jan Hubicka  <jh@suse.cz>
14012
14013         PR middle-end/44671
14014         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
14015         RESULT_DECL.
14016
14017 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
14018
14019         * double-int.h (force_fit_type_double): Remove declaration.
14020         * double-int.c (force_fit_type_double): Move to tree.c.
14021         * tree.h (force_fit_type_double): Declare.
14022         * tree.h (force_fit_type_double): Moved from double-int.c. Use
14023         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
14024         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
14025         * convert.c (convert_to_pointer): Adjust call to
14026         force_fit_type_double.
14027         * tree-vrp.c (extract_range_from_assert,
14028         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
14029         * fold-const.c: Update comment.
14030         (int_const_binop, fold_convert_const_int_from_int,
14031         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
14032         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
14033         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
14034         round_up_loc): Adjust call to force_fit_type_double.
14035
14036 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
14037
14038         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
14039
14040 2010-06-28  Martin Jambor  <mjambor@suse.cz>
14041
14042         * tree-sra.c (convert_callers): New parameter, change fndecls of
14043         recursive calls.
14044         (modify_function): Pass the old decl to convert_callers.
14045
14046 2010-06-28  Martin Jambor  <mjambor@suse.cz>
14047
14048         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
14049         ipa_check_create_node_params and ipa_initialize_node_params with
14050         checking asserts they are not necessary.
14051
14052 2010-06-28  Jan Hubicka  <jh@suse.cz>
14053
14054         PR tree-optimization/44687
14055         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
14056
14057 2010-06-28  Martin Jambor  <mjambor@suse.cz>
14058
14059         PR c++/44535
14060         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
14061         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
14062         instead of BINFO_BASE_BINFO.
14063
14064 2010-06-28  Michael Matz  <matz@suse.de>
14065
14066         PR middle-end/44592
14067         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
14068         proper VDEF chain for intermediate stores in the sequence.
14069
14070 2010-06-28  Jan Hubicka  <jh@suse.cz>
14071
14072         PR tree-optimization/44357
14073         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
14074         uninlinable functions.
14075
14076 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
14077
14078         * config.gcc (powerpc*-*-*): Handle titan.
14079         * config/rs6000/rs6000.c (titan_cost): New costs.
14080         (rs6000_override_options): Add "titan" to processor_target_table.
14081         Add Titan to branch alignment logic.
14082         Correctly set rs6000_cost for titan.
14083         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
14084         * config/rs6000/titan.md: New file.
14085         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
14086
14087 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
14088
14089         * tree-browser.c (TB_history_stack): Convert to a VEC.
14090         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
14091         (TB_history_prev): Likewise.
14092
14093 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
14094
14095         * vec.h (vec_heap_free): Add parentheses around free.
14096
14097 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
14098
14099         * system.h: Poison GCC_EXCEPT_H for front-end files.
14100
14101         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
14102         langhook.
14103         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
14104         Define to NULL by default.
14105         * except.h: Define GCC_EXCEPT_H.
14106         (doing_eh): Remove prototype.
14107         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
14108         (lang_protect_cleanup_actions): Remove.
14109         * except.c (lang_protect_cleanup_actions): Remove.
14110         (doing_eh): Remove.
14111         (gen_eh_region): Don't check doing_eh here.
14112         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
14113         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
14114         instead of lang_protect_cleanup_actions.
14115         * omp-low.c (maybe_catch_exception): Likewise.
14116         * Makefile.in: Update dependencies.
14117
14118 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
14119
14120         * cgraph.h (struct varpool_node): new used_from_object_file flag.
14121         (struct cgraph_local_info): new used_from_object_file flag.
14122         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
14123         (cgraph_clone_node): initialize used_from_object_file.
14124         (cgraph_create_virtual_clone): initialize used_from_object_file.
14125         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
14126         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
14127         when compiling with -fwhole-program.
14128         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
14129         internal resolver.
14130         * ipa.c (function_and_variable_visibility): Set externally_visible
14131         flag of varpool_node if used_from_object_file flag is set.
14132         (cgraph_externally_visible_p): check used_from_object_file flag.
14133         * doc/invoke.texi (-fwhole-program option): Change description of
14134         externally_visible attribute accordingly.
14135         * doc/extend.texi (externally_visible): Ditto.
14136
14137 2010-06-27  Jan Hubicka  <jh@suse.cz>
14138
14139         * params.def (max-inline-insns-auto): Default to 40.
14140         * doc/invoke.texi (max-inline-insns-auto): Document the change.
14141
14142 2010-06-27  Jan Hubicka  <jh@suse.cz>
14143
14144         PR middle-end/44671
14145         PR middle-end/44686
14146         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
14147         signature change.
14148         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
14149         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
14150
14151 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
14152
14153         * target.h (struct gcc_target): Add register_move_cost field.
14154         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
14155         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
14156         * targhooks.c (default_register_move_cost): New function.
14157         * targhooks.h (default_register_move_cost): Declare function.
14158         * defaults.h (REGISTER_MOVE_COST): Delete.
14159         * ira-int.h (ira_register_move_cost): Update comment.
14160         * ira.c (ira_register_move_cost): Update comment.
14161         * reload.h (register_move_cost): Declare.
14162         * reginfo.c (register_move_cost): New function.
14163         (move_cost): Update comment.
14164         (init_move_cost, memory_move_secondary_cost): Replace
14165         REGISTER_MOVE_COST with register_move_cost.
14166         * postreload.c (reload_cse_simplify_set): (Ditto.).
14167         * reload.c (find_valid_class, find_reloads): (Ditto.).
14168         * reload1.c (choose_reload_regs): (Ditto.).
14169         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
14170         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
14171         * doc/md.texi (can_create_pseudo_p): Update documentation.
14172
14173         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
14174         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
14175         * config/i386/i386.h (ix86_memory_move_cost): Make static.
14176         (TARGET_MEMORY_MOVE_COST): Define.
14177
14178         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
14179         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
14180         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
14181         (TARGET_MEMORY_MOVE_COST): Define.
14182
14183 2010-06-27  Richard Guenther  <rguenther@suse.de>
14184
14185         PR tree-optimization/44683
14186         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
14187         false edge from the inverted condition.
14188
14189 2010-06-27  Richard Guenther  <rguenther@suse.de>
14190
14191         PR middle-end/44684
14192         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
14193         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
14194         for register LHS.  Or non-store assignments.
14195
14196 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
14197
14198         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
14199         (sparc_emit_set_const64): Likewise.  Remove disabled code.
14200         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
14201         (sparc_emit_set_const64): Likewise.
14202
14203 2010-06-26  Catherine Moore  <clm@codesourcery.com>
14204
14205         * config/mips/mips.md (alu_type): New attribute.
14206         (type): Infer type from alu_type.
14207         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
14208         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
14209         *subsi3_extended, negsi2, negdi2, *low<mode>,
14210         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
14211         xor<mode>3, *nor<mode>3,
14212         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
14213         *zero_extendhi_truncqi):  Set alu_type instead of type.
14214
14215 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
14216
14217         * config/alpha/alpha.c (alpha_need_linkage): Adjust
14218         splay_tree_new_ggc call.
14219         (alpha_use_linkage): Likewise.
14220
14221 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
14222
14223         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
14224         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
14225         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
14226         (static_specs): Remove switches_need_spaces.
14227         (process_command, do_self_spec): Hardcode handling "-o" instead of
14228         checking switches_need_spaces.
14229         * system.h (SWITCHES_NEED_SPACES): Poison.
14230
14231 2010-06-26  Richard Guenther  <rguenther@suse.de>
14232
14233         PR tree-optimization/44393
14234         * tree-loop-distribution.c (generate_loops_for_partition): Fix
14235         stmt removal and VOP renaming.
14236         (generate_memset_zero): Remove redundant stmt updating.
14237         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
14238         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
14239
14240 2010-06-26  Jan Hubicka  <jh@suse.cz>
14241
14242         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
14243         edges comming from header are equivalent.
14244         (visit_bb): Handle PHIs correctly.
14245         * tree-inline.c (copy_phis_for_bb): Be able to copy
14246         PHI from entry edge.
14247         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
14248
14249 2010-06-26  Richard Guenther  <rguenther@suse.de>
14250
14251         PR middle-end/44674
14252         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
14253         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
14254
14255 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
14256
14257         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
14258         add_infile, alloc_switch): New.
14259         (process_command): Remove variable lang_n_infiles.  Process
14260         options in a single pass.  Use new functions for allocating
14261         infiles and switches arrays.  Properly skip operands of
14262         -Xpreprocessor and -Xassembler.
14263
14264 2010-06-26  Jan Hubicka  <jh@suse.cz>
14265
14266         PR middle-end/44671
14267         * cgraphunit.c (cgraph_function_versioning): Remove wrong
14268         cgraph_make_decl_local call; fix typo copying RTL data.
14269
14270 2010-06-25  DJ Delorie  <dj@redhat.com>
14271
14272         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
14273         (m32c_output_aligned_common): Likewise.
14274         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
14275         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14276         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
14277         (m32c_register_pragmas): Register it.
14278         * config/m32c/m32c.c (m32c_get_pragma_address): New.
14279         (m32c_insert_attributes): Set #pragma address decls volatile.
14280         (pragma_entry_eq): New.
14281         (pragma_entry_hash): New.
14282         (m32c_note_pragma_address): New.
14283         (m32c_get_pragma_address): New.
14284         (m32c_output_aligned_common): New.
14285         * doc/extend.texi: Document the new pragma.
14286
14287         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
14288         also.
14289         * config/m32c/predicates.md (m32c_any_operand): Check the code
14290         instead of memory_operand so as to allow matching volatile MEMs.
14291         (m32c_nonimmediate_operand): Likewise.
14292         (mra_operand): Allow volatiles.
14293
14294 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
14295
14296         PR debug/44610
14297         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
14298         address if the offset is unknown.
14299
14300 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
14301
14302         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
14303         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
14304         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
14305         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
14306         to ia64_start_function. Invoke it.
14307         * config/ia64/ia64.c (ia64_start_function): Call new function
14308         dwarf2out_vms_debug_main_pointer.
14309
14310 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
14311
14312         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
14313         statements computing the true predicate.
14314
14315 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
14316
14317         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
14318         to boolean_true_node.
14319         (reset_bb_predicate): New.
14320         (predicate_bbs): Call reset_bb_predicate.
14321
14322 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
14323
14324         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
14325         (tree_if_conversion): Returns true when something has been changed.
14326         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
14327         changed something.
14328
14329 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
14330
14331         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
14332         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
14333         * tree-if-conv.c: Include dbgcnt.h.
14334         (tree_if_conversion): Use if_conversion_tree to count the number of
14335         if-convertible loops.
14336
14337 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
14338
14339         * common.opt (fprefetch-loop-arrays): Re-define
14340         -fprefetch-loop-arrays as a tri-state option with the initial
14341         value of -1.
14342         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
14343         pass only when flag_prefetch_loop_arrays > 0.
14344         * toplev.c (process_options): Note that, with tri-states,
14345         flag_prefetch_loop_arrays>0 means prefetching is enabled.
14346         * config/i386/i386.c (override_options): Enable prefetching at -O3
14347         for a set of CPUs that sw prefetching is helpful.
14348         (software_prefetching_beneficial_p): New.  Return TRUE if software
14349         prefetching is beneficial for the given CPU.
14350
14351 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
14352
14353         PR rtl-optimization/44326
14354         * implicit-zee.c (find_removable_zero_extends): Replace
14355         INSN_P with NONDEBUG_INSN_P.
14356
14357 2010-06-25  Martin Jambor  <mjambor@suse.cz>
14358
14359         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
14360         (struct ipa_node_params): Removed the modification_analysis_done flag.
14361         (ipa_is_param_modified): Removed.
14362         (ipa_analyze_node): Declare.
14363         (ipa_compute_jump_functions): Remove declaration.
14364         (ipa_count_arguments): Likewise.
14365         (ipa_detect_param_modifications): Likewise.
14366         (ipa_analyze_params_uses): Likewise.
14367         * ipa-prop.c (struct param_analysis_info): New type.
14368         (visit_store_addr_for_mod_analysis): Removed.
14369         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
14370         moved down in the file.
14371         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
14372         (ipa_count_arguments): Made static.
14373         (mark_modified): New function.
14374         (is_parm_modified_before_call): New function.
14375         (compute_pass_through_member_ptrs): New parameter parms_info, call
14376         is_parm_modified_before_call instead of ipa_is_param_modified.
14377         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
14378         it to compute_pass_through_member_ptrs.
14379         (ipa_compute_jump_functions): New parameter parms_info, pass it to
14380         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
14381         on the callee if it is analyzed.  Made static.
14382         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
14383         is_parm_modified_before_call instead of ipa_is_param_modified.
14384         (ipa_analyze_call_uses): New parameter parms_info, pass it to
14385         ipa_analyze_indirect_call_uses.
14386         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
14387         ipa_analyze_call_uses.
14388         (ipa_analyze_params_uses): New parameter parms_info, pass it to
14389         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
14390         (ipa_analyze_node): New function.
14391         (ipa_print_node_params): Do not dump the modified flag.
14392         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
14393         it.  Do not stream the modified parameter flag.
14394         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
14395         it.  Do not stream the modified parameter flag.
14396         * ipa-cp.c (ipcp_analyze_node): Removed.
14397         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
14398         with only a call to ipa_analyze_node.
14399         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
14400         node with only a call to ipa_analyze_node.
14401
14402 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14403
14404         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
14405
14406 2010-06-25  Jan Hubicka  <jh@suse.cz>
14407
14408         * tree-pass.h (pass_split_functions): Declare.
14409         * opts.c (decode_options): Enable function splitting at -O2
14410         * timevar.def (TV_IPA_FNSPLIT): New macro.
14411         * ipa-split.c: New file.
14412         * common.opt (-fpartial-inlining): New flag.
14413         * Makefile.in (ipa-split.o): New object file.
14414         * passes.c (init_optimization_passes): Add ipa-split.
14415         * params.def (partial-inlining-entry-probability): New parameters.
14416         * doc/invoke.texi (-fpartial-inlining): New.
14417
14418 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14419
14420         PR 44665
14421         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
14422         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
14423         (gimplify_expr): Likewise.
14424
14425 2010-06-25  Martin Jambor  <mjambor@suse.cz>
14426
14427         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
14428         statements instead of bailing out on them.
14429         (ipa_analyze_indirect_call_uses): Do not require that loads from the
14430         parameter are in the same BB as the condition.  Update comments.
14431
14432 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
14433
14434         PR middle-end/43866
14435         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
14436         true or always false, return NULL_TREE.
14437         (tree_unswitch_single_loop): Optimize conditions even when reaching
14438         max-unswitch-level parameter.  If num > 0, optimize first all conditions
14439         using entry checks, then do still reachable block discovery and consider
14440         only conditions in still reachable basic blocks in the loop.
14441
14442         PR tree-optimization/44539
14443         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
14444         the call doesn't have LHS, but has VDEF.
14445
14446 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
14447
14448         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
14449         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
14450         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
14451         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
14452         * system.h (MODIFY_TARGET_NAME): Poison.
14453
14454 2010-06-25  Alan Modra  <amodra@gmail.com>
14455
14456         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
14457         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
14458         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
14459         CMODEL_LARGE as default.
14460         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
14461         (offsettable_ok_by_alignment): Delete.
14462         (rs6000_emit_move): Remove mcmodel=medium optimization.
14463
14464 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
14465
14466         With large parts from Jim Wilson:
14467         PR target/43902
14468         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
14469         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
14470         * optabs.c (optab_for_tree_code): Likewise.
14471         (expand_widen_pattern_expr): Likewise.
14472         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
14473         out of execute_optimize_widening_mul.
14474         (convert_plusminus_to_widen): New function.
14475         (execute_optimize_widening_mul): Use the two new functions.
14476         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
14477         Remove code to generate widening multiply-accumulate.  Add support
14478         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
14479         * gimple-pretty-print.c (dump_ternary_rhs): New function.
14480         (dump_gimple_assign): Call it when appropriate.
14481         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
14482         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
14483         (expand_gimple_stmt_1): Likewise.
14484         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
14485         WIDEN_MULT_MINUS_EXPR.
14486         * tree-ssa-operands.c (get_expr_operands): Likewise.
14487         * tree-inline.c (estimate_operator_cost): Likewise.
14488         * gimple.c (extract_ops_from_tree_1): Renamed from
14489         extract_ops_from_tree.  Add new arg for a third operand; fill it.
14490         (gimple_build_assign_stat): Support operations with three operands.
14491         (gimple_build_assign_with_ops_stat): Likewise.
14492         (gimple_assign_set_rhs_from_tree): Likewise.
14493         (gimple_assign_set_rhs_with_ops_1): Renamed from
14494         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
14495         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
14496         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
14497         WIDEN_MULT_MINUS_EXPR.
14498         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
14499         (extract_ops_from_tree_1): Adjust declaration.
14500         (gimple_assign_set_rhs_with_ops_1): Likewise.
14501         (gimple_build_assign_with_ops): Pass NULL for last operand.
14502         (gimple_build_assign_with_ops3): New macro.
14503         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
14504         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
14505         functions.
14506         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
14507         (verify_gimple_assign): Call it.
14508         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
14509         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
14510         functions for dealing with three-operand statements.
14511         * tree.c (commutative_ternary_tree_code): New function.
14512         * tree.h (commutative_ternary_tree_code): Declare it.
14513         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
14514         ternary statements.
14515         (gimple_assign_nonzero_warnv_p): Likewise.
14516         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
14517         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
14518         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
14519         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
14520         (struct hashtable_expr): New member ternary in the union.
14521         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
14522         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
14523         (iterative_hash_hashable_expr): Likewise.
14524         (print_expr_hash_elt): Handle EXPR_TERNARY.
14525         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
14526         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
14527         statements.  Handle GIMPLE_TERNARY_RHS.
14528
14529 2010-06-25  Jan Hubicka  <jh@suse.cz>
14530
14531         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
14532
14533 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
14534
14535         PR c/44517
14536         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
14537         parameters are not good.
14538         (c_parser_parameter_declaration): Error unknown type name if the type
14539         name can't start declaration specifiers.
14540
14541 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
14542
14543         * gcc.c (translate_options): Don't mention +e in comment.
14544         (process_command): Don't handle +e specially.
14545
14546 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
14547
14548         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
14549
14550         * ira-build.c (merge_hard_reg_conflicts): New function.
14551         (create_cap_allocno, copy_info_to_removed_store_destinations,
14552         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
14553         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
14554         (remove_unnecessary_allocnos, remove_low_level_allocnos)
14555         copy_nifo_to_removed_store_destination): Use them.
14556         * ira-lives.c (make_hard_regno_born): New function, split out of
14557         make_regno_born.
14558         (make_allocno_born): Likewise.
14559         (make_hard_regno_dead): New function, split out of make_regno_dead.
14560         (make_allocno_dead): Likewise.
14561         (inc_register_pressure): New function, split out of set_allocno_live.
14562         (dec_register_pressure): New function, split out of clear_allocno_live.
14563         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
14564         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
14565         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
14566         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
14567         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
14568         mark_pseudo_regno_live.
14569         (process_bb_node_lives): Use mark_pseudo_regno_live,
14570         make_hard_regno_born and make_allocno_dead.
14571         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
14572         set_allocno_live, clear_allocno_live): Delete functions.
14573
14574         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
14575         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
14576         functions.
14577         (ira_flattening): Use ira_parent_allocno.
14578         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
14579         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
14580
14581         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
14582         statement.
14583
14584         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
14585         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
14586         minmax_set_iter_cond, minmax_set_iter_next,
14587         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
14588         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
14589         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
14590         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
14591         uses changed.
14592
14593         * ira-int.h (struct live_range, live_range_t): Renamed from struct
14594         ira_allocno_live_range and allocno_live_range_t; all uses changed.
14595         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
14596         All uses changed.
14597
14598 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
14599
14600         * thumb2.md (thumb2_tlobits_cbranch): Delete.
14601         (peephole2 to convert zero_extract/compare of single bit to
14602          lshift/compare): New.
14603
14604 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
14605
14606         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
14607         recursive call and call to 'int_const_binop'.
14608         (build_range_check, fold_cond_expr_with_comparison, unextend,
14609         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
14610         multiple_of_p): Adjust call to const_binop.
14611
14612 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
14613
14614         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
14615         determine size of XFmode operand.
14616         (XFmode extended DFmode push splitter): Ditto.
14617         (XFmode extended SFmode push splitter): Ditto.
14618
14619 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
14620
14621         PR target/44588
14622         * config/i386/i386.md (extract_code): New.
14623         (<u>divmodqi4): Likewise.
14624         (divmodhiqi3): Likewise.
14625         (udivmodhiqi3): Likewise.
14626         (<u>divqi3): Remvoved.
14627
14628 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
14629
14630         PR middle-end/44492
14631         * recog.h (struct recog_data): Add is_asm field.
14632         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
14633         present in constraints of inline-asm operand and memory operand
14634         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
14635         (extract_insn): Initialize recog_data.is_asm.
14636         * doc/md.texi (Constraints): Document operand side-effect rules.
14637
14638 2010-06-24  Andi Kleen  <ak@linux.intel.com>
14639
14640         * c-parser.c (c_parser_conditional_expression): Call
14641         warn_for_omitted_condop.
14642         * doc/invoke.texi: Document omitted condop warning.
14643
14644 2010-06-24  Nick Clifton<nickc@redhat.com>
14645
14646         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
14647         insn in the sequence is a jump insn before setting its label.
14648
14649 2010-06-24  Alan Modra  <amodra@gmail.com>
14650
14651         * collect2.c (main): Match exactly --version and --help.
14652
14653 2010-06-24  DJ Delorie  <dj@redhat.com>
14654
14655         * config/m32c/m32c-pragma.c: Don't include rtl.h.
14656
14657 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
14658
14659         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
14660         using X87MODEF mode iterator.
14661         (pushsf splitter): Macroize splitter using P mode iterator.
14662         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
14663         mode iterator.
14664
14665         (*movxf_internal): Rename from *movxf_integer.
14666         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
14667         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
14668         (*movdf_internal): Rename from *movdf_integer.
14669         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
14670         (*movsf_internal): Rename from *movdf_1.
14671
14672 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
14673
14674         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
14675         (const_gimple_seq_node): Removed typedefs.
14676
14677         * gimple.h (gimple_seq_node_d, gimple_seq_node)
14678         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
14679
14680 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
14681
14682         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
14683         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
14684         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
14685         and CODE_FOR_vec_extract_lo_v4df.
14686
14687         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
14688         Changed to define_insn_and_split.
14689         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
14690         (vec_extract_lo_v16hi): Likewise.
14691         (vec_extract_lo_v32qi): Likewise.
14692         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
14693         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
14694
14695 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
14696
14697         PR target/44640
14698         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
14699         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
14700         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
14701         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
14702         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
14703
14704         PR target/44640
14705         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
14706
14707         PR other/44644
14708         * df-core.c (struct df): Rename to df_d.
14709         * df.h (struct df): Likewise.
14710         * dse.h (struct df): Remove forward declaration.
14711         * recog.h (struct insn_data): Rename to:
14712         (struct_insn_data_d).  Adjusted all users.
14713
14714 2010-06-23  Arnaud Charlet  <charlet@adacore.com
14715
14716         PR ada/22220
14717         * doc/install.texi: Update requirements to build GNAT.
14718
14719 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
14720
14721         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
14722         enum type.
14723         (m68k_sched_attr_opx_type): Remove unreachable return.
14724         (m68k_sched_attr_opy_type): Likewise.
14725         (m68k_sched_attr_size): Likewise.
14726         (sched_get_opxy_mem_type): Likewise.
14727         (m68k_sched_attr_op_mem): Likewise.
14728
14729 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
14730
14731         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
14732         new statement and adjust VDEF only if necessary.  Remove superfluous
14733         call to maybe_clean_or_replace_eh_stmt.
14734         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
14735         copy the flags.
14736         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
14737         * tree-inline.c (copy_bb): ...and not there.
14738
14739 2010-06-22  Cary Coutant  <ccoutant@google.com>
14740
14741         * dwarf2out.c (is_nested_in_subprogram): New function.
14742         (should_move_die_to_comdat): Use it.
14743         (copy_ancestor_tree): Don't mark DIEs here.
14744         (copy_decls_walk): Start walk from root of newly-added tree;
14745         mark DIEs here instead.
14746
14747 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
14748
14749         * config/i386/i386.md (unit): Also check sseishft1.
14750
14751 2010-06-22  Jan Hubicka  <jh@suse.cz>
14752
14753         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
14754         enabled.
14755
14756 2010-06-22  Jan Hubicka  <jh@suse.cz>
14757
14758         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
14759         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
14760         Return true if something changed.
14761         * df.h (df_confluence_function_n): Return bool.
14762         * df-core.c (df_worklist_propagate_forward,
14763         df_worklist_propagate_backward): Track changes and ages.
14764         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
14765         track ages.
14766         * dse.c (dse_confluence_n): Return always true.
14767
14768 2010-06-22  Jan Hubicka  <jh@suse.cz>
14769
14770         * bitmap.c (bitmap_clear_bit): Micro optimize.
14771
14772 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
14773
14774         * config/i386/i386.md (SWI1248x): New mode iterator.
14775         (SWI48x): Ditto.
14776         (SWI12): Ditto.
14777         (SWI24): Ditto.
14778
14779         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
14780         SWI1248x mode iterator.
14781         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
14782         using SWI124 mode iterator.
14783         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
14784         mode iterator.
14785         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
14786         *pushdi2_prologue_rex64 using P mode iterator.
14787         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
14788         using SWI48 mode iterator.
14789         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
14790         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
14791         using SWI1248x mode iterator.
14792         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
14793         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
14794         SWI48 mode iterator.
14795         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
14796         iterator.
14797         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
14798         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
14799         SWI12 mode iterator.
14800         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
14801         SWI12 mode iterator.
14802         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
14803         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
14804         SWI24 mode iterator.
14805         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
14806         SWI48 mode iterator.
14807         (mov<mode>_insn_1): New expander.
14808         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
14809         using SWI48x mode iterator.
14810
14811         (*movoi_internal_avx): Rename from *movoi_internal.
14812         (*movti_internal_rex64): Rename from *movti_rex64.
14813         (*movti_internal_sse): Rename from *movti_sse.
14814         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
14815         (*movdi_internal): Rename from *movdi_2.
14816         (*movsi_internal): Rename from *movsi_1.
14817         (*movhi_internal): Rename from *movhi_1.
14818         (*movqi_internal): Rename from *movqi_1.
14819
14820         (insv): Update the call to gen_movsi_insv_1 for rename.
14821         * config/i386/i386.c (promote_duplicated_reg): Ditto.
14822
14823 2010-06-22  Jan Hubicka  <jh@suse.cz>
14824
14825         * passes.c (execute_function_todo): Move call of statistics_fini_pass
14826         to ...
14827         (execute_todo) ... this one.
14828
14829 2010-06-22  Alan Modra  <amodra@gmail.com>
14830
14831         PR target/44364
14832         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14833         * caller-save.c (insert_restore, insert_save): Use non-validate
14834         form of adjust_address.
14835
14836 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14837
14838         PR target/39690
14839         * config/pa/pa.c (override_options): Disable
14840         -freorder-blocks-and-partition.
14841
14842 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
14843
14844         PR target/44615
14845         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
14846
14847         * config/i386/i386.md (type): Add sseishft1
14848
14849         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
14850         (ppro_insn_load): Likewise.
14851         (ppro_insn_store): Likewise.
14852         (ppro_insn_both): Likewise.
14853
14854         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
14855         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
14856         for type.
14857         (*vec_extractv2di_1_avx): Likewise.
14858         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
14859         type.  Remove atom_unit.
14860         (*vec_extractv2di_1_sse2): Likewise.
14861
14862 2010-06-21  DJ Delorie  <dj@redhat.com>
14863
14864         * diagnostic.h (diagnostic_classification_change_t): New.
14865         (diagnostic_context): Add history and push/pop list.
14866         (diagnostic_push_diagnostics): Declare.
14867         (diagnostic_pop_diagnostics): Declare.
14868         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
14869         from pragmas in a history chain instead of the global table.
14870         (diagnostic_push_diagnostics): New.
14871         (diagnostic_pop_diagnostics): New.
14872         (diagnostic_report_diagnostic): Scan history chain to find state
14873         of diagnostics as of the diagnostic location.
14874         * opts.c (set_option): Pass UNKNOWN_LOCATION to
14875         diagnostic_classify_diagnostic.
14876         (enable_warning_as_error): Likewise.
14877         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
14878         use in the history chain.
14879         * doc/extend.texi: Document pragma GCC diagnostic changes.
14880
14881 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
14882
14883         * dwarf2out.c (add_linkage_name): New function.  Don't add
14884         anything to DW_TAG_member DIEs.
14885         (add_name_and_src_coords_attributes): Use it.
14886         (gen_variable_die): Call it for C++ static data members if
14887         specification is DW_TAG_member.
14888
14889         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
14890         C++ char16_t and char32_t.
14891
14892         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
14893         * genattrtab.c: Include vecprim.h.
14894         (cached_attrs, cached_attr_count, attrs_seen_once,
14895         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
14896         attrs_cached_after): New variables.
14897         (find_attrs_to_cache): New function.
14898         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
14899         (write_test_expr): Add attrs_cached argument, return it too,
14900         attempt to cache non-const attributes used more than once in
14901         a single case handling.
14902         (write_attr_get): Use find_attrs_to_cache, for caching candidates
14903         emit cached_* variables.  Adjust write_attr_set callers.
14904         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
14905         to find attributes that should be cached in this block.  Adjust
14906         write_test_expr callers.
14907         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
14908         callers.
14909         (make_automaton_attrs): Adjust write_test_expr caller.
14910
14911         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
14912         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
14913         (make_automaton_attrs): If find_tune_attr returns non-NULL,
14914         write separate internal_dfa_insn_code_* and insn_default_latency_*
14915         functions for each attribute's value and emit init_sched_attrs
14916         function and function pointers.
14917         * genattr.c (const_attrs, reservations): New variables.
14918         (gen_attr): Add const attributes to const_attrs vector.
14919         (check_tune_attr, find_tune_attr): New functions.
14920         (main): Add reservations to reservations vector.  If find_tune_attr
14921         returns true, add prototype for init_sched_attrs and make
14922         internal_dfa_insn_code and insn_default_latency function pointers,
14923         otherwise define init_sched_attrs as dummy macro.
14924         * cfgexpand.c: Include insn-attr.h.
14925         (gimple_expand_cfg): Call init_sched_attrs.
14926
14927         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
14928
14929         PR target/44575
14930         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
14931         va_arg from a set of register save slots into a temporary,
14932         if the container is bigger than type size, do the copying
14933         using smaller mode or using memcpy.
14934
14935         PR bootstrap/44426
14936         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
14937         prototype.
14938         (sel_print_to_dot): Remove macro.
14939         (sel_print): Likewise.  New prototype.
14940         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
14941         (sel_print): New function.
14942
14943 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14944
14945         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
14946         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
14947
14948 2010-06-21  Nick Clifton  <nickc@redhat.com>
14949
14950         * config/rx/rx.h (PTRDIFF_TYPE): Define.
14951         (SMALL_REGISTER_CLASS): Define (to zero).
14952         (PRINT_OPERAND): Delete.
14953         (PRINT_OPERAND_ADDRESS): Delete.
14954         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
14955         (rx_print_operand_address): Delete prototype.
14956         * config/rx/rx.c (rx_print_operand): Make static.
14957         Allow %H and %L to handle CONST_DOUBLEs.
14958         (rx_print_operand_address): Make static.
14959         (rx_gen_move_template): Rename local variable 'template' to
14960         out_template.
14961         (rx_function_arg): Do not pass unknown sized objects in registers.
14962         (TARGET_PRINT_OPERAND): Define.
14963         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14964
14965 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
14966
14967         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
14968
14969 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
14970
14971         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
14972         stack-alignment for simple leaf-functions.
14973
14974 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14975
14976         * doc/install.texi: Document bootstrap-lto.
14977
14978 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14979
14980         PR debug/44248
14981         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
14982         (input_function): Drop them here, if VTA is disabled.
14983
14984 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
14985
14986         PR target/44546
14987         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
14988         New predicate.
14989         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
14990         ix86_swapped_fp_comparsion_operator instead of
14991         ix86_fp_comparison_operator.
14992
14993         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
14994         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
14995         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
14996         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
14997         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
14998         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
14999
15000 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
15001
15002         PR other/32998
15003         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
15004         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
15005         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
15006         (decode_cmdline_option): Update for this return value.  Set
15007         orig_option_with_args_text field.  Set arg field for unknown
15008         options.  Make static.
15009         (decode_cmdline_options_to_array): New.
15010         (prune_options): Update handling of find_opt return value.
15011         * opts.c (read_cmdline_option): Take decoded option.  Return void.
15012         (read_cmdline_options): Take decoded options.
15013         (decode_options): Add parameters for decoded options.  Use
15014         decode_cmdline_options_to_array.  Use decoded options for -O
15015         scan.  Use integral_argument for -O parameters.  Update call to
15016         read_cmdline_options.
15017         (enable_warning_as_error): Update handling of find_opt return value.
15018         * opts.h: Update comment on unknown options.
15019         (struct cl_decoded_option): Update comments on opt_index and arg.
15020         Add orig_option_with_args_text.
15021         (decode_cmdline_option): Remove.
15022         (decode_cmdline_options_to_array): Declare.
15023         (decode_options): Update prototype.
15024         * toplev.c (save_argv): Remove.
15025         (save_decoded_options, save_decoded_options_count): New.
15026         (read_integral_parameter): Remove.
15027         (print_switch_values): Use decoded options.
15028         (toplev_main): Don't set save_argv.  Update call to decode_options.
15029         * toplev.h (read_integral_parameter): Remove.
15030         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
15031
15032 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
15033
15034         PR target/44072
15035         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
15036         immediate.
15037         * constraints.md (Pw, Px): New constraints.
15038         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
15039
15040 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
15041
15042         * config/i386/sse.md (fma4modesuffixf4): Removed.
15043         (ssemodesuffixf2s): Likewise.
15044         (ssemodesuffixf4): Likewise.
15045         (ssemodesuffixf2c): Likewise.
15046         (ssescalarmodesuffix2s): Likewise.
15047         (avxmodesuffixf2c): Likewise.
15048         (ssemodesuffix): New.
15049         (ssescalarmodesuffix): Likewise.
15050         Update patterns with ssemodesuffix and ssescalarmodesuffix.
15051
15052 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
15053
15054         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
15055
15056 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
15057
15058         * stor-layout.c (debug_rli): Remove unused local variables.
15059
15060 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
15061
15062         PR rtl-optimization/40900
15063         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
15064         original expression for later reuse.
15065         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
15066         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
15067
15068 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
15069
15070         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
15071         double_int_fits_in_uhwi_p): Implement as static inline.
15072         (double_int_xor): New inline function.
15073         (double_int_lrotate, double_int_rrotate, double_int_max,
15074         double_int_umax, double_int_smax, double_int_min, double_int_umin,
15075         double_int_smin): Declare.
15076         (lrotate_double, rrotate_double): Remove declaration.
15077         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
15078         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
15079         (double_int_lrotate, double_int_rrotate, double_int_max,
15080         double_int_umax, double_int_smax, double_int_min, double_int_umin,
15081         double_int_smin): New function.
15082         * fold-const.c (int_const_binop): Clean up, use double_int_*
15083         functions.
15084         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
15085         double_int_* and immed_double_int_const functions.
15086
15087 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
15088
15089         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
15090         * function.c (types_used_by_cur_var_decl): Likewise.
15091         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
15092
15093 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
15094
15095         * tree.h (record_layout_info): Change type of pending_statics field
15096         to a VEC.
15097         * stor-layout.c (start_record_layout): Store NULL into
15098         pending_statics.
15099         (debug_rli): Call debug_vec_tree instead of debug_tree.
15100         (place_field): Likewise.
15101         (finish_record_layout): Likewise.
15102
15103 2010-06-18  Alan Modra  <amodra@gmail.com>
15104
15105         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
15106
15107 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15108
15109         PR target/43740
15110         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
15111         for SET source operand from SET destination operand.
15112
15113 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
15114
15115         PR rtl-optimization/39871
15116         * reload1.c (init_eliminable_invariants): For flag_pic, disable
15117         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
15118         (function_invariant_p): Rule out a plus of frame or arg pointer with
15119         a SYMBOL_REF.
15120         * ira.c (find_reg_equiv_invariant_const): Likewise.
15121
15122 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
15123
15124         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
15125         print_operand_address and puts to output the operand for CONST.
15126
15127 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
15128
15129         PR debug/44572
15130         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
15131         hook.
15132
15133 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15134
15135         * v850-protos.h (print_operand): Delete.
15136         (print_operand_address): Delete.
15137         * v850.h (PRINT_OPERAND): Delete.
15138         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15139         (PRINT_OPERAND_ADDRESS): Delete.
15140         * v850.c (print_operand_address): Rename to...
15141         (v850_print_operand_address): ...this.  Make static. Call
15142         v850_print_operand.
15143         (print_operand): Rename to...
15144         (v850_print_operand): ...this.  Make static.  Call
15145         v850_print_operand_address.
15146         (v850_print_operand_punct_valid_p): New function.
15147         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15148         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15149
15150 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15151
15152         * config/sh/sh-protos.h (print_operand): Delete.
15153         (print_operand_address): Delete.
15154         * config/sh/sh.h (PRINT_OPERAND): Delete.
15155         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15156         (PRINT_OPERAND_ADDRESS): Delete.
15157         * config/sh/sh.c (sh_print_operand_address): Make static.
15158         (sh_print_operand): Make static.  Call sh_print_operand_address
15159         and sh_print_operand.
15160         (sh_print_operand_punct_valid_p): New function.
15161         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15162         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15163
15164 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15165
15166         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
15167         (mcore_print_operand_address): Delete.
15168         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
15169         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15170         (PRINT_OPERAND_ADDRESS): Delete.
15171         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
15172         (mcore_print_operand): Make static.
15173         (mcore_print_operand_punct_valid_p): New function.
15174         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
15175         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
15176
15177 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15178
15179         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
15180         (print_operand_address): Delete.
15181         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
15182         (PRINT_OPERAND_ADDRESS): Delete.
15183         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
15184         static.
15185         (m68hc11_print_operand): Make static.
15186         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15187
15188 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15189
15190         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
15191         (m32r_print_operand_address): Delete.
15192         * config/m32r/m32r.h (m32r_punct_chars): Delete.
15193         (PRINT_OPERAND): Delete.
15194         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15195         (PRINT_OPERAND_ADDRESS): Delete.
15196         * config/m32r/m32r.c (m32r_punct_chars): Make static.
15197         (m32r_print_operand_address): Make static.
15198         (m32r_print_operand): Make static.
15199         (m32r_print_operand_punct_valid_p): New function.
15200         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15201         (TARGET_PRINT_OPERAND_ADDRESS): Define.
15202
15203 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15204
15205         * config/iq2000/iq2000-protos.h (print_operand): Delete.
15206         (print_operand_address): Delete.
15207         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
15208         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15209         (PRINT_OPERAND_ADDRESS): Delete.
15210         (iq2000_print_operand_punct): Delete.
15211         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
15212         (iq2000_print_operand_address): Make static.
15213         (iq2000_print_operand): Make static.
15214         (iq2000_print_operand_punct_valid_p): New function.
15215         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15216         (TARGET_PRINT_OPERAND_ADDRESS): Define.
15217
15218 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15219
15220         * config/frv/frv-protos.h (frv_print_operand): Delete.
15221         (frv_print_operand_address): Delete.
15222         * config/frv/frv.h (PRINT_OPERAND): Delete.
15223         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15224         (PRINT_OPERAND_ADDRESS): Delete.
15225         * config/frv/frv.c (frv_print_operand_address): Make static.
15226         (frv_print_operand): Make static.
15227         (frv_print_operand_punct_valid_p): New function.
15228         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15229         (TARGET_PRINT_OPERAND_ADDRESS): Define.
15230
15231 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
15232
15233         * tree.h (vec_member): Declare.
15234         * tree.c (vec_member): Define.
15235
15236 2010-06-17  Richard Guenther  <rguenther@suse.de>
15237
15238         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
15239         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
15240
15241 2010-06-17  Richard Guenther  <rguenther@suse.de>
15242
15243         * tree-inline.c (declare_return_variable): Remove bogus code.
15244
15245 2010-06-17  Richard Guenther  <rguenther@suse.de>
15246
15247         * gimplify.c (gimplify_bind_expr): Always promote complex
15248         and vector variables to registers if possible.
15249
15250 2010-06-17  Richard Guenther  <rguenther@suse.de>
15251
15252         * expr.c (get_inner_reference): Use double_int for bit_offset
15253         calculation.
15254
15255 2010-06-16  DJ Delorie  <dj@redhat.com>
15256
15257         * common.opt (-fstrict-volatile-bitfields): new.
15258         * doc/invoke.texi: Document it.
15259         * fold-const.c (optimize_bit_field_compare): For volatile
15260         bitfields, use the field's type to determine the mode, not the
15261         field's size.
15262         * expr.c (expand_assignment): Likewise.
15263         (get_inner_reference): Likewise.
15264         (expand_expr_real_1): Likewise.
15265         * expmed.c (store_fixed_bit_field): Likewise.
15266         (extract_bit_field_1): Likewise.
15267         (extract_fixed_bit_field): Likewise.
15268
15269 2010-06-16  Richard Guenther  <rguenther@suse.de>
15270
15271         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
15272
15273 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
15274
15275         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
15276         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
15277         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
15278         * debug.c: Likewise.
15279         * sdbout.c: Likewise.
15280         * vmsdbgout.c: Likewise.
15281         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
15282         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
15283         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
15284         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
15285         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
15286         * dwarf2out.c (dw_fde_struct): New fields
15287         dw_fde_vms_{end,begin}_prologue.
15288         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
15289         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
15290         (dwarf2out_vms_end_prologue): New function.
15291         (dwarf2out_vms_begin_epilogue): New function.
15292         (dw_val_struct): New value dw_val_class_vms_delta.
15293         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
15294         begin_epilogue for VMS.
15295         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
15296         new static functions.
15297         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
15298         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
15299         static functions.
15300         (print_die): New case dw_val_class_vms_delta.
15301         (attr_checksum): Likewise.
15302         (same_dw_val_p: Likewise.
15303         (size_of_die): Likewise.
15304         (value_format): Likewise.
15305         (output_die): Likewise.
15306         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
15307         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
15308         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
15309         dwarf2out_cfi_begin_epilogue
15310         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
15311
15312 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
15313
15314         * config/cris/cris-protos.h (cris_print_operand): Delete.
15315         (cris_print_operand_address): Delete.
15316         * config/cris/cris.h (PRINT_OPERAND): Delete.
15317         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15318         (PRINT_OPERAND_ADDRESS): Delete.
15319         * config/cris/cris.c (cris_print_operand_address): Make static.
15320         (cris_print_operand): Make static.
15321         (cris_print_operand_punct_valid_p): New function.
15322         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15323         (TARGET_PRINT_OPERAND_ADDRESS): Define.
15324
15325 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
15326
15327         * config/arm/arm-protos.h (arm_print_operand): Delete.
15328         (arm_print_operand_address): Delete.
15329         * config/arm/arm.h (PRINT_OPERAND): Delete.
15330         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
15331         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
15332         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
15333         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
15334         (arm_print_operand): Make static.
15335         (arm_print_operand_punct_valid_p): New function.
15336         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
15337         (TARGET_PRINT_OPERAND_ADDRESS): Define.
15338
15339 2010-06-16  Nick Clifton  <nickc@redhat.com>
15340
15341         * config/rx/constraints.md (NEGint4): New constraint.
15342         * config/rx/rx.md (attr cc): Add set_zsc.
15343         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
15344         initialised.
15345         (cmpsf): Likewise.
15346         (call_internal): Clobber the cc0 register.
15347         (call_value_internal): Likewise.
15348         (cstoresi4): Likewise.
15349         (movsieq): Likewise.
15350         (movsine): Likewise.
15351         (addsi3): Add alternative to handle small negative constants.
15352         (sunsi3): Likewise.
15353         (addsi3): Do not set the O bit in the cc0 register.
15354         (adddi3): Likewise.
15355         (subsi3): Likewise.
15356         (subdi3): Likewise.
15357         (andsi3): Reorder alternatives to prefer shorter forms.
15358         (mulsi3): Likewise.
15359         (iorsi3): Likewise.
15360         (negsi2): Note that the cc0 flags are set.
15361         (rotlsi3): Note that only the Z and S bits are set in cc0.
15362         (lshrsi3): Likewise.
15363         (ashlsi3): Likewise.
15364         (subsf3): Use %Q for the MEM operand.
15365         (fix_truncsfsi2): Likewise.
15366         (floatsisf2): Likewise.
15367         (bitset): Remove early clobber from destination.
15368         (bitset_in_memory): Likewise.
15369         (lrintsf2): Clobber the cc0 register.
15370         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
15371         (rx_print_operand): Handle %N.
15372
15373 2010-06-16  Jan Hubicka  <jh@suse.cz>
15374
15375         * df-core.c (df_compact_blocks): Free problem_temps vector.
15376
15377 2010-06-16  Martin Jambor  <mjambor@suse.cz>
15378
15379         PR tree-optimization/43905
15380         * tree-sra.c: Include tree-inline.h.
15381         (create_abstract_origin): Removed.
15382         (modify_function): Version the call graph node instead of creating
15383         abstract origins and dealing with same_body aliases.
15384         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
15385         function is versionable.
15386         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
15387
15388 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
15389
15390         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
15391         (CHOOSE_DYNAMIC_LINKER): Update.
15392
15393 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
15394
15395         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
15396         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
15397         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
15398         *prefetch_3dnow_rex.
15399
15400 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
15401
15402         * target.h (struct asm_out):Add declare_constant_name field.
15403         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
15404         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
15405         * output.h (default_asm_declare_constant_name): Declare.
15406         (assemble_label): Update prototype.
15407         * varasm.c (assemble_constant_contents): Use
15408         targetm.asm_out.declare_constant_name target hook.
15409         (assemble_label): Add 'file' argument.
15410         (default_asm_declare_constant_name): New function.
15411         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
15412         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
15413         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
15414
15415         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
15416         * config/darwin.c (darwin_asm_declare_constant_name): New function.
15417         (machopic_output_indirection): Update assemble_label argument list.
15418         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
15419         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
15420
15421 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
15422
15423         PR middle-end/44391
15424         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
15425         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
15426
15427 2010-06-15  Richard Guenther  <rguenther@suse.de>
15428
15429         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
15430
15431 2010-06-15  Paul Brook  <paul@codesourcery.com>
15432
15433         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
15434         hard-float ABI.
15435
15436 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
15437
15438         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
15439         don't get a vector type for output.
15440
15441 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
15442
15443         PR fortran/44536
15444         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
15445         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
15446         (LANG_HOOKS_DECLS): Add it.
15447         * gimplify.c (omp_notice_variable): Call
15448         lang_hooks.decls.omp_report_decl.
15449
15450 2010-06-15  Martin Jambor  <mjambor@suse.cz>
15451
15452         PR lto/44464
15453         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
15454         on the newly dead SSA name.
15455
15456 2010-06-15  Alan Modra  <amodra@gmail.com>
15457
15458         * doc/invoke.texi: Add mcmodel to powerpc options.
15459         * configure.ac: Add HAVE_LD_LARGE_TOC test.
15460         * configure: Regenerate.
15461         * config.in: Regenerate.
15462         * config/rs6000/linux64.opt (mcmodel): New.
15463         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
15464         (TARGET_CMODEL, SET_CMODEL): Define.
15465         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
15466         select CMODEL_MEDIUM default.
15467         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
15468         (TARGET_CMODEL): Define default.
15469         * config/rs6000/rs6000.c (cmodel): New variable.
15470         (rs6000_explicit_options): Add cmodel field.
15471         (rs6000_handle_option): Handle -mcmodel.
15472         (create_TOC_reference): Add largetoc_reg param.  Generate high,
15473         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
15474         (rs6000_delegitimize_address): Recognise new toc reference rtl
15475         and minimal-toc rtl.
15476         (rs6000_legitimize_reload_address): Handle new toc references.
15477         (print_operand_address): Handle legitimate_constant_pool_address_p
15478         match before lo_sum.
15479         (rs6000_eliminate_indexed_memrefs): Tidy.
15480         (rs6000_emit_move): Tweak threshold for inlining constants.
15481         Keep rs6000_emit_allocate_stack large stack frame offsets
15482         loaded into r0 inline.
15483         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
15484         (tocrel_base, tocrel_offset): New variables.
15485         (toc_relative_expr_p): Set them here.
15486         (print_operand_address): Skip over any offset on constant pool address.
15487         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
15488         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
15489         (offsettable_ok_by_alignment): New function.
15490         (rs6000_emit_move): Address suitably aligned local symbol_refs
15491         relative to the toc pointer for -mcmodel=medium.
15492         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
15493         strict param.  Allow lo_sum version of addressing.  Verify reg
15494         used for -mminimal-toc and -mcmodel != small.  Update all callers.
15495         * config/rs6000/constraints.md: Update for above change.
15496         * config/rs6000/predicates.md: Likewise.
15497         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
15498         code.
15499         (tls_gd): Split for -mcmodel=medium/large.
15500         (tls_gd_high, tls_gd_low): New.
15501         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
15502         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
15503         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
15504         (largetoc_high, largetoc_low): New.
15505         (cmptf_internal2): Add clobber.
15506         * config/rs6000/rs6000-protos.h: Update.
15507
15508 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
15509
15510         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
15511         true if no prefetch is going to be generated for a given group.
15512         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
15513         estimate the prefetch_count.
15514         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
15515         prefetch count by considering the unroll_factor and prefetch_mod
15516         for is_loop_prefetching_profitable.
15517
15518 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
15519
15520         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
15521         anything if the argument is not a MEM.
15522
15523 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
15524
15525         PR debug/43650
15526         PR debug/44181
15527         PR debug/44247
15528         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
15529         debug stmts.
15530         (canonicalize_loop_ivs): Likewise.
15531
15532 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
15533
15534         PR debug/43656
15535         * haifa-sched.c (setup_insn_reg_pressure_info,
15536         update_register_pressure): Reject debug insns.
15537         (ready_sort): Don't setup reg pressure for debug insns.
15538         (schedule_insn): Don't update reg pressure for debug insns.
15539
15540 2010-06-14  Richard Guenther  <rguenther@suse.de>
15541
15542         * lto-streamer.c (cached_bp): Remove.
15543         (bitpack_delete): Likewise.
15544         (bitpack_create): Likewise.
15545         (bp_get_next_word): Likewise.
15546         (bp_pack_value, bp_unpack_value): Move ...
15547         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
15548         Re-implement.
15549         (struct bitpack_d): Likewise.
15550         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
15551         New inline functions.
15552         * lto-streamer-out.c (lto_output_bitpack): Remove.
15553         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
15554         (pack_value_fields): Adjust.
15555         (lto_write_tree): Likewise.
15556         (output_gimple_stmt): Likewise.
15557         (output_function): Likewise.
15558         * lto-streamer-in.c (input_gimple_stmt): Adjust.
15559         (input_function): Likewise.
15560         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
15561         (lto_input_bitpack): Remove.
15562         (lto_materialize_tree): Adjust.
15563         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
15564         * lto-cgraph.c (lto_output_edge): Adjust.
15565         (lto_output_node): Likewise.
15566         (lto_output_varpool_node): Likewise.
15567         (lto_output_ref): Likewise.
15568         (input_node): Likewise.
15569         (input_varpool_node): Likewise.
15570         (input_ref): Likewise.
15571         (input_edge): Likewise.
15572         (output_node_opt_summary): Likewise.
15573         (input_node_opt_summary): Likewise.
15574         * ipa-pure-const.c (pure_const_write_summary): Likewise.
15575         (pure_const_read_summary): Likewise.
15576         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
15577         (ipa_read_indirect_edge_info): Likewise.
15578         (ipa_write_node_info): Likewise.
15579         (ipa_read_node_info): Likewise.
15580
15581 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
15582
15583         PR target/44534
15584         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
15585         (vec_extract_lo_v16hi): Likewise.
15586         (vec_extract_lo_v32qi): Likewise.
15587
15588 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
15589
15590         PR bootstrap/44426
15591         * tree.h (build_call_expr): Don't define as vararg macro, instead
15592         add a prototype.
15593         * builtins.c (build_call_nofold): Remove.
15594         (expand_builtin_int_roundingfn, expand_builtin_pow,
15595         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
15596         expand_builtin_memset_args, expand_builtin_strcmp,
15597         expand_builtin_strncmp, expand_builtin_memory_chk): Use
15598         build_call_nofold_loc instead of build_call_nofold.
15599         (build_call_expr): New function.
15600
15601         PR tree-optimization/44508
15602         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
15603         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
15604         don't eliminate trivially dead stmts.
15605         * tree-vrp.c (vrp_finalize): Pass false as last argument
15606         to substitute_and_fold.
15607         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
15608         to substitute_and_fold.
15609         * tree-ssa-ccp.c (ccp_finalize): Likewise.
15610
15611         PR bootstrap/44509
15612         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
15613
15614 2010-06-14  Ira Rosen  <irar@il.ibm.com>
15615
15616         PR tree-optimization/44507
15617         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
15618         to build initial vector for BIT_AND_EXPR.
15619         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
15620
15621 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
15622
15623         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
15624         adjust z10prop set_attr.
15625
15626 2010-06-13  Jan Hubicka  <jh@suse.cz>
15627
15628         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
15629         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
15630         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
15631         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
15632         datastructure checks into checking asserts.
15633         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
15634         * tree-ssa-sccvn.c (VN_INFO): Likewise.
15635         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
15636         df_ref_create_structure): Likewise.
15637         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
15638         pool_free): Use gcc_checking_assert.
15639         * alias.c (get_alias_set): Likewise.
15640         * var-tracking.c (variable_htab_free, shared_hash_copy,
15641         canonicalize_values_mark, variable_merge_over_cur): Likewise.
15642         * lto-streamer.c (bp_unpack_value): Likewise.
15643
15644 2010-06-13  Richard Guenther  <rguenther@suse.de>
15645
15646         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
15647         Do not stream but initialize TYPE_CANONICAL to NULL.
15648         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
15649         * gimple.c (gimple_types_compatible_p): Disregard
15650         TYPE_STRUCTURAL_EQUALITY_P.
15651         (gimple_register_type): Use TYPE_CANONICAL as cache.
15652         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
15653         before registering common types.
15654         * config/i386/i386.c (ix86_function_arg_boundary): Do not
15655         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
15656         * tree.h (TYPE_CANONICAL): Clarify documentation.
15657
15658 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
15659
15660         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15661         LIBCALL_VALUE): Remove macros.
15662         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
15663         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15664         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15665         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
15666         (ia64_function_value): Make static. Handle receiving the function
15667         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
15668
15669 2010-06-12  Jan Hubicka  <jh@suse.cz>
15670
15671         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
15672         at correct place.
15673
15674 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
15675
15676         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
15677
15678 2010-06-12  Jan Hubicka  <jh@suse.cz>
15679
15680         * df-core.c (df_clear_bb_info): New function.
15681         (df_set_blocks): bb_info is always allocated.
15682         (df_get_bb_info): Use block_info_elt_size.
15683         (df_set_bb_info): Likewise.
15684         (df_compact_blocks): Update for new block_info.
15685         (grow_bb_info): New function.
15686         * df-problems.c (df_grow_bb_info): Move to df-core.c
15687         (df_rd_set_bb_info): Remove.
15688         (df_rd_free_bb_info): Do not free block pool.
15689         (df_rd_alloc): Do not create pool, use check for
15690         obstack presence instead of NULL pointer for new blocks.
15691         (df_rd_free): DO not free alloc pool; clear block_info.
15692         (problem_RD): Add size of block info structure.
15693         (df_lr_set_bb_info): Remove.
15694         (df_lr_free_bb_info): Do not free block pool.
15695         (df_lr_alloc): Do not create pool, use check for
15696         obstack presence instead of NULL pointer for new blocks.
15697         (df_lr_free): DO not free alloc pool; clear block_info.
15698         (problem_LR): Add size of block info structure.
15699         (df_live_set_bb_info): Remove.
15700         (df_live_free_bb_info): Do not free block pool.
15701         (df_live_alloc): Do not create pool, use check for
15702         obstack presence instead of NULL pointer for new blocks.
15703         (df_live_free): DO not free alloc pool; clear block_info.
15704         (problem_LIVE): Add size of block info structure.
15705         (problem_CHAIN): Add size of block info structure.
15706         (df_byte_lr_set_bb_info): Remove.
15707         (df_byte_lr_free_bb_info): Do not free block pool.
15708         (df_byte_lr_alloc): Do not create pool, use check for
15709         obstack presence instead of NULL pointer for new blocks.
15710         (df_byte_lr_free): DO not free alloc pool; clear block_info.
15711         (problem_BYTE_LR): Add size of block info structure.
15712         (problem_NOTE): Add size of block info structure.
15713         (df_byte_MD_set_bb_info): Remove.
15714         (df_byte_MD_free_bb_info): Do not free block pool.
15715         (df_byte_MD_alloc): Do not create pool, use check for
15716         obstack presence instead of NULL pointer for new blocks.
15717         (df_byte_MD_free): DO not free alloc pool; clear block_info.
15718         (problem_BD): Add size of block info structure.
15719         * df-scan.c (df_scan_free_internal): Free block pool.
15720         (df_scan_set_bb_info): Remove.
15721         (df_scan_free_bb_info): Check for artificial_defs instead
15722         of bb_info being non-NULL.
15723         (df_scan_alloc): DO not create df_scan_block pool.
15724         (problem_SCAN): Set size of block info.
15725         (df_bb_refs_record): Do not allocate bb_info.
15726         * df.h (df_problem): Add block_info_elt_size.
15727         (struct dataflow): Change block_info to void *.
15728         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
15729         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
15730         in-line structures.
15731
15732 2010-06-12  Jan Hubicka  <jh@suse.cz>
15733
15734         PR tree-optimize/44485
15735         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
15736         containing use of return value of noreturn function.
15737
15738 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
15739
15740         * targhooks.c (default_function_value): Don't use
15741         FUNCTION_OUTGOING_VALUE.
15742         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
15743         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
15744
15745 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
15746
15747         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
15748         Add crtfastmath.o to extra_parts.
15749         * config/mips/crtfastmath.c: New.
15750         * config/mips/linux.h (ENDFILE_SPEC): New.
15751
15752 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
15753
15754         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
15755         old_type in parameter.
15756         (gcc_type_for_value): Update call to gcc_type_for_interval.
15757         (compute_type_for_level_1): Renamed compute_type_for_level.
15758         Update call to gcc_type_for_interval.
15759
15760 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
15761
15762         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
15763         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
15764
15765 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
15766
15767         * opts-common.c: Include options.h.
15768         (integral_argument): Move from opts.c.
15769         (decode_cmdline_option): New.  Based on read_cmdline_option.
15770         * opts.c (integral_argument): Move to opts-common.c.
15771         (read_cmdline_option): Move most contents to
15772         decode_cmdline_option.  Use %qs in diagnostics.
15773         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
15774         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
15775         decode_cmdline_option): New.
15776
15777 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
15778
15779         PR target/44481
15780         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
15781         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
15782         (partiysi2_cmp): Ditto.
15783         (*partiyhi2_cmp): Ditto.
15784         (*parityqi2_cmp): Remove.
15785
15786 2010-06-11  Jan Hubicka  <jh@suse.cz>
15787
15788         * bitmap.h (bmp_iter_next_bit): New.
15789         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
15790
15791 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
15792             Eric Botcazou  <ebotcazou@adacore.com>
15793
15794         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
15795         computed cost.
15796
15797 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
15798
15799         * config/i386/i386.md (unspec): New define_c_enum.
15800         (unspecv): Ditto.
15801
15802 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
15803
15804         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
15805
15806 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
15807
15808         PR middle-end/44483
15809         * tree-if-conv.c (bb_predicate_s): New struct.
15810         (bb_predicate_p): New.
15811         (bb_has_predicate): New.
15812         (bb_predicate): New.
15813         (set_bb_predicate): New.
15814         (bb_predicate_gimplified_stmts): New.
15815         (set_bb_predicate_gimplified_stmts): New.
15816         (add_bb_predicate_gimplified_stmts): New.
15817         (init_bb_predicate): New.
15818         (free_bb_predicate): New.
15819         (is_predicated): Use bb_predicate.
15820         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
15821         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
15822         before processing their successors.
15823         (clean_predicate_lists): Removed.
15824         (find_phi_replacement_condition): Use bb_predicate.
15825         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
15826         computations.
15827         (insert_gimplified_predicates): New.
15828         (combine_blocks): Call insert_gimplified_predicates.
15829         (tree_if_conversion): Call free_bb_predicate instead of
15830         clean_predicate_lists.
15831
15832 2010-10-11  Paul Brook  <paul@codesourcery.com>
15833
15834         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
15835         * config/arm/arm.c (all_architectures): Change v7e-m default to
15836         cortexm4.
15837         * config/arm/arm-cores.def: Add cortex-m4.
15838         * config/arm/arm-tune.md: Regenerate.
15839
15840 2010-06-11  Jan Hubicka  <jh@suse.cz>
15841
15842         * ipa-pure-const.c (special_builtlin_state): New function.
15843         (check_call): Use it instead of special casign BUILT_IN_RETURN.
15844         (propagate_pure_const): Use it.
15845
15846 2010-06-11  Jan Hubicka  <jh@suse.cz>
15847
15848         * df-problems.c (df_live_scratch): Convert to bitmap_head.
15849         (df_live_alloc): Initialize df_live_scratch when initializing
15850         problem_data.
15851         (df_live_transfer_function): Update uses of df_live_scratch.
15852         (df_live_free): Free problem_data; clear df_live_scratch before
15853         releasing the obstack.
15854         (df_md_free): Free problem data.
15855
15856 2010-06-11  Jan Hubicka  <jh@suse.cz>
15857
15858         * doc/invoke.texi (Wsuggest-attribute): Document.
15859         (Wmissing-noreturn): Remove.
15860         * ipa-pure-const.c (warn_function_noreturn): New function.
15861         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
15862         warn_missing_noreturn.
15863         * common.opt (Wsuggest-attribute=noreturn): New.
15864         * tree-flow.h (warn_function_noreturn): Declare.
15865         * tree-cfg.c (execute_warn_function_noreturn): Use
15866         warn_function_noreturn.
15867         (gate_warn_function_noreturn): New.
15868         (pass_warn_function_noreturn): Update.
15869
15870 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15871
15872         * c-typeck.c (handle_warn_cast_qual): Add loc
15873         parameter. Improve warning message.
15874         (build_c_cast): Pass location to handle_warn_cast_qual.
15875
15876 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
15877
15878         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
15879         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
15880         insn mnemonic.
15881         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
15882
15883 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
15884
15885         Fix bootstap on mips
15886         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
15887         be naming typedefs.
15888
15889 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
15890
15891         * system.h (helper_const_non_const_cast): New inline for
15892         gcc version <= 4.0.
15893         (CONST_CAST2): For gcc version <= 4.0 use
15894         new helper to do const/non-const casting.
15895
15896 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15897
15898         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
15899         * Makefile.in (OBJS-common): Include insn-enums.o.
15900         (insn-enums.o): New rule.
15901         (simple_generated_c): Add insn-enums.c.
15902         (build/genenums.o): New rule.
15903         (genprogmd): Add "enums".
15904         * genconstants.c (print_enum_type): Declare a C string array
15905         for each enum.
15906         * genenums.c: New file.
15907         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
15908         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
15909         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
15910
15911 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15912
15913         * doc/md.texi (define_enum_attr): Document.
15914         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
15915         * read-md.h (lookup_enum_type): Declare.
15916         * read-md.c (lookup_enum_type): New function.
15917         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
15918         * genattrtab.c (attr_desc): Add an enum_name field.
15919         (evaluate_eq_attr): Take the associated attribute as argument.
15920         Get the enum prefix from the enum_name field, if defined.
15921         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
15922         (simplify_test_exp): Pass attr to evaluate_eq_attr.
15923         (add_attr_value): New function, split out from...
15924         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
15925         (write_test_expr): Pass attr to evaluate_eq_attr.
15926         (write_attr_get): Use the enum_name as the enum tag, if defined.
15927         (write_attr_valueq): Use the enum_name as a prefix, if defined.
15928         (find_attr): Initialize enum_name.
15929         (main): Handle DEFINE_ENUM_ATTR.
15930         * gensupport.c (process_rtx): Likewise.
15931         * config/mips/mips.h (mips_tune_attr): Delete.
15932         * config/mips/mips.md (cpu): Use define_attr_enum.
15933
15934 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15935
15936         * doc/md.texi (define_c_enum, define_enum): Document.
15937         * read-md.h (md_constant): Add a parent_enum field.
15938         (enum_value, enum_type): New structures.
15939         (upcase_string, traverse_enum_types): Declare.
15940         * read-md.c (enum_types): New variable.
15941         (upcase_string, add_constant): New functions.
15942         (handle_constants): Don't create the hash table here.
15943         Use add_constant.
15944         (traverse_md_constants): Don't check for a null md_constants.
15945         (decimal_string, handle_enum, traverse_enum_types): New functions.
15946         (read_md_files): Initialize md_constants and md_enums.
15947         * genconstants.c (print_md_constant): Ignore info argument.
15948         Only print constants that belong to no enum.
15949         (print_enum_type): New function.
15950         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
15951         for each defined enum type.
15952         * config/mips/mips.md (processor): New define_enum.
15953         (unspec): New define_c_enum.
15954         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
15955         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
15956         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
15957         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
15958         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
15959         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
15960         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
15961         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
15962         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
15963         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
15964         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
15965         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
15966         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
15967         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
15968         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
15969         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
15970         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
15971         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
15972         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
15973         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
15974         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
15975         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
15976         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15977         (UNSPEC_RDDSP): Move to mips-dsp.md.
15978         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
15979         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
15980         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
15981         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
15982         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
15983         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
15984         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
15985         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
15986         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
15987         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
15988         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
15989         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
15990         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
15991         Moved to mips-dspr2.md.
15992         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
15993         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
15994         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
15995         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
15996         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
15997         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
15998         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15999         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
16000         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
16001         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
16002         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
16003         UNSPEC_LOONGSON_PSADBH)
16004         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
16005         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
16006         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
16007         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
16008         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
16009         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
16010         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
16011         (cpu): Update comment.
16012         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
16013         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
16014         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
16015         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
16016         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
16017         UNSPEC_LOONGSON_PCMPEQ)
16018         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
16019         UNSPEC_LOONGSON_PINSR_0)
16020         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
16021         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
16022         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
16023         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
16024         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
16025         UNSPEC_LOONGSON_PSADBH)
16026         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
16027         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
16028         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
16029         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
16030         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
16031         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
16032         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
16033         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
16034         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
16035         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
16036         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
16037         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
16038         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
16039         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
16040         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
16041         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
16042         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
16043         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
16044         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
16045         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
16046         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
16047         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
16048         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
16049         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
16050         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
16051         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
16052         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
16053         (UNSPEC_RDDSP): Moved from mips.md.
16054         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
16055         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
16056         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
16057         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
16058         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
16059         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
16060         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
16061         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
16062         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
16063         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
16064         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
16065         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
16066         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
16067         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
16068         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
16069         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
16070         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
16071         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
16072         (UNSPEC_SCC): Moved from mips.md.
16073         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
16074         "processor_type" to "processor".
16075         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
16076         * config/mips/mips.h (processor_type): Delete.
16077         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
16078         "processor_type" to "processor".
16079
16080 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16081
16082         * configure.ac (tm_include_list): Add insn-constants.h.
16083         * configure: Regenerate.
16084         * Makefile.in (GTM_H): Move insn-constants.h here from...
16085         (TM_H): ...here.
16086         * mkconfig.sh: Remove special handling for insn-constants.h.
16087
16088 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16089
16090         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
16091         (BUILD_MD): ...this new variable.
16092         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
16093         that include the old contents of simple_generated_h and
16094         simple_generated_c.
16095         (simple_generated_h, simple_generated_c): Include them.  Add
16096         insn-constants.h.
16097         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
16098         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
16099         Remove these dependencies from the main rule and include
16100         insn-conditions.md in the command line only if it appears
16101         in the dependency list.
16102         (insn-constants.h, s-constants): Delete.
16103         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
16104         or gensupport.h.
16105         (build/genmddeps.o): Likewise.
16106         (genprogrtl): New variable that contains everything from genprogmd
16107         except mddeps and constants.
16108         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
16109         depend on $(BUILD_MD)
16110         (genprog): New variable.  Make these programs depend on
16111         $(BUILD_ERRORS).
16112         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
16113         (main): Use read_md_files instead of init_rtx_reader_args.
16114         * genconstants.c: As for genmddeps.c.
16115         * read-md.h (read_skip_construct): Declare.
16116         * read-md.c (read_skip_construct): New function.
16117         (handle_file): Allow a null handle_directive, skipping the
16118         construct if so.
16119         (parse_include): Update the comment accordingly.
16120
16121 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16122
16123         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
16124         * genmddeps.c: Include read-md.h.
16125         (main): Call init_rtx_reader_args instead of init_md_reader_args.
16126         * genattr.c (main): Likewise.
16127         * genattrtab.c (main): Likewise.
16128         * genautomata.c (main): Likewise.
16129         * gencodes.c (main): Likewise.
16130         * genconditions.c (main): Likewise.
16131         * genconfig.c (main): Likewise.
16132         * genconstants.c (main): Likewise.
16133         * genemit.c (main): Likewise.
16134         * genextract.c (main): Likewise.
16135         * genflags.c (main): Likewise.
16136         * genopinit.c (main): Likewise.
16137         * genoutput.c (main): Likewise.
16138         * genpeep.c (main): Likewise.
16139         * genrecog.c (main): Likewise.
16140         * genpreds.c (main): Likewise.
16141         * gensupport.h (in_fname): Move to read-md.h.
16142         (init_md_reader_args_cb): Rename to...
16143         (init_rtx_reader_args_cb): ...this and return a bool.
16144         (init_md_reader_args): Rename to...
16145         (init_rtx_reader_args): ...this and return a bool.
16146         (include_callback): Move to read-md.h.
16147         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
16148         (file_name_list, first_dir_md_include): Move to read-md.c
16149         (first_bracket_include): Delete unused variable.
16150         (last_dir_md_include): Move to read-md.c.
16151         (process_include): Delete, moving code to read-md.c:handle_include.
16152         (process_rtx): Don't handle INCLUDE.
16153         (save_string): Delete.
16154         (rtx_handle_directive): New function.
16155         (init_md_reader_args_cb): Rename to...
16156         (init_rtx_reader_args_cb): ...this and return a boolean success value.
16157         Use read_md_args.
16158         (init_md_reader_args): Rename to...
16159         (init_rtx_reader_args): ...this and return a boolean success value.
16160         * rtl.def (INCLUDE): Delete.
16161         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
16162         argument.
16163         * read-rtl.c (read_conditions): Don't gobble ')' here.
16164         (read_mapping): Likewise.
16165         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
16166         Handle top-level non-rtx constructs here rather than in read_rtx_1.
16167         Store the whole queue in *X.  Remove call to init_md_reader.
16168         (read_rtx_1): Rename to...
16169         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
16170         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
16171         here.
16172         (read_nested_rtx): New function.  Handle (nil) here rather than
16173         in read_rtx_code.
16174         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
16175         gobble ')' here.
16176         * read-md.h (directive_handler_t): New type.
16177         (in_fname, include_callback): Moved from read-md.h.
16178         (read_constants, init_md_reader): Delete.
16179         (read_md_files): Declare.
16180         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
16181         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
16182         from gensupport.c.
16183         (read_constants): Rename to...
16184         (handle_constants): ...this.  Don't gobble ')' here.
16185         (handle_include, handle_file, handle_toplevel_file)
16186         (parse_include): New functions, mostly taken from gensupport.c.
16187         (init_md_reader): Subsume into...
16188         (read_md_files): ...this new function.
16189
16190 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16191
16192         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
16193         (unread_char): Decrement read_md_lineno after putting back '\n'.
16194         * read-md.c (fatal_with_file_and_line): Push back any characters
16195         that we decide not to add to the context.
16196         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
16197         fatal_expected_char in cases where '/' ends a line (for example).
16198         (read_name): Don't increment read_md_lineno here.
16199         (read_escape): Likewise.
16200         (read_quoted_string): Likewise.
16201         (read_braced_string): Likewise.
16202
16203 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16204
16205         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
16206         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
16207         * genconstants.c: Include read-md.h.
16208         * read-rtl.c (md_constants): Move to read-md.c.
16209         (md_name): Move to read-md.h.
16210         (initialize_iterators): Use leading_string_hash instead of def_hash
16211         and leading_string_eq_p instead of def_name_eq_p.
16212         (read_name): Move to read-md.c.
16213         (def_hash, def_name_eq_p): Delete.
16214         (read_constants, traverse_md_constants): Move to read-md.c.
16215         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
16216         * read-md.h: Include hashtab.h.
16217         (md_name): Moved from read-rtl.c.
16218         (md_constant): Moved from read-md.h.
16219         (leading_string_hash, leading_string_eq_p, read_name)
16220         (read_constants, traverse_md_constants): Declare.
16221         * read-md.c (md_constants): Moved from read-rtl.c.
16222         (leading_string_hash, leading_string_eq_p): New functions.
16223         (read_name, read_constants, traverse_md_constants): Moved from
16224         read-rtl.c.
16225
16226 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16227
16228         * read-rtl.c (md_name): New structure.
16229         (read_name): Take an md_name instead of a buffer pointer.
16230         Use the "string" field instead of strcpy when expanding constants.
16231         (read_constants): Remove the tmp_char argument.  Update the calls
16232         to read_name, using two local name buffers instead of the tmp_char
16233         argument.  Merge the constant-creation code.
16234         (read_conditions): Remove the tmp_char argument.  Update the calls
16235         to read_name, using a local name buffer instead of the tmp_char
16236         argument.
16237         (read_mapping): Replace tmp_char variable with a local name buffer.
16238         Update the calls to read_name.
16239         (read_rtx_1): Likewise.  Update the calls to read_constants and
16240         read_conditions.
16241
16242 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16243
16244         * Makefile.in (build/read-md.o): Depend on errors.h.
16245         * read-md.h (error_with_line): Declare.
16246         * read-md.c: Include errors.h.
16247         (message_with_line_1): New function, extracted from...
16248         (message_with_line): ...here.
16249         (error_with_line): New function.
16250         * genattrtab.c: If a call to message_with_line is followed by
16251         "have_error = 1;", replace both statements with a call to
16252         error_with_line.
16253         * genoutput.c: Likewise.
16254         * genpreds.c: Likewise.
16255         * genrecog.c: If a call to message_with_line is followed by
16256         "error_count++;", replace both statements with a call to
16257         error_with_line.
16258         (errorcount): Delete.
16259         (main): Don't check it.
16260         * gensupport.c: If a call to message_with_line is followed by
16261         "errors = 1;", replace both statements with a call to error_with_line.
16262         (errors): Delete.
16263         (process_define_cond_exec): Check have_error instead of errors.
16264         (init_md_reader_args_cb): Likewise.  Don't set errors.
16265
16266 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16267
16268         * read-md.h (read_md_file): Declare.
16269         (read_char, unread_char): New functions.
16270         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
16271         (read_quoted_string, read_string): Remove FILE * argument.
16272         * read-md.c (read_md_file): New variable.
16273         (read_md_filename, read_md_lineno): Update comments and remove
16274         unnecessary initialization.
16275         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
16276         (read_escape, read_quoted_string, read_braced_string, read_string):
16277         Remove FILE * argument.  Update calls accordingly, using read_char
16278         and unread_char instead of getc and ungetc.
16279         * rtl.h (read_rtx): Remove FILE * argument.
16280         * read-rtl.c (iterator_group): Remove FILE * argument from
16281         "find_builtin".
16282         (iterator_traverse_data): Remove "infile" field.
16283         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
16284         (add_mapping, read_name, read_constants, read_conditions)
16285         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
16286         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
16287         Remove file arguments from all calls, using read_char and unread_char
16288         instead of getc and ungetc.
16289         * gensupport.c (process_include): Preserve read_md_file around
16290         the include.  Set read_md_file to the handle of the included file.
16291         Update call to read_rtx.
16292         (init_md_reader_args_cb): Set read_md_file to the handle of the file
16293         and remove local FILE *.  Update calls to read_rtx.
16294
16295 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16296
16297         * read-md.h (read_rtx_lineno): Rename to...
16298         (read_md_lineno): ...this.
16299         (read_rtx_filename): Rename to...
16300         (read_md_filename): ...this.
16301         (copy_rtx_ptr_loc): Rename to...
16302         (copy_md_ptr_loc): ...this.
16303         (print_rtx_ptr_loc): Rename to...
16304         (print_md_ptr_loc): ...this.
16305         * read-md.c: Likewise.  Update references after renaming.
16306         (string_obstack): Replace RTL with MD in comment.
16307         (set_rtx_ptr_loc): Rename to...
16308         (set_md_ptr_loc): ...this.
16309         (get_rtx_ptr_loc): Rename to...
16310         (get_md_ptr_loc): ...this.
16311         * genconditions.c: Update references after renaming.
16312         * genemit.c: Likewise.
16313         * genoutput.c: Likewise.
16314         * genpreds.c: Likewise.
16315         * gensupport.c: Likewise.
16316         * read-rtl.c: Likewise.
16317
16318 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
16319
16320         * Makefile.in (READ_MD_H): New variable.
16321         (BUILD_RTL): Add build/read-md.o.
16322         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
16323         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
16324         (build/genattrtab.o, build/genconditions.o build/genemit.o)
16325         (build/genextract.o, build/genflags.o, build/genoutput.o)
16326         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
16327         (build/read-md.o): New rule.
16328         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
16329         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
16330         * coretypes.h: ...here.
16331         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
16332         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
16333         * genattr.c: Include read-md.h.
16334         * genattrtab.c: Likewise.
16335         * genconditions.c: Likewise.
16336         * genemit.c: Likewise.
16337         * genextract.c: Likewise.
16338         * genflags.c: Likewise.
16339         * genoutput.c: Likewise.
16340         * genpreds.c: Likewise.
16341         * genrecog.c: Likewise.
16342         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
16343         (join_c_conditions, print_c_condition, read_rtx_filename)
16344         (read_rtx_lineno): Move to read-md.h.
16345         * read-rtl.c: Include read-md.h.
16346         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
16347         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
16348         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
16349         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
16350         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
16351         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
16352         (read_braced_string, read_string): Move to read-md.c.
16353         (read_rtx): Move some initialization to init_md_reader and call
16354         init_md_reader here.
16355         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
16356         Move to read-md.h.
16357         * gensupport.c: Include read-md.h.
16358         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
16359         * read-md.h, read-md.c: New files.
16360
16361 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
16362
16363         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16364         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16365         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
16366         * config/moxie/moxie.c (moxie_function_value): Make static.
16367         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
16368         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16369
16370 2010-06-10  Martin Jambor  <mjambor@suse.cz>
16371
16372         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
16373         * dbgcnt.def (tree_sra): New counter.
16374         * tree-sra.c: Include dbgcnt.h.
16375         (gate_intra_sra): Check tree_sra debug counter.
16376
16377 2010-06-10  Martin Jambor  <mjambor@suse.cz>
16378
16379         PR tree-optimization/44258
16380         * tree-sra.c (build_access_subtree): Return false iff there is a
16381         partial overlap.
16382         (build_access_trees): Likewise.
16383         (analyze_all_variable_accesses): Disqualify candidates if
16384         build_access_trees returns true for them.
16385
16386 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
16387
16388         PR debug/41371
16389         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
16390         tail-recurse into canonical node.  Fast-forward over
16391         non-canonical VALUEs.
16392
16393 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
16394
16395         PR boostrap/44470
16396         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
16397         (*addsi_1_zext) <TYPE_LEA>: Likewise.
16398         (add lea splitter): Likewise.
16399         (add_zext lea splitter): Likewise.
16400
16401 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
16402
16403         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
16404
16405 2010-06-10  Jan Hubicka  <jh@suse.cz>
16406
16407         * df-problems.c (df_live_problem_data): Add live_bitmaps.
16408         (df_live_alloc): Initialize problem data and live_osbtacks.
16409         (df_live_finalize): Remove obstack, problem data; do not
16410         clear all bitmaps.
16411         (df_live_top_dump, df_live_bottom_dump): Do not dump old
16412         data when not allocated.
16413         (df_live_verify_solution_start): Do not allocate problem data.
16414         (df_live_verify_solution_end): Check if out is allocated.
16415         (struct df_md_problem_data): New structure.
16416         (df_md_alloc): Allocate problem data.
16417         (df_md_free): Free problem data; do not clear bitmaps.
16418
16419 2010-06-10  Jan Beulich  <jbeulich@novell.com>
16420
16421         PR bootstrap/37304
16422         * configure.ac: Replace $() with ${} when intending to expand
16423         variables rather than invoking commands.
16424         * configure: Re-generate.
16425
16426 2010-06-10  Jan Hubicka  <jh@suse.cz>
16427
16428         PR rtl-optimization/44460
16429         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
16430         TYPE_NEEDS_CONSTRUCTING sanity check.
16431
16432 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
16433
16434         * doc/include/fdl.texi: Move to GFDL version 1.3.
16435
16436         * doc/cpp.texi: Move to GFDL version 1.3.
16437         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
16438         * doc/gccint.texi: Move to GFDL version 1.3.
16439         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
16440         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
16441         * doc/invoke.texi: Move to GFDL version 1.3.
16442
16443 2010-06-09  Jan Hubicka  <jh@suse.cz>
16444
16445         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
16446         Break out from ...
16447         (propagate) ... here; swap the order.
16448
16449 2010-06-09  Jan Hubicka  <jh@suse.cz>
16450
16451         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
16452         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
16453         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
16454         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
16455
16456 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
16457
16458         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
16459         Do not the gather memory reference in the outer loop if the step
16460         is not a constant.
16461
16462 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
16463
16464         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
16465         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
16466         8 to 4.  Minor change of the related comments.
16467
16468 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16469
16470         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
16471         the scev analysis when the variable is not used outside the loop
16472         in a close phi node: call compute_overall_effect_of_inner_loop.
16473
16474 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16475
16476         * graphite-sese-to-poly.c (single_pred_cond): Renamed
16477         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
16478         (build_sese_conditions_before): Renamed call to single_pred_cond.
16479         (build_sese_conditions_after): Same.
16480
16481 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
16482
16483         * graphite-poly.h: Fix comments and indentation.
16484         * graphite-sese-to-poly.c: Same.
16485         (build_sese_conditions_before): Compute stmt and gbb only when needed.
16486         * tree-chrec.c: Fix comments and indentation.
16487         (tree-ssa-loop-niter.c): Same.
16488
16489 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
16490
16491         PR rtl-optimization/42461
16492         * dce.c (deletable_insn_p): Return true for const or pure calls again.
16493         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
16494
16495 2010-06-09  Jan Hubicka  <jh@suse.cz>
16496
16497         * bitmap.c (bitmap_and): Walk array forward.
16498         (bitmap_and_compl_into): Likewise.
16499         (bitmap_xor): Likewise.
16500         (bitmap_xor_into):  Likewise.
16501         (bitmap_equal_p): Likewise.
16502         (bitmap_intersect_p): Likewise.
16503         (bitmap_intersect_compl_p): Likewise.
16504         (bitmap_ior_and_into): Likewise.
16505         (bitmap_elt_copy): Likewise.
16506         (bitmap_and_compl): Likewise.
16507         (bitmap_elt_ior): Likewise.
16508
16509 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
16510
16511         * opts-common.c (prune_options): Ensure replacement argv array
16512         is correctly terminated by a NULL entry.
16513
16514 2010-06-09  Jan Hubicka  <jh@suse.cz>
16515
16516         * cgraph.h (varpool_first_static_initializer,
16517         varpool_next_static_initializer): Make checking only when
16518         checking enabled.
16519         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
16520         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
16521         gcc_assert to gcc_checking_assert.
16522         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
16523         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
16524         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
16525         op_iter_init_phiuse, op_iter_init_phidef,
16526         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
16527         gcc_checking_assert.
16528         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
16529         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
16530         partition_is_global, live_on_entry, live_on_exit,
16531         live_merge_and_clear): Likewise.
16532         * system.h (gcc_checking_assert): New macro.
16533         * gimple.h (set_bb_seq): Use gcc_checking_assert.
16534
16535 2010-06-09  Jason Merrill  <jason@redhat.com>
16536
16537         * Makefile.in (TAGS): Collect tags info from c-family.
16538
16539 2010-06-09  Jan Hubicka  <jh@suse.cz>
16540
16541         * gimple.h (gcc_gimple_checking_assert): New macro.
16542         (gimple_set_def_ops, gimple_set_use_ops,
16543         gimple_set_vuse, gimple_set_vdef,
16544         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
16545         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
16546         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
16547         gimple_asm_output_op, gimple_asm_output_op_ptr,
16548         gimple_asm_set_output_op, gimple_asm_clobber_op,
16549         gimple_asm_set_clobber_op, gimple_asm_label_op,
16550         gimple_asm_set_label_op, gimple_try_set_kind,
16551         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
16552         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
16553         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
16554         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
16555         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
16556         gimple_omp_for_set_initial, gimple_omp_for_final,
16557         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
16558         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
16559         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
16560         conditional with ENABLE_GIMPLE_CHECKING.
16561         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
16562
16563 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
16564
16565         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
16566         (get_computation_cost_at): Use it.
16567         (determine_use_iv_cost_condition): Likewise.
16568         (determine_iv_cost): Likewise.
16569
16570 2010-06-09  Richard Guenther  <rguenther@suse.de>
16571
16572         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
16573         replace constants.
16574
16575 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
16576
16577         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
16578
16579 2010-06-09  Martin Jambor  <mjambor@suse.cz>
16580
16581         PR tree-optimization/44423
16582         * tree-sra.c (dump_access): Dump also grp_assignment_read.
16583         (analyze_access_subtree): Pass negative allow_replacements to children
16584         if the current type is scalar.
16585
16586 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
16587
16588         PR testsuite/42843
16589         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
16590         * doc/plugins.texi (Plugin license check): Update information
16591         on type of plugin_is_GPL_compatible.
16592         * Makefile.in (PLUGINCC): Define as $(COMPILER).
16593         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
16594
16595 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
16596
16597         * config/arm/arm.c (thumb2_reorg): New function.
16598         (arm_reorg): Call it.
16599         * config/arm/thumb2.md (define_peephole2 for flag clobbering
16600         arithmetic operations): Delete.
16601
16602 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
16603
16604         PR target/44067
16605         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
16606         e500v2 target.
16607
16608 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
16609
16610         PR plugins/44459
16611         * gcc-plugin.h: Encapsulate all declarations in extern "C".
16612
16613 2010-06-08  Jan Hubicka  <jh@suse.cz>
16614
16615         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
16616         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
16617
16618 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
16619
16620         PR tree-optimization/39874
16621         PR middle-end/28685
16622         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
16623         Declare.
16624         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
16625         same_bool_result_p): New.
16626         (and_var_with_comparison, and_var_with_comparison_1,
16627         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
16628         (or_var_with_comparison, or_var_with_comparison_1,
16629         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
16630         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
16631         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
16632         of combine_comparisons.
16633         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
16634
16635 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
16636
16637         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16638         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16639         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
16640         pdp11_function_value_regno_p): New functions.
16641         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16642         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16643
16644 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
16645
16646         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
16647         Thumb-2 in the MINUS case.
16648
16649 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16650
16651         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
16652
16653         * doc/gty.texi (GTY Options): Document typed GC allocation and
16654         variable_size GTY option.
16655
16656         * ggc-internal.h: New.
16657
16658         * ggc.h: Update copyright year.
16659         (digit_string): Move to stringpool.c.
16660         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
16661         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
16662         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
16663         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
16664         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
16665         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
16666         (ggc_force_collect, ggc_get_size, ggc_statistics)
16667         (ggc_print_common_statistics): Move to ggc-internal.h.
16668         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
16669         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
16670         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
16671         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
16672         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
16673         (ggc_alloc_zone_pass_stat): Remove.
16674         (ggc_internal_alloc_stat, ggc_internal_alloc)
16675         (ggc_internal_cleared_alloc_stat): New.
16676         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
16677         (ggc_internal_vec_alloc_stat)
16678         (ggc_internal_cleared_vec_alloc_stat)
16679         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
16680         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
16681         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
16682         (ggc_cleared_alloc_ptr_array_two_args): New.
16683         (htab_create_ggc, splay_tree_new_ggc): Redefine.
16684         (ggc_splay_alloc): Change the type of the first argument to
16685         enum gt_types_enum.
16686         (ggc_alloc_string): Make macro.
16687         (ggc_alloc_string_stat): New.
16688         (ggc_strdup): Redefine.
16689         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
16690         (ggc_alloc_rtvec_sized): New.
16691         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
16692         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
16693         (ggc_internal_cleared_alloc_zone_stat)
16694         (ggc_internal_zone_alloc_stat)
16695         (ggc_internal_zone_cleared_alloc_stat)
16696         (ggc_internal_zone_vec_alloc_stat)
16697         (ggc_alloc_zone_rtx_def_stat)
16698         (ggc_alloc_zone_tree_node_stat)
16699         (ggc_alloc_zone_cleared_tree_node_stat)
16700         (ggc_alloc_cleared_gimple_statement_d_stat): New.
16701
16702         * ggc-common.c: Include ggc-internal.h.
16703         (ggc_internal_cleared_alloc_stat): Rename from
16704         ggc_alloc_cleared_stat.
16705         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
16706         (ggc_calloc): Remove.
16707         (ggc_cleared_alloc_htab_ignore_args): New.
16708         (ggc_cleared_alloc_ptr_array_two_args): New.
16709         (ggc_splay_alloc): Add obj_type parameter.
16710         (init_ggc_heuristics): Formatting fixes.
16711
16712         * ggc-none.c: Update copyright year.
16713         (ggc_alloc_stat): Rename to ggc_alloc_stat.
16714         (ggc_alloc_cleared_stat): Rename to
16715         ggc_internal_cleared_alloc_stat.
16716         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
16717
16718         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
16719         Remove references to ggc_alloc in comments.
16720         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
16721         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
16722         (new_ggc_zone, destroy_ggc_zone): Remove.
16723         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
16724
16725         * ggc-zone.c: Include ggc-internal.h.  Remove references to
16726         ggc_alloc in comments.
16727         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
16728         (ggc_internal_alloc_zone_pass_stat): New.
16729         (ggc_internal_cleared_alloc_zone_stat): New.
16730         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
16731         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
16732         (new_ggc_zone, destroy_ggc_zone): Remove.
16733
16734         * stringpool.c: Update copyright year.  Include ggc-internal.h
16735         (digit_vector): Make static.
16736         (digit_string): Moved from ggc.h.
16737         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
16738         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
16739
16740         * Makefile.in (GGC_INTERNAL_H): New.
16741         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
16742         $(GGC_INTERNAL_H) to dependencies.
16743
16744         * gentype.c: Update copyright year.
16745         (walk_type): Accept variable_size GTY option.
16746         (USED_BY_TYPED_GC_P): New macro.
16747         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
16748         whitespace at the end of strings.
16749         (get_type_specifier, variable_size_p): New functions.
16750         (alloc_quantity, alloc_zone): New enums.
16751         (write_typed_alloc_def): New function.
16752         (write_typed_struct_alloc_def): Likewise.
16753         (write_typed_typed_typedef_alloc_def): Likewise.
16754         (write_typed_alloc_defns): Likewise.
16755         (output_typename, write_splay_tree_allocator_def): Likewise.
16756         (write_splay_tree_allocators): Likewise.
16757         (main): Call write_typed_alloc_defns and
16758         write_splay_tree_allocators.
16759
16760         * lto-streamer.h (lto_file_decl_data_ptr): New.
16761
16762         * passes.c (order): Define using cgraph_node_ptr.
16763
16764         * strinpool.c (struct string_pool_data): Declare nested_ptr using
16765         ht_identifier_ptr.
16766
16767         * gimple.h (union gimple_statement_d): Likewise.
16768
16769         * rtl.h (struct rtx_def): Likewise.
16770         (struct rtvec_def): Likewise.
16771
16772         * tree.h (union tree_node): Likewise.
16773
16774         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
16775
16776         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
16777
16778         * tree-scalar-evolution.c (scev_initialize): Likewise.
16779
16780         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
16781
16782         * dwarf2asm.c (dw2_force_const_mem): Likewise.
16783
16784         * omp-low.c (lower_omp_critical): Likewise.
16785
16786         * bitmap.h (struct bitmap_head_def): Update comment to not
16787         reference ggc_alloc.
16788
16789         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
16790
16791         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
16792
16793         * ipa-prop.c (duplicate_ggc_array): Rename to
16794         duplicate_ipa_jump_func_array.  Use typed GC allocation.
16795         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
16796
16797         * gimple.c (gimple_alloc_stat): Use
16798         ggc_alloc_cleared_gimple_statement_d_stat.
16799
16800         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
16801
16802         * tree.c (make_node_stat): Use
16803         ggc_alloc_zone_cleared_tree_node_stat.
16804         (make_tree_vec_stat): Likewise.
16805         (build_vl_exp_stat): Likewise.
16806         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
16807         (make_tree_binfo_stat): Likewise.
16808         (tree_cons_stat): Likewise.
16809
16810         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
16811         (shallow_copy_rtx_stat): Likewise.
16812         (make_node_stat): Likewise.
16813
16814         * lto-symtab.c: Fix comment.
16815
16816         * tree-cfg.c (create_bb): Update comment to not reference
16817         ggc_alloc_cleared.
16818         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
16819
16820         * varpool.c (varpool_node): Use typed GC allocation.
16821         (varpool_extra_name_alias): Likewise.
16822
16823         * varasm.c (emutls_decl): Likewise.
16824         (get_unnamed_section): Likewise.
16825         (get_noswitch_section): Likewise.
16826         (get_section): Likewise.
16827         (get_block_for_section): Likewise.
16828         (build_constant_desc): Likewise.
16829         (create_constant_pool): Likewise.
16830         (force_const_mem): Likewise.
16831
16832         * tree.c (build_vl_exp_stat): Likewise.
16833         (build_real): Likewise.
16834         (build_string): Likewise.
16835         (decl_debug_expr_insert): Likewise.
16836         (decl_value_expr_insert): Likewise.
16837         (type_hash_add): Likewise.
16838         (build_omp_clause): Likewise.
16839
16840         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
16841
16842         * tree-ssa.c (init_tree_ssa): Likewise.
16843
16844         * tree-ssa-structalias.c (heapvar_insert): Likewise.
16845
16846         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
16847
16848         * tree-ssa-loop-niter.c (record_estimate): Likewise.
16849
16850         * tree-ssa-alias.c (get_ptr_info): Likewise.
16851
16852         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16853
16854         * tree-phinodes.c (allocate_phi_node): Likewise.
16855
16856         * tree-iterator.c (tsi_link_before): Likewise.
16857         (tsi_link_after): Likewise.
16858
16859         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16860
16861         * tree-dfa.c (create_var_ann): Likewise.
16862
16863         * tree-cfg.c (create_bb): Likewise.
16864
16865         * toplev.c (alloc_for_identifier_to_locale): Likewise.
16866         (general_init): Likewise.
16867
16868         * stringpool.c (stringpool_ggc_alloc): Likewise.
16869         (gt_pch_save_stringpool): Likewise.
16870
16871         * sese.c (if_region_set_false_region): Likewise.
16872
16873         * passes.c (do_per_function_toporder): Likewise.
16874
16875         * optabs.c (set_optab_libfunc): Likewise.
16876         (set_conv_libfunc): Likewise.
16877
16878         * lto-symtab.c (lto_symtab_register_decl): Likewise.
16879
16880         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16881         (input_eh_region): Likewise.
16882         (input_eh_lp): Likewise.
16883         (make_new_block): Likewise.
16884         (unpack_ts_real_cst_value_fields): Likewise.
16885
16886         * lto-section-in.c (lto_new_in_decl_state): Likewise.
16887
16888         * lto-cgraph.c (input_node_opt_summary): Likewise.
16889
16890         * loop-init.c (loop_optimizer_init): Likewise.
16891
16892         * lambda.h (lambda_vector_new): Likewise.
16893
16894         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
16895
16896         * ira.c (update_equiv_regs): Likewise.
16897
16898         * ipa.c (cgraph_node_set_new): Likewise.
16899         (cgraph_node_set_add): Likewise.
16900         (varpool_node_set_new): Likewise.
16901         (varpool_node_set_add): Likewise.
16902
16903         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
16904         (duplicate_ipa_jump_func_array): Likewise.
16905         (ipa_read_node_info): Likewise.
16906
16907         * ipa-cp.c (ipcp_create_replace_map): Likewise.
16908
16909         * integrate.c (get_hard_reg_initial_val): Likewise.
16910
16911         * gimple.c (gimple_alloc_stat): Likewise.
16912         (gimple_build_omp_for): Likewise.
16913         (gimple_seq_alloc): Likewise.
16914         (gimple_copy): Likewise.
16915
16916         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
16917         (gsi_insert_after_without_update): Likewise.
16918
16919         * function.c (add_frame_space): Likewise.
16920         (insert_temp_slot_address): Likewise.
16921         (assign_stack_temp_for_type): Likewise.
16922         (allocate_struct_function): Likewise.
16923         (types_used_by_var_decl_insert): Likewise.
16924
16925         * except.c (init_eh_for_function): Likewise.
16926         (gen_eh_region): Likewise.
16927         (gen_eh_region_catch): Likewise.
16928         (gen_eh_landing_pad): Likewise.
16929         (add_call_site): Likewise.
16930
16931         * emit-rtl.c (get_mem_attrs): Likewise.
16932         (get_reg_attrs): Likewise.
16933         (start_sequence): Likewise.
16934         (init_emit): Likewise.
16935
16936         * dwarf2out.c (new_cfi): Likewise.
16937         (queue_reg_save): Likewise.
16938         (dwarf2out_frame_init): Likewise.
16939         (new_loc_descr): Likewise.
16940         (find_AT_string): Likewise.
16941         (new_die): Likewise.
16942         (add_var_loc_to_decl): Likewise.
16943         (clone_die): Likewise.
16944         (clone_as_declaration): Likewise.
16945         (break_out_comdat_types): Likewise.
16946         (new_loc_list): Likewise.
16947         (loc_descriptor): Likewise.
16948         (add_loc_descr_to_each): Likewise.
16949         (add_const_value_attribute): Likewise.
16950         (tree_add_const_value_attribute): Likewise.
16951         (add_comp_dir_attribute): Likewise.
16952         (add_name_and_src_coords_attributes): Likewise.
16953         (lookup_filename): Likewise.
16954         (store_vcall_insn): Likewise.
16955         (dwarf2out_init): Likewise.
16956
16957         * dbxout.c (dbxout_init): Likewise.
16958
16959         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16960
16961         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16962
16963         * config/score/score7.c (score7_output_external): Likewise.
16964
16965         * config/score/score3.c (score3_output_external): Likewise.
16966
16967         * config/s390/s390.c (s390_init_machine_status): Likewise.
16968
16969         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16970         (rs6000_init_machine_status): Likewise.
16971         (output_toc): Likewise.
16972
16973         * config/pa/pa.c (pa_init_machine_status): Likewise.
16974         (get_deferred_plabel): Likewise.
16975
16976         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16977
16978         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16979
16980         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16981
16982         * config/mep/mep.c (mep_init_machine_status): Likewise.
16983         (mep_note_pragma_flag): Likewise.
16984
16985         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16986
16987         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16988
16989         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16990
16991         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16992         (i386_pe_maybe_record_exported_symbol): Likewise.
16993
16994         * config/i386/i386.c (get_dllimport_decl): Likewise.
16995         (ix86_init_machine_status): Likewise.
16996         (assign_386_stack_local): Likewise.
16997
16998         * config/frv/frv.c (frv_init_machine_status): Likewise.
16999
17000         * config/darwin.c (machopic_indirection_name): Likewise.
17001
17002         * config/cris/cris.c (cris_init_machine_status): Likewise.
17003
17004         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17005
17006         * config/avr/avr.c (avr_init_machine_status): Likewise.
17007
17008         * config/arm/arm.c (arm_init_machine_status): Likewise.
17009
17010         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17011         (alpha_need_linkage): Likewise.
17012         (alpha_use_linkage): Likewise.
17013
17014         * cgraph.c (cgraph_allocate_node): Likewise.
17015         (cgraph_create_edge_1): Likewise.
17016         (cgraph_create_indirect_edge): Likewise.
17017         (cgraph_add_asm_node): Likewise.
17018
17019         * cfgrtl.c (init_rtl_bb_info): Likewise.
17020
17021         * cfgloop.c (alloc_loop): Likewise.
17022         (rescan_loop_exit): Likewise.
17023
17024         * cfg.c (init_flow): Likewise.
17025         (alloc_block): Likewise.
17026         (unchecked_make_edge): Likewise.
17027
17028         * c-parser.c (c_parse_init): Likewise.
17029         (c_parse_file): Likewise.
17030
17031         * c-decl.c (bind): Likewise.
17032         (record_inline_static): Likewise.
17033         (push_scope): Likewise.
17034         (make_label): Likewise.
17035         (lookup_label_for_goto): Likewise.
17036         (finish_struct): Likewise.
17037         (finish_enum): Likewise.
17038         (c_push_function_context): Likewise.
17039
17040         * bitmap.c (bitmap_element_allocate): Likewise.
17041         (bitmap_gc_alloc_stat): Likewise.
17042
17043         * alias.c (record_alias_subset): Likewise.
17044         (init_alias_analysis): Likewise.
17045
17046 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
17047
17048         * fold-const.c (fold_comparison): Remove redundant parenthesis.
17049         * tree-inline.c (expand_call_inline): Pass translated return value of
17050         cgraph_inline_failed_string to diagnostic function.
17051
17052 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
17053             Shujing Zhao  <pearly.zhao@oracle.com>
17054
17055         PR c/37724
17056         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
17057         implicit bad conversions is initialization.
17058         (error_init): Use gmsgid instead of msgid for argument name and change
17059         the call for error.
17060         (pedwarn_init): Use gmsgid instead of msgid for argument name and
17061         change the call for pedwarn.
17062         (warning_init): Use gmsgid instead of msgid for argument name and
17063         change the call for warning.
17064
17065 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
17066
17067         * config/mips/mips-protos.h (mips_print_operand): Delete.
17068         (mips_print_operand_address): Delete.
17069         * config/mips/mips.h (mips_print_operand_punct): Delete.
17070         (PRINT_OPERAND): Delete.
17071         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17072         (PRINT_OPERAND_ADDRESS): Delete.
17073         * config/mips/mips.c (mips_print_operand_punct): Make static.
17074         (mips_print_operand_address): Make static.
17075         (mips_print_operand): Make static.  Call
17076         mips_print_operand_punct_valid_p.
17077         (mips_print_operand_punct_valid_p): New function.
17078         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17079         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17080
17081 2010-06-07  Jan Hubicka  <jh@suse.cz>
17082
17083         PR middle-end/44454
17084         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
17085         are allocated.
17086
17087 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17088
17089         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
17090         name of RECORD.
17091
17092 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17093
17094         * doc/sourcebuild.texi (Effective-Target Keywords, Other
17095         attributes): Document gas.
17096
17097 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
17098
17099         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
17100         <TYPE_LEA>: Split instruction.
17101         <default>: Remove alternative 2 handling.
17102         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
17103         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
17104         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
17105
17106         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
17107         (ashift_zext lea splitter): Use DImode for multiplication.
17108
17109         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
17110         to generate addition.
17111
17112 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
17113
17114         * common.opt (fira-verbose): Use Var.
17115         (fpcc-struct-return): Use Init instead of VarExists.
17116         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
17117         toplev.c.
17118         * flags.h (flag_signed_char, flag_short_enums,
17119         flag_pcc_struct_return, flag_ira_verbose,
17120         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
17121         * toplev.c (flag_detailed_statistics, flag_signed_char,
17122         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
17123         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
17124         * toplev.h (flag_crossjumping, flag_if_conversion,
17125         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
17126         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
17127         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
17128         flag_cprop_registers, time_report, flag_ira_loop_pressure,
17129         flag_ira_coalesce, flag_ira_move_spills,
17130         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
17131
17132 2010-06-07  Jan Hubicka  <jh@suse.cz>
17133
17134         * df-core.c (df_analyze_problem): Do verification after allocation.
17135
17136         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
17137         (df_lr_alloc): Initialize problem data; move bitmaps to
17138         lr_bitmaps obstack.
17139         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
17140         (df_lr_verify_solution_start): Do not initialize problem data;
17141         allocate bitmaps in lr_bitmaps.
17142         (df_lr_verify_solution_end): Do not free problem data.
17143
17144 2010-06-07  Jan Hubicka  <jh@suse.cz>
17145
17146         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
17147         if caller is noreturn.
17148         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
17149         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
17150         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
17151         * ipa-pure-const.c (check_decl): Add IPA parameter.
17152         (state_from_flags): New function.
17153         (better_state, worse_state): New functions.
17154         (check_call): When in IPA mode, do not care about callees.
17155         (check_load, check_store): Update.
17156         (check_ipa_load, check_ipa_store): New.
17157         (check_stmt): When in IPA mode, use IPA checkers.
17158         (analyze_function): Use state_from_flags.
17159         (propagate): Check indirect edges and references.
17160
17161 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
17162
17163         PR rtl-optimization/44404
17164         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
17165         of count_occurrences to see if it's safe to modify mem_insn.
17166
17167 2010-06-07  Richard Guenther  <rguenther@suse.de>
17168
17169         * gimplify.c (gimplify_cleanup_point_expr): For empty body
17170         and EH-only cleanup drop the cleanup instead of inserting it
17171         unconditionally.
17172
17173 2010-06-07  Ira Rosen  <irar@il.ibm.com>
17174
17175         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
17176         documentation.
17177         * targhooks.c (default_builtin_vectorization_cost): New function.
17178         * targhooks.h (default_builtin_vectorization_cost): Declare.
17179         * target.h (enum vect_cost_for_stmt): Define.
17180         (builtin_vectorization_cost): Change argument and comment.
17181         * tree-vectorizer.h: Remove cost model macros.
17182         * tree-vect-loop.c: Include target.h.
17183         (vect_get_cost): New function.
17184         (vect_estimate_min_profitable_iters): Replace cost model macros with
17185         calls to vect_get_cost.
17186         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
17187         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
17188         default implementation.
17189         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
17190         calls to target hook builtin_vectorization_cost.
17191         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
17192         Likewise.
17193         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
17194         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
17195         implementation to return costs.
17196         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
17197         * config/spu/spu.h: Remove vectorizer cost model macros.
17198         * config/i386/i386.h: Likewise.
17199         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
17200         a call to target hook builtin_vectorization_cost.
17201
17202 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
17203
17204         PR target/44319
17205         * config/i386/i386.c (override_options): Turn zee pass on for level 2
17206         and above and defer till target is known.
17207         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
17208         turn off otherwise.
17209
17210 2010-05-25  Jan Hubicka  <jh@suse.cz>
17211
17212         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
17213         (df_compact_blocks): Likewise.
17214         * df.h (struct df): Turn hardware_regs_used,
17215         regular_block_artificial_uses, eh_block_artificial_uses,
17216         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
17217         bitmap_head.
17218         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
17219         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
17220         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
17221         df_scan_blocks, df_insn_delete, df_insn_rescan,
17222         df_insn_rescan_debug_internal, df_insn_rescan_all,
17223         df_process_deferred_rescans, df_process_deferred_rescans,
17224         df_notes_rescan, df_get_call_refs, df_get_call_refs,
17225         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
17226         df_record_entry_block_defs, df_record_exit_block_uses,
17227         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
17228         df_scan_verify): Update.
17229
17230 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
17231
17232         PR c++/44188
17233         * c-common.c (is_typedef_decl): Move this definition ...
17234         * tree.c (is_typedef_decl): ... here.
17235         (typdef_variant_p): Move definition here from cp/tree.c.
17236         * c-common.h (is_typedef_decl): Move this declaration ...
17237         * tree.h (is_typedef_decl): ... here.
17238         (typedef_variant_p): Move declaration here from cp/cp-tree.h
17239         * dwarf2out.c (is_naming_typedef_decl): New function.
17240         (gen_tagged_type_die): Split out of ...
17241         (gen_type_die_with_usage): ... this function. When an anonymous
17242         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
17243         is emitted for the typedef.
17244         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
17245         anonymous tagged types.
17246
17247 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17248
17249         PR c/20000
17250         * c-decl.c (grokdeclarator): Delete warning.
17251
17252 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
17253
17254         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
17255         newly built CALL_EXPR.
17256         * tree-profile.c (tree_profiling): Don't profile functions produced
17257         for built-in stuff.
17258
17259 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
17260
17261         PR bootstrap/44427
17262         PR bootstrap/44428
17263         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
17264         endianness-independent.
17265
17266 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
17267
17268         * c-common.c: Move to c-family/.
17269         * c-common.def: Likewise.
17270         * c-common.h: Likewise.
17271         * c-cppbuiltin.c: Likewise.
17272         * c-dump.c: Likewise.
17273         * c-format.c: Likewise.
17274         * c-format.h : Likewise.
17275         * c-gimplify.c: Likewise.
17276         * c-lex.c: Likewise.
17277         * c-omp.c: Likewise.
17278         * c.opt: Likewise.
17279         * c-opts.c: Likewise.
17280         * c-pch.c: Likewise.
17281         * c-ppoutput.c: Likewise.
17282         * c-pragma.c: Likewise.
17283         * c-pragma.h: Likewise.
17284         * c-pretty-print.c: Likewise.
17285         * c-pretty-print.h: Likewise.
17286         * c-semantics.c: Likewise.
17287         * stub-objc.c: Likewise.
17288
17289         * gengtype.c (get_file_langdir): Special-case files in c-family/.
17290         (get_output_file_with_visibility): Fix name for c-common.h.
17291         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
17292
17293         * c-tree.h: Update include path for moved files.
17294         * c-lang.c: Likewise.
17295         * c-lang.h: Likewise.
17296         * c-parser.c: Likewise.
17297         * c-convert.c: Likewise.
17298         * c-decl.c: Likewise.
17299         * c-objc-common.c: Likewise.
17300         * configure.ac: Make sure c-family/ exists in the build directory.
17301         * configure: Regenerate.
17302         * Makefile.in: Update paths for moved files.  Regroup files per
17303         location and update dependencies.  Move generated_files down after
17304         ALL_GTFILES_H.
17305
17306         * config/spu/spu-c.c: Update paths for moved files.
17307         * config/mep/mep-pragma.c: Likewise.
17308         * config/darwin-c.c: Likewise.
17309         * config/i386/msformat-c.c: Likewise.
17310         * config/i386/i386-c.c: Likewise.
17311         * config/avr/avr-c.c: Likewise.
17312         * config/sol2-c.c: Likewise.
17313         * config/ia64/ia64-c.c: Likewise.
17314         * config/rs6000/rs6000-c.c: Likewise.
17315         * config/arm/arm.c: Likewise.
17316         * config/arm/arm-c.c: Likewise.
17317         * config/h8300/h8300.c: Likewise.
17318         * config/v850/v850-c.c: Likewise.
17319
17320         * config/t-darwin: Fix dependencies for moved files.
17321         * config/t-sol2: Fix dependencies for moved files.
17322         * config/mep/t-mep: Fix dependencies for moved files.
17323         * config/ia64/t-ia64: Fix dependencies for moved files.
17324         * config/rs6000/t-rs6000: Fix dependencies for moved files.
17325         * config/v850/t-v850: Fix dependencies for moved files.
17326         * config/v850/t-v850e: Fix dependencies for moved files.
17327
17328         * config/m32c/m32c-pragma.c
17329
17330         * po/exgettext: Look in c-family/ also.
17331
17332 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
17333
17334         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
17335         (mark_control_dependent_edges_necessary): Call it instead of marking
17336         the last statement manually.
17337         (propagate_necessity): Likewise.
17338
17339 2010-06-05  Jan Hubicka  <jh@suse.cz>
17340
17341         * basic-block.h (compute_dominance_frontiers): Updated.
17342         (compute_idf): Likewise.
17343
17344         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
17345         for dominance frontiers.
17346         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
17347         (insert_updated_phi_nodes_for): Likewise.
17348         (update_ssa): Likewise.
17349         * cfganal.c (compute_dominance_frontiers_1): Likewise.
17350         (compute_dominance_frontiers): Likewise.
17351         (compute_idf): Likewise.
17352         * df-problems.c (df_md_local_compute): Likewise.
17353
17354 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
17355
17356         * target.h (struct gcc_target): Add memory_move_cost field.
17357         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
17358         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
17359         * targhooks.c (default_memory_move_cost): New function.
17360         * targhooks.h (default_memory_move_cost): Declare function.
17361         * reload.h (memory_move_cost): Declare.
17362         (memory_move_secondary_cost): Change type of 'in' argument to bool.
17363         * reginfo.c (memory_move_cost): New function.
17364         (memory_move_secondary_cost): Change type of 'in' argument to bool.
17365         * ira.h (ira_memory_move_cost): Update comment.
17366         * ira.c (ira_memory_move_cost): Update comment.
17367         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
17368         with memory_move_cost.
17369         * postreload.c (reload_cse_simplify_set): (Ditto.).
17370         * reload1.c (choose_reload_regs): (Ditto.).
17371         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
17372         (MEMORY_MOVE_COST):  Revise documentation.
17373
17374         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17375         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17376         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
17377         type of 'in' argument to bool.
17378         (TARGET_MEMORY_MOVE_COST): Define.
17379
17380 2010-06-05  Jan Hubicka  <jh@suse.cz>
17381
17382         * ipa-pure-const.c (propagate): Fix typo in handling of functions
17383         that cannot return.  Be more careful when merging the results with
17384         previously known ones.
17385
17386 2010-06-05  Matthias Klose  <doko@ubuntu.com>
17387
17388         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
17389         function to add the -iplugindir option.
17390         (find_plugindir_spec_function): Add new declaration and function.
17391         (static_spec_func): Use it for "find-plugindir".
17392
17393 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
17394
17395         PR c++/44361
17396         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
17397         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
17398         statement expression.
17399
17400 2010-06-05  Jan Hubicka  <jh@suse.cz>
17401
17402         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
17403         (df_rd_problem_data): Convert sparse_invalidated_by_call,
17404         dense_invalidated_by_call to bitmap head.
17405         (df_rd_alloc, df_rd_bb_local_compute_process_def,
17406         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
17407         df_rd_start_dump, df_lr_verify_transfer_functions,
17408         df_live_verify_transfer_functions, df_chain_create_bb,
17409         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
17410         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
17411         df_simulate_one_insn_forwards, df_md_alloc,
17412         df_md_bb_local_compute_process_def,
17413         df_md_bb_local_compute_process_def, df_md_local_compute,
17414         df_md_transfer_function df_md_free): Update.
17415
17416 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
17417
17418         PR c/44322
17419         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
17420         target type for ADDR_EXPR; require no changes to qualifiers except
17421         for function types.
17422         * c-tree.h (c_build_type_variant): Remove.
17423
17424 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
17425
17426         * genautomata.c (get_excl_set): Do work per element, not per char.
17427         (check_presence_pattern_sets): Similar.
17428         (check_absence_pattern_sets): Similar.
17429
17430 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
17431
17432         * genautomata.c (curr_state_pass_num): Delete.
17433         (min_issue_delay_pass_states): Delete.
17434         (min_issue_delay): Delete.
17435         (initiate_min_issue_delay_pass_states): Delete.
17436         (output_min_issue_delay_table): Compute min_issue_delay_vect
17437         using a breadth-first search variant.
17438         (output_tables): Don't call initiate_min_issue_delay_pass_states.
17439
17440 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
17441
17442         PR boostrap/44421
17443         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
17444         (df_byte_lr_bb_local_compute): Likewise.
17445
17446 2010-06-03  Jason Merrill  <jason@redhat.com>
17447
17448         Implement noexcept operator (5.3.7)
17449         * c-common.c (c_common_reswords): Add noexcept.
17450         * c-common.h (enum rid): Add RID_NOEXCEPT.
17451
17452 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
17453
17454         * config/darwin-driver.c (darwin_default_min_version): Use
17455         GCC-specific formats in diagnostics.
17456         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
17457         diagnostics.
17458         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
17459         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
17460         eval_spec_function, handle_braces, process_brace_body, main,
17461         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
17462         getenv_spec_function, compare_version_strings,
17463         version_compare_spec_function): Use GCC-specific formats in
17464         diagnostics.
17465
17466 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
17467
17468         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
17469         that operand 0 and operand 1 are equal.
17470         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
17471         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
17472         and operand 1 are equal.
17473         <default>: Ditto.  Remove ??? comment.
17474         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
17475         and operand 1 are equal.
17476         <default>: Ditto.  Remove ??? comment.
17477         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
17478         are equal.
17479         (*add<mode>_4) <default>: Ditto.
17480         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
17481
17482 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
17483
17484         * config/i386/i386-protos.h (ix86_print_operand): Declare.
17485         * config/i386/i386.c (ix86_print_operand): Make non-static.
17486         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
17487         * output.h (output_operand): Declare.
17488         * final.c (output_operand): Make non-static.
17489
17490 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
17491
17492         PR rtl-optimization/44013
17493         * sched-deps.c (add_dependence_list_and_free): Don't free lists
17494         when processing debug insns.
17495
17496         PR debug/41371
17497         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
17498         recursing.  Check that recursion is bounded.  Rename inner var
17499         to avoid hiding incoming argument.
17500
17501 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
17502
17503         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
17504         operands[2] == 255.
17505         (*addqi_3): Ditto.
17506         (*addqi_4): Ditto.
17507         (*addqi_5): Ditto.
17508         (*addqi_ext_1_rex64): Ditto.
17509         (*addqi_ext_1): Ditto.
17510
17511         (*addqi_4): Check for incdec_operand in QImode.
17512
17513         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
17514         using SWI mode iterator.
17515         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
17516         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
17517         mode iterator.
17518         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
17519         using SWI mode iterator.
17520
17521 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17522
17523         PR c/25880
17524         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
17525         * c-format.c (gcc_diag_flag_specs): Add hash.
17526         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
17527         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
17528         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
17529         pp_c_cv_qualifiers. Handle qualifiers spelling here.
17530         (pp_c_type_qualifier_list): Call the function above.
17531         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
17532         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
17533         (WARN_FOR_QUALIFIERS): New macro.
17534         (convert_for_assignment): Use it.
17535
17536 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
17537
17538         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
17539
17540 2010-06-04  Jan Hubicka  <jh@suse.cz>
17541
17542         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
17543         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
17544         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
17545         DF_BYTE_LR_OUT): Update for embedded bitmaps.
17546         * fwprop.c (single_def_use_enter_block): Likewise.
17547         * ddg.c (create_ddg_dep_from_intra_loop_link,
17548         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
17549         * loop-iv.c (latch_dominating_def): Likewise.
17550         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
17551         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
17552         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
17553         df_rd_transfer_function, df_rd_top_dump,
17554         df_rd_bottom_dump): Update.
17555         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
17556         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
17557         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
17558         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
17559         df_lr_verify_solution_start, df_lr_verify_solution_end,
17560         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
17561         df_live_free_bb_info, df_live_alloc, df_live_reset,
17562         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
17563         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
17564         df_live_verify_solution_start, df_live_verify_solution_end,
17565         df_live_verify_transfer_functions, df_chain_create_bb,
17566         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
17567         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
17568         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
17569         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
17570         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
17571         df_byte_lr_transfer_function, df_byte_lr_top_dump,
17572         df_byte_lr_bottom_dump, df_create_unused_note,
17573         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
17574         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
17575         df_md_transfer_function, df_md_init, df_md_confluence_0,
17576         df_md_confluence_n,
17577         df_md_top_dump, df_md_bottom_dump): Update.
17578         (struct df_lr_problem_data): Embedd bitmap headers.
17579
17580 2010-06-04  Jan Hubicka  <jh@suse.cz>
17581
17582         * dce.c (dce_process_block): Do not re-scan already marked
17583         instructions.
17584
17585 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
17586
17587         PR rtl-optimization/39871
17588         PR rtl-optimization/40615
17589         PR rtl-optimization/42500
17590         PR rtl-optimization/42502
17591         * ira.c (init_reg_equiv_memory_loc: New function.
17592         (ira): Call it twice.
17593         * reload.h (calculate_elim_costs_all_insns): Declare.
17594         * ira-costs.c: Include "reload.h".
17595         (regno_equiv_gains): New static variable.
17596         (init_costs): Allocate it.
17597         (finish_costs): Free it.
17598         (ira_costs): Call calculate_elim_costs_all_insns.
17599         (find_costs_and_classes): Take estimated elimination costs
17600         into account.
17601         (ira_adjust_equiv_reg_cost): New function.
17602         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
17603         * reload1.c (init_eliminable_invariants, free_reg_equiv,
17604         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
17605         (elim_bb): New static variable.
17606         (reload): Move code out of here into init_eliminable_invariants and
17607         free_reg_equiv.  Call them.
17608         (calculate_elim_costs_all_insns): New function.
17609         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
17610         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
17611         but call note_reg_elim_costly if we turned a valid memory address
17612         into an invalid one.
17613         * Makefile.in (ira-costs.o): Depend on reload.h.
17614
17615 2010-06-04  Julian Brown  <julian@codesourcery.com>
17616
17617         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
17618         for pool ranges.
17619
17620 2010-06-04  Richard Guenther  <rguenther@suse.de>
17621
17622         PR lto/41584
17623         * cgraph.h (struct varpool_node): Add lto_file_data field.
17624         * lto-cgraph.c (input_varpool_node): Initialize it.
17625
17626 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
17627
17628         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
17629         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
17630         predicate in "type" attribute calculation.
17631         (*addsi_1_zext): Ditto.
17632         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
17633         (*addsi_2_zext): Ditto.
17634         (*add<mode>_3): Ditto.
17635         (*addsi_3_zext): Ditto.
17636         (*add<mode>_5): Ditto.
17637
17638 2010-06-03  Jan Hubicka  <jh@suse.cz>
17639
17640         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
17641         of bitmap_bit_p.
17642         * cfganal.c (compute_dominance_frontiers_1): Likewise.
17643
17644 2010-06-03  Jan Hubicka  <jh@suse.cz>
17645
17646         * df-problems.c (df_create_unused_note, df_note_bb_compute):
17647         micro-optimize the checks when to add new note.
17648
17649 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
17650
17651         * final.c (output_asm_insn): Call
17652         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
17653         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
17654         (output_address): Call targetm.asm_out.print_operand_address.
17655         Update comments.
17656         * target.h (struct gcc_target): Add print_operand,
17657         print_operand_address, and print_operand_punct_valid_p fields.
17658         * targhooks.h (default_print_operand): Declare.
17659         (default_print_operand_address): Declare.
17660         (default_print_operand_punct_valid_p): Declare.
17661         * targhooks.c (default_print_operand): Define.
17662         (default_print_operand_address): Define.
17663         (default_print_operand_punct_valid_p): Define.
17664         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
17665         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
17666         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
17667         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
17668         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
17669         * vmsdbgout.c (addr_const_to_string): Update comment.
17670         * config/i386/i386.c (print_operand): Rename to...
17671         (ix86_print_operand): ...this.  Make static.
17672         (print_operand_address): Rename to...
17673         (ix86_print_operand_address): ...this.  Make static.  Call
17674         ix86_print_operand instead of PRINT_OPERAND.
17675         (ix86_print_operand_punct_valid_p): New function.
17676         (TARGET_PRINT_OPERAND): Define.
17677         (TARGET_PRINT_OPERAND_ADDRESS): Define.
17678         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17679         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
17680         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17681         (PRINT_OPERAND): Delete.
17682         (PRINT_OPERAND_ADDRESS): Delete.
17683         * config/i386/i386-protos.h (print_operand): Delete prototype.
17684         (print_operand_address): Delete prototype.
17685
17686 2010-06-03  Richard Guenther  <rguenther@suse.de>
17687
17688         PR tree-optimization/44403
17689         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17690         Preserve pointer qualifiers.
17691         (vect_create_data_ref_ptr): Likewise.
17692
17693 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
17694
17695         PR c++/44294
17696         * defaults.h (MAX_FIXED_MODE_SIZE): New.
17697
17698         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
17699
17700 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
17701
17702         PR debug/44375
17703         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
17704         return false if merging the bbs would lead to goto_locus
17705         location being lost from the IL.
17706
17707 2010-06-03  Jan Hubicka  <jh@suse.cz>
17708             Jakub Jelinek  <jakub@redhat.com>
17709
17710         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
17711         set->regs[i] is NULL or has just one entry.
17712
17713 2010-06-03  Jan Hubicka  <jh@suse.cz>
17714
17715         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
17716         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
17717
17718 2010-06-03  Paul Brook  <paul@codesourcery.com>
17719
17720         * config/arm/arm.c (FL_TUNE): Define.
17721         (arm_default_cpu, arm_cpu_select): Remove.
17722         (all_cores): Populate core field.
17723         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
17724         (arm_find_cpu): New function.
17725         (arm_handle_option): Lookup cpu/architecture names.
17726         (arm_override_options): Cleanup mcpu/march/mtune handling.
17727         (arm_file_start): Ditto.
17728
17729 2010-06-03  Alan Modra  <amodra@gmail.com>
17730
17731         PR target/44169
17732         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
17733         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
17734         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
17735         (rs6000_emit_load_toc_table): Likewise.
17736
17737 2010-06-02  Jan Hubicka  <jh@suse.cz>
17738
17739         * passes.c (init_optimization_passes): Put ipa reference
17740         after ipa pure-const.
17741
17742 2010-06-02  Jan Hubicka  <jh@suse.cz>
17743
17744         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
17745         calls_read_all and calls_write_all.
17746         (get_reference_optimization_summary): Fix formatting.
17747         (is_proper_for_analysis): Check that decl is not readonly.
17748         (propagate_bits): Check CONST/PURE/noreturn flags.
17749         (ipa_init): Move all_module_statics to optimization_summary_obstack.
17750         (analyze_function): Ignore indirect edges.
17751         (copy_global_bitmap): For all module statics, do nothing.
17752         (generate_summary): Do not print calls_read_all/calls_write_all.
17753         (read_write_all_from_decl): Take node as argument; check
17754         cgraph_node_cannot_return.
17755         (propagate): Reorganize read_all/write_all computation;
17756         check indirect edges; check ecf flags; use all_module_statics
17757         in the results; do not free all_module_statics.
17758         (stream_out_bitmap): Handle all_module_statics.
17759         (ipa_reference_write_optimization_summary): Likewise; use
17760         varpool/cgraph encoders to get boundaries.
17761         (ipa_reference_read_optimization_summary): Read in all_module_statics;
17762         use it when possible.
17763
17764 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17765
17766         PR target/44218
17767         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
17768         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
17769
17770         * doc/extend.texi (powerpc builtins): Document vec_recip,
17771         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
17772
17773         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
17774         (rs6000_emit_swrsqrt): Ditto.
17775         (rs6000_emit_swdivsf): Delete.
17776         (rs6000_emit_swdivdf): Ditto.
17777         (rs6000_emit_swrsqrtsf): Ditto.
17778
17779         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
17780         describe the reciprocal estimate support for each type.
17781         (recip_options): Map -mrecip=<opt> into option bits.
17782         (gen_2arg_fn_t): New typedef for binary rtx gen function.
17783         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
17784         reciprocal estimate instructions.
17785         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
17786         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
17787         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
17788         cost information if -mdebug=cost or -mdebug=reg.
17789         (rs6000_override_options): Set -mrecip-precision for power6, and
17790         power7 machines.  If -mvsx or -mdfp, enable various options that
17791         came in previous instruction set ISAs, unless the option was
17792         explicitly disabled by the command line option.  Parse
17793         -mrecip=<opt> options.
17794         (rs6000_builtin_vectorized_function): Add support for vectorizing
17795         the reciprocal estimate builtins and expansions.
17796         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
17797         (bdesc_2arg): Add reciprocal estimate builtins.
17798         (bdesc_1arg): Add reciprocal square root estimate builtins.
17799         (rs6000_expand_builtin): Rewrite to use a switch statement,
17800         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
17801         (rs6000_init_builtins): Create declarations for reciprocal
17802         estimate builtins.
17803         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
17804         sized, prefer traditional floating point registers, if integer
17805         vector types, prefer altivec registers.  Don't actually look at
17806         the memory address any more.
17807         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
17808         builtins.
17809         (rs6000_load_constant_and_splat): New helper function to load up
17810         the constant for reciprocal estimate instructions.
17811         (rs6000_emit_madd): New helper function for generating
17812         multiply/add type instructions, based on the current switches.
17813         (rs6000_emit_msub): Ditto.
17814         (rs6000_emit_mnsub): Ditto.
17815         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
17816         replace a divide with a reciprocal estimate and fixup, adding
17817         support for machines with high precision and vectors.
17818         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
17819         low precision machines.
17820         (rs6000_emit_swdiv): New common function to be called to replace a
17821         division with reciprocal estimate and fixup.
17822         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
17823         for double and vector types.  Add support for high precision machines.
17824
17825         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
17826         the reciprocal estimate instructions can be generated.
17827         (TARGET_FRE): Ditto.
17828         (TARGET_FRSQRTES): Ditto.
17829         (TARGET_FRSQRTE): Ditto.
17830         (RS6000_RECIP_*): New macros for reciprocal estimate support.
17831
17832         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
17833         square root estimate on vectors.
17834         (re<mode>2): New insn for reciprocal division estimate on vectors.
17835
17836         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
17837         New builtin.
17838         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
17839         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
17840         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
17841         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
17842         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
17843         (RS6000_BUILTIN_RSQRT): Ditto.
17844         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
17845         floating point builtin.
17846
17847         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17848         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
17849         __RECIP_PRECISION__ based on the command line switches.
17850         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
17851
17852         * config/rs6000/rs6000.opt (-mrecip): Document add support for
17853         replacing division instructions with reciprocal estimate and fixup.
17854         (-mrecip=<opt>): New option.
17855         (-mrecip-precision): Ditto.
17856
17857         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
17858         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
17859         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
17860         precision scalar.
17861
17862         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
17863         (UNSPEC_VREFP): Ditto.
17864         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
17865         conterparts with regard to support of -mno-fused-madd and -ffast-math.
17866         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
17867         reciprocal estimate instructions to be generated.
17868         (altivec_vrefp): Ditto.
17869
17870         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
17871         estimate support.
17872         (rreg): New mode attribute for reciprocal estimate support.
17873         (recip<mode>3): New insn for division using reciprocal estimate
17874         and fixup builtins.
17875         (divide define_split): New define_split to convert floating point
17876         division to use reciprocal estimate if the user used the
17877         appropriate options and the split is run when we can add new
17878         pseudo registers for the fixup.
17879         (rsqrt<mode>2): New insn for reciprocal square root support.
17880         (recipsf3): Move into recip<mode>3.
17881         (recipdf3): Ditto.
17882         (fres): Use TARGET_FRES.
17883         (rsqrtsf2): Move into rsqrt<mode>2.
17884         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
17885         (copysignsf3): Add support for VSX.
17886         (fred): Use TARGET_FRE.
17887         (fred_fpr): Ditto.
17888         (rsqrtdf_internal1): New function for frsqrte instruciton.
17889
17890         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
17891         (vec_rsqrt): Ditto.
17892
17893 2010-06-03  Richard Guenther  <rguenther@suse.de>
17894
17895         PR middle-end/44291
17896         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
17897         (set_user_assembler_libfunc): Likewise.
17898
17899 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17900
17901         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
17902         defaults.h.
17903         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
17904         to defaults.h
17905         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
17906         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
17907         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
17908         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
17909         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
17910         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
17911         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
17912         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
17913         * defaults.h: Updated for above mentioned changes.
17914
17915 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
17916
17917         * c-common.c: Remove header include of tm_p.h.
17918         * Makefile.in (c-common.o): Remove TM_P_H dependency.
17919
17920 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
17921
17922         * tree.h (struct tree_decl_map): New type.
17923         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
17924         (tree_decl_map_hash): New prototype.
17925         (debug_expr_for_decl, value_expr_for_decl): Change into
17926         tree_decl_map hashtab from tree_map.
17927         (init_ttree): Adjust initialization.
17928         (tree_decl_map_hash): New function.
17929         (decl_debug_expr_lookup, decl_debug_expr_insert,
17930         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
17931
17932 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17933
17934         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
17935         linker emulations.
17936         * configure: Regenerate.
17937         * config.in: Regenerate.
17938
17939         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
17940         (X86_64_EMULATION): Define.
17941         (TARGET_LD_EMULATION): Use them.
17942
17943         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
17944         (SPARC64_EMULATION): Define.
17945         (LINK_ARCH_SPEC): Use them.
17946
17947 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17948
17949         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
17950         smallest_mode_for_size for computing the precision types of new
17951         graphite IVs.  Do not call lang_hooks.types.type_for_size.
17952
17953 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17954
17955         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
17956         information.
17957         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
17958
17959 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17960
17961         PR middle-end/44363
17962         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
17963         return false instead.
17964
17965 2010-06-02  Jan Hubicka  <jh@suse.cz>
17966
17967         PR middle-end/44295
17968         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
17969         create new cgraph node to check callee.
17970
17971 2010-06-02  Richard Guenther  <rguenther@suse.de>
17972
17973         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
17974
17975 2010-06-02  Richard Guenther  <rguenther@suse.de>
17976
17977         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
17978         (lto_wrapper_cleanup): ... this.  Do not exit.
17979         (fatal): Adjust.  Exit here.
17980         (fatal_perror): Likewise.
17981         (fatal_signal): New function.
17982         (main): Set up signal handlers to cleanup temporary files.
17983         * Makefile.in (lto-wrapper.o): Adjust dependencies.
17984
17985 2010-06-02  Richard Guenther  <rguenther@suse.de>
17986
17987         PR tree-optimization/44377
17988         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
17989
17990 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17991
17992         * config/s390/2097.md (z10_fhex): Remove insn reservation.
17993         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
17994         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
17995         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
17996         instruction.
17997         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
17998
17999 2010-06-02  Jan Hubicka  <jh@suse.cz>
18000
18001         * bitmap.c (bitmap_descriptor): Add search_iter.
18002         (bitmap_find_bit): Increment it.
18003         (print_statistics): Print it.
18004
18005 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
18006
18007         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
18008         instead of gimple_build_call_vec.  Delete unnecessary local variable.
18009
18010 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
18011
18012         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
18013         change from yesterday.
18014
18015 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
18016
18017         * c-ada-spec.c: Clean up redundant includes.
18018
18019 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
18020
18021         * gimplify.c: Do not include except.h and optabs.h.
18022         (gimplify_body): Do not initialize RTL profiling.
18023         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
18024         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
18025         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
18026         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
18027         langhooks.h.
18028
18029         * tree-pretty-print.h: Include pretty-print.h.
18030         * gimple-pretty-print.h: Include pretty-print.h.
18031
18032         * tree-pretty-print.c: Do not include diagnostic.h.
18033         * tree-vrp.c: Likewise.
18034         * tree-tailcall.c: Likewise
18035         * tree-scalar-evolution.c: Likewise
18036         * tree-ssa-dse.c: Likewise
18037         * tree-chrec.c: Likewise
18038         * tree-ssa-sccvn.c: Likewise
18039         * tree-ssa-copyrename.c: Likewise
18040         * tree-nomudflap.c: Likewise
18041         * tree-call-cdce.c: Likewise
18042         * tree-stdarg.c: Likewise
18043         * tree-ssa-math-opts.c: Likewise
18044         * tree-nrv.c: Likewise
18045         * tree-ssa-sink.c: Likewise
18046         * tree-browser.c: Likewise
18047         * tree-ssa-loop-ivcanon.c: Likewise
18048         * tree-ssa-loop.c: Likewise
18049         * tree-parloops.c: Likewise
18050         * tree-ssa-address.c: Likewise
18051         * tree-ssa-ifcombine.c: Likewise
18052         * tree-if-conv.c: Likewise
18053         * tree-data-ref.c: Likewise
18054         * tree-affine.c: Likewise
18055         * tree-ssa-phiopt.c: Likewise
18056         * tree-ssa-coalesce.c: Likewise
18057         * tree-ssa-pre.c: Likewise
18058         * tree-ssa-live.c: Likewise
18059         * tree-predcom.c: Likewise
18060         * tree-ssa-forwprop.c: Likewise
18061         * tree-ssa-dce.c: Likewise
18062         * tree-ssa-ter.c: Likewise
18063         * tree-ssa-loop-prefetch.c: Likewise
18064         * tree-optimize.c: Likewise
18065         * tree-ssa-phiprop.c: Likewise
18066         * tree-object-size.c: Likewise
18067         * tree-outof-ssa.c: Likewise
18068         * tree-ssa-structalias.c: Likewise
18069         * tree-switch-conversion.c: Likewise
18070         * tree-ssa-reassoc.c: Likewise
18071         * tree-ssa-operands.c: Likewise
18072         * tree-vectorizer.c: Likewise
18073         * tree-vect-data-refs.c: Likewise
18074         * tree-vect-generic.c: Likewise
18075         * tree-vect-stmts.c: Likewise
18076         * tree-vect-patterns.c: Likewise
18077         * tree-vect-slp.c: Likewise
18078         * tree-vect-loop.c: Likewise
18079         * tree-ssa-loop-ivopts.c: Likewise
18080         * tree-ssa-loop-im.c: Likewise
18081         * tree-ssa-loop-niter.c: Likewise
18082         * tree-ssa-loop-unswitch.c: Likewise
18083         * tree-ssa-loop-manip.c: Likewise
18084         * tree-ssa-loop-ch.c: Likewise
18085         * tree-dump.c: Likewise
18086         * tree-complex.c: Likewise
18087
18088         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
18089         * tree-ssa-uninit.c: Likewise
18090         * tree-ssa-threadupdate.c: Likewise
18091         * tree-ssa-uncprop.c: Likewise
18092         * tree-ssa-ccp.c: Likewise
18093         * tree-ssa-dom.c: Likewise
18094         * tree-ssa-propagate.c: Likewise
18095         * tree-ssa-alias.c: Likewise
18096         * tree-dfa.c: Likewise
18097         * tree-cfgcleanup.c: Likewise
18098         * tree-sra.c: Likewise
18099         * tree-ssa-copy.c: Likewise
18100         * tree-ssa.c: Likewise
18101         * tree-profile.c: Likewise
18102         * tree-cfg.c: Likewise
18103         * tree-ssa-threadedge.c: Likewise
18104         * tree-vect-loop-manip.c: Likewise
18105
18106         * tree-inline.c: Do not include diagnostic.h and expr.h.
18107         Include rtl.h.
18108         (copy_decl_for_dup_finish): Do not use NULL_RTX.
18109
18110         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
18111         * tree-loop-distribution.c: Likewise.
18112
18113 2010-06-01  Jan Hubicka  <jh@suse.cz>
18114
18115         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
18116
18117 2010-06-01  Jan Hubicka  <jh@suse.cz>
18118
18119         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
18120         remove return value.
18121         (split_bbs_on_noreturn_calls) .... here.
18122         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
18123         * tree-flow.h (fixup_noreturn_call): New.
18124
18125 2010-06-01  Jan Hubicka  <jh@suse.cz>
18126
18127         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
18128
18129 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
18130
18131         * tree.h (build_nt_call_list): Delete.
18132         * tree.c (build_nt_call_list): Delete.
18133
18134 2010-06-01  Jan Hubicka  <jh@suse.cz>
18135
18136         * fwprop.c: Make emit-rtl.h include last.
18137         * rtlanal.c: Include emit-rtl.h.
18138         * genautomata.c: Output emit-rtl include into insn-automata.c
18139         * df-scan.c: Include emit-rtl.h.
18140         * haifa-sched.c: Indlude emit-rtl.h.
18141         * mode-switching.c: Indlude emit-rtl.h.
18142         * graph.c: Indlude emit-rtl.h.
18143         * sel-sched.c: Include emit-rtl.h.
18144         * sel-sched-ir.c: Include emit-rtl.h.
18145         * ira-build.c: Include emit-rtl.h.
18146         * emit-rtl.c (first_insn, last_insn): Remove defines.
18147         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
18148         Move to emit-rtl.h.
18149         (set_new_first_and_last_insn, get_last_insn_anywhere,
18150         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
18151         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
18152         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
18153         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
18154         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
18155         Use accessor functions.
18156         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
18157          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
18158         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
18159         mem_expr_equal_p): Move here from rtl.h.
18160         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
18161         Move here from emit-rtl.c; make inline.
18162         * cfglayout.h: Include emit-rtl.h.
18163         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
18164          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
18165         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
18166         mem_expr_equal_p, get_insns, set_first-insn,
18167         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
18168         * reg-stack.c: Include emit-rtl.h.
18169         * dce.c: Likewise.
18170
18171 2010-06-01  Jan Hubicka  <jh@suse.cz>
18172
18173         * cgraph.h (tree_function_versioning): Update prototype.
18174         (cgraph_function_versioning): Update prototype.
18175         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
18176         bitmap.
18177         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
18178         (cgraph_materialize_clone, save_inline_function_body): Update use of
18179         tree_function_versioning.
18180         * tree-inline.c (copy_bb): Look for previous copied block to link
18181         after; fix debug output.
18182         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
18183         (copy_body): Likewise.
18184         (expand_call_inline): Update use of copy_body.
18185         (tree_function_versioning): Update use of copy body; accept
18186         blocks_to_copy and new_entry.
18187
18188 2010-06-01  Jan Hubicka  <jh@suse.cz>
18189
18190         * gegenrtl.c: Remove unnecesary prototypes.
18191         (gendecl): Remove.
18192         (gendef): Produce static inline.
18193         (gencode): Remove.
18194         (main): Do not decode parameters; generate header only.
18195         * Makefile.in (genrtl.c): Remove.
18196
18197 2010-06-01  Jan Hubicka  <jh@suse.cz>
18198
18199         * tree-switch-conversion.c (build_one_array): Make it readonly.
18200
18201 2010-06-01  Richard Guenther  <rguenther@suse.de>
18202
18203         * optabs.c (init_optabs): Guard all accesses to reinit.
18204         * ipa-pure-const.c (propagate): Fix another typo.
18205         * opts.c (common_handle_option): Split assignment to bool.
18206         * c-opts.c (c_common_handle_option): Likewise.
18207
18208 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
18209             Matthew Gingell  <gingell@adacore.com>
18210
18211         * doc/invoke.texi: Mention -fdump-ada-spec.
18212         * tree-dump.c (dump_files): Add ada-spec.
18213         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
18214         * tree-pass.h (tree_dump_index): Add TDI_ada.
18215         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
18216         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
18217         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
18218         * c-decl.c: Include c-ada-spec.h.
18219         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
18220         functions.
18221         (c_write_global_declarations): Add handling of -fdump-ada-spec.
18222         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
18223         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
18224         * c-ada-spec.h, c-ada-spec.c: New files.
18225
18226 2010-06-01  Richard Guenther  <rguenther@suse.de>
18227
18228         PR lto/43853
18229         * ipa-pure-const.c (get_function_state): Hand back varying state
18230         if we do not have one.
18231         (has_function_state): New function.
18232         (duplicate_node_data): Adjust.
18233         (remove_node_data): Likewise.
18234         (pure_const_write_summary): Likewise.
18235         (propagate): Likewise.  Fix typo.
18236
18237 2010-06-01  Jan Hubicka  <jh@suse.cz>
18238
18239         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
18240         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
18241         (execute_all_ipa_transforms): Do not play with the states.
18242
18243 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
18244
18245         * config/arm/t-linux-androideabi: New.
18246         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
18247
18248 2010-06-01  Jan Hubicka  <jh@suse.cz>
18249
18250         * tree-inline.c (estimate_num_insns): For stdarg functions look
18251         into call statement to count cost of argument passing.
18252
18253 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
18254
18255         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
18256         argument for fprintf.
18257         (ix86_output_addr_diff_elt): Likewise.
18258         (x86_function_profiler): Likewise.
18259         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
18260         (LPREFIX): Likewise.
18261         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
18262
18263 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
18264
18265         PR target/44338
18266         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
18267         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
18268         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
18269         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
18270         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
18271         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
18272         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
18273         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
18274         TARGET_FUSED_MADD.
18275
18276 2010-05-31  Jan Hubicka  <jh@suse.cz>
18277
18278         * tree.h (tree_range_check_failed): Declare noreturn.
18279
18280 2010-05-31  Jan Hubicka  <jh@suse.cz>
18281
18282         * gimple.c (gimple_call_builtin_p): New function.
18283         * gimple.h (gimple_call_builtin_p): Declare.
18284         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
18285         to exit.
18286         (execute_warn_function_return): BUILT_IN_RETURN is return.
18287         (split_critical_edges): Return edges are not critical.
18288         (is_ctrl_altering_stmt): Builtin_in_return is altering.
18289         (gimple_verify_flow_info): Handle built_in_return.
18290         (execute_warn_function_return): Handle built_in_return.
18291         * ipa-pure-const.c (check_call): Ignore builtin_return.
18292
18293 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
18294
18295         PR middle-end/44337
18296         * expr.c (expand_assignment): Don't store anything for out-of-bounds
18297         array accesses with non-MEM.
18298
18299         PR tree-optimization/44182
18300         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
18301         newly needs to end a bb is followed by debug stmts, instead return
18302         true from the function at the end.
18303         (maybe_move_debug_stmts_to_successors): New function.
18304         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
18305
18306 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
18307
18308         PR target/44161
18309         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
18310
18311 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
18312
18313         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
18314         for nested functions in non-optimized compilation.
18315
18316 2010-05-31  Richard Guenther  <rguenther@suse.de>
18317
18318         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
18319
18320 2010-05-30  Jan Hubicka  <jh@suse.cz>
18321
18322         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
18323
18324 2010-05-30  Richard Guenther  <rguenther@suse.de>
18325
18326         PR lto/42975
18327         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
18328         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
18329         no longer needed.
18330
18331 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
18332
18333         * config/darwin.c (output_objc_section_asm_op): Add comment.
18334         (name_needs_quotes): Add '_' to list of valid comment chars.
18335         (machopic_output_function_base_name): Remove unneeded quotes.
18336         (darwin_encode_section_info): Adjust asm whitespace.
18337         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
18338         (ASM_OUTPUT_LOCAL): Ditto.
18339         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
18340         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
18341         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
18342
18343 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
18344
18345         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
18346         RS6000_OUTPUT_BASENAME unconditionally.
18347         (rs6000_output_function_epilogue): Likewise.
18348
18349 2010-05-30  Jan Hubicka  <jh@suse.cz>
18350
18351         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
18352         nodes.
18353
18354 2010-05-30  Richard Guenther  <rguenther@suse.de>
18355
18356         * tree-cfg.c (verify_gimple_assign_single): Implement
18357         verification for COND_EXPR rhs.
18358
18359 2010-05-30  Jan Hubicka  <jh@suse.cz>
18360
18361         * cgraph.h (cgraph_dump_file): Declare.
18362         * cgraphunit.c (cgraph_dump_file): Export.
18363         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
18364
18365 2010-05-30  Jan Hubicka  <jh@suse.cz>
18366
18367         * dwarf2out.c (reference_to_unused,
18368         premark_types_used_by_global_vars_helper): Avoid creation of new
18369         varpool nodes.
18370
18371 2010-05-30  Jan Hubicka  <jh@suse.cz>
18372
18373         * cgraph.h (cgraph_node_cannot_return,
18374         cgraph_edge_cannot_lead_to_return): New functions.
18375         * cgraph.c (cgraph_node_cannot_return,
18376         cgraph_edge_cannot_lead_to_return): Use them.
18377         * ipa-pure-const.c (pure_const_names): New static var.
18378         (check_call): Handle calls not leading to return.
18379         (pure_const_read_summary): Dump info read.
18380         (propagate): Dump info about propagation process; ignore side effects
18381         of functions not leading to exit; fix handling of pure functions.
18382
18383 2010-05-30  Jan Hubicka  <jh@suse.cz>
18384
18385         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
18386         for tail call epilogues.
18387
18388 2010-05-30  Jan Hubicka  <jh@suse.cz>
18389
18390         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
18391         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
18392         dump files.
18393
18394 2010-05-29  Jan Hubicka  <jh@suse.cz>
18395
18396         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
18397         node; remove references in node we no longer keep in cgrpah but need
18398         body of.
18399
18400 2010-05-29  Jan Hubicka  <jh@suse.cz>
18401
18402         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
18403
18404 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18405
18406         PR target/44165
18407         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
18408
18409 2010-05-29  Jan Hubicka  <jh@suse.cz>
18410
18411         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
18412         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
18413         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
18414         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
18415         debug_names_replaced_by, debug_update_ssa): Likewise.
18416         * sbitmap.c (debug_sbitmap): Likewise.
18417         * genrecog.c (debug_decision, debug_decision_list): Likewise.
18418         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
18419         debug_tree_chain): Likewise.
18420         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
18421         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
18422         * optabs.c (debug_optab_libfuncs): Likewise.
18423         (verify_loop_closed_ssa): Likewise.
18424         * value-prof.c (verify_histograms): Likewise.
18425         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
18426         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
18427         * cfghooks.c (verify_flow_info): Likewise.
18428         * fold-const.c (debug_fold_checksum): Likewise.
18429         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
18430         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
18431         Likewise.
18432         * omega.c (debug_omega_problem): Likewise.
18433         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
18434         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
18435         * dominance.c (verify_dominators, debug_dominance_info,
18436         debug_dominance_tree): Likewise.
18437         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
18438         * df_regno_debug, df_ref_debug,
18439         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
18440         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
18441         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
18442         * sel-sched.c (debug_state): Likewise.
18443         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
18444         Likewise.
18445         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
18446         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
18447         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
18448         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
18449         Likewise.
18450         * c-pretty-print.c (debug_c_tree): Likewise.
18451         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
18452         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
18453         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
18454         * ebitmap.c (debug_ebitmap): Likewise.
18455         * function.c (debug_find_var_in_block_tree): Likewise.
18456         * print-rtl.c (debug_rtx): Likewise.
18457         (debug_rtx_count): Likewise.
18458         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
18459         * stor-layout.c (debug_rli): Likewise.
18460         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
18461         * tree-data-ref.c (debug_data_references,
18462         debug_data_dependence_relations, debug_data_reference,
18463         debug_data_dependence_relation, debug_rdg_vertex,
18464         debug_rdg_component, debug_rdg): Likewise.
18465         * tree-affine.c (debug_aff): Likewise.
18466         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
18467         Likewise.
18468         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
18469         * emit-rtl.c (verify_rtl_sharing): Likewise.
18470         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
18471         debug_value_expressions): Likewise.
18472         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
18473         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
18474         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
18475         * cfglayout.c (verify_insn_chain): Likewise.
18476         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
18477         debug_clast_stmt, debug_generated_program): Likewise.
18478         * ggc-page.c (debug_print_page_list): Likewise.
18479         * tree-ssa-ter.c (debug_ter): Likewise.
18480         * graphite-dependences.c (debug_pddr): Likewise.
18481         * sched-deps.c (debug_ds): Likewise.
18482         * tree-ssa.c (verify_ssa): Likewise.
18483         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
18484         debug_scattering_functions, debug_iteration_domains, debug_pdr,
18485         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
18486         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
18487         * tree-inline.c (debug_find_tree): Likewise.
18488         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
18489         debug_ppl_powerset_matrix): Likewise.
18490         * var-tracking.c (debug_dv): Likewise.
18491         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
18492         * cfgloop.c (verify_loop_structure): Likewise.
18493         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
18494         * c-common.c (verify_sequence_points): Likewise.
18495         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
18496         debug_candidates, debug_rgn_dependencies): Likewise.
18497         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
18498         * debug_constraint_graph, debug_solution_for_var,
18499         debug_sa_points_to_info): Likewise.
18500         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
18501         Likewie.
18502         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
18503         debug_loops, debug_loop, debug_loop_num): Likewise.
18504         * passes.c (debug_pass): Likewise.
18505         (dump_properties): Likewise; add cfglayout property.
18506         (debug_properties): Likewise.
18507         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
18508         * varpool.c (debug_varpool): Likewise.
18509         * regcprop.c (debug_value_data): Likewise.
18510         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
18511         debug_immediate_uses_for): Likewise.
18512
18513 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
18514
18515         PR bootstrap/44315
18516         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
18517         Filter out insn-flags.h.
18518
18519 2010-05-29  Jan Hubicka  <jh@suse.cz>
18520
18521         * cgraph.h (struct varpool_node_set_def,
18522         struct cgraph_node_set_def): Remove unused AUX pointer.
18523         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
18524         VEC_empty macro.
18525
18526 2010-05-29  Jan Hubicka  <jh@suse.cz>
18527
18528         PR middle-end/44324
18529         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
18530
18531 2010-05-29  Richard Guenther  <rguenther@suse.de>
18532
18533         * lto-streamer.c (cached_bp): New global variable.
18534         (bitpack_create): Return the cached bitpack, if available.
18535         (bitpack_delete): Clear and cache the bitpack, if appropriate.
18536         (bp_pack_value): Remove redundant asserts.
18537
18538 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
18539
18540         PR middle-end/44306
18541         * tree-if-conv.c (is_true_predicate): New.
18542         (is_predicated): Use is_true_predicate.
18543         (add_to_predicate_list): Same.  Do not use unshare_expr.
18544         (add_to_dst_predicate_list): Same.
18545
18546 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
18547
18548         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
18549         field on edges.
18550         (predicate_bbs): Same.
18551         (clean_predicate_lists): Same.
18552         (find_phi_replacement_condition): Do not AND the predicate from
18553         edge->aux.
18554
18555 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
18556
18557         PR bootstrap/44315
18558         * Makefile.in (build/gencondmd.o): Add a missing `\'.
18559
18560 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18561
18562         PR target/44261
18563         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
18564         (negdf2): Adjust expander pattern and use negdf2_slow.
18565         (negsf2): Likewise.
18566
18567 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
18568
18569         * basic-block.h (struct control_flow_graph): Move last_label_uid field
18570         up.
18571         * df.h (struct df_base_ref): Move regno field up.
18572         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
18573         * expr.h (struct separate_ops): Move location field up.
18574         * optabs.h (struct optab_d): Move libcall_basename field down.
18575         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
18576         * config/i386/i386.h (struct machine_function): Convert call_abi field
18577         into a bitfield.  Move cfa field to the end of the structure.
18578
18579 2010-05-29  Jan Hubicka  <jh@suse.cz>
18580
18581         * varpool.c (varpool_get_node): Fix lookup.
18582
18583 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18584
18585         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
18586         RTL specific prototypes with #ifdef RTX_CODE.
18587         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
18588         * config/spu/t-spu-elf: Fix dependencies.
18589
18590         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
18591
18592 2010-05-29  Mike Stump  <mikestump@comcast.net>
18593
18594         PR bootstrap/44315
18595         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
18596         TM_H when building to avoid dependency loops.
18597
18598 2010-05-29  Jan Hubicka  <jh@suse.cz>
18599
18600         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
18601         refs and body; not the whole node for masters of materialized clones.
18602
18603 2010-05-29  Mike Stump  <mikestump@comcast.net>
18604
18605         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
18606
18607 2010-05-29  Jan Hubicka  <jh@suse.cz>
18608
18609         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
18610         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
18611         use of clone_function_name.
18612         * cgraph.h (cgraph_create_virtual_clone,
18613         cgraph_function_versioning): update prototypes.
18614         (clone_function_name): Declare.
18615         * ipa-cp.c (ipcp_insert_stage): Update call of
18616         cgraph_create_virtual_clone.
18617         * omp-low.c (create_omp_child_function_name): Use
18618         cgraph_create_virtual_clone.
18619         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
18620         (cgraph_function_versioning): Take SUFFIX argument; produce new name
18621         and make decl local.
18622
18623 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18624
18625         * vec.h: Include statistics.h
18626         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
18627         with VEC_H.
18628
18629 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18630
18631         * c-lex.c: Do not include c-tree.h.
18632         * c-pretty-print.c: Likewise.
18633         * c-opts.c: Likewise.
18634         * c-gimplify.c: Likewise.
18635         * c-common.c: Likewise.
18636         * c-dump.c: Likewise.  Include c-common.h.
18637
18638 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18639
18640         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
18641         before including diagnostic-core.h.
18642         (c_cpp_error): New prototype moved from c-tree.h.
18643         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
18644         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
18645         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
18646         (c_cpp_error): Prototype moved to c-common.h.
18647         * Makefile.in: Update dependency for C_COMMON_H.
18648
18649 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18650
18651         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
18652         * c-common.c (c_register_addr_space): Remove here.
18653         * c-decl.c (c_register_addr_space): Re-add here.
18654
18655 2010-05-28  Mike Stump  <mikestump@comcast.net>
18656
18657         * config/darwin-c.c: Remove c-tree.h include.
18658
18659 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
18660
18661         * gcc.c: Include diagnostic.h.
18662         (error_count): Remove.  All users changed to use errorcount.
18663         (programname): Remove.  All users changed to use progname.
18664         (fancy_abort, internal_error, fatal_error, error, warning, inform,
18665         fnotice): Remove.
18666         (execute): Don't include "Internal error" and bug reporting
18667         information in argument of internal_error call.
18668         (process_command): Don't increment error_count after calling
18669         perror_with_name.
18670         (input_filename): Rename to gcc_input_filename.  All users
18671         changed.
18672         (main): Call diagnostic_initialize.  Register delete_temp_files
18673         with atexit.  Use seen_error to test for errors.
18674         * gcc.h: Include diagnostic-core.h.
18675         (fatal_error, error, warning): Remove.
18676         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
18677         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
18678         (gcc.o): Update dependencies.
18679
18680 2010-05-28  Jeff Law  <law@redhat.com>
18681
18682         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
18683         functions.
18684         * ira.h (ira_bad_reload_regno): Declare
18685         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
18686
18687         * ira-color.c (update_curr_costs): Free updated hard reg costs.
18688         (ira_reassign_conflict_allocnos): Remove bogus asserts.
18689         (allocno_reload_assign): Likewise.
18690
18691 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
18692
18693         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
18694         build1_stat.
18695
18696 2010-05-28  Richard Guenther  <rguenther@suse.de>
18697
18698         PR lto/44312
18699         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
18700         Stream fixed-point constants mode.
18701         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
18702         and TYPE_PRECISION.
18703         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
18704         Stream fixed-point constants mode.
18705         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
18706         and TYPE_PRECISION.
18707
18708 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
18709
18710         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
18711         only place it was called from.
18712         (number_of_latch_executions): Do not return chrec_dont_know when the
18713         may_be_zero is a runtime condition: instead, return a COND_EXPR
18714         including the may_be_zero condition.
18715         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
18716         of nb_iterations.
18717         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
18718         COND_EXPRs.
18719
18720 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
18721
18722         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
18723         generate COND_EXPRs for degenerate_phi_result.
18724
18725 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
18726
18727         PR middle-end/44293
18728         * tree-if-conv.c (if_convertible_loop_p): Check the
18729         if-convertibility of phi nodes in non predicated BBs.
18730
18731 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
18732
18733         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
18734
18735 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
18736
18737         PR driver/15303
18738         * gcc.c (inform, warning, inform): New functions.
18739         (fatal_ice): Rename to internal_error; change cmsgid parameter to
18740         gmsgid.  All callers changed.
18741         (notice): Rename to fnotice; add parameter fp.  All callers changed.
18742         (fatal_error): Rename to fatal_signal.  All users changed.
18743         (fatal): Rename to fatal_error; change cmsgid parameter to
18744         gmsgid.  All callers changed.
18745         (process_command): Use warning instead of error for warnings.
18746         (end_going_arg): Don't use _() around argument of error.
18747         (do_spec_1): Use inform for message from %n specs.  Use warning
18748         instead of error for warnings.
18749         (main): Use inform for comparison messages.  Use warning for
18750         message about unused linker input.
18751         (error): Increment error_count.  Print "error: ".
18752         * gcc.h (fatal): Change to fatal_error.
18753         (warning): Declare.
18754         * config/darwin-driver.c (darwin_default_min_version): Use warning
18755         instead of fprintf for warnings.
18756         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
18757
18758 2010-05-28  Julian Brown  <julian@codesourcery.com>
18759
18760         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
18761         (*thumb2_addsi3_compare0_scratch): New.
18762         * config/arm/constraints.md (Pv): New.
18763         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
18764         for ARM mode only.
18765         (*addsi3_compare0_scratch): Likewise.
18766
18767 2010-05-28  Jan Hubicka  <jh@suse.cz>
18768
18769         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
18770         check.
18771         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
18772         only on local statics.
18773
18774 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
18775
18776         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
18777
18778 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
18779
18780         PR bootstrap/44314
18781         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
18782         (OPTION_GLIBC): Define.
18783
18784 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
18785
18786         PR debug/41048
18787         * dwarf2out.c (double_int_type_size_in_bits): New function.
18788         (round_up_to_align): Change first argument and return value to
18789         double_int.
18790         (field_byte_offset): Work internally on double_ints.
18791
18792         PR target/43636
18793         * builtins.c (expand_movstr): Use a temporary pseudo instead
18794         of target even when target is not NULL and not const0_rtx, but
18795         fails movstr predicate.
18796         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
18797
18798 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
18799
18800         * final.c (rest_of_clean_state): Use %m in errors instead of
18801         strerror (errno).
18802         * gengtype.c (read_input_list, close_output_files): Use xstrerror
18803         instead of strerror.
18804         * toplev.c (process_options): Use %m in errors instead of strerror
18805         (errno).
18806         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
18807         (errno).
18808
18809 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
18810
18811         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
18812         (ix86_canonical_va_list_type): Make static.  Add declaration.
18813         (ix86_enum_va_list): Make static.  Reindent.
18814         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
18815         (ix86_canonical_va_list_type): Ditto.
18816         (ix86_enum_va_list): Ditto.
18817
18818 2010-05-28  Richard Guenther  <rguenther@suse.de>
18819
18820         * lto-wrapper.c (run_gcc): With -save-temps generate a
18821         user-visible ltrans filename.  Fixup ltrans unit numbering.
18822
18823 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
18824
18825         * c-common.c (c_common_nodes_and_builtins): Replace use
18826         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
18827         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
18828         to ix86_enum_va_list.
18829         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
18830         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
18831         (TARGET_ENUM_VA_LIST_P): Add hook description.
18832         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
18833         * target.h (gcc_target): Add enum_va_list hook.
18834
18835         PR bootstrap/44299
18836         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
18837         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
18838         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
18839
18840 2010-05-28  Alan Modra  <amodra@gmail.com>
18841
18842         PR target/44266
18843         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18844         emit_library_call machinery to set up __tls_get_addr calls.
18845
18846 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18847
18848         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
18849
18850 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
18851
18852         Revert fix for PR c++/44188
18853         * c-common.c (is_typedef_decl): Revert the moving of  this
18854         definition ...
18855         * tree.c (is_typedef_decl): ... here.
18856         (typdef_variant_p): Revert the moving of this  definition
18857         here from cp/tree.c.
18858         * c-common.h (is_typedef_decl): Revert the moving of this
18859         declaration ...
18860         * tree.h (is_typedef_decl): ... here.
18861         (typedef_variant_p): Revert the moving of this  declaration here
18862         from cp/cp-tree.h
18863         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
18864         (gen_tagged_type_die): Revert the splitting out of ...
18865         (gen_type_die_with_usage): ... this function. Revert the anonymous
18866         tagged type handling.
18867         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
18868         typedefs naming anonymous tagged types.
18869
18870 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18871
18872         * config/rs6000/rs6000-modes.def (PSImode): Delete.
18873
18874 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18875
18876         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
18877         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
18878         throughout.
18879         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
18880         "xer" to "ca".
18881         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
18882         XER_REGS to CA_REGS throughout.
18883         * config/rs6000/rs6000.h: Same.
18884         (ADDITIONAL_REGISTER_NAMES): Add "xer".
18885         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
18886         that mode_iterator "P" is the size for arithmetic carries as well.
18887         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
18888
18889 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
18890
18891         PR bootstrap/44255
18892         * combine.c (struct rtx_subst_pair): Define unconditionally.
18893         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
18894         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
18895         Call make_compound_operation on pair->to.
18896         (propagate_for_debug): Don't call make_compound_operation here.
18897         Always use simplify_replace_fn_rtx.
18898
18899 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
18900
18901         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
18902         * config/xtensa/xtensa.c (override_options): Check
18903           TARGET_FORCE_NO_PIC and set flag_pic.
18904         * config/xtensa/xtensa.opt: Document -mforce-no-pic
18905
18906 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18907
18908         PR bootstrap/44299
18909         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
18910         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
18911
18912 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18913
18914         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
18915         toplev.h.
18916         * diagnostic.c: Don't include toplev.h.
18917         (progname): Define.  Moved from toplev.c.
18918         (seen_error): New function.
18919         * diagnostic.h: Include diagnostic-core.h.
18920         (diagnostic_t, emit_diagnostic): Don't declare here.
18921         * toplev.c (progname): Move to toplev.c.
18922         (emit_debug_global_declarations, compile_file, finalize,
18923         do_compile, toplev_main): Use seen_error.
18924         * toplev.h: Include diagnostic-core.h.
18925         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
18926         internal_error, warning, warning_at, error, error_n, error_at,
18927         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
18928         verbatim, fnotice, progname): Move to diagnostic-core.h.
18929         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
18930         (expand_builtin_expect): Use seen_error.
18931         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
18932         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
18933         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
18934         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
18935         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
18936         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
18937         errorcount for errors.
18938         * c-opts.c (c_common_finish): Use seen_error.
18939         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18940         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
18941         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
18942         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
18943         (get_coverage_counts): Use seen_error.
18944         * dwarf2out.c (dwarf2out_finish): Use seen_error.
18945         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
18946         gimplify_body): Use seen_error.
18947         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
18948         * ipa-pure-const.c (gate_pure_const): Use seen_error.
18949         * ipa-reference.c (gate_reference): Use seen_error.
18950         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
18951         * lambda-code.c: Include diagnostic-core.h instead of
18952         diagnostic.h.
18953         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18954         * lto-compress.c: Include diagnostic-core.h instead of
18955         diagnostic.h.
18956         * lto-section-in.c: Include diagnostic-core.h instead of
18957         diagnostic.h.
18958         * lto-streamer-out.c: Include diagnostic-core.h instead of
18959         diagnostic.h.
18960         * lto-streamer.c: Include diagnostic-core.h instead of
18961         diagnostic.h.
18962         (gate_lto_out): Use seen_error.
18963         * matrix-reorg.c: Include diagnostic-core.h instead of
18964         diagnostic.h.
18965         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
18966         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
18967         (gate_expand_omp, lower_omp_1): Use seen_error.
18968         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
18969         (rest_of_decl_compilation, rest_of_type_compilation,
18970         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
18971         * tree-cfg.c (label_to_block_fn): Use seen_error.
18972         * tree-inline.c (optimize_inline_calls): Use seen_error.
18973         * tree-mudflap.c (mudflap_finish_file): Use
18974         seen_error.
18975         * tree-optimize.c (gate_all_optimizations,
18976         gate_all_early_local_passes, gate_all_early_optimizations): Use
18977         seen_error.
18978         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
18979         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
18980         (varpool_remove_unreferenced_decls,
18981         varpool_assemble_pending_decls): Use seen_error.
18982         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
18983         (TOPLEV_H, DIAGNOSTIC_H): Update.
18984         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
18985         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
18986         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
18987         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
18988         coverage.o, lambda-code.o): Update dependencies.
18989
18990 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
18991
18992         PR c++/44188
18993         * c-common.c (is_typedef_decl): Move this definition ...
18994         * tree.c (is_typedef_decl): ... here.
18995         (typdef_variant_p): Move definition here from cp/tree.c.
18996         * c-common.h (is_typedef_decl): Move this declaration ...
18997         * tree.h (is_typedef_decl): ... here.
18998         (typedef_variant_p): Move declaration here from cp/cp-tree.h
18999         * dwarf2out.c (is_naming_typedef_decl): New function.
19000         (gen_tagged_type_die): Split out of ...
19001         (gen_type_die_with_usage): ... this function. When an anonymous
19002         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
19003         is emitted for the typedef.
19004         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
19005         anonymous tagged types.
19006
19007 2010-05-27  Jason Merrill  <jason@redhat.com>
19008
19009         * print-tree.c (debug_vec_tree): New fn.
19010         (print_vec_tree): New fn.
19011         * tree.h: Declare them.
19012         * gdbinit.in (pvt): New command.
19013
19014         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
19015
19016         * gdbinit.in (pdd): New command.
19017
19018 2010-05-27  Jan Hubicka  <jh@suse.cz>
19019
19020         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
19021         (update_caller_keys): Return early if there are no callers;
19022         only update fibheap when decresing the key.
19023         (update_callee_keys): Avoid recursion.
19024         (decide_inlining_of_small_functions): When badness does not match;
19025         re-insert into fibheap.
19026
19027 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
19028
19029         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
19030         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
19031         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
19032         (ALL_HOST_OBJS): Now a union of the above two.
19033         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
19034         all files in ALL_HOST_FRONTEND_OBJS.
19035         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
19036
19037         * c-common.c: Pretend to be a backend file by undefining
19038         IN_GCC_FRONTEND (still need rtl.h here).
19039
19040 2010-05-27  Jan Hubicka  <jh@suse.cz>
19041
19042         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
19043         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
19044
19045 2010-05-27  Jan Hubicka  <jh@suse.cz>
19046
19047         * sched-ebb.c: Rename struct deps to struct deps_desc.
19048         * ddg.c: Likewise.
19049         * sel-sched-ir.c: Likewise.
19050         * sched-deps.c: Likewise.
19051         * sched-int.h: Likewise.
19052         * sched-rgn.c: Likewise.
19053
19054 2010-05-27  Jon Beniston  <jon@beniston.com>
19055
19056         PR 43726
19057         * config/lm32/lm32.h: Remove definition of
19058         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
19059
19060 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19061
19062         PR lto/44230
19063         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
19064
19065 2010-05-27  Richard Guenther  <rguenther@suse.de>
19066
19067         PR tree-optimization/44284
19068         * tree-vect-stmts.c (vectorizable_assignment): Handle
19069         sign-changing conversions as simple copy.
19070
19071 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19072
19073         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
19074         Bionic C library.
19075         (__gthread_active_p): Check for pthread_create if compiling against
19076         Bionic C library.
19077
19078 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19079
19080         Support compilation for Android platform.  Reimplement -mandroid.
19081
19082         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
19083         (*android*): Set ANDROID_DEFAULT.
19084         (arm*-*-linux*): Include linux-android.h.
19085         (arm*-*-eabi*): Don't include previous -mandroid implementation.
19086         * config/arm/eabi.h: Remove, move Android-specific parts ...
19087         * config/linux-android.h: ... here.  New file.
19088         * config/arm/eabi.opt: Rename to ...
19089         * config/linux-android.opt: ... this.
19090         (mandroid): Allow -mno-android option.  Initialize based on
19091         ANDROID_DEFAULT.
19092         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
19093         Move logic to corresponding LINUX_TARGET_* macros.
19094         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
19095         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
19096         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
19097         Android definitions.
19098         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
19099         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
19100         Document.
19101
19102 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19103
19104         Add support for Bionic C library
19105
19106         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
19107         macro.
19108         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
19109         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
19110
19111         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
19112         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
19113         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
19114         to support multiple C libraries.  Handle Bionic.
19115         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
19116         (BIONIC_DYNAMIC_LINKER64): Define.
19117         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
19118         Update.
19119         (TARGET_HAS_SINCOS): Enable for Bionic.
19120
19121         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
19122         the last option specified on command line take effect.
19123         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
19124         (mbionic): New.
19125         (mglibc, muclibc): Update.
19126
19127         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
19128         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
19129         DEFAULT_LIBC.
19130
19131         * doc/invoke.texi (-mglibc, -muclibc): Update.
19132         (-mbionic): Document.
19133
19134 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19135
19136         * c-common.h (c_register_addr_space): Add prototype.
19137         (ADDR_SPACE_KEYWORD): Remove.
19138         * c-common.c (c_register_addr_space): New function.
19139         (c_addr_space_name): Reimplement.
19140         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
19141
19142         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
19143         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
19144
19145         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
19146         Remove TARGET_ADDR_SPACE_KEYWORDS.
19147
19148 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
19149
19150         * input.c: New file.
19151         * input.h (main_input_filename): Move declaration to toplev.h.
19152         * toplev.c (input_location, line_table): Move to input.c
19153         * toplev.h (main_input_filename): Move declaration from input.h.
19154         * tree.c (expand_location): Move to input.c.
19155         * Makefile.in (OBJS-common): Add input.o.
19156         (input.o): Add dependencies.
19157
19158 2010-05-27  Richard Guenther  <rguenther@suse.de>
19159
19160         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
19161         for non-existant files.
19162         (fork_execute): Mark args_name file as deleted.
19163
19164 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
19165
19166         PR bootstrp/44287
19167         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
19168         (narrow_signed_type): Likewise.
19169
19170 2010-05-26  Jan Hubicka  <jh@suse.cz>
19171
19172         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
19173         edge only when checking is enabled; check using former_clone_of;
19174         check inline clones too.
19175         (cgraph_materialize_clone): Record former_clone_of pointer.
19176         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
19177         combining redirections; dump args_to_skip bitmap
19178         (cgraph_materialize_all_clones): Do no redirection here.
19179         * ipa-inline.c (inline_transform): Do redirection here.
19180         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
19181         cheking only).
19182
19183 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
19184
19185         * config/avr/avr-c.c: Do not include regs.h.
19186         Include cpplib.h for cpp_define and tree.h for c-common.h.
19187         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
19188         * config/avr/t-avr: Fix dependencies for avr-c.o.
19189
19190 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
19191
19192         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
19193         string instead of SYMBOL_REF rtx.
19194         * rtl.h (set_stack_check_libfunc): Move prototype from here...
19195         * libfuncs.h: ...to here.  Adjust for explow.c change.
19196
19197 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
19198
19199         * pretty-print.c: Don't include ggc.h.
19200         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
19201         (identifier_to_locale): Use them for allocation.
19202         * pretty-print.h (identifier_to_locale_alloc,
19203         identifier_to_locale_free): Declare.
19204         * toplev.c (alloc_for_identifier_to_locale): New.
19205         (general_init): Set identifier_to_locale_alloc and
19206         identifier_to_locale_free.
19207         * Makefile.in (pretty-print.o): Update dependencies.
19208
19209 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
19210
19211         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
19212         pointer types if they have different alignment or mode.
19213
19214 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
19215
19216         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19217         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19218         * config/sparc/sparc-protos.h (function_value): Remove declaration.
19219         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
19220         sparc_function_value_regno_p): New functions.
19221         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19222         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19223         (function_value): Rename to...
19224         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
19225         argument to 'outgoing'.
19226         (function_arg_record_value, function_arg_union_value,
19227         function_arg_vector_value): Update comment.
19228
19229 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
19230
19231         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
19232         (fde_needed_for_eh_p): New predicate.
19233         (output_call_frame_info): Use it throughout to decide whether FDEs
19234         are needed for EH purpose.
19235         (dwarf2out_begin_prologue): Reorder assignments.
19236
19237 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19238
19239         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
19240         special case loop->header.
19241         (is_predicated): New.
19242         (if_convertible_loop_p): Call it.
19243
19244 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19245
19246         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
19247         iterator in parameter.  Do not generate code during the analysis.
19248         (tree_if_convert_cond_stmt): Removed.
19249         (tree_if_convert_stmt): Removed.
19250         (predicate_bbs): New.
19251         (if_convertible_loop_p): Call predicate_bbs.
19252         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
19253         now contains all the analysis part.
19254
19255 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19256
19257         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
19258         statements in the analysis part.
19259         (tree_if_convert_stmt): Update comment.
19260         (remove_conditions_and_labels): New.
19261         (combine_blocks): Call remove_conditions_and_labels.
19262         (tree_if_conversion): Update comment.
19263
19264 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19265
19266         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
19267         than 2 predecessors or more than 2 successors.
19268
19269 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19270
19271         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
19272         of loops in which the data dependence analysis fails.
19273
19274 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19275
19276         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
19277         CDI_POST_DOMINATORS.
19278         (tree_if_conversion): Same.
19279
19280 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19281
19282         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
19283
19284 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
19285
19286         * tree-if-conv.c: Update copyright years.  Fix comments.
19287         Fix indentation.
19288
19289 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
19290
19291         * builtin-types.def (BT_INT128): New primitive type.
19292         (BT_UINT128): Likewise.
19293         * c-common.c (c_common_r): Add __int128 keyword.
19294         (c_common_type_for_size): Handle __int128.
19295         (c_common_type_for_mode): Likewise.
19296         (c_common_signed_or_unsigned_type): Likewise.
19297         (c_common_nodes_and_builtins): Add builtin type
19298         if target supports 128-bit integer scalar.
19299         * c-common.h (enum rid): Add RID_INT128.
19300         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
19301         if target supports 128-bit integer scalar.
19302         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
19303         (finish_declspecs): Likewise.
19304         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
19305         (c_token_starts_declspecs): Likewise.
19306         (c_parser_declspecs): Likewise.
19307         (c_parser_attributes): Likewise.
19308         (c_parser_objc_selector): Likewise.
19309         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
19310         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
19311         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
19312         * tree.c (make_or_reuse_type): Likewise.
19313         (make_unsigned_type): Likewise.
19314         (build_common_tree_nodes_2): Likewise.
19315         * tree.h (enum integer_type_kind): Add itk_int128 and
19316         itk_unsigned_int128.
19317         (int128_integer_type_node): New define.
19318         (int128_unsigned_type_node): New define.
19319         * doc/extend.texi: Add documentation about __int128 type.
19320
19321 2010-05-26  Richard Guenther  <rguenther@suse.de>
19322
19323         * tree-ssa-sccvn.c (copy_nary): Adjust.
19324         (copy_phis): Rename to ...
19325         (copy_phi): ... this.  Adjust.
19326         (copy_references): Rename to ...
19327         (copy_reference): ... this.  Adjust.
19328         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
19329         result into the valid table.
19330
19331 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
19332
19333         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
19334         insn-config.h, insn-codes.h, recog.h, and optabs.h.
19335
19336 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19337
19338         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
19339
19340 2010-05-26  Richard Guenther  <rguenther@suse.de>
19341
19342         * opts.c (common_handle_option): Handle OPT_Ofast.
19343
19344 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
19345
19346         * diagnostic.c: Don't include opts.h.
19347         (permissive_error_option): Define.
19348         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
19349         for classify_diagnostic.  Don't use memset for
19350         classify_diagnostic.  Initialize new and recently added fields.
19351         (diagnostic_classify_diagnostic): Use context->n_opts instead of
19352         N_OPTS.
19353         (diagnostic_report_diagnostic): Pass context parameter to
19354         diagnostic_report_warnings_p.  Use option_enabled and option_name
19355         hooks from context.
19356         (emit_diagnostic): Use permissive_error_option.
19357         (permerror): Likewise.
19358         * diagnostic.h: Don't include options.h.
19359         (struct diagnostic_context): Add n_opts, opt_permissive,
19360         inhibit_warnings, warn_system_headers, option_enabled and
19361         option_name fields.  Change classify_diagnostic to a pointer.
19362         * opts-diagnostic.h: New file.
19363         * opts.c: Include opts-diagnostic.h.
19364         (common_handle_option): Set global_dc fields for -Wfatal-errors,
19365         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
19366         (option_name): New function.
19367         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
19368         (c_common_handle_option): Set global_dc->permissive for
19369         -fpermissive.
19370         * c-common.c (c_cpp_error): Save and restore
19371         global_dc->warn_system_headers, not variable warn_system_headers.
19372         * toplev.c: Include opts-diagnostic.h.
19373         (general_init): Update call to diagnostic_initialize.  Set
19374         global_dc->show_column, global_dc->option_enabled and
19375         global_dc->option_name.
19376         (process_options): Don't set global_dc fields here.
19377         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
19378         (diagnostic.o, opts.o, toplev.o): Update dependencies.
19379
19380 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19381
19382         * config/picochip/picochip.md (movsi): Split a movsi from a
19383         const after reload.
19384
19385 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19386
19387         * ggc-zone.c: Update copyright year.
19388         (poison_region): Mark memory for Valgrind as undefined before
19389         memset () call and inaccessible afterwards.
19390         (ggc_pch_total_size): Change type of i to int.
19391
19392 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19393
19394         * ggc-common.c (ggc_free_overhead): Allow empty slot.
19395
19396 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19397
19398         * ggc-common.c: Update copyright year.
19399         (ggc_rlimit_bound): Remove prototype.  Compile only if
19400         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
19401         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
19402         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
19403         (ggc_min_heapsize_heuristic): Likewise.
19404
19405 2010-05-26  Richard Guenther  <rguenther@suse.de>
19406
19407         PR rtl-optimization/44164
19408         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
19409         no-common access-path disambiguation.
19410         (indirect_ref_may_alias_decl_p): Adjust.
19411         (indirect_refs_may_alias_p): Likewise.
19412         (refs_may_alias_p_1): Likewise.
19413
19414 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
19415
19416         * c-typeck.c: Do not include expr.h.
19417
19418 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
19419
19420         * rtl.h (decl_default_tls_model): Move prototype from here...
19421         * output.h: ...to here.
19422         * c-decl.c: Do not include rtl.h.
19423         * c-pragma.c: Likewise.
19424         * c-parser.c: Likewise.
19425         * c-gimplify.c: Likewise.  And also not hard-reg-set.
19426         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
19427         FIXME note for it.  Add a FIXME note for expr.h.
19428         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
19429         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
19430         defined.
19431
19432 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
19433
19434         PR target/44199
19435         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
19436         or total_size is larger than red zone size for non-V4 ABI, emit a
19437         stack_tie resp. frame_tie insn before stack pointer restore.
19438         * config/rs6000/rs6000.md (frame_tie): New insn.
19439
19440 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
19441
19442         * function.h (struct function): Add can_throw_non_call_exceptions bit.
19443         * lto-streamer-in.c (input_function): Stream it in.
19444         * lto-streamer-out.c (output_function): Stream it out.
19445         * function.c (allocate_struct_function): Set it.
19446         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
19447         for flag_non_call_exceptions.
19448         * cfgbuild.c (control_flow_insn_p): Likewise.
19449         (make_edges): Likewise.
19450         * cfgexpand.c (expand_stack_alignment): Likewise.
19451         * combine.c (distribute_notes): Likewise.
19452         * cse.c (cse_extended_basic_block): Likewise.
19453         * except.c (insn_could_throw_p): Likewise.
19454         * gcse.c (simple_mem): Likewise.
19455         * ipa-pure-const.c (check_call): Likewise.
19456         (check_stmt ): Likewise.
19457         * lower-subreg.c (lower-subreg.c): Likewise.
19458         * optabs.c (emit_libcall_block): Likewise.
19459         (prepare_cmp_insn): Likewise.
19460         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
19461         * postreload.c (rest_of_handle_postreload): Likewise.
19462         * reload1.c (reload_as_needed): Likewise.
19463         (emit_input_reload_insns): Likewise.
19464         (emit_output_reload_insns): Likewise.
19465         (fixup_abnormal_edges): Likewise.
19466         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
19467         * store-motion.c (find_moveable_store): Likewise.
19468         * tree-eh.c (stmt_could_throw_p): Likewise.
19469         (tree_could_throw_p): Likewise.
19470         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19471         * config/arm/arm.c (arm_expand_prologue): Likewise.
19472         (thumb1_expand_prologue): Likewise.
19473         * config/rx/rx.md (cbranchsf4): Likewise.
19474         (cmpsf): Likewise.
19475         * config/s390/s390.c (s390_emit_prologue): Likewise.
19476         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
19477         (inline_forbidden_into_p): New predicate.
19478         (expand_call_inline): Use it to forbid inlining.
19479         (tree_can_inline_p): Likewise.
19480
19481 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
19482
19483         * config/i386/i386-c.c: Do not include rtl.h.
19484         * config/i386/t-i386: Update dependencies.
19485
19486 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
19487
19488         * attribs.c: Do not include rtl.h.
19489         * Makefile.in: Update dependencies.
19490
19491 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
19492
19493         * double-int.h (double_int_and): New.
19494         * combine.c (try_combine): Clean up, use double_int_* and
19495         immed_double_int_const functions.
19496
19497 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19498
19499         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
19500         stderr to /dev/null instead of grep -q.
19501         * configure: Regenerate.
19502
19503 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
19504
19505         * Makefile.in (EXCEPT_H): Fix typo.
19506
19507 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
19508
19509         * ira-build.c (update_conflict_hard_reg_costs): New.
19510         (ira_build): Call update_conflict_hard_reg_costs.
19511
19512 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
19513
19514         PR debug/41371
19515         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
19516         ENABLE_CHECKING.
19517         (intersect_loc_chains): Walk the s2var's loc_chain together
19518         with s1node chain as long as the locations are equal, don't
19519         call find_loc_in_1pdv in that case.
19520
19521         PR debug/42801
19522         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
19523         (copy_bind_expr): ... instead of here.
19524         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
19525         if the block hasn't been remapped.
19526         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
19527         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
19528
19529 2010-05-25  Richard Guenther  <rguenther@suse.de>
19530
19531         PR middle-end/44069
19532         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
19533         out-of-bounds array accesses.
19534
19535 2010-05-25  Richard Guenther  <rguenther@suse.de>
19536
19537         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
19538         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
19539         (run_gcc): Re-organize to make cleanup easier.
19540
19541 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19542
19543         * config/s390/s390.c (optimization_options): Fix and move the
19544         flag_prefetch_loop_arrays override ...
19545         (override_options): ... here.
19546
19547 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
19548
19549         * diagnostic.c: Don't include plugin.h.
19550         (diagnostic_report_diagnostic): Don't handle plugins specially
19551         here.  Pass context to internal_error callback.
19552         * diagnostic.h (struct diagnostic_context): Add context parameter
19553         to internal_error callback.
19554         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
19555         * plugin.h (struct diagnostic_context): Declare.
19556         (warn_if_plugins, plugins_internal_error_function): Declare.
19557         * toplev.c (general_init): Set global_dc->internal_error.
19558         * Makefile.in (diagnostic.o): Update dependencies.
19559
19560 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
19561
19562         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
19563         * config/rs6000/t-darwin64: New.
19564         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
19565         build crt2.
19566
19567 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
19568
19569         PR 44203
19570         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
19571         match the original (and intended) behaviour before r159557.  This
19572         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
19573         in two ways.
19574
19575 2010-05-25  Richard Guenther  <rguenther@suse.de>
19576
19577         * doc/invoke.texi: Document -Ofast.
19578         * target.h (struct gcc_target): Add handle_ofast.
19579         * target-def.h (TARGET_HANDLE_OFAST): Add.
19580         (TARGET_INITIALIZER): Adjust.
19581         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
19582         * common.opt (Ofast): Add.
19583
19584 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
19585
19586         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
19587         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
19588
19589 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
19590
19591         PR target/43610
19592         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
19593         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
19594         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
19595         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
19596
19597 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
19598
19599         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
19600         DW_OP_minus with negated offset instead of DW_OP_plus.
19601         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
19602
19603 2010-05-25  Wei Guozhi  <carrot@google.com>
19604
19605         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
19606         tst instruction and a new alternative.
19607         * config/arm/constraints.md (Pu): New constraint.
19608
19609 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
19610
19611         * function.c (assign_stack_local_1): Initialize variable
19612         to avoid warning when bootstrapping at -O3.
19613
19614 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
19615
19616         * configure.ac (all_lang_makefiles): Remove everything related to it.
19617         * configure: Regenerate.
19618         * Makefile.in: Fix reference to ada Make-lang.in.
19619         Remove support for LANG_MAKEFILES.
19620
19621 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
19622             Sandra Loosemore  <sandra@codesourcery.com>
19623
19624         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
19625         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
19626         description.  Add arm_neon_fp16_ok.
19627         (Add Options): Add arm_neon and arm_neon_fp16.
19628
19629 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
19630
19631         * diagnostic.c: Don't include flags.h.
19632         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
19633         context parameters.  Check flags in the context passed as a parameter.
19634         (diagnostic_build_prefix): Add context parameter.  Check
19635         show_column flag in context.
19636         (diagnostic_action_after_output): Check fatal_errors flag in context.
19637         (diagnostic_report_current_module): Check show_column flag in context.
19638         (default_diagnostic_starter): Update call to
19639         diagnostic_build_prefix.
19640         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
19641         (emit_diagnostic): Pass context to permissive_error_kind.
19642         (permerror): Pass context to permissive_error_kind.
19643         * diagnostic.h (struct diagnostic_context): Add show_column,
19644         pedantic_errors, permissive and fatal_errors fields.
19645         (diagnostic_build_prefix): Update prototype.
19646         * langhooks.c
19647         * toplev.c (process_options): Set flags in global_dc from
19648         flag_show_column, flag_pedantic_errors, flag_permissive,
19649         flag_fatal_errors.
19650         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
19651         to diagnostic_build_prefix.
19652         * Makefile.in (diagnostic.o): Update dependencies.
19653
19654 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19655
19656         * config/i386/ia32intrin.h (__crc32q): Define only if
19657         __SSE4_2__ is defined.
19658
19659 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
19660
19661         PR target/44132
19662         PR middle-end/43602
19663         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
19664         DECL_VISIBILITY_SPECIFIED.
19665         (emutls_decl): Set DECL_PRESERVE_P and copy
19666         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
19667         (emutls_finalize_control_var): New callback.
19668         (emutls_finish): Finalize emutls control variables.
19669         * toplev.c (compile_file): Move the call to emutls_finish ()
19670         before varpool_assemble_pending_decls ().
19671
19672 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
19673
19674         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
19675         added to the preprocessor condition.
19676
19677 2010-05-24  Paul Brook  <paul@codesourcery.com>
19678
19679         * gengtype-lex.l: Add HARD_REG_SET.
19680         * expr.c (expand_expr_real_1): Record writes to hard registers.
19681         * function.c (rtl_data): Add asm_clobbers.
19682         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
19683         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
19684         Use crtl->asm_clobbers.
19685
19686 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19687
19688         * doc/makefile.texi (Makefile): Mention stages 'profile'
19689         and 'feedback' for profiledbootstrap.
19690
19691 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19692
19693         PR target/44245
19694         * config/i386/i386.c (def_builtin): Properly check
19695         OPTION_MASK_ISA_64BIT.
19696
19697 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
19698
19699         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
19700         typedefs with different but compatible types.  Allow duplicate
19701         typedefs with the same type except for pedantic non-C1X, but give
19702         warning for variably modified types.
19703         * c-typeck.c (tagged_types_tu_compatible_p,
19704         function_types_compatible_p, type_lists_compatible_p,
19705         comptypes_internal): Add parameter different_types_p; set
19706         *different_types_p for different but compatible types.  All
19707         callers changed.
19708         (comptypes_check_different_types): New.
19709         * c-tree.h (comptypes_check_different_types): Declare.
19710
19711 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
19712
19713         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
19714         * jump.c: Include basic-block.h.
19715         * profile.c: Likewise.
19716         * tree-profile.c: Likewise.
19717         * coverage.c: Likewise.
19718         * basic-block.h (optimize_function_for_size_p): Move to function.h.
19719         (optimize_function_for_speed_p): Likewise.
19720         * function.h (optimize_function_for_size_p,
19721         optimize_function_for_speed_p): Moved here from basic-block.h.
19722         * Makefile.in: Update dependencies.
19723
19724 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19725
19726         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
19727         before calling make; allow override through $MAKE.
19728         * doc/invoke.texi (Optimize Options): Document override.
19729
19730 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
19731
19732         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
19733         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19734         (rs6000_mode_dependent_address_ptr): Make static.
19735         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19736         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
19737         Remove.
19738
19739 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
19740
19741         PR target/43869
19742         * config/i386/i386.c: Make sure that the correct regparm is passed.
19743
19744 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
19745
19746         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
19747         * sbitmap.c: ...to here to internalize sbitmap element access.
19748         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
19749         Explain why basic-block.h is included.
19750         * function.h: Include tm.h for CUMULATIVE_ARGS.
19751         * Makefile.in: Update dependencies.
19752
19753 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
19754
19755         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
19756         New core types.
19757         * sbitmap.h (struct sbitmap_def): Do not typedef here.
19758         * sbitmap.c: Include sbitmap.h.
19759         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
19760         hard-reg-set.h.  Split everything related to regsets out from here...
19761         * regset.h: ...to here.  New file.
19762         * df.h: Include regset.h and sbitmap.h.
19763         * tree-flow.h: Likewise.
19764         * cfgloop.h: Likewise.
19765         * except.h: Do not include sbitmap.h.  Include hashtab.h.
19766         * cgraph.h: Include vec.h and function.h.
19767         * reload.h (struct insn_chain): Change types of live_throughout
19768         and dead_or_set from regset_head to bitmap_head.
19769         (compute_use_by_pseudos): Be defined also if regset.h is not included.
19770         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
19771         spilled_regs from regset_head to bitmap_head to avoid dependency
19772         in regset.h.
19773         * sel-sched-ir.h: Include regset.h.
19774         * reload.c: Include df.h before reload.h.
19775         * caller-save.c: Likewise.
19776         * reload1.c: Likewise.
19777         * ira.c: Likewise.
19778         (mark_elimination): Update type of r to bitmap, consistent with
19779         DF_LR_IN.
19780         * dominance.c: Include bitmap.h.
19781         * modulo-sched.c: Include df.h.
19782         * cfganal.c: Include bitmap.h and sbitmap.h.
19783         * cfgbuild.c: Include sbitmap.h.
19784         * lcm.c: Include sbitmap.h.
19785         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
19786         * domwalk.c: Include sbitmap.h, exclude ggc.h.
19787         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
19788         * cselib.c: Include bitmap.h.
19789         * tree-optimize.c: Include regset.h.
19790         * stmt.c: Include bitmap.h.
19791         * Makefile.in: Update dependencies.
19792
19793 2010-05-22  Jan Hubicka  <jh@suse.cz>
19794
19795         * cgraph.h (struct varpool_node): Add same_comdat_group.
19796         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
19797         pointer.
19798         (output_varpool): Update call of lto_output_varpool_node.
19799         (input_varpool): Read same_comdat_group pointer.
19800         (input_varpool_1): Fixup same_comdat_group pointer.
19801         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
19802         group is needed, all are.
19803         * varpool.c (varpool_remove_node): Remove node from same comdat group
19804         linklist too.
19805         (varpool_analyze_pending_decls): Walk same comdat groups.
19806
19807 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
19808
19809         * rtl.h (union rtunion_def): Remove rt_bit member.
19810         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
19811         * print-rtl (print_rtx): Do not print the member.
19812         * gengtype.c (adjust_field_rtx_def): Do not handle it.
19813         * gengenrtl.c (type_from_format): Likewise.
19814         (accessor_from_format): Likewise.
19815
19816 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
19817
19818         * dbgcnt.c: Include toplev.h instead of errors.h.
19819         * ira-emit.c: Don't include errors.h.
19820         * ira.c: Include toplev.h instead of errors.h.
19821         * lto-compress.c: Include toplev.h instead of errors.h.
19822         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
19823         ira.o, dbgcnt.o): Update dependencies.
19824
19825 2010-05-22  Richard Guenther  <rguenther@suse.de>
19826
19827         * gimple.c (gimple_types_compatible_p): Check type qualifications
19828         before merging pointer to complete and pointer to incomplete type.
19829         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
19830         we use our own resolution algorithm.  The gold linker plugin
19831         doesn't do the job we want it to do here.
19832
19833 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
19834
19835         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19836         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19837         (sparc_mode_dependent_address_p): New function.
19838
19839 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19840
19841         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
19842
19843         * timevar.c: Do not include any core headers.
19844         (timevar_print): De-i18n-ize.
19845         (print_time): Likewise.
19846         * timevar.h (timevar_push, timevar_pop): Make inline functions.
19847
19848 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
19849
19850         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
19851         langhooks-def.h.
19852         (diagnostic_initialize): Initialize x_data not last_function.
19853         (diagnostic_report_current_function): Move to tree-diagnostic.c.
19854         (default_diagnostic_starter): Call
19855         diagnostic_report_current_module not
19856         diagnostic_report_current_function.
19857         (diagnostic_report_diagnostic): Initialize x_data not
19858         abstract_origin.
19859         (verbatim): Likewise.
19860         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
19861         x_data.
19862         (struct diagnostic_context): Change last_function to x_data.
19863         (diagnostic_auxiliary_data): Replace with
19864         diagnostic_context_auxiliary_data and
19865         diagnostic_info_auxiliary_data.
19866         (diagnostic_last_function_changed, diagnostic_set_last_function,
19867         diagnostic_report_current_function): Move to tree-diagnostic.h.
19868         (print_declaration, dump_generic_node, print_generic_stmt,
19869         print_generic_stmt_indented, print_generic_expr,
19870         print_generic_decl, debug_c_tree, dump_omp_clauses,
19871         print_call_name, debug_generic_expr, debug_generic_stmt,
19872         debug_tree_chain, default_tree_printer): Move to
19873         tree-pretty-print.h.
19874         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
19875         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
19876         gimple-pretty-print.h.
19877         * pretty-print.c: Don't include tree.h
19878         (pp_base_format): Don't handle %K here.
19879         (pp_base_tree_identifier): Move to tree-pretty-print.c.
19880         * pretty-print.h (text_info): Change abstract_origin to x_data.
19881         (pp_tree_identifier, pp_unsupported_tree,
19882         pp_base_tree_identifier): Move to tree-pretty-print.h.
19883         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
19884         tree-pretty-print.h: New files.
19885         * tree-pretty-print.c: Include tree-pretty-print.h.
19886         (percent_K_format): New.  Moved from pretty-print.c.
19887         (pp_base_tree_identifier): Move from pretty-print.c.
19888         * c-objc-common.c: Include tree-pretty-print.h.
19889         (c_tree_printer): Handle %K here.
19890         * langhooks.c: Include tree-diagnostic.h.
19891         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
19892         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
19893         (default_tree_printer): Handle %K using percent_K_format.
19894         (general_init): Use default_tree_diagnostic_starter.
19895         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
19896         (free_lang_data): Use default_tree_diagnostic_starter.
19897         * c-pretty-print.c: Include tree-pretty-print.h.
19898         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19899         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19900         * dwarf2out.c: Include tree-pretty-print.h.
19901         * except.c: Include tree-pretty-print.h.
19902         * gimple-pretty-print.c: Include tree-pretty-print.h and
19903         gimple-pretty-print.h.
19904         * gimplify.c: Include tree-pretty-print.h.
19905         * graphite-poly.c: Include tree-pretty-print.h and
19906         gimple-pretty-print.h.
19907         * ipa-cp.c: Include tree-pretty-print.h.
19908         * ipa-inline.c: Include gimple-pretty-print.h.
19909         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19910         * ipa-pure-const.c: Include gimple-pretty-print.h.
19911         * ipa-struct-reorg.c: Include tree-pretty-print.h and
19912         gimple-pretty-print.h.
19913         * ipa-type-escape.c: Include tree-pretty-print.h.
19914         * print-rtl.c: Include tree-pretty-print.h.
19915         * print-tree.c: Include gimple-pretty-print.h.
19916         * sese.c: Include tree-pretty-print.h.
19917         * tree-affine.c: Include tree-pretty-print.h.
19918         * tree-browser.c: Include tree-pretty-print.h.
19919         * tree-call-cdce.c: Include gimple-pretty-print.h.
19920         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19921         * tree-chrec.c: Include tree-pretty-print.h.
19922         * tree-data-ref.c: Include tree-pretty-print.h and
19923         gimple-pretty-print.h.
19924         * tree-dfa.c: Include tree-pretty-print.h.
19925         * tree-if-conv.c: Include tree-pretty-print.h and
19926         gimple-pretty-print.h.
19927         * tree-inline.c: Include tree-pretty-print.h.
19928         * tree-into-ssa.c: Include tree-pretty-print.h and
19929         gimple-pretty-print.h.
19930         * tree-nrv.c: Include tree-pretty-print.h.
19931         * tree-object-size.c: Include tree-pretty-print.h and
19932         gimple-pretty-print.h.
19933         * tree-outof-ssa.c: Include tree-pretty-print.h and
19934         gimple-pretty-print.h.
19935         * tree-parloops.c: Include tree-pretty-print.h and
19936         gimple-pretty-print.h.
19937         * tree-predcom.c: Include tree-pretty-print.h and
19938         gimple-pretty-print.h.
19939         * tree-scalar-evolution.c: Include tree-pretty-print.h and
19940         gimple-pretty-print.h.
19941         * tree-sra.c: Include tree-pretty-print.h.
19942         * tree-ssa-address.c: Include tree-pretty-print.h.
19943         * tree-ssa-alias.c: Include tree-pretty-print.h.
19944         * tree-ssa-ccp.c: Include tree-pretty-print.h and
19945         gimple-pretty-print.h.
19946         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
19947         * tree-ssa-copy.c: Include tree-pretty-print.h and
19948         gimple-pretty-print.h.
19949         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
19950         * tree-ssa-dce.c: Include tree-pretty-print.h and
19951         gimple-pretty-print.h.
19952         * tree-ssa-dom.c: Include tree-pretty-print.h and
19953         gimple-pretty-print.h.
19954         * tree-ssa-dse.c: Include gimple-pretty-print.h.
19955         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
19956         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
19957         * tree-ssa-live.c: Include tree-pretty-print.h and
19958         gimple-pretty-print.h.
19959         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
19960         gimple-pretty-print.h.
19961         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
19962         gimple-pretty-print.h.
19963         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
19964         gimple-pretty-print.h.
19965         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
19966         gimple-pretty-print.h.
19967         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
19968         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
19969         * tree-ssa-operands.c: Include tree-pretty-print.h and
19970         gimple-pretty-print.h.
19971         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
19972         gimple-pretty-print.h.
19973         * tree-ssa-pre.c: Include tree-pretty-print.h and
19974         gimple-pretty-print.h.
19975         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
19976         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
19977         gimple-pretty-print.h.
19978         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
19979         gimple-pretty-print.h.
19980         * tree-ssa-sink.c: Include gimple-pretty-print.h.
19981         * tree-ssa-ter.c: Include tree-pretty-print.h and
19982         gimple-pretty-print.h.
19983         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
19984         * tree-ssa.c: Include tree-pretty-print.h and
19985         gimple-pretty-print.h.
19986         * tree-stdarg.c: Include gimple-pretty-print.h.
19987         * tree-switch-conversion.c: Include gimple-pretty-print.h.
19988         * tree-tailcall.c: Include tree-pretty-print.h and
19989         gimple-pretty-print.h.
19990         * tree-vect-data-refs.c: Include tree-pretty-print.h and
19991         gimple-pretty-print.h.
19992         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
19993         gimple-pretty-print.h.
19994         * tree-vect-loop.c: Include tree-pretty-print.h and
19995         gimple-pretty-print.h.
19996         * tree-vect-patterns.c: Include gimple-pretty-print.h.
19997         * tree-vect-slp.c: Include tree-pretty-print.h and
19998         gimple-pretty-print.h.
19999         * tree-vect-stmts.c: Include tree-pretty-print.h and
20000         gimple-pretty-print.h.
20001         * tree-vectorizer.c: Include tree-pretty-print.h.
20002         * tree-vrp.c: Include tree-pretty-print.h and
20003         gimple-pretty-print.h.
20004         * value-prof.c: Include tree-pretty-print.h and
20005         gimple-pretty-print.h.
20006         * var-tracking.c: Include tree-pretty-print.h.
20007         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
20008         (tree-diagnostic.o): New dependencies.
20009         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
20010         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
20011         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
20012         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
20013         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
20014         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
20015         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
20016         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
20017         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
20018         tree-ssa-address.o, tree-ssa-loop-niter.o,
20019         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
20020         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
20021         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
20022         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
20023         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
20024         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
20025         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
20026         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
20027         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
20028         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
20029         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
20030         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
20031         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
20032         tree-switch-conversion.o, var-tracking.o, value-prof.o,
20033         cfgexpand.o, pretty-print.o): Update dependencies.
20034
20035 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
20036
20037         * tree-ssa-structalias.c: Remove tm_p.h from include.
20038
20039 2010-05-21  Jeff Law  <law@redhat.com>
20040
20041         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
20042
20043 2010-05-21  Jason Merrill  <jason@redhat.com>
20044
20045         * tree-eh.c (cleanup_is_dead_in): New.
20046         (lower_try_finally): Don't generate a dead cleanup region.
20047         (lower_cleanup): Likewise.
20048
20049 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
20050
20051         PR debug/44223
20052         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
20053         unchain each use from the cyclic next_regno_use chain first.
20054
20055 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
20056
20057         * real: Do not include gmp.h, mpfr.h, and mpc.h.
20058         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
20059         (real_value_negate, real_value_abs): New prototypes.
20060         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
20061         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
20062         new include file for interface between MPFR and REAL_VALUE_TYPE.
20063         * real.c: Include realmpfr.h.
20064         (real_arithmetic2): Remove legacy function.
20065         (real_value_negate): New.
20066         (real_value_abs): New.
20067         (mfpr_from_real, real_from_mpfr): Move from here...
20068         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
20069         * builtins.c: Include realmpfr.h.
20070         * fold-const.c: Include realmpfr.h.
20071         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
20072         (fold_negate_const): Likewise.
20073         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
20074         * toplev.c: Include realmpfr.h.
20075         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
20076         and real_value_negate.
20077         * fixed-value.c (check_real_for_fixed_mode): Likewise.
20078         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
20079         (vfp3_const_double_index): Likewise.
20080         (arm_print_operand): Likewise.
20081         * Makefile.in: Update dependencies.
20082
20083 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20084
20085         * config/s390/s390.c (override_options): Increase the default
20086         of max-completely-peel-times.
20087
20088 2010-05-21  Julian Brown  <julian@codesourcery.com>
20089             Mark Mitchell  <mark@codesourcery.com>
20090
20091         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
20092         sibling calls for Thumb-1.
20093         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
20094         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
20095         Thumb-2.
20096         (*call_insn, *call_value_insn): Don't use for Thumb-2.
20097         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
20098         for Thumb-2.
20099         (return): New expander.
20100         (*arm_return): New name for ARM return insn.
20101         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
20102
20103 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
20104
20105         * config.gcc (sparc64-*-rtems*): New target.
20106
20107 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
20108
20109         * tree.c (build_function_decl_skip_args): Fix grammar.
20110         (build_function_type_list_1): Fix typos, adjust formatting.
20111
20112 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
20113
20114         * tree.h: Include real.h and fixed-value.h as basic datatypes.
20115         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
20116         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
20117         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
20118         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
20119         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
20120         tree-pretty-print.c, tree-loop-distribution.c,
20121         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
20122         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
20123         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
20124         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
20125         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
20126         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
20127         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
20128         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
20129         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
20130         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
20131         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
20132         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
20133         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
20134         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
20135         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
20136         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
20137         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
20138         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
20139         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
20140         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
20141         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
20142         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
20143         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
20144         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
20145         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
20146         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
20147         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
20148         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
20149         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
20150         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
20151         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
20152         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
20153         config/score/score7.c, config/score/score.c, config/arm/arm.c,
20154         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
20155         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
20156         config/bfin/bfin.c: Clean up redundant includes.
20157         * Makefile.in: Update accordingly.
20158
20159 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
20160
20161         PR middle-end/44204
20162         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
20163         statement has no arguments.
20164
20165 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
20166
20167         PR/44139
20168         * varasm.c (emutls_decl): Merge attributes to new decl.
20169
20170 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
20171
20172         PR middle-end/44101
20173         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
20174         around the uniquized constructor if its type requires a conversion.
20175
20176 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
20177
20178         PR debug/44205
20179         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
20180         at -O0 goto_locus of any of the incoming edges differs from
20181         goto_locus of outgoing edge, or gimple_location of any of the
20182         labels differs.
20183
20184 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
20185
20186         * ira.c (ira_non_ordered_class_hard_regs): Define.
20187         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
20188         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
20189         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
20190         cost of unaligned hard regs when allocating multi-reg pseudos.
20191
20192 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
20193
20194         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
20195         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
20196         for TARGET_NO_FLOAT.
20197         * config/mips/mips.c (mips_file_start): Expand conditional expression
20198         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
20199         (mips_override_options): Move -mno-float override -msoft-float and
20200         -mhard-float.
20201         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
20202         Condition(TARGET_SUPPORTS_NO_FLOAT).
20203         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
20204         __mips_no_float here.
20205         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
20206         (TARGET_SUPPORTS_NO_FLOAT): Define.
20207         * config/mips/sdemtk.opt: Delete.
20208
20209 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
20210
20211         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
20212
20213 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
20214
20215         PR target/43733
20216         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
20217         * configure: Regenerate.
20218         * config.in: Regenerate.
20219         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
20220         instead of sahf only for 64bit targets.
20221
20222 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
20223
20224         PR debug/44178
20225         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
20226         setup_ref_regs for DEBUG_INSNs.
20227
20228 2010-05-20  Jan Hubicka  <jh@suse.cz>
20229
20230         PR middle-end/44197
20231         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
20232
20233 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
20234
20235         PR bootstrap/43870
20236         * df-scan.c (df_ref_compare): Stabilize sort.
20237
20238 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
20239
20240         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
20241         argument.  Don't use DW_OP_piece if offset is non-zero,
20242         put offset into second DW_OP_bit_piece argument.
20243         (dw_sra_loc_expr): Adjust callers.  For memory expressions
20244         compute offset.
20245
20246 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
20247
20248         PR target/44202
20249         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
20250         settings for 16-bit-constant "addo" alternative.
20251
20252 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
20253
20254         * config/mips/mips-dsp.md (add<DSPV:mode>3,
20255         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
20256
20257         PR target/43764
20258         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
20259         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
20260         Use it.
20261
20262 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
20263
20264         * diagnostic.c (FLOAT, FFS): Don't undefine.
20265         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
20266         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
20267         include ordering.
20268
20269 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
20270
20271         * combine.c (propagate_for_debug): Call make_compound_operation
20272         on the source value.
20273         (try_combine): When implementing a split chosen by find_split_point,
20274         either copy i2src or set it to null.  Assert that i2src is not null
20275         before substituting into CALL_INSN_FUNCTION_USAGE.
20276
20277 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
20278
20279         * double-int.h (double_int_ior): New function.
20280         * tree.h (build_int_cst_wide_type): Remove.
20281         * tree.c (build_int_cst_wide_type): Remove.
20282         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
20283         of build_int_cst_wide_type.
20284         * stor-layout.c (set_sizetype): (Ditto.).
20285         * dojump.c (do_jump): Use build_int_cstu instead of
20286         build_int_cst_wide_type.
20287
20288 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
20289
20290         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
20291         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
20292         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
20293         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
20294         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
20295         propagate the 'data' argument to copy_tree_r.
20296         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
20297         Propagate 'data' argument to walk_tree.
20298         (copy_if_shared): New function.
20299         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
20300         (unmark_visited): New function.
20301         (unshare_body): Call copy_if_shared instead of doing it manually.
20302         (unvisit_body): Call unmark_visited instead of doing it manually.
20303
20304 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
20305
20306         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
20307         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
20308         * hooks.c: Likewise.
20309         * target-def.h (TARGET_FOLD_BUILTIN): Define to
20310         hook_tree_tree_int_treep_bool_null.
20311         * target.h (struct gcc_target): Update signature of fold_builtin
20312         field.
20313         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
20314         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
20315         instead of the call expression.
20316         (fold_builtin_call_array): Pass n and argarray directly.
20317         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
20318         consing a list.
20319         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
20320         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
20321         `i' and use it in place of `arity'.
20322         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
20323         Dereference `args' directly.
20324         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
20325
20326 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20327
20328         * doc/sourcebuild.texi (Effective-Target Keywords): Document
20329         3dnow, sse3, sse2.
20330         (Directives): Document optional dg-require-effective-target
20331         selector.
20332
20333 2010-05-19  Richard Guenther  <rguenther@suse.de>
20334
20335         PR lto/44196
20336         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
20337
20338 2010-05-19  Richard Guenther  <rguenther@suse.de>
20339
20340         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
20341         * common.opt (fwhopr=): New.
20342         * opts.c (common_handle_option): Handle OPT_fwhopr.
20343         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
20344         * collect2.c (main): Match -fwhopr*.
20345         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
20346         Execute ltrans stage in parallel when jobs is bigger than 1.
20347
20348 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20349
20350         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
20351         pentiumpro on Solaris 8/x86 with Sun as.
20352         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
20353         hidden alias bug.
20354         (gcc_cv_as_ix86_quad): Check for .quad directive.
20355         * configure: Regenerate.
20356         * config.in: Regenerate.
20357         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
20358
20359 2010-05-19  Martin Jambor  <mjambor@suse.cz>
20360
20361         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
20362         also for indirect edges.  Actual printing moved...
20363         (ipa_print_node_jump_functions_for_edge): ...here.
20364         (ipa_compute_jump_functions): Renamed to
20365         ipa_compute_jump_functions_for_edge and made static.
20366         (ipa_compute_jump_functions): New function.
20367         (make_edge_direct_to_target): Check if the number of arguments on
20368         the newly direct edge is the same as the number of parametrs of
20369         the callee.
20370         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
20371         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
20372         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
20373         analysis functions unconditionally, call the new
20374         ipa_analyze_params_uses on the node instead of every edge.
20375
20376 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
20377
20378         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
20379         to tree.
20380         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
20381         also checks for a constant int vs.  non-constant but
20382         loop-invariant steps.
20383         (find_or_create_group): Change the sort algorithm to only consider
20384         steps that are constant ints.
20385         (idx_analyze_ref): Adopt code to handle a tree instead of a
20386         HOST_WIDE_INT for step.
20387         (gather_memory_references_ref): Handle tree instead of int and be
20388         prepared to see a NULL_TREE.
20389         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
20390         prefetches if the step cannot be calculated at compile time.
20391         (issue_prefetch_ref): Issue prefetches for non-constant but
20392         loop-invariant steps.
20393
20394 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
20395
20396         Revert:
20397         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
20398
20399         * tree.h (build_call_list): Remove.
20400         * tree.c (build_call_list): Remove.
20401
20402 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
20403
20404         * tree.h (build_call_list): Remove.
20405         * tree.c (build_call_list): Remove.
20406
20407 2010-05-18  Jan Hubicka  <jh@suse.cz>
20408
20409         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
20410
20411 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
20412
20413         PR rtl-optimization/43332
20414         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
20415
20416 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
20417
20418         * tree.h (build_int_cstu): Implement as static inline.
20419         * tree.c (build_int_cstu): Remove function.
20420         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
20421         sign extended.
20422
20423 2010-05-18  Richard Guenther  <rguenther@suse.de>
20424
20425         PR lto/44143
20426         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
20427         (debug): Initialize from -save-temps.
20428         (collect_execute): Print command-line when verbose.
20429         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
20430         for ltrans invocation.  Produce -dumpbase flag again.
20431         (process_args): Remove.
20432         (main): Simplify.
20433         * collect2.c (maybe_run_lto_and_relink): Only pass object
20434         files to lto-wrapper.
20435         * gcc.c (LINK_COMMAND_SPEC): Likewise.
20436
20437 2010-05-18  Jan Hubicka  <jh@suse.cz>
20438
20439         * opts.c (decode_options): Do not disable whopr at ipa_cp.
20440         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
20441
20442 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
20443
20444         PR lto/44184
20445         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
20446         in a GIMPLE_ASM.
20447         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
20448         in a GIMPLE_ASM.
20449
20450 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
20451
20452         PR debug/41371
20453         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
20454         rtx_equal_p inline.
20455
20456 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
20457
20458         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
20459         lto-macho as lto_binary_reader.
20460
20461         * darwin.c (darwin_asm_named_section): Do not add assembler comment
20462         after .section directive; just print it before the directive instead.
20463
20464 2010-05-17  Jan Hubicka  <jh@suse.cz>
20465
20466         * cgraph.c (cgraph_create_virtual_clone): Only check
20467         versionable_function_p when not in wpa and checking is enabled.
20468         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
20469         there are no more functions to materialize.
20470
20471 2010-05-17  Jan Hubicka  <jh@suse.cz>
20472
20473         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
20474         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
20475         New functions.
20476         (output_cgraph): Call output_cgraph_opt_summary.
20477         (input_cgrpah): Call input_cgraph_opt_summary.
20478         (output_cgraph_opt_summary_p, output_node_opt_summary,
20479         input_node_opt_summary, input_cgraph_opt_section): New functions.
20480         * lto-section-in.c (lto_section_name): Add cgraphopt.
20481         * tree-inline.c (tree_function_versioning): Handle parm_num.
20482         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
20483         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
20484
20485 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
20486
20487         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
20488         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
20489         the insn to prefetch ratio heuristic to loops with known trip count.
20490
20491 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
20492
20493         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
20494         (schedule_prefetches): Do not generate a prefetch if the unroll factor
20495         is far from what is required by the prefetch.
20496
20497 2010-05-17  Jan Hubicka  <jh@suse.cz>
20498
20499         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
20500         (ipcp_estimate_growth): Likewise.
20501         (ipcp_const_param_count): Likewise.
20502         (ipcp_insert_stage): Likewise.
20503         * ipa-prop.c (visit_load_for_mod_analysis): New function.
20504         (visit_store_addr_for_mod_analysis): Set used flag.
20505         (ipa_detect_param_modifications): Set used flag for SSE params;
20506         update use of walk_stmt_load_store_addr_ops.
20507         (ipa_print_node_params): Print used flag.
20508         (ipa_write_node_info): Stream used flag.
20509         (ipa_read_node_info): Likewise.
20510         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
20511         (ipa_is_param_used): New function.
20512         (lto_ipa_fixup_call_notes): Remove unused declaration.
20513
20514 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20515
20516         PR target/44074
20517         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
20518         * configure: Regenerate.
20519         * config.in: Regenerate.
20520         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
20521         !HAVE_AS_IX86_REP_LOCK_PREFIX.
20522         Don't emit whitespace.
20523         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
20524         (*rep_movsi): Likewise.
20525         (*rep_movsi_rex64): Likewise.
20526         (*rep_movqi): Likewise.
20527         (*rep_movqi_rex64): Likewise.
20528         (*rep_stosdi_rex64): Likewise.
20529         (*rep_stossi): Likewise.
20530         (*rep_stossi_rex64): Likewise.
20531         (*rep_stosqi): Likewise.
20532         (*rep_stosqi_rex64): Likewise.
20533         (*cmpstrnqi_nz_1): Use {%;} after repz.
20534         (*cmpstrnqi_nz_rex_1): Likewise.
20535         (*cmpstrnqi_1): Likewise.
20536         (*cmpstrnqi_rex_1): Likewise.
20537         (*strlenqi_1): Use {%;} after repnz.
20538         (*strlenqi_rex_1): Likewise.
20539         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
20540         (*sync_compare_and_swap<mode>): Likewise.
20541         (sync_double_compare_and_swap<mode>): Likewise.
20542         (*sync_double_compare_and_swapdi_pic): Likewise.
20543         (sync_old_add<mode>): Likewise.
20544         (sync_add<mode>): Likewise.
20545         (sync_sub<mode>): Likewise.
20546         (sync_<code><mode>): Likewise.
20547
20548 2010-05-17  Martin Jambor  <mjambor@suse.cz>
20549
20550         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
20551         otr_token and polymorphic.
20552         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
20553         (cgraph_clone_edge): Copy the above fields.
20554         * tree.c (get_binfo_at_offset): New function.
20555         * tree.h (get_binfo_at_offset): Declare.
20556         * ipa-prop.h (enum jump_func_type): Added known_type jump function
20557         type, reordered items, updated comments.
20558         (union jump_func_value): Added base_type field, reordered fields.
20559         (enum ipa_lattice_type): Moved down in the file.
20560         (struct ipa_param_descriptor): New field polymorphic.
20561         (ipa_is_param_polymorphic): New function.
20562         * ipa-prop.c: Include gimple.h and gimple-fold.h.
20563         (ipa_print_node_jump_functions): Print known type jump functions.
20564         (compute_complex_pass_through): Renamed to...
20565         (compute_complex_assign_jump_func): this.
20566         (compute_complex_ancestor_jump_func): New function.
20567         (compute_known_type_jump_func): Likewise.
20568         (compute_scalar_jump_functions): Create known type and complex ancestor
20569         jump functions.
20570         (ipa_note_param_call): New parameter polymorphic, set the corresponding
20571         flag in the call note accordingly.
20572         (ipa_analyze_call_uses): Renamed to...
20573         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
20574         variable var only in the block where it is used.
20575         (ipa_analyze_virtual_call_uses): New function.
20576         (ipa_analyze_call_uses): Likewise.
20577         (combine_known_type_and_ancestor_jfs): Likewise.
20578         (update_jump_functions_after_inlining): Implemented handling of a
20579         number of new jump function types combination.
20580         (print_edge_addition_message): Removed.
20581         (make_edge_direct_to_target): New function.
20582         (try_make_edge_direct_simple_call): Likewise.
20583         (try_make_edge_direct_virtual_call): Likewise.
20584         (update_call_notes_after_inlining): Renamed to...
20585         (update_indirect_edges_after_inlining): this.  Moved edge creation for
20586         indirect calls to try_make_edge_direct_simple_call, also calls
20587         try_make_edge_direct_virtual_call for virtual calls.
20588         (ipa_print_node_params): Changed the header message.
20589         (ipa_write_jump_function): Stream also known type jump functions.
20590         (ipa_read_jump_function): Likewise.
20591         (ipa_write_indirect_edge_info): Stream new fields in
20592         cgraph_indirect_call_info.
20593         (ipa_read_indirect_edge_info): Likewise.
20594         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
20595         GIMPLE_FOLD_H.
20596
20597 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20598
20599         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
20600
20601 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
20602
20603         * tree.h (CALL_EXPR_ARGS): Delete.
20604         (call_expr_arglist): Delete.
20605         * tree.c (call_expr_arglist): Delete.
20606         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
20607         targetm.fold_builtin.
20608         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
20609         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
20610         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
20611         arglist parameter.  Use CALL_EXPR_ARG.
20612         (picochip_expand_builtin_3op): Likewise.
20613         (picochip_expand_builtin_2opvoid): Likewise.
20614         (picochip_expand_array_get): Likewise.
20615         (picochip_expand_array_put): Likewise.
20616         (picochip_expand_array_testport): Likewise.
20617         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
20618         rather than arglist.
20619         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
20620         CALL_EXPR_ARGS.
20621         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
20622         than TREE_VALUE and TREE_CHAIN.
20623         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
20624         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
20625         the arglist.
20626
20627 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
20628
20629         PR bootstrap/42347
20630         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
20631         to have no fallthru edge.
20632
20633         PR middle-end/44102
20634         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
20635         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
20636         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
20637         add BARRIER after previous bb if needed.
20638
20639 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
20640
20641         * tree.c (build_function_type_list_1): Remove bogus assert condition.
20642
20643 2010-05-17  Alan Modra  <amodra@gmail.com>
20644
20645         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
20646         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
20647         with copy_reg rtx param.
20648         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
20649         Correct cases where code for ABI_V4 did not initialise the reg
20650         used to access frame.  Also leave frame_reg_rtx as sp for large
20651         frames that save no regs.
20652
20653 2010-05-17  Martin Jambor  <mjambor@suse.cz>
20654
20655         PR middle-end/44133
20656         * tree-sra.c (create_access_replacement): New parameter rename, mark
20657         the replaement for renaming only when it is true.
20658         (get_access_replacement): Pass true in the rename parameter of
20659         create_access_replacement.
20660         (get_unrenamed_access_replacement): New function.
20661         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
20662         replacement declaration from it.
20663
20664 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
20665
20666         * function.c (try_fit_stack_local, add_frame_space): New static
20667         functions.
20668         (assign_stack_local_1): Use them.  Look for opportunities to use
20669         space previously wasted on alignment.
20670         * function.h (struct frame_space): New.
20671         (struct rtl_data): Add FRAME_SPACE_LIST member.
20672         * reload1.c (something_was_spilled): New static variable.
20673         (alter_reg): Set it.
20674         (reload): Test it in addition to testing if the frame size changed.
20675
20676 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
20677
20678         * config/s390/s390.c: Define sane prefetch settings and activate
20679         flag_prefetch_loop_arrays on -O3.
20680         * config/s390/s390.h: Declare that read can use write prefetch.
20681
20682 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
20683
20684         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
20685         build.
20686
20687 2010-05-16  Jan Hubicka  <jh@suse.cz>
20688
20689         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
20690         function body; do not check stdarg field of struct function.
20691
20692 2010-05-16  Jan Hubicka  <jh@suse.cz>
20693
20694         * cgraph.c (dump_cgraph_node): Dump versionable flag.
20695         * cgraph.h (cgraph_local_info): Add versionable flag.
20696         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
20697         (ipcp_versionable_function_p): Use it.
20698         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
20699         versionable flag.
20700
20701 2010-05-16  Jan Hubicka  <jh@suse.cz>
20702
20703         * cgraph.c (cgraph_clone_node): Take decl argument and insert
20704         clone into hash when it is different from orig.
20705         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
20706         * cgraph.h (cgraph_clone_node): Update prototype.
20707         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
20708         (lto_cgraph_encoder_delete): Delete body map.
20709         (lto_cgraph_encoder_size): Move to header.
20710         (lto_cgraph_encoder_encode_body_p,
20711         lto_set_cgraph_encoder_encode_body): New.
20712         (lto_output_node): Do not take written_decls argument; output clone_of
20713         pointer.
20714         (add_node_to): Add include_body_argument; call
20715         lto_set_cgraph_encoder_encode_body on master of the clone.
20716         (add_references): Update use of add_node_to.
20717         (compute_ltrans_boundary): Likewise.
20718         (output_cgraph): Do not create written_decls bitmap.
20719         (input_node): Take nodes argument; stream in clone_of correctly.
20720         (input_cgraph_1): Update use of input_node.
20721         * lto-streamer-out.c (lto_output): Use encoder info to decide
20722         what bodies to output.
20723         * ipa-inline.c (cgraph_clone_inlined_nodes,
20724         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
20725         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
20726         (lto_cgraph_encoder_size): Define here.
20727         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
20728         Declare.
20729
20730 2010-05-16  Richard Guenther  <rguenther@suse.de>
20731
20732         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
20733         -fipa-type-escape.
20734         * ipa-type-escape.c (gate_type_escape_vars): Run when
20735         -fipa-struct-reorg runs.
20736         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
20737         * common.opt (fipa-type-escape): Remove.
20738
20739 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20740
20741         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
20742         (decode_options): Likewise.
20743         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
20744
20745 2010-05-16  Jan Hubicka  <jh@suse.cz>
20746
20747         * ipa.c (function_and_variable_visibility): Also bring local all
20748         aliases.
20749
20750 2010-05-16  Richard Guenther  <rguenther@suse.de>
20751
20752         * alias.c (nonoverlapping_memrefs_p): Remove use of
20753         IPA type-escape information.
20754
20755 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
20756
20757         * c-common.c (c_common_reswords): Add _Static_assert for C.
20758         * c-parser.c (c_token_starts_declaration,
20759         c_parser_next_token_starts_declaration,
20760         c_parser_static_assert_declaration_no_semi,
20761         c_parser_static_assert_declaration): New.
20762         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
20763         Handle static assertions if static_assert_ok.
20764         (c_parser_external_declaration, c_parser_declaration_or_fndef,
20765         c_parser_compound_statement_nostart, c_parser_label,
20766         c_parser_for_statement, c_parser_objc_methodprotolist,
20767         c_parser_omp_for_loop): All callers of
20768         c_parser_declaration_or_fndef changed.
20769         (c_parser_struct_declaration): Handle static assertions.
20770         (c_parser_compound_statement_nostart): Use
20771         c_parser_next_token_starts_declaration and
20772         c_token_starts_declaration to detect start of declarations.
20773         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
20774         Likewise.
20775
20776 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
20777
20778         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20779         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20780         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20781         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20782         (mmix_function_outgoing_value): Rename to...
20783         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
20784         (mmix_function_value_regno_p): Make static.
20785         (mmix_libcall_value): New function.
20786         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
20787         mmix_function_value_regno_p): Remove declaration.
20788
20789 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
20790
20791         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
20792         BUILT_IN_ALLOCA if stack checking is enabled.
20793
20794 2010-05-16  Richard Guenther  <rguenther@suse.de>
20795
20796         * var-tracking.c (vars_copy_1): Inline ...
20797         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
20798         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
20799         (variable_merge_over_cur): Adjust.  Merge asserts.
20800         (variable_merge_over_src): Likewise.
20801         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
20802         (variable_post_merge_new_vals): Merge asserts.
20803         (variable_post_merge_perm_vals): Likewise.
20804         (find_mem_expr_in_1pdv): Likewise.
20805         (dataflow_set_different_value): Remove.
20806         (onepart_variable_different_p): Merge asserts.
20807         (variable_different_p): Likewise.
20808         (dataflow_set_different_1): Inline ...
20809         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
20810         (emit_notes_for_differences_1): Merge asserts.
20811
20812 2010-05-16  Richard Guenther  <rguenther@suse.de>
20813
20814         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
20815         * optabs.c (libfunc_decl_hash): Likewise.
20816         * varasm.c (emutls_decl): Likewise.
20817
20818 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
20819
20820         * c-decl.c: Don't include gimple.h.
20821         (merge_decls): Do not copy gimple_body.
20822
20823 2010-05-15  Jason Merrill  <jason@redhat.com>
20824
20825         * c.opt: Add -fnothrow-opt.
20826
20827 2010-05-15  Jan Hubicka  <jh@suse.cz>
20828
20829         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
20830         analyzed.
20831         * passes.c (ipa_write_summaries): Write all analyzed nodes.
20832
20833 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
20834
20835         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
20836         * Makefile.in: Add it.
20837         Fix all other Makefile dependencies for changes below.
20838         * tree.h: Include it instead of defining VEC primitives here.
20839         * gimple.h: Likewise.
20840         * rtl.h: Likewise.
20841         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
20842         * except.h: Include vecir.h, break dependence on tree.h.
20843
20844         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
20845         Move from here...
20846         * tree-iterator.c: ...to here.
20847         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
20848
20849         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
20850         tm_p.h.
20851         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
20852         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
20853         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
20854         tree-mudflap.h, and target.h.
20855         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
20856         predict.h, tree-inline.h, gimple.h, and langhooks.h.
20857         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
20858         Add FIXME for why gimple.h is still included (should be unnecessary
20859         since GCC 4.5 gimplification unit-at-a-time).
20860         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
20861         * c-pragma.c: Add FIXME for why function.h needs to be included just
20862         for cfun, at front-end level.
20863         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
20864         Do not include ggc.h, but include vecprim.h for VEC(char).
20865         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
20866         Explain why target.h is included.
20867         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
20868         Explain why gimple.h is included.
20869         * c-ppoutput.c: Do not include tm.h.
20870         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
20871         * c-parses.c: Explain why rtl.h is included, and that this (and only
20872         this) is also why tm.h must be included.
20873         Do not include except.h.
20874         * c-lang.c: Do not include ggc.h.
20875
20876 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
20877
20878         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
20879
20880 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
20881
20882         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
20883         unions by default if those structs and unions have no tags.  Do
20884         not condition anonymous struct and unions handling on flag_iso.
20885         Allow anonymous structs and unions for C1X.
20886         (finish_struct): Do not diagnose lack of named fields when
20887         anonymous structs and unions present for C1X.  Accept flexible
20888         array members in structure with anonymous structs or unions but no
20889         directly named fields.
20890         * doc/extend.texi (Unnamed Fields): Update.
20891
20892 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
20893
20894         * gimple.h (compare_field_offset): Rename into...
20895         (gimple_compare_field_offset): ...this.
20896         * gimple.c (compare_field_offset): Rename into...
20897         (gimple_compare_field_offset): ...this.  Compare the full access if
20898         the offset is self-referential.
20899         (gimple_types_compatible_p): Adjust for above renaming.
20900         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
20901         DECL_NONADDRESSABLE_P flag of fields before merging them.
20902
20903 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
20904
20905         * tree.h (ctor_to_list): Delete.
20906         * tree.c (ctor_to_list): Delete.
20907
20908 2010-05-15  Jan Hubicka  <jh@suse.cz>
20909
20910         * ipa-reference.c: Include toplev.h
20911         (is_proper_for_analysis): Only add to all_module_statics
20912         if it is allocated.
20913         (write_node_summary_p, stream_out_bitmap,
20914         ipa_reference_write_optimization_summary,
20915         ipa_reference_read_optimization_summary): New.
20916         (struct ipa_opt_pass_d pass_ipa_reference): Add
20917         optimization summary streaming.
20918         * lto-cgraph.c (referenced_from_this_partition_p,
20919         reachable_from_this_partition_p): New functions.
20920         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20921         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
20922         * opts.c (decode_options): Enable ipa_reference.
20923         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
20924         * lto-streamer.h (referenced_from_this_partition_p,
20925         reachable_from_this_partition_p): Declare.
20926
20927 2010-05-15  Richard Guenther  <rguenther@suse.de>
20928
20929         PR tree-optimization/44038
20930         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
20931         taking the address of a V_C_E of a constant.
20932
20933 2010-05-14  Jan Hubicka  <jh@suse.cz>
20934
20935         * tree.h (memory_identifier_string): Remove.
20936         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
20937         (ipa_reference_global_vars_info_d): Remove statics_not_read and
20938         statics_not_written.
20939         (ipa_reference_optimization_summary_d): New structure.
20940         (ipa_reference_optimization_summary_t): New type and vector.
20941         (ipa_reference_vars_info_d): Embedd structures instead of using
20942         pointers.
20943         (reference_vars_to_consider): Remove out of GGC space.
20944         (module_statics_escape): Remove.
20945         (global_info_obstack): Rename to ...
20946         (optimization_summary_obstack): ... this one.
20947         (initialization_status_t): Remove.
20948         (memory_identifier_string): Remove.
20949         (get_reference_vars_info): Fix indenting.
20950         (set_reference_vars_info): Likewise.
20951         (get_reference_optimization_summary): New.
20952         (set_reference_optimization_summary): New.
20953         (get_global_reference_vars_info): Remove.
20954         (ipa_reference_get_read_global): Remove.
20955         (ipa_reference_get_written_global): Remove.
20956         (ipa_reference_get_not_read_global): Update.
20957         (ipa_reference_get_not_written_global): Update.
20958         (is_proper_for_analysis): Outlaw addressable.
20959         (propagate_bits): Update for new datastructures.
20960         (analyze_variable): Remove.
20961         (init_function_info): Update for new datastructures.
20962         (clean_function_local_data): Remove.
20963         (clean_function): Remove.
20964         (copy_global_bitmap): Use optimizations_summary_obstack.
20965         (duplicate_node_data): Duplicate optimization summary only.
20966         (remove_node_data): Remove optimization summary only.
20967         (generate_summary): Do not analyze variables; do not compute
20968         module_statics_escape; do not prune solutions by it.
20969         (read_write_all_from_decl): Fix typos in comments.
20970         (propagate): Doscover readonly and nonaddressable first;
20971         update for new datastructures; share global bitmaps.
20972         * ipa-reference.h (ipa_reference_get_read_global,
20973         ipa_reference_get_written_global): Remove.
20974         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
20975         * Makefile.in: Remove ipa-refereference from GT files.
20976
20977 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20978
20979         PR debug/44112
20980         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
20981         for all SYMBOL_REF_DECLs.
20982
20983 2010-05-14  Jan Hubicka  <jh@suse.cz>
20984
20985         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
20986         (varpool_all_refs_explicit_p): New inline function.
20987         * ipa-reference.c: Update comment.
20988         (module_statics_written): Remove.
20989         (get_static_decl): Remove.
20990         (ipa_init): Do not initialize module_statics_written.
20991         (analyze_function): Likewise.
20992         (generate_summary): Likewise; do not compute module_statics_readonly
20993         and do not update variable flags.
20994         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
20995         * ipa.c: Inlucde flags.h
20996         (cgraph_local_node_p): New.
20997         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
20998         promote functions to local.
20999         (ipa_discover_readonly_nonaddressable_vars): New function.
21000         (function_and_variable_visibility): Use cgraph_local_node_p.
21001         * varpool.c (varpool_finalize_decl): Set force_output for
21002         DECL_PRESERVE_P vars.
21003
21004 2010-05-14  Jan Hubicka  <jh@suse.cz>
21005
21006         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
21007
21008 2010-05-14  Richard Guenther  <rguenther@suse.de>
21009
21010         PR tree-optimization/44119
21011         * tree-ssa-pre.c (eliminate): Properly mark replacement of
21012         a PHI node necessary.
21013
21014 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
21015
21016         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
21017
21018 2010-05-14  Jason Merrill  <jason@redhat.com>
21019
21020         PR c++/44127
21021         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
21022         (gimple_call_set_nothrow): New.
21023         * gimple.c (gimple_build_call_from_tree): Call it.
21024         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
21025
21026         PR c++/44127
21027         * gimplify.c (gimplify_seq_add_stmt): No longer static.
21028         * gimple.h: Declare it.
21029         * gimple.c (gimple_build_eh_filter): No ops.
21030
21031 2010-05-14  Jan Hubicka  <jh@suse.cz>
21032
21033         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
21034         nodes already in queue.
21035         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
21036         re-enqueueing node.
21037
21038 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
21039
21040         PR debug/44136
21041         * cfgexpand.c (expand_debug_expr): If non-memory op0
21042         has BLKmode, return NULL.
21043
21044 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
21045
21046         * config.gcc: Add support for --with-cpu option for bdver1.
21047         * config/i386/i386.h (TARGET_BDVER1): New macro.
21048         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
21049         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
21050         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
21051         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
21052         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
21053         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
21054         (processor_type): Add PROCESSOR_BDVER1.
21055         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
21056         processor_type in config/i386/i386.h.
21057         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
21058         movaps <reg, reg> instead of movapd <reg, reg> when replacing
21059         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
21060         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
21061         to emit packed xor instead of packed double/packed integer
21062         xor for SSE and AVX when moving a zero value.
21063         * config/i386/sse.md: Add check for
21064         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
21065         movapd/movdqa for SSE and AVX.
21066         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
21067         single logical operations i.e and, or and xor instead of packed double
21068         logical operations for SSE and AVX.
21069         * config/i386/i386-c.c (ix86_target_macros_internal):
21070         Add PROCESSOR_BDVER1.
21071         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
21072         (has_fma4, has_xop): New.
21073         * config/i386/i386.c (bdver1_cost): New variable.
21074         (m_BDVER1): New macro.
21075         (m_AMD_MULTIPLE): Add m_BDVER1.
21076         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
21077         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
21078         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
21079         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
21080         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
21081         x86_tune_sse_partial_reg_dependency,
21082         x86_tune_sse_unaligned_load_optimal,
21083         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
21084         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
21085         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
21086         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
21087         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
21088         Enable/disable for bdver1.
21089         (processor_target_table): Add bdver1_cost.
21090         (cpu_names): Add bdver1.
21091         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
21092          processor_alias_table.
21093         (ix86_expand_vector_move_misalign): Change.
21094         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
21095         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
21096         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
21097         of movupd/movdqu for SSE and AVX.
21098         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
21099         (ix86_tune_adjust_cost): Add code for bdver1.
21100         (standard_sse_constant_opcode): Add check for
21101         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
21102         of packed double xor for SSE and AVX.
21103
21104 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
21105
21106         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
21107         result to unsigned.
21108
21109 2010-05-14  Tristan Gingold  <gingold@adacore.com>
21110
21111         * toplev.c (default_debug_hooks): Remove this variable.
21112         (process_options): Remove assignments to default_debug_hooks.
21113
21114 2010-05-14  Martin Jambor  <mjambor@suse.cz>
21115
21116         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
21117         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
21118         * langhooks.h (struct lang_hooks_for_decls): Removed field
21119         fold_obj_type_ref.
21120         * tree.c (free_lang_data): Remove assignment to
21121         lang_hooks.fold_obj_type_ref.
21122         * tree.def (OBJ_TYPE_REF): Update comment.
21123
21124 2010-05-14  Richard Guenther  <rguenther@suse.de>
21125
21126         PR tree-optimization/44124
21127         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
21128
21129 2010-05-14  Alan Modra  <amodra@gmail.com>
21130
21131         PR target/44075
21132         * config/rs6000/rs6000.c (struct machine_function): Reorder
21133         fields for better packing.  Add lr_save_state.
21134         (rs6000_ra_ever_killed): Return lr_save_state if set.
21135         (rs6000_emit_eh_reg_restore): Set lr_save_state.
21136
21137 2010-05-13  Jan Hubicka  <jh@suse.cz>
21138
21139         * varpool.c (decide_is_variable_needed): Drop code checking
21140         TREE_SYMBOL_REFERENCED.
21141
21142 2010-05-13  Jan Hubicka  <jh@suse.cz>
21143
21144         * final.c (output_addr_const): Do not call mark_decl_referenced.
21145         * cgraphunit.c (process_function_and_variable_attributes): Use
21146         mark_needed_node dirrectly.
21147         (assemble_thunk): Do not call mark_decl_referenced.
21148
21149 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
21150
21151         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
21152
21153 2010-05-13  Jeff Law  <law@redhat.com>
21154
21155         * ira-conflicts.c (print_allocno_conflicts): New function broken out
21156         from...
21157         (print_conflicts): Call print_allocno_conflicts.
21158
21159 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
21160
21161         PR debug/44104
21162         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
21163         if it is NULL.
21164
21165 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
21166
21167         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
21168         t-mingw-w64 or t-mingw-w32 for multilib configuration.
21169         * config/i386/t-mingw-w32: New.
21170         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
21171
21172 2010-05-13  Martin Jambor  <mjambor@suse.cz>
21173
21174         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
21175         gimple-fold.c).
21176         * gimple-fold.c (get_base_binfo_for_type): New function.
21177         (gimple_get_relevant_ref_binfo): Likewise.
21178         (gimple_fold_obj_type_ref_known_binfo): Likewise.
21179         (gimple_fold_obj_type_ref): Likewise.
21180         (fold_gimple_call): Simplify condition for folding virtual calls
21181         and call gimple_fold_obj_type_ref.
21182         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
21183         (gimple_fold_obj_type_ref_known_binfo): Likewise.
21184
21185 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
21186
21187         * config/rs6000/rs6000-protos.h
21188         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
21189         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
21190         (rs6000_debug_mode_dependent_address)
21191         (rs6000_mode_dependent_address_ptr): Likewise.
21192
21193 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
21194
21195         PR debug/43983
21196         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
21197         by SRA.
21198         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
21199         * tree-sra.c (create_access_replacement): Call unshare_expr before
21200         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
21201         * dwarf2out.c: Include tree-flow.h.
21202         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
21203         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
21204         Handle DW_OP_bit_piece.
21205         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
21206         construct_piece_list, adjust_piece_list): New functions.
21207         (add_var_loc_to_decl): Handle SRA optimized variables.
21208         Adjust for var_loc_note to loc field renaming.
21209         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
21210         in VAR_LOCATION note.
21211         (new_loc_descr_op_bit_piece): New function.
21212         (dw_sra_loc_expr): New function.
21213         (dw_loc_list): Use it.  Don't handle the last range after the
21214         loop, handle it inside of the loop.  Adjust for var_loc_note
21215         to loc field renaming.
21216         (add_location_or_const_value_attribute): Only special case
21217         single entry loc lists if loc is NOTE_P.  Adjust for
21218         var_loc_note to loc field renaming.
21219         (dwarf2out_var_location): Don't set newloc->var_loc_note
21220         and newloc->next here.
21221
21222 2010-05-12  Jan Hubicka  <jh@suse.cz>
21223
21224         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
21225         flag.
21226         * cgraph.h (cgraph_only_called_directly_p,
21227         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
21228         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
21229         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
21230         (assemble
21231         * ipa.c (cgraph_remove_unreachable_nodes): Use
21232         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
21233         flags.
21234         * tree-inline.c (copy_bb): Check address_taken flag.
21235         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
21236         externally_visible flag.
21237
21238 2010-05-12  Jason Merrill  <jason@redhat.com>
21239
21240         PR bootstrap/44048
21241         PR target/44099
21242         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
21243         * sdbout.c (plain_type_1): Likewise.
21244         * dwarf2out.c (is_base_type): Likewise.
21245         (gen_type_die_with_usage): Likewise.  Generate
21246         DW_TAG_unspecified_type for any LANG_TYPE.
21247
21248 2010-05-12  Jan Hubicka  <jh@suse.cz>
21249
21250         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
21251         indrect edges too.
21252         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
21253         (cgraph_clone_edge): Update.
21254         (cgraph_node_remove_callees): Remove indirect calls too.
21255         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
21256         (cgraph_create_indirect_edge): Update prototype.
21257         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
21258         is_proper_for_analysis.
21259         (add_new_function, visited_nodes, function_insertion_hook_holder,
21260         get_local_reference_vars_info, mark_address_taken, mark_address,
21261         mark_load, mark_store, check_asm_memory_clobber, check_call,
21262         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
21263         (ipa_init): Do not initialize visited_nodes;
21264         function_insertion_hook_holder.
21265         (analyze_variable): Rewrite.
21266         (analyze_function): Rewrite.
21267         (copy_local_bitmap): Remove.
21268         (duplicate_node_dat): Do not duplicate local info.
21269         (generate_summary): Simplify to only walk cgraph.
21270         (write_node_summary_p, ipa_reference_write_summary,
21271         ipa_reference_read_summary): Remove.
21272         (propagate): Do not remove function insertion;
21273         generate summary.
21274         (pass_ipa_reference): NULLify summary handling fields.
21275         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
21276         (input_edge): Input ecf_flags.
21277         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
21278         (update_indirect_edges_after_inlining): Ignore edges with unknown
21279         param.
21280
21281 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
21282
21283         * implicit-zee.c: New file.
21284         * tree-pass.h (pass_implicit_zee): Declare.
21285         * passes.c (init_optimization_passes): Add zee pass.
21286         * common.opt (fzee): New flag.
21287         * timevar.def (TV_ZEE): Define.
21288         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
21289         and beyond.
21290         * Makefile.in (implicit-zee.o): Add new build file.
21291
21292 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
21293             Nathan Froyd  <froydnj@codesourcery.com>
21294
21295         * c-common.c (sync_resolve_params): Remove write-only variable.
21296
21297 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
21298
21299         * target.h (struct gcc_target): Add mode_dependent_address_p field.
21300         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
21301         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
21302         * targhooks.c (default_mode_dependent_address_p): New function.
21303         * targhooks.h (default_mode_dependent_address_p): Declare function.
21304         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
21305         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
21306         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
21307         target hook. Change return type to bool.
21308         * recog.h (mode_dependent_address_p): Change return type to bool.
21309
21310 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
21311             Nathan Froyd  <froydnj@codesourcery.com>
21312
21313         * tree-mudflap.c (build_function_type_0, build_function_type_1,
21314         build_function_type_2, build_function_type_3): Remove.
21315         (mudflap_init): Use build_function_type_list.
21316
21317 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
21318             Nathan Froyd  <froydnj@codesourcery.com>
21319
21320         * coverage.c (build_fn_info_value): Call build_constructor instead of
21321         build_constructor_from_list.
21322         (build_ctr_info_value): Likewise.
21323         (build_gcov_info): Likewise.
21324
21325 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
21326
21327         * tree.c (build_constructor): Compute TREE_CONSTANT for the
21328         resultant constructor.
21329         (build_constructor_single): Don't set TREE_CONSTANT.
21330         (build_constructor_from_list): Don't compute TREE_CONSTANT.
21331
21332 2010-05-12  Jan Hubicka  <jh@suse.cz>
21333
21334         * cgraph.h (struct varpool_node): Add aux.
21335         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
21336         * varpool.c (varpool_remove_node): Do not remove initializer.
21337         (varpool_reset_queue): Export.
21338         (varpool_finalize_decl): Volatile vars are forced to be output.
21339         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
21340         replaced decl.
21341         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
21342         process_references, varpool_can_remove_if_no_refs): New functions.
21343         (cgraph_remove_unreachable_nodes): Handle variables too.
21344
21345 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
21346
21347         PR target/44088
21348         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
21349
21350 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
21351
21352         PR middle-end/44085
21353         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
21354         change value of ORT_TASK.
21355         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
21356         (omp_notice_threadprivate_variable): New function.
21357         (omp_notice_variable): Call it for threadprivate variables.
21358         If enclosing ctx is a task, print enclosing task rather than
21359         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
21360         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
21361         if task has untied clause.
21362
21363         PR debug/42278
21364         * dwarf2out.c (base_type_die): Don't add name attribute here.
21365         (modified_type_die): Instead of sizetype use
21366         its underlying original type.  If a DW_TAG_base_type doesn't
21367         have name added, add __unknown__.
21368         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
21369         always call force_type_die instead.
21370
21371 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
21372
21373         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
21374         for __stack_chk_guard.
21375
21376 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
21377
21378         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
21379         don't call start_source_file debug hook here...
21380         (finish_options): ... but here, after outputting predefined and
21381         command line defines and undefs.
21382
21383         PR middle-end/44071
21384         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
21385         no fallthru edge.
21386         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
21387         optimizing away empty bb with no successors, move over its
21388         footer chain to fallthru predecessor.
21389         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
21390         (rtl_split_edge): For asm goto call patch_jump_insn even if
21391         splitting fallthru edge.
21392
21393         PR c++/44059
21394         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
21395         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
21396         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
21397         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
21398         on DW.ref.* decls.
21399
21400         PR c++/44062
21401         * c-parser.c (c_parser_expression): Mark LHS of a comma
21402         expression as read if it is a decl, handled component or
21403         COMPOUND_EXPR with that on the RHS.
21404         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
21405         if it is a decl or handled component.
21406
21407 2010-05-11  Jan Hubicka  <jh@suse.cz>
21408
21409         * lto-symtab.c (lto_symtab_free): New function.
21410         * lto-streamer.h (lto_symtab_free): Declare.
21411
21412 2010-05-11  Jan Hubicka  <jh@suse.cz>
21413
21414         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
21415         that if function is needed it is reachable.
21416         (lto_output_node): See if it the function is reachable or referenced.
21417         (output_cgraph): Update call of lto_output_node.
21418         * lto-streamer.h (reachable_from_other_partition_p): Declare.
21419
21420 2010-05-11  Jan Hubicka  <jh@suse.cz>
21421
21422         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
21423         Mark as used.
21424
21425 2010-05-11  Jan Hubicka  <jh@suse.cz>
21426
21427         PR tree-optimize/44063
21428         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
21429         queue.
21430         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
21431         limits.
21432         (estimate_function_body_sizes): Compute sizes even when disregarding.
21433
21434 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
21435
21436         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
21437
21438 2010-05-11  Jan Hubicka  <jh@suse.cz>
21439
21440         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
21441         into every boundary.
21442
21443 2010-05-11  Jan Hubicka  <jh@suse.cz>
21444
21445         * matrix-reorg.c (matrix_reorg): Rebuild edges.
21446
21447 2010-05-11  Jan Hubicka  <jh@suse.cz>
21448
21449         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
21450         lto_streamer_cache_delete): Put nodes into heap.
21451         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
21452         heap.
21453
21454 2010-05-11  Jan Hubicka  <jh@suse.cz>
21455
21456         * cgraphbuild.c (cgraph_rebuild_references): New.
21457         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
21458         out extern inlines.
21459         * cgraph.h (cgraph_rebuild_references): Declare.
21460         * tree-inline.c (tree_function_versioning): Use it.
21461         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
21462
21463 2010-05-11  Jan Hubicka  <jh@suse.cz>
21464
21465         * cgraph.c: Include ipa-utils.h
21466         (cgraph_create_virtual_clone): Update references.
21467         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
21468
21469 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
21470
21471         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
21472         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
21473         cache size.
21474
21475 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
21476
21477         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
21478
21479 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
21480
21481         * gcc.c (execute): For -### don't quote arguments that
21482         contain just alphanumerics and _/-. characters.
21483         * doc/invoke.texi: Document that change for -###.
21484
21485         PR debug/44023
21486         * df-problems.c (struct dead_debug): Add to_rescan field.
21487         (dead_debug_init): Clear to_rescan field.
21488         (dead_debug_finish): Rescan all debug insns in to_rescan
21489         bitmap and free the bitmap.
21490         (dead_debug_insert_before): Instead of rescanning debug insns
21491         immediately queue their rescanning until dead_debug_finish.
21492         (df_note_bb_compute): After dead_debug_add do continue instead
21493         of break.
21494
21495 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
21496
21497         PR debug/44028
21498         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
21499         clear also INSN_REG_USE_LIST.
21500
21501 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21502
21503         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
21504
21505 2010-05-10  Jan Hubicka  <jh@suse.cz>
21506
21507         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
21508         commited change.
21509
21510 2010-05-10  Jan Hubicka  <jh@suse.cz>
21511
21512         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
21513         Allocate encoders.
21514         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
21515         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
21516         (lto_streamer_cache_create): Init alloc pool.
21517         (lto_streamer_cache_delete): Free alloc pool.
21518         * lto-streamer.h: Include alloc pool.
21519         (lto_streamer_cache_d): Use alloc pool.
21520         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
21521
21522 2010-05-10  Jan Hubicka  <jh@suse.cz>
21523
21524         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
21525         * cgraphbuild.c: Include except.h
21526         (record_type_list, record_eh_tables): New function.
21527         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
21528
21529 2010-05-10  Jan Hubicka  <jh@suse.cz>
21530
21531         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
21532         __frame_dummy_init_array_entry, force_to_data): Attribute as used
21533         rather than unused.
21534
21535 2010-05-10  Michael Matz  <matz@suse.de>
21536
21537         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
21538         (can_reassociate_p): Use FLOAT_TYPE_P.
21539         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
21540         (vect_force_simple_reduction): ... this.
21541         * tree-parloops.c (gather_scalar_reductions): Use
21542         vect_force_simple_reduction.
21543         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
21544         vect_is_simple_reduction, add modify argument, if true rewrite
21545         "a-b" into "a+(-b)".
21546         (vect_is_simple_reduction, vect_force_simple_reduction): New
21547         functions.
21548         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
21549
21550 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21551             Vladimir Makarov  <vmakarov@redhat.com>
21552
21553         PR rtl-optimization/44012
21554         * ira-build.c (remove_unnecessary_allocnos): Nullify
21555         regno_allocno_map of the removed allocno.
21556
21557 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21558
21559         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
21560         to /dev/null.
21561         * configure: Regenerate.
21562
21563 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21564
21565         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
21566         unused.
21567         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
21568         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
21569         support in Sun ld.
21570         * configure: Regenerate.
21571
21572 2010-05-10  Richard Guenther  <rguenther@suse.de>
21573
21574         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
21575         marked if the entry identifier is marked.
21576
21577 2010-05-10  Richard Guenther  <rguenther@suse.de>
21578
21579         * c-common.c (struct c_common_attributes): Add fnspec attribute.
21580         (handle_fnspec_attribute): New function.
21581         * gimple.h (gimple_call_return_flags): Declare.
21582         (gimple_call_arg_flags): Likewise.
21583         * gimple.c (gimple_call_arg_flags): New function.
21584         (gimple_call_return_flags): Likewise.
21585         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
21586         New argument flags.
21587         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
21588         return value flags.
21589         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
21590         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
21591         main work to ...
21592         (make_heapvar_for): ... this new function.
21593         (handle_rhs_call): Handle fnspec attribute argument specifiers.
21594         (handle_lhs_call): Likewise.
21595         (find_func_aliases): Adjust.
21596
21597 2010-05-10  Richard Guenther  <rguenther@suse.de>
21598
21599         PR tree-optimization/44050
21600         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
21601
21602 2010-05-10  Wei Guozhi  <carrot@google.com>
21603
21604         PR target/42879
21605         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
21606
21607 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
21608
21609         PR c/10676
21610         * c-typeck.c (lookup_field): Take a type directly.  Update
21611         recursive calls.
21612         (build_component_ref): Update call to lookup_field.
21613         (set_init_label): Use lookup_field to find initialized field.
21614         Handle returned list of fields like a sequence of designators.
21615
21616 2010-05-09  Richard Guenther  <rguenther@suse.de>
21617
21618         PR middle-end/44024
21619         * fold-const.c (tree_single_nonzero_warnv_p): Properly
21620         handle &FUNCTION_DECL.
21621
21622 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
21623
21624         PR c/4784
21625         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
21626         structures and unions recursively.
21627         (detect_field_duplicates): Move duplicate detection with a hash to
21628         detect_field_duplicates_hash.  Always use a hash if anonymous
21629         structures or unions are present.
21630         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
21631         give errors.
21632
21633 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21634
21635         PR target/44046
21636         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
21637         detect Atom, Core 2 and Core i7.
21638
21639 2010-05-09  Richard Guenther  <rguenther@suse.de>
21640
21641         * gcc.c (store_arg): Handle temporary file deletion for
21642         joined arguments.
21643
21644 2010-05-09  Richard Guenther  <rguenther@suse.de>
21645
21646         PR middle-end/44043
21647         * ipa-inline.c (estimate_function_body_sizes): Return after
21648         disregarding inline limits.
21649
21650 2010-05-09  Richard Guenther  <rguenther@suse.de>
21651
21652         * gcc.c (store_arg): Revert last change.
21653
21654 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
21655
21656         PR middle-end/28685
21657         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
21658         (optimize_ops_list): Call it.
21659
21660 2010-05-08  Richard Guenther  <rguenther@suse.de>
21661
21662         PR tree-optimization/44030
21663         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
21664         NECESSARY flag if we propagate from a inserted expression.
21665
21666 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
21667
21668         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
21669         domain types as equal if they are both PLACEHOLDER_EXPRs.
21670
21671 2010-05-08  Richard Guenther  <rguenther@suse.de>
21672
21673         * lto-wrapper.c (run_gcc): Remove linker output from
21674         command line for LTRANS invocation.
21675
21676 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
21677
21678         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
21679         lto-macho as lto_binary_reader.
21680         * target.h (struct gcc_target): New hooks lto_start and lto_end.
21681         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
21682         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
21683         in lto_start and lto_end calls.
21684         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
21685         magic numbers.
21686         (scan_prog_file): Update is_elf_or_coff call.
21687         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
21688
21689         * collect2.c (main): Fix enum comparison.
21690
21691         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
21692         Add prototypes.
21693         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
21694         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
21695         and TARGET_ASM_LTO_END.
21696         * darwin.c: Include obstack.h and lto-streamer.h.
21697         (lto_section_names_offset, lto_section_names_obstack,
21698         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
21699         global variables.
21700         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
21701         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
21702         to a temporary file.
21703         (darwin_asm_lto_end): New function.  Restore asm_out_file.
21704         (darwin_asm_named_section): For LTO sections, replace the name with
21705         the offset of the section name in a string table, and build this
21706         table.
21707         (darwin_file_start): Initialize global vars for LTO support.
21708         (darwin_file_end): If output to asm_out_file was redirected, append it
21709         to the proper asm_out_file here.  Add the section names section.
21710
21711 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
21712
21713         * c-pragma.c (pending_weak_d, pending_weak): New.
21714         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
21715         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
21716         handle_pragma_weak): Update the uses of pending_weaks.
21717
21718 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21719
21720         PR documentation/44016
21721         * doc/standards.texi (Standards): Link to unversioned
21722         cxx0x_status.html page.
21723
21724 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
21725
21726         PR target/43708
21727         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
21728         in addition to TREE_USED, to avoid "set but unused" warnings.
21729
21730 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
21731
21732         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
21733         (is_loop_prefetching_profitable): Do not insert prefetches
21734         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
21735         times the prefetch ahead distance.
21736
21737 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
21738
21739         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
21740         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
21741         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
21742         the unroll_factor.
21743
21744 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
21745
21746         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
21747         a diagnostic info when the insn-to-mem ratio is too small.
21748
21749 2010-05-07  Richard Guenther  <rguenther@suse.de>
21750
21751         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
21752         the linker plugin.
21753         (store_arg): Queue temp_filename for deletion instead of
21754         the whole argument.
21755
21756 2010-05-07  Richard Guenther  <rguenther@suse.de>
21757
21758         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
21759         (run_gcc): Handle LTRANS phase invocation.
21760         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
21761
21762 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
21763
21764         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
21765         this is also meaningful on PARM_DECLs and RESULT_DECLs.
21766
21767 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21768
21769         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
21770
21771 2010-05-07  Richard Guenther  <rguenther@suse.de>
21772
21773         PR tree-optimization/44020
21774         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
21775         code when PRE is not yet initialized.
21776
21777 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21778
21779         * config/mips/dbxmdebug.h: Remove.
21780         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
21781
21782 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
21783
21784         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
21785         with null pointer and also warn about ordered comparison of zero with
21786         pointer if -Wextra.
21787
21788 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
21789
21790         * graphite-blocking.c
21791         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
21792         * graphite-clast-to-gimple.c
21793         (clast_to_gcc_expression): Same.
21794         (precision_for_value): Same.
21795         (precision_for_interval): Same.
21796         (gcc_type_for_interval): Same.
21797         (graphite_create_new_guard): Same.
21798         (compute_bounds_for_level): Same.
21799         (graphite_create_new_loop_guard): Same.
21800         * graphite-interchange.c
21801         (build_linearized_memory_access): Same.
21802         (pdr_stride_in_loop): Same.
21803         (memory_strides_in_loop_1): Same.
21804         (memory_strides_in_loop): Same.
21805         (extend_scattering): Same.
21806         (psct_scattering_dim_for_loop_depth): Same.
21807         (pbb_number_of_iterations): Same.
21808         * graphite-poly.h
21809         (debug_iteration_domains): Same.
21810         * graphite-ppl.c
21811         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
21812         (ppl_set_inhomogeneous_gmp): Same.
21813         (ppl_strip_loop): Same.
21814         (ppl_lexico_compare_linear_expressions): Same.
21815         (ppl_read_polyhedron_matrix): Same.
21816         (ppl_max_for_le_pointset): Same.
21817         * graphite-ppl.h
21818         (ppl_read_polyhedron_matrix): Same.
21819         (tree_int_to_gmp): Same.
21820         (gmp_cst_to_tree): Same.
21821         (ppl_set_inhomogeneous): Same.
21822         (ppl_set_inhomogeneous_tree): Same.
21823         (ppl_set_coef): Same.
21824         (ppl_set_coef_tree): Same.
21825         * graphite-sese-to-poly.c
21826         (build_pbb_scattering_polyhedrons): Same.
21827         (build_scop_scattering): Same.
21828         (scan_tree_for_params_right_scev): Same.
21829         (scan_tree_for_params): Same.
21830         (find_params_in_bb): Same.
21831         (find_scop_parameters): Same.
21832         (add_upper_bounds_from_estimated_nit): Same.
21833         (build_loop_iteration_domains): Same.
21834         (add_condition_to_domain): Same.
21835         (pdr_add_memory_accesses): Same.
21836
21837 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
21838
21839         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
21840         CLooG's value_* macros to their respective mpz_* counterparts.
21841         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
21842         (graphite_create_new_loop_guard): Same.
21843         * graphite-interchange.c (build_linearized_memory_access): Same.
21844         (pdr_stride_in_loop): Same.
21845         (memory_strides_in_loop_1): Same.
21846         (1st_interchange_profitable_p): Same.
21847         * graphite-poly.c (extend_scattering): Same.
21848         (psct_scattering_dim_for_loop_depth): Same.
21849         (pbb_number_of_iterations): Same.
21850         (pbb_number_of_iterations_at_time): Same.
21851         * graphite-poly.h (new_1st_loop): Same.
21852         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
21853         (oppose_constraint): Same.
21854         (insert_constraint_into_matrix): Same.
21855         (ppl_set_inhomogeneous_gmp): Same.
21856         (ppl_set_coef_gmp): Same.
21857         (ppl_strip_loop): Same.
21858         (ppl_lexico_compare_linear_expressions): Same.
21859         (ppl_max_for_le_pointset): Same.
21860         (ppl_min_for_le_pointset): Same.
21861         (ppl_build_realtion): Same.
21862         * graphite-ppl.h (gmp_cst_to_tree): Same.
21863         (ppl_set_inhomogeneous): Same.
21864         (ppl_set_inhomogeneous_tree): Same.
21865         (ppl_set_coef): Same.
21866         (ppl_set_coef_tree): Same.
21867         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
21868         (build_scop_scattering): Same.
21869         (add_value_to_dim): Same.
21870         (scan_tree_for_params_right_scev): Same.
21871         (scan_tree_for_params_int): Same.
21872         (scan_tree_for_params): Same.
21873         (find_params_in_bb): Same.
21874         (find_scop_parameters): Same.
21875         (add_upper_bounds_from_estimated_nit): Same.
21876         (build_loop_iteration_domains): Same.
21877         (create_linear_expr_from_tree): Same.
21878         (add_condition_to_domain): Same.
21879         (pdr_add_memory_accesses): Same.
21880
21881 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
21882             Jason Merrill  <jason@redhat.com>
21883
21884         * c-common.c (c_common_reswords): Add nullptr.
21885         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
21886         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
21887         (gen_type_die_with_usage): Likewise.
21888         * dbxout.c (dbxout_type): Likewise.
21889         * sdbout.c (plain_type_1): Likewise.
21890
21891 2010-05-06  Jason Merrill  <jason@redhat.com>
21892
21893         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
21894         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
21895         ret appropriately.
21896         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
21897
21898         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
21899         stripping WITH_SIZE_EXPR.
21900         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
21901         change.
21902
21903 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21904
21905         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
21906         list of obsolete configurations.
21907         Disabled check for obsolete configurations.
21908         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
21909         Removed support for previous versions.
21910         * config/mips/iris.h: Removed.
21911         * config/mips/iris5.h: Removed.
21912         * config/mips/iris6.h: Merged old iris.h contents.
21913         (TARGET_IRIX): Removed.
21914         (DRIVER_SELF_SPECS): Removed mabi=32.
21915         (IDENT_ASM_OP): Removed undef.
21916         (STARTFILE_SPEC): Removed mabi=32.
21917         (ENDFILE_SPEC): Likewise.
21918         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
21919         (MACHINE_TYPE): Update for IRIX 6.5.
21920         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
21921         TARGET_IRIX by TARGET_IRIX6.
21922         (mips_file_start): Likewise.
21923         (mips_output_external): Remove IRIX 5/6 O32 support.
21924         (mips_output_function_prologue): Likewise.
21925         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
21926         TARGET_IRIX6.
21927         (TARGET_CPU_CPP_BUILTINS): Likewise.
21928         (TARGET_IRIX): Removed.
21929         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
21930         (MULTILIB_DIRNAMES): Removed 32.
21931         (MULTILIB_OSDIRNAMES): Removed ../lib.
21932         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
21933         (Specific, mips-sgi-irix5): Document removal.
21934         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
21935         Remove references to older IRIX 6 releases and the O32 ABI.
21936
21937 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
21938
21939         PR bootstrap/43994
21940         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
21941         instead of DF_REF_REAL_REG.
21942
21943 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
21944
21945         PR target/43888
21946         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
21947         handling to still return true for x64 targets.
21948
21949 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21950
21951         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
21952
21953 2010-05-06  Jan Hubicka  <jh@suse.cz>
21954
21955         PR tree-optimization/43791
21956         * ipa-inline.c (update_caller_keys): Remove bogus
21957         disregard_inline_limits check.
21958
21959 2010-05-06  Michael Matz  <matz@suse.de>
21960
21961         PR tree-optimization/43984
21962         * tree-ssa-pre.c (inserted_phi_names): Remove.
21963         (inserted_exprs): Change to bitmap.
21964         (create_expression_by_pieces): Set bits, don't append to vector.
21965         (insert_into_preds_of_block): Don't handle inserted_phi_names.
21966         (eliminate): Don't look at inserted_phi_names, remove deleted
21967         insns from inserted_exprs.
21968         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
21969         (init_pre, fini_pre): Allocate and free bitmaps.
21970         (execute_pre): Insert insns on edges before elimination.
21971
21972 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21973
21974         * tree.c (initializer_zerop): Handle STRING_CST.
21975
21976 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21977
21978         PR 40989
21979         * doc/invoke.texi (Wimplicit): Document as C only.
21980         * opts.c (common_handle_option): Add argument kind.
21981         (handle_option): Rename as read_cmdline_option. Factor out code to...
21982         (handle_option): ... here. New.
21983         (handle_options): Rename as read_cmdline_options.
21984         (decode_options): Update call.
21985         (set_option): Use option index instead of option pointer. Classify
21986         diagnostics correctly.
21987         (enable_warning_as_error): Call handle_option.
21988         * opts.h (set_option): Update declaration.
21989         (handle_option): Declare.
21990         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
21991         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
21992         * c-opts.c (set_Wimplicit): Delete.
21993         (c_family_lang_mask): New static constant.
21994         (c_common_handle_option): Add argument kind. Use handle_option
21995         instead of set_Wimplicit.
21996         (c_common_post_options): warn_implicit and warn_implicit_int
21997         are disabled by default.
21998         * c-common.c (warn_implicit): Do not define here.
21999         * c-common.h (warn_implicit): Do not declare here.
22000         (c_common_handle_option): Update declaration.
22001         * lto-opts.c (lto_reissue_options): Update call to set_option.
22002
22003 2010-05-06  Richard Guenther  <rguenther@suse.de>
22004
22005         PR tree-optimization/43571
22006         * domwalk.c (walk_dominator_tree): Walk the dominator
22007         sons in more optimal order.
22008
22009 2010-05-06  Richard Guenther  <rguenther@suse.de>
22010
22011         PR tree-optimization/43934
22012         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
22013         (stmt_cost): Likewise.
22014         (extract_true_false_args_from_phi): New helper.
22015         (determine_max_movement): For PHI nodes verify we can hoist them
22016         and compute their cost.
22017         (determine_invariantness_stmt): Handle PHI nodes.
22018         (move_computations_stmt): Likewise.  Hoist PHI nodes in
22019         if-converted form using COND_EXPRs.
22020         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
22021         (tree_ssa_lim): Likewise.
22022         * tree-flow.h (tree_ssa_lim): Adjust prototype.
22023         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
22024
22025 2010-05-06  Richard Guenther  <rguenther@suse.de>
22026
22027         PR tree-optimization/43987
22028         * tree-ssa-structalias.c (could_have_pointers): For possibly
22029         address-taken variables force pointers to be recorded.
22030         (create_variable_info_for_1): Likewise.
22031         (push_fields_onto_fieldstack): Pass in wheter all fields
22032         must have pointers.
22033         (find_func_aliases): Query types instead of vars whether
22034         they contain pointers where appropriate.
22035
22036 2010-05-06  Jan Hubicka  <jh@suse.cz>
22037
22038         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
22039         (record_reference, mark_address, mark_load, mark_store): Record
22040         references.
22041         (record_references_in_initializer): Update call of record_references.
22042         (rebuild_cgraph_edges): Remove all references before rebuiding.
22043         * cgraph.c (cgraph_create_node): Clear ref list.
22044         (cgraph_remove_node): Remove references.
22045         (dump_cgraph_node): Dump references.
22046         (cgraph_clone_node): Clone references.
22047         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
22048         (struct cgraph_node, varpool_node): Add ref_lst.
22049         * ipa-ref.c: New file.
22050         * ipa-ref.h: New file.
22051         * ipa-ref-inline.h: New file.
22052         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
22053         (referenced_from_other_partition_p): New function.
22054         (lto_output_varpool_node): Take set arugment; call
22055         referenced_from_other_partition.
22056         (lto_output_ref): New.
22057         (add_references): New.
22058         (output_refs): New.
22059         (output_cgraph): Compute boundary based on references; output refs.
22060         (output_varpool): Accept cgraph_node_set argument.
22061         (input_ref): New.
22062         (input_refs): New.
22063         (input_cgraph): Call input_refs.
22064         * lto-section-in.c (lto_section_name): Add refs.
22065         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
22066         (ipa-ref.o): New file.
22067         * varpool.c (varpool_node): Clear ipa ref list.
22068         (varpool_remove_node): Remove references.
22069         (dump_varpool_node): Dump references.
22070         (varpool_assemble_decl): Only compile finalized ones.
22071         (varpool_extra_name_alias): Initialize ref list.
22072         * lto-streamer.c (lto-get_section_name): Add .refs section.
22073         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
22074         (referenced_from_other_partition_p): Declared.
22075
22076 2010-05-06  Ira Rosen  <irar@il.ibm.com>
22077
22078         PR tree-optimization/43901
22079         * tree-vect-stmts.c (vectorizable_call): Assert that vector
22080         type is not NULL if it's transformation phase, and return
22081         FALSE if it's analysis.
22082         (vectorizable_conversion, vectorizable_operation,
22083         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
22084
22085 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
22086
22087         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
22088         Delete.
22089         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
22090         New define.
22091         * config/mips/mips-protos.h
22092         (mips_small_register_classes_for_mode_p): Delete prototype.
22093
22094 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
22095
22096         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
22097         * config/arm/arm.c (multiple_operation_profitable_p,
22098         compute_offset_order): New static functions.
22099         (load_multiple_sequence, store_multiple_sequence): Use them.
22100         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
22101         memory offsets, not register numbers.
22102         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
22103
22104 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
22105
22106         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
22107         (get_pending_sizes, put_pending_size, put_pending_sizes):
22108         Update the uses of pending_sizes.
22109         * c-decl.c (store_parm_decls): Likewise.
22110         * c-tree.h (struct c_arg_info): Likewise.
22111         * tree.h: Update the prototype for get_pending_sizes and
22112         put_pending_sizes.
22113
22114 2010-05-05  Jason Merrill  <jason@redhat.com>
22115
22116         PR debug/43370
22117         * c-common.c (handle_aligned_attribute): Respect
22118         ATTR_FLAG_TYPE_IN_PLACE.
22119
22120         PR testsuite/43758
22121         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
22122         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
22123         (TARGET_INITIALIZER): Use it.
22124         * c-common.c (attribute_takes_identifier_p): Call it.
22125         * c-common.h: Update prototype.
22126         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
22127         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
22128
22129 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
22130
22131         PR debug/43950
22132         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
22133         DW_ID_down_case for Fortran compilation units.
22134
22135 2010-05-05  Jan Hubicka  <jh@suse.cz>
22136
22137         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
22138         handle aliases.
22139
22140 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
22141
22142         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
22143         a variable-sized RESULT_DECL.
22144
22145 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
22146
22147         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
22148
22149 2010-05-05  Jason Merrill  <jason@redhat.com>
22150
22151         PR c++/43787
22152         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
22153         returns GS_OK.
22154         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
22155
22156 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
22157             Jakub Jelinek  <jakub@redhat.com>
22158
22159         PR debug/43478
22160         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
22161         (dead_debug_init, dead_debug_finish): New functions.
22162         (dead_debug_add, dead_debug_insert_before): Likewise.
22163         (df_note_bb_compute): Initialize a dead_debug object, add dead
22164         debug uses to it, insert debug bind insns before death insns,
22165         reset debug insns that refer to pending uses at the end.
22166         * rtl.h (make_debug_expr_from_rtl): New prototype.
22167         * varasm.c (make_debug_expr_from_rtl): New function.
22168
22169 2010-05-05  Jan Hubicka  <jh@suse.cz>
22170
22171         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
22172         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
22173         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
22174         lto_varpool_encoder_deref, lto_varpool_encoder_size,
22175         lto_varpool_encoder_encode_initializer_p,
22176         lto_set_varpool_encoder_encode_initializer): New functions.
22177         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
22178         call output_varpool.
22179         (input_varpool_node): Do not always set analyzed.
22180         (input_cgraph_1): Return vector of cgraph nodes.
22181         (input_varpool_1): Return vector of varpools.
22182         (input_cgraph): Free the vectors.
22183         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22184         output only initializers needed.
22185         (lto_output): Only call output_cgraph.
22186         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
22187         * lto-section-out.c (lto_new_out_decl_state): Initialize
22188         state->varpool_node_encoder.
22189         * lto-streamer.h (lto_varpool_encoder_d): New.
22190         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
22191         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
22192         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
22193         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
22194         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
22195         Declare.
22196         (output_varpool, input_varpool): Remove declarations.
22197
22198 2010-05-05  Jan Hubicka  <jh@suse.cz>
22199
22200         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
22201         with body can prevail.
22202
22203 2010-05-05  Jan Hubicka  <jh@suse.cz>
22204
22205         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
22206         size.
22207
22208 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22209
22210         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
22211
22212         * gengtype.h (erro_at_line): Constify pos argument.
22213
22214         * gengtype.c: Include hashtab.h.
22215         (enum gc_used): Document GC_MAYBE_POINTED_TO.
22216         (error_at_line): Constify pos argument.
22217         (do_typedef): Initialize p->opt field.
22218         (get_file_gtfilename): Fix comment typo.
22219         (struct walk_type_data): Constify line field.
22220         (get_output_file_for_structure): New function.
22221         (write_local_func_for_structure): Constify orig_s argument.
22222         Use get_output_file_for_structure.
22223         (write_func_for_structure): Use get_output_file_for_structure.
22224         (INDENT): New define.
22225         (dump_pair, dump_type, dump_type_list, dump_typekind)
22226         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
22227         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
22228         functions.
22229         (seen_types): New variable.
22230         (main): New variable do_dump.  Process "-d" command line option.
22231         Call dump_everything if dump requested.
22232
22233 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
22234
22235         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
22236         in a temporary instead of invoking the macro multiple times.
22237         (track_expr_p): Likewise.
22238
22239 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
22240
22241         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
22242         per new semantics.
22243         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
22244         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
22245         conditions for printing notes.
22246         * common.opt (-Wcoverage-mismatch): Allow negative, default to
22247         true, update documentation.
22248         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
22249
22250 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
22251
22252         PR c/43981
22253         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
22254         on dimen.
22255
22256 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
22257
22258         PR target/43799
22259         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
22260         (*sse_prologue_save_insn1): Likewise.
22261         (SSE prologue save splitter): Likewise.
22262
22263 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
22264
22265         * tree.c (free_lang_data_in_one_sizepos): New inline function.
22266         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
22267         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
22268         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
22269         all decls.  Call it on DECL_FIELD_OFFSET of fields.
22270         (find_decls_types_r): Follow DECL_VALUE_EXPR.
22271         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
22272
22273 2010-05-04  Martin Jambor  <mjambor@suse.cz>
22274
22275         * tree-sra.c (build_access_from_expr_1): The first parameter type
22276         changed to simple tree.
22277         (build_access_from_expr): Likewise, gsi parameter was eliminated.
22278         (scan_assign_result): Renamed to assignment_mod_result, enum elements
22279         renamed as well.
22280         (build_accesses_from_assign): Removed all parameters except for a
22281         simple gimple statement.  Now returns a simple bool.
22282         (scan_function): All non-analysis parts moved to separate functions
22283         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
22284         parameters and updated both callers.
22285         (sra_modify_expr): Removed parameter data.
22286         (sra_modify_function_body): New function.
22287         (perform_intra_sra): Call sra_modify_function_body to modify the
22288         function body.
22289         (replace_removed_params_ssa_names): Parameter data changed into
22290         adjustments vector.
22291         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
22292         changed the parameter dont_convert to convert with the opposite
22293         meaning.
22294         (sra_ipa_modify_assign): Parameter data changed into adjustments
22295         vector, return value changed to bool.
22296         (ipa_sra_modify_function_body): New function.
22297         (sra_ipa_reset_debug_stmts): Updated a comment.
22298         (modify_function): Use ipa_sra_modify_function_body to modify function
22299         body.
22300
22301 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
22302
22303         PR middle-end/43671
22304         * alias.c (true_dependence): Handle the same VALUE in x and mem.
22305         (canon_true_dependence): Likewise.
22306         (write_dependence_p): Likewise.
22307
22308 2010-05-04  Jan Hubicka  <jh@suse.cz>
22309
22310         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
22311         * cgraphbuild.c: Include ipa-utils.h
22312         (record_reference_ctx): New struct.
22313         (record_reference): Simplify to work on initializers; not statements.
22314         (mark_address, mark_load, mark_store): New.
22315         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
22316         walk PHI nodes too.
22317         (record_references_in_initializer): Update use of record_reference.
22318         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
22319         walk PHI nodes too.
22320
22321 2010-05-04  Jan Hubicka  <jh@suse.cz>
22322
22323         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
22324         node will be removed anyway.
22325         (lto_varpool_replace_node): Allow also unanalyzed nodes;
22326         relink aliases of node into prevailing node.
22327         * varpool.c (varpool_remove_node): Remove aliases properly;
22328         when removing node, remove all its aliases too; remove DECL_INITIAL
22329         of removed node; ggc_free the varpool node.
22330
22331 2010-05-04  Richard Guenther  <rguenther@suse.de>
22332
22333         PR tree-optimization/43879
22334         * tree-ssa-structalias.c (alias_get_name): Use
22335         DECL_ASSEMBLER_NAME if available.
22336         (create_function_info_for): Return the varinfo node.
22337         (ipa_pta_execute): Associate same-body aliases and extra names
22338         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
22339
22340 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
22341
22342         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
22343
22344 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
22345
22346         PR bootstrap/43964
22347         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
22348         only if HONOR_REG_ALLOC_ORDER is not defined.
22349
22350 2010-05-04  Richard Guenther  <rguenther@suse.de>
22351
22352         PR tree-optimization/43949
22353         * tree-vrp.c (extract_range_from_binary_expr): Only handle
22354         TRUNC_MOD_EXPR.
22355
22356 2010-04-26  Jason Merrill  <jason@redhat.com>
22357
22358         * c.opt (-fstrict-enums): New.
22359         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
22360
22361 2010-05-03  David Ung  <davidu@mips.com>
22362             James E. Wilson  <wilson@codesourcery.com>
22363
22364         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
22365         emit the trap instruction before the divide for TUNE_74K.
22366
22367 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
22368
22369         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
22370         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
22371         based on the above, for new target hook.
22372
22373         * hooks.c (hook_bool_mode_true): New generic hook.
22374         * hooks.h (hook_bool_mode_true): Add prototype.
22375
22376         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
22377         target hook.
22378         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
22379         target hook, set to hook_bool_mode_false.
22380         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
22381         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
22382         with targetm.small_register_classes_for_mode_p.
22383         (find_reusable_reload): Likewise.
22384         (combine_reloads): Likewise.
22385         * reload1.c (reload_as_needed): Likewise.
22386         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
22387         * ifcvt.c (noce_process_if_block, check_cond_move_block,
22388         dead_or_predicable): Likewise.
22389         * regmove.c (optimize_reg_copy_1): Likewise.
22390         * calls.c (prepare_call_address): Likewise.
22391         (precompute_register_parameters): Likewise.
22392
22393         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
22394         hook definition.
22395         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
22396         implementation of the hook that considers all register classes
22397         small except for SH64.
22398         (sh_override_options): Use the new hook.
22399         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
22400         Add prototype.
22401
22402         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
22403         hook definition.
22404         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
22405         implementation of the hook that considers all register classes
22406         small for THUMB1.
22407         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
22408         Add prototype.
22409
22410         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
22411         hook definition.
22412         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
22413         implementation of the hook that considers all register classes
22414         small for MIPS16.
22415         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
22416         Add prototype.
22417
22418         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
22419         hook definition.
22420         * config/m32c/m32c.h: Likewise.
22421         * config/pdp11/pdp11.h: Likewise.
22422         * config/avr/avr.h: Likewise.
22423         * config/xtensa/xtensa.h: Likewise.
22424         * config/m68hc11/m68hc11.h: Likewise.
22425         * config/mn10300/mn10300.h: Likewise.
22426         * config/mcore/mcore.h: Likewise.
22427         * config/h8300/h8300.h: Likewise.
22428         * config/bfin/bfin.h: Likewise.
22429
22430         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
22431         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
22432
22433 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
22434
22435         * double-int.h (tree_to_double_int): Remove macro.
22436         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
22437         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
22438         (tree_to_double_int): New function.
22439         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
22440         Move ...
22441         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
22442
22443 2010-05-03  Richard Guenther  <rguenther@suse.de>
22444
22445         PR tree-optimization/43971
22446         * tree-ssa-structalias.c (get_constraint_for_1): Fix
22447         constraints in the !flag_delete_null_pointer_checks case.
22448
22449 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
22450
22451         PR debug/43972
22452         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
22453         result mode matches original rtl mode.
22454
22455 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
22456
22457         PR target/43888
22458         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
22459
22460 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
22461
22462         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
22463         when processing flag options.
22464
22465 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
22466
22467         * gcov-iov.c (main): Change format string placeholder
22468         from %#08x to 0x%08x.
22469         * genchecksum.c (dosum): Change format string placeholder
22470         from %#02x to 0x%02x.
22471
22472 2010-05-02  Richard Guenther  <rguenther@suse.de>
22473
22474         PR tree-optimization/43879
22475         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
22476
22477 2010-05-02  Bruno Haible  <bruno@clisp.org>
22478
22479         * doc/extend.texi (Function Attributes): Fix a typo.
22480
22481 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
22482
22483         Revert:
22484         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
22485         placeholder from 0x%x to %#x.
22486         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
22487         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22488         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22489         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22490         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22491         * config/i386/i386.c (ix86_target_string): Ditto.
22492         * config/i386/i386.c (output_pic_addr_const): Ditto.
22493         (print_operand): Ditto.
22494
22495 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
22496
22497         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
22498         placeholder from 0x%x to %#x.
22499         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
22500         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
22501         (ASM_OUTPUT_DEBUG_DATA): Ditto.
22502         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
22503         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
22504         * optc-gen.awk: Ditto.
22505         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
22506         (HOST_WIDE_INT_PRINT_HEX): Ditto.
22507         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
22508         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
22509
22510 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
22511
22512         * target.h (struct calls): Add function_value_regno_p field.
22513         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
22514         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
22515         * targhooks.c (default_function_value_regno_p): New function.
22516         * targhooks.h (default_function_value_regno_p): Declare function.
22517         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
22518         * builtins.c. (apply_result_size): (Ditto.).
22519         * combine.c. (likely_spilled_retval_p): (Ditto.).
22520         * mode-switching.c. Include 'target.h'.
22521         (create_pre_exit): Use function_value_regno_p hook.
22522         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
22523         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
22524         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
22525
22526         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
22527         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
22528         (ix86_function_value_regno_p): Declare as static, change argument
22529         type to const unsigned int.
22530         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
22531
22532 2010-05-01  Richard Guenther  <rguenther@suse.de>
22533
22534         PR tree-optimization/43949
22535         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
22536         types.
22537         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
22538
22539 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
22540
22541         * rtl.h (CONST_DOUBLE_P): Define.
22542         (rtx_to_double_int): Declare.
22543         * emit-rtl.c (rtx_to_double_int): New function.
22544         * dwarf2out.c (insert_double): New function.
22545         (loc_descriptor, add_const_value_attribute): Clean up, use
22546         rtx_to_double_int and insert_double functions.
22547
22548 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
22549
22550         * doc/extend.texi (Inline): Add missing return keyword to examples.
22551         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
22552         "command-line".
22553
22554 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
22555
22556         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
22557         the variable part of the offset as well.  Use highest_pow2_factor for
22558         all alignment checks.
22559
22560 2010-04-30  Richard Guenther  <rguenther@suse.de>
22561
22562         PR tree-optimization/43879
22563         * tree-ssa-structalias.c (type_could_have_pointers): Functions
22564         can have pointers.
22565
22566 2010-04-30  Jan Hubicka  <jh@suse.cz>
22567
22568         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
22569         varpool.
22570         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
22571
22572 2010-04-30  Jan Hubicka  <jh@suse.cz>
22573
22574         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
22575         New.
22576         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
22577         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
22578         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
22579         cgraph_node_set_needs_ltrans_p): Remove.
22580
22581 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
22582
22583         * sdbout.c: Include vec.h, do not include varray.h.
22584         (deferred_global_decls, sdbout_global_decl,
22585         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
22586         * toplev.c: Do not include varray.h.
22587         (dump_memory_report): Do not dump VARRAY statistics.
22588         * gengtype.c (open_base_file): Ignore varray.h.
22589         * Makefile.in: Update for abovementioned changes.
22590         Remove all traces of varray.c and varray.h.
22591         * varray.c: Remove file.
22592         * varray.h: Remove file.
22593
22594 2010-04-30  Jan Hubicka  <jh@suse.cz>
22595
22596         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
22597         references.
22598
22599 2010-04-30  Jan Hubicka  <jh@suse.cz>
22600
22601         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
22602         needed.
22603
22604 2010-04-30  Richard Guenther  <rguenther@suse.de>
22605
22606         * tree-ssa-structalias.c (get_constraint_for_1): Generate
22607         constraints for CONSTRUCTOR.
22608
22609 2010-04-30  Richard Guenther  <rguenther@suse.de>
22610
22611         PR lto/43946
22612         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
22613         first after all lowering passes.
22614
22615 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
22616
22617         * toplev.c: Include varray.h for statistics dumping.
22618         * tree.h: Do not declare varray_head_tag.
22619         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
22620         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
22621         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
22622         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
22623         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
22624         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
22625         c-common.c, c-common.h, reg-stack.c, basic-block.h,
22626         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
22627         include varray.h.
22628         * Makefile.in: Update for abovementioned changes.
22629
22630 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
22631
22632         PR debug/43942
22633         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
22634
22635 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
22636
22637         * config/picochip/picochip.c (picochip_legitimize_address): Define.
22638         Use this function to do machine-specific conversion.
22639         (picochip_legitimize_reload_address): Likewise.
22640         (picochip_legitimate_address_p): Check valid base register only if
22641         strict.
22642         (picochip_check_conditional_copy): Check for modw only if opnd is
22643         register.
22644         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
22645         to call the function in c.
22646         * config/picochip/picochip-protos.h
22647         (picochip_legitimize_reload_address): Define.
22648         * config/picochip/picochip.md (supported_compare1): Define.
22649
22650 2010-04-30  Jan Hubicka  <jh@suse.cz>
22651
22652         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
22653         (cgraph_global_info): Remove inlined.
22654         (LTO_cgraph_tag_names): Remove.
22655         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
22656         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
22657         simplify cgraph tags and document.
22658         (lto_output_node): Use only LTO_cgraph_unavail_node and
22659         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
22660         for_functions_valid, global info, process and output flags.
22661         (input_overwrite_node): Initialize estimated stack size and
22662         estimated growth.  Do not read flags we no longer store.
22663         (input_node): Likewise do not read info no longer stored.
22664         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
22665         flag.
22666
22667 2010-04-30  Richard Guenther  <rguenther@suse.de>
22668
22669         PR tree-optimization/43879
22670         * tree-ssa-structalias.c (get_constraint_for_1): Properly
22671         handle non-zero initializers.
22672
22673 2010-04-30  Richard Guenther  <rguenther@suse.de>
22674
22675         * builtins.c (fold_builtin_1): Delete free (0).
22676
22677 2010-04-29  Jan Hubicka  <jh@suse.cz>
22678
22679         * gengtype.c (open_base_files): Add lto-streamer.h
22680         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
22681         (pass_ipa_cp): GGC collect.
22682         * toplev. (compile_file): Do not output symbols.
22683         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
22684         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
22685         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
22686         * lto-section-in.c: Include ggc.h
22687         (lto_new_in_decl_state): Alloc in GGC.
22688         (lto_delete_in_decl_state): Likewise.
22689         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
22690         Collect.
22691
22692 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
22693
22694         PR target/42895
22695         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
22696         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
22697         (HONOR_REG_ALLOC_ORDER): Describe new macro.
22698         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
22699         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
22700         account only if HONOR_REG_ALLOC_ORDER is not defined.
22701         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
22702         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
22703
22704 2010-04-29  Jon Grant  <04@jguk.org>
22705
22706         * collect2.c (vflag): Change type from int to bool.
22707         (debug): Likewise.
22708         (helpflag): New global bool.
22709         (main): Set vflag and debug with boolean, not integer truth values.
22710         Accept new "--help" option and output usage text if found.
22711         * collect2.h (vflag): Update prototype.
22712         (debug): Likewise.
22713
22714 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
22715
22716         PR bootstrap/43936
22717         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
22718
22719 2010-04-29  Richard Guenther  <rguenther@suse.de>
22720
22721         PR bootstrap/43935
22722         * plugin.h (invoke_plugin_callbacks): Annotate arguments
22723         with ATTRIBUTE_UNUSED.
22724
22725 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
22726
22727         PR target/43921
22728         * config/i386/i386.c (get_some_local_dynamic_name): Replace
22729         INSN_P with NONDEBUG_INSN_P.
22730         (distance_non_agu_define): Likewise.
22731         (distance_agu_use): Likewise.
22732
22733 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
22734
22735         From Dominique d'Humieres  <dominiq@lps.ens.fr>
22736         PR bootstrap/43858
22737         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
22738         test_set.
22739
22740 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
22741
22742         * plugin.h (invoke_plugin_callbacks): New inline function.
22743         * plugin.c (flag_plugin_added): New global flag.
22744         (add_new_plugin): Initialize above flag.
22745         (invoke_plugin_callbacks): Rename to ...
22746         (invoke_plugin_callbacks_full): ... this.
22747
22748 2010-04-28  Jan Hubicka  <jh@suse.cz>
22749
22750         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
22751         (lto_varpool_replace_node): New.
22752         (lto_symtab_resolve_symbols): Resolve varpool nodes.
22753         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
22754         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
22755         * cgraph.h (varpool_node_ptr): New type.
22756         (varpool_node_ptr): New vector.
22757         (varpool_node_set_def): New structure.
22758         (varpool_node_set): New type.
22759         (varpool_node_set): New vector.
22760         (varpool_node_set_element_def): New structure.
22761         (varpool_node_set_element, const_varpool_node_set_element): New types.
22762         (varpool_node_set_iterator): New type.
22763         (varpool_node): Add prev pointers, add used_from_other_partition,
22764         in_other_partition.
22765         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
22766         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
22767         varpool_get_node, varpool_remove_node): Declare.
22768         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
22769         varpool_node_set_size): New inlines.
22770         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
22771         * tree-pass.h (varpool_node_set_def): Forward declare.
22772         (ipa_opt_pass_d): Summary writting takes vnode sets too.
22773         (ipa_write_optimization_summaries): Update prototype.
22774         * ipa-cp.c (ipcp_write_summary): Update.
22775         * ipa-reference.c (ipa_reference_write_summary): Update.
22776         * lto-cgraph.c (lto_output_varpool_node): New static function.
22777         (output_varpool): New function.
22778         (input_varpool_node): New static function.
22779         (input_varpool_1): New function.
22780         (input_cgraph): Input varpool.
22781         * ipa-pure-const.c (pure_const_write_summary): Update.
22782         * lto-streamer-out.c (lto_output): Update, output varpool too.
22783         (write_global_stream): Kill WPA hack.
22784         (produce_asm_for_decls): Update.
22785         (output_alias_pair_p): Handle variables.
22786         (output_unreferenced_globals): Output only needed partition of varpool.
22787         * ipa-inline.c (inline_write_summary): Update.
22788         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
22789         cgraph.
22790         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
22791         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
22792         varpool_node_set_new, varpool_node_set_add,
22793         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
22794         debug_varpool_node_set): New functions.
22795         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
22796         (execute_one_pass): Process new decls too.
22797         (ipa_write_summaries_2): Pass around vsets.
22798         (ipa_write_summaries_1): Likewise.
22799         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
22800         to add.
22801         (ipa_write_optimization_summaries_1): Pass around vsets.
22802         (ipa_write_optimization_summaries): Likewise.
22803         * varpool.c (varpool_get_node): New.
22804         (varpool_node): Update doubly linked lists.
22805         (varpool_remove_node): New.
22806         (dump_varpool_node): More dumping.
22807         (varpool_enqueue_needed_node): Update doubly linked lists.
22808         (decide_is_variable_needed): Kill ltrans hack.
22809         (varpool_finalize_decl): Kill lto hack.
22810         (varpool_assemble_decl): Skip decls in other partitions.
22811         (varpool_assemble_pending_decls): Update doubly linkes lists.
22812         (varpool_empty_needed_queue): Likewise.
22813         (varpool_extra_name_alias): Likewise.
22814         * lto-streamer.c (lto_get_section_name): Add vars section.
22815         * lto-streamer.h (lto_section_type): Update.
22816         (output_varpool, input_varpool): Declare.
22817
22818 2010-04-28  Mike Stump  <mikestump@comcast.net>
22819
22820         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
22821
22822 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22823
22824         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
22825         record or union type with RECORD_OR_UNION_TYPE_P predicate.
22826         (lto_input_ts_type_tree_pointers): Likewise.
22827         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
22828         (lto_output_ts_type_tree_pointers): Likewise.
22829
22830 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22831
22832         Uniquization of constants at the Tree level
22833         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
22834         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
22835         bit to the end.
22836         (tree_output_constant_def): Declare.
22837         * gimplify.c (gimplify_init_constructor): When using block copy, first
22838         uniquize the constant constructor on the RHS.
22839         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
22840         DECL_IN_CONSTANT_POOL flag.
22841         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
22842         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
22843         constant pool.
22844         (assemble_variable): Deal with symbols belonging to the tree constant
22845         pool.
22846         (get_constant_section): Add ALIGN parameter and simplify.
22847         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
22848         (assemble_constant_contents): Use the expression of the VAR_DECL.
22849         (output_constant_def_contents): Use the alignment of the VAR_DECL.
22850         (tree_output_constant_def): New global function.
22851         (mark_constant): Use the expression of the VAR_DECL.
22852         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
22853         its expression.
22854         (output_object_block): Likewise and assemble the expression.
22855
22856 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22857
22858         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
22859         hash_tree, eq_tree): New tree hash table.
22860         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
22861         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
22862         lto_orig_address_remove): Reimplement.
22863
22864 2010-04-28  Xinliang David Li  <davidxl@google.com>
22865
22866         PR c/42643
22867         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
22868         (compute_uninit_opnds_pos): New function.
22869         (is_non_loop_exit_postdominating): New function.
22870         (compute_control_dep_chain): New function.
22871         (find_pdom): New function.
22872         (convert_control_dep_chain_into_preds): New function.
22873         (find_predicates): New function.
22874         (find_control_equiv_block): New function.
22875         (collect_phi_def_edges): New function.
22876         (find_def_preds): New function.
22877         (find_dom): New function.
22878         (dump_predicates): New function.
22879         (get_cmp_code): New function.
22880         (is_value_included_in): New function.
22881         (find_matching_predicate_in_rest_chains): New function.
22882         (use_pred_not_overlap_with_undef_path_pred): New function.
22883         (is_use_properly_guarded): New function.
22884         (normalize_cond_1): New function.
22885         (is_and_or_or): New function.
22886         (normalize_cond): New function.
22887         (is_gcond_subset_of): New function.
22888         (is_subset_of_any): New function.
22889         (is_or_set_subset_of): New function.
22890         (is_and_set_subset_of): New function.
22891         (is_norm_cond_subset_of): New function.
22892         (is_pred_expr_subset_of): New function.
22893         (is_pred_chain_subset_of): New function.
22894         (is_included_in): New function.
22895         (is_superset_of): New function.
22896         (find_uninit_use): New function.
22897         (warn_uninitialized_phi): New function.
22898         (compute_possibly_undefined_names): New function.
22899         (ssa_undefined_value_p): New function.
22900         (execute_late_warn_uninitialized): New function.
22901         * tree-ssa.c (ssa_undefined_value_p): Removed.
22902         (warn_uninit): Changed to extern.
22903         (warn_uninitialized_phi): Removed.
22904         (warn_uninitialized_vars): Changed to extern.
22905         (execute_late_warn_uninitialized): Removed
22906         * tree-flow.h: Add new prototypes.
22907         * timevar.def: Add new time variable.
22908         * Makefile.in: Add new build file.
22909
22910 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
22911
22912         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
22913         type if available.
22914
22915 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22916
22917         PR target/22224
22918         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
22919
22920 2010-04-28  Martin Jambor  <mjambor@suse.cz>
22921
22922         * cgraph.h (struct cgraph_node): New field indirect_calls.
22923         (struct cgraph_indirect_call_info): New type.
22924         (struct cgraph_edge): Removed field indirect_call. New fields
22925         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
22926         (cgraph_create_indirect_edge): Declare.
22927         (cgraph_make_edge_direct): Likewise.
22928         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
22929         * ipa-prop.h (struct ipa_param_call_note): Removed.
22930         (struct ipa_node_params): Removed field param_calls.
22931         (ipa_create_all_structures_for_iinln): Declare.
22932         * cgraph.c: Described indirect edges and uids in initial comment.
22933         (cgraph_add_edge_to_call_site_hash): New function.
22934         (cgraph_edge): Search also among the indirect edges, use
22935         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
22936         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
22937         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
22938         site hash.
22939         (initialize_inline_failed): Assign a reason to indirect edges.
22940         (cgraph_create_edge_1): New function.
22941         (cgraph_create_edge): Moved some functionality to
22942         cgraph_create_edge_1.
22943         (cgraph_create_indirect_edge): New function.
22944         (cgraph_edge_remove_callee): Add an assert checking for
22945         non-indirectness.
22946         (cgraph_edge_remove_caller): Special-case indirect edges.
22947         (cgraph_remove_edge): Likewise.
22948         (cgraph_set_edge_callee): New function.
22949         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
22950         (cgraph_make_edge_direct): New function.
22951         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
22952         the declaration of the call statement matches.
22953         (cgraph_node_remove_callees): Special-case indirect edges.
22954         (cgraph_clone_edge): Likewise.
22955         (cgraph_clone_node): Clone also the indirect edges.
22956         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
22957         indirect_call, dump count of indirect_calls edges.
22958         * ipa-prop.c (iinlining_processed_edges): New variable.
22959         (ipa_note_param_call): Create indirect edges instead of
22960         creating notes.  New parameter node.
22961         (ipa_analyze_call_uses): New parameter node, pass it on to
22962         ipa_note_param_call.
22963         (ipa_analyze_stmt_uses): Likewise.
22964         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
22965         (print_edge_addition_message): Work on edges rather than on notes.
22966         (update_call_notes_after_inlining): Likewise, renamed to
22967         update_indirect_edges_after_inlining.
22968         (ipa_create_all_structures_for_iinln): New function.
22969         (ipa_free_node_params_substructures): Do not free notes.
22970         (ipa_edge_duplication_hook): Propagate bits within
22971         iinlining_processed_edges bitmap.
22972         (ipa_node_duplication_hook): Do not duplicate notes.
22973         (free_all_ipa_structures_after_ipa_cp): Renamed to
22974         ipa_free_all_structures_after_ipa_cp.
22975         (free_all_ipa_structures_after_iinln): Renamed to
22976         ipa_free_all_structures_after_iinln.
22977         (ipa_write_param_call_note): Removed.
22978         (ipa_read_param_call_note): Removed.
22979         (ipa_write_indirect_edge_info): New function.
22980         (ipa_read_indirect_edge_info): Likewise.
22981         (ipa_write_node_info): Do not stream notes, do stream information
22982         in indirect edges.
22983         (ipa_read_node_info): Likewise.
22984         (lto_ipa_fixup_call_notes): Removed.
22985         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
22986         * ipa-inline.c (pass_ipa_inline): Likewise.
22987         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
22988         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
22989         * tree-inline.c (copy_bb): Removed an unnecessary double check for
22990         is_gimple_call.
22991         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
22992         edges.
22993         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
22994         (output_cgraph): Stream also indirect edges.
22995         (lto_output_edge): Added capability to stream indirect edges.
22996         (input_edge): Likewise.
22997         (input_cgraph_1): Likewise.
22998         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
22999         of indirect edges.
23000
23001 2010-04-28  Richard Guenther  <rguenther@suse.de>
23002
23003         PR tree-optimization/43879
23004         PR tree-optimization/43909
23005         * tree-ssa-structalias.c (struct variable_info): Add
23006         only_restrict_pointers flag.
23007         (new_var_info): Initialize it.  Increment stats.total_vars here.
23008         (create_function_info_for): Do not increment stats.total_vars here.
23009         (get_function_part_constraint): Fix build with C++.
23010         (insert_into_field_list): Remove.
23011         (push_fields_onto_fieldstack): Properly merge fields.
23012         (create_variable_info_for): Split and simplify.
23013         (create_variable_info_for_1): New piece.
23014         (intra_create_variable_infos): Properly make restrict constraints
23015         from parameters.
23016
23017 2010-04-28  Richard Guenther  <rguenther@suse.de>
23018
23019         PR c++/43880
23020         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
23021
23022 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23023             Jan Hubicka  <hubicka@ucw.cz>
23024
23025         * doc/invoke.texi (-Wsuggest-attribute=const,
23026         -Wsuggest-attribute=pure): Document.
23027         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
23028         (function_always_visible_to_compiler_p,
23029         suggest_attribute, warn_function_pure, warn_function_const):
23030         New functions.
23031         (check_call): Improve debug info.
23032         (analyze_function): Do not check availability.
23033         (add_new_function): Check availability.
23034         (propagate): Output warnings.
23035         (skip_function_for_local_pure_const): New function.
23036         (local_pure_const): Use it; output warnings.
23037         * common.opt (Wsuggest-attribute=const,
23038         Wsuggest-attribute=pure): New.
23039
23040 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
23041
23042         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
23043         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
23044         or DW_CFA_def_cfa_offset{,_sf}.
23045
23046 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23047
23048         * tree.h: Fix truncated long macros.
23049
23050 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
23051
23052         * collect2.c (TARGET_64BIT): Redefine to target's default.
23053         * tlink.c: Likewise.
23054         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
23055         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
23056         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
23057         for underscoring __USER_LABEL_PREFIX__.
23058         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
23059         (SUB_LINK_ENTRY32): New.
23060         (SUB_LINK_ENTRY64): New.
23061         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
23062         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
23063         (SUB_LINK_ENTRY64): New.
23064         (SUB_LINK_ENTRY): New.
23065         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
23066         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
23067         x64 target is choosen.
23068         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
23069         * configure: Regenerated.
23070         * configure.ac (leading-mingw64-underscores): Option added.
23071
23072 2010-04-27  Jan Hubicka  <jh@suse.cz>
23073
23074         * doc/invoke.texi (-fipa-profile): Document.
23075         * opts.c (decode_options): Enable ipa-profile at -O1.
23076         * timevar.def (TV_IPA_PROFILE): Define.
23077         * common.opt (fipa-profile): Add.
23078         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
23079         flag for clones.
23080         (cgraph_propagate_frequency): Handle only local ones.
23081         * tree-pass.h (pass_ipa_profile): Declare.
23082         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
23083         (pass_ipa_profile): Use TV_IPA_PROFILE.
23084         * ipa.c (ipa_profile): New function.
23085         (gate_ipa_profile): Likewise.
23086         (pass_ipa_profile): New global variable.
23087         * passes.c (pass_ipa_profile): New.
23088
23089 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
23090
23091         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
23092
23093 2010-04-27  Martin Jambor  <mjambor@suse.cz>
23094
23095         PR middle-end/43812
23096         * ipa.c (dissolve_same_comdat_group_list): New function.
23097         (function_and_variable_visibility): Call
23098         dissolve_same_comdat_group_list when comdat group contains external or
23099         newly local nodes.
23100         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
23101         lists are circular and that they contain only DECL_ONE_ONLY nodes.
23102
23103 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
23104
23105         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
23106         (const_hash_1) <VECTOR_CST>: New case.
23107         (compare_constant) <VECTOR_CST>: Likewise.
23108         <ADDR_EXPR>: Deal with LABEL_REFs.
23109         (copy_constant) <VECTOR_CST>: New case.
23110
23111 2010-04-27  Jan Hubicka  <jh@suse.cz>
23112
23113         * cgraph.c (cgraph_propagate_frequency): New function.
23114         * cgraph.h (cgraph_propagate_frequency): Declare.
23115         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
23116         cgraph_propagate_frequency.
23117
23118 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
23119
23120         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
23121
23122 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
23123
23124         PR target/40657
23125         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
23126         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
23127         here to determine which regs to push and how much stack to reserve.
23128
23129 2010-04-27  Jie Zhang  <jie@codesourcery.com>
23130
23131         * doc/gimple.texi (gimple_statement_with_ops): Remove
23132         addresses_taken field.
23133         (gimple_statement_with_memory_ops): Likewise.
23134
23135 2010-04-27  Jan Hubicka  <jh@suse.cz>
23136
23137         * tree-inline.c (eni_inlining_weights): Remove.
23138         (estimate_num_insns): Special case more builtins.
23139
23140 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
23141
23142         PR c/32207
23143         * c-typeck.c (build_binary_op): Move forward check for comparison
23144         pointer with null pointer constant and adjust the diagnostic message.
23145
23146 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
23147
23148         PR lto/42776
23149         * configure.ac (gcc_cv_as_section_has_align): Set if installed
23150         binutils supports extended .section directive needed by LTO, or
23151         warn if older binutils found.
23152         (LTO_BINARY_READER): New AC_SUBST'd variable.
23153         (LTO_USE_LIBELF): Likewise.
23154         * config.gcc (lto_binary_reader): New target-specific configure
23155         variable.
23156         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
23157         (LTO_USE_LIBELF): Likewise.
23158         * configure: Regenerate.
23159
23160         * collect2.c (is_elf): Rename from this ...
23161         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
23162          object files in addition to ELF-formatted ones.
23163         (scan_prog_file): Caller updated.  Also allow for LTO info marker
23164         symbol to be prefixed or not by an extra underscore.
23165
23166         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
23167         * config/i386/winnt.c: Also #include lto-streamer.h
23168         (i386_pe_asm_named_section): Specify 1-byte section alignment for
23169         LTO named sections.
23170         (i386_pe_asm_output_aligned_decl_common): Add comment.
23171         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
23172
23173 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
23174
23175         PR target/43889
23176         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
23177         Add missing earlyclobber for second alternative.
23178
23179 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
23180
23181         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
23182         bits for artificial defs at the top of the block.
23183         * fwprop.c (single_def_use_enter_block): Don't call it.
23184
23185 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
23186
23187         PR 43715
23188         * configure.ac: Use "$gcc_cv_nm -g" on darwin
23189         instead of "$gcc_cv_objdump -T".
23190         Use "-undefined dynamic_lookup" on darwin.
23191         * configure: Regenerate.
23192
23193 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
23194
23195         PR c/43893
23196         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
23197
23198 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
23199
23200         * c-parser.c (struct c_token): Move location field up.
23201         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
23202         (struct c_declspecs): Convert typespec_word, storage_class, and
23203         default_int_p into bitfields.
23204         (struct c_declarator): Move loc field up.
23205
23206 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
23207
23208         * cfgloop.h (struct loop): Move can_be_parallel field up.
23209         * ipa-prop.h (struct ip_node_params): Move bitfields up.
23210         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
23211         down.
23212         (struct iv_cand): Convert pos field into a bitfield.
23213         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
23214         field up.
23215         (struct _stmt_vec_info): Shuffle fields for better packing.
23216
23217 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
23218
23219         * varasm.c (IN_NAMED_SECTION): Remove guard.
23220         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
23221         (IN_NAMED_SECTION_P): ...this.
23222         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
23223         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
23224
23225 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
23226
23227         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
23228         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
23229         of shadowing it.  Fix comments.
23230
23231 2010-04-26  Jan Hubicka  <jh@suse.cz>
23232
23233         * cgraph.c (cgraph_create_node): Set node frequency to normal.
23234         (cgraph_clone_node): Copy function frequency.
23235         * cgraph.h (node_frequency): New enum
23236         (struct cgraph_node): Add.
23237         * final.c (rest_of_clean_state): Update.
23238         * lto-cgraph.c (lto_output_node): Output node frequency.
23239         (input_overwrite_node): Input node frequency.
23240         * tre-ssa-loop-ivopts (computation_cost): Update.
23241         * lto-streamer-out.c (output_function): Do not output function
23242         frequency.
23243         * predict.c (maybe_hot_frequency_p): Update and handle functions
23244         executed once.
23245         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
23246         attribute lookup.
23247         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
23248         (compute_function_frequency): Set noreturn functions to be executed
23249         once.
23250         (choose_function_section): Update.
23251         * lto-streamer-in.c (input_function): Do not input function frequency.
23252         * function.c (allocate_struct_function): Do not initialize function
23253         frequency.
23254         * function.h (function_frequency): Remove.
23255         (struct function): Remove function frequency.
23256         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
23257         (try_update): Update.
23258         * tree-inline.c (initialize_cfun): Do not update function frequency.
23259         * passes.c (pass_init_dump_file): Update.
23260         * i386.c (ix86_compute_frame_layout): Update.
23261         (ix86_pad_returns): Update.
23262
23263 2010-04-26  Jie Zhang  <jie@codesourcery.com>
23264
23265         PR tree-optimization/43833
23266         * tree-vrp.c (range_int_cst_p): New.
23267         (range_int_cst_singleton_p): New.
23268         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
23269         when both operands are constants.  Use range_int_cst_p in
23270         BIT_IOR_EXPR case.
23271
23272 2010-04-26  Jan Hubicka  <jh@suse.cz>
23273
23274         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
23275
23276 2010-04-26  Richard Guenther  <rguenther@suse.de>
23277
23278         PR lto/43080
23279         * gimple.c (gimple_decl_printable_name): Deal gracefully
23280         with a NULL DECL_NAME.
23281
23282 2010-04-26  Richard Guenther  <rguenther@suse.de>
23283
23284         PR lto/42425
23285         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
23286         if emitting debug information and it is either a function
23287         or a namespace decl.
23288
23289 2010-04-26  Ira Rosen  <irar@il.ibm.com>
23290
23291         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
23292         determine if the statement is vectorizable, and a macro to access it.
23293         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23294         Skip statements that can't be vectorized. If the analysis fails,
23295         mark the statement as unvectorizable if vectorizing basic block.
23296         (vect_compute_data_refs_alignment): Likewise.
23297         (vect_verify_datarefs_alignment): Skip statements marked as
23298         unvectorizable. Add print.
23299         (vect_analyze_group_access): Skip statements that can't be
23300         vectorized. If the analysis fails, mark the statement as
23301         unvectorizable if vectorizing basic block.
23302         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
23303         * tree-vect-stmts.c (vectorizable_store): Fix the number of
23304         generated stmts for SLP.
23305         (new_stmt_vec_info): Initialize the new field.
23306         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
23307         statements marked as unvectorizable.
23308
23309 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
23310
23311         * c-common.c (flag_isoc1x): New.
23312         (flag_isoc99): Update comment.
23313         * c-common.h (flag_isoc1x): New.
23314         (flag_isoc99): Update comment.
23315         * c-cppbuiltin.c (builtin_define_float_constants): Also define
23316         __<type>_DECIMAL_DIG__.
23317         * c-opts.c (set_std_c1x): New.
23318         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
23319         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
23320         * c.opt (-std=c1x, -std=gnu1x): New options.
23321         * doc/cpp.texi: Mention -std=c1x.
23322         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
23323         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
23324         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
23325         * doc/standards.texi: Mention C1X.
23326         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
23327         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
23328         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
23329         Define for C1X.
23330
23331 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
23332
23333         * config/i386/gmon-sol2.c (_mcleanup): Change format string
23334         placeholder from 0x%x to %#x.
23335         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
23336         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
23337         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
23338         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
23339         * config/i386/i386.c (ix86_target_string): Ditto.
23340         (output_pic_addr_const): Ditto.
23341         (print_operand): Ditto.
23342
23343 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
23344
23345         * combine.c (find_split_point): Add third argument.  Use it
23346         to find nested multiply-accumulate instructions.  Adjust calls.
23347         (try_combine): Adjust call to find_split_point.
23348
23349 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
23350
23351         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
23352
23353 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
23354
23355         PR tree-optimization/41442
23356         * fold-const.c (merge_truthop_with_opposite_arm): New function.
23357         (fold_binary_loc): Call it.
23358
23359 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23360
23361         * toplev.c (general_init): Set default for fdiagnostics-show-option.
23362         * opts.c (common_handle_option): Allow disabling it.
23363         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
23364
23365 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
23366
23367         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
23368         between modes if both types are integral.
23369
23370 2010-04-23  Richard Guenther  <rguenther@suse.de>
23371
23372         PR tree-optimization/43572
23373         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
23374
23375 2010-04-23  Richard Guenther  <rguenther@suse.de>
23376
23377         PR lto/43455
23378         * tree-inline.c (tree_can_inline_p): Also check compatibility
23379         of return types.
23380
23381 2010-04-23  Martin Jambor  <mjambor@suse.cz>
23382
23383         PR tree-optimization/43846
23384         * tree-sra.c (struct access): New flag grp_assignment_read.
23385         (build_accesses_from_assign): Set grp_assignment_read.
23386         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
23387         (enum mark_read_status): New type.
23388         (analyze_access_subtree): Propagate grp_assignment_read, create
23389         accesses also if both direct_read and root->grp_assignment_read.
23390
23391 2010-04-23  Martin Jambor  <mjambor@suse.cz>
23392
23393         PR middle-end/43835
23394         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
23395         function does not have type attributes.
23396
23397 2010-04-23  Richard Guenther  <rguenther@suse.de>
23398
23399         PR lto/42653
23400         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
23401         of FUNCTION_DECLs.
23402
23403 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23404
23405         * sese.h (create_if_region_on_edge): Remove.
23406
23407         * sese.c (create_if_region_on_edge): Make static.
23408
23409         * tree-inline.c: Do not include ggc.h.
23410
23411         * expr.c: Do not include ggc.h.
23412
23413         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
23414         dependencies.
23415
23416 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
23417
23418         PR target/43744
23419         * config/sh/sh.c (find_barrier): Don't emit a constant pool
23420         in the middle of insns for casesi_worker_2.
23421
23422 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
23423
23424         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
23425
23426 2010-04-22  Ira Rosen  <irar@il.ibm.com>
23427
23428         PR tree-optimization/43842
23429         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
23430         loop unrolling in update of exit phis. Fix comment.
23431         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
23432         least two reduction statements in the loop before starting SLP
23433         analysis.
23434
23435 2010-04-22  Nick Clifton  <nickc@redhat.com>
23436
23437         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
23438
23439 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
23440
23441         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
23442         to simplify a + ~a.
23443
23444 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23445
23446         * tree-parloops.c (loop_parallel_p): New argument
23447         parloop_obstack.  Pass it down.
23448         (parallelize_loops): New variable parloop_obstack.  Initialize it,
23449         pass it down, free it.
23450
23451         * tree-loop-linear.c (linear_transform_loops): Pass down
23452         lambda_obstack.
23453
23454         * tree-data-ref.h (lambda_compute_access_matrices): New argument
23455         of type struct obstack *.
23456
23457         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
23458         scratch_obstack.  Initialize it, pass down, free it.
23459
23460         * lambda.h (lambda_loop_new): Remove.
23461         (lambda_matrix_new, lambda_matrix_inverse)
23462         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
23463         argument of type struct obstack *.
23464
23465         * lambda-trans.c (lambda_trans_matrix_new): New argument
23466         lambda_obstack.  Pass it down, use obstack allocation for ret.
23467         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
23468         it down.
23469
23470         * lambda-mat.c (lambda_matrix_get_column)
23471         (lambda_matrix_project_to_null): Remove.
23472         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
23473         allocation for mat.
23474         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
23475         lambda_obstack.
23476
23477         * lambda-code.c (lambda_loop_new): New function.
23478         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
23479         (lambda_compute_auxillary_space, lambda_compute_target_space)
23480         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
23481         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
23482         (build_access_matrix): New argument lambda_obstack.  Use obstack
23483         allocation for am.
23484         (lambda_compute_step_signs, lambda_compute_access_matrices): New
23485         argument lambda_obstack.  Pass it down.
23486
23487 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
23488
23489         * optabs.h (expand_widening_mult): Declare.
23490
23491 2010-04-22  Richard Guenther  <rguenther@suse.de>
23492
23493         PR tree-optimization/43845
23494         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
23495         lookup the CALL_EXPR function and arguments.
23496
23497 2010-04-22  Nick Clifton  <nickc@redhat.com>
23498
23499         * config/stormy16/stormy16.c
23500         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
23501         * config/stormy16/stormy16.h: Tidy up formatting.
23502         (DONT_USE_BUILTIN_SETJMP): Remove definition.
23503         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
23504         (ineqbranchsi): Delete pattern.
23505         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
23506         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
23507         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
23508         stormy16-lib2-ucmpsi2.c.
23509
23510 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
23511
23512         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
23513         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
23514         extra set merge_set_noclobber, and use it to relax the final test
23515         slightly.
23516         * df.h (df_simulate_find_noclobber_defs): Declare.
23517         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
23518         conditional defs.
23519         (df_simulate_find_noclobber_defs): New function.
23520
23521 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
23522
23523         * config/i386/i386.md: Use {} around multi-line preparation statements.
23524
23525 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23526
23527         * c-tree.h (push_init_level, pop_init_level, set_init_index)
23528         (process_init_element): New argument of type struct obstack *.
23529
23530         * c-typeck.c (push_init_level, pop_init_level, set_designator)
23531         (set_init_index, set_init_label, set_nonincremental_init)
23532         (set_nonincremental_init_from_string, find_init_member)
23533         (output_init_element, output_pending_init_elements)
23534         (process_init_element): New argument braced_init_obstack.  Pass it
23535         down.
23536         (push_range_stack, add_pending_init): New argument
23537         braced_init_obstack.  Use obstack allocation.
23538
23539         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
23540         braced_init_obstack.  Pass it down.
23541         (c_parser_braced_init): New variables ret, braced_init_obstack.
23542         Initialize obstack, pass it down and finally free it.
23543
23544 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
23545
23546         PR middle-end/29274
23547         * tree-pass.h (pass_optimize_widening_mul): Declare.
23548         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
23549         gate_optimize_widening_mul): New static functions.
23550         (pass_optimize_widening_mul): New.
23551         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
23552         <case MULT_EXPR>: Remove support for widening multiplies.
23553         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
23554         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
23555         simplify_gen_unary rather than directly building extensions.
23556         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
23557         WIDEN_MULT_EXPR.
23558         * expmed.c (expand_widening_mult): New function.
23559         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
23560
23561 2010-04-21  Jan Hubicka  <jh@suse.cz>
23562
23563         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
23564         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
23565         * lto-wpa-fixup.c: Remove.
23566         * Makefile.in (lto-wpa-fixup.o): Remove.
23567         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
23568         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
23569         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
23570
23571 2010-04-21  Jan Hubicka  <jh@suse.cz>
23572
23573         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
23574         add write_optimization_summary, read_optimization_summary.
23575         (ipa_write_summaries_of_cgraph_node_set): Remove.
23576         (ipa_write_optimization_summaries): Declare.
23577         (ipa_read_optimization_summaries): Declare.
23578         * ipa-cp.c (pass_ipa_cp): Update.
23579         * ipa-reference.c (pass_ipa_reference): Update.
23580         * ipa-pure-const.c (pass_ipa_pure_const): Update.
23581         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
23582         Update.
23583         * ipa-inline.c (pass_ipa_inline): Update.
23584         * ipa.c (pass_ipa_whole_program): Update.
23585         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
23586         * passes.c (ipa_write_summaries_1): Do not test wpa.
23587         (ipa_write_optimization_summaries_1): New.
23588         (ipa_write_optimization_summaries): New.
23589         (ipa_read_summaries): Do not test ltrans.
23590         (ipa_read_optimization_summaries_1): New.
23591         (ipa_read_optimization_summaries): New.
23592
23593 2010-04-21  Jan Hubicka  <jh@suse.cz>
23594
23595         * lto-cgraph.c (lto_output_node): Do not output comdat groups
23596         for boundary nodes.
23597         (output_cgraph): Do not arrange comdat groups for boundary nodes.
23598
23599 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
23600
23601         PR debug/40040
23602         * dwarf2out.c (add_name_and_src_coords_attributes): Add
23603         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
23604
23605 2010-04-21  Jan Hubicka  <jh@suse.cz>
23606
23607         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
23608
23609 2010-04-21  Jan Hubicka  <jh@suse.cz>
23610
23611         * varpool.c (decide_is_variable_needed): Variable is always needed
23612         during ltrans.
23613
23614 2010-04-21  Jan Hubicka  <jh@suse.cz>
23615
23616         * opts.c (decode_options): Enable pure-const pass for whopr.
23617
23618 2010-04-21  Jan Hubicka  <jh@suse.cz>
23619
23620         * cgraph.c (dump_cgraph_node): Dump also assembler name.
23621         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
23622         at WPA dumping.
23623         (cgraph_decide_inlining): Do not expect callee to be removed in all
23624         cases.
23625
23626 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
23627
23628         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
23629
23630 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
23631
23632         * config/i386/i386.md (x86_shrd): Add athlon_decode and
23633         amdfam10_decode attributes.
23634
23635 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
23636
23637         PR middle-end/43570
23638         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
23639         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
23640         (lower_copyprivate_clauses): Use private var in outer
23641         context instead of original var.  Make sure the types
23642         are correct for VLAs.
23643
23644 2010-04-21  Richard Guenther  <rguenther@suse.de>
23645
23646         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
23647         to non-pointer objects.
23648
23649 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
23650
23651         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
23652         last chain entry if it starts with the still current label.
23653         (add_location_or_const_value_attribute): Check that
23654         loc_list->first->next is NULL instead of comparing ->first with ->last.
23655         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
23656         to add_var_loc_to_decl.
23657
23658         * dwarf2out.c (output_call_frame_info): For dw_cie_version
23659         >= 4 add also address size and segment size fields into CIE header.
23660
23661         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
23662         long as address size is the same as sizeof (void *) and
23663         segment size is 0.
23664         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
23665         address size or segment size is unexpected, return DW_EH_PE_omit.
23666         (classify_object_over_fdes): If get_cie_encoding returned
23667         DW_EH_PE_omit, return -1.
23668         (init_object): If classify_object_over_fdes returned -1,
23669         pretend there were no FDEs at all.
23670
23671 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
23672
23673         * config/i386/i386.md (bswap<mode>2): Macroize expander from
23674         bswap{si,di}2 using SWI48 mode iterator.
23675         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
23676         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
23677         set modrm attribute of bswap insn to 0 and remove length attribute.
23678         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
23679         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
23680         set mode attribute to <MODE> and remove length attribute.
23681
23682 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
23683
23684         PR rtl-optimization/43520
23685         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
23686         zero available registers.
23687
23688 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23689
23690         * builtins.c (fold_builtin_cproj): Fold more cases.
23691
23692 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23693
23694         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
23695         (fold_builtin_1): Fold builtin cproj.
23696         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
23697         Use ATTR_CONST_NOTHROW_LIST.
23698
23699 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
23700
23701         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
23702         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
23703         ffsi2_no_cmove for !TARGET_CMOVE.
23704         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
23705         (ffssi2): Remove expander.
23706         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
23707         mode iterator.
23708         (ctz<mode>2): Ditto from ctz{si,di}2.
23709         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
23710         mode iterator.
23711         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
23712         mode iterator.
23713
23714 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
23715
23716         * dwarf2out.c (AT_linkage_name): Define.
23717         (clone_as_declaration): Handle DW_AT_linkage_name.
23718         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
23719         of DW_AT_MIPS_linkage_name.
23720         (move_linkage_attr): Likewise.
23721         (dwarf2out_finish): Likewise.
23722
23723 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
23724
23725         PR middle-end/41952
23726         * fold-const.c (fold_comparison): New folding rule.
23727
23728 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
23729
23730         * double-int.h (double_int_setbit): Declare.
23731         * double-int.c (double_int_setbit): New function.
23732         * rtl.h (immed_double_int_const): Declare.
23733         * emit-rtl.c (immed_double_int_const): New function.
23734         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
23735         and immed_double_int_const functions.
23736         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
23737         expand_copysign_bit): (Ditto.).
23738         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
23739         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
23740         * dojump.c (prefer_and_bit_test): (Ditto.).
23741         * expr.c (convert_modes, reduce_to_bit_field_precision,
23742         const_vector_from_tree): (Ditto.).
23743         * expmed.c (mask_rtx, lshift_value): (Ditto.).
23744
23745 2010-04-20  Jan Hubicka  <jh@suse.cz>
23746
23747         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
23748         (dump_cgraph_node): Dump new flags.
23749         * cgraph.h (struct cgraph_node): Add flags
23750         reachable_from_other_partition and in_other_partition.
23751         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
23752         other partition can not be removed.
23753         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
23754         the other partition must be output; silence sanity checking on
23755         leaking functions bodies from other paritition.
23756         * lto-cgraph.c (reachable_from_other_partition_p): New function.
23757         (lto_output_node): Output new flags; do not sanity check that inline
23758         clones are output; drop lto_forced_extern_inline_p code; do not mock
23759         visibility flags at partition boundaries.
23760         (add_node_to): New function.
23761         (output_cgraph): Use it to sort functions so masters appear before
23762         clones.
23763         (input_overwrite_node): Input new flags.
23764         * passes.c (ipa_write_summaries): Do not call
23765         lto_new_extern_inline_states.
23766         * lto-section-out.c (forced_extern_inline,
23767         lto_new_extern_inline_states lto_delete_extern_inline_states,
23768         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
23769         * lto-streamer.h (lto_new_extern_inline_states,
23770         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
23771         lto_forced_extern_inline_p): Kill.
23772
23773 2010-04-20  Richard Guenther  <rguenther@suse.de>
23774
23775         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
23776         from vars that can have pointers.
23777         (process_constraint): Dump useless constraints.
23778
23779 2010-04-20  Richard Guenther  <rguenther@suse.de>
23780
23781         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
23782         (dump_sa_points_to_info): Remove asserts.
23783         (init_base_vars): nothing_id isn't an escape point nor does it
23784         have pointers.
23785
23786 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
23787
23788         * tree.h (TYPE_REF_IS_RVALUE): Define.
23789         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
23790         should_move_die_to_comdat, prune_unused_types_walk): Handle
23791         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
23792         (modified_type_die, gen_reference_type_die): Emit
23793         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
23794         if TYPE_REF_IS_RVALUE and -gdwarf-4.
23795
23796 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23797
23798         PR target/43635
23799         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
23800         calls for -fpic -m31 if they have been sibcall optimized.
23801
23802 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
23803
23804         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
23805         ar.lc fixed and call-used.
23806
23807         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
23808
23809 2010-04-19  Jan Hubicka  <jh@suse.cz>
23810
23811         * opts.c (decode_options): Disable whpr incompatible passes.
23812         * lto/lto.c (lto_1_to_1_map): Skip clones.
23813         (read_cgraph_and_symbols): Do not mark everything as needed.
23814         (do_whole_program_analysis): Do map only after optimizing;
23815         set proper cgraph_state; use passmanager.
23816
23817 2010-04-19  DJ Delorie  <dj@redhat.com>
23818
23819         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
23820         POINTER_PLUS_EXPR and fix them.
23821
23822 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
23823
23824         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
23825         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
23826         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
23827         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
23828         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
23829         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
23830         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
23831         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
23832         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
23833         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
23834         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
23835
23836 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
23837
23838         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
23839         (check_cond_move_block): Likewise.
23840         (cond_move_process_if_block): Likewise.
23841         (noce_find_if_block): Improve formatting.
23842         (find_if_header): Pass 0 to memset and tweak conditions.
23843         (cond_exec_find_if_block): Fix long lines and tweak conditions.
23844
23845 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
23846
23847         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
23848         for -gdwarf-4.
23849
23850         PR middle-end/43337
23851         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
23852         with non-local decl doesn't need chain.
23853
23854 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
23855
23856         * ira-color.c (allocno_reload_assign): Avoid accumulating
23857         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
23858
23859 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23860
23861         * gimple.h (create_tmp_reg): Declare.
23862         * gimplify.c (create_tmp_reg): New function.
23863         (gimplify_return_expr): Use create_tmp_reg.
23864         (gimplify_omp_atomic): Likewise.
23865         (gimple_regimplify_operands): Likewise.
23866         * tree-dfa.c (make_rename_temp): Likewise.
23867         * tree-predcom.c (predcom_tmp_var): Likewise.
23868         (reassociate_to_the_same_stmt): Likewise.
23869         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
23870         (get_replaced_param_substitute): Likewise.
23871         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
23872         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
23873         * tree-ssa-pre.c (get_representative_for): Likewise.
23874         (create_expression_by_pieces): Likewise.
23875         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
23876         (create_tailcall_accumulator): Likewise.
23877
23878 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23879
23880         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
23881         new_stmt.
23882         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
23883
23884 2010-04-19  Richard Guenther  <rguenther@suse.de>
23885
23886         PR tree-optimization/43796
23887         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
23888         from SCEV in the lattice.
23889         (vrp_visit_phi_node): Dump change.
23890
23891 2010-04-19  Richard Guenther  <rguenther@suse.de>
23892
23893         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
23894         * configure: Re-generated.
23895
23896 2010-04-19  Richard Guenther  <rguenther@suse.de>
23897
23898         PR tree-optimization/43783
23899         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
23900         constant ARRAY_REF operands two and three if possible.
23901
23902 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
23903
23904         PR target/43766
23905         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
23906
23907 2010-04-19  Jie Zhang  <jie@codesourcery.com>
23908
23909         PR target/43662
23910         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
23911
23912 2010-04-19  Ira Rosen  <irar@il.ibm.com>
23913
23914         PR tree-optimization/37027
23915         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
23916         and macro to access it.
23917         (vectorizable_reduction): Add argument.
23918         (vect_get_slp_defs): Likewise.
23919         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
23920         statements for possible use in SLP.
23921         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
23922         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
23923         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
23924         add new argument.
23925         (vectorizable_reduction): Likewise.
23926         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
23927         vect_get_slp_defs.
23928         (vectorizable_type_demotion, vectorizable_type_promotion,
23929         vectorizable_store): Likewise.
23930         (vect_analyze_stmt): Update call to vectorizable_reduction.
23931         (vect_transform_stmt): Likewise.
23932         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
23933         (vect_build_slp_tree): Fix indentation. Check that there are no loads
23934         from different interleaving chains in same node.
23935         (vect_slp_rearrange_stmts): New function.
23936         (vect_supported_load_permutation_p): Allow load permutations for
23937         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
23938         inside SLP nodes if necessary.
23939         (vect_analyze_slp_instance): Handle reductions.
23940         (vect_analyze_slp): Try to build SLP instances originating from groups
23941         of reductions.
23942         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
23943         (vect_get_constant_vectors): Create initial vectors for reductions
23944         according to reduction code. Add new argument.
23945         (vect_get_slp_defs): Add new argument, pass it to
23946         vect_get_constant_vectors.
23947         (vect_schedule_slp_instance): Remove SLP tree root statements.
23948
23949 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
23950
23951         * tree.h (ENUM_IS_SCOPED): Define.
23952         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
23953         for ENUM_IS_SCOPED enums.
23954
23955 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
23956
23957         * fold-const.c (fold_comparison): Use ssizetype.
23958         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23959         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
23960         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
23961         * tree-object-size.c (compute_object_sizes): Use size_type_node.
23962
23963         * tree.h (initialize_sizetypes): Remove parameter.
23964         (build_common_tree_nodes): Remove second parameter.
23965         * stor-layout.c (initialize_sizetypes): Remove parameter.
23966         Always create an unsigned type.
23967         (set_sizetype): Assert that the passed type is unsigned and simplify.
23968         * tree.c (build_common_tree_nodes): Remove second parameter.
23969         Adjust call to initialize_sizetypes.
23970         * c-decl.c (c_init_decl_processing): Remove second argument in call to
23971         build_common_tree_nodes.
23972
23973 2010-04-18  Matthias Klose  <doko@ubuntu.com>
23974
23975         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
23976
23977 2010-04-18  Ira Rosen  <irar@il.ibm.com>
23978
23979         PR tree-optimization/43771
23980         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
23981         load permutation doesn't have gaps.
23982
23983 2010-04-18  Jan Hubicka  <jh@suse.cz>
23984
23985         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
23986         (sse_prologue_save_insn expander): Use new pattern.
23987         (sse_prologue_save_insn1): New pattern and splitter.
23988         (sse_prologue_save_insn): Update to deal also with 64bit aligned
23989         blocks.
23990         * i386.c (setup_incoming_varargs_64): Do not compute jump
23991         destination here.
23992         (ix86_gimplify_va_arg): Update alignment needed.
23993         (ix86_local_alignment): Do not align all local arrays to 128bit.
23994
23995 2010-04-17  Jan Hubicka  <jh@suse.cz>
23996
23997         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
23998
23999 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
24000
24001         * arm.md (negdi2): Remove redundant code to force values into a
24002         register.
24003
24004 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
24005
24006         * arm/bpabi.S: Add EABI alignment attributes to objects.
24007         * arm/bpabi-v6m.S: Likewise.
24008         * arm/crti.asm: Likewise.
24009         * arm/crtn.asm: Likewise.
24010         * arm/lib1funcs.asm: Likewise.
24011         * arm/libunwind.S: Likewise.
24012
24013 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
24014
24015         * arm-protos.h (tune_params): New structure.
24016         * arm.c (current_tune): New variable.
24017         (arm_constant_limit): Delete.
24018         (struct processors): Add pointer to the tune parameters.
24019         (arm_slowmul_tune): New tuning option.
24020         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
24021         (all_cores): Adjust to pick up the tuning model.
24022         (arm_constant_limit): New function.
24023         (arm_override_options): Select the appropriate tuning model.  Delete
24024         initialization of arm_const_limit.
24025         (arm_split_constant): Use the new constant-limit model.
24026         (arm_rtx_costs): Pick up the current tuning model.
24027         * arm.md (is_strongarm, is_xscale): Delete.
24028         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
24029         for Xscale variant architectures.
24030         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
24031
24032 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24033
24034         * config/arm/arm.c (arm_gen_constant): Remove unused variable
24035         can_shift.
24036         (arm_rtx_costs_1): Remove unused variable extra_cost.
24037         (arm_unwind_emit_set): Use variable offset.
24038         (thumb1_output_casesi): Remove unused variable flags.
24039
24040 2010-04-16  Jeff Law  <law@redhat.com>
24041
24042         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
24043         needing assignment rather than doing a two-phase assignment.  Remove
24044         unused variable 'm'.
24045
24046 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
24047
24048         PR bootstrap/43767
24049         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
24050
24051 2010-04-16  Doug Kwan  <dougkwan@google.com>
24052
24053         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
24054         (next_operand_entry_id): New static variable.
24055         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
24056         (add_to_ops_vec): Assigned unique ID to operand entry.
24057         (struct oecount_s): New field ID.
24058         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
24059         (undistribute_ops_list): Assign unique IDs to oecounts.
24060         (init_reassoc): reset next_operand_entry_id.
24061
24062 2010-04-16  Doug Kwan  <dougkwan@google.com>
24063
24064         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
24065         missing left parenthesis.
24066
24067 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
24068
24069         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
24070         *btdi_rex64 using SWI48 mode iterator.
24071         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
24072         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
24073         *jcc_btdi_mask_rex64.
24074
24075 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
24076
24077         * double-int.h (tree_to_double_int): Convert to macro.
24078         * double-int.c (tree_to_double_int): Remove.
24079
24080 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
24081
24082         PR debug/43762
24083         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
24084         with want_address 2 and in case a single element list might be
24085         possible, call it again with want_address 0.
24086
24087 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24088
24089         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
24090         case 'W' print operands for HI mode.
24091         * config/h8300/h8300.h (Y0, Y2) : New constraints.
24092         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
24093         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
24094         * config/h8300/predicate.md (bit_register_indirect_operand): New.
24095
24096         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
24097
24098         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
24099         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
24100         #xx:3 and #xx:4 mode.
24101
24102         * config/h8300/h8300.md (inverted load with HImode dest): Add
24103         support for H8300SX.
24104
24105         * config/h8300/predicate.md (bit_operand): Allow immediate values that
24106         satisfy 'U' constraint.
24107
24108 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24109
24110         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
24111         * configure: Regenerate.
24112         * config.in: Regenerate.
24113         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
24114         works.
24115
24116 2010-04-16  Richard Guenther  <rguenther@suse.de>
24117
24118         * tree.h (struct tree_decl_minimal): Move pt_uid ...
24119         (struct tree_decl_common): ... here.
24120         (DECL_PT_UID): Adjust.
24121         (SET_DECL_PT_UID): Likewise.
24122         (DECL_PT_UID_SET_P): Likewise.
24123
24124 2010-04-16  Richard Guenther  <rguenther@suse.de>
24125
24126         PR tree-optimization/43572
24127         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
24128         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
24129         * tree-flow.h (is_call_clobbered): Remove.
24130         * tree-flow-inline.h (is_call_clobbered): Likewise.
24131         * tree-dfa.c (dump_variable): Do not dump call clobber state.
24132         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
24133         (execute_return_slot_opt): Adjust.
24134         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
24135         check for call clobbered vars here.
24136         (find_tail_calls): Move tailcall verification to the
24137         proper place.
24138
24139 2010-04-16  Diego Novillo  <dnovillo@google.com>
24140
24141         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
24142
24143 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
24144
24145         PR target/40603
24146         * config/arm/arm.md (cbranchqi4): New pattern.
24147         * config/arm/predicates.md (const0_operand,
24148         cbranchqi4_comparison_operator): New predicates.
24149
24150 2010-04-16  Richard Guenther  <rguenther@suse.de>
24151
24152         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
24153         (dump_gimple_stmt): Likewise.
24154
24155 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
24156
24157         * recog.h (struct recog_data): New field is_operator.
24158         (struct insn_operand_data): New field is_operator.
24159         * recog.c (extract_insn): Set recog_data.is_operator.
24160         * genoutput.c (output_operand_data): Emit code to set the
24161         is_operator field.
24162         * reload.c (find_reloads): Use it rather than testing for an
24163         empty constraint string.
24164
24165         PR target/41514
24166         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
24167         If the previous insn is a cbranchsi4_insn with the same arguments,
24168         omit the compare instruction.
24169
24170         * config/arm/arm.md (addsi3_cbranch): If destination is a high
24171         register, inputs must be low registers and we need a low register
24172         scratch.  Handle alternative 2 like alternative 3.
24173
24174 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
24175
24176         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
24177         don't call get_addr on both.  If one expression is a VALUE and
24178         the other a REG, check VALUE's locs if the REG isn't among them.
24179
24180 2010-04-16  Christian Bruel  <christian.bruel@st.com>
24181
24182         * config/sh/sh.h (sh_frame_pointer_required): New function.
24183         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
24184         (flag_omit_frame_pointer) Set.
24185         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
24186         (rounded_frame_size): Adjust size with outgoing_args_size.
24187         (sh_set_return_address): Must return from stack pointer.
24188         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
24189         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
24190         (ACCUMULATE_OUTGOING_ARGS): Define.
24191         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
24192         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
24193
24194 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
24195
24196         PR target/43471
24197         * config/sh/sh.c (sh_legitimize_reload_address): Use
24198         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
24199         Remove a unneeded check for offset_base.
24200
24201 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
24202
24203         * configure: Regenerated.
24204
24205 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24206
24207         * config/s390/s390.c (s390_call_save_register_used): Switch back
24208         to HARD_REGNO_NREGS.
24209
24210 2010-04-15  Richard Guenther  <rguenther@suse.de>
24211
24212         * alias.c (alias_set_subset_of): Handle alias-set zero
24213         child properly.
24214
24215 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
24216             Julian Brown  <julian@codesourcery.com>
24217
24218         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
24219         alternatives according to use of high and low regs.
24220         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
24221         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
24222         optimizing for size on Thumb-2.
24223
24224 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
24225
24226         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
24227
24228 2010-04-15  Richard Guenther  <rguenther@suse.de>
24229
24230         * tree-ssa-structalias.c (struct variable_info): Add
24231         is_fn_info flag.
24232         (new_var_info): Initialize it.
24233         (dump_constraints): Support printing last added constraints.
24234         (debug_constraints): Adjust.
24235         (dump_constraint_graph): Likewise.
24236         (make_heapvar_for): Check for NULL cfun.
24237         (get_function_part_constraint): New function.
24238         (get_fi_for_callee): Likewise.
24239         (find_func_aliases): Properly implement IPA PTA constraints.
24240         (process_ipa_clobber): New function.
24241         (find_func_clobbers): Likewise.
24242         (insert_into_field_list_sorted): Remove.
24243         (create_function_info_for): Properly allocate vars for IPA mode.
24244         Do not use insert_into_field_list_sorted.
24245         (create_variable_info_for): Properly generate constraints for
24246         global vars in IPA mode.
24247         (dump_solution_for_var): Always dump the solution.
24248         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
24249         (find_what_var_points_to): Adjust.
24250         (pt_solution_set): Change.
24251         (pt_solution_ior_into): New function.
24252         (pt_solution_empty_p): Export.
24253         (pt_solution_includes_global): Adjust.
24254         (pt_solution_includes_1): Likewise.
24255         (pt_solutions_intersect_1): Likewise.
24256         (dump_sa_points_to_info): Check some invariants.
24257         (solve_constraints): Move constraint dumping ...
24258         (compute_points_to_sets): ... here.
24259         (ipa_pta_execute): ... and here.
24260         (compute_may_aliases): Do not re-compute points-to info
24261         locally if IPA info is available.
24262         (ipa_escaped_pt): New global var.
24263         (ipa_pta_execute): Properly implement IPA PTA.
24264         * tree-into-ssa.c (dump_decl_set): Support dumping
24265         decls not in referenced-vars.
24266         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
24267         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
24268         (dump_points_to_solution): Likewise.
24269         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
24270         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
24271         (remap_gimple_stmt): Reset call clobber/use information if necessary.
24272         (copy_decl_to_var): Copy DECL_PT_UID.
24273         (copy_result_decl_to_var): Likewise.
24274         * tree.c (make_node_stat): Initialize DECL_PT_UID.
24275         (copy_node_stat): Copy it.
24276         * tree.h (DECL_PT_UID): New macro.
24277         (SET_DECL_PT_UID): Likewise.
24278         (DECL_PT_UID_SET_P): Likewise.
24279         (struct tree_decl_minimal): Add pt_uid member.
24280         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
24281         (pt_solution_empty_p): Declare.
24282         (pt_solution_set): Adjust.
24283         (ipa_escaped_pt): Declare.
24284         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
24285         * gimple-pretty-print.c (pp_points_to_solution): New function.
24286         (dump_gimple_call): Dump call clobber/use information.
24287         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
24288         * tree-pass.h (TDF_ALIAS): New dump option.
24289         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
24290         * doc/invoke.texi (-fipa-pta): Update documentation.
24291
24292 2010-04-15  Richard Guenther  <rguenther@suse.de>
24293
24294         * Makefile.in (OBJS-common): Add gimple-fold.o.
24295         (gimple-fold.o): New rule.
24296         * tree.h (maybe_fold_offset_to_reference,
24297         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
24298         prototypes ...
24299         * gimple.h: ... here.
24300         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
24301         may_propagate_address_into_dereference): Move prototypes ...
24302         * gimple.h: ... here.
24303         * tree-ssa-ccp.c (get_symbol_constant_value,
24304         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
24305         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
24306         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
24307         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
24308         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
24309         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
24310         gimplify_and_update_call_from_tree): Move ...
24311         * gimple-fold.c: ... here.  New file.
24312         (ccp_fold_builtin): Rename to ...
24313         (gimple_fold_builtin): ... this.
24314         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
24315
24316 2010-04-15  Richard Guenther  <rguenther@suse.de>
24317
24318         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
24319         fit_double_type, force_fit_type_double, add_double_with_sign,
24320         neg_double, mul_double_with_sign, lshift_double, rshift_double,
24321         lrotate_double, rrotate_double, div_and_round_double): Move ...
24322         * double-int.c: ... here.
24323         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
24324         add_double, neg_double, mul_double_with_sign, mul_double,
24325         lshift_double, rshift_double, lrotate_double, rrotate_double,
24326         div_and_round_double): Move prototypes ...
24327         * double-int.h: ... here.
24328
24329 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
24330
24331         PR target/43742
24332         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
24333         matching constraints to ensure inputs match the output.
24334
24335 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
24336
24337         PR target/43742
24338         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
24339         in an input-only operand.
24340
24341 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
24342
24343         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
24344         (double_int_not, double_int_lshift, double_int_rshift): Declare.
24345         (double_int_negative_p): Convert to static inline function.
24346         * double-int.c (double_int_lshift, double_int_lshift): New functions.
24347         (double_int_negative_p): Remove.
24348         * tree.h (lshift_double, rshift_double):
24349         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
24350         * fold-const.c (fold_convert_const_int_from_real,
24351         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
24352         (lshift_double): Change type of arith argument to bool.
24353         (rshift_double): Change type of arith argument to bool. Correct
24354         comment.
24355         * expmed.c (mask_rtx, lshift_value): (Ditto.).
24356
24357 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
24358
24359         PR target/21803
24360         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
24361         at the start and end of the then/else blocks, and omit them from the
24362         conversion.
24363         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
24364         argument; all callers changed.  Pass zero to old_insns_match_p instead.
24365         (flow_find_head_matching_sequence): New function.
24366         (old_insns_match_p): Check REG_EH_REGION notes for calls.
24367         * basic-block.h (flow_find_cross_jump,
24368         flow_find_head_matching_sequence): Declare functions.
24369
24370 2010-04-14  Jason Merrill  <jason@redhat.com>
24371
24372         PR c++/36625
24373         * c-common.c (attribute_takes_identifier_p): New fn.
24374         * c-common.h: Declare it.
24375
24376 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
24377
24378         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
24379         splitter condition.
24380         (*udivmod<mode>4): Ditto.
24381
24382 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
24383
24384         * config/i386/i386.md (maxmin_int): Rename code attribute from
24385         maxminiprefix and update all users.
24386         (maxmin_float): Ditto from maxminfprefix.
24387         (logic): Ditto from logicprefix.
24388         (absneg_mnemonic): Ditto from absnegprefix.
24389         * config/i386/mmx.md: Update all users of maxminiprefix,
24390         maxminfprefix and logicprefix for rename.
24391         * config/i386/sse.md: Ditto.
24392         * config/i386/sync.md (sync_<code><mode>): Update for
24393         logicprefix rename.
24394
24395 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24396
24397         PR 42966
24398         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
24399         warnings converted to errors.
24400
24401 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
24402
24403         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
24404         used insn_type variable.
24405         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
24406         to avoid set-but-not-used warning.
24407
24408 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
24409
24410         * df-core.c (df_ref_debug): Change format string placeholder
24411         from 0x%x to %#x.
24412         * dwarf2asm.c (dw2_asm_output_data_raw,
24413         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
24414         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
24415         * dwarf2out.c (output_cfi, output_cfi_directive,
24416         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
24417         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
24418         Ditto.
24419         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
24420         * print-rtl.c (print_rtx): Ditto.
24421
24422 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24423
24424         PR middle-end/42694
24425         * builtins.c (expand_builtin_pow_root): New function to expand pow
24426         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
24427         series of sqrt and cbrt calls under -ffast-math.
24428         (expand_builtin_pow): Call it.
24429
24430 2010-04-14  Michael Matz  <matz@suse.de>
24431
24432         PR tree-optimization/42963
24433         * tree-cfg.c (touched_switch_bbs): New static variable.
24434         (group_case_labels_stmt): New function broken out from ...
24435         (group_case_labels): ... here, use the above.
24436         (start_recording_case_labels): Allocate touched_switch_bbs.
24437         (end_recording_case_labels): Deallocate it, call
24438         group_case_labels_stmt.
24439         (gimple_redirect_edge_and_branch): Remember index of affected BB.
24440
24441 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
24442
24443         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
24444         from insn template.
24445
24446 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
24447
24448         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
24449
24450 2010-04-13  Jan Hubicka  <jh@suse.cz>
24451
24452         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
24453         of optimized out static functions.
24454         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
24455         cost computation.  Also sanity check for overflows.
24456         (update_caller_keys): Update cgraph_edge_badness call; properly
24457         update fibheap and sanity check that it is up to date.
24458         (add_new_edges_to_heap): Update cgraph_edge_badness.
24459         (cgraph_decide_inlining_of_small_function): Likewise;
24460         add sanity checking that badness in heap is up to date;
24461         improve dumping of reason; Update badness of calls to the
24462         offline copy of function currently inlined; dump badness
24463         of functions not inlined because of unit growth limits.
24464
24465 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
24466
24467         PR middle-end/32628
24468         * c-common.c (pointer_int_sum): Disregard overflow that occured only
24469         because of sign-extension change when converting to sizetype here...
24470         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
24471
24472         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
24473         the folding to constants.  Remove redundant final conversion.
24474         (fold_binary) <associate>: Do not associate if the re-association of
24475         constants alone overflows.
24476         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
24477         to the end of the list.
24478         (multiple_of_p) <COND_EXPR>: New case.
24479
24480 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24481
24482         * opt-functions.awk (opt_sanitized_name): New.
24483         (opt_enum): New.
24484         * optc-gen.awk: Use it
24485         * opth-gen.awk: Use it.
24486
24487 2010-04-13  Martin Jambor  <mjambor@suse.cz>
24488
24489         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
24490         (sra_modify_assign): Delete stmts loading dead data even if racc has no
24491         children.  Call replace_uses_with_default_def_ssa_name to handle
24492         SSA_NAES on lhs.
24493
24494 2010-04-13  Michael Matz  <matz@suse.de>
24495
24496         PR middle-end/43730
24497         * builtins.c (expand_builtin_interclass_mathfn): Also create
24498         a register if the predicate doesn't match.
24499
24500 2010-04-13  Diego Novillo  <dnovillo@google.com>
24501
24502         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
24503         * c-pch.c: Include timevar.h.
24504         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
24505         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
24506         * ggc-common.c: Include timevar.h.
24507         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
24508         * timevar.def (TV_PCH_SAVE): Define.
24509         (TV_PCH_CPP_SAVE): Define.
24510         (TV_PCH_PTR_REALLOC): Define.
24511         (TV_PCH_PTR_SORT): Define.
24512         (TV_PCH_RESTORE): Define.
24513         (TV_PCH_CPP_RESTORE): Define.
24514
24515 2010-04-13  Michael Matz  <matz@suse.de>
24516
24517         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
24518         into MINUS_EXPRs.
24519         (can_reassociate_p): New function.
24520         (break_up_subtract_bb, reassociate_bb): Use it.
24521
24522 2010-04-13  Richard Guenther  <rguenther@suse.de>
24523
24524         PR bootstrap/43737
24525         * builtins.c (c_readstr): Fix assert.
24526
24527 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
24528
24529         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
24530         when generating cltd insn.
24531
24532         (*ashl<mode>3_1): Remove special handling for register operand 2.
24533         (*ashlsi3_1_zext): Ditto.
24534         (*ashlhi3_1): Ditto.
24535         (*ashlhi3_1_lea): Ditto.
24536         (*ashlqi3_1): Ditto.
24537         (*ashlqi3_1_lea): Ditto.
24538         (*<shiftrt_insn><mode>3_1): Ditto.
24539         (*<shiftrt_insn>si3_1_zext): Ditto.
24540         (*<shiftrt_insn>qi3_1_slp): Ditto.
24541         (*<rotate_insn><mode>3_1): Ditto.
24542         (*<rotate_insn>si3_1_zext): Ditto.
24543         (*<rotate_insn>qi3_1_slp): Ditto.
24544
24545 2010-04-13  Richard Guenther  <rguenther@suse.de>
24546
24547         * tree-ssa-structalias.c (callused_id): Remove.
24548         (call_stmt_vars): New.
24549         (get_call_vi): Likewise.
24550         (lookup_call_use_vi): Likewise.
24551         (lookup_call_clobber_vi): Likewise.
24552         (get_call_use_vi): Likewise.
24553         (get_call_clobber_vi): Likewise.
24554         (make_transitive_closure_constraints): Likewise.
24555         (handle_const_call): Adjust to do per-call call-used handling.
24556         (handle_pure_call): Likewise.
24557         (find_what_var_points_to): Remove general callused handling.
24558         (init_base_vars): Likewise.
24559         (init_alias_vars): Initialize call_stmt_vars.
24560         (compute_points_to_sets): Process call-used and call-clobbered
24561         vars for call statements.
24562         (delete_points_to_sets): Free call_stmt_vars.
24563
24564 2010-04-13  Richard Guenther  <rguenther@suse.de>
24565
24566         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24567         Only add RW dependence for dependence distance zero.
24568         Adjust maximal vectorization factor according to dependences.
24569         Move alignment handling ...
24570         (vect_find_same_alignment_drs): ... here.  New function.
24571         (vect_analyze_data_ref_dependences): Adjust.
24572         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
24573         (vect_analyze_data_refs): Adjust minimal vectorization factor
24574         according to data references.
24575         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
24576         dependences before determining the vectorization factor.
24577         Analyze alignment after determining the vectorization factor.
24578         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
24579         dependences before alignment.
24580         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
24581         Adjust prototype.
24582         (vect_analyze_data_refs): Likewise.
24583         (MAX_VECTORIZATION_FACTOR): New define.
24584
24585 2010-04-13  Duncan Sands  <baldrick@free.fr>
24586
24587         * except.h (lang_eh_type_covers): Remove.
24588         * except.c (lang_eh_type_covers): Likewise.
24589
24590 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24591             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24592
24593         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
24594         * config/s390/s390.c: Replace UNTIS_PER_WORD with
24595         UNITS_PER_LONG where it is ABI relevant.
24596         (s390_return_addr_rtx): Likewise.
24597         (s390_back_chain_rtx): Likewise.
24598         (s390_frame_area): Likewise.
24599         (s390_frame_info): Likewise.
24600         (s390_initial_elimination_offset): Likewise.
24601         (save_gprs): Likewise.
24602         (s390_emit_prologue): Likewise.
24603         (s390_emit_epilogue): Likewise.
24604         (s390_function_arg_advance): Likewise.
24605         (s390_function_arg): Likewise.
24606         (s390_va_start): Likewise.
24607         (s390_gimplify_va_arg): Likewise.
24608         (s390_function_profiler): Likewise.
24609         (s390_optimize_prologue): Likewise.
24610         (s390_rtx_costs): Likewise.
24611         (s390_secondary_reload): Likewise.
24612         (s390_promote_function_mode): Likewise.
24613         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
24614         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
24615         registers available.
24616         (s390_unwind_word_mode): New function.
24617         (s390_function_value): Split 64 bit values into register pair if
24618         used as return value.
24619         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
24620         function call parameters.  Handle parallels.
24621         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
24622         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
24623         (DWARF_CIE_DATA_ALIGNMENT): New macro.
24624         (s390_expand_setmem): Remove unused variable src_addr.
24625         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
24626         deal with 64 bit registers.
24627         * config/s390/s390.h: Define __zarch__ predefined macro.
24628         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
24629         (UNITS_PER_LONG): New macro.
24630         * libjava/include/s390-signal.h: Define extended ucontext
24631         structure containing the upper halfs of the 64 bit registers.
24632
24633 2010-04-13  Simon Baldwin  <simonb@google.com>
24634
24635         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
24636
24637 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
24638
24639         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
24640         rvalue on the RHS if the LHS is of a non-renamable type.
24641         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
24642
24643 2010-04-13  Matthias Klose  <doko@ubuntu.com>
24644
24645         * gcc.c (cc1_options): Handle -iplugindir before processing
24646         the cc1 spec. Only add -iplugindir once.
24647         (cpp_unique_options): Add -iplugindir option if -fplugin* options
24648         found.
24649         * common.opt (iplugindir): Remove `Separate' property, initialize.
24650         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
24651         option.
24652         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
24653         (distclean): Remove plugin dir.
24654         * doc/invoke.texi: Document -iplugindir.
24655
24656 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
24657
24658         * doc/plugins.texi (Loading Plugins): Document short
24659         -fplugin=foo option.
24660         (Plugin API): Mention default_plugin_dir_name function.
24661
24662         * gcc.c (find_file_spec_function): Add new declaration.
24663         (static_spec_func): Use it for "find-file".
24664         (find_file_spec_function): Add new function.
24665         (cc1_options): Add -iplugindir option if -fplugin* options found.
24666
24667         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
24668
24669         * plugin.c (add_new_plugin): Updated comment, and handle short
24670         plugin name.
24671         (default_plugin_dir_name): Added new function.
24672
24673         * common.opt (iplugindir): New option to set the plugin directory.
24674
24675 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
24676
24677         * config/i386/i386.md (any_rotate): New code iterator.
24678         (rotate_insn): New code attribute.
24679         (rotate): Ditto.
24680         (SWIM124): New mode iterator.
24681         (<rotate_insn>ti3): New expander.
24682         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
24683         any_rotate code iterator.
24684         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
24685         using any_rotate code iterator and SWIM124 mode iterator.
24686         (ix86_rotlti3): New insn_and_split pattern.
24687         (ix86_rotrti3): Ditto.
24688         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
24689         ix86_rotl{di,ti}3 patterns.
24690         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
24691         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
24692         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
24693         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
24694         code iterator and SWI mode iterator.
24695         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
24696         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
24697         code iterator.
24698         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
24699         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
24700         (bswap rotatert splitter): Add splitter.
24701         (bswap splitter): Macroize splitter using any_rotate code iterator.
24702         Add insn predicate to split only for TARGET_USE_XCHGB or when
24703         optimizing function for size.
24704
24705 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
24706
24707         * config/pa/pa.c (emit_move_sequence): Remove use of
24708         deleted variable flag_argument_noalias.
24709
24710 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24711
24712         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
24713         configurations.
24714         Add to unsupported targets list.
24715         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
24716         sparc*-sun-solaris2.[567]* from target lists.
24717         * configure: Regenerate.
24718         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
24719         removal.
24720         Remove Solaris 7 patch references.
24721         (Specific, sparc-sun-solaris2.7): Removed.
24722         (sparc-sun-solaris2*): Update Solaris 7 example.
24723         (sparc64-*-solaris2*): Likewise.
24724
24725 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24726
24727         * config.build (alpha*-dec-osf4*): Remove.
24728         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
24729         of obsolete configurations.
24730         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
24731         support.
24732         * config/alpha/t-osf4: Renamed to ...
24733         * config/alpha/t-osf5: ... this.
24734         * config/alpha/osf.h: Renamed to ...
24735         * config/alpha/osf5.h: ... this.
24736         Merged old osf5.h contents.
24737         Update comments.
24738         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
24739         (EXTRA_SPECS): Removed.
24740         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
24741         reflect removal of Tru64 UNIX V4.0/V5.0 support.
24742         Document that.
24743
24744 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24745
24746         * doc/contrib.texi (Contributors, Rainer Orth): Update.
24747
24748 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
24749
24750         PR/43702
24751         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
24752         __thiscall convention.
24753
24754 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
24755
24756         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
24757         orig_base.
24758         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
24759
24760 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
24761
24762         * function.c (assign_parms_initialize_all): Add unused attribute
24763         to fntype.
24764
24765 2010-04-12  Richard Guenther  <rguenther@suse.de>
24766
24767         * gsstruct.def (GSS_CALL): New.
24768         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
24769         * gimple.h: Include tree-ssa-alias.h.
24770         (struct gimple_statement_call): New.
24771         (union gimple_statement_struct_d): Add gimple_call member.
24772         (gimple_call_reset_alias_info): Declare.
24773         (gimple_call_use_set): New function.
24774         (gimple_call_clobber_set): Likewise.
24775         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
24776         * gimple.c (gimple_call_reset_alias_info): New function.
24777         (gimple_build_call_1): Call it.
24778         * lto-streamer-in.c (input_gimple_stmt): Likewise.
24779         * tree-inline.c (remap_gimple_stmt): Likewise.
24780         (expand_call_inline): Remove callused handling.
24781         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
24782         * tree-dfa.c (dump_variable): Likewise.
24783         * tree-parloops.c (parallelize_loops): Likewise.
24784         * tree-ssa.c (init_tree_ssa): Likewise.
24785         (delete_tree_ssa): Likewise.
24786         * tree-flow-inline.h (is_call_used): Remove.
24787         * tree-flow.h (struct gimple_df): Remove callused member.
24788         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
24789         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
24790         (ref_maybe_used_by_call_p_1): Simplify.
24791         (call_may_clobber_ref_p_1): Likewise.
24792         * tree-ssa-structalias.c (compute_points_to_sets): Set
24793         the call stmt used and clobbered sets.
24794         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
24795         (find_tail_calls): Verify the tail call.
24796
24797 2010-04-12  Richard Guenther  <rguenther@suse.de>
24798
24799         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
24800         single-iteration always-inline inlining.
24801         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
24802         (cgraph_decide_inlining): Do not handle always-inline specially.
24803         (try_inline): Remove always-inline cycle detection special case.
24804         Do not recurse on always-inlines.
24805         (cgraph_early_inlining): Do not iterate if not optimizing.
24806         (cgraph_gate_early_inlining): remove.
24807         (pass_early_inline): Run unconditionally.
24808         (gate_cgraph_decide_inlining): New function.
24809         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
24810         not inlining or optimizing.
24811         (cgraph_decide_inlining_of_small_functions): Also consider
24812         always-inline functions.
24813         (cgraph_default_inline_p): Return true for nodes which should
24814         disregard inline limits.
24815         (estimate_function_body_sizes): Assume zero size and time for
24816         nodes which are marked as disregarding inline limits.
24817         (cgraph_decide_recursive_inlining): Do not perform recursive
24818         inlining on always-inline nodes.
24819
24820 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
24821
24822         PR bootstrap/43699
24823         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
24824         for exprs satisfying handled_component_p.
24825
24826 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
24827
24828         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
24829         non-constant aggregate elements.
24830
24831         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
24832         is a real initialization.
24833
24834 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
24835
24836         PR c/36774
24837         * c-decl.c (start_function): Move forward check for nested function.
24838
24839 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
24840
24841         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
24842         * config/sh/sh.c: Include reload.h.
24843         (sh_legitimize_reload_address): New.
24844         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
24845         sh_legitimize_reload_address.
24846
24847 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24848
24849         * config/sh/sh.md (*movqi_pop): New insn pattern.
24850         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
24851
24852 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24853
24854         * config/i386/i386.md (any_shiftrt): New code iterator.
24855         (shiftrt_insn): New code attribute.
24856         (shiftrt): Ditto.
24857         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
24858         using any_shiftrt code iterator.
24859         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
24860         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
24861         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
24862         pattern from corresponding peephole2 patterns.
24863         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
24864         using any_shiftrt code iterator.
24865         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
24866         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
24867         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
24868         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
24869         *{ashr,lshr}<mode>3_cmp_zext.
24870         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
24871
24872 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24873
24874         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
24875         scratch register.
24876         (*lshr<mode>3_cconly): Ditto.
24877
24878 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24879
24880         * config/i386/i386.md (lshr<mode>3): Macroize expander from
24881         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24882         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24883         pattern from *lshr{di,ti}3_1 and corresponding splitters using
24884         DWI mode iterator.
24885         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24886         from corresponding peephole2 patterns.
24887         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
24888         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
24889         and *lshrdi3_1_rex64 using SWI mode iterator.
24890         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
24891         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
24892         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
24893         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
24894         and *lshrdi3_cmp_rex64 using SWI mode iterator.
24895         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
24896         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
24897         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
24898         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
24899         SWI mode iterator.
24900
24901 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
24902
24903         * config/i386/i386.md (ashr<mode>3): Macroize expander from
24904         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24905         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24906         pattern from *ashr{di,ti}3_1 and corresponding splitters using
24907         DWI mode iterator.
24908         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24909         from corresponding peephole2 patterns.
24910         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
24911         (ashrsi3_cvt): Rename from ashrsi3_31.
24912         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
24913         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
24914         and x86_64_shift_adj_3 using SWI48 mode iterator.
24915         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
24916         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
24917         and *ashrdi3_1_rex64 using SWI mode iterator.
24918         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
24919         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
24920         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
24921         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
24922         and *ashrdi3_cmp_rex64 using SWI mode iterator.
24923         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
24924         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
24925         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
24926         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
24927         SWI mode iterator.
24928         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
24929         * config/i386/i386.c (ix86_split_ashr): Update for renamed
24930         x86_shift<mode>_adj_3 expanders.
24931
24932 2010-04-10  Wei Guozhi  <carrot@google.com>
24933
24934         PR target/42601
24935         * config/arm/arm.c (arm_pic_static_addr): New function.
24936         (legitimize_pic_address): Call arm_pic_static_addr when it detects
24937         a static symbol.
24938         (arm_output_addr_const_extra): Output expression for new pattern.
24939         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
24940
24941 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
24942
24943         * ira-costs.c (record_reg_classes): Ignore alternatives that are
24944         not enabled.
24945
24946         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
24947         * web.c: Include "insn-config.h" and "recog.h".
24948         (union_match_dups): New function.
24949         (web_main): Call it.
24950         (union_defs): Don't try to recognize match_dups.
24951
24952         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
24953         if doing so would replace the entire pattern.
24954
24955 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24956
24957         PR target/43707
24958         PR target/43709
24959         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
24960         and splitter pattern.  Change splitter operand 1 predicate to
24961         nonmemory_operand.
24962
24963 2010-04-09  Martin Jambor  <mjambor@suse.cz>
24964
24965         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
24966         lattices are addresses of CONST_DECLs with the same initial value.
24967         (ipcp_print_all_lattices): Print values of CONST_DECLs.
24968         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
24969
24970 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
24971             Bernd Schmidt  <bernds@codesourcery.com>
24972
24973         * loop-invariant.c (replace_uses): New static function.
24974         (move_invariant_reg): Use it to ensure we can replace the uses.
24975
24976 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
24977
24978         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
24979         function template.
24980         (picochip_override_options): Enable section anchors only above -O1.
24981         (picochip_reorg): Fixed a couple of build warnings.
24982
24983 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24984
24985         * configure.ac (plugin -rdynamic test): Log result.
24986         * configure: Regenerate.
24987         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
24988         (RDYNAMIC_SPEC): Define.
24989         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
24990
24991 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24992
24993         * configure.ac: Determine Sun ld version numbers.
24994         (comdat_group): Restrict GNU ld version checks to gld.
24995         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
24996         (enable_comdat): Support --enable-comdat.
24997         * configure: Regenerate.
24998         * doc/install.texi (Configuration): Document --enable-comdat.
24999
25000 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25001
25002         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
25003         * config/sol2-gld.h: ... here.
25004         * config.gcc (sparc*-*-solaris2*): Reflect this.
25005         (i[34567]86-*-solaris2*): Use it.
25006
25007 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
25008
25009         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
25010         setup_clocks_p.
25011         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
25012
25013 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25014
25015         PR 42965
25016         * diagnostic.c (diagnostic_initialize): Initialize
25017         some_warnings_are_errors.
25018         (diagnostic_finish): New.
25019         (diagnostic_action_after_output): Call it before exiting.
25020         (diagnostic_report_diagnostic): Do not print message here. Set
25021         some_warnings_are_errors.
25022         * diagnostic.h (diagnostic_context): Delete
25023         issue_warnings_are_errors_message. Add some_warnings_are_errors.
25024         (diagnostic_finish): Declare.
25025         * toplev.c (toplev_main): Call it before exit.
25026
25027 2010-04-09  Jason Merrill  <jason@redhat.com>
25028
25029         PR c++/42623
25030         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
25031         for incomplete type.
25032
25033         PR c++/41788
25034         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
25035         based on a warning flag.
25036
25037 2010-04-09  Richard Guenther  <rguenther@suse.de>
25038
25039         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
25040
25041 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
25042
25043         PR bootstrap/43684
25044         * varasm.c (default_assemble_visibility): Wrap vars that are
25045         set, but unused, by targets without GAS.
25046         * config/rs6000/rs6000.c (paired_emit_vector_compare):
25047         Remove set, but unused, vars.
25048         (rs6000_legitimize_tls_address): Likewise.
25049         (altivec_expand_dst_builtin): Likewise.
25050         * config/darwin.c (machopic_classify_symbol): Likewise.
25051         (machopic_indirection_name): Likewise.
25052
25053 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
25054
25055         * config/i386/i386.md (DWI): New mode iterator.
25056         (S): New mode attribute.
25057         (shift_operand): Ditto.
25058         (shift_immediate_operand): Ditto.
25059         (ashl_input_operand): Ditto.
25060         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
25061         using SDWIM mode iterator.
25062         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
25063         pattern from *ashl{di,ti}3_1 and corresponding splitters using
25064         DWI mode iterator.
25065         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
25066         from corresponding peephole2 patterns.
25067         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
25068         and x86_64_shift_adj_1 using SWI48 mode iterator.
25069         (x86_shift<mode>_adj_2): Ditto.
25070         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
25071         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
25072         using SWI48 mode iterator.
25073         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
25074         *ashldi3_cmp_rex64 using SWI mode iterator.
25075         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
25076         *ashldi3_cconly_rex64 using SWI mode iterator.
25077         * config/i386/i386.c (ix86_split_ashl): Update for renamed
25078         x86_shift<mode>_adj_{1,2}.
25079         (ix86_split_ashr): Ditto.
25080         (ix86_split_lshr): Ditto.
25081
25082 2010-04-09  Richard Guenther  <rguenther@suse.de>
25083
25084         * target.h (builtin_conversion): Pass in input and output types.
25085         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
25086         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
25087         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
25088         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
25089
25090         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
25091         Handle AVX modes.
25092         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
25093
25094 2010-04-09  Richard Guenther  <rguenther@suse.de>
25095
25096         PR target/43152
25097         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
25098
25099 2010-04-09  Richard Guenther  <rguenther@suse.de>
25100
25101         * tree-vectorizer.h (struct _stmt_vec_info): Document
25102         that vectype is the type of the LHS.
25103         (supportable_widening_operation, supportable_narrowing_operation):
25104         Get both input and output vector types as arguments.
25105         (vect_is_simple_use_1): Declare.
25106         (get_same_sized_vectype): Likewise.
25107         * tree-vect-loop.c (vect_determine_vectorization_factor):
25108         Set STMT_VINFO_VECTYPE to the vector type of the def.
25109         (vectorizable_reduction): Adjust.
25110         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
25111         Adjust.  Specify the output vector type.
25112         (vect_pattern_recog_1): Adjust.
25113         * tree-vect-stmts.c (get_same_sized_vectype): New function.
25114         (vectorizable_call): Adjust.
25115         (vectorizable_conversion): Likewise.
25116         (vectorizable_operation): Likewise.
25117         (vectorizable_type_demotion): Likewise.
25118         (vectorizable_type_promotion): Likewise.
25119         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
25120         the def.
25121         (vect_is_simple_use_1): New function.
25122         (supportable_widening_operation): Get both input and output
25123         vector types.
25124         (supportable_narrowing_operation): Likewise.
25125         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
25126
25127 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
25128
25129         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
25130         __thiscall and _thiscall as predefined macros.
25131         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
25132         thiscall attribute handling.
25133         (ix86_comp_type_attributes): Likewise.
25134         (ix86_function_regparm): Likewise.
25135         (ix86_return_pops_args): Likewise.
25136         (init_cumulative_args): Likewise.
25137         (find_drap_reg): Likewise.
25138         (ix86_static_chain): Likewise.
25139         (x86_this_parameter): Likewise.
25140         (x86_output_mi_thunk): Likewise.
25141         (ix86_attribute_table): Add description for thiscall attribute.
25142         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
25143         * doc/extend.texi: Add documentation for thiscall.
25144
25145 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25146
25147         PR c++/28584
25148         * c.opt (Wint-to-pointer-cast): Available in C++.
25149         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
25150
25151 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
25152
25153         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
25154         * calls.c (expand_call): Pass the function type to aggregate_value_p.
25155         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
25156         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
25157         function type instead.  Reorder and simplify checks.
25158
25159         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
25160
25161 2010-04-08  Jing Yu  <jingyu@google.com>
25162             Zdenek Dvorak  <ook@ucw.cz>
25163
25164         PR tree-optimization/42720
25165         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
25166         loop unswitch conditions here from ...
25167         (tree_unswitch_single_loop): ... here.
25168
25169 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
25170
25171         * tree-if-conv.c: Fix comments and simplify logic.
25172
25173 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
25174
25175         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
25176         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
25177         (main_tree_if_conversion): Update call to tree_if_conversion.
25178
25179 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25180
25181         PR 42485
25182         * doc/invoke.texi (-b,-V): Delete.
25183         * doc/tm.texi: Do not mention -b.
25184         * gcc.c (display_help): Delete -b and -V.
25185         (process_command): Delete -b and -V.
25186         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
25187
25188 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
25189             Wolfgang Gellerich  <gellerich@de.ibm.com>
25190
25191         Implement target hook for loop unrolling
25192         * target.h (loop_unroll_adjust): Add a new target hook function.
25193         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
25194         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
25195         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
25196         (s390_loop_unroll_adjust): Implement the new target hook for s390.
25197         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
25198         target hook.
25199         (decide_unroll_stupid): Likewise.
25200
25201 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25202
25203         PR target/43643
25204         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
25205
25206 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25207
25208         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
25209         (Specific, *-*-solaris2*): Likewise.
25210         Don't prefer Sun as over GNU as.
25211
25212 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
25213
25214         * config/s390/s390.c (override_options): Adjust the z10 defaults
25215         for max-unroll-times, max-completely-peeled-insns
25216         and max-completely-peel-times.
25217
25218 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25219
25220         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
25221         instructions for z10.
25222         (s390_expand_setmem): Likewise.
25223         (s390_expand_cmpmem): Likewise.
25224
25225 2010-04-08  Richard Guenther  <rguenther@suse.de>
25226
25227         PR tree-optimization/43679
25228         * tree-ssa-pre.c (eliminate): Only propagate copies.
25229
25230 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
25231
25232         PR bootstrap/43681
25233         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
25234         set but not used variable warning.
25235
25236 2010-04-08  Wei Guozhi  <carrot@google.com>
25237
25238         PR target/41653
25239         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
25240         (arm_size_rtx_costs): Call the new function when optimized for size.
25241
25242 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
25243
25244         PR debug/43670
25245         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
25246         op0 is not a MEM, just return NULL instead of assertion
25247         failure.
25248         (discover_nonconstant_array_refs): Don't walk debug stmts.
25249
25250 2010-04-08  Doug Kwan  <dougkwan@google.com>
25251
25252         * configure.ac: Recognize gold and do not use its version number
25253         to test ld features.
25254         * configure: Regenerate.
25255
25256 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
25257
25258         PR middle-end/40815
25259         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
25260         (negate_value): Move code to push elements to broken_up_substracts ...
25261         (eliminate_plus_minus_pair): ... here.  Push operands that have no
25262         negative pair to plus_negates.
25263         (repropagate_negates, init_reassoc, fini_reassoc): Update.
25264
25265 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25266
25267         * doc/install.texi (Configuration): Move description of
25268         --enable-lto, --with-libelf*, --enable-gold from Java section to
25269         general section.
25270
25271         * doc/generic.texi (Working with declarations)
25272         (Function Properties, C and C++ Trees): Fix typos.
25273         * doc/sourcebuild.texi (Top Level): Likewise.
25274
25275 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
25276
25277         PR c/18624
25278         * tree.h (DECL_READ_P): Define.
25279         (struct tree_decl_common): Add decl_read_flag.
25280         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
25281         a set but not used warning.
25282         (merge_decls): Merge DECL_READ_P flag.
25283         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
25284         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
25285         * c-common.c (handle_used_attribute, handle_unused_attribute):
25286         Likewise.
25287         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
25288         New prototypes.
25289         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
25290         New functions.
25291         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
25292         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
25293         c_parser_binary_expression, c_parser_cast_expression,
25294         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
25295         Call default_function_array_read_conversion instead of
25296         default_function_array_conversion where needed.
25297         (c_parser_unary_expression, c_parser_conditional_expression,
25298         c_parser_postfix_expression_after_primary, c_parser_initelt):
25299         Likewise.  Call mark_exp_read where needed.
25300         (c_parser_statement_after_labels, c_parser_asm_operands,
25301         c_parser_typeof_specifier, c_parser_sizeof_expression,
25302         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
25303         where needed.
25304         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
25305         New.
25306         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
25307         (warn_unused_but_set_parameter): Default to warn_unused
25308         && extra_warnings.
25309         * doc/invoke.texi: Document -Wunused-but-set-variable and
25310         -Wunused-but-set-parameter.
25311
25312         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
25313         used count variable.
25314         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
25315         when operandN variables aren't used in the body of the expander
25316         or splitter.
25317         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
25318         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
25319         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
25320         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
25321         FOR_EACH_IMM_USE_ON_STMT): Likewise.
25322         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
25323         * tree.c (PROCESS_ARG): Likewise.
25324
25325 2010-04-07  Simon Baldwin  <simonb@google.com>
25326
25327         * diagnostic.h (diagnostic_override_option_index): New macro to
25328         set a diagnostic's option_index.
25329         * c-tree.h (c_cpp_error): Add warning reason argument.
25330         * opts.c (_warning_as_error_callback): New.
25331         (register_warning_as_error_callback): Store callback for
25332         warnings enabled via enable_warning_as_error.
25333         (enable_warning_as_error): Call callback, minor code tidy.
25334         * opts.h (register_warning_as_error_callback): Declare.
25335         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
25336         response to -Werror=.
25337         (c_common_init_options): Register warning_as_error_callback in opts.c.
25338         * common.opt: Add -Wno-cpp option.
25339         * c-common.c (struct reason_option_codes_t): Map cpp warning
25340         reason codes to gcc option indexes.
25341         * (c_option_controlling_cpp_error): New function, lookup the gcc
25342         option index for a cpp warning reason code.
25343         * (c_cpp_error): Add warning reason argument, call
25344         c_option_controlling_cpp_error for diagnostic_override_option_index.
25345         * doc/invoke.texi: Document -Wno-cpp.
25346
25347 2010-04-07  Richard Guenther  <rguenther@suse.de>
25348
25349         * ipa-reference.c (mark_load): Use get_base_address.
25350         (mark_store): Likewise.
25351
25352         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
25353         inserting GIMPLE_NOPs into the IL.
25354         * tree-ssa-structalias.c (get_constraint_for_component_ref):
25355         Explicitly strip handled components and indirect references.
25356
25357         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
25358         folding address expressions.
25359         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
25360         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
25361         operand_equal_p to compare decls.
25362         (ptr_deref_may_alias_decl_p): Likewise.
25363         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
25364         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
25365         Handle reversed comparison ops.
25366         * tree-sra.c (asm_visit_addr): Use get_base_address.
25367         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
25368         * ipa-reference.c (mark_address): Use get_base_address.
25369
25370 2010-04-07  Richard Guenther  <rguenther@suse.de>
25371
25372         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
25373         Propagate constants everywhere.
25374
25375 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
25376
25377         PR debug/43516
25378         * tree.c (MAX_INT_CACHED_PREC): Define.
25379         (nonstandard_integer_type_cache): New array.
25380         (build_nonstandard_integer_type): Cache results for precision
25381         <= MAX_INT_CACHED_PREC.
25382
25383 2010-04-07  Richard Guenther  <rguenther@suse.de>
25384
25385         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
25386         -fargument-noalias-global, -fargument-noalias-anything): Remove.
25387         * common.opt: Likewise.
25388         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
25389         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
25390         (nonoverlapping_memrefs_p): Likewise.
25391         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
25392         * opts.c (common_handle_option): Handle OPT_fargument_alias,
25393         OPT_fargument_noalias, OPT_fargument_noalias_anything and
25394         OPT_fargument_noalias_global for backward compatibility.
25395
25396 2010-04-07  Richard Guenther  <rguenther@suse.de>
25397
25398         PR tree-optimization/43270
25399         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
25400         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
25401         * tree-ssa-pre.c (phi_translate_1): Adjust.
25402         (fully_constant_expression): Split out vn_reference handling to ...
25403         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
25404         Fold reads from constant strings.
25405         (vn_reference_lookup): Handle fully constant references.
25406         (vn_reference_lookup_pieces): Likewise.
25407         * Makefile.in (expmed.o-warn): Add -Wno-error.
25408
25409 2010-04-07  Martin Jambor  <mjambor@suse.cz>
25410
25411         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
25412
25413 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
25414
25415         PR driver/41594
25416         * gcc.c: Add -static-libstdc++ to list of recognized options.
25417
25418 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25419
25420         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
25421
25422 2010-04-07  Richard Guenther  <rguenther@suse.de>
25423
25424         PR middle-end/42617
25425         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
25426         bases build simple mem attributes to retain points-to information.
25427
25428 2010-04-07  Richard Guenther  <rguenther@suse.de>
25429
25430         PR middle-end/42617
25431         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
25432         preserve points-to related information.
25433
25434 2010-04-07  Richard Guenther  <rguenther@suse.de>
25435
25436         PR middle-end/42617
25437         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
25438         discard plain indirect references.
25439         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
25440         * tree.c (tree_nop_conversion): Likewise.
25441
25442 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
25443
25444         PR debug/43628
25445         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
25446
25447 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
25448
25449         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
25450         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
25451
25452 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
25453
25454         * tree-if-conv.c: Fix indentation and comments.
25455
25456 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
25457
25458         * tree-if-conv.c: Sort static functions in topological order.
25459
25460 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
25461
25462         * tree-if-conv.c: Fix indentation and comments.
25463
25464 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
25465
25466         PR middle-end/43519
25467         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
25468         lang_hooks.types.type_for_size instead of
25469         build_nonstandard_integer_type.
25470         When converting an unsigned type to signed, double its precision.
25471         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
25472         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
25473         (graphite_create_new_loop_guard): When ub + 1 wraps around,
25474         use lb <= ub.
25475
25476 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
25477
25478         PR middle-end/43519
25479         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
25480         POINTER_PLUS_EXPR for pointer types.
25481
25482 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
25483
25484         PR middle-end/43519
25485         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
25486         * graphite-clast-to-gimple.c: Include langhooks.h.
25487         (max_signed_precision_type): New.
25488         (max_precision_type): Takes two types as arguments.
25489         (precision_for_value): New.
25490         (precision_for_interval): New.
25491         (gcc_type_for_interval): New.
25492         (gcc_type_for_value): New.
25493         (gcc_type_for_clast_term): New.
25494         (gcc_type_for_clast_red): New.
25495         (gcc_type_for_clast_bin): New.
25496         (gcc_type_for_clast_expr): Split up into several functions.
25497         (gcc_type_for_clast_eq): Rewritten.
25498         (compute_bounds_for_level): New.
25499         (compute_type_for_level_1): New.
25500         (compute_type_for_level): New.
25501         (gcc_type_for_cloog_iv): Removed.
25502         (gcc_type_for_iv_of_clast_loop): Rewritten.
25503         (graphite_create_new_loop): Compute the lower and upper bound types
25504         with gcc_type_for_clast_expr.
25505         (graphite_create_new_loop_guard): Same.
25506         (find_cloog_iv_in_expr): Removed.
25507         (compute_cloog_iv_types_1): Removed.
25508         (compute_cloog_iv_types): Removed.
25509         (gloog): Do not call compute_cloog_iv_types.
25510         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
25511         GBB_CLOOG_IV_TYPES.
25512         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
25513         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
25514         (GBB_CLOOG_IV_TYPES): Removed.
25515
25516 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
25517
25518         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
25519         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
25520         (detect_commutative_reduction): Same.
25521
25522 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
25523
25524         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
25525         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
25526         argument.
25527         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
25528         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
25529         (rewrite_commutative_reductions_out_of_ssa): Same.
25530         * passes.c (execute_function_todo): Call verify_ssa for every pass
25531         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
25532         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
25533         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
25534         with an extra argument.
25535         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
25536         verify_ssa only when the extra argument is true.
25537         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
25538         with an extra argument.
25539         (tree_transform_and_unroll_loop): Same.
25540
25541 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
25542
25543         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
25544         for all the passes of the LNO having LOOP_CLOSED_SSA.
25545         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
25546         * tree-loop-distribution.c (pass_loop_distribution): Same.
25547         * tree-pass.h (TODO_verify_loops): Removed.
25548         * tree-ssa-loop.c (pass_tree_loop_init): Same.
25549         (pass_lim): Same.
25550         (pass_tree_unswitch): Same.
25551         (pass_predcom): Same.
25552         (pass_vectorize): Same.
25553         (pass_linear_transform): Same.
25554         (pass_graphite_transforms): Same.
25555         (pass_iv_canon): Same.
25556         (pass_complete_unroll): Same.
25557         (pass_complete_unrolli): Same.
25558         (pass_parallelize_loops): Same.
25559         (pass_loop_prefetch): Same.
25560         (pass_iv_optimize): Same.
25561
25562 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
25563
25564         PR middle-end/32824
25565         * passes.c (init_optimization_passes): Move pass_lim before
25566         pass_copy_prop and pass_dce_loop.
25567
25568 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
25569
25570         PR target/43667
25571         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
25572         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
25573         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
25574         MULTI_* defines for 4 argument vpermil2p* builtins.
25575
25576 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
25577
25578         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
25579         * config/i386/i386.c (x86_maybe_negate_const_int): New.
25580         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
25581         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
25582         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
25583         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
25584         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
25585         Use x86_maybe_negate_const_int to output insn mnemonic.
25586         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
25587         check from instruction predicate.  Update comments.
25588         * config/i386/sync.md (sync_add<mode>): Use
25589         x86_maybe_negate_const_int to output insn mnemonic.
25590
25591 2010-04-06  Jan Hubicka  <jh@suse.cz>
25592
25593         PR tree-optimization/42906
25594         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
25595         IGNORE_SELF argument.  Set visited_control_parents for fully
25596         processed BBs.
25597         (find_obviously_necessary_stmts): Update call of
25598         mark_control_dependent_edges_necessary.
25599         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
25600
25601 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
25602
25603         * config/i386/i386.md: Remove comment about 'e' and 'E'
25604         operand modifier.
25605
25606 2010-04-06  Richard Guenther  <rguenther@suse.de>
25607
25608         PR tree-optimization/43627
25609         * tree-vrp.c (extract_range_from_unary_expr): Widenings
25610         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
25611         not varying.
25612
25613 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
25614
25615         * BASE-VER: Change to 4.6.0.
25616
25617         PR target/43638
25618         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
25619         handling.
25620
25621 2010-04-06  Richard Guenther  <rguenther@suse.de>
25622
25623         PR middle-end/43661
25624         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
25625
25626 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25627
25628         * doc/invoke.texi (Optimize Options): Document that LTO
25629         won't remove object access purely due to incompatible
25630         declarations.
25631
25632 2010-04-04  Matthias Klose  <doko@ubuntu.com>
25633
25634         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
25635         Initialize variable.
25636
25637 2010-04-03  Richard Guenther  <rguenther@suse.de>
25638
25639         PR middle-end/42509
25640         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
25641         require a non-NULL MEM_OFFSET.
25642
25643 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
25644
25645         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
25646         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
25647         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
25648         config/alpha/predicates.md, config/arm/arm.md,
25649         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
25650         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
25651         config/darwin9.h, config/darwin.c, config/darwin.h,
25652         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
25653         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
25654         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
25655         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
25656         config/mips/mips.md, config/mn10300/mn10300.c,
25657         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
25658         config/rs6000/aix.h, config/rs6000/dfp.md,
25659         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
25660         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
25661         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
25662         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
25663         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
25664         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
25665         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
25666         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
25667         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
25668         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
25669         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
25670         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
25671         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
25672         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
25673         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
25674         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
25675         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
25676         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
25677         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
25678         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
25679         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
25680         opt-functions.awk, opth-gen.awk, params.def, passes.c,
25681         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
25682         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
25683         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
25684         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
25685         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
25686         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
25687         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
25688         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
25689         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
25690         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
25691         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
25692         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
25693         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
25694         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
25695
25696 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25697
25698         PR other/43620
25699         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
25700         * aclocal.m4: Regenerate.
25701
25702 2010-04-02  Richard Guenther  <rguenther@suse.de>
25703
25704         PR tree-optimization/43629
25705         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
25706         if we have seen a constant value.
25707
25708 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
25709
25710         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
25711
25712 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
25713
25714         PR target/43469
25715         * arm.c (legitimize_tls_address): Adjust call to
25716         gen_tls_load_dot_plus_four.
25717         (arm_note_pic_base): New function.
25718         (arm_cannot_copy_insn_p): Use it.
25719         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
25720         constraint.
25721
25722 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25723
25724         PR bootstrap/43531
25725
25726         Revert:
25727         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25728
25729         * Makefile.in ($(out_object_file)): Depend on
25730         gt-$(basename $(notdir $(out_file))).h.
25731
25732 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
25733
25734         * config.gcc (lm32-*-rtems*): Add t-lm32.
25735
25736 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
25737
25738         * config.gcc: Add lm32-*-rtems*.
25739         * config/lm32/rtems.h: New file.
25740
25741 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
25742
25743         PR target/42609
25744         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
25745
25746 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
25747
25748         * dwarf2out.c (output_compilation_unit_header): For
25749         -gdwarf-4 use version 4 instead of version 3.
25750         (output_line_info): For version 4 and above emit additional
25751         maximum ops per insn header field.
25752         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
25753
25754         * dwarf2out.c (is_c_family, is_java): Remove.
25755         (lower_bound_default): New function.
25756         (add_bound_info, gen_descr_array_type_die): Use it.
25757
25758 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
25759
25760         PR debug/43325
25761         * dwarf2out.c (gen_variable_die): Allow debug info for variable
25762         re-declaration when it happens in a function.
25763
25764 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
25765
25766         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
25767         (cgraph_remove_function_insertion_hook): Same.
25768         (cgraph_call_function_insertion_hooks): Same.
25769
25770 2010-04-01  Richard Guenther  <rguenther@suse.de>
25771
25772         PR middle-end/43614
25773         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
25774         and TREE_THIS_VOLATILE.
25775         (copy_ref_info): Likewise.
25776         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
25777         * tree.c (build6_stat): Ignore side-effects of all but arg5
25778         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
25779         TARGET_MEM_REF.
25780
25781 2010-04-01  Richard Guenther  <rguenther@suse.de>
25782
25783         PR tree-optimization/43607
25784         * ipa-type-escape.c (check_call): Do not access non-existing
25785         arguments.
25786
25787 2010-04-01  Richard Guenther  <rguenther@suse.de>
25788
25789         PR middle-end/43602
25790         Revert
25791         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
25792                     Jack Howarth  <howarth@bromo.med.uc.edu>
25793
25794         * tree-profile.c (tree_init_ic_make_global_vars): Make static
25795         variables TLS.
25796
25797 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25798
25799         * doc/install.texi (Prerequisites): Document libelf usability on
25800         IRIX 5/6 and Solaris 2.
25801         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
25802         Update GNU as, GNU ld requirements.
25803         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
25804         Document Sun Studio compiler download.
25805         Update and simplify as, ld recommendations.
25806         (Specific, *-*-solaris2.7): Note obsoletion, removal.
25807
25808 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25809
25810         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
25811         with_tune_32 to pentium4.
25812
25813 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
25814
25815         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
25816
25817 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25818
25819         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
25820         obsoletion, removal.
25821         Update IDO URL.
25822         Document GNU as requirement.
25823         Update configure requirements.
25824         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
25825         Recomment IRIX 6.5.18+.
25826         Document IDF/IDL requirement.
25827         Document GNU as requirement.
25828         Document GNU ld bootstrap failure.
25829         Remove freeware.sgi.com reference.
25830
25831 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25832
25833         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
25834         UNIX V4.0, V5.0 obsoletion, removal.
25835         Remove --with-gc=simple reference.
25836         Update VM requirements during bootstrap.
25837         Remove -oldas bootstrap description.
25838         Update binutils reference.
25839         Remove comparison failure note.
25840
25841 2010-03-31  Richard Guenther  <rguenther@suse.de>
25842             Zdenek Dvorak  <ook@ucw.cz>
25843             Sebastian Pop  <sebastian.pop@amd.com>
25844
25845         PR middle-end/43464
25846         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
25847         with multiple arguments.
25848         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
25849
25850 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25851
25852         * graphite-dependences.c (print_pddr): Call print_pdr with an
25853         extra argument.
25854         * graphite-poly.c (debug_pdr): Add an extra argument for the
25855         verbosity level.
25856         (print_pdr): Same.
25857         (print_pbb_domain): Same.
25858         (print_pbb): Same.
25859         (print_scop_context): Same.
25860         (print_scop): Same.
25861         (print_cloog): Same.
25862         (debug_pbb_domain): Same.
25863         (debug_pbb): Same.
25864         (print_pdrs): Same.
25865         (debug_pdrs): Same.
25866         (debug_scop_context): Same.
25867         (debug_scop): Same.
25868         (debug_cloog): Same.
25869         (print_scop_params): Same.
25870         (debug_scop_params): Same.
25871         (print_iteration_domain): Same.
25872         (print_iteration_domains): Same.
25873         (debug_iteration_domain): Same.
25874         (debug_iteration_domains): Same.
25875         (print_scattering_function): Same.
25876         (print_scattering_functions): Same.
25877         (debug_scattering_function): Same.
25878         (debug_scattering_functions): Same.
25879         * graphite-poly.h (debug_pdr): Update declaration.
25880         (print_pdr): Same.
25881         (print_pbb_domain): Same.
25882         (print_pbb): Same.
25883         (print_scop_context): Same.
25884         (print_scop): Same.
25885         (print_cloog): Same.
25886         (debug_pbb_domain): Same.
25887         (debug_pbb): Same.
25888         (print_pdrs): Same.
25889         (debug_pdrs): Same.
25890         (debug_scop_context): Same.
25891         (debug_scop): Same.
25892         (debug_cloog): Same.
25893         (print_scop_params): Same.
25894         (debug_scop_params): Same.
25895         (print_iteration_domain): Same.
25896         (print_iteration_domains): Same.
25897         (debug_iteration_domain): Same.
25898         (debug_iteration_domains): Same.
25899         (print_scattering_function): Same.
25900         (print_scattering_functions): Same.
25901         (debug_scattering_function): Same.
25902         (debug_scattering_functions): Same.
25903
25904 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25905
25906         * graphite-poly.c (print_scattering_function_1): New.
25907         (print_scattering_function): Call it.
25908         (print_scop_params): Remove spaces at the end of lines.
25909         (print_cloog): New.
25910         (debug_cloog): New.
25911         * graphite-poly.h (print_cloog): Declared.
25912         (debug_cloog): Declared.
25913
25914 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25915
25916         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
25917         in loop->header.
25918         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
25919         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
25920         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
25921         to switch between adding the IV bump in loop->latch or in loop->header.
25922
25923 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25924
25925         * graphite-poly.c (print_scattering_function): Pretty print following
25926         the scoplib format.
25927         (print_pdr): Same.
25928         (print_pbb_domain): Same.
25929         (dump_gbb_cases): Same.
25930         (dump_gbb_conditions): Same.
25931         (print_pdrs): Same.
25932         (print_pbb): Same.
25933         (print_scop_params): Same.
25934         (print_scop_context): Same.
25935         (print_scop): Same.
25936         (print_pbb_body): New.
25937         (lst_indent_to): New.
25938         (print_lst): Start new lines with a #.
25939         * graphite-poly.h (pbb_bb): New.
25940         (pbb_index): Use pbb_bb.
25941         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
25942         disjuncts.
25943         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
25944
25945 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25946
25947         * dwarf2out.c (size_of_die): For -gdwarf-4 use
25948         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
25949         and 0 instead of 1 for dw_val_class_flag.
25950         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
25951         dw_val_class_range_list, dw_val_class_loc_list,
25952         dw_val_class_lineptr and dw_val_class_macptr, use
25953         DW_FORM_flag_present for dw_val_class_flag and
25954         DW_FORM_exprloc for dw_val_class_loc.
25955         (output_die): For -gdwarf-4 print dw_val_class_loc
25956         size as uleb128 instead of 1 or 2 bytes and don't print
25957         anything for dw_val_class_flag.
25958
25959         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
25960         instead of cselib_lookup following by tweaking locs->setting_insn.
25961
25962         PR bootstrap/43596
25963         * cselib.c (cselib_process_insn): Clear cselib_current_insn
25964         even before returning from label, setjmp call or volatile asm
25965         handling.
25966
25967 2010-03-31  Richard Guenther  <rguenther@suse.de>
25968
25969         PR middle-end/43600
25970         * cgraphunit.c (cgraph_output_in_order): Do not allocate
25971         temporary data on stack.
25972
25973 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25974
25975         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
25976         (PUSHSECTION_ASM_OP): Remove.
25977         (POPSECTION_ASM_OP): Remove.
25978         (PUSHSECTION_FORMAT): Remove.
25979         * config/sol2.h (PUSHSECTION_FORMAT): Define.
25980         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
25981         * config/sol2.c (solaris_output_init_fini): Use it.
25982
25983 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25984
25985         PR 43574
25986         * opt-functions.awk (var_type_struct): Use signed char type
25987         for simple variables.
25988
25989 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25990
25991         * config/sol2.c: Include output.h.
25992         (solaris_assemble_visibility): New function.
25993         * config/t-sol2 (sol2.o): Add output.h dependency.
25994         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
25995         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
25996         Redefine.
25997
25998 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25999
26000         PR target/43580
26001         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
26002         V2SImode or XFmode on PRE_DEC.
26003
26004         PR debug/43557
26005         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
26006         BLKmode.
26007
26008 2010-03-31  Jie Zhang  <jie@codesourcery.com>
26009
26010         PR 43562
26011         * reload.h (caller_save_initialized_p): Declare.
26012         * toplev.c (backend_init_target): Don't call
26013         init_caller_save but set caller_save_initialized_p to false.
26014         * caller-save.c (caller_save_initialized_p): Define.
26015         (init_caller_save): Check caller_save_initialized_p.
26016         * ira.c (ira): Call init_caller_save if flag_caller_saves.
26017
26018 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26019
26020         PR target/39048
26021         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
26022         and soft-fp/t-softfp to tmake_file.
26023         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
26024         (LIBGCC2_TF_CEXT): Define.
26025         (TF_SIZE): Define.
26026
26027 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
26028
26029         PR debug/42977
26030         * cselib.c (n_useless_values): Document handling of debug locs.
26031         (n_useless_debug_values, n_debug_values): New variables.
26032         (new_elt_loc_list): Don't add to debug values, keep count.
26033         (promote_debug_loc): New.
26034         (cselib_reset_table): Zero new variables.
26035         (entry_and_rtx_equal_p): Promote debug locs.
26036         (discard_useless_locs): Increment n_useless_debug_values for
26037         debug values.
26038         (remove_useless_values): Adjust n_useless_values and n_debug_values
26039         with n_useless_debug_values.
26040         (add_mem_for_addr): Promote debug locs.
26041         (cselib_lookup_mem): Likewise.
26042         (cselib_lookup_addr): Renamed to...
26043         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
26044         (cselib_log_lookup): ... this.  Turn into...
26045         (cselib_lookup_addr): ... new wrapper.
26046         (cselib_lookup_from_insn): New.
26047         (cselib_invalidate_regno): Increment n_useless_debug_values for
26048         debug values.
26049         (cselib_invalidate_mem): Likewise.
26050         (cselib_process_insn): Take n_deleted and n_debug_values into
26051         account to guard remove_useless_value call.
26052         (cselib_finish): Zero n_useless_debug_values.
26053         * cselib.h (cselib_lookup_from_insn): Declare.
26054         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
26055         (sched_analyze_2): Likewise.
26056
26057 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
26058
26059         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
26060         functions.
26061         (adjust_mems): Replace narrowing SUBREG of expression containing
26062         just PLUS, MINUS, MULT and ASHIFT of registers and constants
26063         with operations in the narrower mode.
26064
26065         PR debug/43593
26066         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
26067         regs_invalidated_by_call instead all call_used_reg_set registers.
26068
26069 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
26070
26071         PR middle-end/43430
26072         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
26073         pointer comparisons with types_compatible_p.
26074         * tree-vect-stmts.c (vectorizable_call): Same.
26075         (vectorizable_condition): Same.
26076
26077 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26078
26079         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
26080         stack check if the mask would be zero.
26081
26082 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
26083             Jack Howarth  <howarth@bromo.med.uc.edu>
26084
26085         * tree-profile.c (tree_init_ic_make_global_vars): Make static
26086         variables TLS.
26087
26088 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
26089
26090         PR other/25232
26091         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
26092         and __unordtf2.
26093         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
26094         Include ___unordxf2 and ___unordtf2.
26095         * config/i386/libgcc-glibc.ver: Do not define inheritance from
26096         GCC_4.4.0 here.
26097
26098 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
26099
26100         * config/lm32/t-lm32: New file.
26101         * config.gcc: Use the above file when targetting lm32.
26102
26103 2010-03-28  Duncan Sands  <baldrick@free.fr>
26104
26105         * Makefile.in (PLUGIN_HEADERS): Add except.h.
26106
26107 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
26108
26109         PR middle-end/43431
26110         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
26111         Improve vectorization cost model diagnostic.
26112
26113 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
26114
26115         PR middle-end/43436
26116         * tree-vect-data-refs.c (vect_analyze_data_refs): When
26117         compute_data_dependences_for_loop returns false, early exit
26118         and output an extra diagnostic for the failed data reference
26119         analysis.
26120
26121 2010-03-29  Richard Guenther  <rguenther@suse.de>
26122
26123         PR tree-optimization/43560
26124         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
26125         (can_sm_ref_p): Treat stores to readonly locations as trapping.
26126
26127 2010-03-29  Jie Zhang  <jie@codesourcery.com>
26128
26129         PR 43564
26130         * toplev.c (process_options): Set optimization_default_node
26131         and optimization_current_node.
26132         * opts.c (decode_options): Don't set optimization_default_node
26133         and optimization_current_node.
26134
26135 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
26136
26137         * config/rtems.h: Abandon -qrtems_debug.
26138
26139 2010-03-28  Jan Hubicka  <jh@suse.cz>
26140
26141         PR tree-optimization/43505
26142         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
26143         map should not be copied.
26144
26145 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26146
26147         PR middle-end/41674
26148         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
26149         cdtors, set DECL_PRESERVE_P.
26150         * ipa.c (cgraph_externally_visible_p): Return true if declaration
26151         should be preseved.
26152
26153 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
26154
26155         PR tree-optimization/43528
26156         * stor-layout.c (place_field): Check that constant fits into
26157         unsigned HWI when skipping calculation of MS bitfield layout.
26158
26159 2010-03-27  Jan Hubicka  <jh@suse.cz>
26160
26161         PR middle-end/43391
26162         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
26163         notice_global_symbol work.
26164
26165 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
26166
26167         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
26168         instead of dwarf2out_decl.
26169         (struct var_loc_node): Remove section_label field.
26170         (dwarf2out_function_decl): New function.
26171         (dwarf2out_var_location): Don't set section_label field.
26172         (dwarf2out_begin_function): Don't empty decl_loc_table here.
26173
26174 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
26175
26176         PR tree-optimization/43544
26177         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
26178         First argument for builtin vectorized function hook is now a
26179         tree to be able to distinguish between machine specific and
26180         standard builtins.
26181         * targhooks.c (default_builtin_vectorized_function): Ditto.
26182         * targhooks.h (default_builtin_vectorized_function): Ditto.
26183         * target.h (struct gcc_target): Ditto.
26184         * tree-vect-stmts.c (vectorizable_function): Ditto.
26185         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
26186         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
26187         Ditto.
26188
26189 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
26190
26191         PR c/43381
26192         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
26193         nested binding iff it is a FUNCTION_DECL.
26194         (store_parm_decls_newstyle): Pass nested=true to bind for
26195         FUNCTION_DECLs amongst parameters.
26196
26197 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
26198
26199         * var-tracking.c (vt_expand_loc_callback): Don't run
26200         cselib_expand_value_rtx_cb in dummy mode if
26201         cselib_dummy_expand_value_rtx_cb returned false.
26202
26203         * var-tracking.c (emit_note_insn_var_location): For one part
26204         notes with offset 0, don't add EXPR_LIST around the location.
26205         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
26206         add_location_or_const_value_attribute): Adjust for that change.
26207
26208         PR debug/43540
26209         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
26210         into first operand and location into second.
26211         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
26212         dw_cfi_oprnd_loc for DW_CFA_expression.
26213         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
26214         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
26215         assume first argument is regnum and second argument is location.
26216
26217 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
26218
26219         PR target/42113
26220         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
26221         of scratch register to DImode.  Split to DImode comparison operator.
26222         Use SImode subreg of scratch register in the multiplication.
26223         (*cmp_sadd_sidi): Ditto.
26224         (*cmp_ssub_si): Ditto.
26225         (*cmp_ssub_sidi): Ditto.
26226
26227 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
26228
26229         PR target/43524
26230         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
26231         Remove invalid assert and wrong comment.
26232
26233 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
26234
26235         PR debug/43516
26236         * flags.h (final_insns_dump_p): New extern.
26237         * final.c (final_insns_dump_p): New variable.
26238         (rest_of_clean_state): Set it before -fdump-final-insns=
26239         dumping, clear afterwards.
26240         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
26241         MEM_ALIAS_SET on MEMs.
26242
26243 2010-03-26  David S. Miller  <davem@davemloft.net>
26244
26245         * configure.ac: Fix sparc GOTDATA_OP bug check.
26246         * configure: Rebuild.
26247
26248 2010-03-26  Alan Modra  <amodra@gmail.com>
26249
26250         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
26251
26252 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26253
26254         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
26255         TLS_SECTION_ASM_FLAG.
26256
26257 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
26258
26259         PR bootstrap/43511
26260         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
26261         Clear first_function_block_is_cold.
26262
26263         PR c/43385
26264         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
26265         argument if the argument is truth_value_p.
26266
26267 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
26268
26269         * config/rs6000/constraints.md: Update copyright year for my changes.
26270
26271         PR target/43484
26272         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
26273         used in reg+reg addressing, swap registers.
26274
26275 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
26276
26277         PR debug/43293
26278         * target.h (struct gcc_target): Add code_end hook.
26279         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
26280         if not yet defined.
26281         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
26282         * toplev.c (compile_file): Call targetm.asm_out.code_end
26283         hook before unwind info/debug info output.
26284         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
26285         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
26286         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
26287         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
26288         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
26289         * config/i386/i386.c (ix86_file_end): Renamed to...
26290         (ix86_code_end): ... this.  Make static.  Don't call
26291         file_end_indicate_exec_stack.  Emit unwind info using
26292         final_start_function/final_end_function.
26293         (darwin_x86_file_end): Remove.
26294         (TARGET_ASM_CODE_END): Define.
26295         * config/i386/i386.h (TARGET_ASM_FILE_END,
26296         NEED_INDICATE_EXEC_STACK): Don't define.
26297         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
26298         (TARGET_ASM_FILE_END): Define to darwin_file_end.
26299         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
26300         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
26301
26302         PR target/43498
26303         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
26304         at the beginning and final_end_function at the end.
26305         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26306
26307 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26308
26309         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
26310         and Sun as TLS syntax.
26311         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
26312         * configure: Regenerate.
26313         * config.in: Regenerate.
26314         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
26315         (default_elf_asm_named_section): Use it.
26316         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
26317         (i386_output_dwarf_dtprel): Likewise.
26318         (output_addr_const_extra): Likewise.
26319         (output_pic_addr_const): Lowercase @GOTTPOFF.
26320         (output_addr_const_extra): Likewise.
26321         (output_pic_addr_const): Lowercase @GOTNTPOFF.
26322         (output_addr_const_extra): Likewise.
26323         (output_pic_addr_const): Lowercase @INDNTPOFF.
26324         (output_addr_const_extra): Likewise.
26325         (output_pic_addr_const): Lowercase @NTPOFF.
26326         (output_addr_const_extra): Likewise.
26327         (output_pic_addr_const): Lowercase @TPOFF.
26328         (output_addr_const_extra): Likewise.
26329         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
26330         (*tls_global_dynamic_64): Likewise.
26331         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
26332         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
26333
26334         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
26335         (ASM_OUTPUT_TLS_COMMON): Use it.
26336         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
26337
26338         PR target/38118
26339         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
26340         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26341         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
26342         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
26343         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
26344         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
26345
26346 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26347
26348         * config/i386/i386.c (override_options): Don't accept
26349         -mtls-dialect=sun any longer.
26350         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
26351         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
26352         (*tls_local_dynamic_base_32_sun): Likewise.
26353         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
26354
26355 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
26356
26357         PR debug/43508
26358         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
26359         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
26360
26361         PR debug/43479
26362         * ira.c (adjust_cleared_regs): New function.
26363         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
26364
26365         PR debug/19192
26366         PR debug/43479
26367         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
26368         from gimple_block.
26369         * expr.c (expand_expr_real): Restore previous
26370         curr_insn_source_location and curr_insn_block after
26371         expand_expr_real_1 call.
26372         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
26373         instead of expand_expr_real_1.
26374
26375 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
26376
26377         PR rtl-optimization/43413
26378         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
26379         hard regs too.
26380
26381 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
26382
26383         PR target/43348
26384         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
26385         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
26386
26387 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
26388
26389         * config/i386/i386.c (ix86_target_string): Add -mfma.
26390         Fix a typo in comment.
26391
26392 2010-03-22  Mike Stump  <mikestump@comcast.net>
26393
26394         PR target/23071
26395         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
26396         Don't overly align based upon packed packed fields.
26397
26398 2010-03-22  Jason Merrill  <jason@redhat.com>
26399
26400         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
26401         Use () rather than [], and move before the element type.
26402
26403 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26404
26405         * doc/configfiles.texi (Configuration Files): Removed
26406         fixinc/Makefile*, intl/Makefile.*.
26407         * doc/makefile.texi: Fixed markup. Abstract from version
26408         control system used.
26409         (Makefile): Removed obsolete java/parse.y example.
26410         * doc/sourcebuild.texi: Likewise.
26411         (Top Level): Added config, gnattools, libdecnumber, libgcc,
26412         libgomp, libssp.  Removed fastjar.
26413         (Miscellaneous Docs): Clarify location.
26414         Added COPYING3, COPYING3.LIB.
26415         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
26416
26417 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26418
26419         PR target/38085
26420         * config/i386/i386.c (x86_function_profiler)
26421         [!NO_PROFILE_COUNTERS]: Fix typo.
26422         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
26423         instead of callq.
26424
26425 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
26426             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26427
26428         * doc/sourcebuild.texi (Test Directives): Split into six
26429         subsections, with most of the current text in new subsections
26430         Directives, Selectors, and Final Actions.
26431         (Directives): Split list of test directives into multiple
26432         subsubsections.
26433         (Selectors): Describe use and syntax of selectors.
26434         (Effective-Target Keywords): Describe all existing keywords.
26435         (Add Options): Describe features for dg-add-options.
26436         (Require Support): Describe variants of dg-require-support.
26437         (Final Actions): Describe commands to use in dg-final.
26438
26439 2010-03-22  Michael Matz  <matz@suse.de>
26440
26441         PR middle-end/43475
26442         * recog.c (validate_replace_rtx_group): Replace also in
26443         REG_EQUAL and REG_EQUIV notes.
26444
26445 2010-03-22  Richard Guenther  <rguenther@suse.de>
26446
26447         PR tree-optimization/43390
26448         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
26449         sure vector extracts are type correct.
26450
26451 2010-03-22  Richard Guenther  <rguenther@suse.de>
26452
26453         PR middle-end/40106
26454         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
26455         x * sqrt (x) even when optimizing for size if the target
26456         has native support for sqrt.
26457
26458 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
26459
26460         * varasm.c (make_decl_rtl_for_debug): Also clear
26461         flag_mudflap for the duration of make_decl_rtl call.
26462
26463         PR debug/43443
26464         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
26465         locs from preserved VALUEs.
26466
26467 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26468
26469         PR middle-end/42718
26470         * pa.md (movmemsi): Set align to one if zero.
26471         (movmemdi): Likewise.
26472
26473 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
26474
26475         PR target/42321
26476         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
26477         with their corresponding prologue pushes.
26478
26479 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
26480
26481         PR target/43156
26482         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
26483         at the begining or end.
26484         (spu_expand_epilogue): Likewise.
26485
26486 2010-03-20  Richard Guenther  <rguenther@suse.de>
26487
26488         PR rtl-optimization/43438
26489         * combine.c (make_extraction): Properly zero-/sign-extend an
26490         extraction of the low part of a CONST_INT.  Also handle
26491         CONST_DOUBLE.
26492
26493 2010-03-19  Mike Stump  <mikestump@comcast.net>
26494
26495         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
26496         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
26497         (override_options): Use SUBTARGET32_DEFAULT_CPU.
26498
26499 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
26500
26501         PR c/43211
26502         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
26503         an error.
26504
26505 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
26506
26507         PR rtl-optimization/42258
26508         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
26509         use that may match DEF.
26510
26511         PR target/40697
26512         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
26513         the cost of loading the constant rather than assuming
26514         COSTS_N_INSNS (1).
26515         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
26516         outer code is AND, do the same tests as the andsi3 expander and
26517         return COSTS_N_INSNS (1) if and is cheap.
26518
26519         * optabs.c (avoid_expensive_constant): Fix formatting.
26520
26521 2010-03-19  Michael Matz  <matz@suse.de>
26522
26523         PR c++/43116
26524         * attribs.c (decl_attributes): When rebuilding a function pointer
26525         type use the same qualifiers as the original pointer type.
26526
26527 2010-03-19  Martin Jambor  <mjambor@suse.cz>
26528
26529         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
26530         and is_gimple_ip_invariant_address.
26531
26532 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26533
26534         Revert
26535         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26536
26537         * config/arm/arm.c (arm_override_options): Turn off
26538         flag_dwarf2_cfi_asm for AAPCS variants.
26539
26540 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26541
26542         PR target/43399
26543         * config/arm/arm.c (emit_multi_reg_push): Update comments.
26544         Use PRE_MODIFY instead of PRE_DEC.
26545         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
26546         (vfp_emit_fstmd): Likewise.
26547
26548 2010-03-19  Michael Matz  <matz@suse.de>
26549
26550         PR target/43305
26551         * builtins.c (expand_builtin_interclass_mathfn,
26552         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
26553         if that fails.
26554
26555 2010-03-19  Richard Guenther  <rguenther@suse.de>
26556
26557         PR tree-optimization/43415
26558         * tree-ssa-pre.c (phi_translate): Split out worker to ...
26559         (phi_translate_1): ... this.
26560         (phi_translate): Move all caching here.  Cache all NARY
26561         and REFERENCE translations.
26562
26563 2010-03-19  David S. Miller  <davem@davemloft.net>
26564
26565         With help from Eric Botcazou.
26566         * config/sparc/sparc.c: Include dwarf2out.h.
26567         (emit_pic_helper): Delete.
26568         (pic_helper_symbol_name): Delete.
26569         (pic_helper_emitted_p): Delete.
26570         (pic_helper_needed): New.
26571         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
26572         (get_pc_thunk_name): New.
26573         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
26574         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
26575         Set pic_helper_needed to true.  Don't call emit_pic_helper.
26576         (sparc_expand_prologue): Update load_pic_register call.
26577         (sparc_output_mi_thunk): Likewise.
26578         (sparc_file_end): Emit a hidden comdat symbol for the PIC
26579         thunk if possible.  Output CFI information as needed.
26580
26581 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
26582             Jack Howarth  <howarth@bromo.med.uc.edu>
26583
26584         PR target/36399
26585         * config/i386/i386.h: Fix ABI on darwin x86-32.
26586
26587 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
26588
26589         * tree.h: Declare make_decl_rtl_for_debug.
26590         * varasm.c (make_decl_rtl_for_debug): New.
26591         * dwarf2out.c (rtl_for_decl_location): Call it.
26592         * cfgexpand.c (expand_debug_expr): Call it.
26593
26594 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
26595
26596         PR bootstrap/43399
26597         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
26598         mem_mode.
26599
26600         PR bootstrap/43403
26601         * var-tracking.c (vt_init_cfa_base): Do nothing if
26602         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
26603
26604 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
26605
26606         PR debug/42873
26607         * var-tracking.c (canonicalize_vars_star): New.
26608         (dataflow_post_merge_adjust): Use it.
26609
26610 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
26611
26612         PR debug/43058
26613         * var-tracking.c (non_suitable_const): New function.
26614         (add_uses): For DEBUG_INSNs with constants, don't record any
26615         value, instead just the constant value itself.
26616         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
26617         is not VAR_LOC_UNKNOWN_P, set var to the constant.
26618         (emit_notes_in_bb): Likewise.
26619         (emit_note_insn_var_location): For onepart variables if
26620         cur_loc is a VOIDmode constant, use DECL_MODE.
26621
26622 2010-03-18  Martin Jambor  <mjambor@suse.cz>
26623
26624         PR middle-end/42450
26625         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
26626         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
26627         all non-clones.  Moved call redirection...
26628         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
26629         (cgraph_materialize_all_clones): Dispose of all
26630         combined_args_to_skip bitmaps.
26631         (verify_cgraph_node): Do not check for edges pointing to wrong
26632         nodes in inline clones.
26633         * tree-inline.c (copy_bb): Call
26634         cgraph_redirect_edge_call_stmt_to_callee.
26635         * ipa.c (cgraph_remove_unreachable_nodes): Call
26636         cgraph_node_remove_callees even when there are used clones.
26637
26638 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
26639
26640         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
26641
26642 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
26643
26644         PR target/43383
26645         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
26646         for 32bit.
26647
26648 2010-03-18  Michael Matz  <matz@suse.de>
26649
26650         PR middle-end/43419
26651         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
26652         into sqrt(x) if we need to preserve signed zeros.
26653
26654 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
26655             Eric Botcazou  <ebotcazou@adacore.com>
26656
26657         PR rtl-optimization/43360
26658         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
26659         note if we don't know its invariant status.
26660
26661 2010-03-18  Michael Matz  <matz@suse.de>
26662
26663         PR tree-optimization/43402
26664         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
26665         PHI chains of ssa names registered for update.
26666
26667 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
26668
26669         PR target/42427
26670         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
26671         non-offsettable and pre_modify update addressing.
26672         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
26673         and "2" alternatives "#".
26674         (*movdd_softfloat32): Make all alternatives "#";
26675         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
26676         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
26677         (*movdf_softfloat32): Make all alternatives "#";
26678         (movdi): Use the new DIFD mode iterator to create a common splitter
26679         for movdi, movdf and movdd patterns.
26680
26681 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
26682
26683         * common.opt (dumpdir): Remove redundant tab.
26684
26685 2010-03-17  Martin Jambor  <mjambor@suse.cz>
26686
26687         PR tree-optimization/43347
26688         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
26689         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
26690
26691 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
26692
26693         PR rtl-optimization/42216
26694         * regrename.c (create_new_chain): New function, broken out from...
26695         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
26696         appending a use to an empty chain.
26697         (build_def_use): Remove previous changes that convert OP_INOUT to
26698         OP_OUT operands; instead detect the case where an OP_INOUT operand
26699         uses a previously untracked register and create an empty chain for it.
26700
26701 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26702
26703         * doc/extend.texi (Function Attributes): Rewrite unfinished
26704         sentence in ms_abi documentation.
26705
26706 2010-03-17  Alan Modra  <amodra@gmail.com>
26707
26708         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
26709         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
26710         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
26711         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
26712
26713 2010-03-16  Richard Henderson  <rth@redhat.com>
26714
26715         PR middle-end/43365
26716         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
26717         (lower_try_finally): Save and restore eh_seq around the expansion
26718         of the try-finally.
26719
26720 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
26721
26722         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
26723         statements before splitting block.
26724
26725 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26726
26727         * doc/sourcebuild.texi (Testsuites): Fix markup.
26728         Use pathnames relative to gcc/testsuite.
26729         (Test Directives): Move description of how timeout is determined.
26730         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
26731         (C Tests): Correct gcc.misc-tests directory.
26732         Framework tests now live in gcc.test-framework.
26733
26734 2010-03-16  Richard Guenther  <rguenther@suse.de>
26735
26736         PR middle-end/43379
26737         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
26738         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
26739
26740 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
26741             Alexandre Oliva  <aoliva@redhat.com>
26742
26743         PR tree-optimization/42917
26744         * lambda-code.c (remove_iv): Skip debug statements.
26745         (lambda_loopnest_to_gcc_loopnest): Likewise.
26746         (not_interesting_stmt): Debug statements are not interesting.
26747
26748 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
26749
26750         PR debug/43051
26751         PR debug/43092
26752         * cselib.c (cselib_preserve_constants,
26753         cfa_base_preserved_val): New static variables.
26754         (preserve_only_constants): New function.
26755         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
26756         clear its REG_VALUES.  If cselib_preserve_constants, don't
26757         empty the whole hash table, but preserve there VALUEs with constants,
26758         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
26759         (cselib_preserve_cfa_base_value): New function.
26760         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
26761         (cselib_init): Change argument to int bitfield.  Set
26762         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
26763         is in it.
26764         (cselib_finish): Clear cselib_preserve_constants and
26765         cfa_base_preserved_val.
26766         * cselib.h (enum cselib_record_what): New enum.
26767         (cselib_init): Change argument to int.
26768         (cselib_preserve_cfa_base_value): New prototype.
26769         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
26770         * dse.c (dse_step1): Likewise.
26771         * cfgcleanup.c (thread_jump): Likewise.
26772         * sched-deps.c (sched_analyze): Likewise.
26773         * gcse.c (local_cprop_pass): Likewise.
26774         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
26775         If FN is non-NULL, call the callback always and whenever it returns
26776         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
26777         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
26778         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
26779         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
26780         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
26781         * var-tracking.c: Include recog.h.
26782         (bb_stack_adjust_offset): Remove.
26783         (vt_stack_adjustments): Don't call it, instead just gather the
26784         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
26785         (adjust_stack_reference): Remove.
26786         (compute_cfa_pointer): New function.
26787         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
26788         (struct adjust_mem_data): New type.
26789         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
26790         functions.
26791         (get_address_mode): New function.
26792         (replace_expr_with_values): Use it.
26793         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
26794         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
26795         (adjust_sets): Remove.
26796         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
26797         Use get_address_mode.
26798         (get_adjusted_src): Remove.
26799         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
26800         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
26801         (add_with_sets): Don't call adjust_sets.
26802         (fp_setter, vt_init_cfa_base): New functions.
26803         (vt_initialize): Change return type to bool.  Move most of pool etc.
26804         initialization to the beginning of the function from end.  Pass
26805         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
26806         If !frame_pointer_needed, call vt_stack_adjustment before mos
26807         vector is filled, call vt_init_cfa_base if argp/framep has been
26808         eliminated to sp.  If frame_pointer_needed and argp/framep has
26809         been eliminated to hard frame pointer, set
26810         hard_frame_pointer_adjustment and call vt_init_cfa_base after
26811         encountering fp setter in the prologue.  For MO_ADJUST, call
26812         log_op_type before pusing the op into mos vector, not afterwards.
26813         Call adjust_insn before cselib_process_insn/add_with_sets,
26814         call cancel_changes (0) afterwards.
26815         (variable_tracking_main_1): Adjust for vt_initialize calling
26816         vt_stack_adjustments and returning whether it succeeded or not.
26817
26818 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
26819
26820         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
26821         debug statements.
26822
26823 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
26824
26825         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
26826         has been set.
26827         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
26828         drap_reg has not been set.
26829
26830 2010-03-15  Michael Matz  <matz@suse.de>
26831
26832         PR middle-end/43300
26833         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
26834         use it to expand block copies.
26835         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
26836         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
26837         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
26838
26839 2010-03-15  Richard Guenther  <rguenther@suse.de>
26840
26841         PR tree-optimization/43367
26842         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
26843         elimination check.
26844
26845 2010-03-15  Richard Guenther  <rguenther@suse.de>
26846
26847         PR tree-optimization/43317
26848         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
26849
26850 2010-03-15  Martin Jambor  <mjambor@suse.cz>
26851
26852         PR tree-optimization/43141
26853         * tree-sra.c (create_abstract_origin): New function.
26854         (modify_function): Call create_abstract_origin.
26855
26856 2010-03-15  Chris Demetriou  <cgd@google.com>
26857
26858         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
26859         wasn't copied.
26860
26861 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26862
26863         PR middle-end/43354
26864         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
26865         call insert_out_of_ssa_copy for default definitions.
26866
26867 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26868
26869         * graphite-clast-to-gimple.c (my_long_long): Defined.
26870         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
26871         * graphite-sese-to-poly.c (my_long_long): Defined.
26872         (scop_ivs_can_be_represented): Use it.
26873
26874 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26875
26876         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
26877         graphite-max-bbs-per-function, and loop-block-tile-size.
26878         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
26879         with "maximum".
26880         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
26881
26882 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26883
26884         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
26885         forward declaration.
26886         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
26887         (add_upper_bounds_from_estimated_nit): New.
26888         (build_loop_iteration_domains): Use it.
26889
26890 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26891
26892         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
26893
26894 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26895
26896         PR middle-end/43306
26897         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
26898         should be an INTEGER_CST.  Also handle CASE_CONVERT.
26899
26900 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26901
26902         * graphite.c (graphite_initialize): To bound the number of bbs per
26903         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
26904         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
26905         * doc/invoke.texi: Document it.
26906
26907 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26908
26909         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
26910         * graphite-sese-to-poly.h (build_poly_scop): Same.
26911
26912 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26913
26914         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
26915         the number of parameters in the scop.  Use as an upper bound
26916         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
26917         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
26918         * doc/invoke.texi: Document it.
26919
26920 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
26921
26922         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
26923         * doc/c-tree.texi: Remove.
26924         * doc/generic.texi: Merge c-tree.texi here.
26925         * doc/gccint.texi (Trees): Remove menu entry.
26926         (c-tree.texi): Remove @include.
26927         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
26928         * doc/languages.texi (Reading RTL): Ditto.
26929
26930 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
26931
26932         PR target/42869
26933         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
26934
26935 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26936
26937         PR middle-end/42431
26938         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
26939         code added to work around reload clobbering CONST insns.
26940
26941 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
26942
26943         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
26944         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
26945         (cselib_preserve_only_values): Remove retain argument, don't
26946         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
26947         * cselib.h (cselib_preserve_only_values): Remove retain argument.
26948         * var-tracking.c (micro_operation): Move insn field before union.
26949         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
26950         (struct variable_tracking_info_def): Remove n_mos field, change
26951         mos into a vector of micro_operations.
26952         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
26953         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
26954         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
26955         changing into a vector.
26956         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
26957         come before all other uops generated by add_stores.
26958         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
26959         argument removal.
26960         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
26961         a vector.  Run just one pass over the bbs instead of separate counting
26962         and computation phase.
26963         (vt_finalize): Free VTI (bb)->mos vector instead of array.
26964
26965         PR debug/43329
26966         * tree-inline.c (remap_decls): Put old_var rather than origin_var
26967         into *nonlocalized_list vector.
26968         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
26969         even if origin is non-NULL.
26970         (gen_variable_die): Likewise.
26971         (process_scope_var): Don't change origin.
26972         (gen_decl_die): Likewise.
26973         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
26974         before adding new edges instead of after it, fix moving over
26975         debug stmts.
26976
26977 2010-03-11  David S. Miller  <davem@davemloft.net>
26978
26979         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
26980         of four.
26981         * configure: Rebuild.
26982
26983 2010-03-11  Martin Jambor  <mjambor@suse.cz>
26984
26985         PR tree-optimization/43257
26986         * tree.c (assign_assembler_name_if_neeeded): New function.
26987         (free_lang_data_in_cgraph): Assembler name assignment moved to the
26988         above new function.
26989         * tree.h (assign_assembler_name_if_neeeded): Declare.
26990         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
26991         the function if needed.
26992
26993 2010-03-11  Chris Demetriou  <cgd@google.com>
26994
26995         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
26996         include/stdint-gcc.h, and include/stdint.h world-readable.
26997
26998 2010-03-11  Richard Guenther  <rguenther@suse.de>
26999
27000         PR tree-optimization/43255
27001         * tree-vrp.c (process_assert_insertions_for): Do not insert
27002         asserts for trivial conditions.
27003
27004 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27005
27006         PR tree-optimization/43280
27007         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
27008         generation.  Move calculation of size out of the if branch.
27009         (find_bswap): Modify compare number generation.
27010
27011 2010-03-11  Richard Guenther  <rguenther@suse.de>
27012
27013         PR lto/43200
27014         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
27015         (input_gimple_stmt): Fixup handled component types during
27016         operand read.  Also fix up decls in ADDR_EXPRs.
27017
27018 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
27019
27020         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
27021         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
27022
27023 2010-03-10  Jan Hubicka  <jh@suse.cz>
27024
27025         PR c/43288
27026         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
27027         * varasm.c (get_variable_section): Don't do that here...
27028         (make_decl_rtl): ... and here.
27029         (do_assemble_alias): Produce decl RTL.
27030         (assemble_alias): Likewise.
27031
27032 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
27033
27034         PR debug/43290
27035         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
27036         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
27037         of fde->vdrap_reg.
27038         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
27039         (based_loc_descr): Only express drap or vdrap regno based expressions
27040         using DW_OP_fbreg when not optimizing.
27041         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
27042         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
27043         REG_CFA_SET_VDRAP note.
27044
27045 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
27046
27047         PR tree-optimization/43236
27048         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
27049         error in calculation of base address in reverse iteration case.
27050         (generate_builtin): Take number of latch executions if the statement
27051         is in the latch.
27052
27053 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
27054
27055         PR middle-end/42859
27056         * tree-eh.c: Include pointer-set.h.
27057         (lower_eh_dispatch): Filter out duplicate case labels and
27058         remove the unneeded edge when the label is unused.  Return
27059         true when some edges are removed.
27060         (execute_lower_eh_dispatch): When any lowering resulted in
27061         removing an edge, also delete unreachable blocks.
27062
27063 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
27064
27065         PR bootstrap/43287
27066         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27067         UNSPEC_MACHOPIC_OFFSET.
27068
27069 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
27070
27071         PR target/43294
27072         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
27073         (m68k_delegitimize_address): New function.
27074
27075 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
27076
27077         PR debug/43299
27078         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
27079
27080         PR debug/43299
27081         * var-tracking.c (adjust_sets): New function.
27082         (count_with_sets, add_with_sets): Use it.
27083         (get_adjusted_src): New inline function.
27084         (add_stores): Use it.
27085
27086         PR debug/43304
27087         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
27088         call cselib_dummy_expand_value_rtx_cb instead of
27089         cselib_expand_value_rtx_cb.
27090
27091         PR debug/43293
27092         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
27093         * config/i386/i386.c: Include debug.h and dwarf2out.h.
27094         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
27095         and .cfi_endproc around the pic thunks.
27096         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
27097         all queued unwind info register saves are saved before the call.
27098         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
27099         considered as sp-=4 for unwind info and the pop as sp+=4 which
27100         also clobbers dest, but doesn't actually restore it.
27101
27102         PR debug/43290
27103         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
27104         RTX_FRAME_RELATED_P.
27105
27106 2010-03-09  Jie Zhang  <jie@codesourcery.com>
27107
27108         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
27109         whitespaces in output template.
27110
27111 2010-03-09  Jie Zhang  <jie@codesourcery.com>
27112
27113         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
27114         out array boundary.
27115
27116 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
27117
27118         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
27119         builtins.exp in a separate job.
27120
27121 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27122
27123         * graphite-sese-to-poly.c (add_param_constraints): Use
27124         lower_bound_in_type and upper_bound_in_type.
27125
27126 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27127
27128         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
27129         instead of unsigned_type_node.
27130
27131 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27132             Reza Yazdani  <reza.yazdani@amd.com>
27133
27134         PR middle-end/43065
27135         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
27136         on pointer type parameters.
27137
27138 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
27139
27140         PR middle-end/42644
27141         PR middle-end/42130
27142         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
27143         handle conversions from pointer to integers.
27144         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
27145         induction variable, to be able to work with code generated by CLooG.
27146         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
27147         (build_poly_scop): Bail out if we cannot codegen a loop.
27148
27149 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
27150
27151         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
27152         code generation with gloog_error.
27153
27154 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27155
27156         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
27157         Call fold_convert on all the returned values.
27158         (expand_scalar_variables_expr): Pass to
27159         expand_scalar_variables_ssa_name the type of the resulting expression.
27160
27161 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27162
27163         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
27164         ppl_min_for_le_pointset.
27165         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
27166         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
27167
27168 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27169
27170         * graphite-dependences.c (map_into_dep_poly): Removed.
27171         (dependence_polyhedron_1): Use combine_context_id_scat.
27172
27173 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27174
27175         * graphite-poly.h (struct poly_scattering): Add layout documentation.
27176         (struct poly_bb): Same.
27177         (combine_context_id_scat): New.
27178
27179 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27180
27181         PR middle-end/42326
27182         * sese.c (name_defined_in_loop_p): Return false for default
27183         definitions.
27184
27185 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27186
27187         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
27188         and clean up the logic.
27189
27190 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
27191
27192         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
27193         early return.
27194
27195 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
27196
27197         * var-tracking.c (remove_cselib_value_chains): Define only for
27198         ENABLE_CHECKING.
27199         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
27200         delete_slot_part, emit_notes_for_differences_1): Don't call
27201         remove_cselib_value_chains here.
27202         (set_slot_part, emit_notes_for_differences_2): Don't call
27203         add_cselib_value_chains here.
27204         (preserved_values): New vector.
27205         (preserve_value): New function.
27206         (add_uses, add_stores, vt_add_function_parameters): Use it
27207         instead of cselib_preserve_value.
27208         (changed_values_stack): New vector.
27209         (check_changed_vars_0): New function.
27210         (check_changed_vars_1, check_changed_vars_2): Use it.
27211         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
27212         changed_values_stack VALUEs.
27213         (vt_emit_notes): For all preserved_values call
27214         add_cselib_value_chains.  If ENABLE_CHECKING call
27215         remove_cselib_value_chains before verifying value_chains is empty.
27216         Initialize and free changed_values_stack.
27217         (vt_initialize): Initialize preserved_values.
27218         (vt_finalize): Free preserved_values.
27219
27220 2010-03-08  Richard Guenther  <rguenther@suse.de>
27221
27222         PR tree-optimization/43269
27223         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
27224         region detection.
27225
27226 2010-03-08  Martin Jambor  <mjambor@suse.cz>
27227
27228         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
27229         (ipa_is_param_called): Removed.
27230         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
27231         (ipa_print_node_params): Do not print the called flag.
27232         (ipa_write_node_info): Do not stream the called flag.
27233         (ipa_read_node_info): Likewise.
27234
27235 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
27236
27237         PR debug/43176
27238         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
27239         * cselib.c (struct expand_value_data): Add dummy field.
27240         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
27241         dummy to false.
27242         (cselib_dummy_expand_value_rtx_cb): New function.
27243         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
27244         any rtl.
27245         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
27246         * var-tracking.c: Include pointer-set.h.
27247         (variable): Change n_var_parts to char from int.  Add
27248         cur_loc_changed and in_changed_variables fields.
27249         (variable_canonicalize): Remove.
27250         (shared_var_p): New inline function.
27251         (unshare_variable): Maintain cur_loc_changed and
27252         in_changed_variables fields.  If var was in changed_variables,
27253         replace it there with new_var.  Just copy cur_loc instead of
27254         resetting it to something else.
27255         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
27256         (dataflow_set_union): Don't call variable_canonicalize.
27257         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
27258         of their DEBUG_EXPR_TREE_DECLs.
27259         (canonicalize_loc_order_check): Verify that cur_loc is NULL
27260         and in_changed_variables and cur_loc_changed is false.
27261         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
27262         and cur_loc_changed.  Don't update cur_loc here.
27263         (variable_merge_over_src): Don't call variable_canonicalize.
27264         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
27265         removing loc that is equal to cur_loc, clear cur_loc,
27266         set cur_loc_changed and ensure variable_was_changed is called.
27267         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
27268         compare pointers in cur_loc check, if it is equal to loc,
27269         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
27270         (variable_different_p): Remove compare_current_location argument,
27271         don't compare cur_loc.
27272         (dataflow_set_different_1): Adjust variable_different_p caller.
27273         (variable_was_changed): If dv had some var in changed_variables
27274         already, reset in_changed_variables flag for it and propagate
27275         cur_loc_changed over to the new variable.  On empty var
27276         always set cur_loc_changed.  Set in_changed_variables on whatever
27277         var is added to changed_variables.
27278         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
27279         Use shared_var_p.  When removing loc that is equal to cur_loc,
27280         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
27281         end, don't set it to something else, just call variable_was_changed.
27282         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
27283         loc being removed, clear cur_loc and set cur_loc_changed.
27284         Set cur_loc_changed if all locations have been removed.
27285         (struct expand_loc_callback_data): New type.
27286         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
27287         allocated.  Always create SUBREGs if simplify_subreg failed.
27288         Prefer to use cur_loc, when that fails and still in
27289         changed_variables (and seen first time) recompute it.  Set
27290         cur_loc_changed of variables which had to change cur_loc and
27291         compute elcd->cur_loc_changed if any of the subexpressions used
27292         had to change cur_loc.
27293         (vt_expand_loc): Adjust to pass arguments in
27294         expand_loc_callback_data structure.
27295         (vt_expand_loc_dummy): New function.
27296         (emitted_notes): New variable.
27297         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
27298         that weren't used for any other decl in current
27299         emit_notes_for_changes call call vt_expand_loc_dummy to update
27300         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
27301         first loc_chain location if NULL before.  Always use just
27302         cur_loc instead of first loc_chain location.  When cur_loc_changed
27303         is false, when not --enable-checking=rtl just don't emit any note.
27304         When rtl checking, compute the note and assert it is the same
27305         as previous note.  Clear cur_loc_changed and in_changed_variables
27306         at the end before removing from changed_variables.
27307         (check_changed_vars_3): New function.
27308         (emit_notes_for_changes): Traverse changed_vars to call
27309         check_changed_vars_3 on each changed var.
27310         (emit_notes_for_differences_1): Clear cur_loc_changed and
27311         in_changed_variables.  Recompute cur_loc of new_var.
27312         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
27313         (vt_emit_notes): Initialize and destroy emitted_notes.
27314
27315 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
27316
27317         PR rtl-optimization/42220
27318         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
27319         Use verify_reg_tracked to determine if we should use OP_OUT rather
27320         than OP_INOUT.
27321         (build_def_use): If we see an in-out operand for a register that we
27322         know nothing about, treat is an output if possible, fail the block if
27323         not.
27324
27325 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
27326
27327         PR debug/42897
27328         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
27329         permanently.
27330
27331 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
27332
27333         PR debug/42897
27334         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
27335         uses of relevant DEFs that are dead outside the loop too.
27336
27337 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
27338
27339         * var-tracking.c (dataflow_set_merge): Swap src and src2.
27340         Reverted:
27341         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
27342         PR debug/41371
27343         * var-tracking.c (values_to_unmark): New variable.
27344         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
27345         values_to_unmark vector.  Moved body to...
27346         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
27347         instead queue it into values_to_unmark vector.
27348         (vt_find_locations): Free values_to_unmark vector.
27349
27350 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
27351
27352         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
27353         (site.exp): Export them when plugins are enabled.
27354
27355 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
27356
27357         PR middle-end/42326
27358         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
27359         that contain scevs.
27360         (chrec_fold_multiply): Same.
27361
27362 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
27363
27364         PR c/43248
27365         * c-decl.c (build_compound_literal): Return early if init is
27366         an error_mark_node.
27367
27368 2010-03-04  Martin Jambor  <mjambor@suse.cz>
27369
27370         PR tree-optimization/43164
27371         PR tree-optimization/43191
27372         * tree-sra.c (type_consists_of_records_p): Reject records with
27373         zero-size bit-fields at the end.
27374
27375 2010-03-04  Mike Stump  <mikestump@comcast.net>
27376
27377         * Makefile.in (TAGS): Remove *.y.
27378
27379 2010-03-04  Richard Guenther  <rguenther@suse.de>
27380
27381         PR tree-optimization/40761
27382         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
27383         in reverse order.
27384         (my_rev_post_order_compute): New function.
27385         (init_pre): Call it.
27386
27387 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27388
27389         PR middle-end/43209
27390         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
27391         decrease the cost of an IV candidate when the cost is infinite.
27392
27393 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27394
27395         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
27396         Use '3DNow!' for the extension of that name, ensure normal space
27397         after the string.
27398         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
27399
27400 2010-03-03  Jeff Law  <law@redhat.com>
27401
27402         * PR middle-end/32693
27403         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
27404         than gen_rtx_SUBREG.
27405         (extract_bit_field_1): Likewise.
27406
27407 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
27408
27409         * doc/sourcebuild.texi (Test directives): Document that arguments
27410         include-opts and exclude-opts are now optional for dg-skip-if,
27411         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
27412
27413 2010-03-03  Jason Merrill  <jason@redhat.com>
27414
27415         PR c++/12909
27416         * cgraph.h (varpool_node): Add extra_name field.
27417         * varpool.c (varpool_extra_name_alias): New.
27418         (varpool_assemble_decl): Emit extra name aliases.
27419         (varpool_mark_needed_node): Look past an extra name alias.
27420         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
27421         * lto-streamer-in.c (lto_input_tree): Read it.
27422         * lto-streamer-out.c (output_unreferenced_globals): Write it.
27423
27424 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
27425
27426         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
27427         (sparc*-*-solaris2*): ...this.
27428
27429 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
27430
27431         PR debug/43229
27432         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
27433         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
27434         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
27435         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
27436
27437         PR debug/43237
27438         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
27439         fallthrough to default handling, just with want_address 0 instead of 2.
27440         For single element lists, add_AT_loc directly, otherwise create an
27441         artificial variable DIE and stick location list to it.
27442
27443         PR debug/43177
27444         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
27445         (VAL_EXPR_HAS_REVERSE): Define.
27446         (reverse_op): New function.
27447         (add_stores): For reversible operations add an extra MO_VAL_USE.
27448
27449 2010-03-02  Jason Merrill  <jason@redhat.com>
27450
27451         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
27452
27453 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
27454
27455         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
27456         (sparc64-*-linux*): Likewise.
27457         (sparc64-*-solaris2*): Include assembler files before linker ones.
27458         (sparc-*-solaris2*): Simplify and reorder to match previous case.
27459         * config/sparc/gas.h: Delete.
27460         * config/sparc/sol2-64.h: Add copyright notice.
27461         * config/sparc/sol2-gas-bi.h: Likewise.
27462         * config/sparc/sol2-gld.h: Likewise.
27463         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
27464         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
27465         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
27466         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
27467         (sparc_elf_asm_named_section): Rename into...
27468         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
27469
27470 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
27471
27472         * config/alpha/alpha.c (override_options): Fix -mtune error message.
27473
27474 2010-03-02  Jeff Law  <law@redhat.com>
27475
27476         PR middle-end/42431
27477         * reload1.c (rtx_p, substitute_stack): Declare.
27478         (substitute): Record addresses of changed rtxs.
27479         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
27480         Restore the original rtx when complete.
27481         (reload): Free subsitute_stack when complete.
27482
27483 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
27484
27485         * doc/gccint.texi (menu): Add Testsuites as a chapter.
27486         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
27487         new chapter.
27488         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
27489         LTO Testing, gcov Testing, profopt Testing, compat Testing,
27490         Torture Tests): Change from subsection to section.
27491
27492 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
27493             Steven Bosscher  <steven@gcc.gnu.org>
27494
27495         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
27496         instead of bb.
27497
27498 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
27499
27500         PR middle-end/42640
27501         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
27502         the assignment from the new induction variable to the assignment
27503         of the value from the original loop PHI function.
27504
27505 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
27506             Daniel Jacobowitz  <dan@codesourcery.com>
27507
27508         * doc/sourcebuild.texi (Test directives): Clarify options to
27509         dg-skip-if.
27510
27511 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27512
27513         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
27514         Disable cfi directives unless GCC and gas agree on using read-only
27515         .eh_frame sections for 64-bit.
27516         * configure: Regenerate.
27517
27518 2010-03-01  Richard Guenther  <rguenther@suse.de>
27519
27520         PR tree-optimization/43220
27521         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
27522         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
27523
27524 2010-03-01  Richard Guenther  <rguenther@suse.de>
27525             Martin Jambor  <mjambor@suse.cz>
27526
27527         PR middle-end/41250
27528         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
27529         gimplified parameters.
27530
27531 2010-03-01  Christian Bruel  <christian.bruel@st.com>
27532
27533         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
27534
27535 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
27536
27537         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
27538
27539 2010-03-01  Richard Guenther  <rguenther@suse.de>
27540
27541         PR middle-end/43213
27542         * expr.c (expand_assignment): Use the alias-oracle to tell
27543         if the rhs aliases the result decl.
27544
27545 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27546
27547         PR pch/14940
27548         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
27549         to sol_gt_pch_get_address.
27550         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
27551         64-bit, SPARC and x86.
27552         (sol_gt_pch_get_address): New function.
27553
27554 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
27555
27556         * toplev.h (inform_n, error_n): Declare.
27557         * diagnostic.c (inform_n, error_n): New function.
27558
27559 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
27560
27561         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
27562         has no rtl yet when processing local_decls, queue it and recheck
27563         if deferred stack allocation hasn't assigned it rtl.
27564
27565 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
27566
27567         * config/sh/sh.c (unspec_bbr_uid): New.
27568         (gen_block_redirect): Use it instead of INSN_UID.
27569         (gen_far_branch): Likewise.
27570
27571 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
27572
27573         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
27574         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
27575
27576 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27577
27578         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
27579         (Warning Options): -Wno-conversion-null is valid for
27580         Objective-C++ as well.
27581         * doc/tm.texi (Named Address Spaces): Likewise.
27582         * doc/plugins.texi (Plugins): Replace TABs with spaces.
27583         * doc/tree-ssa.texi (Tree SSA): Likewise.
27584
27585 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27586
27587         PR bootstrap/43202
27588         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
27589         by default.  Don't set the default arch for
27590         i[34567]86-*-darwin*|x86_64-*-darwin*.
27591
27592 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27593
27594         PR bootstrap/43202
27595         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
27596         default.  Set the default 32bit/64bit archs with $with_arch
27597         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
27598
27599 2010-02-27  Richard Guenther  <rguenther@suse.de>
27600
27601         PR tree-optimization/43186
27602         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
27603         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
27604         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
27605         unroller iterations.
27606
27607 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27608
27609         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
27610         required and i[34567]86-*-* targets don't support 64bit ISA.
27611
27612 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
27613
27614         PR ada/43096
27615         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27616         the same alias set.
27617
27618 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
27619
27620         * config.gcc: Set the default arch at least to Prescott for
27621         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
27622         if SSE math is enabled.
27623
27624 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27625
27626         * diagnostic.c (diagnostic_initialize): Update.
27627         (diagnostic_report_diagnostic): Test inhibit_notes_p for
27628         informative notes.
27629         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
27630         (diagnostic_inhibit_notes): New.
27631         * toplev.c (process_options): inhibit notes with -fcompare-debug.
27632
27633 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27634
27635         PR c/20631
27636         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
27637         * doc/standards.texi: Likewise.
27638         * doc/extend.texi: Likewise.
27639         * doc/trouble.texi: Likewise.
27640         * doc/cppopts.texi: Likewise.
27641         * doc/install.texi: Likewise.
27642         * c.opt (std=c90,std=gnu90): New options.
27643         * c-opts.c (c_common_handle_option): Handle them.
27644
27645 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27646
27647         PR c/24577
27648         * c-decl.c (undeclared_variable): Use an informative note.
27649
27650 2010-02-26  Richard Guenther  <rguenther@suse.de>
27651
27652         PR tree-optimization/43186
27653         * gimple.h (gimple_fold): Remove.
27654         * gimple.c (gimple_fold): Remove.  Inline into single user ...
27655         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
27656         Try harder for conditions.
27657
27658 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
27659
27660         PR debug/43190
27661         * function.c (used_types_insert): Don't skip through named pointer
27662         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
27663         and it is different from the main variant's type.
27664
27665 2010-02-26  Nick Clifton  <nickc@redhat.com>
27666
27667         * config/rx/rx.md (sminsi3): Remove bogus alternative.
27668
27669 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
27670
27671         * config.gcc: Support --with-fpmath=sse for x86.
27672
27673         * config/i386/ssemath.h: New.
27674
27675         * doc/install.texi (--with-fpmath=sse): Documented.
27676
27677 2010-02-26  Richard Guenther  <rguenther@suse.de>
27678
27679         PR tree-optimization/43188
27680         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
27681         vector types of over-aligned element type.
27682
27683 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
27684
27685         PR target/43175
27686         * config/i386/i386.c (expand_vec_perm_blend): Use correct
27687         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
27688
27689 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
27690
27691         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
27692
27693 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
27694
27695         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
27696         * var-tracking.c: Include diagnostic.h.
27697         (debug_dv): New function.
27698         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
27699
27700         PR debug/43160
27701         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
27702         (add_value_chain, add_value_chains, remove_value_chain,
27703         remove_value_chains): Handle DEBUG_EXPRs.
27704         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
27705
27706         PR debug/43161
27707         * regcprop.c (struct queued_debug_insn_change): New type.
27708         (struct value_data_entry): Add debug_insn_changes field.
27709         (struct value_data): Add n_debug_insn_changes field.
27710         (debug_insn_changes_pool): New variable.
27711         (free_debug_insn_changes, apply_debug_insn_changes,
27712         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
27713         (kill_value_one_regno): Call free_debug_insn_changes if needed.
27714         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
27715         fields.
27716         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
27717         changes for them.
27718         (copyprop_hardreg_forward_1): Don't call apply_change_group for
27719         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
27720         changes, call cprop_find_used_regs via note_stores.
27721         (copyprop_hardreg_forward): When copying vd from predecessor
27722         which has any queued DEBUG_INSN changes, make sure the pointers are
27723         cleared.  At the end call df_analyze and then if there are any
27724         DEBUG_INSN changes queued at the end of some basic block for still
27725         live registers, apply them.
27726         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
27727
27728 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
27729
27730         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
27731         (arm*-*-*): Ditto.
27732
27733 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
27734
27735         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
27736         targets.  Set the default with_cpu/with_arch from arch/cpu.
27737         Allow x86-64 and native for with_cpu/with_arch.
27738
27739 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
27740
27741         * ebitmap.c: Change calls to verify_popcount with calls to
27742         sbitmap_verify_popcount.
27743         (ebitmap_clear_bit): Fixed map->cacheindex test and
27744         map>cache update when bit clearing results in an empty
27745         element.
27746
27747 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
27748
27749         PR target/43154
27750         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
27751         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
27752         and support both V2DF and V2DI modes.
27753         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
27754         support both V2DF and V2DI modes.
27755         (general): Delete trailing whitespace from a few patterns.
27756
27757         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27758         V2DF/V2DI interleave high/low builtins.
27759
27760         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
27761         new VSX builtins.
27762
27763         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
27764         interleave high/low functions.
27765
27766 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
27767
27768         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
27769         #pragma extern_prefix.
27770
27771 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
27772
27773         PR debug/43166
27774         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
27775         BLKmode, assert op0 is a MEM and just adjust its mode.
27776
27777         PR debug/43165
27778         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
27779         if bitpos isn't multiple of mode's bitsize.
27780
27781 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27782
27783         * c.opt (-ftemplate-depth=): New.
27784         (-ftemplate-depth-): Deprecate.
27785         * optc-gen.awk: Handle -ftemplate-depth=.
27786         * opth-gen.awk: Likewise.
27787         * c-opts.c (c_common_handle_option): Likewise.
27788         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
27789
27790 2010-02-24  Jason Merrill  <jason@redhat.com>
27791
27792         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
27793
27794 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27795
27796         * cfg.c (alloc_aux_for_block): Remove inline.
27797         (alloc_aux_for_edge): Likewise.
27798
27799 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27800
27801         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
27802
27803 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27804
27805         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
27806         * config/i386/sol2-gas.h: New file.
27807         * config.gcc (i[34567]86-*-solaris2*): Use it.
27808
27809 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27810
27811         PR c/43128
27812         * c-typeck.c (ep_convert_and_check): New.
27813         (build_conditional_expr): Use it.
27814         (build_binary_op): Likewise.
27815
27816 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
27817
27818         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
27819
27820         PR debug/43150
27821         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
27822         bounds even for -O+.
27823         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
27824         expr needs to have DECL_NAME set.
27825
27826 2010-02-24  Nick Clifton  <nickc@redhat.com>
27827
27828         * config/mep/mep.c: Include gimple.h.
27829         (mep_function_uses_sp): Delete unused function.
27830         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
27831         parameters.  Use unsigned integers to count args.  Return a
27832         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
27833
27834 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
27835
27836         PR target/43107
27837         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
27838         greater or equal to nelt instead of 2 * nelt.
27839         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
27840         with nelt - 1.
27841
27842 2010-02-23  Jason Merrill  <jason@redhat.com>
27843
27844         PR debug/42800
27845         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
27846         in cfun->local_decls even if they have register types.
27847
27848         PR c++/42837
27849         * stor-layout.c (place_field): Don't warn about unnecessary
27850         DECL_PACKED if the type is packed.
27851
27852 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
27853
27854         PR target/43139
27855         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
27856         GOTOFF relocs, even when the base reg isn't pic pointer.
27857
27858 2010-02-23  Michael Matz  <matz@suse.de>
27859
27860         PR debug/43077
27861         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
27862         (expand_gimple_basic_block): Generate and use debug temps if there
27863         are debug uses left after the last real use of TERed ssa names.
27864         Unlink debug immediate uses when they are expanded.
27865
27866 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27867
27868         PR 43123
27869         * config/i386/i386.c (override_options): Reorganise to provide
27870         better error messages.
27871
27872 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27873
27874         PR middle-end/43083
27875         * graphite-scop-detection.c (create_single_exit_edge): Move
27876         the call to find_single_exit_edge to....
27877         (create_sese_edges): ...here.  Don't handle multiple edges
27878         exiting the function.
27879         (build_graphite_scops): Don't handle multiple edges
27880         exiting the function.
27881
27882 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27883
27884         PR middle-end/43097
27885         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
27886         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
27887
27888 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27889
27890         PR middle-end/43026
27891         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
27892
27893 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27894
27895         PR c++/43126
27896         * c-typeck.c (convert_arguments): Print declaration location.
27897         * c-common.c (validate_nargs): Rename as
27898         builtin_function_validate_nargs.
27899         (check_builtin_function_arguments): Update.
27900
27901 2010-02-22  Richard Guenther  <rguenther@suse.de>
27902
27903         PR lto/43045
27904         * tree-inline.c (declare_return_variable): Use the type of
27905         the call stmt lhs if available.
27906
27907 2010-02-22  Duncan Sands  <baldrick@free.fr>
27908
27909         * passes.c (register_pass): Always consider all pass lists when
27910         ref_pass_instance_number is zero.
27911
27912 2010-02-22  Richard Guenther  <rguenther@suse.de>
27913
27914         PR tree-optimization/42749
27915         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
27916         parameter.  Do arithmetic in the original type.
27917         (update_accumulator_with_ops): Likewise.
27918         (adjust_accumulator_values): Adjust.
27919
27920 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27921
27922         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
27923         (QI to BLKmode splitter): New splitter.
27924
27925 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
27926
27927         * config/i386/i386.c (initial_ix86_tune_features): Turn on
27928         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
27929
27930 2010-02-22  Richard Guenther  <rguenther@suse.de>
27931
27932         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
27933
27934 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
27935
27936         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
27937         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
27938         ($(T)crti.o, $(T)crtn.o): Remove rules.
27939
27940 2010-02-21  Tobias Burnus  <burnus@net-b.de>
27941
27942         PR fortran/35259
27943         * doc/invoke.texi (-fassociative-math): Document that this
27944         option is automatically enabled for Fortran.
27945
27946 2010-02-20  David S. Miller  <davem@davemloft.net>
27947
27948         * configure.ac: Test if linker and assembler properly support
27949         GOTDATA_OP relocations.
27950         * configure: Rebuild.
27951         * config.in: Likewise.
27952         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
27953         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
27954         (movsi_high_pic): Likewise.
27955         (movdi_lo_sum_pic): Likewise.
27956         (movdi_high_pic): Likewise.
27957         (movsi_pic_gotdata_op): New pattern.
27958         (movdi_pic_gotdata_op): Likewise.
27959         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
27960         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
27961
27962 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
27963
27964         PR target/43067
27965         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
27966         attribute to ssemul.
27967         (xop_mulv2div2di3_high): Ditto.
27968
27969 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27970
27971         PR c++/35669
27972         * c.opt (Wconversion-null): New option.
27973         * doc/invoke.texi (Wconversion-null): Document.
27974
27975 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27976
27977         * common.opt (Wlarger-than-): Add Undocumented.
27978
27979 2010-02-19  Mike Stump  <mikestump@comcast.net>
27980
27981         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
27982
27983 2010-02-19  Jason Merrill  <jason@redhat.com>
27984
27985         PR target/40332
27986         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
27987         * configure: Likewise.
27988
27989 2010-02-20  Alan Modra  <amodra@gmail.com>
27990
27991         PR middle-end/42344
27992         * cgraph.h (cgraph_make_decl_local): Declare.
27993         * cgraph.c (cgraph_make_decl_local): New function.
27994         (cgraph_make_node_local): Use it.
27995         * cgraphunit.c (cgraph_function_versioning): Likewise.
27996         * ipa.c (function_and_variable_visibility): Likewise.
27997
27998 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27999
28000         PR bootstrap/43121
28001         * except.c (sjlj_emit_function_enter): Don't call
28002         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
28003         directly.
28004         * rtl.h (add_reg_br_prob_note): Remove prototype.
28005
28006 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28007
28008         PR 41779
28009         * c-common.c (conversion_warning): Remove widening conversions
28010         before checking the conversion of integers to reals.
28011
28012 2010-02-19  Mike Stump  <mikestump@comcast.net>
28013
28014         PR middle-end/43125
28015         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
28016
28017         PR objc/43061
28018         * cgraphunit.c (process_function_and_variable_attributes): Check
28019         DECL_PRESERVE_P instead of looking up attribute "used".
28020         * ipa-pure-const.c (check_decl): Likewise.
28021         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
28022         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
28023         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
28024         instead of attribute "used".
28025         * config/sol2-c.c (solaris_pragma_init): Likewise.
28026         (solaris_pragma_fini): Likewise.
28027
28028 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
28029
28030         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
28031         Use XCNEW instead of xcalloc.
28032         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
28033         XNEW instead of xmalloc.
28034         (get_fields): Use XNEWVEC instead of xmalloc.
28035
28036         PR debug/43084
28037         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
28038         populate vars array.
28039         (create_new_general_access): For debug stmts just reset value.
28040         (get_stmt_accesses): For accesses within debug stmts just record them
28041         using add_access_to_acc_sites instead of preventing the peeling or
28042         counting them as accesses.
28043
28044         PR middle-end/42233
28045         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
28046
28047 2010-02-19  Richard Guenther  <rguenther@suse.de>
28048
28049         PR tree-optimization/42916
28050         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
28051         instructions.
28052
28053 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
28054
28055         * configure.ac: Replace all uses of changequote in macro arguments
28056         with proper quoting.
28057
28058 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
28059
28060         PR middle-end/42233
28061         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
28062
28063 2010-02-19  Richard Guenther  <rguenther@suse.de>
28064
28065         PR tree-optimization/42944
28066         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
28067         test for aliasing with errno.
28068
28069 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
28070
28071         PR middle-end/42233
28072         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
28073         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
28074         * dojump.c: Include output.h.
28075         (inv): New inline function.
28076         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
28077         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
28078         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
28079         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
28080         argument, pass it down to other calls.
28081         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
28082         add REG_BR_PROB note to the conditional jump.
28083         * cfgexpand.c (add_reg_br_prob_note): Removed.
28084         (expand_gimple_cond): Don't call it, add the probability
28085         as last argument to jumpif_1/jumpifnot_1.
28086         * Makefile.in (dojump.o): Depend on output.h.
28087         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
28088         callers.
28089         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
28090         * stmt.c (do_jump_if_equal): Likewise.
28091         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
28092         * loop-unswitch.c (compare_and_jump_seq): Likewise.
28093         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
28094         Likewise.
28095         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
28096         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
28097         jumpifnot_1 callers.
28098         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
28099         callers.
28100         (store_expr): Adjust jumpifnot caller.
28101         (store_constructor): Adjust jumpif caller.
28102
28103         PR middle-end/42233
28104         * gimplify.c (gimple_boolify): For __builtin_expect call
28105         gimple_boolify also on its first argument.
28106
28107 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
28108
28109         * configure.ac (gnu-unique-object): Wrap regexps using [] in
28110         changequote block.
28111         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
28112         * configure: Regenerated.
28113
28114 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28115
28116         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
28117         lang_hooks.types_compatible_p instead of comptypes.
28118
28119 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28120
28121         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
28122         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
28123         if __prefer_thumb__ is defined.
28124
28125 2010-02-18  Martin Jambor  <mjambor@suse.cz>
28126
28127         PR tree-optimization/43066
28128         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
28129         array with zero-sized element type.
28130
28131 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
28132
28133         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
28134         rtx, allocate struct var_loc_node here and return it to the
28135         caller, and only if it is actually needed.
28136         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
28137         move it earlier and return immediately if it returns NULL.
28138
28139 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
28140
28141         * config/sparc/gas.h: New file.  Restore
28142         TARGET_ASM_NAMED_SECTION to its ELF default.
28143         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
28144         check !HAVE_GNU_AS.
28145         * config/sparc/sparc.c (sparc_elf_asm_named_section):
28146         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
28147         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
28148         after sparc/sysv4.h.
28149
28150 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
28151
28152         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
28153
28154 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
28155
28156         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
28157         patterns from predicated pattern.
28158
28159 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
28160
28161         PR target/43103
28162         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
28163         for insn mnemonic suffix.
28164
28165 2010-02-17  Richard Guenther  <rguenther@suse.de>
28166
28167         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
28168         to loop PHI nodes.
28169
28170 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
28171
28172         PR debug/42918
28173         * caller-save.c (save_call_clobbered_regs): If BB ends with
28174         a DEBUG_INSN, move any notes in between last real insn and the last
28175         DEBUG_INSN after the last DEBUG_INSN.
28176
28177 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
28178
28179         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
28180         Fix return type.  Fix argument type.  Explain meaning of return value.
28181
28182 2010-02-16  Richard Guenther  <rguenther@suse.de>
28183
28184         PR tree-optimization/41043
28185         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
28186         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
28187         statements ...
28188         (vrp_visit_phi_node): ... but only for loop PHI nodes.
28189
28190 2010-02-16  Ira Rosen  <irar@il.ibm.com>
28191
28192         PR tree-optimization/43074
28193         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
28194         * tree-vect-loop.c (vect_analyze_loop_operations): Add
28195         vectorizable cycles in hybrid SLP check.
28196         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
28197
28198 2010-02-16  Richard Guenther  <rguenther@suse.de>
28199
28200         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
28201         (true_dependence): If memrefs_conflict_p computes must-alias
28202         trust it.  Move TBAA check after offset-based disambiguation.
28203         (canon_true_dependence): Likewise.
28204
28205 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
28206
28207         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
28208         * doc/invoke.texi: Document it.
28209         * var-tracking.c: Include toplev.h and params.h.
28210         (vt_find_locations): Return bool indicating success.  Compute
28211         hash sizes unconditionally.  Check new parameter, report.
28212         (variable_tracking_main_1): Check vt_find_locations results and
28213         retry.  Renamed from...
28214         (variable_tracking_main): ... this.  New wrapper to preserve
28215         flag_var_tracking_assignments.
28216         * Makefile.in (var-tracking.o): Adjust dependencies.
28217
28218 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
28219             Jakub Jelinek  <jakub@redhat.com>
28220
28221         PR target/42854
28222         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
28223         if weak_import attribute is present.
28224         * config/darwin.c (machopic_select_section): Likewise.
28225
28226 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
28227
28228         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
28229         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
28230         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
28231         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
28232
28233         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
28234         types.
28235
28236         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
28237         Fix argument types.
28238
28239         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
28240         Rewrite text to refer to the names.
28241
28242 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
28243
28244         * config/i386/i386-builtin-types.def
28245         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
28246         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
28247         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
28248         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
28249         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
28250         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
28251         IX86_BUILTIN_VPERMIL2PS256.
28252         (MULTI_ARG_4_DF2_DI_I): Defined.
28253         (MULTI_ARG_4_DF2_DI_I1): Defined.
28254         (MULTI_ARG_4_SF2_SI_I): Defined.
28255         (MULTI_ARG_4_SF2_SI_I1): Defined.
28256         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
28257         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
28258         __builtin_ia32_vpermil2ps256.
28259         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
28260         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
28261         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
28262         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
28263         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
28264         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
28265         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
28266         CODE_FOR_xop_vpermil2v8sf3.
28267         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
28268         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
28269         * config/i386/xopintrin.h (_mm_permute2_pd): New.
28270         (_mm256_permute2_pd): New.
28271         (_mm_permute2_ps): New.
28272         (_mm256_permute2_ps): New.
28273
28274 2010-02-15  Nick Clifton  <nickc@redhat.com>
28275
28276         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
28277         boolean parameters.  Use emit_jump_insn when emitting a pop
28278         instruction containing a return insn.
28279         (push): Use 'true' rather than '1' as second parameter to F.
28280         (h8300_expand_prologue): Likewise.
28281         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
28282         (h8300_expand_epilogue): Likewise.
28283
28284 2010-02-15  Richard Guenther  <rguenther@suse.de>
28285
28286         PR middle-end/43068
28287         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
28288         if that is zero.
28289
28290 2010-02-15  Nick Clifton  <nickc@redhat.com>
28291
28292         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
28293         delta.
28294
28295 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
28296
28297         * intl.c (fake_ngettext): New function.
28298         * intl.h (fake_ngettext): Declare.
28299         (ngettext): Define macro.
28300         * collect2.c (notice_translated): New function.
28301         (main): Use notice_translated and ngettext.
28302         * collect2.h (notice_translated): Declare.
28303
28304 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
28305
28306         * reorg.c (delete_computation): Comment fixes.
28307         * caller-save.c (setup_save_areas): Idem.
28308         * sel-sched-dump.c (dump_lv_set): Idem.
28309         * rtl.def: Idem.
28310
28311 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28312
28313         * config/s390/s390.c (s390_sched_init): New function.
28314         (TARGET_SCHED_INIT): Target hook defined.
28315
28316 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
28317             Jack Howarth  <howarth@bromo.med.uc.edu>
28318             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
28319
28320         PR target/42982
28321         Partial revert of unintended change in fix for PR41605.
28322         * config/darwin.h: Fix typo.
28323         * config/darwin9.h: Same.
28324
28325 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
28326
28327         * c-pch.c (pch_init): Clear v.
28328
28329 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
28330
28331         PR middle-end/42930
28332         * graphite-scop-detection.c (graphite_can_represent_scev): Call
28333         graphite_can_represent_init for MULT_EXPR.
28334
28335 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
28336
28337         PR middle-end/42914
28338         PR middle-end/42530
28339         * graphite-sese-to-poly.c (remove_phi): New.
28340         (translate_scalar_reduction_to_array): Call remove_phi.
28341
28342 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
28343
28344         PR middle-end/42771
28345         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
28346         * graphite-clast-to-gimple.h (gloog): Update declaration.
28347         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
28348         * graphite-poly.h (struct poly_bb): Add missing comments.
28349         (struct scop): Add poly_scop_p field.
28350         (POLY_SCOP_P): New.
28351         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
28352         * graphite.c (graphite_transform_loops): Build the polyhedral
28353         representation for each scop before code generation.
28354         * sese.c (rename_variables_in_operand): Removed.
28355         (rename_variables_in_expr): Return the renamed expression.
28356         (rename_sese_parameters): New.
28357         * sese.h (rename_sese_parameters): Declared.
28358
28359 2010-02-11  Richard Guenther  <rguenther@suse.de>
28360
28361         PR tree-optimization/42998
28362         * tree-ssa-pre.c (create_expression_by_pieces): Treat
28363         POINTER_PLUS_EXPR properly.
28364
28365 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
28366             Changpeng Fang  <changpeng.fang@amd.com>
28367
28368         PR middle-end/40886
28369         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
28370         the cost of an IV candidate when the IV is used in a test against zero.
28371
28372         * gcc.dg/tree-ssa/ivopts-3.c: New.
28373
28374 2010-02-11  Richard Guenther  <rguenther@suse.de>
28375
28376         PR lto/41664
28377         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
28378         pointer-vs-decl case by swapping refs.  Handle some cases
28379         of pointer-vs-decl disambiguations more conservatively.
28380         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
28381         to false after expanding.
28382
28383 2010-02-11  Richard Guenther  <rguenther@suse.de>
28384
28385         PR driver/43021
28386         * gcc.c (process_command): Handle LTO file@offset case more
28387         appropriately.
28388
28389 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
28390
28391         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
28392         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
28393         of DEBUG_INSNs.
28394         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
28395
28396         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
28397         if MEM's mode size isn't DWARF2_ADDR_SIZE.
28398         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
28399         Optimize eq/ne comparisons when both arguments are known to be
28400         zero-extended.
28401         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
28402         Don't mask operands unnecessarily if they are known to be already
28403         zero-extended.
28404
28405 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
28406
28407         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
28408         instead of loop.
28409
28410 2010-02-10  Richard Guenther  <rguenther@suse.de>
28411
28412         PR tree-optimization/43017
28413         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
28414         for wrapping signed arithmetic.
28415
28416 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
28417
28418         PR debug/43010
28419         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
28420         if no debug info should be emitted for it.
28421
28422 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
28423
28424         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
28425         note when flag_exceptions is set.
28426
28427 2010-02-10  Duncan Sands  <baldrick@free.fr>
28428
28429         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
28430
28431 2010-02-10  Richard Guenther  <rguenther@suse.de>
28432
28433         PR c/43007
28434         * tree.c (get_unwidened): Handle constants.
28435         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
28436
28437 2010-02-10  Martin Jambor  <mjambor@suse.cz>
28438
28439         PR lto/42985
28440         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
28441         check for variable argument counts independently.
28442
28443 2010-02-10  Christian Bruel  <christian.bruel@st.com>
28444
28445         PR target/42841
28446         * config/sh/sh.c (find_barrier): Increase length for non delayed
28447         conditional branches.
28448
28449 2010-02-10  Christian Bruel  <christian.bruel@st.com>
28450
28451         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
28452
28453 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
28454
28455         * builtins.c (set_builtin_user_assembler_name): Also handle
28456         ffs if int is smaller than word.
28457
28458 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
28459
28460         PR middle-end/42973
28461         * ira-conflicts.c (get_dup): Remove.
28462         (process_reg_shuffles): Add new parameter.  Use it as an
28463         additional guard for copy generation.
28464         (add_insn_allocno_copies): Rewrite.
28465
28466 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
28467
28468         * common.opt (fsched2-use-traces): Preserved for backward
28469         compatibility.
28470         * doc/invoke.texi: Remove the documentation about option
28471         -fsched2-use-traces.
28472         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
28473         flag_sched2_use_traces.
28474         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
28475         the backward compatibility flag section.
28476
28477 2010-02-09  Richard Guenther  <rguenther@suse.de>
28478
28479         PR tree-optimization/43008
28480         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
28481         make HEAP variables initialized from global memory if they
28482         are not known builtin functions.
28483         (find_func_aliases): Adjust.
28484
28485 2010-02-09  Richard Guenther  <rguenther@suse.de>
28486
28487         PR tree-optimization/43000
28488         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
28489         arithmetic manually.
28490
28491 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
28492
28493         PR tree-optimization/42931
28494         * tree-loop-linear.c (try_interchange_loops): Don't call
28495         double_int_mul if estimated_loop_iterations failed.
28496
28497 2010-02-08  Martin Jambor  <mjambor@suse.cz>
28498
28499         PR middle-end/42898
28500         * tree-sra.c (build_accesses_from_assign): Do not mark in
28501         should_scalarize_away_bitmap if stmt has volatile ops.
28502         (sra_modify_assign): Do not process assigns piecemeal if if stmt
28503         has volatile ops.
28504
28505 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
28506
28507         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
28508
28509 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
28510
28511         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
28512         before the pattern.
28513
28514 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
28515
28516         PR middle-end/42946
28517         * df-core.c (df_finish_pass): Change type of saved_flags to int.
28518
28519 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
28520
28521         PR middle-end/42988
28522         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
28523         to unknown_dependence.
28524         (graphite_legal_transform_dr): Handle the unknown_dependence.
28525         (graphite_carried_dependence_level_k): Same.
28526
28527 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
28528
28529         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
28530
28531 2010-02-07  Richard Guenther  <rguenther@suse.de>
28532
28533         PR middle-end/42991
28534         * expr.c (get_inner_reference): Always initialize *pbitsize.
28535
28536 2010-02-07  Richard Guenther  <rguenther@suse.de>
28537
28538         PR middle-end/42956
28539         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
28540         new ARRAY_REFs on variable size element or minimal index arrays.
28541         Complete.
28542         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
28543         gimple_fold_indirect_ref.
28544
28545 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
28546
28547         PR target/42957
28548         * arm.c (arm_override_options): Just return if the user has specified
28549         an invalid fpu name.
28550
28551 2010-02-03  Jason Merrill  <jason@redhat.com>
28552
28553         PR c++/42870
28554         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
28555         i386_pe_maybe_record_exported_symbol.
28556
28557 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
28558
28559         PR target/42924
28560         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
28561         (pa_delegitimize_address): New function.
28562
28563 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
28564
28565         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
28566         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
28567
28568 2010-02-05  Richard Guenther  <rguenther@suse.de>
28569
28570         PR lto/42762
28571         * lto-streamer-in.c (get_resolution): Deal with references
28572         to undefined functions.
28573
28574 2010-02-05  Richard Guenther  <rguenther@suse.de>
28575
28576         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
28577         (fold_const_aggregate_ref): Likewise.
28578         (ccp_fold_stmt): Substitute loads.
28579         (maybe_fold_reference): Verify types before substituting.
28580         Unshare properly.
28581         (fold_gimple_assign): Unshare properly.
28582         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
28583
28584 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
28585
28586         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
28587         for rs6000_gen_cell_microcode.
28588
28589 2010-02-04  Richard Guenther  <rguenther@suse.de>
28590
28591         PR rtl-optimization/42952
28592         * dse.c (const_or_frame_p): Remove MEM handling.
28593
28594 2010-02-04  Nick Clifton  <nickc@redhat.com>
28595
28596         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
28597         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28598         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
28599         (mn10300_asm_output_mi_thunk): New function.
28600         (mn10300_can_output_mu_thunk): New function.
28601         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
28602         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
28603         (FUNCTION_ARG): Delete incorrect comment.
28604
28605 2010-02-03  Jason Merrill  <jason@redhat.com>
28606
28607         PR c++/40138
28608         * fold-const.c (operand_equal_p): Handle erroneous types.
28609
28610 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28611
28612         * config/h8300/h8300.md (can_delay): Fix attibute condition.
28613
28614 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
28615
28616         PR rtl-optimization/42941
28617         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
28618         of xmalloc.
28619
28620 2010-02-03  Jason Merrill  <jason@redhat.com>
28621
28622         PR c++/35652
28623         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
28624
28625 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
28626
28627         PR debug/42896
28628         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
28629         (cselib_reset_table): Renamed from...
28630         (cselib_reset_table_with_next_value): ... this.
28631         (cselib_get_next_uid): Renamed from...
28632         (cselib_get_next_unknown_value): ... this.
28633         * cselib.c (next_uid): Renamed from...
28634         (next_unknown_value): ... this.
28635         (cselib_clear_table): Adjust.
28636         (cselib_reset_table): Adjust.  Renamed from...
28637         (cselib_reset_table_with_next_value): ... this.
28638         (cselib_get_next_uid): Adjust.  Renamed from...
28639         (cselib_get_next_unknown_value): ... this.
28640         (get_value_hash): Use hash.
28641         (cselib_hash_rtx): Likewise.
28642         (new_cselib_val): Adjust.  Set and dump uid.
28643         (cselib_lookup_mem): Pass next_uid as hash.
28644         (cselib_subst_to_values): Likewise.
28645         (cselib_log_lookup): Dump uid.
28646         (cselib_lookup): Pass next_uid as hash.  Adjust.
28647         (cselib_process_insn): Adjust.
28648         (cselib_init): Initialize next_uid.
28649         (cselib_finish): Adjust.
28650         (dump_cselib_table): Likewise.
28651         * dse.c (canon_address): Dump value uid.
28652         * print-rtl.c (print_rtx): Print value uid.
28653         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
28654         (dvuid): New type.
28655         (dv_uid): New function, sort of renamed from...
28656         (dv_htab_hash): ... this, reimplemented in terms of it and...
28657         (dv_uid2hash): ... this.  New.
28658         (variable_htab_eq): Drop excess assertions.
28659         (tie_break_pointers): Removed.
28660         (canon_value_cmp): Compare uids.
28661         (variable_post_merge_New_vals): Print uids.
28662         (vt_add_function_parameters): Adjust.
28663         (vt_initialize): Reset table.  Adjust.
28664
28665 2010-02-03  Richard Guenther  <rguenther@suse.de>
28666
28667         PR tree-optimization/42944
28668         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
28669         (call_may_clobber_ref_p_1): Likewise.  Properly handle
28670         malloc and calloc clobbering errno.
28671
28672 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
28673
28674         * doc/invoke.texi: Fix name of sched1 dump.
28675
28676         * opts.c (decode_options): Set flag_tree_switch_conversion
28677         only conditionally on optimize >= 2.
28678
28679         * gcse.c: Assorted comment fixes in pass description.
28680
28681 2010-02-03  Anthony Green  <green@moxielogic.com>
28682
28683         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
28684         nop padding in order to maintain alignment of storage location of
28685         target function address.
28686         (moxie_trampoline_init): Store target function address at newly
28687         aligned location.
28688         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
28689         to 32.
28690         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
28691
28692 2010-02-03  Richard Guenther  <rguenther@suse.de>
28693
28694         PR middle-end/42927
28695         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
28696
28697 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28698
28699         * config.gcc: Reenable check for obsolete targets.
28700         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
28701         mips-sgi-irix6.[0-4]*.
28702
28703 2010-02-02  Nick Clifton  <nickc@redhat.com>
28704
28705         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
28706         constant size of 4 as being the same as 0.
28707         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
28708         can take values in the range 0..4.
28709
28710 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
28711
28712         PR java/41991
28713         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
28714         as _darwin10_Unwind_FindEnclosingFunction().
28715         * libgcc-libsystem.ver: New.
28716
28717 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
28718
28719         PR target/41399
28720         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
28721         implicitly set registers.
28722
28723 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
28724
28725         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
28726         (arm_override_options): Allow automatic selection of the thread
28727         pointer register if thumb2.
28728         (legitimize_pic_address): Improve code sequences for Thumb2.
28729         (arm_call_tls_get_addr): Likewise.
28730         (legitimize_tls_address): Likewise.
28731         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
28732         (pic_load_addr_32bit): ... this.  New named pattern.
28733         * thumb2.md (pic_load_addr_thumb2): Delete.
28734         (pic_load_dot_plus_four): Delete.
28735         (tls_load_dot_plus_four): New named pattern.
28736
28737 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28738
28739         PR libgomp/29986
28740         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
28741         Document fix for TLS bug.
28742
28743 2010-01-31  Richard Guenther  <rguenther@suse.de>
28744
28745         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
28746         conservatively correct.
28747
28748 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28749
28750         PR target/42850
28751         Revert:
28752         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28753
28754         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
28755
28756 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28757
28758         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
28759
28760 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
28761
28762         * config.gcc: Adjust order of makefile fragments for mingw targets.
28763
28764 2010-01-31  Richard Guenther  <rguenther@suse.de>
28765
28766         PR middle-end/42898
28767         * gimplify.c (gimplify_init_constructor): For volatile LHS
28768         initialize a temporary.
28769
28770 2010-01-31  Matthias Klose  <doko@ubuntu.com>
28771
28772         * configure.ac: Fix __stack_chk_fail check for cross builds configured
28773         --with-headers
28774         * configure: Regenerate.
28775
28776 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
28777
28778         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
28779         the same alias set and their sizes different constantness.
28780         (aliasing_component_refs_p): Revert 2009-10-24 change.
28781
28782 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28783
28784         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
28785         unused.
28786
28787 2010-01-29  Richard Guenther  <rguenther@suse.de>
28788
28789         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
28790         Assert we successfully updated the call.
28791
28792 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
28793
28794         PR rtl-optimization/42889
28795         * df.h (df_set_bb_dirty_nonlr): New prototype.
28796         * df-core.c (df_set_bb_dirty_nonlr): New function.
28797         * df-scan.c (df_insn_rescan): Call it instead of
28798         df_set_bb_dirty for DEBUG_INSNs.
28799
28800 2010-01-29  Richard Guenther  <rguenther@suse.de>
28801
28802         PR middle-end/37448
28803         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
28804         quadratic behavior in most cases.
28805
28806 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
28807
28808         PR target/42891
28809         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
28810         in the call to gen_x86_movsicc_0_m1.
28811
28812 2010-01-28  Richard Guenther  <rguenther@suse.de>
28813
28814         PR tree-optimization/42871
28815         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
28816
28817 2010-01-28  Richard Guenther  <rguenther@suse.de>
28818
28819         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
28820         into call arguments.
28821
28822 2010-01-28  Richard Guenther  <rguenther@suse.de>
28823
28824         PR middle-end/42883
28825         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
28826         the forwarder if the destination is an EH landing pad.
28827
28828 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
28829
28830         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
28831         block list passed to gimple_duplicate_sese_tail.
28832         (parallelize_loops): Avoid parallelization when the function
28833         has_nonlocal_label.
28834         Avoid parallelization when the preheader is IRREDUCIBLE.
28835         Try to optimize when estimated_loop_iterations_int is unresolved.
28836         Add the loop's location to the dump file.
28837         * tree-cfg.c (add_phi_args_after_redirect): Remove.
28838         (gimple_duplicate_sese_tail): Remove the check for the latch.
28839         Redirect nexits to the exit block.
28840         Remove handling of the incoming edges to the latch.
28841         Redirect the backedge from the copied latch to the exit bb.
28842
28843 2010-01-28  Michael Matz  <matz@suse.de>
28844
28845         PR target/42881
28846         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
28847         Wrap force_reg into a sequence, emit it before user.
28848
28849 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
28850
28851         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
28852         (arm_rev): New.
28853         (arm_legacy_rev): Likewise.
28854         (thumb_legacy_rev): Likewise.
28855
28856 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28857
28858         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
28859         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
28860         on MEM's address failed, try avoid_constant_pool_reference and
28861         recurse if it returned something different.
28862         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
28863         address, try avoid_constant_pool_reference and recurse if it
28864         returned something different.
28865         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
28866         address and avoid_constant_pool_reference returned something
28867         different, don't set have_address.
28868
28869 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
28870
28871         PR debug/42861
28872         * var-tracking.c (val_store): Add modified argument, obey it.
28873         Adjust callers.
28874         (count_uses): Move down logging of main.
28875         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
28876         don't need resolution.
28877         (emit_notes_in_bb): Likewise.
28878
28879 2010-01-27  Richard Guenther  <rguenther@suse.de>
28880
28881         PR middle-end/42878
28882         * tree-inline.c (remap_decl): Delay remapping of SSA name
28883         default definitions until we need them.
28884
28885 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28886
28887         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
28888         (rs6000_delegitimize_address): New function.
28889
28890         * config/s390/s390.c (s390_delegitimize_address): Call
28891         delegitimize_mem_from_attrs.
28892
28893         PR middle-end/42874
28894         * tree-inline.c (cannot_copy_type_1): Removed.
28895         (copy_forbidden): Don't forbid copying of functions containing
28896         records/unions with variable length fields.
28897
28898 2010-01-27  Christian Bruel  <christian.bruel@st.com>
28899
28900         Revert:
28901         PR target/42841
28902         * config/sh/sh.c (find_barrier): Increase length for non delayed
28903         conditional branches.
28904
28905 2010-01-27  Matthias Klose  <doko@ubuntu.com>
28906
28907         * configure.ac (gnu-unique-object): Fix ldd version check.
28908         * configure: Regenerate.
28909
28910 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28911
28912         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
28913         HAVE_GNU_AS value.
28914         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
28915         Test for HAVE_GNU_AS value.
28916
28917 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28918
28919         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
28920         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
28921         INT64_TYPE): Define.
28922         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
28923         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28924         INT_LEAST64_TYPE): Define.
28925         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
28926         UINT_LEAST64_TYPE): Define.
28927         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
28928         INT_FAST64_TYPE): Define.
28929         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28930         UINT_FAST64_TYPE): Define.
28931         (INTMAX_TYPE, UINTMAX_TYPE): Define.
28932         (INTPTR_TYPE, UINTPTR_TYPE): Define.
28933         (SIG_ATOMIC_TYPE): Define.
28934
28935 2010-01-26  Richard Guenther  <rguenther@suse.de>
28936
28937         * df-scan.c (df_scan_set_bb_info): Remove assert.
28938         (df_insn_rescan_debug_internal): Merge asserts.
28939         (df_install_ref): Likewise.
28940         (df_mark_reg): Use bitmap_set_range.
28941         (df_hard_reg_used_p): Remove assert.
28942         (df_hard_reg_used_count): Likewise.
28943
28944 2010-01-26  Richard Guenther  <rguenther@suse.de>
28945
28946         PR rtl-optimization/42685
28947         * web.c (web_main): Ignore DEBUG_INSNs.
28948
28949 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
28950
28951         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
28952
28953         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
28954         Fix types of fndecl and arglist parameters.
28955
28956 2010-01-26  Richard Guenther  <rguenther@suse.de>
28957
28958         PR middle-end/42806
28959         * tree-eh.c (unsplit_eh): Skip debug insns.
28960
28961 2010-01-26  Richard Guenther  <rguenther@suse.de>
28962
28963         PR tree-optimization/42250
28964         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
28965
28966 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
28967
28968         PR fortran/42866
28969         * omp-low.c (expand_omp_sections): Only use single_pred if
28970         l2_bb is single_pred_p.
28971
28972 2010-01-25  Christian Bruel  <christian.bruel@st.com>
28973
28974         PR target/42841
28975         * config/sh/sh.c (find_barrier): Increase length for non delayed
28976         conditional branches.
28977         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
28978
28979 2010-01-24  David S. Miller  <davem@davemloft.net>
28980
28981         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
28982         define if not using GAS.
28983         * config/sparc/sparc.c (sparc_elf_asm_named_section):
28984         Likewise.  Delete SECTION_MERGE code, which is only applicable
28985         when using GAS.
28986
28987 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
28988
28989         PR c++/42748
28990         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
28991         mangling of va_list in system headers.
28992
28993 2010-01-23  Toon Moene  <toon@moene.org>
28994
28995         * tree-predcom.c (combine_chains): Return NULL, not false.
28996
28997 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
28998
28999         * tree-loop-distribution.c (distribute_loop): Fix declaration and
29000         initialization of variable res to agree with return type.
29001
29002 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
29003
29004         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
29005         * tree-sra.c: Add include of expr.h.
29006
29007 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
29008
29009         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
29010         insert the debug stmt on the single non-EH edge from the stmt.
29011
29012 2010-01-22  Richard Henderson  <rth@redhat.com>
29013
29014         PR tree-opt/42833
29015         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
29016         the RHS until after generate_subtree_copies has insertted its
29017         code before the current statement.
29018
29019 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
29020
29021         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
29022
29023         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
29024
29025 2010-01-21  Martin Jambor  <mjambor@suse.cz>
29026
29027         PR tree-optimization/42585
29028         * tree-sra.c (struct access): New field grp_total_scalarization.
29029         (dump_access): Dump the new field.
29030         (should_scalarize_away_bitmap): New variable.
29031         (cannot_scalarize_away_bitmap): Likewise.
29032         (sra_initialize): Allocate new bitmaps.
29033         (sra_deinitialize): Free new bitmaps.
29034         (create_access_1): New function.
29035         (create_access): Parts moved to create_access_1.
29036         (type_consists_of_records_p): New function.
29037         (completely_scalarize_record): Likewise.
29038         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
29039         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
29040         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
29041         access.
29042         (analyze_all_variable_accesses): Completely scalarize small eligible
29043         records.
29044
29045 2010-01-21  Martin Jambor  <mjambor@suse.cz>
29046
29047         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
29048
29049 2010-01-21  Andrew Haley  <aph@redhat.com>
29050
29051         * gcc.c (process_command): Move lang_specific_driver before
29052         setting cc_libexec_prefix.
29053
29054 2010-01-21  Richard Guenther  <rguenther@suse.de>
29055
29056         PR middle-end/19988
29057         * fold-const.c (negate_expr_p): Pretend only negative
29058         real constants are easily negatable.
29059
29060 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
29061             Jason Merrill  <jason@redhat.com>
29062
29063         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
29064         (TYPE_TRANSPARENT_AGGR): this, for union and record.
29065         * calls.c (initialize argument_information): Handle it.
29066         * c-common.c (handle_transparent_union_attribute): Use new name.
29067         * c-decl.c (finish_struct): Ditto.
29068         * c-typeck.c (type_lists_compatible_p): Ditto.
29069         (convert_for_assignment): Use new name and also handle record.
29070         * function.c (aggregate_value_p): Handle it.
29071         (pass_by_reference): Ditto.
29072         (assign_parm_data_types): Ditto.
29073         * print-tree.c (print_node): Ditto.
29074         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
29075         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
29076         * tree.c (first_field): New fn.
29077
29078 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
29079
29080         PR target/42818
29081         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
29082         even when linking statically, for now.
29083
29084 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
29085
29086         PR debug/42715
29087         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
29088         without a cselib val.
29089         (count_uses): Accept MO_VAL_SET with no val on stores.
29090         (add_stores): Likewise.
29091
29092 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
29093
29094         * var-tracking.c (check_value_val): Add a compile time assertion.
29095         (dv_is_decl_p): Simplify.
29096         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
29097         gcc_assert if ENABLE_CHECKING.
29098
29099 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
29100
29101         PR debug/42782
29102         * var-tracking.c: Include tree-flow.h.
29103         (mem_dies_at_call): New.
29104         (dataflow_set_preserve_mem_locs): Use it.
29105         (dataflow_set_remove_mem_locs): Likewise.
29106         (dump_var): Renamed from dump_variable.  Adjust all callers.
29107         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
29108         * Makefile.in (var-tracking.o): Adjust deps.
29109
29110 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
29111
29112         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
29113
29114 2010-01-20  Richard Guenther  <rguenther@suse.de>
29115
29116         PR tree-optimization/42717
29117         * tree-ssa-dce.c (get_live_post_dom): Remove.
29118         (forward_edge_to_pdom): Take an arbitrary edge to copy
29119         degenerate PHI args from.
29120         (remove_dead_stmt): Use the first post-dominator even if it
29121         does not contain live statements as redirection destination.
29122
29123 2010-01-20  Richard Guenther  <rguenther@suse.de>
29124
29125         * tree-inline.c (estimate_num_insns): Handle EH builtins.
29126
29127 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
29128
29129         * sel-sched.c (create_speculation_check): Remove set but not used
29130         variable twin.
29131         (try_transformation_cache): Remove set but not used variable ds.
29132         (calculate_privileged_insns): Remove set but not used variables
29133         cur_insn and min_spec_insn.
29134         (find_best_expr): Remove set but not used variable avail_n.
29135         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
29136         variable e.
29137         * cgraphunit.c (assemble_thunk): Remove set but not used variable
29138         false_label.
29139         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
29140         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
29141         new_scop_exit_edge.
29142
29143 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
29144
29145         PR bootstrap/42786
29146         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
29147         cpu types.  Add support for *-sse3 cpu types.
29148         (x86_64-*-*): Ditto.
29149
29150 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
29151
29152         PR middle-end/42803
29153         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
29154         argument, call initializer_constant_valid_p_1 instead of
29155         initializer_constant_valid_p, pass CACHE to it, return NULL
29156         immediately if first call returns NULL.
29157         (initializer_constant_valid_p_1): New function.
29158         (initializer_constant_valid_p): Use it.
29159
29160 2010-01-20  Thomas Quinot  <quinot@adacore.com>
29161
29162         * tree.def (PLACEHOLDER_EXPR): Fix comment.
29163
29164 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
29165
29166         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
29167         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
29168         (loc_list_from_tree): Don't handle unsigned division.  Handle
29169         signed modulo using DW_OP_{over,over,div,mul,minus}.
29170         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
29171         modulo instead of signed.
29172
29173 2010-01-20  DJ Delorie  <dj@redhat.com>
29174
29175         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
29176         (Fpa): Pass it
29177         (h8300_emit_stack_adjustment): Propogate it.
29178         (push): Pass it.
29179         (h8300_expand_prologue): Likewise.
29180         (h8300_expand_epilogue): Likewise.
29181
29182 2010-01-19  Michael Matz  <matz@suse.de>
29183
29184         PR tree-optimization/41783
29185         * tree-data-ref.c (toplevel): Include flags.h.
29186         (dump_data_dependence_relation):  Also dump the inputs if the
29187         result will be unknown.
29188         (split_constant_offset_1): Look through some conversions.
29189         * tree-predcom.c (determine_roots_comp): Restart a new chain if
29190         the offset from last element is too large.
29191         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
29192         (reassociate_to_the_same_stmt): Handle vector registers.
29193         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
29194         (e.g. conversions).
29195         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
29196         wide_prolog_niters argument, emit widening instructions.
29197         (vect_do_peeling_for_alignment): Adjust caller, use widened
29198         variant of the iteration cound.
29199         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
29200
29201 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29202
29203         PR target/38697
29204         * config/arm/neon-testgen.m (emit_automatics): New parameter
29205         features. Adjust for Fixed_return_reg feature.
29206         (test_intrinsic): Call emit_automatics with new feature.
29207         * config/arm/neon.ml: Update copyright years.
29208         (features): New Fixed_return_reg feature.
29209         (ops): Update feature for Vget_low.
29210
29211 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
29212
29213         PR tree-optimization/42719
29214         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
29215         stmt uses.
29216
29217         PR debug/42728
29218         * fwprop.c (all_uses_available_at): Return false if def_set dest
29219         is a REG that is used in def_insn.
29220
29221 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
29222
29223         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
29224
29225         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
29226         Add argument names.
29227
29228         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
29229
29230         * target.h (struct gcc_target) <secondary_reload>: Change type
29231         of last argument to secondary_reload_info *.
29232
29233 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
29234
29235         PR target/42774
29236         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
29237         memory references with unaligned offsets.  Remove CQImode handling.
29238         (unaligned_memory_operand): Return 1 for memory references with
29239         unaligned offsets.  Remove CQImode handling.
29240
29241 2010-01-18  Richard Guenther  <rguenther@suse.de>
29242
29243         PR middle-end/39954
29244         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
29245         builtin calls.
29246
29247 2010-01-18  Richard Guenther  <rguenther@suse.de>
29248
29249         PR tree-optimization/42781
29250         * tree-ssa-structalias.c (find_what_var_points_to): Skip
29251         restrict processing only if the original variable was artificial.
29252
29253 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
29254
29255         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
29256         find number of popped argument bytes.
29257
29258         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
29259         Fix the text that describes the return value for invalid insns.
29260
29261         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
29262
29263         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
29264         Clarify what 'cost of the -dependence' is.  Fix quoting.
29265
29266         * toplev.c (default_get_pch_validity): Rename argument to "sz".
29267         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
29268
29269 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
29270
29271         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
29272         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
29273
29274 2010-01-17  Richard Guenther  <rguenther@suse.de>
29275
29276         PR middle-end/42248
29277         * function.c (split_complex_args): Take a VEC to modify.
29278         (assign_parms_augmented_arg_list): Build a VEC instead of
29279         a chain of PARM_DECLs.
29280         (assign_parms_unsplit_complex): Take a VEC of arguments.
29281         Do not fixup unmodified parms.
29282         (assign_parms): Deal with the VEC.
29283         (gimplify_parameters): Likewise.
29284
29285 2010-01-17  Richard Guenther  <rguenther@suse.de>
29286
29287         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
29288         node existence check.
29289         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
29290         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
29291         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
29292         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
29293         (gimple_execute_on_growing_pred): Likewise.
29294
29295 2010-01-17  Richard Guenther  <rguenther@suse.de>
29296
29297         PR tree-optimization/42773
29298         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
29299         (compute_antic_aux): Likewise.
29300         (compute_partial_antic_aux): Likewise.
29301
29302 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
29303
29304         PR debug/42767
29305         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
29306         and US_TRUNCATE.
29307
29308 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
29309
29310         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
29311         appearance.
29312
29313         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
29314         Fix markup for strict argument.
29315
29316         (TARGET_SCHED_REORDER2): Fix argument types.
29317
29318         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
29319         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
29320
29321         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
29322         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
29323
29324         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
29325         Add argument name.
29326
29327         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
29328         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
29329         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
29330         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
29331         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
29332
29333         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
29334
29335         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
29336
29337         (TARGET_ASM_RELOC_RW_MASK): Add return type.
29338         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
29339
29340         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
29341
29342         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
29343         Use prototype.
29344
29345         (TARGET_ASM_NAMED_SECTION): Fix argument list.
29346
29347         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
29348         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
29349
29350         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
29351
29352         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
29353
29354         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
29355         referring to it.  Fix language.
29356
29357         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
29358
29359         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
29360
29361         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
29362
29363         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
29364
29365         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
29366         '@var{stream}.  Remove stray 'and'.
29367
29368         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
29369
29370         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
29371
29372         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
29373
29374         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
29375         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
29376
29377         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
29378         Fix description of return value.
29379         Rename argument "sz" to "len."
29380
29381         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
29382         Clarify meaning of 'true' return value.
29383
29384         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
29385
29386         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
29387         rep_mode versus mode_rep.
29388
29389         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
29390
29391         (TARGET_BUILTIN_DECL): Fix name.
29392
29393         (TARGET_COMMUTATIVE_P): Fix type of first argument.
29394
29395         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
29396
29397         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
29398
29399         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
29400
29401         (TARGET_RELAXED_ORDERING): Use @deftypevr.
29402
29403         (TARGET_GET_DRAP_RTX): Note that this is a hook.
29404         Clarify language.
29405
29406         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
29407         Rename argument tm_fn to md_fn.
29408
29409         (TARGET_OPTION_PRINT): Fix argument list.
29410
29411 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
29412
29413         PR target/42664
29414         * config/i386/i386.c (ix86_fixup_binary_operands):
29415         Revert FMA4 fixup of operands.
29416
29417 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29418
29419         PR gcc/42525
29420         * Makefile.in (write_entries_to_file, install-plugin):
29421         Use \012 instead of \n with tr.
29422
29423 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
29424
29425         * configure.ac (HAVE_AS_REF): New C macro.
29426         * configure: Regenerate.
29427         * config.in: Likewise.
29428         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
29429         if HAVE_AS_REF.
29430         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
29431         if HAVE_AS_REF.
29432
29433 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
29434
29435         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
29436
29437         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
29438
29439         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
29440
29441         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
29442
29443         (TARGET_IN_SMALL_DATA_P): Fix argument type.
29444
29445         (TARGET_BINDS_LOCAL_P): Fix argument type.
29446
29447         (TARGET_ASM_FILE_END): Use prototype.
29448
29449         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
29450
29451         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
29452
29453         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
29454
29455         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
29456
29457         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
29458         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
29459
29460         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
29461         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
29462
29463         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
29464         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
29465         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
29466         (TARGET_ADDR_SPACE_CONVERT): Likewise.
29467
29468         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
29469
29470         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
29471
29472         (TARGET_INIT_BUILTINS): Use prototype.
29473
29474         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
29475         Put 'const char *' in braces.  Fix parameter types.
29476         (TARGET_INVALID_CONVERSION): Fix parameter types.
29477         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
29478         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
29479
29480         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
29481         Fix argument type.
29482
29483         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
29484
29485         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
29486
29487 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
29488
29489         * doc/tm.texi (TARGET_HELP): Fix return type.
29490
29491         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
29492         in braces.  Fix argument types.
29493
29494         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
29495
29496         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
29497
29498         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
29499
29500         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
29501         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
29502
29503         (TARGET_MANGLE_TYPE): Fix argument types.
29504
29505         (TARGET_IRA_COVER_CLASSES): Use prototype.
29506
29507         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
29508
29509         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
29510
29511         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
29512
29513         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
29514
29515         (TARGET_CALLEE_COPIES): Fix argument types.
29516
29517         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
29518
29519         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
29520
29521         (TARGET_FUNCTION_VALUE): Fix argument types.
29522
29523         (TARGET_RETURN_IN_MSB): Fix argument type.
29524
29525         (TARGET_RETURN_IN_MEMORY): Fix argument types.
29526
29527         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
29528
29529         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
29530
29531         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
29532         agree with return type.
29533
29534         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
29535
29536 2010-01-15  Jing Yu  <jingyu@google.com>
29537
29538         PR rtl-optimization/42691
29539         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
29540         a pseudo to a constant and are merged, and adjust comments.
29541
29542 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
29543
29544         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
29545
29546 2010-01-15  Richard Guenther  <rguenther@suse.de>
29547
29548         PR middle-end/42739
29549         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
29550         labels of computed or non-local gotos to the destination.
29551         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
29552         landing pad label is the first label.
29553
29554 2010-01-15  Richard Guenther  <rguenther@suse.de>
29555
29556         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
29557
29558 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
29559
29560         PR target/42747
29561         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
29562         to allow generation of the xssqrtdp instruction on power7.
29563         (sqrtdf2_fpr): Ditto.
29564
29565 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
29566
29567         PR middle-end/42674
29568         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
29569         functions with noreturn attribute.
29570
29571         PR c++/42608
29572         * varasm.c (declare_weak): Add weak attribute to decl if it
29573         doesn't have one already.
29574         (assemble_external): Only add decls to weak_decls if they also
29575         have weak attribute.
29576
29577 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
29578
29579         * var-tracking.c (var_reg_delete): Don't delete the association
29580         between REGs and values or one-part variables if the register
29581         isn't clobbered.
29582
29583 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
29584
29585         PR debug/42657
29586         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
29587         because its first operand is a non-localized variable.
29588
29589 2010-01-14  Martin Jambor  <mjambor@suse.cz>
29590
29591         PR tree-optimization/42706
29592         * tree-sra.c (encountered_recursive_call): New variable.
29593         (encountered_unchangable_recursive_call): Likewise.
29594         (sra_initialize): Initialize both new variables.
29595         (callsite_has_enough_arguments_p): New function.
29596         (scan_function): Call decl and flags check only for IPA-SRA, check
29597         whether there is a recursive call and whether it has enough arguments.
29598         (all_callers_have_enough_arguments_p): New function.
29599         (convert_callers): Look for recursive calls only when
29600         encountered_recursive_call is set.
29601         (ipa_early_sra): Bail out either if
29602         !all_callers_have_enough_arguments_p or
29603         encountered_unchangable_recursive_call.
29604
29605 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29606
29607         * sel-sched.c: Add 2010 to copyright years.
29608         * sel-sched-ir.c: Likewise.
29609         * sel-sched-ir.h: Likewise.
29610
29611 2010-01-14  Martin Jambor  <mjambor@suse.cz>
29612
29613         PR tree-optimization/42714
29614         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
29615         constructors specially.
29616
29617 2010-01-14  Andi Kleen  <ak@linux.intel.com>
29618
29619         * config/i386/drivers-i386.c (detect_caches_intel):
29620         Add l2sizekb parameter and fill in.
29621         (host_detect_local_cpu): Add l2sizekb, fill in.
29622         Add Atom small cache heuristic.
29623
29624 2010-01-14  Andi Kleen  <ak@linux.intel.com>
29625
29626         * config/i386/drivers-i386.c (detect_caches_cpuid4):
29627         Add level3 parameter and fill in.
29628         (detect_caches_intel): Handle level3 cache.
29629
29630 2010-01-14  Andi Kleen  <ak@linux.intel.com>
29631
29632         * config/i386/drivers-i386.c (host_detect_local_cpu):
29633         Fix core duo detection.
29634
29635 2010-01-14  Andi Kleen  <ak@linux.intel.com>
29636
29637         * config/i386/drivers-i386.c (host_detect_local_cpu):
29638         Fix Atom detection.
29639
29640 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29641
29642         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
29643         (rs6000_variable_issue_1): this.  Use...
29644         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
29645
29646 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29647
29648         * sel-sched-ir.c (sel_restore_other_notes): Rename to
29649         sel_restore_notes.  Update all callers.  Call reemit_notes
29650         for all insns.
29651
29652 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
29653
29654         PR rtl-optimization/42246
29655         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
29656         loops.
29657
29658 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
29659
29660         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
29661         all successors is the same as number of successors in current region.
29662
29663 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29664
29665         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
29666         to rename is not separable.  Otherwise check that its LHS is not NULL.
29667
29668 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29669
29670         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
29671
29672 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29673
29674         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
29675         available registers when failed to discover LHS register class.
29676         Fix indentation.  Update comment.
29677
29678 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
29679             Alexander Monakov  <amonakov@ispras.ru>
29680
29681         PR rtl-optimization/42389
29682         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
29683         to can_issue_more.
29684         (advance_state_on_fence): Likewise.
29685         (sel_target_adjust_priority): Print debug output only when
29686         sched_verbose >= 4, not 2.
29687         (get_expr_cost): Do not issue all unique insns on the next cycle.
29688         (fill_insns): Initialize can_issue_more from the value saved
29689         with the fence.
29690         * sel-sched-ir.c (flist_add): New parameter issue_more.
29691         Init FENCE_ISSUE_MORE with it.
29692         (merge_fences): Likewise.
29693         (init_fences): Update call to flist_add.
29694         (add_to_fences, add_clean_fence_to_fences)
29695         (add_dirty_fence_to_fences): Likewise.
29696         (move_fence_to_fences): Update call to merge_fences.
29697         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
29698         sched groups.
29699         * sel-sched-ir.h (struct _fence): New field issue_more.
29700         (FENCE_ISSUE_MORE): New accessor macro.
29701
29702 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
29703
29704         PR rtl-optimization/42388
29705         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
29706         that have no predecessors nor successors.  Do not call move_bb_info
29707         for empty blocks outside of current region.
29708
29709 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29710
29711         PR rtl-optimization/42294
29712         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
29713         * sel-sched.c (move_exprs_to_boundary): Transitively add all
29714         originators' originators.
29715
29716 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
29717
29718         PR rtl-optimization/39453
29719         PR rtl-optimization/42246
29720         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
29721         for pipelining_p.
29722         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
29723
29724 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
29725             Alexander Monakov  <amonakov@ispras.ru>
29726
29727         PR middle-end/42245
29728         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
29729         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
29730         argument.  Update all callers.
29731         (tidy_control_flow): ... and here.  Recompute topological order
29732         of basic blocks in region if necessary.
29733         (sel_redirect_edge_and_branch): Change return type.  Return true
29734         if topological order might have been invalidated.
29735         (purge_empty_blocks): Export and move from...
29736         * sel-sched.c (purge_empty_blocks): ... here.
29737         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
29738         (maybe_tidy_empty_bb): Delete prototype.
29739         (purge_empty_blocks): Declare.
29740
29741 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
29742
29743         PR rtl-optimization/42249
29744         * sel-sched.c (try_replace_dest_reg): When chosen register
29745         and original register is the same, do not bail out early, but
29746         still check all original insns for validity of replacing destination
29747         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
29748         in this case.
29749
29750 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
29751
29752         PR c/42721
29753         Port from no-undefined-overflow branch:
29754         2009-03-09  Richard Guenther  <rguenther@suse.de>
29755
29756         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
29757
29758 2010-01-14  Richard Guenther  <rguenther@suse.de>
29759
29760         PR lto/42665
29761         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
29762
29763 2010-01-14  Ira Rosen  <irar@il.ibm.com>
29764
29765         PR tree-optimization/42709
29766         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
29767         as scalar type in creation of constant vector operand.
29768
29769 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29770
29771         PR testsuite/42414
29772         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
29773         (check-parallel-%): Match `testsuite' directory component only
29774         at the end.
29775
29776 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
29777
29778         PR translation/39521
29779         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
29780         strings with _().
29781
29782 2010-01-13  Richard Guenther  <rguenther@suse.de>
29783
29784         PR tree-optimization/42730
29785         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
29786         offset zero.
29787
29788 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
29789
29790         PR target/pr42542
29791         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
29792         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
29793         them signed.
29794
29795 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
29796
29797         * config/bfin/libgcc-bfin.ver: Regenerate based on current
29798         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
29799         ___umulsi3_highpart.
29800
29801         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
29802         rather than schedule_insns if the pass is enabled.
29803
29804 2010-01-13  Martin Jambor  <mjambor@suse.cz>
29805
29806         PR tree-optimization/42704
29807         * tree-sra.c (sra_modify_assign): Do not delete assignments to
29808         SSA_NAMEs.
29809
29810 2010-01-13  Martin Jambor  <mjambor@suse.cz>
29811
29812         PR tree-optimization/42703
29813         * tree-sra.c (analyze_access_subtree): Check that we can build a
29814         reference to the original data within the aggregate.
29815
29816 2010-01-13  Richard Guenther  <rguenther@suse.de>
29817
29818         PR tree-optimization/42705
29819         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
29820
29821 2010-01-13  Richard Guenther  <rguenther@suse.de>
29822
29823         PR middle-end/42716
29824         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
29825
29826 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
29827
29828         PR debug/41371
29829         * var-tracking.c (values_to_unmark): New variable.
29830         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
29831         values_to_unmark vector.  Moved body to...
29832         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
29833         instead queue it into values_to_unmark vector.
29834         (vt_find_locations): Free values_to_unmark vector.
29835
29836 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
29837
29838         * config/s390/s390.c (override_options): Set
29839         default of max-pending-list-length to 256
29840
29841 2010-01-13  Richard Guenther  <rguenther@suse.de>
29842
29843         PR lto/42678
29844         * tree-pass.h (PROP_gimple_lcx): New.
29845         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
29846         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
29847         before the final cleanup_eh.
29848         (dump_properties): Dump PROP_gimple_lcx.
29849         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
29850         (tree_lower_complex_O0): Remove.
29851         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
29852         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
29853         tree_lower_complex, schedule TODO_update_ssa.
29854         * lto-streamer-out.c (output_function): Stream the functions
29855         properties.
29856         * lto-streamer-in.c (input_function): Likewise.
29857         (lto_read_body): Do not override them here.
29858
29859 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
29860
29861         PR c/42708
29862         * c-typeck.c (build_c_cast): Fold value cast to union type before
29863         wrapping it in a CONSTRUCTOR.
29864
29865 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29866
29867         PR rtl-optimization/42699
29868         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
29869         involved.
29870
29871 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29872
29873         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29874         SUBTARGET_WARN_UNUSED_SPEC): Move ...
29875         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29876         SUBTARGET_WARN_UNUSED_SPEC): ... here
29877         * config/mips/iris5.h (LIBGCC_SPEC): Define.
29878
29879 2010-01-12  Julian Brown  <julian@codesourcery.com>
29880
29881         * config/arm/neon-schedgen.ml (Utils): Don't try to
29882         open missing module.
29883         (find_with_result): New.
29884
29885 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29886
29887         PR debug/42662
29888         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
29889         sharing when canonicalizing ({lt,ge}u (plus a b) b).
29890
29891         PR tree-optimization/42645
29892         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
29893         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
29894         decl_map, set processing_debug_stmt to -1 and return name without
29895         any remapping.
29896
29897 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
29898
29899         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
29900         binutils version, and reword target configuration description.
29901
29902 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29903
29904         * config/avr/avr.h (LINKER_NAME): Remove.
29905
29906 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
29907
29908         PR target/42416
29909         * config/rs6000/rs6000.c (rs6000_override_options): On targets
29910         that support VSX, warn for -mno-altivec if vsx is not disabled,
29911         and disable vsx.
29912
29913 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
29914             Shujing Zhao  <pearly.zhao@oracle.com>
29915
29916         PR translation/42469
29917         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
29918         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
29919         character between option name and help text.
29920         * c.opt (imultilib): Likewise.
29921
29922 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
29923
29924         * lto-streamer-out.c (output_unreferenced_globals): Output static
29925         variables.
29926
29927 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
29928
29929         PR rtl-optimization/42621
29930         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
29931         optimizing for size.
29932         (duplicate_computed_gotos): Remove now-redundant check.
29933
29934 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
29935
29936         PR target/37454
29937         * configure.ac: Save and restore LDFLAGS and LIBS
29938         * configure: Regenerate.
29939
29940 2010-01-10  Richard Guenther  <rguenther@suse.de>
29941
29942         PR middle-end/42667
29943         * builtins.c (fold_builtin_strlen): Add type argument and
29944         convert the resulting length to it.
29945         (fold_builtin_1): Adjust.
29946
29947 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29948
29949         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
29950         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
29951         1 insn.
29952         (num_insns_constant_wide): Adjust for that change.
29953
29954 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29955
29956         PR debug/42631
29957         * web.c (union_defs): Add used argument, to combine uses of
29958         uninitialized regs.
29959         (entry_register): Adjust type and tests of used argument.
29960         (web_main): Widen used for new use.  Pass it to union_defs.
29961         * df.h (union_defs): Adjust prototype.
29962
29963 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29964
29965         PR debug/42630
29966         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
29967         uses in new incoming argument.  Free body.
29968         (reset_debug_uses_in_loop): New.
29969         (analyze_insn_to_expand_var): Call the latter if the former found
29970         anything.  Fix whitespace.  Reject invalid dest overlaps before
29971         going through all insns in the loop.
29972
29973 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29974
29975         PR debug/42629
29976         * haifa-sched.c (dying_use_p): Debug insns don't count.
29977
29978 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29979
29980         PR middle-end/42363
29981         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
29982         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
29983         (verify_gimple_call): Reject LHS in noreturn calls.
29984
29985 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29986
29987         PR debug/42604
29988         PR debug/42395
29989         * tree-vect-loop-manip.c (adjust_info): New type.
29990         (adjust_vec): New pointer to vector.
29991         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
29992         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
29993         (slpeel_update_phis_for_duplicate_loop): Use them.
29994         (slpeel_update_phi_nodes_for_guard1): Likewise.
29995         (slpeel_update_phi_nodes_for_guard2): Likewise.
29996         (slpeel_tree_peel_loop_to_edge): Likewise.
29997         (vect_update_ivs_after_vectorizer): Likewise.
29998
29999 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30000
30001         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
30002         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
30003
30004 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
30005
30006         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
30007         bogus uninitialized warning.
30008
30009 2010-01-09  Richard Guenther  <rguenther@suse.de>
30010
30011         PR middle-end/42512
30012         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
30013         the evolution is compatible with the initial condition.
30014
30015 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
30016
30017         * gcc.c (process_command): Update copyright notice dates.
30018         * gcov.c (print_version): Likewise.
30019         * gcov-dump.c (print_version): Likewise.
30020         * mips-tfile.c (main): Likewise.
30021         * mips-tdump.c (main): Likewise.
30022
30023 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
30024
30025         PR target/41885
30026         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
30027         (rotlhi3): Delete.
30028         (rotlhi3_8): Delete.
30029         (rotlsi3): Delete.
30030         (rotlsi3_8): Delete.
30031         (rotlsi3_16): Delete.
30032         (rotlsi3_24): Delete.
30033         (rotl<mode>3): New.
30034         (*rotw<mode>3): New.
30035         (*rotb<mode>3): New.
30036         * config/avr/avr.c (avr_rotate_bytes): New function.
30037         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
30038
30039 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
30040
30041         PR target/37454
30042         * configure.ac: Modify -rdynamic check.
30043         * configure: Regenerate.
30044
30045 2010-01-08  DJ Delorie  <dj@redhat.com>
30046
30047         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
30048         register popping order.
30049
30050 2010-01-08  Richard Guenther  <rguenther@suse.de>
30051
30052         PR lto/42528
30053         * c.opt (fsigned-char): Also let LTO handle this option.
30054         (funsigned-char): Likewise.
30055
30056 2010-01-07  Richard Guenther  <rguenther@suse.de>
30057
30058         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
30059         (gimple_op): Likewise.
30060         (gimple_op_ptr): Likewise.
30061         (gimple_assign_set_lhs): Remove gcc_assert.
30062         (gimple_assign_set_rhs1): Likewise.
30063         (gimple_assign_set_rhs2): Likewise.
30064         (gimple_call_set_lhs): Likewise.
30065         (gimple_call_set_fn): Likewise.
30066         (gimple_call_set_fndecl): Likewise.
30067         (gimple_call_fndecl): Likewise.
30068         (gimple_call_return_type): Likewise.
30069         (gimple_call_set_chain): Likewise.
30070         (gimple_call_num_args): Likewise.
30071         (gimple_call_set_arg): Likewise.
30072         (gimple_cond_set_code): Likewise.
30073         (gimple_cond_set_lhs): Likewise.
30074         (gimple_cond_set_rhs): Likewise.
30075         (gimple_cond_set_true_label): Likewise.
30076         (gimple_cond_set_false_label): Likewise.
30077         (gimple_label_set_label): Likewise.
30078         (gimple_goto_set_dest): Likewise.
30079         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
30080         (gimple_debug_bind_get_value): Likewise.
30081         (gimple_debug_bind_get_value_ptr): Likewise.
30082         (gimple_debug_bind_set_var): Likewise.
30083         (gimple_debug_bind_set_value): Likewise.
30084         (gimple_debug_bind_reset_value): Likewise.
30085         (gimple_debug_bind_has_value_p): Likewise.
30086         (gimple_return_retval_ptr): Remove gcc_assert.
30087         (gimple_return_retval): Likewise.
30088         (gimple_return_set_retval): Likewise.
30089         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
30090         (safe_referenced_var_iterator): Remove.
30091         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
30092         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
30093         (fill_referenced_var_vec): Remove.
30094         (first_readonly_imm_use): Remove redundant gcc_assert.
30095         (phi_arg_index_from_use): Combine gcc_asserts.
30096         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
30097         (first_imm_use_stmt): Remove redundant gcc_assert.
30098         * tree-cfg.c (verify_gimple_call): Verify function and chain
30099         operands.  Verify arguments.
30100         (verify_types_in_gimple_stmt): Verify condition code and labels.
30101
30102 2010-01-07  Richard Guenther  <rguenther@suse.de>
30103
30104         PR tree-optimization/42641
30105         * sese.c (rename_map_elt_info): Use the SSA name version, do
30106         not hash pointers.
30107
30108 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
30109
30110         PR tree-optimization/42625
30111         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
30112         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
30113
30114 2010-01-07  Duncan Sands  <baldrick@free.fr>
30115
30116         * Makefile.in (PLUGIN_HEADERS): Add version.h.
30117
30118 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
30119
30120         PR target/42511
30121         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
30122         note itself is not function_invariant_p.
30123
30124 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
30125
30126         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
30127         Do not add the DF_NOTE problem.
30128         * store-motion.c (execute_rtl_store_motion): Likewise.
30129
30130 2010-01-07  Martin Jambor  <mjambor@suse.cz>
30131
30132         PR tree-optimization/42157
30133         * tree-sra.c (compare_access_positions): Stabilize sort if both
30134         accesses have integer types, return zero immediately if they are the
30135         same.
30136
30137 2010-01-06  Richard Henderson  <rth@redhat.com>
30138
30139         PR middle-end/41883
30140         * haifa-sched.c (add_to_note_list): Merge into ...
30141         (concat_note_lists): ... here, and ...
30142         (unlink_other_notes, rm_other_notes): Merge into...
30143         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
30144         NOTE_INSN_EPILOGUE_BEG.
30145
30146 2010-01-06  Richard Guenther  <rguenther@suse.de>
30147
30148         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
30149         not inline regular functions into always-inline functions.
30150
30151 2010-01-06  Nick Clifton  <nickc@redhat.com>
30152
30153         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
30154         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
30155         used together.
30156         (OVERRIDE_OPTIONS): Delete.
30157         (OPTIMIZATION_OPTIONS): Define.
30158         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
30159         * config/rx/rx.c (rx_handle_option): Issue an error message if
30160         -mcpu=rx200 and -fpu are used together.
30161         (rx_set_optimization_options): New function.  Issue an error
30162         message if an optimization attribute attempts to reset the FPU/
30163         math optimization pairing.
30164         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
30165         * config/rx/rx.opt: Set the default to 32-bit doubles.
30166         * config/rx/t-rx: Add multilibs for -nofpu option.
30167         * doc/invoke.texi: Update documentation of RX options.
30168
30169 2010-01-06  Richard Guenther  <rguenther@suse.de>
30170
30171         * tree-ssa-pre.c (name_to_id): New global.
30172         (alloc_expression_id): Simplify SSA name handling.
30173         (lookup_expression_id): Likewise.
30174         (init_pre): Zero name_to_id.
30175         (fini_pre): Free it.
30176
30177 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
30178
30179         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
30180
30181 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
30182
30183         PR target/42542
30184         * config/i386/sse.md (smaxv2di3): New.
30185         (umaxv2di3): Likewise.
30186         (sminv2di3): Likewise.
30187         (uminv2di3): Likewise.
30188
30189 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
30190
30191         PR target/42564
30192         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
30193         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
30194         (legitimize_tls_address): Likewise.
30195         (sparc_tls_referenced_p): Likewise.
30196         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
30197         and adjust calls to legitimize_pic_address.
30198         (legitimate_constant_p) Use sparc_tls_referenced_p.
30199         (legitimate_pic_operand_p): Likewise.
30200         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
30201         (sparc_tls_symbol_ref_1): Delete.
30202         (sparc_tls_referenced_p): Make static, recognize specific patterns.
30203         (legitimize_tls_address): Make static, handle CONST patterns.
30204         (legitimize_pic_address): Make static, remove unused parameter and
30205         adjust recursive calls.
30206         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
30207         and adjust call to legitimize_pic_address.
30208         (sparc_output_mi_thunk): Likewise.
30209
30210 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
30211             H.J. Lu  <hongjiu.lu@intel.com>
30212
30213         PR target/42542
30214         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
30215         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
30216         operands to make them signed.
30217
30218         Revert:
30219         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
30220
30221         PR target/42542
30222         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
30223         GTU to GT for V4SI and V2DI.
30224
30225         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
30226         (umin<mode>3): Removed.
30227         (uminv8hi3): New.
30228         (uminv4si3): Likewise.
30229
30230 2010-01-05  Martin Jambor  <mjambor@suse.cz>
30231
30232         PR tree-optimization/42462
30233         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
30234         current_function_decl to helper functions and macros.
30235
30236 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30237
30238         PR bootstrap/41771
30239         * flags.h: Don't include real.h.
30240         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
30241         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
30242         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
30243         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
30244         * dominance.c: Update copyright.
30245         * gimple.c (walk_gimple_op): Remove inline.
30246         * tree-ssa-reassoc.c: Include real.h.
30247         * Makefile.in (FLAGS_H): Remove $(REAL_H).
30248         (tree-ssa-reassoc.o): Depend on $(REAL_H).
30249
30250 2010-01-05  Nick Clifton  <nickc@redhat.com>
30251
30252         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
30253         register to push into the stack frame when the accumulator has to
30254         be saved during interrupts.
30255
30256 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
30257
30258         * doc/invoke.texi: Remove the documentation about option
30259         -Wunreachable-code.
30260         * common.opt (Wunreachable-code):  Preserved for backward
30261         compatibility.
30262         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
30263         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
30264         the backward compatibility flag section.
30265
30266 2010-01-05  Richard Guenther  <rguenther@suse.de>
30267
30268         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
30269
30270 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
30271
30272         PR other/42611
30273         * cfgexpand.c (expand_one_var): Diagnose too large variables.
30274
30275         PR tree-optimization/42508
30276         * tree-sra.c (convert_callers): Check for recursive call
30277         by comparing cgraph nodes instead of decls.
30278         (modify_function): Call ipa_modify_formal_parameters also
30279         on all same_body aliases.
30280
30281         * cgraphunit.c (cgraph_materialize_all_clones): Compare
30282         cgraph nodes when checking for same_body aliases.
30283
30284 2010-01-05  Richard Guenther  <rguenther@suse.de>
30285
30286         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
30287         allocation and lookup.
30288         (get_or_alloc_expr_for_constant): Likewise.
30289         (phi_translate): Sink allocation.
30290
30291 2010-01-04  Richard Guenther  <rguenther@suse.de>
30292
30293         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
30294         a new entry only if needed.
30295         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
30296         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
30297         hashtable lookup.
30298         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
30299         the result array.
30300         (phi_translate): Handle CONSTANTs early.
30301
30302 2010-01-04  Martin Jambor  <mjambor@suse.cz>
30303
30304         PR tree-optimization/42398
30305         * tree-sra.c (struct access): Removed flag grp_different_types.
30306         (dump_access): Do not dump the removed flag.
30307         (sort_and_splice_var_accesses): Do not set the removed flag.
30308         (sra_modify_expr): Check for type compatibility directly.
30309
30310 2010-01-04  Martin Jambor  <mjambor@suse.cz>
30311
30312         PR tree-optimization/42366
30313         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
30314         edges with variable number of parameters.
30315         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
30316         flag instead of asserting it.
30317         (ipa_read_node_info): Read uses_analysis_done flag.
30318
30319 2010-01-04  Richard Guenther  <rguenther@suse.de>
30320
30321         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
30322         iterative_hash_* as intended.
30323         (vn_reference_compute_hash): Likewise.  Simplify hashing
30324         SSA names.
30325         (vn_reference_lookup_2): Likewise.
30326         (vn_nary_op_compute_hash): Likewise.
30327         (vn_phi_compute_hash): Likewise.
30328         (expressions_equal_p): Remove strange code.
30329         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
30330         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
30331         (bitmap_insert_into_set_1): Take value-id as parameter.
30332         (add_to_value): Pass it.
30333         (bitmap_insert_into_set): Likewise.
30334         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
30335
30336 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
30337
30338         PR driver/42442
30339         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
30340         (do_self_spec): For switches with SWITCH_IGNORE set set also
30341         SWITCH_IGNORE_PERMANENTLY.
30342         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
30343         of SWITCH_IGNORE.
30344
30345 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
30346
30347         * lto-streamer-out.c (output_unreferenced_globals): Output the full
30348         tree of an unreferenced global var.
30349
30350 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
30351
30352         PR target/42542
30353         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
30354         GTU to GT for V4SI and V2DI.
30355
30356         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
30357         (umin<mode>3): Removed.
30358         (uminv8hi3): New.
30359         (uminv4si3): Likewise.
30360
30361 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
30362
30363         PR lto/42581
30364         * collect2.c (main): Turn on trace in collect2 if -v is passed
30365         to gcc with LTO.
30366
30367 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
30368
30369         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
30370         description of expression operand.
30371
30372 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
30373
30374         * configure.ac: Add install-html to target_list for Make-hooks.
30375         * configure: Regenerate.
30376         * fortran/Make-lang.in (F95_HTMLFILES): New.
30377         (fortran.html): Use it.
30378         (fortran.install-html): New.
30379         * Makefile.in (install-html): Add lang.install-html.
30380         * java/Make-lang.in (JAVA_HTMLFILES): New.
30381         (java.html): Use it.
30382         (java.install-html): New.
30383         * objc/Make-lang.in (objc.install-html): New.
30384         * objcp/Make-lang.in (obj-c++.install-html): New.
30385         * cp/Make-lang.in (c++.install-html): New.
30386         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
30387         * lto/Make-lang.in (lto.install-html): New.
30388
30389 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
30390
30391         PR lto/42520
30392         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
30393
30394 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
30395
30396         PR rtl-optimization/41862
30397         * store-motion.c (store_killed_in_insn, compute_store_table,
30398         remove_reachable_equiv_notes, replace_store_insn,
30399         build_store_vectors): Ignore all DEBUG_INSNs.
30400
30401 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
30402
30403         PR lto/41564
30404         * common.opt: Add dumpdir.
30405
30406         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
30407         isn't specified.
30408         (option_map): Add --dumpdir.
30409
30410         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
30411
30412         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
30413
30414         * opts.c (decode_options): Try dump_dir_name first if
30415         dump_base_name isn't an absolute path.
30416         (common_handle_option): Handle OPT_dumpdir.
30417
30418         * toplev.c (dump_dir_name): New.
30419         (print_switch_values): Also ignore -dumpdir.
30420
30421         * toplev.h (dump_dir_name): New.
30422
30423 2010-01-03  Richard Guenther  <rguenther@suse.de>
30424
30425         PR tree-optimization/42589
30426         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
30427         double-word expansion of bswap32.
30428
30429 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
30430
30431         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
30432         with BLOCK_FOR_INSN.
30433         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
30434         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
30435         noce_process_if_block): Likewise.
30436         * gcse.c (compute_local_properties, insert_expr_in_table,
30437         insert_set_in_table, canon_list_insert, find_avail_set,
30438         pre_insert_copy_insn): Likewise.
30439
30440         * basic-block.h (BLOCK_NUM): Move from here...
30441         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
30442
30443 2010-01-03  Richard Guenther  <rguenther@suse.de>
30444
30445         PR tree-optimization/42438
30446         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
30447         contains_may_not_return_call flag.
30448         (BB_MAY_NOTRETURN): New.
30449         (valid_in_sets): Trapping nary operations are not valid
30450         in blocks that may not return.
30451         (insert_into_preds_of_block): Remove check for trapping expressions.
30452         (compute_avail): Compute also BB_MAY_NOTRETURN.
30453
30454 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
30455
30456         * doc/invoke.texi: Add 2010 to copyright years.
30457
30458 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
30459
30460         * config/sparc/sparc.c: Fix formatting nits.
30461
30462 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
30463             Alexander Monakov  <amonakov@ispras.ru>
30464
30465         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
30466
30467 2010-01-02  Richard Guenther  <rguenther@suse.de>
30468
30469         PR middle-end/42577
30470         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
30471         (simplify_switch_using_ranges): Mark to be removed edges
30472         as non-executable.
30473
30474 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30475
30476         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
30477
30478         * collect2.c (scan_libraries): Add missing argument in call to
30479         scan_prog_file.
30480
30481 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
30482
30483         PR target/42448
30484         * config/alpha/predicates.md (aligned_memory_operand): Return false
30485         for CQImode.
30486         (unaligned_memory_operand): Return true for CQImode.
30487         * config/alpha/alpha.c (get_aligned_mem): Assert that location
30488         doesn not cross aligned SImode word boundary.
30489
30490 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
30491
30492         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
30493         Remove.
30494         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
30495         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
30496
30497 2010-01-02  Richard Guenther  <rguenther@suse.de>
30498
30499         PR lto/41597
30500         * toplev.c (compile_file): Emit LTO marker properly.  Change
30501         it to __gnu_lto_v1.
30502         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
30503
30504 2010-01-01  Richard Guenther  <rguenther@suse.de>
30505
30506         PR debug/42455
30507         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
30508
30509 2010-01-01  Richard Guenther  <rguenther@suse.de>
30510
30511         PR c/42570
30512         * c-decl.c (grokdeclarator): For zero-size arrays force
30513         structural equality checks as layout_type does.
30514
30515 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
30516
30517         * builtins.c: Update copyright to 2010.
30518
30519 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
30520
30521         PR lto/42531
30522         * lto-streamer-out.c (produce_asm): Revert the last change.
30523         (copy_function): Likewise.
30524
30525         * lto-streamer.c (lto_get_section_name): Skip any leading
30526         asterisk in name.
30527
30528 2010-01-01  Richard Guenther  <rguenther@suse.de>
30529
30530         PR middle-end/42559
30531         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
30532         for LABEL_DECLs.
30533
30534 \f
30535 Copyright (C) 2010 Free Software Foundation, Inc.
30536
30537 Copying and distribution of this file, with or without modification,
30538 are permitted in any medium without royalty provided the copyright
30539 notice and this notice are preserved.