1 2010-06-24 DJ Delorie <dj@redhat.com>
3 * config/m32c/m32c-pragma.c: Don't include rtl.h.
5 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
7 * config/i386/i386 (mov<mode>): Macroize expander from mov{sf,df,xf}
8 using X87MODEF mode iterator.
9 (pushsf splitter): Macroize splitter using P mode iterator.
10 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13 (*movxf_internal): Rename from *movxf_integer.
14 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
15 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
16 (*movdf_internal): Rename from *movdf_integer.
17 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18 (*movsf_internal): Rename from *movdf_1.
20 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
22 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
23 (const_gimple_seq_node): Removed typedefs.
25 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
26 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
28 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
30 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
31 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
32 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
33 and CODE_FOR_vec_extract_lo_v4df.
35 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
36 Changed to define_insn_and_split.
37 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
38 (vec_extract_lo_v16hi): Likewise.
39 (vec_extract_lo_v32qi): Likewise.
40 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
41 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
43 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
46 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
47 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
48 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
49 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
50 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
53 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
56 * df-core.c (struct df): Rename to df_d.
57 * df.h (struct df): Likewise.
58 * dse.h (struct df): Remove forward declaration.
59 * recog.h (struct insn_data): Rename to:
60 (struct_insn_data_d). Adjusted all users.
62 2010-06-23 Arnaud Charlet <charlet@adacore.com
65 * doc/install.texi: Update requirements to build GNAT.
67 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
69 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
71 (m68k_sched_attr_opx_type): Remove unreachable return.
72 (m68k_sched_attr_opy_type): Likewise.
73 (m68k_sched_attr_size): Likewise.
74 (sched_get_opxy_mem_type): Likewise.
75 (m68k_sched_attr_op_mem): Likewise.
77 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
79 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
80 new statement and adjust VDEF only if necessary. Remove superfluous
81 call to maybe_clean_or_replace_eh_stmt.
82 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
84 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
85 * tree-inline.c (copy_bb): ...and not there.
87 2010-06-22 Cary Coutant <ccoutant@google.com>
89 * dwarf2out.c (is_nested_in_subprogram): New function.
90 (should_move_die_to_comdat): Use it.
91 (copy_ancestor_tree): Don't mark DIEs here.
92 (copy_decls_walk): Start walk from root of newly-added tree;
93 mark DIEs here instead.
95 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
97 * config/i386/i386.md (unit): Also check sseishft1.
99 2010-06-22 Jan Hubicka <jh@suse.cz>
101 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
104 2010-06-22 Jan Hubicka <jh@suse.cz>
106 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
107 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
108 Return true if something changed.
109 * df.h (df_confluence_function_n): Return bool.
110 * df-core.c (df_worklist_propagate_forward,
111 df_worklist_propagate_backward): Track changes and ages.
112 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
114 * dse.c (dse_confluence_n): Return always true.
116 2010-06-22 Jan Hubicka <jh@suse.cz>
118 * bitmap.c (bitmap_clear_bit): Micro optimize.
120 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
122 * config/i386/i386.md (SWI1248x): New mode iterator.
127 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
128 SWI1248x mode iterator.
129 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
130 using SWI124 mode iterator.
131 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
133 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
134 *pushdi2_prologue_rex64 using P mode iterator.
135 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
136 using SWI48 mode iterator.
137 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
138 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
139 using SWI1248x mode iterator.
140 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
141 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
143 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
145 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
146 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
148 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
150 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
151 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
153 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
155 (mov<mode>_insn_1): New expander.
156 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
157 using SWI48x mode iterator.
159 (*movoi_internal_avx): Rename from *movoi_internal.
160 (*movti_internal_rex64): Rename from *movti_rex64.
161 (*movti_internal_sse): Rename from *movti_sse.
162 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
163 (*movdi_internal): Rename from *movdi_2.
164 (*movsi_internal): Rename from *movsi_1.
165 (*movhi_internal): Rename from *movhi_1.
166 (*movqi_internal): Rename from *movqi_1.
168 (insv): Update the call to gen_movsi_insv_1 for rename.
169 * config/i386/i386.c (promote_duplicated_reg): Ditto.
171 2010-06-22 Jan Hubicka <jh@suse.cz>
173 * passes.c (execute_function_todo): Move call of statistics_fini_pass
175 (execute_todo) ... this one.
177 2010-06-22 Alan Modra <amodra@gmail.com>
180 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
181 * caller-save.c (insert_restore, insert_save): Use non-validate
182 form of adjust_address.
184 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
187 * config/pa/pa.c (override_options): Disable
188 -freorder-blocks-and-partition.
190 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
193 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
195 * config/i386/i386.md (type): Add sseishft1
197 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
198 (ppro_insn_load): Likewise.
199 (ppro_insn_store): Likewise.
200 (ppro_insn_both): Likewise.
202 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
203 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
205 (*vec_extractv2di_1_avx): Likewise.
206 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
207 type. Remove atom_unit.
208 (*vec_extractv2di_1_sse2): Likewise.
210 2010-06-21 DJ Delorie <dj@redhat.com>
212 * diagnostic.h (diagnostic_classification_change_t): New.
213 (diagnostic_context): Add history and push/pop list.
214 (diagnostic_push_diagnostics): Declare.
215 (diagnostic_pop_diagnostics): Declare.
216 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
217 from pragmas in a history chain instead of the global table.
218 (diagnostic_push_diagnostics): New.
219 (diagnostic_pop_diagnostics): New.
220 (diagnostic_report_diagnostic): Scan history chain to find state
221 of diagnostics as of the diagnostic location.
222 * opts.c (set_option): Pass UNKNOWN_LOCATION to
223 diagnostic_classify_diagnostic.
224 (enable_warning_as_error): Likewise.
225 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
226 use in the history chain.
227 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
228 allow these pragmas anywhere.
229 * doc/extend.texi: Document pragma GCC diagnostic changes.
231 2010-06-21 Jakub Jelinek <jakub@redhat.com>
233 * dwarf2out.c (add_linkage_name): New function. Don't add
234 anything to DW_TAG_member DIEs.
235 (add_name_and_src_coords_attributes): Use it.
236 (gen_variable_die): Call it for C++ static data members if
237 specification is DW_TAG_member.
239 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
240 C++ char16_t and char32_t.
242 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
243 * genattrtab.c: Include vecprim.h.
244 (cached_attrs, cached_attr_count, attrs_seen_once,
245 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
246 attrs_cached_after): New variables.
247 (find_attrs_to_cache): New function.
248 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
249 (write_test_expr): Add attrs_cached argument, return it too,
250 attempt to cache non-const attributes used more than once in
251 a single case handling.
252 (write_attr_get): Use find_attrs_to_cache, for caching candidates
253 emit cached_* variables. Adjust write_attr_set callers.
254 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
255 to find attributes that should be cached in this block. Adjust
256 write_test_expr callers.
257 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
259 (make_automaton_attrs): Adjust write_test_expr caller.
261 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
262 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
263 (make_automaton_attrs): If find_tune_attr returns non-NULL,
264 write separate internal_dfa_insn_code_* and insn_default_latency_*
265 functions for each attribute's value and emit init_sched_attrs
266 function and function pointers.
267 * genattr.c (const_attrs, reservations): New variables.
268 (gen_attr): Add const attributes to const_attrs vector.
269 (check_tune_attr, find_tune_attr): New functions.
270 (main): Add reservations to reservations vector. If find_tune_attr
271 returns true, add prototype for init_sched_attrs and make
272 internal_dfa_insn_code and insn_default_latency function pointers,
273 otherwise define init_sched_attrs as dummy macro.
274 * cfgexpand.c: Include insn-attr.h.
275 (gimple_expand_cfg): Call init_sched_attrs.
277 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
280 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
281 va_arg from a set of register save slots into a temporary,
282 if the container is bigger than type size, do the copying
283 using smaller mode or using memcpy.
286 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
288 (sel_print_to_dot): Remove macro.
289 (sel_print): Likewise. New prototype.
290 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
291 (sel_print): New function.
293 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
295 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
296 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
298 2010-06-21 Nick Clifton <nickc@redhat.com>
300 * config/rx/rx.h (PTRDIFF_TYPE): Define.
301 (SMALL_REGISTER_CLASS): Define (to zero).
302 (PRINT_OPERAND): Delete.
303 (PRINT_OPERAND_ADDRESS): Delete.
304 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
305 (rx_print_operand_address): Delete prototype.
306 * config/rx/rx.c (rx_print_operand): Make static.
307 Allow %H and %L to handle CONST_DOUBLEs.
308 (rx_print_operand_address): Make static.
309 (rx_gen_move_template): Rename local variable 'template' to
311 (rx_function_arg): Do not pass unknown sized objects in registers.
312 (TARGET_PRINT_OPERAND): Define.
313 (TARGET_PRINT_OPERAND_ADDRESS): Define.
315 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
317 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
319 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
321 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
322 stack-alignment for simple leaf-functions.
324 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
326 * doc/install.texi: Document bootstrap-lto.
328 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
331 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
332 (input_function): Drop them here, if VTA is disabled.
334 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
337 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
339 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
340 ix86_swapped_fp_comparsion_operator instead of
341 ix86_fp_comparison_operator.
343 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
344 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
345 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
346 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
347 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
348 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
350 2010-06-20 Joseph Myers <joseph@codesourcery.com>
353 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
354 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
355 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
356 (decode_cmdline_option): Update for this return value. Set
357 orig_option_with_args_text field. Set arg field for unknown
358 options. Make static.
359 (decode_cmdline_options_to_array): New.
360 (prune_options): Update handling of find_opt return value.
361 * opts.c (read_cmdline_option): Take decoded option. Return void.
362 (read_cmdline_options): Take decoded options.
363 (decode_options): Add parameters for decoded options. Use
364 decode_cmdline_options_to_array. Use decoded options for -O
365 scan. Use integral_argument for -O parameters. Update call to
366 read_cmdline_options.
367 (enable_warning_as_error): Update handling of find_opt return value.
368 * opts.h: Update comment on unknown options.
369 (struct cl_decoded_option): Update comments on opt_index and arg.
370 Add orig_option_with_args_text.
371 (decode_cmdline_option): Remove.
372 (decode_cmdline_options_to_array): Declare.
373 (decode_options): Update prototype.
374 * toplev.c (save_argv): Remove.
375 (save_decoded_options, save_decoded_options_count): New.
376 (read_integral_parameter): Remove.
377 (print_switch_values): Use decoded options.
378 (toplev_main): Don't set save_argv. Update call to decode_options.
379 * toplev.h (read_integral_parameter): Remove.
380 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
382 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
385 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
387 * constraints.md (Pw, Px): New constraints.
388 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
390 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
392 * config/i386/sse.md (fma4modesuffixf4): Removed.
393 (ssemodesuffixf2s): Likewise.
394 (ssemodesuffixf4): Likewise.
395 (ssemodesuffixf2c): Likewise.
396 (ssescalarmodesuffix2s): Likewise.
397 (avxmodesuffixf2c): Likewise.
398 (ssemodesuffix): New.
399 (ssescalarmodesuffix): Likewise.
400 Update patterns with ssemodesuffix and ssescalarmodesuffix.
402 2010-06-19 Philip Herron <herron.philip@googlemail.com>
404 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
406 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
408 * stor-layout.c (debug_rli): Remove unused local variables.
410 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
412 PR rtl-optimization/40900
413 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
414 original expression for later reuse.
415 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
416 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
418 2010-06-18 Anatoly Sokolov <aesok@post.ru>
420 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
421 double_int_fits_in_uhwi_p): Implement as static inline.
422 (double_int_xor): New inline function.
423 (double_int_lrotate, double_int_rrotate, double_int_max,
424 double_int_umax, double_int_smax, double_int_min, double_int_umin,
425 double_int_smin): Declare.
426 (lrotate_double, rrotate_double): Remove declaration.
427 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
428 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
429 (double_int_lrotate, double_int_rrotate, double_int_max,
430 double_int_umax, double_int_smax, double_int_min, double_int_umin,
431 double_int_smin): New function.
432 * fold-const.c (int_const_binop): Clean up, use double_int_*
434 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
435 double_int_* and immed_double_int_const functions.
437 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
439 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
440 * function.c (types_used_by_cur_var_decl): Likewise.
441 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
443 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
445 * tree.h (record_layout_info): Change type of pending_statics field
447 * stor-layout.c (start_record_layout): Store NULL into
449 (debug_rli): Call debug_vec_tree instead of debug_tree.
450 (place_field): Likewise.
451 (finish_record_layout): Likewise.
453 2010-06-18 Alan Modra <amodra@gmail.com>
455 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
457 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
460 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
461 for SET source operand from SET destination operand.
463 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
465 PR rtl-optimization/39871
466 * reload1.c (init_eliminable_invariants): For flag_pic, disable
467 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
468 (function_invariant_p): Rule out a plus of frame or arg pointer with
470 * ira.c (find_reg_equiv_invariant_const): Likewise.
472 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
474 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
475 print_operand_address and puts to output the operand for CONST.
477 2010-06-17 Jakub Jelinek <jakub@redhat.com>
480 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
483 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
485 * v850-protos.h (print_operand): Delete.
486 (print_operand_address): Delete.
487 * v850.h (PRINT_OPERAND): Delete.
488 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
489 (PRINT_OPERAND_ADDRESS): Delete.
490 * v850.c (print_operand_address): Rename to...
491 (v850_print_operand_address): ...this. Make static. Call
493 (print_operand): Rename to...
494 (v850_print_operand): ...this. Make static. Call
495 v850_print_operand_address.
496 (v850_print_operand_punct_valid_p): New function.
497 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
498 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
500 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
502 * config/sh/sh-protos.h (print_operand): Delete.
503 (print_operand_address): Delete.
504 * config/sh/sh.h (PRINT_OPERAND): Delete.
505 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
506 (PRINT_OPERAND_ADDRESS): Delete.
507 * config/sh/sh.c (sh_print_operand_address): Make static.
508 (sh_print_operand): Make static. Call sh_print_operand_address
509 and sh_print_operand.
510 (sh_print_operand_punct_valid_p): New function.
511 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
512 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
514 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
516 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
517 (mcore_print_operand_address): Delete.
518 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
519 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
520 (PRINT_OPERAND_ADDRESS): Delete.
521 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
522 (mcore_print_operand): Make static.
523 (mcore_print_operand_punct_valid_p): New function.
524 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
525 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
527 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
529 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
530 (print_operand_address): Delete.
531 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
532 (PRINT_OPERAND_ADDRESS): Delete.
533 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
535 (m68hc11_print_operand): Make static.
536 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
538 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
540 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
541 (m32r_print_operand_address): Delete.
542 * config/m32r/m32r.h (m32r_punct_chars): Delete.
543 (PRINT_OPERAND): Delete.
544 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
545 (PRINT_OPERAND_ADDRESS): Delete.
546 * config/m32r/m32r.c (m32r_punct_chars): Make static.
547 (m32r_print_operand_address): Make static.
548 (m32r_print_operand): Make static.
549 (m32r_print_operand_punct_valid_p): New function.
550 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
551 (TARGET_PRINT_OPERAND_ADDRESS): Define.
553 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
555 * config/iq2000/iq2000-protos.h (print_operand): Delete.
556 (print_operand_address): Delete.
557 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
558 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
559 (PRINT_OPERAND_ADDRESS): Delete.
560 (iq2000_print_operand_punct): Delete.
561 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
562 (iq2000_print_operand_address): Make static.
563 (iq2000_print_operand): Make static.
564 (iq2000_print_operand_punct_valid_p): New function.
565 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
566 (TARGET_PRINT_OPERAND_ADDRESS): Define.
568 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
570 * config/frv/frv-protos.h (frv_print_operand): Delete.
571 (frv_print_operand_address): Delete.
572 * config/frv/frv.h (PRINT_OPERAND): Delete.
573 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
574 (PRINT_OPERAND_ADDRESS): Delete.
575 * config/frv/frv.c (frv_print_operand_address): Make static.
576 (frv_print_operand): Make static.
577 (frv_print_operand_punct_valid_p): New function.
578 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
579 (TARGET_PRINT_OPERAND_ADDRESS): Define.
581 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
583 * tree.h (vec_member): Declare.
584 * tree.c (vec_member): Define.
586 2010-06-17 Richard Guenther <rguenther@suse.de>
588 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
589 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
591 2010-06-17 Richard Guenther <rguenther@suse.de>
593 * tree-inline.c (declare_return_variable): Remove bogus code.
595 2010-06-17 Richard Guenther <rguenther@suse.de>
597 * gimplify.c (gimplify_bind_expr): Always promote complex
598 and vector variables to registers if possible.
600 2010-06-17 Richard Guenther <rguenther@suse.de>
602 * expr.c (get_inner_reference): Use double_int for bit_offset
605 2010-06-16 DJ Delorie <dj@redhat.com>
607 * common.opt (-fstrict-volatile-bitfields): new.
608 * doc/invoke.texi: Document it.
609 * fold-const.c (optimize_bit_field_compare): For volatile
610 bitfields, use the field's type to determine the mode, not the
612 * expr.c (expand_assignment): Likewise.
613 (get_inner_reference): Likewise.
614 (expand_expr_real_1): Likewise.
615 * expmed.c (store_fixed_bit_field): Likewise.
616 (extract_bit_field_1): Likewise.
617 (extract_fixed_bit_field): Likewise.
619 2010-06-16 Richard Guenther <rguenther@suse.de>
621 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
623 2010-06-16 Douglas B Rupp <rupp@gnat.com>
625 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
626 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
627 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
629 * sdbout.c: Likewise.
630 * vmsdbgout.c: Likewise.
631 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
632 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
633 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
634 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
635 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
636 * dwarf2out.c (dw_fde_struct): New fields
637 dw_fde_vms_{end,begin}_prologue.
638 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
639 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
640 (dwarf2out_vms_end_prologue): New function.
641 (dwarf2out_vms_begin_epilogue): New function.
642 (dw_val_struct): New value dw_val_class_vms_delta.
643 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
644 begin_epilogue for VMS.
645 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
646 new static functions.
647 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
648 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
650 (print_die): New case dw_val_class_vms_delta.
651 (attr_checksum): Likewise.
652 (same_dw_val_p: Likewise.
653 (size_of_die): Likewise.
654 (value_format): Likewise.
655 (output_die): Likewise.
656 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
657 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
658 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
659 dwarf2out_cfi_begin_epilogue
660 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
662 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
664 * config/cris/cris-protos.h (cris_print_operand): Delete.
665 (cris_print_operand_address): Delete.
666 * config/cris/cris.h (PRINT_OPERAND): Delete.
667 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
668 (PRINT_OPERAND_ADDRESS): Delete.
669 * config/cris/cris.c (cris_print_operand_address): Make static.
670 (cris_print_operand): Make static.
671 (cris_print_operand_punct_valid_p): New function.
672 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
673 (TARGET_PRINT_OPERAND_ADDRESS): Define.
675 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
677 * config/arm/arm-protos.h (arm_print_operand): Delete.
678 (arm_print_operand_address): Delete.
679 * config/arm/arm.h (PRINT_OPERAND): Delete.
680 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
681 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
682 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
683 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
684 (arm_print_operand): Make static.
685 (arm_print_operand_punct_valid_p): New function.
686 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
687 (TARGET_PRINT_OPERAND_ADDRESS): Define.
689 2010-06-16 Nick Clifton <nickc@redhat.com>
691 * config/rx/constraints.md (NEGint4): New constraint.
692 * config/rx/rx.md (attr cc): Add set_zsc.
693 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
696 (call_internal): Clobber the cc0 register.
697 (call_value_internal): Likewise.
698 (cstoresi4): Likewise.
701 (addsi3): Add alternative to handle small negative constants.
703 (addsi3): Do not set the O bit in the cc0 register.
707 (andsi3): Reorder alternatives to prefer shorter forms.
710 (negsi2): Note that the cc0 flags are set.
711 (rotlsi3): Note that only the Z and S bits are set in cc0.
714 (subsf3): Use %Q for the MEM operand.
715 (fix_truncsfsi2): Likewise.
716 (floatsisf2): Likewise.
717 (bitset): Remove early clobber from destination.
718 (bitset_in_memory): Likewise.
719 (lrintsf2): Clobber the cc0 register.
720 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
721 (rx_print_operand): Handle %N.
723 2010-06-16 Jan Hubicka <jh@suse.cz>
725 * df-core.c (df_compact_blocks): Free problem_temps vector.
727 2010-06-16 Martin Jambor <mjambor@suse.cz>
729 PR tree-optimization/43905
730 * tree-sra.c: Include tree-inline.h.
731 (create_abstract_origin): Removed.
732 (modify_function): Version the call graph node instead of creating
733 abstract origins and dealing with same_body aliases.
734 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
735 function is versionable.
736 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
738 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
740 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
741 (CHOOSE_DYNAMIC_LINKER): Update.
743 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
745 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
746 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
747 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
750 2010-06-15 Anatoly Sokolov <aesok@post.ru>
752 * target.h (struct asm_out):Add declare_constant_name field.
753 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
754 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
755 * output.h (default_asm_declare_constant_name): Declare.
756 (assemble_label): Update prototype.
757 * varasm.c (assemble_constant_contents): Use
758 targetm.asm_out.declare_constant_name target hook.
759 (assemble_label): Add 'file' argument.
760 (default_asm_declare_constant_name): New function.
761 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
762 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
763 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
765 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
766 * config/darwin.c (darwin_asm_declare_constant_name): New function.
767 (machopic_output_indirection): Update assemble_label argument list.
768 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
769 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
771 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
774 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
775 size_one_node for pointer types. Do not call gmp_cst_to_tree.
777 2010-06-15 Richard Guenther <rguenther@suse.de>
779 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
781 2010-06-15 Paul Brook <paul@codesourcery.com>
783 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
786 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
788 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
789 don't get a vector type for output.
791 2010-06-15 Jakub Jelinek <jakub@redhat.com>
794 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
795 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
796 (LANG_HOOKS_DECLS): Add it.
797 * gimplify.c (omp_notice_variable): Call
798 lang_hooks.decls.omp_report_decl.
800 2010-06-15 Martin Jambor <mjambor@suse.cz>
803 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
804 on the newly dead SSA name.
806 2010-06-15 Alan Modra <amodra@gmail.com>
808 * doc/invoke.texi: Add mcmodel to powerpc options.
809 * configure.ac: Add HAVE_LD_LARGE_TOC test.
810 * configure: Regenerate.
811 * config.in: Regenerate.
812 * config/rs6000/linux64.opt (mcmodel): New.
813 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
814 (TARGET_CMODEL, SET_CMODEL): Define.
815 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
816 select CMODEL_MEDIUM default.
817 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
818 (TARGET_CMODEL): Define default.
819 * config/rs6000/rs6000.c (cmodel): New variable.
820 (rs6000_explicit_options): Add cmodel field.
821 (rs6000_handle_option): Handle -mcmodel.
822 (create_TOC_reference): Add largetoc_reg param. Generate high,
823 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
824 (rs6000_delegitimize_address): Recognise new toc reference rtl
826 (rs6000_legitimize_reload_address): Handle new toc references.
827 (print_operand_address): Handle legitimate_constant_pool_address_p
829 (rs6000_eliminate_indexed_memrefs): Tidy.
830 (rs6000_emit_move): Tweak threshold for inlining constants.
831 Keep rs6000_emit_allocate_stack large stack frame offsets
832 loaded into r0 inline.
833 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
834 (tocrel_base, tocrel_offset): New variables.
835 (toc_relative_expr_p): Set them here.
836 (print_operand_address): Skip over any offset on constant pool address.
837 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
838 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
839 (offsettable_ok_by_alignment): New function.
840 (rs6000_emit_move): Address suitably aligned local symbol_refs
841 relative to the toc pointer for -mcmodel=medium.
842 (legitimate_constant_pool_address_p): Make param const_rtx. Add
843 strict param. Allow lo_sum version of addressing. Verify reg
844 used for -mminimal-toc and -mcmodel != small. Update all callers.
845 * config/rs6000/constraints.md: Update for above change.
846 * config/rs6000/predicates.md: Likewise.
847 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
849 (tls_gd): Split for -mcmodel=medium/large.
850 (tls_gd_high, tls_gd_low): New.
851 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
852 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
853 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
854 (largetoc_high, largetoc_low): New.
855 (cmptf_internal2): Add clobber.
856 * config/rs6000/rs6000-protos.h: Update.
858 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
860 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
861 true if no prefetch is going to be generated for a given group.
862 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
863 estimate the prefetch_count.
864 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
865 prefetch count by considering the unroll_factor and prefetch_mod
866 for is_loop_prefetching_profitable.
868 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
870 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
871 anything if the argument is not a MEM.
873 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
878 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
880 (canonicalize_loop_ivs): Likewise.
882 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
885 * haifa-sched.c (setup_insn_reg_pressure_info,
886 update_register_pressure): Reject debug insns.
887 (ready_sort): Don't setup reg pressure for debug insns.
888 (schedule_insn): Don't update reg pressure for debug insns.
890 2010-06-14 Richard Guenther <rguenther@suse.de>
892 * lto-streamer.c (cached_bp): Remove.
893 (bitpack_delete): Likewise.
894 (bitpack_create): Likewise.
895 (bp_get_next_word): Likewise.
896 (bp_pack_value, bp_unpack_value): Move ...
897 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
899 (struct bitpack_d): Likewise.
900 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
901 New inline functions.
902 * lto-streamer-out.c (lto_output_bitpack): Remove.
903 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
904 (pack_value_fields): Adjust.
905 (lto_write_tree): Likewise.
906 (output_gimple_stmt): Likewise.
907 (output_function): Likewise.
908 * lto-streamer-in.c (input_gimple_stmt): Adjust.
909 (input_function): Likewise.
910 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
911 (lto_input_bitpack): Remove.
912 (lto_materialize_tree): Adjust.
913 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
914 * lto-cgraph.c (lto_output_edge): Adjust.
915 (lto_output_node): Likewise.
916 (lto_output_varpool_node): Likewise.
917 (lto_output_ref): Likewise.
918 (input_node): Likewise.
919 (input_varpool_node): Likewise.
920 (input_ref): Likewise.
921 (input_edge): Likewise.
922 (output_node_opt_summary): Likewise.
923 (input_node_opt_summary): Likewise.
924 * ipa-pure-const.c (pure_const_write_summary): Likewise.
925 (pure_const_read_summary): Likewise.
926 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
927 (ipa_read_indirect_edge_info): Likewise.
928 (ipa_write_node_info): Likewise.
929 (ipa_read_node_info): Likewise.
931 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
934 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
935 (vec_extract_lo_v16hi): Likewise.
936 (vec_extract_lo_v32qi): Likewise.
938 2010-06-14 Jakub Jelinek <jakub@redhat.com>
941 * tree.h (build_call_expr): Don't define as vararg macro, instead
943 * builtins.c (build_call_nofold): Remove.
944 (expand_builtin_int_roundingfn, expand_builtin_pow,
945 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
946 expand_builtin_memset_args, expand_builtin_strcmp,
947 expand_builtin_strncmp, expand_builtin_memory_chk): Use
948 build_call_nofold_loc instead of build_call_nofold.
949 (build_call_expr): New function.
951 PR tree-optimization/44508
952 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
953 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
954 don't eliminate trivially dead stmts.
955 * tree-vrp.c (vrp_finalize): Pass false as last argument
956 to substitute_and_fold.
957 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
958 to substitute_and_fold.
959 * tree-ssa-ccp.c (ccp_finalize): Likewise.
962 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
963 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
964 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
965 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
966 ggc_strdup instead of xstrdup.
968 2010-06-14 Ira Rosen <irar@il.ibm.com>
970 PR tree-optimization/44507
971 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
972 to build initial vector for BIT_AND_EXPR.
973 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
975 2010-06-14 Jakub Jelinek <jakub@redhat.com>
977 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
978 adjust z10prop set_attr.
980 2010-06-13 Jan Hubicka <jh@suse.cz>
982 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
983 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
984 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
985 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
986 datastructure checks into checking asserts.
987 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
988 * tree-ssa-sccvn.c (VN_INFO): Likewise.
989 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
990 df_ref_create_structure): Likewise.
991 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
992 pool_free): Use gcc_checking_assert.
993 * alias.c (get_alias_set): Likewise.
994 * var-tracking.c (variable_htab_free, shared_hash_copy,
995 canonicalize_values_mark, variable_merge_over_cur): Likewise.
996 * lto-streamer.c (bp_unpack_value): Likewise.
998 2010-06-13 Richard Guenther <rguenther@suse.de>
1000 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1001 Do not stream but initialize TYPE_CANONICAL to NULL.
1002 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1003 * gimple.c (gimple_types_compatible_p): Disregard
1004 TYPE_STRUCTURAL_EQUALITY_P.
1005 (gimple_register_type): Use TYPE_CANONICAL as cache.
1006 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1007 before registering common types.
1008 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1009 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1010 * tree.h (TYPE_CANONICAL): Clarify documentation.
1012 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1014 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1015 LIBCALL_VALUE): Remove macros.
1016 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1017 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1018 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1019 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1020 (ia64_function_value): Make static. Handle receiving the function
1021 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1023 2010-06-12 Jan Hubicka <jh@suse.cz>
1025 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1028 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1030 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1032 2010-06-12 Jan Hubicka <jh@suse.cz>
1034 * df-core.c (df_clear_bb_info): New function.
1035 (df_set_blocks): bb_info is always allocated.
1036 (df_get_bb_info): Use block_info_elt_size.
1037 (df_set_bb_info): Likewise.
1038 (df_compact_blocks): Update for new block_info.
1039 (grow_bb_info): New function.
1040 * df-problems.c (df_grow_bb_info): Move to df-core.c
1041 (df_rd_set_bb_info): Remove.
1042 (df_rd_free_bb_info): Do not free block pool.
1043 (df_rd_alloc): Do not create pool, use check for
1044 obstack presence instead of NULL pointer for new blocks.
1045 (df_rd_free): DO not free alloc pool; clear block_info.
1046 (problem_RD): Add size of block info structure.
1047 (df_lr_set_bb_info): Remove.
1048 (df_lr_free_bb_info): Do not free block pool.
1049 (df_lr_alloc): Do not create pool, use check for
1050 obstack presence instead of NULL pointer for new blocks.
1051 (df_lr_free): DO not free alloc pool; clear block_info.
1052 (problem_LR): Add size of block info structure.
1053 (df_live_set_bb_info): Remove.
1054 (df_live_free_bb_info): Do not free block pool.
1055 (df_live_alloc): Do not create pool, use check for
1056 obstack presence instead of NULL pointer for new blocks.
1057 (df_live_free): DO not free alloc pool; clear block_info.
1058 (problem_LIVE): Add size of block info structure.
1059 (problem_CHAIN): Add size of block info structure.
1060 (df_byte_lr_set_bb_info): Remove.
1061 (df_byte_lr_free_bb_info): Do not free block pool.
1062 (df_byte_lr_alloc): Do not create pool, use check for
1063 obstack presence instead of NULL pointer for new blocks.
1064 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1065 (problem_BYTE_LR): Add size of block info structure.
1066 (problem_NOTE): Add size of block info structure.
1067 (df_byte_MD_set_bb_info): Remove.
1068 (df_byte_MD_free_bb_info): Do not free block pool.
1069 (df_byte_MD_alloc): Do not create pool, use check for
1070 obstack presence instead of NULL pointer for new blocks.
1071 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1072 (problem_BD): Add size of block info structure.
1073 * df-scan.c (df_scan_free_internal): Free block pool.
1074 (df_scan_set_bb_info): Remove.
1075 (df_scan_free_bb_info): Check for artificial_defs instead
1076 of bb_info being non-NULL.
1077 (df_scan_alloc): DO not create df_scan_block pool.
1078 (problem_SCAN): Set size of block info.
1079 (df_bb_refs_record): Do not allocate bb_info.
1080 * df.h (df_problem): Add block_info_elt_size.
1081 (struct dataflow): Change block_info to void *.
1082 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1083 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1086 2010-06-12 Jan Hubicka <jh@suse.cz>
1088 PR tree-optimize/44485
1089 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1090 containing use of return value of noreturn function.
1092 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1094 * targhooks.c (default_function_value): Don't use
1095 FUNCTION_OUTGOING_VALUE.
1096 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1097 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1099 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1101 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1102 Add crtfastmath.o to extra_parts.
1103 * config/mips/crtfastmath.c: New.
1104 * config/mips/linux.h (ENDFILE_SPEC): New.
1106 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1108 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1109 old_type in parameter.
1110 (gcc_type_for_value): Update call to gcc_type_for_interval.
1111 (compute_type_for_level_1): Renamed compute_type_for_level.
1112 Update call to gcc_type_for_interval.
1114 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1116 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1117 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1119 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1121 * opts-common.c: Include options.h.
1122 (integral_argument): Move from opts.c.
1123 (decode_cmdline_option): New. Based on read_cmdline_option.
1124 * opts.c (integral_argument): Move to opts-common.c.
1125 (read_cmdline_option): Move most contents to
1126 decode_cmdline_option. Use %qs in diagnostics.
1127 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1128 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1129 decode_cmdline_option): New.
1131 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1134 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1135 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1136 (partiysi2_cmp): Ditto.
1137 (*partiyhi2_cmp): Ditto.
1138 (*parityqi2_cmp): Remove.
1140 2010-06-11 Jan Hubicka <jh@suse.cz>
1142 * bitmap.h (bmp_iter_next_bit): New.
1143 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1145 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1146 Eric Botcazou <ebotcazou@adacore.com>
1148 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1151 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1153 * config/i386/i386.md (unspec): New define_c_enum.
1156 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1158 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1159 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1160 (lazy_hex_fp_value): New function.
1161 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1162 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1164 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1167 * tree-if-conv.c (bb_predicate_s): New struct.
1168 (bb_predicate_p): New.
1169 (bb_has_predicate): New.
1170 (bb_predicate): New.
1171 (set_bb_predicate): New.
1172 (bb_predicate_gimplified_stmts): New.
1173 (set_bb_predicate_gimplified_stmts): New.
1174 (add_bb_predicate_gimplified_stmts): New.
1175 (init_bb_predicate): New.
1176 (free_bb_predicate): New.
1177 (is_predicated): Use bb_predicate.
1178 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1179 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1180 before processing their successors.
1181 (clean_predicate_lists): Removed.
1182 (find_phi_replacement_condition): Use bb_predicate.
1183 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1185 (insert_gimplified_predicates): New.
1186 (combine_blocks): Call insert_gimplified_predicates.
1187 (tree_if_conversion): Call free_bb_predicate instead of
1188 clean_predicate_lists.
1190 2010-10-11 Paul Brook <paul@codesourcery.com>
1192 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1193 * config/arm/arm.c (all_architectures): Change v7e-m default to
1195 * config/arm/arm-cores.def: Add cortex-m4.
1196 * config/arm/arm-tune.md: Regenerate.
1198 2010-06-11 Jan Hubicka <jh@suse.cz>
1200 * ipa-pure-const.c (special_builtlin_state): New function.
1201 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1202 (propagate_pure_const): Use it.
1204 2010-06-11 Jan Hubicka <jh@suse.cz>
1206 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1207 (df_live_alloc): Initialize df_live_scratch when initializing
1209 (df_live_transfer_function): Update uses of df_live_scratch.
1210 (df_live_free): Free problem_data; clear df_live_scratch before
1211 releasing the obstack.
1212 (df_md_free): Free problem data.
1214 2010-06-11 Jan Hubicka <jh@suse.cz>
1216 * doc/invoke.texi (Wsuggest-attribute): Document.
1217 (Wmissing-noreturn): Remove.
1218 * ipa-pure-const.c (warn_function_noreturn): New function.
1219 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1220 warn_missing_noreturn.
1221 * common.opt (Wsuggest-attribute=noreturn): New.
1222 * tree-flow.h (warn_function_noreturn): Declare.
1223 * tree-cfg.c (execute_warn_function_noreturn): Use
1224 warn_function_noreturn.
1225 (gate_warn_function_noreturn): New.
1226 (pass_warn_function_noreturn): Update.
1228 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1230 * c-typeck.c (handle_warn_cast_qual): Add loc
1231 parameter. Improve warning message.
1232 (build_c_cast): Pass location to handle_warn_cast_qual.
1234 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1236 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1237 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1239 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1241 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1243 Fix bootstap on mips
1244 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1247 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1249 * system.h (helper_const_non_const_cast): New inline for
1251 (CONST_CAST2): For gcc version <= 4.0 use
1252 new helper to do const/non-const casting.
1254 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1256 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1257 * Makefile.in (OBJS-common): Include insn-enums.o.
1258 (insn-enums.o): New rule.
1259 (simple_generated_c): Add insn-enums.c.
1260 (build/genenums.o): New rule.
1261 (genprogmd): Add "enums".
1262 * genconstants.c (print_enum_type): Declare a C string array
1264 * genenums.c: New file.
1265 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1266 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1267 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1269 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1271 * doc/md.texi (define_enum_attr): Document.
1272 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1273 * read-md.h (lookup_enum_type): Declare.
1274 * read-md.c (lookup_enum_type): New function.
1275 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1276 * genattrtab.c (attr_desc): Add an enum_name field.
1277 (evaluate_eq_attr): Take the associated attribute as argument.
1278 Get the enum prefix from the enum_name field, if defined.
1279 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1280 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1281 (add_attr_value): New function, split out from...
1282 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1283 (write_test_expr): Pass attr to evaluate_eq_attr.
1284 (write_attr_get): Use the enum_name as the enum tag, if defined.
1285 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1286 (find_attr): Initialize enum_name.
1287 (main): Handle DEFINE_ENUM_ATTR.
1288 * gensupport.c (process_rtx): Likewise.
1289 * config/mips/mips.h (mips_tune_attr): Delete.
1290 * config/mips/mips.md (cpu): Use define_attr_enum.
1292 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1294 * doc/md.texi (define_c_enum, define_enum): Document.
1295 * read-md.h (md_constant): Add a parent_enum field.
1296 (enum_value, enum_type): New structures.
1297 (upcase_string, traverse_enum_types): Declare.
1298 * read-md.c (enum_types): New variable.
1299 (upcase_string, add_constant): New functions.
1300 (handle_constants): Don't create the hash table here.
1302 (traverse_md_constants): Don't check for a null md_constants.
1303 (decimal_string, handle_enum, traverse_enum_types): New functions.
1304 (read_md_files): Initialize md_constants and md_enums.
1305 * genconstants.c (print_md_constant): Ignore info argument.
1306 Only print constants that belong to no enum.
1307 (print_enum_type): New function.
1308 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1309 for each defined enum type.
1310 * config/mips/mips.md (processor): New define_enum.
1311 (unspec): New define_c_enum.
1312 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1313 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1314 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1315 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1316 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1317 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1318 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1319 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1320 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1321 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1322 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1323 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1324 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1325 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1326 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1327 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1328 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1329 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1330 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1331 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1332 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1333 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1334 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1335 (UNSPEC_RDDSP): Move to mips-dsp.md.
1336 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1337 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1338 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1339 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1340 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1341 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1342 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1343 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1344 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1345 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1346 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1347 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1348 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1349 Moved to mips-dspr2.md.
1350 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1351 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1352 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1353 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1354 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1355 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1356 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1357 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1358 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1359 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1360 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1361 UNSPEC_LOONGSON_PSADBH)
1362 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1363 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1364 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1365 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1366 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1367 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1368 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1369 (cpu): Update comment.
1370 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1371 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1372 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1373 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1374 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1375 UNSPEC_LOONGSON_PCMPEQ)
1376 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1377 UNSPEC_LOONGSON_PINSR_0)
1378 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1379 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1380 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1381 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1382 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1383 UNSPEC_LOONGSON_PSADBH)
1384 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1385 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1386 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1387 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1388 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1389 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1390 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1391 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1392 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1393 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1394 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1395 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1396 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1397 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1398 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1399 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1400 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1401 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1402 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1403 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1404 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1405 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1406 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1407 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1408 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1409 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1410 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1411 (UNSPEC_RDDSP): Moved from mips.md.
1412 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1413 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1414 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1415 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1416 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1417 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1418 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1419 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1420 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1421 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1422 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1423 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1424 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1425 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1426 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1427 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1428 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1429 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1430 (UNSPEC_SCC): Moved from mips.md.
1431 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1432 "processor_type" to "processor".
1433 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1434 * config/mips/mips.h (processor_type): Delete.
1435 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1436 "processor_type" to "processor".
1438 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1440 * configure.ac (tm_include_list): Add insn-constants.h.
1441 * configure: Regenerate.
1442 * Makefile.in (GTM_H): Move insn-constants.h here from...
1444 * mkconfig.sh: Remove special handling for insn-constants.h.
1446 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1448 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1449 (BUILD_MD): ...this new variable.
1450 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1451 that include the old contents of simple_generated_h and
1453 (simple_generated_h, simple_generated_c): Include them. Add
1455 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1456 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1457 Remove these dependencies from the main rule and include
1458 insn-conditions.md in the command line only if it appears
1459 in the dependency list.
1460 (insn-constants.h, s-constants): Delete.
1461 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1463 (build/genmddeps.o): Likewise.
1464 (genprogrtl): New variable that contains everything from genprogmd
1465 except mddeps and constants.
1466 (genprogmd): Redefine in terms of genprogrtl. Make these programs
1467 depend on $(BUILD_MD)
1468 (genprog): New variable. Make these programs depend on
1470 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1471 (main): Use read_md_files instead of init_rtx_reader_args.
1472 * genconstants.c: As for genmddeps.c.
1473 * read-md.h (read_skip_construct): Declare.
1474 * read-md.c (read_skip_construct): New function.
1475 (handle_file): Allow a null handle_directive, skipping the
1477 (parse_include): Update the comment accordingly.
1479 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1481 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1482 * genmddeps.c: Include read-md.h.
1483 (main): Call init_rtx_reader_args instead of init_md_reader_args.
1484 * genattr.c (main): Likewise.
1485 * genattrtab.c (main): Likewise.
1486 * genautomata.c (main): Likewise.
1487 * gencodes.c (main): Likewise.
1488 * genconditions.c (main): Likewise.
1489 * genconfig.c (main): Likewise.
1490 * genconstants.c (main): Likewise.
1491 * genemit.c (main): Likewise.
1492 * genextract.c (main): Likewise.
1493 * genflags.c (main): Likewise.
1494 * genopinit.c (main): Likewise.
1495 * genoutput.c (main): Likewise.
1496 * genpeep.c (main): Likewise.
1497 * genrecog.c (main): Likewise.
1498 * genpreds.c (main): Likewise.
1499 * gensupport.h (in_fname): Move to read-md.h.
1500 (init_md_reader_args_cb): Rename to...
1501 (init_rtx_reader_args_cb): ...this and return a bool.
1502 (init_md_reader_args): Rename to...
1503 (init_rtx_reader_args): ...this and return a bool.
1504 (include_callback): Move to read-md.h.
1505 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1506 (file_name_list, first_dir_md_include): Move to read-md.c
1507 (first_bracket_include): Delete unused variable.
1508 (last_dir_md_include): Move to read-md.c.
1509 (process_include): Delete, moving code to read-md.c:handle_include.
1510 (process_rtx): Don't handle INCLUDE.
1511 (save_string): Delete.
1512 (rtx_handle_directive): New function.
1513 (init_md_reader_args_cb): Rename to...
1514 (init_rtx_reader_args_cb): ...this and return a boolean success value.
1516 (init_md_reader_args): Rename to...
1517 (init_rtx_reader_args): ...this and return a boolean success value.
1518 * rtl.def (INCLUDE): Delete.
1519 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
1521 * read-rtl.c (read_conditions): Don't gobble ')' here.
1522 (read_mapping): Likewise.
1523 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
1524 Handle top-level non-rtx constructs here rather than in read_rtx_1.
1525 Store the whole queue in *X. Remove call to init_md_reader.
1526 (read_rtx_1): Rename to...
1527 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
1528 Don't handle top-level non-rtx constructs here. Don't handle (nil)
1530 (read_nested_rtx): New function. Handle (nil) here rather than
1532 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
1534 * read-md.h (directive_handler_t): New type.
1535 (in_fname, include_callback): Moved from read-md.h.
1536 (read_constants, init_md_reader): Delete.
1537 (read_md_files): Declare.
1538 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1539 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1541 (read_constants): Rename to...
1542 (handle_constants): ...this. Don't gobble ')' here.
1543 (handle_include, handle_file, handle_toplevel_file)
1544 (parse_include): New functions, mostly taken from gensupport.c.
1545 (init_md_reader): Subsume into...
1546 (read_md_files): ...this new function.
1548 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1550 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1551 (unread_char): Decrement read_md_lineno after putting back '\n'.
1552 * read-md.c (fatal_with_file_and_line): Push back any characters
1553 that we decide not to add to the context.
1554 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
1555 fatal_expected_char in cases where '/' ends a line (for example).
1556 (read_name): Don't increment read_md_lineno here.
1557 (read_escape): Likewise.
1558 (read_quoted_string): Likewise.
1559 (read_braced_string): Likewise.
1561 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1563 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1564 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1565 * genconstants.c: Include read-md.h.
1566 * read-rtl.c (md_constants): Move to read-md.c.
1567 (md_name): Move to read-md.h.
1568 (initialize_iterators): Use leading_string_hash instead of def_hash
1569 and leading_string_eq_p instead of def_name_eq_p.
1570 (read_name): Move to read-md.c.
1571 (def_hash, def_name_eq_p): Delete.
1572 (read_constants, traverse_md_constants): Move to read-md.c.
1573 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1574 * read-md.h: Include hashtab.h.
1575 (md_name): Moved from read-rtl.c.
1576 (md_constant): Moved from read-md.h.
1577 (leading_string_hash, leading_string_eq_p, read_name)
1578 (read_constants, traverse_md_constants): Declare.
1579 * read-md.c (md_constants): Moved from read-rtl.c.
1580 (leading_string_hash, leading_string_eq_p): New functions.
1581 (read_name, read_constants, traverse_md_constants): Moved from
1584 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1586 * read-rtl.c (md_name): New structure.
1587 (read_name): Take an md_name instead of a buffer pointer.
1588 Use the "string" field instead of strcpy when expanding constants.
1589 (read_constants): Remove the tmp_char argument. Update the calls
1590 to read_name, using two local name buffers instead of the tmp_char
1591 argument. Merge the constant-creation code.
1592 (read_conditions): Remove the tmp_char argument. Update the calls
1593 to read_name, using a local name buffer instead of the tmp_char
1595 (read_mapping): Replace tmp_char variable with a local name buffer.
1596 Update the calls to read_name.
1597 (read_rtx_1): Likewise. Update the calls to read_constants and
1600 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1602 * Makefile.in (build/read-md.o): Depend on errors.h.
1603 * read-md.h (error_with_line): Declare.
1604 * read-md.c: Include errors.h.
1605 (message_with_line_1): New function, extracted from...
1606 (message_with_line): ...here.
1607 (error_with_line): New function.
1608 * genattrtab.c: If a call to message_with_line is followed by
1609 "have_error = 1;", replace both statements with a call to
1611 * genoutput.c: Likewise.
1612 * genpreds.c: Likewise.
1613 * genrecog.c: If a call to message_with_line is followed by
1614 "error_count++;", replace both statements with a call to
1616 (errorcount): Delete.
1617 (main): Don't check it.
1618 * gensupport.c: If a call to message_with_line is followed by
1619 "errors = 1;", replace both statements with a call to error_with_line.
1621 (process_define_cond_exec): Check have_error instead of errors.
1622 (init_md_reader_args_cb): Likewise. Don't set errors.
1624 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1626 * read-md.h (read_md_file): Declare.
1627 (read_char, unread_char): New functions.
1628 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1629 (read_quoted_string, read_string): Remove FILE * argument.
1630 * read-md.c (read_md_file): New variable.
1631 (read_md_filename, read_md_lineno): Update comments and remove
1632 unnecessary initialization.
1633 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1634 (read_escape, read_quoted_string, read_braced_string, read_string):
1635 Remove FILE * argument. Update calls accordingly, using read_char
1636 and unread_char instead of getc and ungetc.
1637 * rtl.h (read_rtx): Remove FILE * argument.
1638 * read-rtl.c (iterator_group): Remove FILE * argument from
1640 (iterator_traverse_data): Remove "infile" field.
1641 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
1642 (add_mapping, read_name, read_constants, read_conditions)
1643 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
1644 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
1645 Remove file arguments from all calls, using read_char and unread_char
1646 instead of getc and ungetc.
1647 * gensupport.c (process_include): Preserve read_md_file around
1648 the include. Set read_md_file to the handle of the included file.
1649 Update call to read_rtx.
1650 (init_md_reader_args_cb): Set read_md_file to the handle of the file
1651 and remove local FILE *. Update calls to read_rtx.
1653 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1655 * read-md.h (read_rtx_lineno): Rename to...
1656 (read_md_lineno): ...this.
1657 (read_rtx_filename): Rename to...
1658 (read_md_filename): ...this.
1659 (copy_rtx_ptr_loc): Rename to...
1660 (copy_md_ptr_loc): ...this.
1661 (print_rtx_ptr_loc): Rename to...
1662 (print_md_ptr_loc): ...this.
1663 * read-md.c: Likewise. Update references after renaming.
1664 (string_obstack): Replace RTL with MD in comment.
1665 (set_rtx_ptr_loc): Rename to...
1666 (set_md_ptr_loc): ...this.
1667 (get_rtx_ptr_loc): Rename to...
1668 (get_md_ptr_loc): ...this.
1669 * genconditions.c: Update references after renaming.
1670 * genemit.c: Likewise.
1671 * genoutput.c: Likewise.
1672 * genpreds.c: Likewise.
1673 * gensupport.c: Likewise.
1674 * read-rtl.c: Likewise.
1676 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1678 * Makefile.in (READ_MD_H): New variable.
1679 (BUILD_RTL): Add build/read-md.o.
1680 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
1681 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1682 (build/genattrtab.o, build/genconditions.o build/genemit.o)
1683 (build/genextract.o, build/genflags.o, build/genoutput.o)
1684 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
1685 (build/read-md.o): New rule.
1686 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
1687 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
1688 * coretypes.h: ...here.
1689 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
1690 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
1691 * genattr.c: Include read-md.h.
1692 * genattrtab.c: Likewise.
1693 * genconditions.c: Likewise.
1694 * genemit.c: Likewise.
1695 * genextract.c: Likewise.
1696 * genflags.c: Likewise.
1697 * genoutput.c: Likewise.
1698 * genpreds.c: Likewise.
1699 * genrecog.c: Likewise.
1700 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1701 (join_c_conditions, print_c_condition, read_rtx_filename)
1702 (read_rtx_lineno): Move to read-md.h.
1703 * read-rtl.c: Include read-md.h.
1704 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
1705 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
1706 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
1707 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
1708 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1709 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
1710 (read_braced_string, read_string): Move to read-md.c.
1711 (read_rtx): Move some initialization to init_md_reader and call
1712 init_md_reader here.
1713 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
1715 * gensupport.c: Include read-md.h.
1716 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
1717 * read-md.h, read-md.c: New files.
1719 2010-06-10 Anatoly Sokolov <aesok@post.ru>
1721 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1722 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1723 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
1724 * config/moxie/moxie.c (moxie_function_value): Make static.
1725 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
1726 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1728 2010-06-10 Martin Jambor <mjambor@suse.cz>
1730 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
1731 * dbgcnt.def (tree_sra): New counter.
1732 * tree-sra.c: Include dbgcnt.h.
1733 (gate_intra_sra): Check tree_sra debug counter.
1735 2010-06-10 Martin Jambor <mjambor@suse.cz>
1737 PR tree-optimization/44258
1738 * tree-sra.c (build_access_subtree): Return false iff there is a
1740 (build_access_trees): Likewise.
1741 (analyze_all_variable_accesses): Disqualify candidates if
1742 build_access_trees returns true for them.
1744 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
1747 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
1748 tail-recurse into canonical node. Fast-forward over
1749 non-canonical VALUEs.
1751 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
1754 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
1755 (*addsi_1_zext) <TYPE_LEA>: Likewise.
1756 (add lea splitter): Likewise.
1757 (add_zext lea splitter): Likewise.
1759 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1761 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
1763 2010-06-10 Jan Hubicka <jh@suse.cz>
1765 * df-problems.c (df_live_problem_data): Add live_bitmaps.
1766 (df_live_alloc): Initialize problem data and live_osbtacks.
1767 (df_live_finalize): Remove obstack, problem data; do not
1769 (df_live_top_dump, df_live_bottom_dump): Do not dump old
1770 data when not allocated.
1771 (df_live_verify_solution_start): Do not allocate problem data.
1772 (df_live_verify_solution_end): Check if out is allocated.
1773 (struct df_md_problem_data): New structure.
1774 (df_md_alloc): Allocate problem data.
1775 (df_md_free): Free problem data; do not clear bitmaps.
1777 2010-06-10 Jan Beulich <jbeulich@novell.com>
1780 * configure.ac: Replace $() with ${} when intending to expand
1781 variables rather than invoking commands.
1782 * configure: Re-generate.
1784 2010-06-10 Jan Hubicka <jh@suse.cz>
1786 PR rtl-optimization/44460
1787 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1788 TYPE_NEEDS_CONSTRUCTING sanity check.
1790 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1792 * doc/include/fdl.texi: Move to GFDL version 1.3.
1794 * doc/cpp.texi: Move to GFDL version 1.3.
1795 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
1796 * doc/gccint.texi: Move to GFDL version 1.3.
1797 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
1798 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
1799 * doc/invoke.texi: Move to GFDL version 1.3.
1801 2010-06-09 Jan Hubicka <jh@suse.cz>
1803 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
1805 (propagate) ... here; swap the order.
1807 2010-06-09 Jan Hubicka <jh@suse.cz>
1809 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
1810 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
1811 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
1812 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
1814 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
1816 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
1817 Do not the gather memory reference in the outer loop if the step
1820 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
1822 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
1823 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
1824 8 to 4. Minor change of the related comments.
1826 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1828 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1829 the scev analysis when the variable is not used outside the loop
1830 in a close phi node: call compute_overall_effect_of_inner_loop.
1832 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1834 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1835 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1836 (build_sese_conditions_before): Renamed call to single_pred_cond.
1837 (build_sese_conditions_after): Same.
1839 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1841 * graphite-poly.h: Fix comments and indentation.
1842 * graphite-sese-to-poly.c: Same.
1843 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1844 * tree-chrec.c: Fix comments and indentation.
1845 (tree-ssa-loop-niter.c): Same.
1847 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
1849 PR rtl-optimization/42461
1850 * dce.c (deletable_insn_p): Return true for const or pure calls again.
1851 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
1853 2010-06-09 Jan Hubicka <jh@suse.cz>
1855 * bitmap.c (bitmap_and): Walk array forward.
1856 (bitmap_and_compl_into): Likewise.
1857 (bitmap_xor): Likewise.
1858 (bitmap_xor_into): Likewise.
1859 (bitmap_equal_p): Likewise.
1860 (bitmap_intersect_p): Likewise.
1861 (bitmap_intersect_compl_p): Likewise.
1862 (bitmap_ior_and_into): Likewise.
1863 (bitmap_elt_copy): Likewise.
1864 (bitmap_and_compl): Likewise.
1865 (bitmap_elt_ior): Likewise.
1867 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
1869 * opts-common.c (prune_options): Ensure replacement argv array
1870 is correctly terminated by a NULL entry.
1872 2010-06-09 Jan Hubicka <jh@suse.cz>
1874 * cgraph.h (varpool_first_static_initializer,
1875 varpool_next_static_initializer): Make checking only when
1877 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
1878 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
1879 gcc_assert to gcc_checking_assert.
1880 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
1881 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
1882 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
1883 op_iter_init_phiuse, op_iter_init_phidef,
1884 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
1885 gcc_checking_assert.
1886 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
1887 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
1888 partition_is_global, live_on_entry, live_on_exit,
1889 live_merge_and_clear): Likewise.
1890 * system.h (gcc_checking_assert): New macro.
1891 * gimple.h (set_bb_seq): Use gcc_checking_assert.
1893 2010-06-09 Jason Merrill <jason@redhat.com>
1895 * Makefile.in (TAGS): Collect tags info from c-family.
1897 2010-06-09 Jan Hubicka <jh@suse.cz>
1899 * gimple.h (gcc_gimple_checking_assert): New macro.
1900 (gimple_set_def_ops, gimple_set_use_ops,
1901 gimple_set_vuse, gimple_set_vdef,
1902 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
1903 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
1904 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
1905 gimple_asm_output_op, gimple_asm_output_op_ptr,
1906 gimple_asm_set_output_op, gimple_asm_clobber_op,
1907 gimple_asm_set_clobber_op, gimple_asm_label_op,
1908 gimple_asm_set_label_op, gimple_try_set_kind,
1909 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
1910 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
1911 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
1912 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
1913 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
1914 gimple_omp_for_set_initial, gimple_omp_for_final,
1915 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
1916 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
1917 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
1918 conditional with ENABLE_GIMPLE_CHECKING.
1919 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
1921 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
1923 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
1924 (get_computation_cost_at): Use it.
1925 (determine_use_iv_cost_condition): Likewise.
1926 (determine_iv_cost): Likewise.
1928 2010-06-09 Richard Guenther <rguenther@suse.de>
1930 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
1933 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
1935 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
1937 2010-06-09 Martin Jambor <mjambor@suse.cz>
1939 PR tree-optimization/44423
1940 * tree-sra.c (dump_access): Dump also grp_assignment_read.
1941 (analyze_access_subtree): Pass negative allow_replacements to children
1942 if the current type is scalar.
1944 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
1947 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
1948 * doc/plugins.texi (Plugin license check): Update information
1949 on type of plugin_is_GPL_compatible.
1950 * Makefile.in (PLUGINCC): Define as $(COMPILER).
1951 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
1953 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
1955 * config/arm/arm.c (thumb2_reorg): New function.
1956 (arm_reorg): Call it.
1957 * config/arm/thumb2.md (define_peephole2 for flag clobbering
1958 arithmetic operations): Delete.
1960 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
1963 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
1966 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
1969 * gcc-plugin.h: Encapsulate all declarations in extern "C".
1971 2010-06-08 Jan Hubicka <jh@suse.cz>
1973 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
1974 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
1976 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
1978 PR tree-optimization/39874
1980 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
1982 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
1983 same_bool_result_p): New.
1984 (and_var_with_comparison, and_var_with_comparison_1,
1985 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
1986 (or_var_with_comparison, or_var_with_comparison_1,
1987 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
1988 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
1989 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
1990 of combine_comparisons.
1991 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
1993 2010-06-08 Anatoly Sokolov <aesok@post.ru>
1995 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1996 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1997 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
1998 pdp11_function_value_regno_p): New functions.
1999 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2000 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2002 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2004 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2005 Thumb-2 in the MINUS case.
2007 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2009 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2011 * doc/gty.texi (GTY Options): Document typed GC allocation and
2012 variable_size GTY option.
2014 * ggc-internal.h: New.
2016 * ggc.h: Update copyright year.
2017 (digit_string): Move to stringpool.c.
2018 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2019 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2020 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2021 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2022 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2023 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2024 (ggc_force_collect, ggc_get_size, ggc_statistics)
2025 (ggc_print_common_statistics): Move to ggc-internal.h.
2026 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2027 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2028 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2029 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2030 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2031 (ggc_alloc_zone_pass_stat): Remove.
2032 (ggc_internal_alloc_stat, ggc_internal_alloc)
2033 (ggc_internal_cleared_alloc_stat): New.
2034 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2035 (ggc_internal_vec_alloc_stat)
2036 (ggc_internal_cleared_vec_alloc_stat)
2037 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2038 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2039 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2040 (ggc_cleared_alloc_ptr_array_two_args): New.
2041 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2042 (ggc_splay_alloc): Change the type of the first argument to
2044 (ggc_alloc_string): Make macro.
2045 (ggc_alloc_string_stat): New.
2046 (ggc_strdup): Redefine.
2047 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2048 (ggc_alloc_rtvec_sized): New.
2049 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2050 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2051 (ggc_internal_cleared_alloc_zone_stat)
2052 (ggc_internal_zone_alloc_stat)
2053 (ggc_internal_zone_cleared_alloc_stat)
2054 (ggc_internal_zone_vec_alloc_stat)
2055 (ggc_alloc_zone_rtx_def_stat)
2056 (ggc_alloc_zone_tree_node_stat)
2057 (ggc_alloc_zone_cleared_tree_node_stat)
2058 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2060 * ggc-common.c: Include ggc-internal.h.
2061 (ggc_internal_cleared_alloc_stat): Rename from
2062 ggc_alloc_cleared_stat.
2063 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2064 (ggc_calloc): Remove.
2065 (ggc_cleared_alloc_htab_ignore_args): New.
2066 (ggc_cleared_alloc_ptr_array_two_args): New.
2067 (ggc_splay_alloc): Add obj_type parameter.
2068 (init_ggc_heuristics): Formatting fixes.
2070 * ggc-none.c: Update copyright year.
2071 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2072 (ggc_alloc_cleared_stat): Rename to
2073 ggc_internal_cleared_alloc_stat.
2074 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2076 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2077 Remove references to ggc_alloc in comments.
2078 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2079 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2080 (new_ggc_zone, destroy_ggc_zone): Remove.
2081 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2083 * ggc-zone.c: Include ggc-internal.h. Remove references to
2084 ggc_alloc in comments.
2085 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2086 (ggc_internal_alloc_zone_pass_stat): New.
2087 (ggc_internal_cleared_alloc_zone_stat): New.
2088 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2089 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2090 (new_ggc_zone, destroy_ggc_zone): Remove.
2092 * stringpool.c: Update copyright year. Include ggc-internal.h
2093 (digit_vector): Make static.
2094 (digit_string): Moved from ggc.h.
2095 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2096 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2098 * Makefile.in (GGC_INTERNAL_H): New.
2099 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2100 $(GGC_INTERNAL_H) to dependencies.
2102 * gentype.c: Update copyright year.
2103 (walk_type): Accept variable_size GTY option.
2104 (USED_BY_TYPED_GC_P): New macro.
2105 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2106 whitespace at the end of strings.
2107 (get_type_specifier, variable_size_p): New functions.
2108 (alloc_quantity, alloc_zone): New enums.
2109 (write_typed_alloc_def): New function.
2110 (write_typed_struct_alloc_def): Likewise.
2111 (write_typed_typed_typedef_alloc_def): Likewise.
2112 (write_typed_alloc_defns): Likewise.
2113 (output_typename, write_splay_tree_allocator_def): Likewise.
2114 (write_splay_tree_allocators): Likewise.
2115 (main): Call write_typed_alloc_defns and
2116 write_splay_tree_allocators.
2118 * lto-streamer.h (lto_file_decl_data_ptr): New.
2120 * passes.c (order): Define using cgraph_node_ptr.
2122 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2125 * gimple.h (union gimple_statement_d): Likewise.
2127 * rtl.h (struct rtx_def): Likewise.
2128 (struct rtvec_def): Likewise.
2130 * tree.h (union tree_node): Likewise.
2132 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2134 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2136 * tree-scalar-evolution.c (scev_initialize): Likewise.
2138 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2140 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2142 * omp-low.c (lower_omp_critical): Likewise.
2144 * bitmap.h (struct bitmap_head_def): Update comment to not
2145 reference ggc_alloc.
2147 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2149 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2151 * ipa-prop.c (duplicate_ggc_array): Rename to
2152 duplicate_ipa_jump_func_array. Use typed GC allocation.
2153 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2155 * gimple.c (gimple_alloc_stat): Use
2156 ggc_alloc_cleared_gimple_statement_d_stat.
2158 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2160 * tree.c (make_node_stat): Use
2161 ggc_alloc_zone_cleared_tree_node_stat.
2162 (make_tree_vec_stat): Likewise.
2163 (build_vl_exp_stat): Likewise.
2164 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2165 (make_tree_binfo_stat): Likewise.
2166 (tree_cons_stat): Likewise.
2168 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2169 (shallow_copy_rtx_stat): Likewise.
2170 (make_node_stat): Likewise.
2172 * lto-symtab.c: Fix comment.
2174 * tree-cfg.c (create_bb): Update comment to not reference
2176 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2178 * varpool.c (varpool_node): Use typed GC allocation.
2179 (varpool_extra_name_alias): Likewise.
2181 * varasm.c (emutls_decl): Likewise.
2182 (get_unnamed_section): Likewise.
2183 (get_noswitch_section): Likewise.
2184 (get_section): Likewise.
2185 (get_block_for_section): Likewise.
2186 (build_constant_desc): Likewise.
2187 (create_constant_pool): Likewise.
2188 (force_const_mem): Likewise.
2190 * tree.c (build_vl_exp_stat): Likewise.
2191 (build_real): Likewise.
2192 (build_string): Likewise.
2193 (decl_debug_expr_insert): Likewise.
2194 (decl_value_expr_insert): Likewise.
2195 (type_hash_add): Likewise.
2196 (build_omp_clause): Likewise.
2198 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2200 * tree-ssa.c (init_tree_ssa): Likewise.
2202 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2204 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2206 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2208 * tree-ssa-alias.c (get_ptr_info): Likewise.
2210 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2212 * tree-phinodes.c (allocate_phi_node): Likewise.
2214 * tree-iterator.c (tsi_link_before): Likewise.
2215 (tsi_link_after): Likewise.
2217 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2219 * tree-dfa.c (create_var_ann): Likewise.
2221 * tree-cfg.c (create_bb): Likewise.
2223 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2224 (general_init): Likewise.
2226 * stringpool.c (stringpool_ggc_alloc): Likewise.
2227 (gt_pch_save_stringpool): Likewise.
2229 * sese.c (if_region_set_false_region): Likewise.
2231 * passes.c (do_per_function_toporder): Likewise.
2233 * optabs.c (set_optab_libfunc): Likewise.
2234 (set_conv_libfunc): Likewise.
2236 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2238 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2239 (input_eh_region): Likewise.
2240 (input_eh_lp): Likewise.
2241 (make_new_block): Likewise.
2242 (unpack_ts_real_cst_value_fields): Likewise.
2244 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2246 * lto-cgraph.c (input_node_opt_summary): Likewise.
2248 * loop-init.c (loop_optimizer_init): Likewise.
2250 * lambda.h (lambda_vector_new): Likewise.
2252 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2254 * ira.c (update_equiv_regs): Likewise.
2256 * ipa.c (cgraph_node_set_new): Likewise.
2257 (cgraph_node_set_add): Likewise.
2258 (varpool_node_set_new): Likewise.
2259 (varpool_node_set_add): Likewise.
2261 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2262 (duplicate_ipa_jump_func_array): Likewise.
2263 (ipa_read_node_info): Likewise.
2265 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2267 * integrate.c (get_hard_reg_initial_val): Likewise.
2269 * gimple.c (gimple_alloc_stat): Likewise.
2270 (gimple_build_omp_for): Likewise.
2271 (gimple_seq_alloc): Likewise.
2272 (gimple_copy): Likewise.
2274 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2275 (gsi_insert_after_without_update): Likewise.
2277 * function.c (add_frame_space): Likewise.
2278 (insert_temp_slot_address): Likewise.
2279 (assign_stack_temp_for_type): Likewise.
2280 (allocate_struct_function): Likewise.
2281 (types_used_by_var_decl_insert): Likewise.
2283 * except.c (init_eh_for_function): Likewise.
2284 (gen_eh_region): Likewise.
2285 (gen_eh_region_catch): Likewise.
2286 (gen_eh_landing_pad): Likewise.
2287 (add_call_site): Likewise.
2289 * emit-rtl.c (get_mem_attrs): Likewise.
2290 (get_reg_attrs): Likewise.
2291 (start_sequence): Likewise.
2292 (init_emit): Likewise.
2294 * dwarf2out.c (new_cfi): Likewise.
2295 (queue_reg_save): Likewise.
2296 (dwarf2out_frame_init): Likewise.
2297 (new_loc_descr): Likewise.
2298 (find_AT_string): Likewise.
2299 (new_die): Likewise.
2300 (add_var_loc_to_decl): Likewise.
2301 (clone_die): Likewise.
2302 (clone_as_declaration): Likewise.
2303 (break_out_comdat_types): Likewise.
2304 (new_loc_list): Likewise.
2305 (loc_descriptor): Likewise.
2306 (add_loc_descr_to_each): Likewise.
2307 (add_const_value_attribute): Likewise.
2308 (tree_add_const_value_attribute): Likewise.
2309 (add_comp_dir_attribute): Likewise.
2310 (add_name_and_src_coords_attributes): Likewise.
2311 (lookup_filename): Likewise.
2312 (store_vcall_insn): Likewise.
2313 (dwarf2out_init): Likewise.
2315 * dbxout.c (dbxout_init): Likewise.
2317 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2319 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2321 * config/score/score7.c (score7_output_external): Likewise.
2323 * config/score/score3.c (score3_output_external): Likewise.
2325 * config/s390/s390.c (s390_init_machine_status): Likewise.
2327 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2328 (rs6000_init_machine_status): Likewise.
2329 (output_toc): Likewise.
2331 * config/pa/pa.c (pa_init_machine_status): Likewise.
2332 (get_deferred_plabel): Likewise.
2334 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2336 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2338 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2340 * config/mep/mep.c (mep_init_machine_status): Likewise.
2341 (mep_note_pragma_flag): Likewise.
2343 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2345 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2347 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2349 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2350 (i386_pe_maybe_record_exported_symbol): Likewise.
2352 * config/i386/i386.c (get_dllimport_decl): Likewise.
2353 (ix86_init_machine_status): Likewise.
2354 (assign_386_stack_local): Likewise.
2356 * config/frv/frv.c (frv_init_machine_status): Likewise.
2358 * config/darwin.c (machopic_indirection_name): Likewise.
2360 * config/cris/cris.c (cris_init_machine_status): Likewise.
2362 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2364 * config/avr/avr.c (avr_init_machine_status): Likewise.
2366 * config/arm/arm.c (arm_init_machine_status): Likewise.
2368 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2369 (alpha_need_linkage): Likewise.
2370 (alpha_use_linkage): Likewise.
2372 * cgraph.c (cgraph_allocate_node): Likewise.
2373 (cgraph_create_edge_1): Likewise.
2374 (cgraph_create_indirect_edge): Likewise.
2375 (cgraph_add_asm_node): Likewise.
2377 * cfgrtl.c (init_rtl_bb_info): Likewise.
2379 * cfgloop.c (alloc_loop): Likewise.
2380 (rescan_loop_exit): Likewise.
2382 * cfg.c (init_flow): Likewise.
2383 (alloc_block): Likewise.
2384 (unchecked_make_edge): Likewise.
2386 * c-parser.c (c_parse_init): Likewise.
2387 (c_parse_file): Likewise.
2389 * c-decl.c (bind): Likewise.
2390 (record_inline_static): Likewise.
2391 (push_scope): Likewise.
2392 (make_label): Likewise.
2393 (lookup_label_for_goto): Likewise.
2394 (finish_struct): Likewise.
2395 (finish_enum): Likewise.
2396 (c_push_function_context): Likewise.
2398 * bitmap.c (bitmap_element_allocate): Likewise.
2399 (bitmap_gc_alloc_stat): Likewise.
2401 * alias.c (record_alias_subset): Likewise.
2402 (init_alias_analysis): Likewise.
2404 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
2406 * fold-const.c (fold_comparison): Remove redundant parenthesis.
2407 * tree-inline.c (expand_call_inline): Pass translated return value of
2408 cgraph_inline_failed_string to diagnostic function.
2410 2010-06-08 Andrew Pinski <pinskia@gmail.com>
2411 Shujing Zhao <pearly.zhao@oracle.com>
2414 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2415 implicit bad conversions is initialization.
2416 (error_init): Use gmsgid instead of msgid for argument name and change
2418 (pedwarn_init): Use gmsgid instead of msgid for argument name and
2419 change the call for pedwarn.
2420 (warning_init): Use gmsgid instead of msgid for argument name and
2421 change the call for warning.
2423 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
2425 * config/mips/mips-protos.h (mips_print_operand): Delete.
2426 (mips_print_operand_address): Delete.
2427 * config/mips/mips.h (mips_print_operand_punct): Delete.
2428 (PRINT_OPERAND): Delete.
2429 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2430 (PRINT_OPERAND_ADDRESS): Delete.
2431 * config/mips/mips.c (mips_print_operand_punct): Make static.
2432 (mips_print_operand_address): Make static.
2433 (mips_print_operand): Make static. Call
2434 mips_print_operand_punct_valid_p.
2435 (mips_print_operand_punct_valid_p): New function.
2436 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2437 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2439 2010-06-07 Jan Hubicka <jh@suse.cz>
2442 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2445 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
2447 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2450 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2452 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2453 attributes): Document gas.
2455 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
2457 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2458 <TYPE_LEA>: Split instruction.
2459 <default>: Remove alternative 2 handling.
2460 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2461 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2462 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2464 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2465 (ashift_zext lea splitter): Use DImode for multiplication.
2467 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2468 to generate addition.
2470 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2472 * common.opt (fira-verbose): Use Var.
2473 (fpcc-struct-return): Use Init instead of VarExists.
2474 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2476 * flags.h (flag_signed_char, flag_short_enums,
2477 flag_pcc_struct_return, flag_ira_verbose,
2478 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2479 * toplev.c (flag_detailed_statistics, flag_signed_char,
2480 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2481 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2482 * toplev.h (flag_crossjumping, flag_if_conversion,
2483 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2484 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2485 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2486 flag_cprop_registers, time_report, flag_ira_loop_pressure,
2487 flag_ira_coalesce, flag_ira_move_spills,
2488 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2490 2010-06-07 Jan Hubicka <jh@suse.cz>
2492 * df-core.c (df_analyze_problem): Do verification after allocation.
2494 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2495 (df_lr_alloc): Initialize problem data; move bitmaps to
2497 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2498 (df_lr_verify_solution_start): Do not initialize problem data;
2499 allocate bitmaps in lr_bitmaps.
2500 (df_lr_verify_solution_end): Do not free problem data.
2502 2010-06-07 Jan Hubicka <jh@suse.cz>
2504 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2505 if caller is noreturn.
2506 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2507 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2508 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2509 * ipa-pure-const.c (check_decl): Add IPA parameter.
2510 (state_from_flags): New function.
2511 (better_state, worse_state): New functions.
2512 (check_call): When in IPA mode, do not care about callees.
2513 (check_load, check_store): Update.
2514 (check_ipa_load, check_ipa_store): New.
2515 (check_stmt): When in IPA mode, use IPA checkers.
2516 (analyze_function): Use state_from_flags.
2517 (propagate): Check indirect edges and references.
2519 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
2521 PR rtl-optimization/44404
2522 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2523 of count_occurrences to see if it's safe to modify mem_insn.
2525 2010-06-07 Richard Guenther <rguenther@suse.de>
2527 * gimplify.c (gimplify_cleanup_point_expr): For empty body
2528 and EH-only cleanup drop the cleanup instead of inserting it
2531 2010-06-07 Ira Rosen <irar@il.ibm.com>
2533 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2535 * targhooks.c (default_builtin_vectorization_cost): New function.
2536 * targhooks.h (default_builtin_vectorization_cost): Declare.
2537 * target.h (enum vect_cost_for_stmt): Define.
2538 (builtin_vectorization_cost): Change argument and comment.
2539 * tree-vectorizer.h: Remove cost model macros.
2540 * tree-vect-loop.c: Include target.h.
2541 (vect_get_cost): New function.
2542 (vect_estimate_min_profitable_iters): Replace cost model macros with
2543 calls to vect_get_cost.
2544 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2545 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2546 default implementation.
2547 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2548 calls to target hook builtin_vectorization_cost.
2549 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2551 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2552 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2553 implementation to return costs.
2554 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2555 * config/spu/spu.h: Remove vectorizer cost model macros.
2556 * config/i386/i386.h: Likewise.
2557 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2558 a call to target hook builtin_vectorization_cost.
2560 2010-06-06 Sriraman Tallam <tmsriram@google.com>
2563 * config/i386/i386.c (override_options): Turn zee pass on for level 2
2564 and above and defer till target is known.
2565 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2568 2010-05-25 Jan Hubicka <jh@suse.cz>
2570 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2571 (df_compact_blocks): Likewise.
2572 * df.h (struct df): Turn hardware_regs_used,
2573 regular_block_artificial_uses, eh_block_artificial_uses,
2574 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2576 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2577 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2578 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2579 df_scan_blocks, df_insn_delete, df_insn_rescan,
2580 df_insn_rescan_debug_internal, df_insn_rescan_all,
2581 df_process_deferred_rescans, df_process_deferred_rescans,
2582 df_notes_rescan, df_get_call_refs, df_get_call_refs,
2583 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2584 df_record_entry_block_defs, df_record_exit_block_uses,
2585 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2586 df_scan_verify): Update.
2588 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2591 * c-common.c (is_typedef_decl): Move this definition ...
2592 * tree.c (is_typedef_decl): ... here.
2593 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2594 * c-common.h (is_typedef_decl): Move this declaration ...
2595 * tree.h (is_typedef_decl): ... here.
2596 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2597 * dwarf2out.c (is_naming_typedef_decl): New function.
2598 (gen_tagged_type_die): Split out of ...
2599 (gen_type_die_with_usage): ... this function. When an anonymous
2600 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2601 is emitted for the typedef.
2602 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2603 anonymous tagged types.
2605 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2608 * c-decl.c (grokdeclarator): Delete warning.
2610 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
2612 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
2613 newly built CALL_EXPR.
2614 * tree-profile.c (tree_profiling): Don't profile functions produced
2617 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
2621 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
2622 endianness-independent.
2624 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2626 * c-common.c: Move to c-family/.
2627 * c-common.def: Likewise.
2628 * c-common.h: Likewise.
2629 * c-cppbuiltin.c: Likewise.
2630 * c-dump.c: Likewise.
2631 * c-format.c: Likewise.
2632 * c-format.h : Likewise.
2633 * c-gimplify.c: Likewise.
2634 * c-lex.c: Likewise.
2635 * c-omp.c: Likewise.
2637 * c-opts.c: Likewise.
2638 * c-pch.c: Likewise.
2639 * c-ppoutput.c: Likewise.
2640 * c-pragma.c: Likewise.
2641 * c-pragma.h: Likewise.
2642 * c-pretty-print.c: Likewise.
2643 * c-pretty-print.h: Likewise.
2644 * c-semantics.c: Likewise.
2645 * stub-objc.c: Likewise.
2647 * gengtype.c (get_file_langdir): Special-case files in c-family/.
2648 (get_output_file_with_visibility): Fix name for c-common.h.
2649 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
2651 * c-tree.h: Update include path for moved files.
2652 * c-lang.c: Likewise.
2653 * c-lang.h: Likewise.
2654 * c-parser.c: Likewise.
2655 * c-convert.c: Likewise.
2656 * c-decl.c: Likewise.
2657 * c-objc-common.c: Likewise.
2658 * configure.ac: Make sure c-family/ exists in the build directory.
2659 * configure: Regenerate.
2660 * Makefile.in: Update paths for moved files. Regroup files per
2661 location and update dependencies. Move generated_files down after
2664 * config/spu/spu-c.c: Update paths for moved files.
2665 * config/mep/mep-pragma.c: Likewise.
2666 * config/darwin-c.c: Likewise.
2667 * config/i386/msformat-c.c: Likewise.
2668 * config/i386/i386-c.c: Likewise.
2669 * config/avr/avr-c.c: Likewise.
2670 * config/sol2-c.c: Likewise.
2671 * config/ia64/ia64-c.c: Likewise.
2672 * config/rs6000/rs6000-c.c: Likewise.
2673 * config/arm/arm.c: Likewise.
2674 * config/arm/arm-c.c: Likewise.
2675 * config/h8300/h8300.c: Likewise.
2676 * config/v850/v850-c.c: Likewise.
2678 * config/t-darwin: Fix dependencies for moved files.
2679 * config/t-sol2: Fix dependencies for moved files.
2680 * config/mep/t-mep: Fix dependencies for moved files.
2681 * config/ia64/t-ia64: Fix dependencies for moved files.
2682 * config/rs6000/t-rs6000: Fix dependencies for moved files.
2683 * config/v850/t-v850: Fix dependencies for moved files.
2684 * config/v850/t-v850e: Fix dependencies for moved files.
2686 * config/m32c/m32c-pragma.c
2688 * po/exgettext: Look in c-family/ also.
2690 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
2692 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
2693 (mark_control_dependent_edges_necessary): Call it instead of marking
2694 the last statement manually.
2695 (propagate_necessity): Likewise.
2697 2010-06-05 Jan Hubicka <jh@suse.cz>
2699 * basic-block.h (compute_dominance_frontiers): Updated.
2700 (compute_idf): Likewise.
2702 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
2703 for dominance frontiers.
2704 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
2705 (insert_updated_phi_nodes_for): Likewise.
2706 (update_ssa): Likewise.
2707 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2708 (compute_dominance_frontiers): Likewise.
2709 (compute_idf): Likewise.
2710 * df-problems.c (df_md_local_compute): Likewise.
2712 2010-06-05 Anatoly Sokolov <aesok@post.ru>
2714 * target.h (struct gcc_target): Add memory_move_cost field.
2715 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
2716 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
2717 * targhooks.c (default_memory_move_cost): New function.
2718 * targhooks.h (default_memory_move_cost): Declare function.
2719 * reload.h (memory_move_cost): Declare.
2720 (memory_move_secondary_cost): Change type of 'in' argument to bool.
2721 * reginfo.c (memory_move_cost): New function.
2722 (memory_move_secondary_cost): Change type of 'in' argument to bool.
2723 * ira.h (ira_memory_move_cost): Update comment.
2724 * ira.c: (ira_memory_move_cost): Update comment.
2725 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
2726 with memory_move_cost.
2727 * postreload.c (reload_cse_simplify_set): (Ditto.).
2728 * reload1.c (choose_reload_regs): (Ditto.).
2729 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
2730 (MEMORY_MOVE_COST): Revise documentation.
2732 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2733 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2734 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
2735 type of 'in' argument to bool.
2736 (TARGET_MEMORY_MOVE_COST): Define.
2738 2010-06-05 Jan Hubicka <jh@suse.cz>
2740 * ipa-pure-const.c (propagate): Fix typo in handling of functions
2741 that cannot return. Be more careful when merging the results with
2742 previously known ones.
2744 2010-06-05 Matthias Klose <doko@ubuntu.com>
2746 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
2747 function to add the -iplugindir option.
2748 (find_plugindir_spec_function): Add new declaration and function.
2749 (static_spec_func): Use it for "find-plugindir".
2751 2010-06-05 Jakub Jelinek <jakub@redhat.com>
2754 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
2755 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
2756 statement expression.
2758 2010-06-05 Jan Hubicka <jh@suse.cz>
2760 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
2761 (df_rd_problem_data): Convert sparse_invalidated_by_call,
2762 dense_invalidated_by_call to bitmap head.
2763 (df_rd_alloc, df_rd_bb_local_compute_process_def,
2764 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
2765 df_rd_start_dump, df_lr_verify_transfer_functions,
2766 df_live_verify_transfer_functions, df_chain_create_bb,
2767 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
2768 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
2769 df_simulate_one_insn_forwards, df_md_alloc,
2770 df_md_bb_local_compute_process_def,
2771 df_md_bb_local_compute_process_def, df_md_local_compute,
2772 df_md_transfer_function df_md_free): Update.
2774 2010-06-05 Joseph Myers <joseph@codesourcery.com>
2777 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
2778 target type for ADDR_EXPR; require no changes to qualifiers except
2780 * c-tree.h (c_build_type_variant): Remove.
2782 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
2784 * genautomata.c (get_excl_set): Do work per element, not per char.
2785 (check_presence_pattern_sets): Similar.
2786 (check_absence_pattern_sets): Similar.
2788 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
2790 * genautomata.c (curr_state_pass_num): Delete.
2791 (min_issue_delay_pass_states): Delete.
2792 (min_issue_delay): Delete.
2793 (initiate_min_issue_delay_pass_states): Delete.
2794 (output_min_issue_delay_table): Compute min_issue_delay_vect
2795 using a breadth-first search variant.
2796 (output_tables): Don't call initiate_min_issue_delay_pass_states.
2798 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
2801 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
2802 (df_byte_lr_bb_local_compute): Likewise.
2804 2010-06-03 Jason Merrill <jason@redhat.com>
2806 Implement noexcept operator (5.3.7)
2807 * c-common.c (c_common_reswords): Add noexcept.
2808 * c-common.h (enum rid): Add RID_NOEXCEPT.
2810 2010-06-04 Joseph Myers <joseph@codesourcery.com>
2812 * config/darwin-driver.c (darwin_default_min_version): Use
2813 GCC-specific formats in diagnostics.
2814 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
2816 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
2817 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
2818 eval_spec_function, handle_braces, process_brace_body, main,
2819 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
2820 getenv_spec_function, compare_version_strings,
2821 version_compare_spec_function): Use GCC-specific formats in
2824 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2826 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
2827 that operand 0 and operand 1 are equal.
2828 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
2829 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
2830 and operand 1 are equal.
2831 <default>: Ditto. Remove ??? comment.
2832 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
2833 and operand 1 are equal.
2834 <default>: Ditto. Remove ??? comment.
2835 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
2837 (*add<mode>_4) <default>: Ditto.
2838 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
2840 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
2842 * config/i386/i386-protos.h (ix86_print_operand): Declare.
2843 * config/i386/i386.c (ix86_print_operand): Make non-static.
2844 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
2845 * output.h (output_operand): Declare.
2846 * final.c (output_operand): Make non-static.
2848 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
2850 PR rtl-optimization/44013
2851 * sched-deps.c (add_dependence_list_and_free): Don't free lists
2852 when processing debug insns.
2855 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
2856 recursing. Check that recursion is bounded. Rename inner var
2857 to avoid hiding incoming argument.
2859 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2861 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
2866 (*addqi_ext_1_rex64): Ditto.
2867 (*addqi_ext_1): Ditto.
2869 (*addqi_4): Check for incdec_operand in QImode.
2871 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
2872 using SWI mode iterator.
2873 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
2874 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
2876 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
2877 using SWI mode iterator.
2879 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2882 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
2883 * c-format.c (gcc_diag_flag_specs): Add hash.
2884 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
2885 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
2886 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
2887 pp_c_cv_qualifiers. Handle qualifiers spelling here.
2888 (pp_c_type_qualifier_list): Call the function above.
2889 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
2890 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
2891 (WARN_FOR_QUALIFIERS): New macro.
2892 (convert_for_assignment): Use it.
2894 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
2896 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
2898 2010-06-04 Jan Hubicka <jh@suse.cz>
2900 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
2901 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
2902 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
2903 DF_BYTE_LR_OUT): Update for embedded bitmaps.
2904 * fwprop.c (single_def_use_enter_block): Likewise.
2905 * ddg.c (create_ddg_dep_from_intra_loop_link,
2906 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
2907 * loop-iv.c (latch_dominating_def): Likewise.
2908 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
2909 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
2910 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
2911 df_rd_transfer_function, df_rd_top_dump,
2912 df_rd_bottom_dump): Update.
2913 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
2914 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
2915 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
2916 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
2917 df_lr_verify_solution_start, df_lr_verify_solution_end,
2918 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
2919 df_live_free_bb_info, df_live_alloc, df_live_reset,
2920 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
2921 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
2922 df_live_verify_solution_start, df_live_verify_solution_end,
2923 df_live_verify_transfer_functions, df_chain_create_bb,
2924 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
2925 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2926 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2927 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
2928 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2929 df_byte_lr_transfer_function, df_byte_lr_top_dump,
2930 df_byte_lr_bottom_dump, df_create_unused_note,
2931 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
2932 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
2933 df_md_transfer_function, df_md_init, df_md_confluence_0,
2935 df_md_top_dump, df_md_bottom_dump): Update.
2936 (struct df_lr_problem_data): Embedd bitmap headers.
2938 2010-06-04 Jan Hubicka <jh@suse.cz>
2940 * dce.c (dce_process_block): Do not re-scan already marked
2943 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
2945 PR rtl-optimization/39871
2946 PR rtl-optimization/40615
2947 PR rtl-optimization/42500
2948 PR rtl-optimization/42502
2949 * ira.c (init_reg_equiv_memory_loc: New function.
2950 (ira): Call it twice.
2951 * reload.h (calculate_elim_costs_all_insns): Declare.
2952 * ira-costs.c: Include "reload.h".
2953 (regno_equiv_gains): New static variable.
2954 (init_costs): Allocate it.
2955 (finish_costs): Free it.
2956 (ira_costs): Call calculate_elim_costs_all_insns.
2957 (find_costs_and_classes): Take estimated elimination costs
2959 (ira_adjust_equiv_reg_cost): New function.
2960 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
2961 * reload1.c (init_eliminable_invariants, free_reg_equiv,
2962 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
2963 (elim_bb): New static variable.
2964 (reload): Move code out of here into init_eliminable_invariants and
2965 free_reg_equiv. Call them.
2966 (calculate_elim_costs_all_insns): New function.
2967 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
2968 all callers changed. If FOR_COSTS is true, don't call alter_reg,
2969 but call note_reg_elim_costly if we turned a valid memory address
2970 into an invalid one.
2971 * Makefile.in (ira-costs.o): Depend on reload.h.
2973 2010-06-04 Julian Brown <julian@codesourcery.com>
2975 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
2978 2010-06-04 Richard Guenther <rguenther@suse.de>
2981 * cgraph.h (struct varpool_node): Add lto_file_data field.
2982 * lto-cgraph.c (input_varpool_node): Initialize it.
2984 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2986 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
2987 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
2988 predicate in "type" attribute calculation.
2989 (*addsi_1_zext): Ditto.
2990 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
2991 (*addsi_2_zext): Ditto.
2992 (*add<mode>_3): Ditto.
2993 (*addsi_3_zext): Ditto.
2994 (*add<mode>_5): Ditto.
2996 2010-06-03 Jan Hubicka <jh@suse.cz>
2998 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3000 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3002 2010-06-03 Jan Hubicka <jh@suse.cz>
3004 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3005 micro-optimize the checks when to add new note.
3007 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3009 * final.c (output_asm_insn): Call
3010 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3011 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3012 (output_address): Call targetm.asm_out.print_operand_address.
3014 * target.h (struct gcc_target): Add print_operand,
3015 print_operand_address, and print_operand_punct_valid_p fields.
3016 * targhooks.h (default_print_operand): Declare.
3017 (default_print_operand_address): Declare.
3018 (default_print_operand_punct_valid_p): Declare.
3019 * targhooks.c (default_print_operand): Define.
3020 (default_print_operand_address): Define.
3021 (default_print_operand_punct_valid_p): Define.
3022 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3023 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3024 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3025 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3026 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3027 * vmsdbgout.c (addr_const_to_string): Update comment.
3028 * config/i386/i386.c (print_operand): Rename to...
3029 (ix86_print_operand): ...this. Make static.
3030 (print_operand_address): Rename to...
3031 (ix86_print_operand_address): ...this. Make static. Call
3032 ix86_print_operand instead of PRINT_OPERAND.
3033 (ix86_print_operand_punct_valid_p): New function.
3034 (TARGET_PRINT_OPERAND): Define.
3035 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3036 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3037 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3038 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3039 (PRINT_OPERAND): Delete.
3040 (PRINT_OPERAND_ADDRESS): Delete.
3041 * config/i386/i386-protos.h (print_operand): Delete prototype.
3042 (print_operand_address): Delete prototype.
3044 2010-06-03 Richard Guenther <rguenther@suse.de>
3046 PR tree-optimization/44403
3047 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3048 Preserve pointer qualifiers.
3049 (vect_create_data_ref_ptr): Likewise.
3051 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3054 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3056 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3058 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3061 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3062 return false if merging the bbs would lead to goto_locus
3063 location being lost from the IL.
3065 2010-06-03 Jan Hubicka <jh@suse.cz>
3066 Jakub Jelinek <jakub@redhat.com>
3068 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3069 set->regs[i] is NULL or has just one entry.
3071 2010-06-03 Jan Hubicka <jh@suse.cz>
3073 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3074 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3076 2010-06-03 Paul Brook <paul@codesourcery.com>
3078 * config/arm/arm.c (FL_TUNE): Define.
3079 (arm_default_cpu, arm_cpu_select): Remove.
3080 (all_cores): Populate core field.
3081 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3082 (arm_find_cpu): New function.
3083 (arm_handle_option): Lookup cpu/architecture names.
3084 (arm_override_options): Cleanup mcpu/march/mtune handling.
3085 (arm_file_start): Ditto.
3087 2010-06-03 Alan Modra <amodra@gmail.com>
3090 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3091 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3092 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3093 (rs6000_emit_load_toc_table): Likewise.
3095 2010-06-02 Jan Hubicka <jh@suse.cz>
3097 * passes.c (init_optimization_passes): Put ipa reference
3098 after ipa pure-const.
3100 2010-06-02 Jan Hubicka <jh@suse.cz>
3102 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3103 calls_read_all and calls_write_all.
3104 (get_reference_optimization_summary): Fix formatting.
3105 (is_proper_for_analysis): Check that decl is not readonly.
3106 (propagate_bits): Check CONST/PURE/noreturn flags.
3107 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3108 (analyze_function): Ignore indirect edges.
3109 (copy_global_bitmap): For all module statics, do nothing.
3110 (generate_summary): Do not print calls_read_all/calls_write_all.
3111 (read_write_all_from_decl): Take node as argument; check
3112 cgraph_node_cannot_return.
3113 (propagate): Reorganize read_all/write_all computation;
3114 check indirect edges; check ecf flags; use all_module_statics
3115 in the results; do not free all_module_statics.
3116 (stream_out_bitmap): Handle all_module_statics.
3117 (ipa_reference_write_optimization_summary): Likewise; use
3118 varpool/cgraph encoders to get boundaries.
3119 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3120 use it when possible.
3122 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3125 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3126 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3128 * doc/extend.texi (powerpc builtins): Document vec_recip,
3129 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3131 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3132 (rs6000_emit_swrsqrt): Ditto.
3133 (rs6000_emit_swdivsf): Delete.
3134 (rs6000_emit_swdivdf): Ditto.
3135 (rs6000_emit_swrsqrtsf): Ditto.
3137 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3138 describe the reciprocal estimate support for each type.
3139 (recip_options): Map -mrecip=<opt> into option bits.
3140 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3141 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3142 reciprocal estimate instructions.
3143 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3144 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3145 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3146 cost information if -mdebug=cost or -mdebug=reg.
3147 (rs6000_override_options): Set -mrecip-precision for power6, and
3148 power7 machines. If -mvsx or -mdfp, enable various options that
3149 came in previous instruction set ISAs, unless the option was
3150 explicitly disabled by the command line option. Parse
3151 -mrecip=<opt> options.
3152 (rs6000_builtin_vectorized_function): Add support for vectorizing
3153 the reciprocal estimate builtins and expansions.
3154 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3155 (bdesc_2arg): Add reciprocal estimate builtins.
3156 (bdesc_1arg): Add reciprocal square root estimate builtins.
3157 (rs6000_expand_builtin): Rewrite to use a switch statement,
3158 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3159 (rs6000_init_builtins): Create declarations for reciprocal
3161 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3162 sized, prefer traditional floating point registers, if integer
3163 vector types, prefer altivec registers. Don't actually look at
3164 the memory address any more.
3165 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3167 (rs6000_load_constant_and_splat): New helper function to load up
3168 the constant for reciprocal estimate instructions.
3169 (rs6000_emit_madd): New helper function for generating
3170 multiply/add type instructions, based on the current switches.
3171 (rs6000_emit_msub): Ditto.
3172 (rs6000_emit_mnsub): Ditto.
3173 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3174 replace a divide with a reciprocal estimate and fixup, adding
3175 support for machines with high precision and vectors.
3176 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3177 low precision machines.
3178 (rs6000_emit_swdiv): New common function to be called to replace a
3179 division with reciprocal estimate and fixup.
3180 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3181 for double and vector types. Add support for high precision machines.
3183 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3184 the reciprocal estimate instructions can be generated.
3185 (TARGET_FRE): Ditto.
3186 (TARGET_FRSQRTES): Ditto.
3187 (TARGET_FRSQRTE): Ditto.
3188 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3190 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3191 square root estimate on vectors.
3192 (re<mode>2): New insn for reciprocal division estimate on vectors.
3194 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3196 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3197 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3198 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3199 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3200 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3201 (RS6000_BUILTIN_RSQRT): Ditto.
3202 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3203 floating point builtin.
3205 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3206 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3207 __RECIP_PRECISION__ based on the command line switches.
3208 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3210 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3211 replacing division instructions with reciprocal estimate and fixup.
3212 (-mrecip=<opt>): New option.
3213 (-mrecip-precision): Ditto.
3215 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3216 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3217 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3220 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3221 (UNSPEC_VREFP): Ditto.
3222 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3223 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3224 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3225 reciprocal estimate instructions to be generated.
3226 (altivec_vrefp): Ditto.
3228 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3230 (rreg): New mode attribute for reciprocal estimate support.
3231 (recip<mode>3): New insn for division using reciprocal estimate
3233 (divide define_split): New define_split to convert floating point
3234 division to use reciprocal estimate if the user used the
3235 appropriate options and the split is run when we can add new
3236 pseudo registers for the fixup.
3237 (rsqrt<mode>2): New insn for reciprocal square root support.
3238 (recipsf3): Move into recip<mode>3.
3240 (fres): Use TARGET_FRES.
3241 (rsqrtsf2): Move into rsqrt<mode>2.
3242 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3243 (copysignsf3): Add support for VSX.
3244 (fred): Use TARGET_FRE.
3246 (rsqrtdf_internal1): New function for frsqrte instruciton.
3248 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3251 2010-06-03 Richard Guenther <rguenther@suse.de>
3254 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3255 (set_user_assembler_libfunc): Likewise.
3257 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3259 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3261 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3263 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3264 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3265 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3266 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3267 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3268 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3269 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3270 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3271 * defaults.h: Updated for above mentioned changes.
3273 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3275 * c-common.c: Remove header include of tm_p.h.
3276 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3278 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3280 * tree.h (struct tree_decl_map): New type.
3281 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3282 (tree_decl_map_hash): New prototype.
3283 (debug_expr_for_decl, value_expr_for_decl): Change into
3284 tree_decl_map hashtab from tree_map.
3285 (init_ttree): Adjust initialization.
3286 (tree_decl_map_hash): New function.
3287 (decl_debug_expr_lookup, decl_debug_expr_insert,
3288 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3290 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3292 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3294 * configure: Regenerate.
3295 * config.in: Regenerate.
3297 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3298 (X86_64_EMULATION): Define.
3299 (TARGET_LD_EMULATION): Use them.
3301 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3302 (SPARC64_EMULATION): Define.
3303 (LINK_ARCH_SPEC): Use them.
3305 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3307 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3308 smallest_mode_for_size for computing the precision types of new
3309 graphite IVs. Do not call lang_hooks.types.type_for_size.
3311 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3313 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3315 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3317 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3320 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3321 return false instead.
3323 2010-06-02 Jan Hubicka <jh@suse.cz>
3326 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3327 create new cgraph node to check callee.
3329 2010-06-02 Richard Guenther <rguenther@suse.de>
3331 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3333 2010-06-02 Richard Guenther <rguenther@suse.de>
3335 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3336 (lto_wrapper_cleanup): ... this. Do not exit.
3337 (fatal): Adjust. Exit here.
3338 (fatal_perror): Likewise.
3339 (fatal_signal): New function.
3340 (main): Set up signal handlers to cleanup temporary files.
3341 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3343 2010-06-02 Richard Guenther <rguenther@suse.de>
3345 PR tree-optimization/44377
3346 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3348 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3350 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3351 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3352 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3353 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3355 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3357 2010-06-02 Jan Hubicka <jh@suse.cz>
3359 * bitmap.c (bitmap_descriptor): Add search_iter.
3360 (bitmap_find_bit): Increment it.
3361 (print_statistics): Print it.
3363 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3365 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3366 instead of gimple_build_call_vec. Delete unnecessary local variable.
3368 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3370 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3371 change from yesterday.
3373 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3375 * c-ada-spec.c: Clean up redundant includes.
3377 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3379 * gimplify.c: Do not include except.h and optabs.h.
3380 (gimplify_body): Do not initialize RTL profiling.
3381 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3382 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3383 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3384 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3387 * tree-pretty-print.h: Include pretty-print.h.
3388 * gimple-pretty-print.h: Include pretty-print.h.
3390 * tree-pretty-print.c: Do not include diagnostic.h.
3391 * tree-vrp.c: Likewise.
3392 * tree-tailcall.c: Likewise
3393 * tree-scalar-evolution.c: Likewise
3394 * tree-ssa-dse.c: Likewise
3395 * tree-chrec.c: Likewise
3396 * tree-ssa-sccvn.c: Likewise
3397 * tree-ssa-copyrename.c: Likewise
3398 * tree-nomudflap.c: Likewise
3399 * tree-call-cdce.c: Likewise
3400 * tree-stdarg.c: Likewise
3401 * tree-ssa-math-opts.c: Likewise
3402 * tree-nrv.c: Likewise
3403 * tree-ssa-sink.c: Likewise
3404 * tree-browser.c: Likewise
3405 * tree-ssa-loop-ivcanon.c: Likewise
3406 * tree-ssa-loop.c: Likewise
3407 * tree-parloops.c: Likewise
3408 * tree-ssa-address.c: Likewise
3409 * tree-ssa-ifcombine.c: Likewise
3410 * tree-if-conv.c: Likewise
3411 * tree-data-ref.c: Likewise
3412 * tree-affine.c: Likewise
3413 * tree-ssa-phiopt.c: Likewise
3414 * tree-ssa-coalesce.c: Likewise
3415 * tree-ssa-pre.c: Likewise
3416 * tree-ssa-live.c: Likewise
3417 * tree-predcom.c: Likewise
3418 * tree-ssa-forwprop.c: Likewise
3419 * tree-ssa-dce.c: Likewise
3420 * tree-ssa-ter.c: Likewise
3421 * tree-ssa-loop-prefetch.c: Likewise
3422 * tree-optimize.c: Likewise
3423 * tree-ssa-phiprop.c: Likewise
3424 * tree-object-size.c: Likewise
3425 * tree-outof-ssa.c: Likewise
3426 * tree-ssa-structalias.c: Likewise
3427 * tree-switch-conversion.c: Likewise
3428 * tree-ssa-reassoc.c: Likewise
3429 * tree-ssa-operands.c: Likewise
3430 * tree-vectorizer.c: Likewise
3431 * tree-vect-data-refs.c: Likewise
3432 * tree-vect-generic.c: Likewise
3433 * tree-vect-stmts.c: Likewise
3434 * tree-vect-patterns.c: Likewise
3435 * tree-vect-slp.c: Likewise
3436 * tree-vect-loop.c: Likewise
3437 * tree-ssa-loop-ivopts.c: Likewise
3438 * tree-ssa-loop-im.c: Likewise
3439 * tree-ssa-loop-niter.c: Likewise
3440 * tree-ssa-loop-unswitch.c: Likewise
3441 * tree-ssa-loop-manip.c: Likewise
3442 * tree-ssa-loop-ch.c: Likewise
3443 * tree-dump.c: Likewise
3444 * tree-complex.c: Likewise
3446 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3447 * tree-ssa-uninit.c: Likewise
3448 * tree-ssa-threadupdate.c: Likewise
3449 * tree-ssa-uncprop.c: Likewise
3450 * tree-ssa-ccp.c: Likewise
3451 * tree-ssa-dom.c: Likewise
3452 * tree-ssa-propagate.c: Likewise
3453 * tree-ssa-alias.c: Likewise
3454 * tree-dfa.c: Likewise
3455 * tree-cfgcleanup.c: Likewise
3456 * tree-sra.c: Likewise
3457 * tree-ssa-copy.c: Likewise
3458 * tree-ssa.c: Likewise
3459 * tree-profile.c: Likewise
3460 * tree-cfg.c: Likewise
3461 * tree-ssa-threadedge.c: Likewise
3462 * tree-vect-loop-manip.c: Likewise
3464 * tree-inline.c: Do not include diagnostic.h and expr.h.
3466 (copy_decl_for_dup_finish): Do not use NULL_RTX.
3468 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3469 * tree-loop-distribution.c: Likewise.
3471 2010-06-01 Jan Hubicka <jh@suse.cz>
3473 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3475 2010-06-01 Jan Hubicka <jh@suse.cz>
3477 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3478 remove return value.
3479 (split_bbs_on_noreturn_calls) .... here.
3480 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3481 * tree-flow.h (fixup_noreturn_call): New.
3483 2010-06-01 Jan Hubicka <jh@suse.cz>
3485 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3487 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
3489 * tree.h (build_nt_call_list): Delete.
3490 * tree.c (build_nt_call_list): Delete.
3492 2010-06-01 Jan Hubicka <jh@suse.cz>
3494 * fwprop.c: Make emit-rtl.h include last.
3495 * rtlanal.c: Include emit-rtl.h.
3496 * genautomata.c: Output emit-rtl include into insn-automata.c
3497 * df-scan.c: Include emit-rtl.h.
3498 * haifa-sched.c: Indlude emit-rtl.h.
3499 * mode-switching.c: Indlude emit-rtl.h.
3500 * graph.c: Indlude emit-rtl.h.
3501 * sel-sched.c: Include emit-rtl.h.
3502 * sel-sched-ir.c: Include emit-rtl.h.
3503 * ira-build.c: Include emit-rtl.h.
3504 * emit-rtl.c: (first_insn, last_insn): Remove defines.
3505 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3507 (set_new_first_and_last_insn, get_last_insn_anywhere,
3508 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3509 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3510 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3511 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3512 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3513 Use accessor functions.
3514 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3515 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3516 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3517 mem_expr_equal_p): Move here from rtl.h.
3518 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3519 Move here from emit-rtl.c; make inline.
3520 * cfglayout.h: Include emit-rtl.h.
3521 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3522 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3523 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3524 mem_expr_equal_p, get_insns, set_first-insn,
3525 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3526 * reg-stack.c: Include emit-rtl.h.
3529 2010-06-01 Jan Hubicka <jh@suse.cz>
3531 * cgraph.h (tree_function_versioning): Update prototype.
3532 (cgraph_function_versioning): Update prototype.
3533 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3535 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3536 (cgraph_materialize_clone, save_inline_function_body): Update use of
3537 tree_function_versioning.
3538 * tree-inline.c (copy_bb): Look for previous copied block to link
3539 after; fix debug output.
3540 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3541 (copy_body): Likewise.
3542 (expand_call_inline): Update use of copy_body.
3543 (tree_function_versioning): Update use of copy body; accept
3544 blocks_to_copy and new_entry.
3546 2010-06-01 Jan Hubicka <jh@suse.cz>
3548 * gegenrtl.c: Remove unnecesary prototypes.
3550 (gendef): Produce static inline.
3552 (main): Do not decode parameters; generate header only.
3553 * Makefile.in (genrtl.c): Remove.
3555 2010-06-01 Jan Hubicka <jh@suse.cz>
3557 * tree-switch-conversion.c (build_one_array): Make it readonly.
3559 2010-06-01 Richard Guenther <rguenther@suse.de>
3561 * optabs.c (init_optabs): Guard all accesses to reinit.
3562 * ipa-pure-const.c (propagate): Fix another typo.
3563 * opts.c (common_handle_option): Split assignment to bool.
3564 * c-opts.c (c_common_handle_option): Likewise.
3566 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3567 Matthew Gingell <gingell@adacore.com>
3569 * doc/invoke.texi: Mention -fdump-ada-spec.
3570 * tree-dump.c (dump_files): Add ada-spec.
3571 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3572 * tree-pass.h (tree_dump_index): Add TDI_ada.
3573 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3574 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3575 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3576 * c-decl.c: Include c-ada-spec.h.
3577 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3579 (c_write_global_declarations): Add handling of -fdump-ada-spec.
3580 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3581 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3582 * c-ada-spec.h, c-ada-spec.c: New files.
3584 2010-06-01 Richard Guenther <rguenther@suse.de>
3587 * ipa-pure-const.c (get_function_state): Hand back varying state
3588 if we do not have one.
3589 (has_function_state): New function.
3590 (duplicate_node_data): Adjust.
3591 (remove_node_data): Likewise.
3592 (pure_const_write_summary): Likewise.
3593 (propagate): Likewise. Fix typo.
3595 2010-06-01 Jan Hubicka <jh@suse.cz>
3597 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
3598 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
3599 (execute_all_ipa_transforms): Do not play with the states.
3601 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3603 * config/arm/t-linux-androideabi: New.
3604 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
3606 2010-06-01 Jan Hubicka <jh@suse.cz>
3608 * tree-inline.c (estimate_num_insns): For stdarg functions look
3609 into call statement to count cost of argument passing.
3611 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
3613 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
3614 argument for fprintf.
3615 (ix86_output_addr_diff_elt): Likewise.
3616 (x86_function_profiler): Likewise.
3617 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
3618 (LPREFIX): Likewise.
3619 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3621 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3624 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
3625 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
3626 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
3627 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
3628 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
3629 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
3630 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
3631 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
3634 2010-05-31 Jan Hubicka <jh@suse.cz>
3636 * tree.h (tree_range_check_failed): Declare noreturn.
3638 2010-05-31 Jan Hubicka <jh@suse.cz>
3640 * gimple.c (gimple_call_builtin_p): New function.
3641 * gimple.h (gimple_call_builtin_p): Declare.
3642 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
3644 (execute_warn_function_return): BUILT_IN_RETURN is return.
3645 (split_critical_edges): Return edges are not critical.
3646 (is_ctrl_altering_stmt): Builtin_in_return is altering.
3647 (gimple_verify_flow_info): Handle built_in_return.
3648 (execute_warn_function_return): Handle built_in_return.
3649 * ipa-pure-const.c (check_call): Ignore builtin_return.
3651 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3654 * expr.c (expand_assignment): Don't store anything for out-of-bounds
3655 array accesses with non-MEM.
3657 PR tree-optimization/44182
3658 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
3659 newly needs to end a bb is followed by debug stmts, instead return
3660 true from the function at the end.
3661 (maybe_move_debug_stmts_to_successors): New function.
3662 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
3664 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
3667 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
3669 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
3671 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
3672 for nested functions in non-optimized compilation.
3674 2010-05-31 Richard Guenther <rguenther@suse.de>
3676 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
3678 2010-05-30 Jan Hubicka <jh@suse.cz>
3680 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
3682 2010-05-30 Richard Guenther <rguenther@suse.de>
3685 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
3686 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
3689 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
3691 * config/darwin.c (output_objc_section_asm_op): Add comment.
3692 (name_needs_quotes): Add '_' to list of valid comment chars.
3693 (machopic_output_function_base_name): Remove unneeded quotes.
3694 (darwin_encode_section_info): Adjust asm whitespace.
3695 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
3696 (ASM_OUTPUT_LOCAL): Ditto.
3697 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
3698 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
3699 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
3701 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3703 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
3704 RS6000_OUTPUT_BASENAME unconditionally.
3705 (rs6000_output_function_epilogue): Likewise.
3707 2010-05-30 Jan Hubicka <jh@suse.cz>
3709 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
3712 2010-05-30 Richard Guenther <rguenther@suse.de>
3714 * tree-cfg.c (verify_gimple_assign_single): Implement
3715 verification for COND_EXPR rhs.
3717 2010-05-30 Jan Hubicka <jh@suse.cz>
3719 * cgraph.h (cgraph_dump_file): Declare.
3720 * cgraphunit.c (cgraph_dump_file): Export.
3721 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
3723 2010-05-30 Jan Hubicka <jh@suse.cz>
3725 * dwarf2out.c (reference_to_unused,
3726 premark_types_used_by_global_vars_helper): Avoid creation of new
3729 2010-05-30 Jan Hubicka <jh@suse.cz>
3731 * cgraph.h (cgraph_node_cannot_return,
3732 cgraph_edge_cannot_lead_to_return): New functions.
3733 * cgraph.c (cgraph_node_cannot_return,
3734 cgraph_edge_cannot_lead_to_return): Use them.
3735 * ipa-pure-const.c (pure_const_names): New static var.
3736 (check_call): Handle calls not leading to return.
3737 (pure_const_read_summary): Dump info read.
3738 (propagate): Dump info about propagation process; ignore side effects
3739 of functions not leading to exit; fix handling of pure functions.
3741 2010-05-30 Jan Hubicka <jh@suse.cz>
3743 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
3744 for tail call epilogues.
3746 2010-05-30 Jan Hubicka <jh@suse.cz>
3748 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
3749 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
3752 2010-05-29 Jan Hubicka <jh@suse.cz>
3754 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
3755 node; remove references in node we no longer keep in cgrpah but need
3758 2010-05-29 Jan Hubicka <jh@suse.cz>
3760 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
3762 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3765 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
3767 2010-05-29 Jan Hubicka <jh@suse.cz>
3769 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
3770 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
3771 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
3772 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
3773 debug_names_replaced_by, debug_update_ssa): Likewise.
3774 * sbitmap.c (debug_sbitmap): Likewise.
3775 * genrecog.c (debug_decision, debug_decision_list): Likewise.
3776 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
3777 debug_tree_chain): Likewise.
3778 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
3779 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
3780 * optabs.c (debug_optab_libfuncs): Likewise.
3781 (verify_loop_closed_ssa): Likewise.
3782 * value-prof.c (verify_histograms): Likewise.
3783 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
3784 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
3785 * cfghooks.c (verify_flow_info): Likewise.
3786 * fold-const.c (debug_fold_checksum): Likewise.
3787 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
3788 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
3790 * omega.c (debug_omega_problem): Likewise.
3791 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
3792 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
3793 * dominance.c (verify_dominators, debug_dominance_info,
3794 debug_dominance_tree): Likewise.
3795 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
3796 * df_regno_debug, df_ref_debug,
3797 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
3798 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
3799 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
3800 * sel-sched.c (debug_state): Likewise.
3801 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
3803 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
3804 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
3805 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
3806 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
3808 * c-pretty-print.c (debug_c_tree): Likewise.
3809 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
3810 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
3811 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
3812 * ebitmap.c (debug_ebitmap): Likewise.
3813 * function.c (debug_find_var_in_block_tree): Likewise.
3814 * print-rtl.c (debug_rtx): Likewise.
3815 (debug_rtx_count): Likewise.
3816 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
3817 * stor-layout.c (debug_rli): Likewise.
3818 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
3819 * tree-data-ref.c (debug_data_references,
3820 debug_data_dependence_relations, debug_data_reference,
3821 debug_data_dependence_relation, debug_rdg_vertex,
3822 debug_rdg_component, debug_rdg): Likewise.
3823 * tree-affine.c (debug_aff): Likewise.
3824 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
3826 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
3827 * emit-rtl.c (verify_rtl_sharing): Likewise.
3828 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
3829 debug_value_expressions): Likewise.
3830 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
3831 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
3832 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
3833 * cfglayout.c (verify_insn_chain): Likewise.
3834 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
3835 debug_clast_stmt, debug_generated_program): Likewise.
3836 * ggc-page.c (debug_print_page_list): Likewise.
3837 * tree-ssa-ter.c (debug_ter): Likewise.
3838 * graphite-dependences.c (debug_pddr): Likewise.
3839 * sched-deps.c (debug_ds): Likewise.
3840 * tree-ssa.c (verify_ssa): Likewise.
3841 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
3842 debug_scattering_functions, debug_iteration_domains, debug_pdr,
3843 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
3844 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
3845 * tree-inline.c (debug_find_tree): Likewise.
3846 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
3847 debug_ppl_powerset_matrix): Likewise.
3848 * var-tracking.c (debug_dv): Likewise.
3849 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
3850 * cfgloop.c (verify_loop_structure): Likewise.
3851 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
3852 * c-common.c (verify_sequence_points): Likewise.
3853 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
3854 debug_candidates, debug_rgn_dependencies): Likewise.
3855 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
3856 * debug_constraint_graph, debug_solution_for_var,
3857 debug_sa_points_to_info): Likewise.
3858 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
3860 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
3861 debug_loops, debug_loop, debug_loop_num): Likewise.
3862 * passes.c (debug_pass): Likewise.
3863 (dump_properties): Likewise; add cfglayout property.
3864 (debug_properties): Likewise.
3865 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
3866 * varpool.c (debug_varpool): Likewise.
3867 * regcprop.c (debug_value_data): Likewise.
3868 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
3869 debug_immediate_uses_for): Likewise.
3871 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
3874 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
3875 Filter out insn-flags.h.
3877 2010-05-29 Jan Hubicka <jh@suse.cz>
3879 * cgraph.h (struct varpool_node_set_def,
3880 struct cgraph_node_set_def): Remove unused AUX pointer.
3881 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
3884 2010-05-29 Jan Hubicka <jh@suse.cz>
3887 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
3889 2010-05-29 Richard Guenther <rguenther@suse.de>
3891 * lto-streamer.c (cached_bp): New global variable.
3892 (bitpack_create): Return the cached bitpack, if available.
3893 (bitpack_delete): Clear and cache the bitpack, if appropriate.
3894 (bp_pack_value): Remove redundant asserts.
3896 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
3899 * tree-if-conv.c (is_true_predicate): New.
3900 (is_predicated): Use is_true_predicate.
3901 (add_to_predicate_list): Same. Do not use unshare_expr.
3902 (add_to_dst_predicate_list): Same.
3904 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
3906 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
3908 (predicate_bbs): Same.
3909 (clean_predicate_lists): Same.
3910 (find_phi_replacement_condition): Do not AND the predicate from
3913 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
3916 * Makefile.in (build/gencondmd.o): Add a missing `\'.
3918 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3921 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
3922 (negdf2): Adjust expander pattern and use negdf2_slow.
3925 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
3927 * basic-block.h (struct control_flow_graph): Move last_label_uid field
3929 * df.h (struct df_base_ref): Move regno field up.
3930 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
3931 * expr.h (struct separate_ops): Move location field up.
3932 * optabs.h (struct optab_d): Move libcall_basename field down.
3933 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
3934 * config/i386/i386.h (struct machine_function): Convert call_abi field
3935 into a bitfield. Move cfa field to the end of the structure.
3937 2010-05-29 Jan Hubicka <jh@suse.cz>
3939 * varpool.c (varpool_get_node): Fix lookup.
3941 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3943 * config/spu/spu-protos.h: Do not include rtl.h. Protect
3944 RTL specific prototypes with #ifdef RTX_CODE.
3945 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
3946 * config/spu/t-spu-elf: Fix dependencies.
3948 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
3950 2010-05-29 Mike Stump <mikestump@comcast.net>
3953 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
3954 TM_H when building to avoid dependency loops.
3956 2010-05-29 Jan Hubicka <jh@suse.cz>
3958 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
3959 refs and body; not the whole node for masters of materialized clones.
3961 2010-05-29 Mike Stump <mikestump@comcast.net>
3963 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
3965 2010-05-29 Jan Hubicka <jh@suse.cz>
3967 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
3968 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
3969 use of clone_function_name.
3970 * cgraph.h (cgraph_create_virtual_clone,
3971 cgraph_function_versioning): update prototypes.
3972 (clone_function_name): Declare.
3973 * ipa-cp.c (ipcp_insert_stage): Update call of
3974 cgraph_create_virtual_clone.
3975 * omp-low.c (create_omp_child_function_name): Use
3976 cgraph_create_virtual_clone.
3977 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
3978 (cgraph_function_versioning): Take SUFFIX argument; produce new name
3979 and make decl local.
3981 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3983 * vec.h: Include statistics.h
3984 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
3987 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>