OSDN Git Service

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