OSDN Git Service

* config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-06-18  Alan Modra  <amodra@gmail.com>
2
3         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4
5 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6
7         PR target/43740
8         config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag for
9         SET source operand from SET destination operand.
10
11 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
12
13         PR rtl-optimization/39871
14         * reload1.c (init_eliminable_invariants): For flag_pic, disable
15         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
16         (function_invariant_p): Rule out a plus of frame or arg pointer with
17         a SYMBOL_REF.
18         * ira.c (find_reg_equiv_invariant_const): Likewise.
19
20 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
21
22         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
23         print_operand_address and puts to output the operand for CONST.
24
25 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
26
27         PR debug/44572
28         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
29         hook.
30
31 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
32
33         * v850-protos.h (print_operand): Delete.
34         (print_operand_address): Delete.
35         * v850.h (PRINT_OPERAND): Delete.
36         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
37         (PRINT_OPERAND_ADDRESS): Delete.
38         * v850.c (print_operand_address): Rename to...
39         (v850_print_operand_address): ...this.  Make static. Call
40         v850_print_operand.
41         (print_operand): Rename to...
42         (v850_print_operand): ...this.  Make static.  Call
43         v850_print_operand_address.
44         (v850_print_operand_punct_valid_p): New function.
45         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
46         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
47
48 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
49
50         * config/sh/sh-protos.h (print_operand): Delete.
51         (print_operand_address): Delete.
52         * config/sh/sh.h (PRINT_OPERAND): Delete.
53         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
54         (PRINT_OPERAND_ADDRESS): Delete.
55         * config/sh/sh.c (sh_print_operand_address): Make static.
56         (sh_print_operand): Make static.  Call sh_print_operand_address
57         and sh_print_operand.
58         (sh_print_operand_punct_valid_p): New function.
59         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
60         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
61
62 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
63
64         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
65         (mcore_print_operand_address): Delete.
66         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
67         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
68         (PRINT_OPERAND_ADDRESS): Delete.
69         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
70         (mcore_print_operand): Make static.
71         (mcore_print_operand_punct_valid_p): New function.
72         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
73         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
74
75 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
76
77         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
78         (print_operand_address): Delete.
79         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
80         (PRINT_OPERAND_ADDRESS): Delete.
81         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
82         static.
83         (m68hc11_print_operand): Make static.
84         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
85
86 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
87
88         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
89         (m32r_print_operand_address): Delete.
90         * config/m32r/m32r.h (m32r_punct_chars): Delete.
91         (PRINT_OPERAND): Delete.
92         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
93         (PRINT_OPERAND_ADDRESS): Delete.
94         * config/m32r/m32r.c (m32r_punct_chars): Make static.
95         (m32r_print_operand_address): Make static.
96         (m32r_print_operand): Make static.
97         (m32r_print_operand_punct_valid_p): New function.
98         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
99         (TARGET_PRINT_OPERAND_ADDRESS): Define.
100
101 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
102
103         * config/iq2000/iq2000-protos.h (print_operand): Delete.
104         (print_operand_address): Delete.
105         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
106         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
107         (PRINT_OPERAND_ADDRESS): Delete.
108         (iq2000_print_operand_punct): Delete.
109         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
110         (iq2000_print_operand_address): Make static.
111         (iq2000_print_operand): Make static.
112         (iq2000_print_operand_punct_valid_p): New function.
113         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
114         (TARGET_PRINT_OPERAND_ADDRESS): Define.
115
116 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
117
118         * config/frv/frv-protos.h (frv_print_operand): Delete.
119         (frv_print_operand_address): Delete.
120         * config/frv/frv.h (PRINT_OPERAND): Delete.
121         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
122         (PRINT_OPERAND_ADDRESS): Delete.
123         * config/frv/frv.c (frv_print_operand_address): Make static.
124         (frv_print_operand): Make static.
125         (frv_print_operand_punct_valid_p): New function.
126         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
127         (TARGET_PRINT_OPERAND_ADDRESS): Define.
128
129 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
130
131         * tree.h (vec_member): Declare.
132         * tree.c (vec_member): Define.
133
134 2010-06-17  Richard Guenther  <rguenther@suse.de>
135
136         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
137         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
138
139 2010-06-17  Richard Guenther  <rguenther@suse.de>
140
141         * tree-inline.c (declare_return_variable): Remove bogus code.
142
143 2010-06-17  Richard Guenther  <rguenther@suse.de>
144
145         * gimplify.c (gimplify_bind_expr): Always promote complex
146         and vector variables to registers if possible.
147
148 2010-06-17  Richard Guenther  <rguenther@suse.de>
149
150         * expr.c (get_inner_reference): Use double_int for bit_offset
151         calculation.
152
153 2010-06-16  DJ Delorie  <dj@redhat.com>
154
155         * common.opt (-fstrict-volatile-bitfields): new.
156         * doc/invoke.texi: Document it.
157         * fold-const.c (optimize_bit_field_compare): For volatile
158         bitfields, use the field's type to determine the mode, not the
159         field's size.
160         * expr.c (expand_assignment): Likewise.
161         (get_inner_reference): Likewise.
162         (expand_expr_real_1): Likewise.
163         * expmed.c (store_fixed_bit_field): Likewise.
164         (extract_bit_field_1): Likewise.
165         (extract_fixed_bit_field): Likewise.
166
167 2010-06-16  Richard Guenther  <rguenther@suse.de>
168
169         * tree-inline.c (remap_gimple_op_r): Recurse using
170         remap_gimple_op_r.
171
172 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
173
174         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
175         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
176         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
177         * debug.c: Likewise.
178         * sdbout.c: Likewise.
179         * vmsdbgout.c: Likewise.
180         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
181         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
182         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
183         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
184         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
185         * dwarf2out.c (dw_fde_struct): New fields
186         dw_fde_vms_{end,begin}_prologue.
187         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
188         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
189         (dwarf2out_vms_end_prologue): New function.
190         (dwarf2out_vms_begin_epilogue): New function.
191         (dw_val_struct): New value dw_val_class_vms_delta.
192         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
193         begin_epilogue for VMS.
194         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
195         new static functions.
196         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
197         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New 
198         static functions.
199         (print_die): New case dw_val_class_vms_delta.
200         (attr_checksum): Likewise.
201         (same_dw_val_p: Likewise.
202         (size_of_die): Likewise.
203         (value_format): Likewise.
204         (output_die): Likewise.
205         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
206         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
207         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
208         dwarf2out_cfi_begin_epilogue
209         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
210
211 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
212
213         * config/cris/cris-protos.h (cris_print_operand): Delete.
214         (cris_print_operand_address): Delete.
215         * config/cris/cris.h (PRINT_OPERAND): Delete.
216         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
217         (PRINT_OPERAND_ADDRESS): Delete.
218         * config/cris/cris.c (cris_print_operand_address): Make static.
219         (cris_print_operand): Make static.
220         (cris_print_operand_punct_valid_p): New function.
221         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
222         (TARGET_PRINT_OPERAND_ADDRESS): Define.
223
224 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
225
226         * config/arm/arm-protos.h (arm_print_operand): Delete.
227         (arm_print_operand_address): Delete.
228         * config/arm/arm.h (PRINT_OPERAND): Delete.
229         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
230         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
231         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
232         * config/arm/arm.c (arm_print_operand_address): ...here.  New
233         function.
234         (arm_print_operand): Make static.
235         (arm_print_operand_punct_valid_p): New function.
236         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
237         (TARGET_PRINT_OPERAND_ADDRESS): Define.
238
239 2010-06-16  Nick Clifton  <nickc@redhat.com>
240
241         * config/rx/constraints.md (NEGint4): New constraint.
242         * config/rx/rx.md (attr cc): Add set_zsc.
243         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
244         initialised.
245         (cmpsf): Likewise.
246         (call_internal): Clobber the cc0 register.
247         (call_value_internal): Likewise.
248         (cstoresi4): Likewise.
249         (movsieq): Likewise.
250         (movsine): Likewise.
251         (addsi3): Add alternative to handle small negative constants.
252         (sunsi3): Likewise.
253         (addsi3): Do not set the O bit in the cc0 register.
254         (adddi3): Likewise.
255         (subsi3): Likewise.
256         (subdi3): Likewise.
257         (andsi3): Reorder alternatives to prefer shorter forms.
258         (mulsi3): Likewise.
259         (iorsi3): Likewise.
260         (negsi2): Note that the cc0 flags are set.
261         (rotlsi3): Note that only the Z and S bits are set in cc0.
262         (lshrsi3): Likewise.
263         (ashlsi3): Likewise.
264         (subsf3): Use %Q for the MEM operand.
265         (fix_truncsfsi2): Likewise.
266         (floatsisf2): Likewise.
267         (bitset): Remove early clobber from destination.
268         (bitset_in_memory): Likewise.
269         (lrintsf2): Clobber the cc0 register.
270         * config/rx/rx.c (rx_notice_update_cc):
271         Handle CC_SET_ZSC.
272         (rx_print_operand): Handle %N.
273
274 2010-06-16  Jan Hubicka  <jh@suse.cz>
275
276         * df-core.c (df_compact_blocks): Free problem_temps vector.
277
278 2010-06-16  Martin Jambor  <mjambor@suse.cz>
279
280         PR tree-optimization/43905
281         * tree-sra.c: Include tree-inline.h.
282         (create_abstract_origin): Removed.
283         (modify_function): Version the call graph node instead of creating
284         abstract origins and dealing with same_body aliases.
285         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
286         function is versionable.
287         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
288
289 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
290
291         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
292         (CHOOSE_DYNAMIC_LINKER): Update.
293
294 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
295
296         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
297         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
298         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
299         *prefetch_3dnow_rex.
300
301 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
302
303         * target.h (struct asm_out):Add declare_constant_name field.
304         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
305         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
306         * output.h (default_asm_declare_constant_name): Declare.
307         (assemble_label): Update prototype.
308         * varasm.c (assemble_constant_contents): Use
309         targetm.asm_out.declare_constant_name target hook.
310         (assemble_label): Add 'file' argument.
311         (default_asm_declare_constant_name): New function.
312         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
313         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
314         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
315
316         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
317         * config/darwin.c (darwin_asm_declare_constant_name): New function.
318         (machopic_output_indirection): Update assemble_label argument list.
319         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
320         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
321
322 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
323
324         PR middle-end/44391
325         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
326         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
327
328 2010-06-15  Richard Guenther  <rguenther@suse.de>
329
330         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
331
332 2010-06-15  Paul Brook  <paul@codesourcery.com>
333
334         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
335         hard-float ABI.
336
337 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
338
339         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
340         don't get a vector type for output.
341
342 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
343
344         PR fortran/44536
345         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
346         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
347         (LANG_HOOKS_DECLS): Add it.
348         * gimplify.c (omp_notice_variable): Call
349         lang_hooks.decls.omp_report_decl.
350
351 2010-06-15  Martin Jambor  <mjambor@suse.cz>
352
353         PR lto/44464
354         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
355         on the newly dead SSA name.
356
357 2010-06-15  Alan Modra  <amodra@gmail.com>
358
359         * doc/invoke.texi: Add mcmodel to powerpc options.
360         * configure.ac: Add HAVE_LD_LARGE_TOC test.
361         * configure: Regenerate.
362         * config.in: Regenerate.
363         * config/rs6000/linux64.opt (mcmodel): New.
364         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
365         (TARGET_CMODEL, SET_CMODEL): Define.
366         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
367         select CMODEL_MEDIUM default.
368         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
369         (TARGET_CMODEL): Define default.
370         * config/rs6000/rs6000.c (cmodel): New variable.
371         (rs6000_explicit_options): Add cmodel field.
372         (rs6000_handle_option): Handle -mcmodel.
373         (create_TOC_reference): Add largetoc_reg param.  Generate high,
374         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
375         (rs6000_delegitimize_address): Recognise new toc reference rtl
376         and minimal-toc rtl.
377         (rs6000_legitimize_reload_address): Handle new toc references.
378         (print_operand_address): Handle legitimate_constant_pool_address_p
379         match before lo_sum.
380         (rs6000_eliminate_indexed_memrefs): Tidy.
381         (rs6000_emit_move): Tweak threshold for inlining constants.
382         Keep rs6000_emit_allocate_stack large stack frame offsets
383         loaded into r0 inline.
384         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
385         (tocrel_base, tocrel_offset): New variables.
386         (toc_relative_expr_p): Set them here.
387         (print_operand_address): Skip over any offset on constant pool address.
388         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
389         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
390         (offsettable_ok_by_alignment): New function.
391         (rs6000_emit_move): Address suitably aligned local symbol_refs
392         relative to the toc pointer for -mcmodel=medium.
393         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
394         strict param.  Allow lo_sum version of addressing.  Verify reg
395         used for -mminimal-toc and -mcmodel != small.  Update all callers.
396         * config/rs6000/constraints.md: Update for above change.
397         * config/rs6000/predicates.md: Likewise.
398         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
399         code.
400         (tls_gd): Split for -mcmodel=medium/large.
401         (tls_gd_high, tls_gd_low): New.
402         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
403         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
404         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
405         (largetoc_high, largetoc_low): New.
406         (cmptf_internal2): Add clobber.
407         * config/rs6000/rs6000-protos.h: Update.
408
409 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
410
411         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
412         true if no prefetch is going to be generated for a given group.
413         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
414         estimate the prefetch_count.
415         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
416         prefetch count by considering the unroll_factor and prefetch_mod
417         for is_loop_prefetching_profitable.
418
419 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
420
421         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
422         anything if the argument is not a MEM.
423
424 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
425
426         PR debug/43650
427         PR debug/44181
428         PR debug/44247
429         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
430         debug stmts.
431         (canonicalize_loop_ivs): Likewise.
432
433 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
434
435         PR debug/43656
436         * haifa-sched.c (setup_insn_reg_pressure_info,
437         update_register_pressure): Reject debug insns.
438         (ready_sort): Don't setup reg pressure for debug insns.
439         (schedule_insn): Don't update reg pressure for debug insns.
440
441 2010-06-14  Richard Guenther  <rguenther@suse.de>
442
443         * lto-streamer.c (cached_bp): Remove.
444         (bitpack_delete): Likewise.
445         (bitpack_create): Likewise.
446         (bp_get_next_word): Likewise.
447         (bp_pack_value, bp_unpack_value): Move ...
448         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
449         Re-implement.
450         (struct bitpack_d): Likewise.
451         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
452         New inline functions.
453         * lto-streamer-out.c (lto_output_bitpack): Remove.
454         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
455         (pack_value_fields): Adjust.
456         (lto_write_tree): Likewise.
457         (output_gimple_stmt): Likewise.
458         (output_function): Likewise.
459         * lto-streamer-in.c (input_gimple_stmt): Adjust.
460         (input_function): Likewise.
461         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
462         (lto_input_bitpack): Remove.
463         (lto_materialize_tree): Adjust.
464         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
465         * lto-cgraph.c (lto_output_edge): Adjust.
466         (lto_output_node): Likewise.
467         (lto_output_varpool_node): Likewise.
468         (lto_output_ref): Likewise.
469         (input_node): Likewise.
470         (input_varpool_node): Likewise.
471         (input_ref): Likewise.
472         (input_edge): Likewise.
473         (output_node_opt_summary): Likewise.
474         (input_node_opt_summary): Likewise.
475         * ipa-pure-const.c (pure_const_write_summary): Likewise.
476         (pure_const_read_summary): Likewise.
477         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
478         (ipa_read_indirect_edge_info): Likewise.
479         (ipa_write_node_info): Likewise.
480         (ipa_read_node_info): Likewise.
481
482 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
483
484         PR target/44534
485         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
486         (vec_extract_lo_v16hi): Likewise.
487         (vec_extract_lo_v32qi): Likewise.
488
489 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
490
491         PR bootstrap/44426
492         * tree.h (build_call_expr): Don't define as vararg macro, instead
493         add a prototype.
494         * builtins.c (build_call_nofold): Remove.
495         (expand_builtin_int_roundingfn, expand_builtin_pow,
496         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
497         expand_builtin_memset_args, expand_builtin_strcmp,
498         expand_builtin_strncmp, expand_builtin_memory_chk): Use
499         build_call_nofold_loc instead of build_call_nofold.
500         (build_call_expr): New function.
501
502         PR tree-optimization/44508
503         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
504         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
505         don't eliminate trivially dead stmts.
506         * tree-vrp.c (vrp_finalize): Pass false as last argument
507         to substitute_and_fold.
508         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
509         to substitute_and_fold.
510         * tree-ssa-ccp.c (ccp_finalize): Likewise.
511
512         PR bootstrap/44509
513         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
514         * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
515         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
516         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
517         ggc_strdup instead of xstrdup.
518
519 2010-06-14  Ira Rosen  <irar@il.ibm.com>
520
521         PR tree-optimization/44507
522         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
523         to build initial vector for BIT_AND_EXPR.
524         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
525
526 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
527
528         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
529         adjust z10prop set_attr.
530
531 2010-06-13  Jan Hubicka  <jh@suse.cz>
532
533         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
534         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
535         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
536         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
537         datastructure checks into checking asserts.
538         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
539         * tree-ssa-sccvn.c (VN_INFO): Likewise.
540         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
541         df_ref_create_structure): Likewise.
542         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
543         pool_free): Use gcc_checking_assert.
544         * alias.c (get_alias_set): Likewise.
545         * var-tracking.c (variable_htab_free, shared_hash_copy,
546         canonicalize_values_mark, variable_merge_over_cur): Likewise.
547         * lto-streamer.c (bp_unpack_value): Likewise.
548
549 2010-06-13  Richard Guenther  <rguenther@suse.de>
550
551         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
552         Do not stream but initialize TYPE_CANONICAL to NULL.
553         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
554         * gimple.c (gimple_types_compatible_p): Disregard
555         TYPE_STRUCTURAL_EQUALITY_P.
556         (gimple_register_type): Use TYPE_CANONICAL as cache.
557         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
558         before registering common types.
559         * config/i386/i386.c (ix86_function_arg_boundary): Do not
560         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
561         * tree.h (TYPE_CANONICAL): Clarify documentation.
562
563 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
564
565         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
566         LIBCALL_VALUE): Remove macros.
567         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
568         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
569         TARGET_FUNCTION_VALUE_REGNO_P): Define.
570         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
571         (ia64_function_value): Make static. Handle receiving the function
572         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
573
574 2010-06-12  Jan Hubicka  <jh@suse.cz>
575
576         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
577         at correct place.
578
579 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
580
581         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
582
583 2010-06-12  Jan Hubicka  <jh@suse.cz>
584
585         * df-core.c (df_clear_bb_info): New function.
586         (df_set_blocks): bb_info is always allocated.
587         (df_get_bb_info): Use block_info_elt_size.
588         (df_set_bb_info): Likewise.
589         (df_compact_blocks): Update for new block_info.
590         (grow_bb_info): New function.
591         * df-problems.c (df_grow_bb_info): Move to df-core.c
592         (df_rd_set_bb_info): Remove.
593         (df_rd_free_bb_info): Do not free block pool.
594         (df_rd_alloc): Do not create pool, use check for
595         obstack presence instead of NULL pointer for new blocks.
596         (df_rd_free): DO not free alloc pool; clear block_info.
597         (problem_RD): Add size of block info structure.
598         (df_lr_set_bb_info): Remove.
599         (df_lr_free_bb_info): Do not free block pool.
600         (df_lr_alloc): Do not create pool, use check for
601         obstack presence instead of NULL pointer for new blocks.
602         (df_lr_free): DO not free alloc pool; clear block_info.
603         (problem_LR): Add size of block info structure.
604         (df_live_set_bb_info): Remove.
605         (df_live_free_bb_info): Do not free block pool.
606         (df_live_alloc): Do not create pool, use check for
607         obstack presence instead of NULL pointer for new blocks.
608         (df_live_free): DO not free alloc pool; clear block_info.
609         (problem_LIVE): Add size of block info structure.
610         (problem_CHAIN): Add size of block info structure.
611         (df_byte_lr_set_bb_info): Remove.
612         (df_byte_lr_free_bb_info): Do not free block pool.
613         (df_byte_lr_alloc): Do not create pool, use check for
614         obstack presence instead of NULL pointer for new blocks.
615         (df_byte_lr_free): DO not free alloc pool; clear block_info.
616         (problem_BYTE_LR): Add size of block info structure.
617         (problem_NOTE): Add size of block info structure.
618         (df_byte_MD_set_bb_info): Remove.
619         (df_byte_MD_free_bb_info): Do not free block pool.
620         (df_byte_MD_alloc): Do not create pool, use check for
621         obstack presence instead of NULL pointer for new blocks.
622         (df_byte_MD_free): DO not free alloc pool; clear block_info.
623         (problem_BD): Add size of block info structure.
624         * df-scan.c (df_scan_free_internal): Free block pool.
625         (df_scan_set_bb_info): Remove.
626         (df_scan_free_bb_info): Check for artificial_defs instead
627         of bb_info being non-NULL.
628         (df_scan_alloc): DO not create df_scan_block pool.
629         (problem_SCAN): Set size of block info.
630         (df_bb_refs_record): Do not allocate bb_info.
631         * df.h (df_problem): Add block_info_elt_size.
632         (struct dataflow): Change block_info to void *.
633         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
634         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
635         in-line structures.
636
637 2010-06-12  Jan Hubicka  <jh@suse.cz>
638
639         PR tree-optimize/44485
640         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
641         containing use of return value of noreturn function.
642
643 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
644
645         * targhooks.c (default_function_value): Don't use
646         FUNCTION_OUTGOING_VALUE.
647         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
648         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
649
650 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
651
652         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
653         Add crtfastmath.o to extra_parts.
654         * config/mips/crtfastmath.c: New.
655         * config/mips/linux.h (ENDFILE_SPEC): New.
656
657 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
658
659         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
660         old_type in parameter.
661         (gcc_type_for_value): Update call to gcc_type_for_interval.
662         (compute_type_for_level_1): Renamed compute_type_for_level.
663         Update call to gcc_type_for_interval.
664
665 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
666
667         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
668         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
669
670 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
671
672         * opts-common.c: Include options.h.
673         (integral_argument): Move from opts.c.
674         (decode_cmdline_option): New.  Based on read_cmdline_option.
675         * opts.c (integral_argument): Move to opts-common.c.
676         (read_cmdline_option): Move most contents to
677         decode_cmdline_option.  Use %qs in diagnostics.
678         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
679         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
680         decode_cmdline_option): New.
681
682 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
683
684         PR target/44481
685         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
686         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
687         (partiysi2_cmp): Ditto.
688         (*partiyhi2_cmp): Ditto.
689         (*parityqi2_cmp): Remove.
690
691 2010-06-11  Jan Hubicka  <jh@suse.cz>
692
693         * bitmap.h (bmp_iter_next_bit): New.
694         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
695
696 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
697             Eric Botcazou  <ebotcazou@adacore.com>
698
699         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
700         computed cost.
701
702 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
703
704         * config/i386/i386.md (unspec): New define_c_enum.
705         (unspecv): Ditto.
706
707 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
708
709         * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
710         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
711         (lazy_hex_fp_value): New function.
712         (builtin_define_with_hex_fp_value): Provide definitions lazily.
713         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
714
715 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
716
717         PR middle-end/44483
718         * tree-if-conv.c (bb_predicate_s): New struct.
719         (bb_predicate_p): New.
720         (bb_has_predicate): New.
721         (bb_predicate): New.
722         (set_bb_predicate): New.
723         (bb_predicate_gimplified_stmts): New.
724         (set_bb_predicate_gimplified_stmts): New.
725         (add_bb_predicate_gimplified_stmts): New.
726         (init_bb_predicate): New.
727         (free_bb_predicate): New.
728         (is_predicated): Use bb_predicate.
729         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
730         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
731         before processing their successors.
732         (clean_predicate_lists): Removed.
733         (find_phi_replacement_condition): Use bb_predicate.
734         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
735         computations.
736         (insert_gimplified_predicates): New.
737         (combine_blocks): Call insert_gimplified_predicates.
738         (tree_if_conversion): Call free_bb_predicate instead of
739         clean_predicate_lists.
740
741 2010-10-11  Paul Brook  <paul@codesourcery.com>
742
743         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
744         * config/arm/arm.c (all_architectures): Change v7e-m default to
745         cortexm4.
746         * config/arm/arm-cores.def: Add cortex-m4.
747         * config/arm/arm-tune.md: Regenerate.
748
749 2010-06-11  Jan Hubicka  <jh@suse.cz>
750
751         * ipa-pure-const.c (special_builtlin_state): New function.
752         (check_call): Use it instead of special casign BUILT_IN_RETURN.
753         (propagate_pure_const): Use it.
754
755 2010-06-11  Jan Hubicka  <jh@suse.cz>
756
757         * df-problems.c (df_live_scratch): Convert to bitmap_head.
758         (df_live_alloc): Initialize df_live_scratch when initializing
759         problem_data.
760         (df_live_transfer_function): Update uses of df_live_scratch.
761         (df_live_free): Free problem_data; clear df_live_scratch before
762         releasing the obstack.
763         (df_md_free): Free problem data.
764
765 2010-06-11  Jan Hubicka  <jh@suse.cz>
766
767         * doc/invoke.texi (Wsuggest-attribute): Document.
768         (Wmissing-noreturn): Remove.
769         * ipa-pure-const.c (warn_function_noreturn): New function.
770         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
771         warn_missing_noreturn.
772         * common.opt (Wsuggest-attribute=noreturn): New.
773         * tree-flow.h (warn_function_noreturn): Declare.
774         * tree-cfg.c (execute_warn_function_noreturn): Use
775         warn_function_noreturn.
776         (gate_warn_function_noreturn): New.
777         (pass_warn_function_noreturn): Update.
778
779 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
780
781         * c-typeck.c (handle_warn_cast_qual): Add loc
782         parameter. Improve warning message.
783         (build_c_cast): Pass location to handle_warn_cast_qual.
784
785 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
786
787         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
788         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
789         insn mnemonic.
790         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
791
792 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
793
794         Fix bootstap on mips
795         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
796         be naming typedefs.
797
798 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
799
800         * system.h (helper_const_non_const_cast): New inline for
801         gcc version <= 4.0.
802         (CONST_CAST2): For gcc version <= 4.0 use
803         new helper to do const/non-const casting.
804
805 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
806
807         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
808         * Makefile.in (OBJS-common): Include insn-enums.o.
809         (insn-enums.o): New rule.
810         (simple_generated_c): Add insn-enums.c.
811         (build/genenums.o): New rule.
812         (genprogmd): Add "enums".
813         * genconstants.c (print_enum_type): Declare a C string array
814         for each enum.
815         * genenums.c: New file.
816         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
817         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
818         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
819
820 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
821
822         * doc/md.texi (define_enum_attr): Document.
823         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
824         * read-md.h (lookup_enum_type): Declare.
825         * read-md.c (lookup_enum_type): New function.
826         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
827         * genattrtab.c (attr_desc): Add an enum_name field.
828         (evaluate_eq_attr): Take the associated attribute as argument.
829         Get the enum prefix from the enum_name field, if defined.
830         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
831         (simplify_test_exp): Pass attr to evaluate_eq_attr.
832         (add_attr_value): New function, split out from...
833         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
834         (write_test_expr): Pass attr to evaluate_eq_attr.
835         (write_attr_get): Use the enum_name as the enum tag, if defined.
836         (write_attr_valueq): Use the enum_name as a prefix, if defined.
837         (find_attr): Initialize enum_name.
838         (main): Handle DEFINE_ENUM_ATTR.
839         * gensupport.c (process_rtx): Likewise.
840         * config/mips/mips.h (mips_tune_attr): Delete.
841         * config/mips/mips.md (cpu): Use define_attr_enum.
842
843 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
844
845         * doc/md.texi (define_c_enum, define_enum): Document.
846         * read-md.h (md_constant): Add a parent_enum field.
847         (enum_value, enum_type): New structures.
848         (upcase_string, traverse_enum_types): Declare.
849         * read-md.c (enum_types): New variable.
850         (upcase_string, add_constant): New functions.
851         (handle_constants): Don't create the hash table here.
852         Use add_constant.
853         (traverse_md_constants): Don't check for a null md_constants.
854         (decimal_string, handle_enum, traverse_enum_types): New functions.
855         (read_md_files): Initialize md_constants and md_enums.
856         * genconstants.c (print_md_constant): Ignore info argument.
857         Only print constants that belong to no enum.
858         (print_enum_type): New function.
859         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
860         for each defined enum type.
861         * config/mips/mips.md (processor): New define_enum.
862         (unspec): New define_c_enum.
863         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
864         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
865         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
866         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
867         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
868         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
869         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
870         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
871         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
872         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
873         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
874         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
875         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
876         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
877         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
878         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
879         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
880         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
881         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
882         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
883         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
884         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
885         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
886         (UNSPEC_RDDSP): Move to mips-dsp.md.
887         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
888         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
889         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
890         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
891         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
892         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
893         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
894         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
895         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
896         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
897         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
898         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
899         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
900         Moved to mips-dspr2.md.
901         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
902         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
903         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
904         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
905         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
906         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
907         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
908         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
909         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
910         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
911         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
912         UNSPEC_LOONGSON_PSADBH)
913         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
914         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
915         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
916         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
917         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
918         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
919         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
920         (cpu): Update comment.
921         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
922         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
923         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
924         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
925         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
926         UNSPEC_LOONGSON_PCMPEQ)
927         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
928         UNSPEC_LOONGSON_PINSR_0)
929         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
930         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
931         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
932         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
933         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
934         UNSPEC_LOONGSON_PSADBH)
935         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
936         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
937         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
938         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
939         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
940         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
941         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
942         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
943         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
944         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
945         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
946         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
947         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
948         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
949         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
950         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
951         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
952         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
953         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
954         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
955         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
956         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
957         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
958         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
959         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
960         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
961         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
962         (UNSPEC_RDDSP): Moved from mips.md.
963         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
964         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
965         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
966         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
967         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
968         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
969         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
970         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
971         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
972         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
973         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
974         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
975         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
976         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
977         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
978         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
979         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
980         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
981         (UNSPEC_SCC): Moved from mips.md.
982         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
983         "processor_type" to "processor".
984         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
985         * config/mips/mips.h (processor_type): Delete.
986         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
987         "processor_type" to "processor".
988
989 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
990
991         * configure.ac (tm_include_list): Add insn-constants.h.
992         * configure: Regenerate.
993         * Makefile.in (GTM_H): Move insn-constants.h here from...
994         (TM_H): ...here.
995         * mkconfig.sh: Remove special handling for insn-constants.h.
996
997 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
998
999         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1000         (BUILD_MD): ...this new variable.
1001         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1002         that include the old contents of simple_generated_h and
1003         simple_generated_c.
1004         (simple_generated_h, simple_generated_c): Include them.  Add
1005         insn-constants.h.
1006         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1007         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1008         Remove these dependencies from the main rule and include
1009         insn-conditions.md in the command line only if it appears
1010         in the dependency list.
1011         (insn-constants.h, s-constants): Delete.
1012         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1013         or gensupport.h.
1014         (build/genmddeps.o): Likewise.
1015         (genprogrtl): New variable that contains everything from genprogmd
1016         except mddeps and constants.
1017         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
1018         depend on $(BUILD_MD)
1019         (genprog): New variable.  Make these programs depend on
1020         $(BUILD_ERRORS).
1021         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1022         (main): Use read_md_files instead of init_rtx_reader_args.
1023         * genconstants.c: As for genmddeps.c.
1024         * read-md.h (read_skip_construct): Declare.
1025         * read-md.c (read_skip_construct): New function.
1026         (handle_file): Allow a null handle_directive, skipping the
1027         construct if so.
1028         (parse_include): Update the comment accordingly.
1029
1030 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1031
1032         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1033         * genmddeps.c: Include read-md.h.
1034         (main): Call init_rtx_reader_args instead of init_md_reader_args.
1035         * genattr.c (main): Likewise.
1036         * genattrtab.c (main): Likewise.
1037         * genautomata.c (main): Likewise.
1038         * gencodes.c (main): Likewise.
1039         * genconditions.c (main): Likewise.
1040         * genconfig.c (main): Likewise.
1041         * genconstants.c (main): Likewise.
1042         * genemit.c (main): Likewise.
1043         * genextract.c (main): Likewise.
1044         * genflags.c (main): Likewise.
1045         * genopinit.c (main): Likewise.
1046         * genoutput.c (main): Likewise.
1047         * genpeep.c (main): Likewise.
1048         * genrecog.c (main): Likewise.
1049         * genpreds.c (main): Likewise.
1050         * gensupport.h (in_fname): Move to read-md.h.
1051         (init_md_reader_args_cb): Rename to...
1052         (init_rtx_reader_args_cb): ...this and return a bool.
1053         (init_md_reader_args): Rename to...
1054         (init_rtx_reader_args): ...this and return a bool.
1055         (include_callback): Move to read-md.h.
1056         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1057         (file_name_list, first_dir_md_include): Move to read-md.c
1058         (first_bracket_include): Delete unused variable.
1059         (last_dir_md_include): Move to read-md.c.
1060         (process_include): Delete, moving code to read-md.c:handle_include.
1061         (process_rtx): Don't handle INCLUDE.
1062         (save_string): Delete.
1063         (rtx_handle_directive): New function.
1064         (init_md_reader_args_cb): Rename to...
1065         (init_rtx_reader_args_cb): ...this and return a boolean success value.
1066         Use read_md_args.
1067         (init_md_reader_args): Rename to...
1068         (init_rtx_reader_args): ...this and return a boolean success value.
1069         * rtl.def (INCLUDE): Delete.
1070         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
1071         argument.
1072         * read-rtl.c (read_conditions): Don't gobble ')' here.
1073         (read_mapping): Likewise.
1074         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
1075         Handle top-level non-rtx constructs here rather than in read_rtx_1.
1076         Store the whole queue in *X.  Remove call to init_md_reader.
1077         (read_rtx_1): Rename to...
1078         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
1079         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
1080         here.
1081         (read_nested_rtx): New function.  Handle (nil) here rather than
1082         in read_rtx_code.
1083         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
1084         gobble ')' here.
1085         * read-md.h (directive_handler_t): New type.
1086         (in_fname, include_callback): Moved from read-md.h.
1087         (read_constants, init_md_reader): Delete.
1088         (read_md_files): Declare.
1089         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1090         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1091         from gensupport.c.
1092         (read_constants): Rename to...
1093         (handle_constants): ...this.  Don't gobble ')' here.
1094         (handle_include, handle_file, handle_toplevel_file)
1095         (parse_include): New functions, mostly taken from gensupport.c.
1096         (init_md_reader): Subsume into...
1097         (read_md_files): ...this new function.
1098
1099 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1100
1101         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1102         (unread_char): Decrement read_md_lineno after putting back '\n'.
1103         * read-md.c (fatal_with_file_and_line): Push back any characters
1104         that we decide not to add to the context.
1105         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
1106         fatal_expected_char in cases where '/' ends a line (for example).
1107         (read_name): Don't increment read_md_lineno here.
1108         (read_escape): Likewise.
1109         (read_quoted_string): Likewise.
1110         (read_braced_string): Likewise.
1111
1112 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1113
1114         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1115         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1116         * genconstants.c: Include read-md.h.
1117         * read-rtl.c (md_constants): Move to read-md.c.
1118         (md_name): Move to read-md.h.
1119         (initialize_iterators): Use leading_string_hash instead of def_hash
1120         and leading_string_eq_p instead of def_name_eq_p.
1121         (read_name): Move to read-md.c.
1122         (def_hash, def_name_eq_p): Delete.
1123         (read_constants, traverse_md_constants): Move to read-md.c.
1124         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1125         * read-md.h: Include hashtab.h.
1126         (md_name): Moved from read-rtl.c.
1127         (md_constant): Moved from read-md.h.
1128         (leading_string_hash, leading_string_eq_p, read_name)
1129         (read_constants, traverse_md_constants): Declare.
1130         * read-md.c (md_constants): Moved from read-rtl.c.
1131         (leading_string_hash, leading_string_eq_p): New functions.
1132         (read_name, read_constants, traverse_md_constants): Moved from
1133         read-rtl.c.
1134
1135 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1136
1137         * read-rtl.c (md_name): New structure.
1138         (read_name): Take an md_name instead of a buffer pointer.
1139         Use the "string" field instead of strcpy when expanding constants.
1140         (read_constants): Remove the tmp_char argument.  Update the calls
1141         to read_name, using two local name buffers instead of the tmp_char
1142         argument.  Merge the constant-creation code.
1143         (read_conditions): Remove the tmp_char argument.  Update the calls
1144         to read_name, using a local name buffer instead of the tmp_char
1145         argument.
1146         (read_mapping): Replace tmp_char variable with a local name buffer.
1147         Update the calls to read_name.
1148         (read_rtx_1): Likewise.  Update the calls to read_constants and
1149         read_conditions.
1150
1151 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1152
1153         * Makefile.in (build/read-md.o): Depend on errors.h.
1154         * read-md.h (error_with_line): Declare.
1155         * read-md.c: Include errors.h.
1156         (message_with_line_1): New function, extracted from...
1157         (message_with_line): ...here.
1158         (error_with_line): New function.
1159         * genattrtab.c: If a call to message_with_line is followed by
1160         "have_error = 1;", replace both statements with a call to
1161         error_with_line.
1162         * genoutput.c: Likewise.
1163         * genpreds.c: Likewise.
1164         * genrecog.c: If a call to message_with_line is followed by
1165         "error_count++;", replace both statements with a call to
1166         error_with_line.
1167         (errorcount): Delete.
1168         (main): Don't check it.
1169         * gensupport.c: If a call to message_with_line is followed by
1170         "errors = 1;", replace both statements with a call to error_with_line.
1171         (errors): Delete.
1172         (process_define_cond_exec): Check have_error instead of errors.
1173         (init_md_reader_args_cb): Likewise.  Don't set errors.
1174
1175 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1176
1177         * read-md.h (read_md_file): Declare.
1178         (read_char, unread_char): New functions.
1179         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1180         (read_quoted_string, read_string): Remove FILE * argument.
1181         * read-md.c (read_md_file): New variable.
1182         (read_md_filename, read_md_lineno): Update comments and remove
1183         unnecessary initialization.
1184         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1185         (read_escape, read_quoted_string, read_braced_string, read_string):
1186         Remove FILE * argument.  Update calls accordingly, using read_char
1187         and unread_char instead of getc and ungetc.
1188         * rtl.h (read_rtx): Remove FILE * argument.
1189         * read-rtl.c (iterator_group): Remove FILE * argument from
1190         "find_builtin".
1191         (iterator_traverse_data): Remove "infile" field.
1192         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
1193         (add_mapping, read_name, read_constants, read_conditions)
1194         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
1195         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
1196         Remove file arguments from all calls, using read_char and unread_char
1197         instead of getc and ungetc.
1198         * gensupport.c (process_include): Preserve read_md_file around
1199         the include.  Set read_md_file to the handle of the included file.
1200         Update call to read_rtx.
1201         (init_md_reader_args_cb): Set read_md_file to the handle of the file
1202         and remove local FILE *.  Update calls to read_rtx.
1203
1204 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1205
1206         * read-md.h (read_rtx_lineno): Rename to...
1207         (read_md_lineno): ...this.
1208         (read_rtx_filename): Rename to...
1209         (read_md_filename): ...this.
1210         (copy_rtx_ptr_loc): Rename to...
1211         (copy_md_ptr_loc): ...this.
1212         (print_rtx_ptr_loc): Rename to...
1213         (print_md_ptr_loc): ...this.
1214         * read-md.c: Likewise.  Update references after renaming.
1215         (string_obstack): Replace RTL with MD in comment.
1216         (set_rtx_ptr_loc): Rename to...
1217         (set_md_ptr_loc): ...this.
1218         (get_rtx_ptr_loc): Rename to...
1219         (get_md_ptr_loc): ...this.
1220         * genconditions.c: Update references after renaming.
1221         * genemit.c: Likewise.
1222         * genoutput.c: Likewise.
1223         * genpreds.c: Likewise.
1224         * gensupport.c: Likewise.
1225         * read-rtl.c: Likewise.
1226
1227 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1228
1229         * Makefile.in (READ_MD_H): New variable.
1230         (BUILD_RTL): Add build/read-md.o.
1231         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
1232         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1233         (build/genattrtab.o, build/genconditions.o build/genemit.o)
1234         (build/genextract.o, build/genflags.o, build/genoutput.o)
1235         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
1236         (build/read-md.o): New rule.
1237         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
1238         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
1239         * coretypes.h: ...here.
1240         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
1241         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
1242         * genattr.c: Include read-md.h.
1243         * genattrtab.c: Likewise.
1244         * genconditions.c: Likewise.
1245         * genemit.c: Likewise.
1246         * genextract.c: Likewise.
1247         * genflags.c: Likewise.
1248         * genoutput.c: Likewise.
1249         * genpreds.c: Likewise.
1250         * genrecog.c: Likewise.
1251         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1252         (join_c_conditions, print_c_condition, read_rtx_filename)
1253         (read_rtx_lineno): Move to read-md.h.
1254         * read-rtl.c: Include read-md.h.
1255         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
1256         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
1257         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
1258         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
1259         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1260         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
1261         (read_braced_string, read_string): Move to read-md.c.
1262         (read_rtx): Move some initialization to init_md_reader and call
1263         init_md_reader here.
1264         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
1265         Move to read-md.h.
1266         * gensupport.c: Include read-md.h.
1267         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
1268         * read-md.h, read-md.c: New files.
1269
1270 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
1271
1272         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1273         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1274         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
1275         * config/moxie/moxie.c (moxie_function_value): Make static.
1276         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
1277         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1278
1279 2010-06-10  Martin Jambor  <mjambor@suse.cz>
1280
1281         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
1282         * dbgcnt.def (tree_sra): New counter.
1283         * tree-sra.c: Include dbgcnt.h.
1284         (gate_intra_sra): Check tree_sra debug counter.
1285
1286 2010-06-10  Martin Jambor  <mjambor@suse.cz>
1287
1288         PR tree-optimization/44258
1289         * tree-sra.c (build_access_subtree): Return false iff there is a
1290         partial overlap.
1291         (build_access_trees): Likewise.
1292         (analyze_all_variable_accesses): Disqualify candidates if
1293         build_access_trees returns true for them.
1294
1295 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
1296
1297         PR debug/41371
1298         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
1299         tail-recurse into canonical node.  Fast-forward over
1300         non-canonical VALUEs.
1301
1302 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
1303
1304         PR boostrap/44470
1305         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
1306         (*addsi_1_zext) <TYPE_LEA>: Likewise.
1307         (add lea splitter): Likewise.
1308         (add_zext lea splitter): Likewise.
1309
1310 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
1311
1312         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
1313
1314 2010-06-10  Jan Hubicka  <jh@suse.cz>
1315
1316         * df-problems.c (df_live_problem_data): Add live_bitmaps.
1317         (df_live_alloc): Initialize problem data and live_osbtacks.
1318         (df_live_finalize): Remove obstack, problem data; do not
1319         clear all bitmaps.
1320         (df_live_top_dump, df_live_bottom_dump): Do not dump old
1321         data when not allocated.
1322         (df_live_verify_solution_start): Do not allocate problem data.
1323         (df_live_verify_solution_end): Check if out is allocated.
1324         (struct df_md_problem_data): New structure.
1325         (df_md_alloc): Allocate problem data.
1326         (df_md_free): Free problem data; do not clear bitmaps.
1327
1328 2010-06-10  Jan Beulich  <jbeulich@novell.com>
1329
1330         PR bootstrap/37304
1331         * configure.ac: Replace $() with ${} when intending to expand
1332         variables rather than invoking commands.
1333         * configure: Re-generate.
1334
1335 2010-06-10  Jan Hubicka  <jh@suse.cz>
1336
1337         PR rtl-optimization/44460
1338         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1339         TYPE_NEEDS_CONSTRUCTING sanity check.
1340
1341 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1342
1343         * doc/include/fdl.texi: Move to GFDL version 1.3.
1344
1345         * doc/cpp.texi: Move to GFDL version 1.3.
1346         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
1347         * doc/gccint.texi: Move to GFDL version 1.3.
1348         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
1349         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
1350         * doc/invoke.texi: Move to GFDL version 1.3.
1351
1352 2010-06-09  Jan Hubicka  <jh@suse.cz>
1353
1354         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
1355         Break out from ...
1356         (propagate) ... here; swap the order.
1357
1358 2010-06-09  Jan Hubicka  <jh@suse.cz>
1359
1360         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
1361         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
1362         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
1363         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
1364
1365 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
1366
1367         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
1368         Do not the gather memory reference in the outer loop if the step
1369         is not a constant.
1370
1371 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
1372
1373         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
1374         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
1375         8 to 4.  Minor change of the related comments.
1376
1377 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1378
1379         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1380         the scev analysis when the variable is not used outside the loop
1381         in a close phi node: call compute_overall_effect_of_inner_loop.
1382
1383 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1384
1385         * graphite-sese-to-poly.c (single_pred_cond): Renamed
1386         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
1387         (build_sese_conditions_before): Renamed call to single_pred_cond.
1388         (build_sese_conditions_after): Same.
1389
1390 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1391
1392         * graphite-poly.h: Fix comments and indentation.
1393         * graphite-sese-to-poly.c: Same.
1394         (build_sese_conditions_before): Compute stmt and gbb only when needed.
1395         * tree-chrec.c: Fix comments and indentation.
1396         (tree-ssa-loop-niter.c): Same.
1397
1398 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1399
1400         PR rtl-optimization/42461
1401         * dce.c (deletable_insn_p): Return true for const or pure calls again.
1402         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
1403
1404 2010-06-09  Jan Hubicka  <jh@suse.cz>
1405
1406         * bitmap.c (bitmap_and): Walk array forward.
1407         (bitmap_and_compl_into): Likewise.
1408         (bitmap_xor): Likewise.
1409         (bitmap_xor_into):  Likewise.
1410         (bitmap_equal_p): Likewise.
1411         (bitmap_intersect_p): Likewise.
1412         (bitmap_intersect_compl_p): Likewise.
1413         (bitmap_ior_and_into): Likewise.
1414         (bitmap_elt_copy): Likewise.
1415         (bitmap_and_compl): Likewise.
1416         (bitmap_elt_ior): Likewise.
1417
1418 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
1419
1420         * opts-common.c (prune_options): Ensure replacement argv array
1421         is correctly terminated by a NULL entry.
1422
1423 2010-06-09  Jan Hubicka  <jh@suse.cz>
1424
1425         * cgraph.h (varpool_first_static_initializer,
1426         varpool_next_static_initializer): Make checking only when
1427         checking enabled.
1428         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
1429         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
1430         gcc_assert to gcc_checking_assert.
1431         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
1432         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
1433         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
1434         op_iter_init_phiuse, op_iter_init_phidef,
1435         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
1436         gcc_checking_assert.
1437         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
1438         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
1439         partition_is_global, live_on_entry, live_on_exit,
1440         live_merge_and_clear): Likewise.
1441         * system.h (gcc_checking_assert): New macro.
1442         * gimple.h (set_bb_seq): Use gcc_checking_assert.
1443
1444 2010-06-09  Jason Merrill  <jason@redhat.com>
1445
1446         * Makefile.in (TAGS): Collect tags info from c-family.
1447
1448 2010-06-09  Jan Hubicka  <jh@suse.cz>
1449
1450         * gimple.h (gcc_gimple_checking_assert): New macro.
1451         (gimple_set_def_ops, gimple_set_use_ops,
1452         gimple_set_vuse, gimple_set_vdef,
1453         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
1454         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
1455         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
1456         gimple_asm_output_op, gimple_asm_output_op_ptr,
1457         gimple_asm_set_output_op, gimple_asm_clobber_op,
1458         gimple_asm_set_clobber_op, gimple_asm_label_op,
1459         gimple_asm_set_label_op, gimple_try_set_kind,
1460         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
1461         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
1462         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
1463         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
1464         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
1465         gimple_omp_for_set_initial, gimple_omp_for_final,
1466         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
1467         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
1468         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
1469         conditional with ENABLE_GIMPLE_CHECKING.
1470         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
1471
1472 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
1473
1474         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
1475         (get_computation_cost_at): Use it.
1476         (determine_use_iv_cost_condition): Likewise.
1477         (determine_iv_cost): Likewise.
1478
1479 2010-06-09  Richard Guenther  <rguenther@suse.de>
1480
1481         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
1482         replace constants.
1483
1484 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
1485
1486         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
1487
1488 2010-06-09  Martin Jambor  <mjambor@suse.cz>
1489
1490         PR tree-optimization/44423
1491         * tree-sra.c (dump_access): Dump also grp_assignment_read.
1492         (analyze_access_subtree): Pass negative allow_replacements to children
1493         if the current type is scalar.
1494
1495 2010-06-09  Joern Rennecke  <amylaar@spamcop.net>
1496
1497         PR testsuite/42843
1498         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
1499         * doc/plugins.texi (Plugin license check): Update information
1500         on type of plugin_is_GPL_compatible.
1501         * Makefile.in (PLUGINCC): Define as $(COMPILER).
1502         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
1503
1504 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
1505
1506         * config/arm/arm.c (thumb2_reorg): New function.
1507         (arm_reorg): Call it.
1508         * config/arm/thumb2.md (define_peephole2 for flag clobbering
1509         arithmetic operations): Delete.
1510
1511 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
1512
1513         PR target/44067
1514         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
1515         e500v2 target.
1516
1517 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
1518
1519         PR plugins/44459
1520         * gcc-plugin.h: Encapsulate all declarations in extern "C".
1521
1522 2010-06-08  Jan Hubicka  <jh@suse.cz>
1523
1524         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
1525         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
1526
1527 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
1528
1529         PR tree-optimization/39874
1530         PR middle-end/28685
1531         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
1532         Declare.
1533         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
1534         same_bool_result_p): New.
1535         (and_var_with_comparison, and_var_with_comparison_1,
1536         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
1537         (or_var_with_comparison, or_var_with_comparison_1,
1538         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
1539         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
1540         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
1541         of combine_comparisons.
1542         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
1543
1544 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
1545
1546         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1547         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1548         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
1549         pdp11_function_value_regno_p): New functions.
1550         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1551         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1552
1553 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
1554
1555         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
1556         Thumb-2 in the MINUS case.
1557
1558 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1559
1560         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
1561
1562         * doc/gty.texi (GTY Options): Document typed GC allocation and
1563         variable_size GTY option.
1564
1565         * ggc-internal.h: New.
1566
1567         * ggc.h: Update copyright year.
1568         (digit_string): Move to stringpool.c.
1569         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
1570         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
1571         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
1572         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
1573         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
1574         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
1575         (ggc_force_collect, ggc_get_size, ggc_statistics)
1576         (ggc_print_common_statistics): Move to ggc-internal.h.
1577         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
1578         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
1579         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
1580         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
1581         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
1582         (ggc_alloc_zone_pass_stat): Remove.
1583         (ggc_internal_alloc_stat, ggc_internal_alloc)
1584         (ggc_internal_cleared_alloc_stat): New.
1585         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
1586         (ggc_internal_vec_alloc_stat)
1587         (ggc_internal_cleared_vec_alloc_stat)
1588         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
1589         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
1590         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
1591         (ggc_cleared_alloc_ptr_array_two_args): New.
1592         (htab_create_ggc, splay_tree_new_ggc): Redefine.
1593         (ggc_splay_alloc): Change the type of the first argument to
1594         enum gt_types_enum.
1595         (ggc_alloc_string): Make macro.
1596         (ggc_alloc_string_stat): New.
1597         (ggc_strdup): Redefine.
1598         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
1599         (ggc_alloc_rtvec_sized): New.
1600         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
1601         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
1602         (ggc_internal_cleared_alloc_zone_stat)
1603         (ggc_internal_zone_alloc_stat)
1604         (ggc_internal_zone_cleared_alloc_stat)
1605         (ggc_internal_zone_vec_alloc_stat)
1606         (ggc_alloc_zone_rtx_def_stat)
1607         (ggc_alloc_zone_tree_node_stat)
1608         (ggc_alloc_zone_cleared_tree_node_stat)
1609         (ggc_alloc_cleared_gimple_statement_d_stat): New.
1610
1611         * ggc-common.c: Include ggc-internal.h.
1612         (ggc_internal_cleared_alloc_stat): Rename from
1613         ggc_alloc_cleared_stat.
1614         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
1615         (ggc_calloc): Remove.
1616         (ggc_cleared_alloc_htab_ignore_args): New.
1617         (ggc_cleared_alloc_ptr_array_two_args): New.
1618         (ggc_splay_alloc): Add obj_type parameter.
1619         (init_ggc_heuristics): Formatting fixes.
1620
1621         * ggc-none.c: Update copyright year.
1622         (ggc_alloc_stat): Rename to ggc_alloc_stat.
1623         (ggc_alloc_cleared_stat): Rename to
1624         ggc_internal_cleared_alloc_stat.
1625         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1626
1627         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
1628         Remove references to ggc_alloc in comments.
1629         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
1630         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
1631         (new_ggc_zone, destroy_ggc_zone): Remove.
1632         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1633
1634         * ggc-zone.c: Include ggc-internal.h.  Remove references to
1635         ggc_alloc in comments.
1636         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
1637         (ggc_internal_alloc_zone_pass_stat): New.
1638         (ggc_internal_cleared_alloc_zone_stat): New.
1639         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
1640         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
1641         (new_ggc_zone, destroy_ggc_zone): Remove.
1642
1643         * stringpool.c: Update copyright year.  Include ggc-internal.h
1644         (digit_vector): Make static.
1645         (digit_string): Moved from ggc.h.
1646         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
1647         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
1648
1649         * Makefile.in (GGC_INTERNAL_H): New.
1650         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
1651         $(GGC_INTERNAL_H) to dependencies.
1652
1653         * gentype.c: Update copyright year.
1654         (walk_type): Accept variable_size GTY option.
1655         (USED_BY_TYPED_GC_P): New macro.
1656         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
1657         whitespace at the end of strings.
1658         (get_type_specifier, variable_size_p): New functions.
1659         (alloc_quantity, alloc_zone): New enums.
1660         (write_typed_alloc_def): New function.
1661         (write_typed_struct_alloc_def): Likewise.
1662         (write_typed_typed_typedef_alloc_def): Likewise.
1663         (write_typed_alloc_defns): Likewise.
1664         (output_typename, write_splay_tree_allocator_def): Likewise.
1665         (write_splay_tree_allocators): Likewise.
1666         (main): Call write_typed_alloc_defns and
1667         write_splay_tree_allocators.
1668
1669         * lto-streamer.h (lto_file_decl_data_ptr): New.
1670
1671         * passes.c (order): Define using cgraph_node_ptr.
1672
1673         * strinpool.c (struct string_pool_data): Declare nested_ptr using
1674         ht_identifier_ptr.
1675
1676         * gimple.h (union gimple_statement_d): Likewise.
1677
1678         * rtl.h (struct rtx_def): Likewise.
1679         (struct rtvec_def): Likewise.
1680
1681         * tree.h (union tree_node): Likewise.
1682
1683         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
1684
1685         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
1686
1687         * tree-scalar-evolution.c (scev_initialize): Likewise.
1688
1689         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
1690
1691         * dwarf2asm.c (dw2_force_const_mem): Likewise.
1692
1693         * omp-low.c (lower_omp_critical): Likewise.
1694
1695         * bitmap.h (struct bitmap_head_def): Update comment to not
1696         reference ggc_alloc.
1697
1698         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
1699
1700         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
1701
1702         * ipa-prop.c (duplicate_ggc_array): Rename to
1703         duplicate_ipa_jump_func_array.  Use typed GC allocation.
1704         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
1705
1706         * gimple.c (gimple_alloc_stat): Use
1707         ggc_alloc_cleared_gimple_statement_d_stat.
1708
1709         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
1710
1711         * tree.c (make_node_stat): Use
1712         ggc_alloc_zone_cleared_tree_node_stat.
1713         (make_tree_vec_stat): Likewise.
1714         (build_vl_exp_stat): Likewise.
1715         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
1716         (make_tree_binfo_stat): Likewise.
1717         (tree_cons_stat): Likewise.
1718
1719         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
1720         (shallow_copy_rtx_stat): Likewise.
1721         (make_node_stat): Likewise.
1722
1723         * lto-symtab.c: Fix comment.
1724
1725         * tree-cfg.c (create_bb): Update comment to not reference
1726         ggc_alloc_cleared.
1727         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
1728
1729         * varpool.c (varpool_node): Use typed GC allocation.
1730         (varpool_extra_name_alias): Likewise.
1731
1732         * varasm.c (emutls_decl): Likewise.
1733         (get_unnamed_section): Likewise.
1734         (get_noswitch_section): Likewise.
1735         (get_section): Likewise.
1736         (get_block_for_section): Likewise.
1737         (build_constant_desc): Likewise.
1738         (create_constant_pool): Likewise.
1739         (force_const_mem): Likewise.
1740
1741         * tree.c (build_vl_exp_stat): Likewise.
1742         (build_real): Likewise.
1743         (build_string): Likewise.
1744         (decl_debug_expr_insert): Likewise.
1745         (decl_value_expr_insert): Likewise.
1746         (type_hash_add): Likewise.
1747         (build_omp_clause): Likewise.
1748
1749         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
1750
1751         * tree-ssa.c (init_tree_ssa): Likewise.
1752
1753         * tree-ssa-structalias.c (heapvar_insert): Likewise.
1754
1755         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
1756
1757         * tree-ssa-loop-niter.c (record_estimate): Likewise.
1758
1759         * tree-ssa-alias.c (get_ptr_info): Likewise.
1760
1761         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
1762
1763         * tree-phinodes.c (allocate_phi_node): Likewise.
1764
1765         * tree-iterator.c (tsi_link_before): Likewise.
1766         (tsi_link_after): Likewise.
1767
1768         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
1769
1770         * tree-dfa.c (create_var_ann): Likewise.
1771
1772         * tree-cfg.c (create_bb): Likewise.
1773
1774         * toplev.c (alloc_for_identifier_to_locale): Likewise.
1775         (general_init): Likewise.
1776
1777         * stringpool.c (stringpool_ggc_alloc): Likewise.
1778         (gt_pch_save_stringpool): Likewise.
1779
1780         * sese.c (if_region_set_false_region): Likewise.
1781
1782         * passes.c (do_per_function_toporder): Likewise.
1783
1784         * optabs.c (set_optab_libfunc): Likewise.
1785         (set_conv_libfunc): Likewise.
1786
1787         * lto-symtab.c (lto_symtab_register_decl): Likewise.
1788
1789         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
1790         (input_eh_region): Likewise.
1791         (input_eh_lp): Likewise.
1792         (make_new_block): Likewise.
1793         (unpack_ts_real_cst_value_fields): Likewise.
1794
1795         * lto-section-in.c (lto_new_in_decl_state): Likewise.
1796
1797         * lto-cgraph.c (input_node_opt_summary): Likewise.
1798
1799         * loop-init.c (loop_optimizer_init): Likewise.
1800
1801         * lambda.h (lambda_vector_new): Likewise.
1802
1803         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1804
1805         * ira.c (update_equiv_regs): Likewise.
1806
1807         * ipa.c (cgraph_node_set_new): Likewise.
1808         (cgraph_node_set_add): Likewise.
1809         (varpool_node_set_new): Likewise.
1810         (varpool_node_set_add): Likewise.
1811
1812         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
1813         (duplicate_ipa_jump_func_array): Likewise.
1814         (ipa_read_node_info): Likewise.
1815
1816         * ipa-cp.c (ipcp_create_replace_map): Likewise.
1817
1818         * integrate.c (get_hard_reg_initial_val): Likewise.
1819
1820         * gimple.c (gimple_alloc_stat): Likewise.
1821         (gimple_build_omp_for): Likewise.
1822         (gimple_seq_alloc): Likewise.
1823         (gimple_copy): Likewise.
1824
1825         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
1826         (gsi_insert_after_without_update): Likewise.
1827
1828         * function.c (add_frame_space): Likewise.
1829         (insert_temp_slot_address): Likewise.
1830         (assign_stack_temp_for_type): Likewise.
1831         (allocate_struct_function): Likewise.
1832         (types_used_by_var_decl_insert): Likewise.
1833
1834         * except.c (init_eh_for_function): Likewise.
1835         (gen_eh_region): Likewise.
1836         (gen_eh_region_catch): Likewise.
1837         (gen_eh_landing_pad): Likewise.
1838         (add_call_site): Likewise.
1839
1840         * emit-rtl.c (get_mem_attrs): Likewise.
1841         (get_reg_attrs): Likewise.
1842         (start_sequence): Likewise.
1843         (init_emit): Likewise.
1844
1845         * dwarf2out.c (new_cfi): Likewise.
1846         (queue_reg_save): Likewise.
1847         (dwarf2out_frame_init): Likewise.
1848         (new_loc_descr): Likewise.
1849         (find_AT_string): Likewise.
1850         (new_die): Likewise.
1851         (add_var_loc_to_decl): Likewise.
1852         (clone_die): Likewise.
1853         (clone_as_declaration): Likewise.
1854         (break_out_comdat_types): Likewise.
1855         (new_loc_list): Likewise.
1856         (loc_descriptor): Likewise.
1857         (add_loc_descr_to_each): Likewise.
1858         (add_const_value_attribute): Likewise.
1859         (tree_add_const_value_attribute): Likewise.
1860         (add_comp_dir_attribute): Likewise.
1861         (add_name_and_src_coords_attributes): Likewise.
1862         (lookup_filename): Likewise.
1863         (store_vcall_insn): Likewise.
1864         (dwarf2out_init): Likewise.
1865
1866         * dbxout.c (dbxout_init): Likewise.
1867
1868         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1869
1870         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1871
1872         * config/score/score7.c (score7_output_external): Likewise.
1873
1874         * config/score/score3.c (score3_output_external): Likewise.
1875
1876         * config/s390/s390.c (s390_init_machine_status): Likewise.
1877
1878         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
1879         (rs6000_init_machine_status): Likewise.
1880         (output_toc): Likewise.
1881
1882         * config/pa/pa.c (pa_init_machine_status): Likewise.
1883         (get_deferred_plabel): Likewise.
1884
1885         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
1886
1887         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
1888
1889         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
1890
1891         * config/mep/mep.c (mep_init_machine_status): Likewise.
1892         (mep_note_pragma_flag): Likewise.
1893
1894         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
1895
1896         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
1897
1898         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
1899
1900         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
1901         (i386_pe_maybe_record_exported_symbol): Likewise.
1902
1903         * config/i386/i386.c (get_dllimport_decl): Likewise.
1904         (ix86_init_machine_status): Likewise.
1905         (assign_386_stack_local): Likewise.
1906
1907         * config/frv/frv.c (frv_init_machine_status): Likewise.
1908
1909         * config/darwin.c (machopic_indirection_name): Likewise.
1910
1911         * config/cris/cris.c (cris_init_machine_status): Likewise.
1912
1913         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
1914
1915         * config/avr/avr.c (avr_init_machine_status): Likewise.
1916
1917         * config/arm/arm.c (arm_init_machine_status): Likewise.
1918
1919         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
1920         (alpha_need_linkage): Likewise.
1921         (alpha_use_linkage): Likewise.
1922
1923         * cgraph.c (cgraph_allocate_node): Likewise.
1924         (cgraph_create_edge_1): Likewise.
1925         (cgraph_create_indirect_edge): Likewise.
1926         (cgraph_add_asm_node): Likewise.
1927
1928         * cfgrtl.c (init_rtl_bb_info): Likewise.
1929
1930         * cfgloop.c (alloc_loop): Likewise.
1931         (rescan_loop_exit): Likewise.
1932
1933         * cfg.c (init_flow): Likewise.
1934         (alloc_block): Likewise.
1935         (unchecked_make_edge): Likewise.
1936
1937         * c-parser.c (c_parse_init): Likewise.
1938         (c_parse_file): Likewise.
1939
1940         * c-decl.c (bind): Likewise.
1941         (record_inline_static): Likewise.
1942         (push_scope): Likewise.
1943         (make_label): Likewise.
1944         (lookup_label_for_goto): Likewise.
1945         (finish_struct): Likewise.
1946         (finish_enum): Likewise.
1947         (c_push_function_context): Likewise.
1948
1949         * bitmap.c (bitmap_element_allocate): Likewise.
1950         (bitmap_gc_alloc_stat): Likewise.
1951
1952         * alias.c (record_alias_subset): Likewise.
1953         (init_alias_analysis): Likewise.
1954
1955 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
1956
1957         * fold-const.c (fold_comparison): Remove redundant parenthesis.
1958         * tree-inline.c (expand_call_inline): Pass translated return value of
1959         cgraph_inline_failed_string to diagnostic function.
1960
1961 2010-06-08  Andrew Pinski <pinskia@gmail.com>
1962             Shujing Zhao  <pearly.zhao@oracle.com>
1963
1964         PR c/37724
1965         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
1966         implicit bad conversions is initialization.
1967         (error_init): Use gmsgid instead of msgid for argument name and change
1968         the call for error.
1969         (pedwarn_init): Use gmsgid instead of msgid for argument name and
1970         change the call for pedwarn.
1971         (warning_init): Use gmsgid instead of msgid for argument name and
1972         change the call for warning.
1973
1974 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
1975
1976         * config/mips/mips-protos.h (mips_print_operand): Delete.
1977         (mips_print_operand_address): Delete.
1978         * config/mips/mips.h (mips_print_operand_punct): Delete.
1979         (PRINT_OPERAND): Delete.
1980         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1981         (PRINT_OPERAND_ADDRESS): Delete.
1982         * config/mips/mips.c (mips_print_operand_punct): Make static.
1983         (mips_print_operand_address): Make static.
1984         (mips_print_operand): Make static.  Call
1985         mips_print_operand_punct_valid_p.
1986         (mips_print_operand_punct_valid_p): New function.
1987         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1988         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1989
1990 2010-06-07  Jan Hubicka  <jh@suse.cz>
1991
1992         PR middle-end/44454
1993         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
1994         are allocated.
1995
1996 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
1997
1998         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
1999         name of RECORD.
2000
2001 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2002
2003         * doc/sourcebuild.texi (Effective-Target Keywords, Other
2004         attributes): Document gas.
2005
2006 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
2007
2008         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2009         <TYPE_LEA>: Split instruction.
2010         <default>: Remove alternative 2 handling.
2011         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2012         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2013         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2014
2015         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2016         (ashift_zext lea splitter): Use DImode for multiplication.
2017
2018         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2019         to generate addition.
2020
2021 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
2022
2023         * common.opt (fira-verbose): Use Var.
2024         (fpcc-struct-return): Use Init instead of VarExists.
2025         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2026         toplev.c.
2027         * flags.h (flag_signed_char, flag_short_enums,
2028         flag_pcc_struct_return, flag_ira_verbose,
2029         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2030         * toplev.c (flag_detailed_statistics, flag_signed_char,
2031         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2032         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2033         * toplev.h (flag_crossjumping, flag_if_conversion,
2034         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2035         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2036         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2037         flag_cprop_registers, time_report, flag_ira_loop_pressure,
2038         flag_ira_coalesce, flag_ira_move_spills,
2039         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2040
2041 2010-06-07  Jan Hubicka  <jh@suse.cz>
2042
2043         * df-core.c (df_analyze_problem): Do verification after allocation.
2044
2045         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2046         (df_lr_alloc): Initialize problem data; move bitmaps to
2047         lr_bitmaps obstack.
2048         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2049         (df_lr_verify_solution_start): Do not initialize problem data;
2050         allocate bitmaps in lr_bitmaps.
2051         (df_lr_verify_solution_end): Do not free problem data.
2052
2053 2010-06-07  Jan Hubicka  <jh@suse.cz>
2054
2055         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2056         if caller is noreturn.
2057         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2058         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2059         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2060         * ipa-pure-const.c (check_decl): Add IPA parameter.
2061         (state_from_flags): New function.
2062         (better_state, worse_state): New functions.
2063         (check_call): When in IPA mode, do not care about callees.
2064         (check_load, check_store): Update.
2065         (check_ipa_load, check_ipa_store): New.
2066         (check_stmt): When in IPA mode, use IPA checkers.
2067         (analyze_function): Use state_from_flags.
2068         (propagate): Check indirect edges and references.
2069
2070 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
2071
2072         PR rtl-optimization/44404
2073         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2074         of count_occurrences to see if it's safe to modify mem_insn.
2075
2076 2010-06-07  Richard Guenther  <rguenther@suse.de>
2077
2078         * gimplify.c (gimplify_cleanup_point_expr): For empty body
2079         and EH-only cleanup drop the cleanup instead of inserting it
2080         unconditionally.
2081
2082 2010-06-07  Ira Rosen  <irar@il.ibm.com>
2083
2084         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2085         documentation.
2086         * targhooks.c (default_builtin_vectorization_cost): New function.
2087         * targhooks.h (default_builtin_vectorization_cost): Declare.
2088         * target.h (enum vect_cost_for_stmt): Define.
2089         (builtin_vectorization_cost): Change argument and comment.
2090         * tree-vectorizer.h: Remove cost model macros.
2091         * tree-vect-loop.c: Include target.h.
2092         (vect_get_cost): New function.
2093         (vect_estimate_min_profitable_iters): Replace cost model macros with
2094         calls to vect_get_cost.
2095         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2096         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2097         default implementation.
2098         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2099         calls to target hook builtin_vectorization_cost.
2100         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2101         Likewise.
2102         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2103         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2104         implementation to return costs.
2105         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2106         * config/spu/spu.h: Remove vectorizer cost model macros.
2107         * config/i386/i386.h: Likewise.
2108         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2109         a call to target hook builtin_vectorization_cost.
2110
2111 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
2112
2113         PR target/44319
2114         * config/i386/i386.c (override_options): Turn zee pass on for level 2
2115         and above and defer till target is known.
2116         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2117         turn off otherwise.
2118
2119 2010-05-25  Jan Hubicka  <jh@suse.cz>
2120
2121         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2122         (df_compact_blocks): Likewise.
2123         * df.h (struct df): Turn hardware_regs_used,
2124         regular_block_artificial_uses, eh_block_artificial_uses,
2125         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2126         bitmap_head.
2127         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2128         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2129         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2130         df_scan_blocks, df_insn_delete, df_insn_rescan,
2131         df_insn_rescan_debug_internal, df_insn_rescan_all,
2132         df_process_deferred_rescans, df_process_deferred_rescans,
2133         df_notes_rescan, df_get_call_refs, df_get_call_refs,
2134         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2135         df_record_entry_block_defs, df_record_exit_block_uses,
2136         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2137         df_scan_verify): Update.
2138
2139 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
2140
2141         PR c++/44188
2142         * c-common.c (is_typedef_decl): Move this definition ...
2143         * tree.c (is_typedef_decl): ... here.
2144         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2145         * c-common.h (is_typedef_decl): Move this declaration ...
2146         * tree.h (is_typedef_decl): ... here.
2147         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2148         * dwarf2out.c (is_naming_typedef_decl): New function.
2149         (gen_tagged_type_die): Split out of ...
2150         (gen_type_die_with_usage): ... this function. When an anonymous
2151         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2152         is emitted for the typedef.
2153         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2154         anonymous tagged types.
2155
2156 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2157
2158         PR c/20000
2159         * c-decl.c (grokdeclarator): Delete warning.
2160
2161 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
2162
2163         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
2164         newly built CALL_EXPR.
2165         * tree-profile.c (tree_profiling): Don't profile functions produced
2166         for built-in stuff.
2167
2168 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
2169
2170         PR bootstrap/44427
2171         PR bootstrap/44428
2172         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
2173         endianness-independent.
2174
2175 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
2176
2177         * c-common.c: Move to c-family/.
2178         * c-common.def: Likewise.
2179         * c-common.h: Likewise.
2180         * c-cppbuiltin.c: Likewise.
2181         * c-dump.c: Likewise.
2182         * c-format.c: Likewise.
2183         * c-format.h : Likewise.
2184         * c-gimplify.c: Likewise.
2185         * c-lex.c: Likewise.
2186         * c-omp.c: Likewise.
2187         * c.opt: Likewise.
2188         * c-opts.c: Likewise.
2189         * c-pch.c: Likewise.
2190         * c-ppoutput.c: Likewise.
2191         * c-pragma.c: Likewise.
2192         * c-pragma.h: Likewise.
2193         * c-pretty-print.c: Likewise.
2194         * c-pretty-print.h: Likewise.
2195         * c-semantics.c: Likewise.
2196         * stub-objc.c: Likewise.
2197
2198         * gengtype.c (get_file_langdir): Special-case files in c-family/.
2199         (get_output_file_with_visibility): Fix name for c-common.h.
2200         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
2201
2202         * c-tree.h: Update include path for moved files.
2203         * c-lang.c: Likewise.
2204         * c-lang.h: Likewise.
2205         * c-parser.c: Likewise.
2206         * c-convert.c: Likewise.
2207         * c-decl.c: Likewise.
2208         * c-objc-common.c: Likewise.
2209         * configure.ac: Make sure c-family/ exists in the build directory.
2210         * configure: Regenerate.
2211         * Makefile.in: Update paths for moved files.  Regroup files per
2212         location and update dependencies.  Move generated_files down after
2213         ALL_GTFILES_H.
2214
2215         * config/spu/spu-c.c: Update paths for moved files.
2216         * config/mep/mep-pragma.c: Likewise.
2217         * config/darwin-c.c: Likewise.
2218         * config/i386/msformat-c.c: Likewise.
2219         * config/i386/i386-c.c: Likewise.
2220         * config/avr/avr-c.c: Likewise.
2221         * config/sol2-c.c: Likewise.
2222         * config/ia64/ia64-c.c: Likewise.
2223         * config/rs6000/rs6000-c.c: Likewise.
2224         * config/arm/arm.c: Likewise.
2225         * config/arm/arm-c.c: Likewise.
2226         * config/h8300/h8300.c: Likewise.
2227         * config/v850/v850-c.c: Likewise.
2228
2229         * config/t-darwin: Fix dependencies for moved files.
2230         * config/t-sol2: Fix dependencies for moved files.
2231         * config/mep/t-mep: Fix dependencies for moved files.
2232         * config/ia64/t-ia64: Fix dependencies for moved files.
2233         * config/rs6000/t-rs6000: Fix dependencies for moved files.
2234         * config/v850/t-v850: Fix dependencies for moved files.
2235         * config/v850/t-v850e: Fix dependencies for moved files.
2236
2237         * config/m32c/m32c-pragma.c
2238
2239         * po/exgettext: Look in c-family/ also.
2240
2241 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2242
2243         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
2244         (mark_control_dependent_edges_necessary): Call it instead of marking
2245         the last statement manually.
2246         (propagate_necessity): Likewise.
2247
2248 2010-06-05  Jan Hubicka  <jh@suse.cz>
2249
2250         * basic-block.h (compute_dominance_frontiers): Updated.
2251         (compute_idf): Likewise.
2252
2253         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
2254         for dominance frontiers.
2255         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
2256         (insert_updated_phi_nodes_for): Likewise.
2257         (update_ssa): Likewise.
2258         * cfganal.c (compute_dominance_frontiers_1): Likewise.
2259         (compute_dominance_frontiers): Likewise.
2260         (compute_idf): Likewise.
2261         * df-problems.c (df_md_local_compute): Likewise.
2262
2263 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
2264
2265         * target.h (struct gcc_target): Add memory_move_cost field.
2266         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
2267         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
2268         * targhooks.c (default_memory_move_cost): New function.
2269         * targhooks.h (default_memory_move_cost): Declare function.
2270         * reload.h (memory_move_cost): Declare.
2271         (memory_move_secondary_cost): Change type of 'in' argument to bool.
2272         * reginfo.c (memory_move_cost): New function.
2273         (memory_move_secondary_cost): Change type of 'in' argument to bool.
2274         * ira.h (ira_memory_move_cost): Update comment.
2275         * ira.c: (ira_memory_move_cost): Update comment.
2276         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
2277         with memory_move_cost.
2278         * postreload.c (reload_cse_simplify_set): (Ditto.).
2279         * reload1.c (choose_reload_regs): (Ditto.).
2280         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
2281         (MEMORY_MOVE_COST):  Revise documentation.
2282
2283         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2284         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2285         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
2286         type of 'in' argument to bool.
2287         (TARGET_MEMORY_MOVE_COST): Define.
2288
2289 2010-06-05  Jan Hubicka  <jh@suse.cz>
2290
2291         * ipa-pure-const.c (propagate): Fix typo in handling of functions
2292         that cannot return.  Be more careful when merging the results with
2293         previously known ones.
2294
2295 2010-06-05  Matthias Klose  <doko@ubuntu.com>
2296
2297         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
2298         function to add the -iplugindir option.
2299         (find_plugindir_spec_function): Add new declaration and function.
2300         (static_spec_func): Use it for "find-plugindir".
2301
2302 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
2303
2304         PR c++/44361
2305         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
2306         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
2307         statement expression.
2308
2309 2010-06-05  Jan Hubicka  <jh@suse.cz>
2310
2311         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
2312         (df_rd_problem_data): Convert sparse_invalidated_by_call,
2313         dense_invalidated_by_call to bitmap head.
2314         (df_rd_alloc, df_rd_bb_local_compute_process_def,
2315         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
2316         df_rd_start_dump, df_lr_verify_transfer_functions,
2317         df_live_verify_transfer_functions, df_chain_create_bb,
2318         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
2319         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
2320         df_simulate_one_insn_forwards, df_md_alloc,
2321         df_md_bb_local_compute_process_def,
2322         df_md_bb_local_compute_process_def, df_md_local_compute,
2323         df_md_transfer_function df_md_free): Update.
2324
2325 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
2326
2327         PR c/44322
2328         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
2329         target type for ADDR_EXPR; require no changes to qualifiers except
2330         for function types.
2331         * c-tree.h (c_build_type_variant): Remove.
2332
2333 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
2334
2335         * genautomata.c (get_excl_set): Do work per element, not per char.
2336         (check_presence_pattern_sets): Similar.
2337         (check_absence_pattern_sets): Similar.
2338
2339 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
2340
2341         * genautomata.c (curr_state_pass_num): Delete.
2342         (min_issue_delay_pass_states): Delete.
2343         (min_issue_delay): Delete.
2344         (initiate_min_issue_delay_pass_states): Delete.
2345         (output_min_issue_delay_table): Compute min_issue_delay_vect
2346         using a breadth-first search variant.
2347         (output_tables): Don't call initiate_min_issue_delay_pass_states.
2348
2349 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2350
2351         PR boostrap/44421
2352         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
2353         (df_byte_lr_bb_local_compute): Likewise.
2354
2355 2010-06-03  Jason Merrill  <jason@redhat.com>
2356
2357         Implement noexcept operator (5.3.7)
2358         * c-common.c (c_common_reswords): Add noexcept.
2359         * c-common.h (enum rid): Add RID_NOEXCEPT.
2360
2361 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
2362
2363         * config/darwin-driver.c (darwin_default_min_version): Use
2364         GCC-specific formats in diagnostics.
2365         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
2366         diagnostics.
2367         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
2368         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
2369         eval_spec_function, handle_braces, process_brace_body, main,
2370         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
2371         getenv_spec_function, compare_version_strings,
2372         version_compare_spec_function): Use GCC-specific formats in
2373         diagnostics.
2374
2375 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
2376
2377         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
2378         that operand 0 and operand 1 are equal.
2379         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
2380         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
2381         and operand 1 are equal.
2382         <default>: Ditto.  Remove ??? comment.
2383         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
2384         and operand 1 are equal.
2385         <default>: Ditto.  Remove ??? comment.
2386         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
2387         are equal.
2388         (*add<mode>_4) <default>: Ditto.
2389         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
2390
2391 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
2392
2393         * config/i386/i386-protos.h (ix86_print_operand): Declare.
2394         * config/i386/i386.c (ix86_print_operand): Make non-static.
2395         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
2396         * output.h (output_operand): Declare.
2397         * final.c (output_operand): Make non-static.
2398
2399 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
2400
2401         PR rtl-optimization/44013
2402         * sched-deps.c (add_dependence_list_and_free): Don't free lists
2403         when processing debug insns.
2404
2405         PR debug/41371
2406         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
2407         recursing.  Check that recursion is bounded.  Rename inner var
2408         to avoid hiding incoming argument.
2409
2410 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
2411
2412         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
2413         operands[2] == 255.
2414         (*addqi_3): Ditto.
2415         (*addqi_4): Ditto.
2416         (*addqi_5): Ditto.
2417         (*addqi_ext_1_rex64): Ditto.
2418         (*addqi_ext_1): Ditto.
2419
2420         (*addqi_4): Check for incdec_operand in QImode.
2421
2422         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
2423         using SWI mode iterator.
2424         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
2425         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
2426         mode iterator.
2427         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
2428         using SWI mode iterator.
2429
2430 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2431
2432         PR c/25880
2433         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
2434         * c-format.c (gcc_diag_flag_specs): Add hash.
2435         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
2436         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
2437         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
2438         pp_c_cv_qualifiers. Handle qualifiers spelling here.
2439         (pp_c_type_qualifier_list): Call the function above.
2440         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
2441         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
2442         (WARN_FOR_QUALIFIERS): New macro.
2443         (convert_for_assignment): Use it.
2444
2445 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
2446
2447         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
2448
2449 2010-06-04  Jan Hubicka  <jh@suse.cz>
2450
2451         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
2452         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
2453         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
2454         DF_BYTE_LR_OUT): Update for embedded bitmaps.
2455         * fwprop.c (single_def_use_enter_block): Likewise.
2456         * ddg.c (create_ddg_dep_from_intra_loop_link,
2457         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
2458         * loop-iv.c (latch_dominating_def): Likewise.
2459         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
2460         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
2461         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
2462         df_rd_transfer_function, df_rd_top_dump,
2463         df_rd_bottom_dump): Update.
2464         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
2465         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
2466         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
2467         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
2468         df_lr_verify_solution_start, df_lr_verify_solution_end,
2469         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
2470         df_live_free_bb_info, df_live_alloc, df_live_reset,
2471         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
2472         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
2473         df_live_verify_solution_start, df_live_verify_solution_end,
2474         df_live_verify_transfer_functions, df_chain_create_bb,
2475         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
2476         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2477         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2478         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
2479         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2480         df_byte_lr_transfer_function, df_byte_lr_top_dump,
2481         df_byte_lr_bottom_dump, df_create_unused_note,
2482         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
2483         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
2484         df_md_transfer_function, df_md_init, df_md_confluence_0,
2485         df_md_confluence_n,
2486         df_md_top_dump, df_md_bottom_dump): Update.
2487         (struct df_lr_problem_data): Embedd bitmap headers.
2488
2489 2010-06-04  Jan Hubicka  <jh@suse.cz>
2490
2491         * dce.c (dce_process_block): Do not re-scan already marked
2492         instructions.
2493
2494 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
2495
2496         PR rtl-optimization/39871
2497         PR rtl-optimization/40615
2498         PR rtl-optimization/42500
2499         PR rtl-optimization/42502
2500         * ira.c (init_reg_equiv_memory_loc: New function.
2501         (ira): Call it twice.
2502         * reload.h (calculate_elim_costs_all_insns): Declare.
2503         * ira-costs.c: Include "reload.h".
2504         (regno_equiv_gains): New static variable.
2505         (init_costs): Allocate it.
2506         (finish_costs): Free it.
2507         (ira_costs): Call calculate_elim_costs_all_insns.
2508         (find_costs_and_classes): Take estimated elimination costs
2509         into account.
2510         (ira_adjust_equiv_reg_cost): New function.
2511         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
2512         * reload1.c (init_eliminable_invariants, free_reg_equiv,
2513         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
2514         (elim_bb): New static variable.
2515         (reload): Move code out of here into init_eliminable_invariants and
2516         free_reg_equiv.  Call them.
2517         (calculate_elim_costs_all_insns): New function.
2518         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
2519         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
2520         but call note_reg_elim_costly if we turned a valid memory address
2521         into an invalid one.
2522         * Makefile.in (ira-costs.o): Depend on reload.h.
2523
2524 2010-06-04  Julian Brown  <julian@codesourcery.com>
2525
2526         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
2527         for pool ranges.
2528
2529 2010-06-04  Richard Guenther  <rguenther@suse.de>
2530
2531         PR lto/41584
2532         * cgraph.h (struct varpool_node): Add lto_file_data field.
2533         * lto-cgraph.c (input_varpool_node): Initialize it.
2534
2535 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
2536
2537         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
2538         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
2539         predicate in "type" attribute calculation.
2540         (*addsi_1_zext): Ditto.
2541         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
2542         (*addsi_2_zext): Ditto.
2543         (*add<mode>_3): Ditto.
2544         (*addsi_3_zext): Ditto.
2545         (*add<mode>_5): Ditto.
2546
2547 2010-06-03  Jan Hubicka  <jh@suse.cz>
2548
2549         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
2550         of bitmap_bit_p.
2551         * cfganal.c (compute_dominance_frontiers_1): Likewise.
2552
2553 2010-06-03  Jan Hubicka  <jh@suse.cz>
2554
2555         * df-problems.c (df_create_unused_note, df_note_bb_compute):
2556         micro-optimize the checks when to add new note.
2557
2558 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
2559
2560         * final.c (output_asm_insn): Call
2561         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
2562         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
2563         (output_address): Call targetm.asm_out.print_operand_address.
2564         Update comments.
2565         * target.h (struct gcc_target): Add print_operand,
2566         print_operand_address, and print_operand_punct_valid_p fields.
2567         * targhooks.h (default_print_operand): Declare.
2568         (default_print_operand_address): Declare.
2569         (default_print_operand_punct_valid_p): Declare.
2570         * targhooks.c (default_print_operand): Define.
2571         (default_print_operand_address): Define.
2572         (default_print_operand_punct_valid_p): Define.
2573         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
2574         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
2575         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2576         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
2577         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
2578         * vmsdbgout.c (addr_const_to_string): Update comment.
2579         * config/i386/i386.c (print_operand): Rename to...
2580         (ix86_print_operand): ...this.  Make static.
2581         (print_operand_address): Rename to...
2582         (ix86_print_operand_address): ...this.  Make static.  Call
2583         ix86_print_operand instead of PRINT_OPERAND.
2584         (ix86_print_operand_punct_valid_p): New function.
2585         (TARGET_PRINT_OPERAND): Define.
2586         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2587         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2588         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
2589         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2590         (PRINT_OPERAND): Delete.
2591         (PRINT_OPERAND_ADDRESS): Delete.
2592         * config/i386/i386-protos.h (print_operand): Delete prototype.
2593         (print_operand_address): Delete prototype.
2594
2595 2010-06-03  Richard Guenther  <rguenther@suse.de>
2596
2597         PR tree-optimization/44403
2598         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2599         Preserve pointer qualifiers.
2600         (vect_create_data_ref_ptr): Likewise.
2601
2602 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2603
2604         PR c++/44294
2605         * defaults.h (MAX_FIXED_MODE_SIZE): New.
2606
2607         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
2608
2609 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
2610
2611         PR debug/44375
2612         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
2613         return false if merging the bbs would lead to goto_locus
2614         location being lost from the IL.
2615
2616 2010-06-03  Jan Hubicka  <jh@suse.cz>
2617             Jakub Jelinek  <jakub@redhat.com>
2618
2619         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
2620         set->regs[i] is NULL or has just one entry.
2621
2622 2010-06-03  Jan Hubicka  <jh@suse.cz>
2623
2624         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
2625         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
2626
2627 2010-06-03  Paul Brook  <paul@codesourcery.com>
2628
2629         * config/arm/arm.c (FL_TUNE): Define.
2630         (arm_default_cpu, arm_cpu_select): Remove.
2631         (all_cores): Populate core field.
2632         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
2633         (arm_find_cpu): New function.
2634         (arm_handle_option): Lookup cpu/architecture names.
2635         (arm_override_options): Cleanup mcpu/march/mtune handling.
2636         (arm_file_start): Ditto.
2637
2638 2010-06-03  Alan Modra  <amodra@gmail.com>
2639
2640         PR target/44169
2641         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
2642         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
2643         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
2644         (rs6000_emit_load_toc_table): Likewise.
2645
2646 2010-06-02  Jan Hubicka  <jh@suse.cz>
2647
2648         * passes.c (init_optimization_passes): Put ipa reference
2649         after ipa pure-const.
2650
2651 2010-06-02  Jan Hubicka  <jh@suse.cz>
2652
2653         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
2654         calls_read_all and calls_write_all.
2655         (get_reference_optimization_summary): Fix formatting.
2656         (is_proper_for_analysis): Check that decl is not readonly.
2657         (propagate_bits): Check CONST/PURE/noreturn flags.
2658         (ipa_init): Move all_module_statics to optimization_summary_obstack.
2659         (analyze_function): Ignore indirect edges.
2660         (copy_global_bitmap): For all module statics, do nothing.
2661         (generate_summary): Do not print calls_read_all/calls_write_all.
2662         (read_write_all_from_decl): Take node as argument; check
2663         cgraph_node_cannot_return.
2664         (propagate): Reorganize read_all/write_all computation;
2665         check indirect edges; check ecf flags; use all_module_statics
2666         in the results; do not free all_module_statics.
2667         (stream_out_bitmap): Handle all_module_statics.
2668         (ipa_reference_write_optimization_summary): Likewise; use
2669         varpool/cgraph encoders to get boundaries.
2670         (ipa_reference_read_optimization_summary): Read in all_module_statics;
2671         use it when possible.
2672
2673 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2674
2675         PR target/44218
2676         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
2677         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
2678
2679         * doc/extend.texi (powerpc builtins): Document vec_recip,
2680         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
2681
2682         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
2683         (rs6000_emit_swrsqrt): Ditto.
2684         (rs6000_emit_swdivsf): Delete.
2685         (rs6000_emit_swdivdf): Ditto.
2686         (rs6000_emit_swrsqrtsf): Ditto.
2687
2688         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
2689         describe the reciprocal estimate support for each type.
2690         (recip_options): Map -mrecip=<opt> into option bits.
2691         (gen_2arg_fn_t): New typedef for binary rtx gen function.
2692         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
2693         reciprocal estimate instructions.
2694         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
2695         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
2696         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
2697         cost information if -mdebug=cost or -mdebug=reg.
2698         (rs6000_override_options): Set -mrecip-precision for power6, and
2699         power7 machines.  If -mvsx or -mdfp, enable various options that
2700         came in previous instruction set ISAs, unless the option was
2701         explicitly disabled by the command line option.  Parse
2702         -mrecip=<opt> options.
2703         (rs6000_builtin_vectorized_function): Add support for vectorizing
2704         the reciprocal estimate builtins and expansions.
2705         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
2706         (bdesc_2arg): Add reciprocal estimate builtins.
2707         (bdesc_1arg): Add reciprocal square root estimate builtins.
2708         (rs6000_expand_builtin): Rewrite to use a switch statement,
2709         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
2710         (rs6000_init_builtins): Create declarations for reciprocal
2711         estimate builtins.
2712         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
2713         sized, prefer traditional floating point registers, if integer
2714         vector types, prefer altivec registers.  Don't actually look at
2715         the memory address any more.
2716         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
2717         builtins.
2718         (rs6000_load_constant_and_splat): New helper function to load up
2719         the constant for reciprocal estimate instructions.
2720         (rs6000_emit_madd): New helper function for generating
2721         multiply/add type instructions, based on the current switches.
2722         (rs6000_emit_msub): Ditto.
2723         (rs6000_emit_mnsub): Ditto.
2724         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
2725         replace a divide with a reciprocal estimate and fixup, adding
2726         support for machines with high precision and vectors.
2727         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
2728         low precision machines.
2729         (rs6000_emit_swdiv): New common function to be called to replace a
2730         division with reciprocal estimate and fixup.
2731         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
2732         for double and vector types.  Add support for high precision machines.
2733
2734         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
2735         the reciprocal estimate instructions can be generated.
2736         (TARGET_FRE): Ditto.
2737         (TARGET_FRSQRTES): Ditto.
2738         (TARGET_FRSQRTE): Ditto.
2739         (RS6000_RECIP_*): New macros for reciprocal estimate support.
2740
2741         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
2742         square root estimate on vectors.
2743         (re<mode>2): New insn for reciprocal division estimate on vectors.
2744
2745         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
2746         New builtin.
2747         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
2748         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
2749         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
2750         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
2751         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
2752         (RS6000_BUILTIN_RSQRT): Ditto.
2753         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
2754         floating point builtin.
2755
2756         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2757         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
2758         __RECIP_PRECISION__ based on the command line switches.
2759         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
2760
2761         * config/rs6000/rs6000.opt (-mrecip): Document add support for
2762         replacing division instructions with reciprocal estimate and fixup.
2763         (-mrecip=<opt>): New option.
2764         (-mrecip-precision): Ditto.
2765
2766         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
2767         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
2768         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
2769         precision scalar.
2770
2771         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
2772         (UNSPEC_VREFP): Ditto.
2773         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
2774         conterparts with regard to support of -mno-fused-madd and -ffast-math.
2775         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
2776         reciprocal estimate instructions to be generated.
2777         (altivec_vrefp): Ditto.
2778
2779         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
2780         estimate support.
2781         (rreg): New mode attribute for reciprocal estimate support.
2782         (recip<mode>3): New insn for division using reciprocal estimate
2783         and fixup builtins.
2784         (divide define_split): New define_split to convert floating point
2785         division to use reciprocal estimate if the user used the
2786         appropriate options and the split is run when we can add new
2787         pseudo registers for the fixup.
2788         (rsqrt<mode>2): New insn for reciprocal square root support.
2789         (recipsf3): Move into recip<mode>3.
2790         (recipdf3): Ditto.
2791         (fres): Use TARGET_FRES.
2792         (rsqrtsf2): Move into rsqrt<mode>2.
2793         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
2794         (copysignsf3): Add support for VSX.
2795         (fred): Use TARGET_FRE.
2796         (fred_fpr): Ditto.
2797         (rsqrtdf_internal1): New function for frsqrte instruciton.
2798
2799         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
2800         (vec_rsqrt): Ditto.
2801
2802 2010-06-03  Richard Guenther  <rguenther@suse.de>
2803
2804         PR middle-end/44291
2805         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
2806         (set_user_assembler_libfunc): Likewise.
2807
2808 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
2809
2810         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
2811         defaults.h.
2812         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
2813         to defaults.h
2814         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
2815         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
2816         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
2817         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
2818         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
2819         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
2820         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
2821         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
2822         * defaults.h: Updated for above mentioned changes.
2823
2824 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
2825
2826         * c-common.c: Remove header include of tm_p.h.
2827         * Makefile.in (c-common.o): Remove TM_P_H dependency.
2828
2829 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
2830
2831         * tree.h (struct tree_decl_map): New type.
2832         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
2833         (tree_decl_map_hash): New prototype.
2834         (debug_expr_for_decl, value_expr_for_decl): Change into
2835         tree_decl_map hashtab from tree_map.
2836         (init_ttree): Adjust initialization.
2837         (tree_decl_map_hash): New function.
2838         (decl_debug_expr_lookup, decl_debug_expr_insert,
2839         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
2840
2841 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2842
2843         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
2844         linker emulations.
2845         * configure: Regenerate.
2846         * config.in: Regenerate.
2847
2848         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
2849         (X86_64_EMULATION): Define.
2850         (TARGET_LD_EMULATION): Use them.
2851
2852         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
2853         (SPARC64_EMULATION): Define.
2854         (LINK_ARCH_SPEC): Use them.
2855
2856 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
2857
2858         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
2859         smallest_mode_for_size for computing the precision types of new
2860         graphite IVs.  Do not call lang_hooks.types.type_for_size.
2861
2862 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
2863
2864         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
2865         information.
2866         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
2867
2868 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
2869
2870         PR middle-end/44363
2871         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
2872         return false instead.
2873
2874 2010-06-02  Jan Hubicka  <jh@suse.cz>
2875
2876         PR middle-end/44295
2877         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
2878         create new cgraph node to check callee.
2879
2880 2010-06-02  Richard Guenther  <rguenther@suse.de>
2881
2882         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
2883
2884 2010-06-02  Richard Guenther  <rguenther@suse.de>
2885
2886         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
2887         (lto_wrapper_cleanup): ... this.  Do not exit.
2888         (fatal): Adjust.  Exit here.
2889         (fatal_perror): Likewise.
2890         (fatal_signal): New function.
2891         (main): Set up signal handlers to cleanup temporary files.
2892         * Makefile.in (lto-wrapper.o): Adjust dependencies.
2893
2894 2010-06-02  Richard Guenther  <rguenther@suse.de>
2895
2896         PR tree-optimization/44377
2897         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
2898
2899 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2900
2901         * config/s390/2097.md (z10_fhex): Remove insn reservation.
2902         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
2903         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
2904         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
2905         instruction.
2906         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
2907
2908 2010-06-02  Jan Hubicka  <jh@suse.cz>
2909
2910         * bitmap.c (bitmap_descriptor): Add search_iter.
2911         (bitmap_find_bit): Increment it.
2912         (print_statistics): Print it.
2913
2914 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
2915
2916         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
2917         instead of gimple_build_call_vec.  Delete unnecessary local variable.
2918
2919 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
2920
2921         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
2922         change from yesterday.
2923
2924 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
2925
2926         * c-ada-spec.c: Clean up redundant includes.
2927
2928 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
2929
2930         * gimplify.c: Do not include except.h and optabs.h.
2931         (gimplify_body): Do not initialize RTL profiling.
2932         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
2933         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
2934         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
2935         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
2936         langhooks.h.
2937
2938         * tree-pretty-print.h: Include pretty-print.h.
2939         * gimple-pretty-print.h: Include pretty-print.h.
2940
2941         * tree-pretty-print.c: Do not include diagnostic.h.
2942         * tree-vrp.c: Likewise.
2943         * tree-tailcall.c: Likewise
2944         * tree-scalar-evolution.c: Likewise
2945         * tree-ssa-dse.c: Likewise
2946         * tree-chrec.c: Likewise
2947         * tree-ssa-sccvn.c: Likewise
2948         * tree-ssa-copyrename.c: Likewise
2949         * tree-nomudflap.c: Likewise
2950         * tree-call-cdce.c: Likewise
2951         * tree-stdarg.c: Likewise
2952         * tree-ssa-math-opts.c: Likewise
2953         * tree-nrv.c: Likewise
2954         * tree-ssa-sink.c: Likewise
2955         * tree-browser.c: Likewise
2956         * tree-ssa-loop-ivcanon.c: Likewise
2957         * tree-ssa-loop.c: Likewise
2958         * tree-parloops.c: Likewise
2959         * tree-ssa-address.c: Likewise
2960         * tree-ssa-ifcombine.c: Likewise
2961         * tree-if-conv.c: Likewise
2962         * tree-data-ref.c: Likewise
2963         * tree-affine.c: Likewise
2964         * tree-ssa-phiopt.c: Likewise
2965         * tree-ssa-coalesce.c: Likewise
2966         * tree-ssa-pre.c: Likewise
2967         * tree-ssa-live.c: Likewise
2968         * tree-predcom.c: Likewise
2969         * tree-ssa-forwprop.c: Likewise
2970         * tree-ssa-dce.c: Likewise
2971         * tree-ssa-ter.c: Likewise
2972         * tree-ssa-loop-prefetch.c: Likewise
2973         * tree-optimize.c: Likewise
2974         * tree-ssa-phiprop.c: Likewise
2975         * tree-object-size.c: Likewise
2976         * tree-outof-ssa.c: Likewise
2977         * tree-ssa-structalias.c: Likewise
2978         * tree-switch-conversion.c: Likewise
2979         * tree-ssa-reassoc.c: Likewise
2980         * tree-ssa-operands.c: Likewise
2981         * tree-vectorizer.c: Likewise
2982         * tree-vect-data-refs.c: Likewise
2983         * tree-vect-generic.c: Likewise
2984         * tree-vect-stmts.c: Likewise
2985         * tree-vect-patterns.c: Likewise
2986         * tree-vect-slp.c: Likewise
2987         * tree-vect-loop.c: Likewise
2988         * tree-ssa-loop-ivopts.c: Likewise
2989         * tree-ssa-loop-im.c: Likewise
2990         * tree-ssa-loop-niter.c: Likewise
2991         * tree-ssa-loop-unswitch.c: Likewise
2992         * tree-ssa-loop-manip.c: Likewise
2993         * tree-ssa-loop-ch.c: Likewise
2994         * tree-dump.c: Likewise
2995         * tree-complex.c: Likewise
2996
2997         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
2998         * tree-ssa-uninit.c: Likewise
2999         * tree-ssa-threadupdate.c: Likewise
3000         * tree-ssa-uncprop.c: Likewise
3001         * tree-ssa-ccp.c: Likewise
3002         * tree-ssa-dom.c: Likewise
3003         * tree-ssa-propagate.c: Likewise
3004         * tree-ssa-alias.c: Likewise
3005         * tree-dfa.c: Likewise
3006         * tree-cfgcleanup.c: Likewise
3007         * tree-sra.c: Likewise
3008         * tree-ssa-copy.c: Likewise
3009         * tree-ssa.c: Likewise
3010         * tree-profile.c: Likewise
3011         * tree-cfg.c: Likewise
3012         * tree-ssa-threadedge.c: Likewise
3013         * tree-vect-loop-manip.c: Likewise
3014
3015         * tree-inline.c: Do not include diagnostic.h and expr.h.
3016         Include rtl.h.
3017         (copy_decl_for_dup_finish): Do not use NULL_RTX.
3018
3019         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3020         * tree-loop-distribution.c: Likewise.
3021
3022 2010-06-01  Jan Hubicka  <jh@suse.cz>
3023
3024         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3025
3026 2010-06-01  Jan Hubicka  <jh@suse.cz>
3027
3028         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3029         remove return value.
3030         (split_bbs_on_noreturn_calls) .... here.
3031         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3032         * tree-flow.h (fixup_noreturn_call): New.
3033
3034 2010-06-01  Jan Hubicka  <jh@suse.cz>
3035
3036         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3037
3038 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
3039
3040         * tree.h (build_nt_call_list): Delete.
3041         * tree.c (build_nt_call_list): Delete.
3042
3043 2010-06-01  Jan Hubicka  <jh@suse.cz>
3044
3045         * fwprop.c: Make emit-rtl.h include last.
3046         * rtlanal.c: Include emit-rtl.h.
3047         * genautomata.c: Output emit-rtl include into insn-automata.c
3048         * df-scan.c: Include emit-rtl.h.
3049         * haifa-sched.c: Indlude emit-rtl.h.
3050         * mode-switching.c: Indlude emit-rtl.h.
3051         * graph.c: Indlude emit-rtl.h.
3052         * sel-sched.c: Include emit-rtl.h.
3053         * sel-sched-ir.c: Include emit-rtl.h.
3054         * ira-build.c: Include emit-rtl.h.
3055         * emit-rtl.c: (first_insn, last_insn): Remove defines.
3056         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3057         Move to emit-rtl.h.
3058         (set_new_first_and_last_insn, get_last_insn_anywhere,
3059         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3060         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3061         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3062         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3063         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3064         Use accessor functions.
3065         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3066          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3067         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3068         mem_expr_equal_p): Move here from rtl.h.
3069         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3070         Move here from emit-rtl.c; make inline.
3071         * cfglayout.h: Include emit-rtl.h.
3072         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3073          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3074         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3075         mem_expr_equal_p, get_insns, set_first-insn,
3076         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3077         * reg-stack.c: Include emit-rtl.h.
3078         * dce.c: Likewise.
3079
3080 2010-06-01  Jan Hubicka  <jh@suse.cz>
3081
3082         * cgraph.h (tree_function_versioning): Update prototype.
3083         (cgraph_function_versioning): Update prototype.
3084         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3085         bitmap.
3086         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3087         (cgraph_materialize_clone, save_inline_function_body): Update use of
3088         tree_function_versioning.
3089         * tree-inline.c (copy_bb): Look for previous copied block to link
3090         after; fix debug output.
3091         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3092         (copy_body): Likewise.
3093         (expand_call_inline): Update use of copy_body.
3094         (tree_function_versioning): Update use of copy body; accept
3095         blocks_to_copy and new_entry.
3096
3097 2010-06-01  Jan Hubicka  <jh@suse.cz>
3098
3099         * gegenrtl.c: Remove unnecesary prototypes.
3100         (gendecl): Remove.
3101         (gendef): Produce static inline.
3102         (gencode): Remove.
3103         (main): Do not decode parameters; generate header only.
3104         * Makefile.in (genrtl.c): Remove.
3105
3106 2010-06-01  Jan Hubicka  <jh@suse.cz>
3107
3108         * tree-switch-conversion.c (build_one_array): Make it readonly.
3109
3110 2010-06-01  Richard Guenther  <rguenther@suse.de>
3111
3112         * optabs.c (init_optabs): Guard all accesses to reinit.
3113         * ipa-pure-const.c (propagate): Fix another typo.
3114         * opts.c (common_handle_option): Split assignment to bool.
3115         * c-opts.c (c_common_handle_option): Likewise.
3116
3117 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
3118             Matthew Gingell  <gingell@adacore.com>
3119
3120         * doc/invoke.texi: Mention -fdump-ada-spec.
3121         * tree-dump.c (dump_files): Add ada-spec.
3122         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3123         * tree-pass.h (tree_dump_index): Add TDI_ada.
3124         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3125         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3126         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3127         * c-decl.c: Include c-ada-spec.h.
3128         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3129         functions.
3130         (c_write_global_declarations): Add handling of -fdump-ada-spec.
3131         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3132         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3133         * c-ada-spec.h, c-ada-spec.c: New files.
3134
3135 2010-06-01  Richard Guenther  <rguenther@suse.de>
3136
3137         PR lto/43853
3138         * ipa-pure-const.c (get_function_state): Hand back varying state
3139         if we do not have one.
3140         (has_function_state): New function.
3141         (duplicate_node_data): Adjust.
3142         (remove_node_data): Likewise.
3143         (pure_const_write_summary): Likewise.
3144         (propagate): Likewise.  Fix typo.
3145
3146 2010-06-01  Jan Hubicka  <jh@suse.cz>
3147
3148         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
3149         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
3150         (execute_all_ipa_transforms): Do not play with the states.
3151
3152 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
3153
3154         * config/arm/t-linux-androideabi: New.
3155         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
3156
3157 2010-06-01  Jan Hubicka  <jh@suse.cz>
3158
3159         * tree-inline.c (estimate_num_insns): For stdarg functions look
3160         into call statement to count cost of argument passing.
3161
3162 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
3163
3164         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
3165         argument for fprintf.
3166         (ix86_output_addr_diff_elt): Likewise.
3167         (x86_function_profiler): Likewise.
3168         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
3169         (LPREFIX): Likewise.
3170         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3171
3172 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
3173
3174         PR target/44338
3175         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
3176         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
3177         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
3178         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
3179         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
3180         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
3181         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
3182         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
3183         TARGET_FUSED_MADD.
3184
3185 2010-05-31  Jan Hubicka  <jh@suse.cz>
3186
3187         * tree.h (tree_range_check_failed): Declare noreturn.
3188
3189 2010-05-31  Jan Hubicka  <jh@suse.cz>
3190
3191         * gimple.c (gimple_call_builtin_p): New function.
3192         * gimple.h (gimple_call_builtin_p): Declare.
3193         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
3194         to exit.
3195         (execute_warn_function_return): BUILT_IN_RETURN is return.
3196         (split_critical_edges): Return edges are not critical.
3197         (is_ctrl_altering_stmt): Builtin_in_return is altering.
3198         (gimple_verify_flow_info): Handle built_in_return.
3199         (execute_warn_function_return): Handle built_in_return.
3200         * ipa-pure-const.c (check_call): Ignore builtin_return.
3201
3202 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
3203
3204         PR middle-end/44337
3205         * expr.c (expand_assignment): Don't store anything for out-of-bounds
3206         array accesses with non-MEM.
3207
3208         PR tree-optimization/44182
3209         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
3210         newly needs to end a bb is followed by debug stmts, instead return
3211         true from the function at the end.
3212         (maybe_move_debug_stmts_to_successors): New function.
3213         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
3214
3215 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
3216
3217         PR target/44161
3218         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
3219
3220 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3221
3222         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
3223         for nested functions in non-optimized compilation.
3224
3225 2010-05-31  Richard Guenther  <rguenther@suse.de>
3226
3227         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
3228
3229 2010-05-30  Jan Hubicka  <jh@suse.cz>
3230
3231         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
3232
3233 2010-05-30  Richard Guenther  <rguenther@suse.de>
3234
3235         PR lto/42975
3236         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
3237         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
3238         no longer needed.
3239
3240 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
3241
3242         * config/darwin.c (output_objc_section_asm_op): Add comment.
3243         (name_needs_quotes): Add '_' to list of valid comment chars.
3244         (machopic_output_function_base_name): Remove unneeded quotes.
3245         (darwin_encode_section_info): Adjust asm whitespace.
3246         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
3247         (ASM_OUTPUT_LOCAL): Ditto.
3248         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
3249         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
3250         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
3251
3252 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3253
3254         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
3255         RS6000_OUTPUT_BASENAME unconditionally.
3256         (rs6000_output_function_epilogue): Likewise.
3257
3258 2010-05-30  Jan Hubicka  <jh@suse.cz>
3259
3260         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
3261         nodes.
3262
3263 2010-05-30  Richard Guenther  <rguenther@suse.de>
3264
3265         * tree-cfg.c (verify_gimple_assign_single): Implement
3266         verification for COND_EXPR rhs.
3267
3268 2010-05-30  Jan Hubicka  <jh@suse.cz>
3269
3270         * cgraph.h (cgraph_dump_file): Declare.
3271         * cgraphunit.c (cgraph_dump_file): Export.
3272         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
3273
3274 2010-05-30  Jan Hubicka  <jh@suse.cz>
3275
3276         * dwarf2out.c (reference_to_unused,
3277         premark_types_used_by_global_vars_helper): Avoid creation of new
3278         varpool nodes.
3279
3280 2010-05-30  Jan Hubicka  <jh@suse.cz>
3281
3282         * cgraph.h (cgraph_node_cannot_return,
3283         cgraph_edge_cannot_lead_to_return): New functions.
3284         * cgraph.c (cgraph_node_cannot_return,
3285         cgraph_edge_cannot_lead_to_return): Use them.
3286         * ipa-pure-const.c (pure_const_names): New static var.
3287         (check_call): Handle calls not leading to return.
3288         (pure_const_read_summary): Dump info read.
3289         (propagate): Dump info about propagation process; ignore side effects
3290         of functions not leading to exit; fix handling of pure functions.
3291
3292 2010-05-30  Jan Hubicka  <jh@suse.cz>
3293
3294         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
3295         for tail call epilogues.
3296
3297 2010-05-30  Jan Hubicka  <jh@suse.cz>
3298
3299         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
3300         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
3301         dump files.
3302
3303 2010-05-29  Jan Hubicka  <jh@suse.cz>
3304
3305         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
3306         node; remove references in node we no longer keep in cgrpah but need
3307         body of.
3308
3309 2010-05-29  Jan Hubicka  <jh@suse.cz>
3310
3311         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
3312
3313 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3314
3315         PR target/44165
3316         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
3317
3318 2010-05-29  Jan Hubicka  <jh@suse.cz>
3319
3320         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
3321         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
3322         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
3323         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
3324         debug_names_replaced_by, debug_update_ssa): Likewise.
3325         * sbitmap.c (debug_sbitmap): Likewise.
3326         * genrecog.c (debug_decision, debug_decision_list): Likewise.
3327         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
3328         debug_tree_chain): Likewise.
3329         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
3330         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
3331         * optabs.c  (debug_optab_libfuncs): Likewise.
3332         (verify_loop_closed_ssa): Likewise.
3333         * value-prof.c (verify_histograms): Likewise.
3334         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
3335         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
3336         * cfghooks.c (verify_flow_info): Likewise.
3337         * fold-const.c (debug_fold_checksum): Likewise.
3338         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
3339         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
3340         Likewise.
3341         * omega.c (debug_omega_problem): Likewise.
3342         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
3343         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
3344         * dominance.c (verify_dominators, debug_dominance_info,
3345         debug_dominance_tree): Likewise.
3346         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
3347         * df_regno_debug, df_ref_debug,
3348         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
3349         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
3350         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
3351         * sel-sched.c (debug_state): Likewise.
3352         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
3353         Likewise.
3354         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
3355         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
3356         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
3357         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
3358         Likewise.
3359         * c-pretty-print.c (debug_c_tree): Likewise.
3360         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
3361         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
3362         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
3363         * ebitmap.c (debug_ebitmap): Likewise.
3364         * function.c (debug_find_var_in_block_tree): Likewise.
3365         * print-rtl.c (debug_rtx): Likewise.
3366         (debug_rtx_count): Likewise.
3367         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
3368         * stor-layout.c (debug_rli): Likewise.
3369         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
3370         * tree-data-ref.c (debug_data_references,
3371         debug_data_dependence_relations, debug_data_reference,
3372         debug_data_dependence_relation, debug_rdg_vertex,
3373         debug_rdg_component, debug_rdg): Likewise.
3374         * tree-affine.c (debug_aff): Likewise.
3375         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
3376         Likewise.
3377         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
3378         * emit-rtl.c (verify_rtl_sharing): Likewise.
3379         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
3380         debug_value_expressions): Likewise.
3381         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
3382         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
3383         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
3384         * cfglayout.c (verify_insn_chain): Likewise.
3385         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
3386         debug_clast_stmt, debug_generated_program): Likewise.
3387         * ggc-page.c (debug_print_page_list): Likewise.
3388         * tree-ssa-ter.c (debug_ter): Likewise.
3389         * graphite-dependences.c (debug_pddr): Likewise.
3390         * sched-deps.c (debug_ds): Likewise.
3391         * tree-ssa.c (verify_ssa): Likewise.
3392         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
3393         debug_scattering_functions, debug_iteration_domains, debug_pdr,
3394         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
3395         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
3396         * tree-inline.c (debug_find_tree): Likewise.
3397         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
3398         debug_ppl_powerset_matrix): Likewise.
3399         * var-tracking.c (debug_dv): Likewise.
3400         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
3401         * cfgloop.c (verify_loop_structure): Likewise.
3402         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
3403         * c-common.c (verify_sequence_points): Likewise.
3404         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
3405         debug_candidates, debug_rgn_dependencies): Likewise.
3406         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
3407         * debug_constraint_graph, debug_solution_for_var,