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>
3989 * c-lex.c: Do not include c-tree.h.
3990 * c-pretty-print.c: Likewise.
3991 * c-opts.c: Likewise.
3992 * c-gimplify.c: Likewise.
3993 * c-common.c: Likewise.
3994 * c-dump.c: Likewise. Include c-common.h.
3996 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3998 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
3999 before including diagnostic-core.h.
4000 (c_cpp_error): New prototype moved from c-tree.h.
4001 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4002 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4003 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4004 (c_cpp_error): Prototype moved to c-common.h.
4005 * Makefile.in: Update dependency for C_COMMON_H.
4007 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4009 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4010 * c-common.c (c_register_addr_space): Remove here.
4011 * c-decl.c (c_register_addr_space): Re-add here.
4013 2010-05-28 Mike Stump <mikestump@comcast.net>
4015 * config/darwin-c.c: Remove c-tree.h include.
4017 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4019 * gcc.c: Include diagnostic.h.
4020 (error_count): Remove. All users changed to use errorcount.
4021 (programname): Remove. All users changed to use progname.
4022 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4024 (execute): Don't include "Internal error" and bug reporting
4025 information in argument of internal_error call.
4026 (process_command): Don't increment error_count after calling
4028 (input_filename): Rename to gcc_input_filename. All users
4030 (main): Call diagnostic_initialize. Register delete_temp_files
4031 with atexit. Use seen_error to test for errors.
4032 * gcc.h: Include diagnostic-core.h.
4033 (fatal_error, error, warning): Remove.
4034 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4035 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4036 (gcc.o): Update dependencies.
4038 2010-05-28 Jeff Law <law@redhat.com>
4040 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4042 * ira.h (ira_bad_reload_regno): Declare
4043 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4045 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4046 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4047 (allocno_reload_assign): Likewise.
4049 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4051 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4054 2010-05-28 Richard Guenther <rguenther@suse.de>
4057 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4058 Stream fixed-point constants mode.
4059 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4061 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4062 Stream fixed-point constants mode.
4063 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4066 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4068 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4069 only place it was called from.
4070 (number_of_latch_executions): Do not return chrec_dont_know when the
4071 may_be_zero is a runtime condition: instead, return a COND_EXPR
4072 including the may_be_zero condition.
4073 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4075 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4078 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4080 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4081 generate COND_EXPRs for degenerate_phi_result.
4083 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4086 * tree-if-conv.c (if_convertible_loop_p): Check the
4087 if-convertibility of phi nodes in non predicated BBs.
4089 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4091 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4093 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4096 * gcc.c (inform, warning, inform): New functions.
4097 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4098 gmsgid. All callers changed.
4099 (notice): Rename to fnotice; add parameter fp. All callers changed.
4100 (fatal_error): Rename to fatal_signal. All users changed.
4101 (fatal): Rename to fatal_error; change cmsgid parameter to
4102 gmsgid. All callers changed.
4103 (process_command): Use warning instead of error for warnings.
4104 (end_going_arg): Don't use _() around argument of error.
4105 (do_spec_1): Use inform for message from %n specs. Use warning
4106 instead of error for warnings.
4107 (main): Use inform for comparison messages. Use warning for
4108 message about unused linker input.
4109 (error): Increment error_count. Print "error: ".
4110 * gcc.h (fatal): Change to fatal_error.
4112 * config/darwin-driver.c (darwin_default_min_version): Use warning
4113 instead of fprintf for warnings.
4114 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4116 2010-05-28 Julian Brown <julian@codesourcery.com>
4118 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4119 (*thumb2_addsi3_compare0_scratch): New.
4120 * config/arm/constraints.md (Pv): New.
4121 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4123 (*addsi3_compare0_scratch): Likewise.
4125 2010-05-28 Jan Hubicka <jh@suse.cz>
4127 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4129 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4130 only on local statics.
4132 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4134 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4136 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4139 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4140 (OPTION_GLIBC): Define.
4142 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4145 * dwarf2out.c (double_int_type_size_in_bits): New function.
4146 (round_up_to_align): Change first argument and return value to
4148 (field_byte_offset): Work internally on double_ints.
4151 * builtins.c (expand_movstr): Use a temporary pseudo instead
4152 of target even when target is not NULL and not const0_rtx, but
4153 fails movstr predicate.
4154 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4156 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4158 * final.c (rest_of_clean_state): Use %m in errors instead of
4160 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4161 instead of strerror.
4162 * toplev.c (process_options): Use %m in errors instead of strerror
4164 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4167 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4169 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4170 (ix86_canonical_va_list_type): Make static. Add declaration.
4171 (ix86_enum_va_list): Make static. Reindent.
4172 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4173 (ix86_canonical_va_list_type): Ditto.
4174 (ix86_enum_va_list): Ditto.
4176 2010-05-28 Richard Guenther <rguenther@suse.de>
4178 * lto-wrapper.c (run_gcc): With -save-temps generate a
4179 user-visible ltrans filename. Fixup ltrans unit numbering.
4181 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4183 * c-common.c (c_common_nodes_and_builtins): Replace use
4184 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4185 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4186 to ix86_enum_va_list.
4187 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4188 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4189 (TARGET_ENUM_VA_LIST_P): Add hook description.
4190 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4191 * target.h (gcc_target): Add enum_va_list hook.
4194 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4195 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4196 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4198 2010-05-28 Alan Modra <amodra@gmail.com>
4201 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4202 emit_library_call machinery to set up __tls_get_addr calls.
4204 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4206 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4208 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4210 Revert fix for PR c++/44188
4211 * c-common.c (is_typedef_decl): Revert the moving of this
4213 * tree.c (is_typedef_decl): ... here.
4214 (typdef_variant_p): Revert the moving of this definition
4215 here from gcc/cp/tree.c.
4216 * c-common.h (is_typedef_decl): Revert the moving of this
4218 * tree.h (is_typedef_decl): ... here.
4219 (typedef_variant_p): Revert the moving of this declaration here
4220 from gcc/cp/cp-tree.h
4221 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4222 (gen_tagged_type_die): Revert the splitting out of ...
4223 (gen_type_die_with_usage): ... this function. Revert the anonymous
4224 tagged type handling.
4225 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4226 typedefs naming anonymous tagged types.
4228 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4230 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4232 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4234 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4235 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4237 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4239 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4240 XER_REGS to CA_REGS throughout.
4241 * config/rs6000/rs6000.h: Same.
4242 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4243 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4244 that mode_iterator "P" is the size for arithmetic carries as well.
4245 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4247 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4250 * combine.c (struct rtx_subst_pair): Define unconditionally.
4251 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4252 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4253 Call make_compound_operation on pair->to.
4254 (propagate_for_debug): Don't call make_compound_operation here.
4255 Always use simplify_replace_fn_rtx.
4257 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4259 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4260 * config/xtensa/xtensa.c (override_options): Check
4261 TARGET_FORCE_NO_PIC and set flag_pic.
4262 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4264 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4267 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4268 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4270 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4272 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4274 * diagnostic.c: Don't include toplev.h.
4275 (progname): Define. Moved from toplev.c.
4276 (seen_error): New function.
4277 * diagnostic.h: Include diagnostic-core.h.
4278 (diagnostic_t, emit_diagnostic): Don't declare here.
4279 * toplev.c (progname): Move to toplev.c.
4280 (emit_debug_global_declarations, compile_file, finalize,
4281 do_compile, toplev_main): Use seen_error.
4282 * toplev.h: Include diagnostic-core.h.
4283 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4284 internal_error, warning, warning_at, error, error_n, error_at,
4285 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4286 verbatim, fnotice, progname): Move to diagnostic-core.h.
4287 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4288 (expand_builtin_expect): Use seen_error.
4289 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4290 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4291 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4292 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4293 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4294 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4295 errorcount for errors.
4296 * c-opts.c (c_common_finish): Use seen_error.
4297 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4298 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4299 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4300 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4301 (get_coverage_counts): Use seen_error.
4302 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4303 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4304 gimplify_body): Use seen_error.
4305 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4306 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4307 * ipa-reference.c (gate_reference): Use seen_error.
4308 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4309 * lambda-code.c: Include diagnostic-core.h instead of
4311 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4312 * lto-compress.c: Include diagnostic-core.h instead of
4314 * lto-section-in.c: Include diagnostic-core.h instead of
4316 * lto-streamer-out.c: Include diagnostic-core.h instead of
4318 * lto-streamer.c: Include diagnostic-core.h instead of
4320 (gate_lto_out): Use seen_error.
4321 * matrix-reorg.c: Include diagnostic-core.h instead of
4323 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4324 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4325 (gate_expand_omp, lower_omp_1): Use seen_error.
4326 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4327 (rest_of_decl_compilation, rest_of_type_compilation,
4328 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4329 * tree-cfg.c (label_to_block_fn): Use seen_error.
4330 * tree-inline.c (optimize_inline_calls): Use seen_error.
4331 * tree-mudflap.c (mudflap_finish_file): Use
4333 * tree-optimize.c (gate_all_optimizations,
4334 gate_all_early_local_passes, gate_all_early_optimizations): Use
4336 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4337 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4338 (varpool_remove_unreferenced_decls,
4339 varpool_assemble_pending_decls): Use seen_error.
4340 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4341 (TOPLEV_H, DIAGNOSTIC_H): Update.
4342 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4343 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4344 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4345 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4346 coverage.o, lambda-code.o): Update dependencies.
4348 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4351 * c-common.c (is_typedef_decl): Move this definition ...
4352 * tree.c (is_typedef_decl): ... here.
4353 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4354 * c-common.h (is_typedef_decl): Move this declaration ...
4355 * tree.h (is_typedef_decl): ... here.
4356 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4357 * dwarf2out.c (is_naming_typedef_decl): New function.
4358 (gen_tagged_type_die): Split out of ...
4359 (gen_type_die_with_usage): ... this function. When an anonymous
4360 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4361 is emitted for the typedef.
4362 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4363 anonymous tagged types.
4365 2010-05-27 Jason Merrill <jason@redhat.com>
4367 * print-tree.c (debug_vec_tree): New fn.
4368 (print_vec_tree): New fn.
4369 * tree.h: Declare them.
4370 * gdbinit.in (pvt): New command.
4372 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4374 * gdbinit.in (pdd): New command.
4376 2010-05-27 Jan Hubicka <jh@suse.cz>
4378 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4379 (update_caller_keys): Return early if there are no callers;
4380 only update fibheap when decresing the key.
4381 (update_callee_keys): Avoid recursion.
4382 (decide_inlining_of_small_functions): When badness does not match;
4383 re-insert into fibheap.
4385 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4387 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4388 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4389 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4390 (ALL_HOST_OBJS): Now a union of the above two.
4391 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4392 all files in ALL_HOST_FRONTEND_OBJS.
4393 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4395 * c-common.c: Pretend to be a backend file by undefining
4396 IN_GCC_FRONTEND (still need rtl.h here).
4398 2010-05-27 Jan Hubicka <jh@suse.cz>
4400 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4401 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4403 2010-05-27 Jan Hubicka <jh@suse.cz>
4405 * sched-ebb.c: Rename struct deps to struct deps_desc.
4407 * sel-sched-ir.c: Likewise.
4408 * sched-deps.c: Likewise.
4409 * sched-int.h: Likewise.
4410 * sched-rgn.c: Likewise.
4412 2010-05-27 Jon Beniston <jon@beniston.com>
4415 * config/lm32/lm32.h: Remove definition of
4416 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4418 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
4421 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4423 2010-05-27 Richard Guenther <rguenther@suse.de>
4425 PR tree-optimization/44284
4426 * tree-vect-stmts.c (vectorizable_assignment): Handle
4427 sign-changing conversions as simple copy.
4429 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4431 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4433 (__gthread_active_p): Check for pthread_create if compiling against
4436 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4438 Support compilation for Android platform. Reimplement -mandroid.
4440 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4441 (*android*): Set ANDROID_DEFAULT.
4442 (arm*-*-linux*): Include linux-android.h.
4443 (arm*-*-eabi*): Don't include previous -mandroid implementation.
4444 * config/arm/eabi.h: Remove, move Android-specific parts ...
4445 * config/linux-android.h: ... here. New file.
4446 * config/arm/eabi.opt: Rename to ...
4447 * config/linux-android.opt: ... this.
4448 (mandroid): Allow -mno-android option. Initialize based on
4450 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4451 Move logic to corresponding LINUX_TARGET_* macros.
4452 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4453 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4454 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4455 Android definitions.
4456 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4457 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4460 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4462 Add support for Bionic C library
4464 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4466 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4467 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4469 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4470 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4471 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4472 to support multiple C libraries. Handle Bionic.
4473 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4474 (BIONIC_DYNAMIC_LINKER64): Define.
4475 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4477 (TARGET_HAS_SINCOS): Enable for Bionic.
4479 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
4480 the last option specified on command line take effect.
4481 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4483 (mglibc, muclibc): Update.
4485 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4486 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4489 * doc/invoke.texi (-mglibc, -muclibc): Update.
4490 (-mbionic): Document.
4492 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4494 * c-common.h (c_register_addr_space): Add prototype.
4495 (ADDR_SPACE_KEYWORD): Remove.
4496 * c-common.c (c_register_addr_space): New function.
4497 (c_addr_space_name): Reimplement.
4498 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4500 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4501 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4503 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4504 Remove TARGET_ADDR_SPACE_KEYWORDS.
4506 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4508 * input.c: New file.
4509 * input.h (main_input_filename): Move declaration to toplev.h.
4510 * toplev.c (input_location, line_table): Move to input.c
4511 * toplev.h (main_input_filename): Move declaration from input.h.
4512 * tree.c (expand_location): Move to input.c.
4513 * Makefile.in (OBJS-common): Add input.o.
4514 (input.o): Add dependencies.
4516 2010-05-27 Richard Guenther <rguenther@suse.de>
4518 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4519 for non-existant files.
4520 (fork_execute): Mark args_name file as deleted.
4522 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4525 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4526 (narrow_signed_type): Likewise.
4528 2010-05-26 Jan Hubicka <jh@suse.cz>
4530 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4531 edge only when checking is enabled; check using former_clone_of;
4532 check inline clones too.
4533 (cgraph_materialize_clone): Record former_clone_of pointer.
4534 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4535 combining redirections; dump args_to_skip bitmap
4536 (cgraph_materialize_all_clones): Do no redirection here.
4537 * ipa-inline.c (inline_transform): Do redirection here.
4538 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
4541 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4543 * config/avr/avr-c.c: Do not include regs.h.
4544 Include cpplib.h for cpp_define and tree.h for c-common.h.
4545 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
4546 * config/avr/t-avr: Fix dependencies for avr-c.o.
4548 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4550 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
4551 string instead of SYMBOL_REF rtx.
4552 * rtl.h (set_stack_check_libfunc): Move prototype from here...
4553 * libfuncs.h: ...to here. Adjust for explow.c change.
4555 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4557 * pretty-print.c: Don't include ggc.h.
4558 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
4559 (identifier_to_locale): Use them for allocation.
4560 * pretty-print.h (identifier_to_locale_alloc,
4561 identifier_to_locale_free): Declare.
4562 * toplev.c (alloc_for_identifier_to_locale): New.
4563 (general_init): Set identifier_to_locale_alloc and
4564 identifier_to_locale_free.
4565 * Makefile.in (pretty-print.o): Update dependencies.
4567 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4569 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
4570 pointer types if they have different alignment or mode.
4572 2010-05-26 Anatoly Sokolov <aesok@post.ru>
4574 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4575 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4576 * config/sparc/sparc-protos.h (function_value): Remove declaration.
4577 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
4578 sparc_function_value_regno_p): New functions.
4579 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4580 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4581 (function_value): Rename to...
4582 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
4583 argument to 'outgoing'.
4584 (function_arg_record_value, function_arg_union_value,
4585 function_arg_vector_value): Update comment.
4587 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4589 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
4590 (fde_needed_for_eh_p): New predicate.
4591 (output_call_frame_info): Use it throughout to decide whether FDEs
4592 are needed for EH purpose.
4593 (dwarf2out_begin_prologue): Reorder assignments.
4595 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4597 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
4598 special case loop->header.
4599 (is_predicated): New.
4600 (if_convertible_loop_p): Call it.
4602 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4604 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
4605 iterator in parameter. Do not generate code during the analysis.
4606 (tree_if_convert_cond_stmt): Removed.
4607 (tree_if_convert_stmt): Removed.
4608 (predicate_bbs): New.
4609 (if_convertible_loop_p): Call predicate_bbs.
4610 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
4611 now contains all the analysis part.
4613 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4615 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
4616 statements in the analysis part.
4617 (tree_if_convert_stmt): Update comment.
4618 (remove_conditions_and_labels): New.
4619 (combine_blocks): Call remove_conditions_and_labels.
4620 (tree_if_conversion): Update comment.
4622 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4624 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
4625 than 2 predecessors or more than 2 successors.
4627 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4629 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
4630 of loops in which the data dependence analysis fails.
4632 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4634 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
4635 CDI_POST_DOMINATORS.
4636 (tree_if_conversion): Same.
4638 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4640 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
4642 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4644 * tree-if-conv.c: Update copyright years. Fix comments.
4647 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
4649 * builtin-types.def (BT_INT128): New primitive type.
4650 (BT_UINT128): Likewise.
4651 * c-common.c (c_common_r): Add __int128 keyword.
4652 (c_common_type_for_size): Handle __int128.
4653 (c_common_type_for_mode): Likewise.
4654 (c_common_signed_or_unsigned_type): Likewise.
4655 (c_common_nodes_and_builtins): Add builtin type
4656 if target supports 128-bit integer scalar.
4657 * c-common.h (enum rid): Add RID_INT128.
4658 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
4659 if target supports 128-bit integer scalar.
4660 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
4661 (finish_declspecs): Likewise.
4662 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
4663 (c_token_starts_declspecs): Likewise.
4664 (c_parser_declspecs): Likewise.
4665 (c_parser_attributes): Likewise.
4666 (c_parser_objc_selector): Likewise.
4667 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
4668 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
4669 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
4670 * tree.c (make_or_reuse_type): Likewise.
4671 (make_unsigned_type): Likewise.
4672 (build_common_tree_nodes_2): Likewise.
4673 * tree.h (enum integer_type_kind): Add itk_int128 and
4674 itk_unsigned_int128.
4675 (int128_integer_type_node): New define.
4676 (int128_unsigned_type_node): New define.
4677 * doc/extend.texi: Add documentation about __int128 type.
4679 2010-05-26 Richard Guenther <rguenther@suse.de>
4681 * tree-ssa-sccvn.c (copy_nary): Adjust.
4682 (copy_phis): Rename to ...
4683 (copy_phi): ... this. Adjust.
4684 (copy_references): Rename to ...
4685 (copy_reference): ... this. Adjust.
4686 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
4687 result into the valid table.
4689 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4691 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
4692 insn-config.h, insn-codes.h, recog.h, and optabs.h.
4694 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4696 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
4698 2010-05-26 Richard Guenther <rguenther@suse.de>
4700 * opts.c (common_handle_option): Handle OPT_Ofast.
4702 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4704 * diagnostic.c: Don't include opts.h.
4705 (permissive_error_option): Define.
4706 (diagnostic_initialize): Take n_opts parameter. Allocate memory
4707 for classify_diagnostic. Don't use memset for
4708 classify_diagnostic. Initialize new and recently added fields.
4709 (diagnostic_classify_diagnostic): Use context->n_opts instead of
4711 (diagnostic_report_diagnostic): Pass context parameter to
4712 diagnostic_report_warnings_p. Use option_enabled and option_name
4714 (emit_diagnostic): Use permissive_error_option.
4715 (permerror): Likewise.
4716 * diagnostic.h: Don't include options.h.
4717 (struct diagnostic_context): Add n_opts, opt_permissive,
4718 inhibit_warnings, warn_system_headers, option_enabled and
4719 option_name fields. Change classify_diagnostic to a pointer.
4720 * opts-diagnostic.h: New file.
4721 * opts.c: Include opts-diagnostic.h.
4722 (common_handle_option): Set global_dc fields for -Wfatal-errors,
4723 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
4724 (option_name): New function.
4725 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
4726 (c_common_handle_option): Set global_dc->permissive for
4728 * c-common.c (c_cpp_error): Save and restore
4729 global_dc->warn_system_headers, not variable warn_system_headers.
4730 * toplev.c: Include opts-diagnostic.h.
4731 (general_init): Update call to diagnostic_initialize. Set
4732 global_dc->show_column, global_dc->option_enabled and
4733 global_dc->option_name.
4734 (process_options): Don't set global_dc fields here.
4735 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
4736 (diagnostic.o, opts.o, toplev.o): Update dependencies.
4738 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4740 * config/picochip/picochip.md (movsi): Split a movsi from a
4743 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4745 * ggc-zone.c: Update copyright year.
4746 (poison_region): Mark memory for Valgrind as undefined before
4747 memset () call and inaccessible afterwards.
4748 (ggc_pch_total_size): Change type of i to int.
4750 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4752 * ggc-common.c (ggc_free_overhead): Allow empty slot.
4754 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4756 * ggc-common.c: Update copyright year.
4757 (ggc_rlimit_bound): Remove prototype. Compile only if
4758 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
4759 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
4760 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
4761 (ggc_min_heapsize_heuristic): Likewise.
4763 2010-05-26 Richard Guenther <rguenther@suse.de>
4765 PR rtl-optimization/44164
4766 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
4767 no-common access-path disambiguation.
4768 (indirect_ref_may_alias_decl_p): Adjust.
4769 (indirect_refs_may_alias_p): Likewise.
4770 (refs_may_alias_p_1): Likewise.
4772 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4774 * c-typeck.c: Do not include expr.h.
4776 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4778 * rtl.h (decl_default_tls_model): Move prototype from here...
4779 * output.h: ...to here.
4780 * c-decl.c: Do not include rtl.h.
4781 * c-pragma.c: Likewise.
4782 * c-parser.c: Likewise.
4783 * c-gimplify.c: Likewise. And also not hard-reg-set.
4784 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
4785 FIXME note for it. Add a FIXME note for expr.h.
4786 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
4787 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
4790 2010-05-26 Jakub Jelinek <jakub@redhat.com>
4793 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
4794 or total_size is larger than red zone size for non-V4 ABI, emit a
4795 stack_tie resp. frame_tie insn before stack pointer restore.
4796 * config/rs6000/rs6000.md (frame_tie): New insn.
4798 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
4800 * function.h (struct function): Add can_throw_non_call_exceptions bit.
4801 * lto-streamer-in.c (input_function): Stream it in.
4802 * lto-streamer-out.c (output_function): Stream it out.
4803 * function.c (allocate_struct_function): Set it.
4804 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
4805 for flag_non_call_exceptions.
4806 * cfgbuild.c (control_flow_insn_p): Likewise.
4807 (make_edges): Likewise.
4808 * cfgexpand.c (expand_stack_alignment): Likewise.
4809 * combine.c (distribute_notes): Likewise.
4810 * cse.c (cse_extended_basic_block): Likewise.
4811 * except.c (insn_could_throw_p): Likewise.
4812 * gcse.c (simple_mem): Likewise.
4813 * ipa-pure-const.c (check_call): Likewise.
4814 (check_stmt ): Likewise.
4815 * lower-subreg.c (lower-subreg.c): Likewise.
4816 * optabs.c (emit_libcall_block): Likewise.
4817 (prepare_cmp_insn): Likewise.
4818 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
4819 * postreload.c (rest_of_handle_postreload): Likewise.
4820 * reload1.c (reload_as_needed): Likewise.
4821 (emit_input_reload_insns): Likewise.
4822 (emit_output_reload_insns): Likewise.
4823 (fixup_abnormal_edges): Likewise.
4824 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
4825 * store-motion.c (find_moveable_store): Likewise.
4826 * tree-eh.c (stmt_could_throw_p): Likewise.
4827 (tree_could_throw_p): Likewise.
4828 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4829 * config/arm/arm.c (arm_expand_prologue): Likewise.
4830 (thumb1_expand_prologue): Likewise.
4831 * config/rx/rx.md (cbranchsf4): Likewise.
4833 * config/s390/s390.c (s390_emit_prologue): Likewise.
4834 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
4835 (inline_forbidden_into_p): New predicate.
4836 (expand_call_inline): Use it to forbid inlining.
4837 (tree_can_inline_p): Likewise.
4839 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4841 * config/i386/i386-c.c: Do not include rtl.h.
4842 * config/i386/t-i386: Update dependencies.
4844 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4846 * attribs.c: Do not include rtl.h.
4847 * Makefile.in: Update dependencies.
4849 2010-05-25 Anatoly Sokolov <aesok@post.ru>
4851 * double-int.h (double_int_and): New.
4852 * combine.c (try_combine): Clean up, use double_int_* and
4853 immed_double_int_const functions.
4855 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4857 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
4858 stderr to /dev/null instead of grep -q.
4859 * configure: Regenerate.
4861 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4863 * Makefile.in (EXCEPT_H): Fix typo.
4865 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
4867 * ira-build.c (update_conflict_hard_reg_costs): New.
4868 (ira_build): Call update_conflict_hard_reg_costs.
4870 2010-05-25 Jakub Jelinek <jakub@redhat.com>
4873 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
4875 (intersect_loc_chains): Walk the s2var's loc_chain together
4876 with s1node chain as long as the locations are equal, don't
4877 call find_loc_in_1pdv in that case.
4880 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
4881 (copy_bind_expr): ... instead of here.
4882 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
4883 if the block hasn't been remapped.
4884 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
4885 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
4887 2010-05-25 Richard Guenther <rguenther@suse.de>
4890 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
4891 out-of-bounds array accesses.
4893 2010-05-25 Richard Guenther <rguenther@suse.de>
4895 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
4896 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
4897 (run_gcc): Re-organize to make cleanup easier.
4899 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4901 * config/s390/s390.c (optimization_options): Fix and move the
4902 flag_prefetch_loop_arrays override ...
4903 (override_options): ... here.
4905 2010-05-25 Joseph Myers <joseph@codesourcery.com>
4907 * diagnostic.c: Don't include plugin.h.
4908 (diagnostic_report_diagnostic): Don't handle plugins specially
4909 here. Pass context to internal_error callback.
4910 * diagnostic.h (struct diagnostic_context): Add context parameter
4911 to internal_error callback.
4912 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
4913 * plugin.h (struct diagnostic_context): Declare.
4914 (warn_if_plugins, plugins_internal_error_function): Declare.
4915 * toplev.c (general_init): Set global_dc->internal_error.
4916 * Makefile.in (diagnostic.o): Update dependencies.
4918 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
4920 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
4921 * config/rs6000/t-darwin64: New.
4922 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
4925 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
4928 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
4929 match the original (and intended) behaviour before r159557. This
4930 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
4933 2010-05-25 Richard Guenther <rguenther@suse.de>
4935 * doc/invoke.texi: Document -Ofast.
4936 * target.h (struct gcc_target): Add handle_ofast.
4937 * target-def.h (TARGET_HANDLE_OFAST): Add.
4938 (TARGET_INITIALIZER): Adjust.
4939 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
4940 * common.opt (Ofast): Add.
4942 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
4944 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
4945 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
4947 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
4950 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
4951 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
4952 false_rtx. Use false_rtx to compute the correct *ptest for reversed
4953 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
4955 2010-05-25 Jakub Jelinek <jakub@redhat.com>
4957 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
4958 DW_OP_minus with negated offset instead of DW_OP_plus.
4959 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
4961 2010-05-25 Wei Guozhi <carrot@google.com>
4963 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
4964 tst instruction and a new alternative.
4965 * config/arm/constraints.md (Pu): New constraint.
4967 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
4969 * function.c (assign_stack_local_1): Initialize variable
4970 to avoid warning when bootstrapping at -O3.
4972 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
4974 * configure.ac (all_lang_makefiles): Remove everything related to it.
4975 * configure: Regenerate.
4976 * Makefile.in: Fix reference to ada Make-lang.in.
4977 Remove support for LANG_MAKEFILES.
4979 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
4980 Sandra Loosemore <sandra@codesourcery.com>
4982 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
4983 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
4984 description. Add arm_neon_fp16_ok.
4985 (Add Options): Add arm_neon and arm_neon_fp16.
4987 2010-05-24 Joseph Myers <joseph@codesourcery.com>
4989 * diagnostic.c: Don't include flags.h.
4990 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
4991 context parameters. Check flags in the context passed as a parameter.
4992 (diagnostic_build_prefix): Add context parameter. Check
4993 show_column flag in context.
4994 (diagnostic_action_after_output): Check fatal_errors flag in context.
4995 (diagnostic_report_current_module): Check show_column flag in context.
4996 (default_diagnostic_starter): Update call to
4997 diagnostic_build_prefix.
4998 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
4999 (emit_diagnostic): Pass context to permissive_error_kind.
5000 (permerror): Pass context to permissive_error_kind.
5001 * diagnostic.h (struct diagnostic_context): Add show_column,
5002 pedantic_errors, permissive and fatal_errors fields.
5003 (diagnostic_build_prefix): Update prototype.
5005 * toplev.c (process_options): Set flags in global_dc from
5006 flag_show_column, flag_pedantic_errors, flag_permissive,
5008 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5009 to diagnostic_build_prefix.
5010 * Makefile.in (diagnostic.o): Update dependencies.
5012 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5014 * config/i386/ia32intrin.h (__crc32q): Define only if
5015 __SSE4_2__ is defined.
5017 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5021 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5022 DECL_VISIBILITY_SPECIFIED.
5023 (emutls_decl): Set DECL_PRESERVE_P and copy
5024 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5025 (emutls_finalize_control_var): New callback.
5026 (emutls_finish): Finalize emutls control variables.
5027 * toplev.c (compile_file): Move the call to emutls_finish ()
5028 before varpool_assemble_pending_decls ().
5030 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5032 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5033 added to the preprocessor condition.
5035 2010-05-24 Paul Brook <paul@codesourcery.com>
5037 * gengtype-lex.l: Add HARD_REG_SET.
5038 * expr.c (expand_expr_real_1): Record writes to hard registers.
5039 * function.c (rtl_data): Add asm_clobbers.
5040 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5041 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5042 Use crtl->asm_clobbers.
5044 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5046 * doc/makefile.texi (Makefile): Mention stages 'profile'
5047 and 'feedback' for profiledbootstrap.
5049 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5052 * config/i386/i386.c (def_builtin): Properly check
5053 OPTION_MASK_ISA_64BIT.
5055 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5057 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5058 typedefs with different but compatible types. Allow duplicate
5059 typedefs with the same type except for pedantic non-C1X, but give
5060 warning for variably modified types.
5061 * c-typeck.c (tagged_types_tu_compatible_p,
5062 function_types_compatible_p, type_lists_compatible_p,
5063 comptypes_internal): Add parameter different_types_p; set
5064 *different_types_p for different but compatible types. All
5066 (comptypes_check_different_types): New.
5067 * c-tree.h (comptypes_check_different_types): Declare.
5069 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5071 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5072 * jump.c: Include basic-block.h.
5073 * profile.c: Likewise.
5074 * tree-profile.c: Likewise.
5075 * coverage.c: Likewise.
5076 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5077 (optimize_function_for_speed_p): Likewise.
5078 * function.h (optimize_function_for_size_p,
5079 optimize_function_for_speed_p): Moved here from basic-block.h.
5080 * Makefile.in: Update dependencies.
5082 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5084 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5085 before calling make; allow override through $MAKE.
5086 * doc/invoke.texi (Optimize Options): Document override.
5088 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5090 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5091 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5092 (rs6000_mode_dependent_address_ptr): Make static.
5093 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5094 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5097 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5100 * config/i386/i386.c: Make sure that the correct regparm is passed.
5102 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5104 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5105 * sbitmap.c: ...to here to internalize sbitmap element access.
5106 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5107 Explain why basic-block.h is included.
5108 * function.h: Include tm.h for CUMULATIVE_ARGS.
5109 * Makefile.in: Update dependencies.
5111 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5113 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5115 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5116 * sbitmap.c: Include sbitmap.h.
5117 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5118 hard-reg-set.h. Split everything related to regsets out from here...
5119 * regset.h: ...to here. New file.
5120 * df.h: Include regset.h and sbitmap.h.
5121 * tree-flow.h: Likewise.
5122 * cfgloop.h: Likewise.
5123 * except.h: Do not include sbitmap.h. Include hashtab.h.
5124 * cgraph.h: Include vec.h and function.h.
5125 * reload.h (struct insn_chain): Change types of live_throughout
5126 and dead_or_set from regset_head to bitmap_head.
5127 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5128 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5129 spilled_regs from regset_head to bitmap_head to avoid dependency
5131 * sel-sched-ir.h: Include regset.h.
5132 * reload.c: Include df.h before reload.h.
5133 * caller-save.c: Likewise.
5134 * reload1.c: Likewise.
5136 (mark_elimination): Update type of r to bitmap, consistent with
5138 * dominance.c: Include bitmap.h.
5139 * modulo-sched.c: Include df.h.
5140 * cfganal.c: Include bitmap.h and sbitmap.h.
5141 * cfgbuild.c: Include sbitmap.h.
5142 * lcm.c: Include sbitmap.h.
5143 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5144 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5145 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5146 * cselib.c: Include bitmap.h.
5147 * tree-optimize.c: Include regset.h.
5148 * stmt.c: Include bitmap.h.
5149 * Makefile.in: Update dependencies.
5151 2010-05-22 Jan Hubicka <jh@suse.cz>
5153 * cgraph.h (struct varpool_node): Add same_comdat_group.
5154 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5156 (output_varpool): Update call of lto_output_varpool_node.
5157 (input_varpool): Read same_comdat_group pointer.
5158 (input_varpool_1): Fixup same_comdat_group pointer.
5159 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5160 group is needed, all are.
5161 * varpool.c (varpool_remove_node): Remove node from same comdat group
5163 (varpool_analyze_pending_decls): Walk same comdat groups.
5165 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5167 * rtl.h (union rtunion_def): Remove rt_bit member.
5168 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5169 * print-rtl (print_rtx): Do not print the member.
5170 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5171 * gengenrtl.c (type_from_format): Likewise.
5172 (accessor_from_format): Likewise.
5174 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5176 * dbgcnt.c: Include toplev.h instead of errors.h.
5177 * ira-emit.c: Don't include errors.h.
5178 * ira.c: Include toplev.h instead of errors.h.
5179 * lto-compress.c: Include toplev.h instead of errors.h.
5180 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5181 ira.o, dbgcnt.o): Update dependencies.
5183 2010-05-22 Richard Guenther <rguenther@suse.de>
5185 * gimple.c (gimple_types_compatible_p): Check type qualifications
5186 before merging pointer to complete and pointer to incomplete type.
5187 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5188 we use our own resolution algorithm. The gold linker plugin
5189 doesn't do the job we want it to do here.
5191 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5193 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5194 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5195 (sparc_mode_dependent_address_p): New function.
5197 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5199 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5201 * timevar.c: Do not include any core headers.
5202 (timevar_print): De-i18n-ize.
5203 (print_time): Likewise.
5204 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5206 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5208 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5210 (diagnostic_initialize): Initialize x_data not last_function.
5211 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5212 (default_diagnostic_starter): Call
5213 diagnostic_report_current_module not
5214 diagnostic_report_current_function.
5215 (diagnostic_report_diagnostic): Initialize x_data not
5217 (verbatim): Likewise.
5218 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5220 (struct diagnostic_context): Change last_function to x_data.
5221 (diagnostic_auxiliary_data): Replace with
5222 diagnostic_context_auxiliary_data and
5223 diagnostic_info_auxiliary_data.
5224 (diagnostic_last_function_changed, diagnostic_set_last_function,
5225 diagnostic_report_current_function): Move to tree-diagnostic.h.
5226 (print_declaration, dump_generic_node, print_generic_stmt,
5227 print_generic_stmt_indented, print_generic_expr,
5228 print_generic_decl, debug_c_tree, dump_omp_clauses,
5229 print_call_name, debug_generic_expr, debug_generic_stmt,
5230 debug_tree_chain, default_tree_printer): Move to
5231 tree-pretty-print.h.
5232 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5233 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5234 gimple-pretty-print.h.
5235 * pretty-print.c: Don't include tree.h
5236 (pp_base_format): Don't handle %K here.
5237 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5238 * pretty-print.h (text_info): Change abstract_origin to x_data.
5239 (pp_tree_identifier, pp_unsupported_tree,
5240 pp_base_tree_identifier): Move to tree-pretty-print.h.
5241 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5242 tree-pretty-print.h: New files.
5243 * tree-pretty-print.c: Include tree-pretty-print.h.
5244 (percent_K_format): New. Moved from pretty-print.c.
5245 (pp_base_tree_identifier): Move from pretty-print.c.
5246 * c-objc-common.c: Include tree-pretty-print.h.
5247 (c_tree_printer): Handle %K here.
5248 * langhooks.c: Include tree-diagnostic.h.
5249 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5250 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5251 (default_tree_printer): Handle %K using percent_K_format.
5252 (general_init): Use default_tree_diagnostic_starter.
5253 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5254 (free_lang_data): Use default_tree_diagnostic_starter.
5255 * c-pretty-print.c: Include tree-pretty-print.h.
5256 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5257 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5258 * dwarf2out.c: Include tree-pretty-print.h.
5259 * except.c: Include tree-pretty-print.h.
5260 * gimple-pretty-print.c: Include tree-pretty-print.h and
5261 gimple-pretty-print.h.
5262 * gimplify.c: Include tree-pretty-print.h.
5263 * graphite-poly.c: Include tree-pretty-print.h and
5264 gimple-pretty-print.h.
5265 * ipa-cp.c: Include tree-pretty-print.h.
5266 * ipa-inline.c: Include gimple-pretty-print.h.
5267 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5268 * ipa-pure-const.c: Include gimple-pretty-print.h.
5269 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5270 gimple-pretty-print.h.
5271 * ipa-type-escape.c: Include tree-pretty-print.h.
5272 * print-rtl.c: Include tree-pretty-print.h.
5273 * print-tree.c: Include gimple-pretty-print.h.
5274 * sese.c: Include tree-pretty-print.h.
5275 * tree-affine.c: Include tree-pretty-print.h.
5276 * tree-browser.c: Include tree-pretty-print.h.
5277 * tree-call-cdce.c: Include gimple-pretty-print.h.
5278 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5279 * tree-chrec.c: Include tree-pretty-print.h.
5280 * tree-data-ref.c: Include tree-pretty-print.h and
5281 gimple-pretty-print.h.
5282 * tree-dfa.c: Include tree-pretty-print.h.
5283 * tree-if-conv.c: Include tree-pretty-print.h and
5284 gimple-pretty-print.h.
5285 * tree-inline.c: Include tree-pretty-print.h.
5286 * tree-into-ssa.c: Include tree-pretty-print.h and
5287 gimple-pretty-print.h.
5288 * tree-nrv.c: Include tree-pretty-print.h.
5289 * tree-object-size.c: Include tree-pretty-print.h and
5290 gimple-pretty-print.h.
5291 * tree-outof-ssa.c: Include tree-pretty-print.h and
5292 gimple-pretty-print.h.
5293 * tree-parloops.c: Include tree-pretty-print.h and
5294 gimple-pretty-print.h.
5295 * tree-predcom.c: Include tree-pretty-print.h and
5296 gimple-pretty-print.h.
5297 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5298 gimple-pretty-print.h.
5299 * tree-sra.c: Include tree-pretty-print.h.
5300 * tree-ssa-address.c: Include tree-pretty-print.h.
5301 * tree-ssa-alias.c: Include tree-pretty-print.h.
5302 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5303 gimple-pretty-print.h.
5304 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5305 * tree-ssa-copy.c: Include tree-pretty-print.h and
5306 gimple-pretty-print.h.
5307 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5308 * tree-ssa-dce.c: Include tree-pretty-print.h and
5309 gimple-pretty-print.h.
5310 * tree-ssa-dom.c: Include tree-pretty-print.h and
5311 gimple-pretty-print.h.
5312 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5313 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5314 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5315 * tree-ssa-live.c: Include tree-pretty-print.h and
5316 gimple-pretty-print.h.
5317 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5318 gimple-pretty-print.h.
5319 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5320 gimple-pretty-print.h.
5321 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5322 gimple-pretty-print.h.
5323 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5324 gimple-pretty-print.h.
5325 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5326 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5327 * tree-ssa-operands.c: Include tree-pretty-print.h and
5328 gimple-pretty-print.h.
5329 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5330 gimple-pretty-print.h.
5331 * tree-ssa-pre.c: Include tree-pretty-print.h and
5332 gimple-pretty-print.h.
5333 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5334 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5335 gimple-pretty-print.h.
5336 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5337 gimple-pretty-print.h.
5338 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5339 * tree-ssa-ter.c: Include tree-pretty-print.h and
5340 gimple-pretty-print.h.
5341 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5342 * tree-ssa.c: Include tree-pretty-print.h and
5343 gimple-pretty-print.h.
5344 * tree-stdarg.c: Include gimple-pretty-print.h.
5345 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5346 * tree-tailcall.c: Include tree-pretty-print.h and
5347 gimple-pretty-print.h.
5348 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5349 gimple-pretty-print.h.
5350 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5351 gimple-pretty-print.h.
5352 * tree-vect-loop.c: Include tree-pretty-print.h and
5353 gimple-pretty-print.h.
5354 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5355 * tree-vect-slp.c: Include tree-pretty-print.h and
5356 gimple-pretty-print.h.
5357 * tree-vect-stmts.c: Include tree-pretty-print.h and
5358 gimple-pretty-print.h.
5359 * tree-vectorizer.c: Include tree-pretty-print.h.
5360 * tree-vrp.c: Include tree-pretty-print.h and
5361 gimple-pretty-print.h.
5362 * value-prof.c: Include tree-pretty-print.h and
5363 gimple-pretty-print.h.
5364 * var-tracking.c: Include tree-pretty-print.h.
5365 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5366 (tree-diagnostic.o): New dependencies.
5367 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5368 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5369 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5370 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5371 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5372 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5373 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5374 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5375 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5376 tree-ssa-address.o, tree-ssa-loop-niter.o,
5377 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5378 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5379 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5380 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5381 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5382 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5383 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5384 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5385 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5386 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5387 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5388 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5389 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5390 tree-switch-conversion.o, var-tracking.o, value-prof.o,
5391 cfgexpand.o, pretty-print.o): Update dependencies.
5393 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
5395 * tree-ssa-structalias.c: Remove tm_p.h from include.
5397 2010-05-21 Jeff Law <law@redhat.com>
5399 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5401 2010-05-21 Jason Merrill <jason@redhat.com>
5403 * tree-eh.c (cleanup_is_dead_in): New.
5404 (lower_try_finally): Don't generate a dead cleanup region.
5405 (lower_cleanup): Likewise.
5407 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5410 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5411 unchain each use from the cyclic next_regno_use chain first.
5413 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5415 * real: Do not include gmp.h, mpfr.h, and mpc.h.
5416 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5417 (real_value_negate, real_value_abs): New prototypes.
5418 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5419 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5420 new include file for interface between MPFR and REAL_VALUE_TYPE.
5421 * real.c: Include realmpfr.h.
5422 (real_arithmetic2): Remove legacy function.
5423 (real_value_negate): New.
5424 (real_value_abs): New.
5425 (mfpr_from_real, real_from_mpfr): Move from here...
5426 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5427 * builtins.c: Include realmpfr.h.
5428 * fold-const.c: Include realmpfr.h.
5429 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5430 (fold_negate_const): Likewise.
5431 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5432 * toplev.c: Include realmpfr.h.
5433 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5434 and real_value_negate.
5435 * fixed-value.c (check_real_for_fixed_mode): Likewise.
5436 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5437 (vfp3_const_double_index): Likewise.
5438 (arm_print_operand): Likewise.
5439 * Makefile.in: Update dependencies.
5441 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5443 * config/s390/s390.c (override_options): Increase the default
5444 of max-completely-peel-times.
5446 2010-05-21 Julian Brown <julian@codesourcery.com>
5447 Mark Mitchell <mark@codesourcery.com>
5449 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5450 sibling calls for Thumb-1.
5451 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5452 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5454 (*call_insn, *call_value_insn): Don't use for Thumb-2.
5455 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5457 (return): New expander.
5458 (*arm_return): New name for ARM return insn.
5459 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5461 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
5463 * config.gcc (sparc64-*-rtems*): New target.
5465 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5467 * tree.c (build_function_decl_skip_args): Fix grammar.
5468 (build_function_type_list_1): Fix typos, adjust formatting.
5470 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5472 * tree.h: Include real.h and fixed-value.h as basic datatypes.
5473 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5474 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5475 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5476 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5477 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5478 tree-pretty-print.c, tree-loop-distribution.c,
5479 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5480 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5481 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5482 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5483 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5484 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5485 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5486 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5487 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5488 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5489 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5490 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5491 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5492 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5493 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5494 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5495 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5496 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5497 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5498 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5499 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5500 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5501 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5502 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5503 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5504 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5505 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5506 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5507 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5508 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5509 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5510 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5511 config/score/score7.c, config/score/score.c, config/arm/arm.c,
5512 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5513 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5514 config/bfin/bfin.c: Clean up redundant includes.
5515 * Makefile.in: Update accordingly.
5517 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5520 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5521 statement has no arguments.
5523 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
5526 * varasm.c (emutls_decl): Merge attributes to new decl.
5528 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
5531 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5532 around the uniquized constructor if its type requires a conversion.
5534 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5537 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5538 at -O0 goto_locus of any of the incoming edges differs from
5539 goto_locus of outgoing edge, or gimple_location of any of the
5542 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
5544 * ira.c (ira_non_ordered_class_hard_regs): Define.
5545 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
5546 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
5547 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
5548 cost of unaligned hard regs when allocating multi-reg pseudos.
5550 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5552 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
5553 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
5554 for TARGET_NO_FLOAT.
5555 * config/mips/mips.c (mips_file_start): Expand conditional expression
5556 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
5557 (mips_override_options): Move -mno-float override -msoft-float and
5559 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
5560 Condition(TARGET_SUPPORTS_NO_FLOAT).
5561 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
5562 __mips_no_float here.
5563 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
5564 (TARGET_SUPPORTS_NO_FLOAT): Define.
5565 * config/mips/sdemtk.opt: Delete.
5567 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
5569 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
5571 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
5574 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
5575 * configure: Regenerate.
5576 * config.in: Regenerate.
5577 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
5578 instead of sahf only for 64bit targets.
5580 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5583 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
5584 setup_ref_regs for DEBUG_INSNs.
5586 2010-05-20 Jan Hubicka <jh@suse.cz>
5589 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
5591 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5594 * df-scan.c (df_ref_compare): Stabilize sort.
5596 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5598 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
5599 argument. Don't use DW_OP_piece if offset is non-zero,
5600 put offset into second DW_OP_bit_piece argument.
5601 (dw_sra_loc_expr): Adjust callers. For memory expressions
5604 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
5607 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
5608 settings for 16-bit-constant "addo" alternative.
5610 2010-05-19 James E. Wilson <wilson@codesourcery.com>
5612 * config/mips/mips-dsp.md (add<DSPV:mode>3,
5613 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
5616 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
5617 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
5620 2010-05-19 Joseph Myers <joseph@codesourcery.com>
5622 * diagnostic.c (FLOAT, FFS): Don't undefine.
5623 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
5624 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
5627 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5629 * combine.c (propagate_for_debug): Call make_compound_operation
5630 on the source value.
5631 (try_combine): When implementing a split chosen by find_split_point,
5632 either copy i2src or set it to null. Assert that i2src is not null
5633 before substituting into CALL_INSN_FUNCTION_USAGE.
5635 2010-05-19 Anatoly Sokolov <aesok@post.ru>
5637 * double-int.h (double_int_ior): New function.
5638 * tree.h (build_int_cst_wide_type): Remove.
5639 * tree.c (build_int_cst_wide_type): Remove.
5640 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
5641 of build_int_cst_wide_type.
5642 * stor-layout.c (set_sizetype): (Ditto.).
5643 * dojump.c (do_jump): Use build_int_cstu instead of
5644 build_int_cst_wide_type.
5646 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
5648 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
5649 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
5650 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
5651 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
5652 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
5653 propagate the 'data' argument to copy_tree_r.
5654 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
5655 Propagate 'data' argument to walk_tree.
5656 (copy_if_shared): New function.
5657 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
5658 (unmark_visited): New function.
5659 (unshare_body): Call copy_if_shared instead of doing it manually.
5660 (unvisit_body): Call unmark_visited instead of doing it manually.
5662 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
5664 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
5665 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
5666 * hooks.c: Likewise.
5667 * target-def.h (TARGET_FOLD_BUILTIN): Define to
5668 hook_tree_tree_int_treep_bool_null.
5669 * target.h (struct gcc_target): Update signature of fold_builtin
5671 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
5672 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
5673 instead of the call expression.
5674 (fold_builtin_call_array): Pass n and argarray directly.
5675 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
5677 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
5678 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
5679 `i' and use it in place of `arity'.
5680 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
5681 Dereference `args' directly.
5682 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
5684 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5686 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5688 (Directives): Document optional dg-require-effective-target
5691 2010-05-19 Richard Guenther <rguenther@suse.de>
5694 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
5696 2010-05-19 Richard Guenther <rguenther@suse.de>
5698 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
5699 * common.opt (fwhopr=): New.
5700 * opts.c (common_handle_option): Handle OPT_fwhopr.
5701 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
5702 * collect2.c (main): Match -fwhopr*.
5703 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
5704 Execute ltrans stage in parallel when jobs is bigger than 1.
5706 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5708 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5709 pentiumpro on Solaris 8/x86 with Sun as.
5710 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
5712 (gcc_cv_as_ix86_quad): Check for .quad directive.
5713 * configure: Regenerate.
5714 * config.in: Regenerate.
5715 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
5717 2010-05-19 Martin Jambor <mjambor@suse.cz>
5719 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
5720 also for indirect edges. Actual printing moved...
5721 (ipa_print_node_jump_functions_for_edge): ...here.
5722 (ipa_compute_jump_functions): Renamed to
5723 ipa_compute_jump_functions_for_edge and made static.
5724 (ipa_compute_jump_functions): New function.
5725 (make_edge_direct_to_target): Check if the number of arguments on
5726 the newly direct edge is the same as the number of parametrs of
5728 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
5729 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
5730 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5731 analysis functions unconditionally, call the new
5732 ipa_analyze_params_uses on the node instead of every edge.
5734 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
5736 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
5738 (dump_mem_ref): Adopt debug code to handle a tree as step. This
5739 also checks for a constant int vs. non-constant but
5740 loop-invariant steps.
5741 (find_or_create_group): Change the sort algorithm to only consider
5742 steps that are constant ints.
5743 (idx_analyze_ref): Adopt code to handle a tree instead of a
5744 HOST_WIDE_INT for step.
5745 (gather_memory_references_ref): Handle tree instead of int and be
5746 prepared to see a NULL_TREE.
5747 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
5748 prefetches if the step cannot be calculated at compile time.
5749 (issue_prefetch_ref): Issue prefetches for non-constant but
5750 loop-invariant steps.
5752 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5755 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5757 * tree.h (build_call_list): Remove.
5758 * tree.c (build_call_list): Remove.
5760 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5762 * tree.h (build_call_list): Remove.
5763 * tree.c (build_call_list): Remove.
5765 2010-05-18 Jan Hubicka <jh@suse.cz>
5767 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
5769 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
5771 PR rtl-optimization/43332
5772 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
5774 2010-05-18 Anatoly Sokolov <aesok@post.ru>
5776 * tree.h (build_int_cstu): Implement as static inline.
5777 * tree.c (build_int_cstu): Remove function.
5778 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
5781 2010-05-18 Richard Guenther <rguenther@suse.de>
5784 * lto-wrapper.c (verbose): New variable. Initialize from -v.
5785 (debug): Initialize from -save-temps.
5786 (collect_execute): Print command-line when verbose.
5787 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
5788 for ltrans invocation. Produce -dumpbase flag again.
5789 (process_args): Remove.
5791 * collect2.c (maybe_run_lto_and_relink): Only pass object
5792 files to lto-wrapper.
5793 * gcc.c (LINK_COMMAND_SPEC): Likewise.
5795 2010-05-18 Jan Hubicka <jh@suse.cz>
5797 * opts.c (decode_options): Do not disable whopr at ipa_cp.
5798 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
5800 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
5803 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
5805 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
5808 2010-05-18 Jakub Jelinek <jakub@redhat.com>
5811 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
5814 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
5816 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
5817 lto-macho as lto_binary_reader.
5819 * darwin.c (darwin_asm_named_section): Do not add assembler comment
5820 after .section directive; just print it before the directive instead.
5822 2010-05-17 Jan Hubicka <jh@suse.cz>
5824 * cgraph.c (cgraph_create_virtual_clone): Only check
5825 versionable_function_p when not in wpa and checking is enabled.
5826 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
5827 there are no more functions to materialize.
5829 2010-05-17 Jan Hubicka <jh@suse.cz>
5831 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
5832 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
5834 (output_cgraph): Call output_cgraph_opt_summary.
5835 (input_cgrpah): Call input_cgraph_opt_summary.
5836 (output_cgraph_opt_summary_p, output_node_opt_summary,
5837 input_node_opt_summary, input_cgraph_opt_section): New functions.
5838 * lto-section-in.c (lto_section_name): Add cgraphopt.
5839 * tree-inline.c (tree_function_versioning): Handle parm_num.
5840 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
5841 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
5843 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
5845 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
5846 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
5847 the insn to prefetch ratio heuristic to loops with known trip count.
5849 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
5851 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
5852 (schedule_prefetches): Do not generate a prefetch if the unroll factor
5853 is far from what is required by the prefetch.
5855 2010-05-17 Jan Hubicka <jh@suse.cz>
5857 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
5858 (ipcp_estimate_growth): Likewise.
5859 (ipcp_const_param_count): Likewise.
5860 (ipcp_insert_stage): Likewise.
5861 * ipa-prop.c (visit_load_for_mod_analysis): New function.
5862 (visit_store_addr_for_mod_analysis): Set used flag.
5863 (ipa_detect_param_modifications): Set used flag for SSE params;
5864 update use of walk_stmt_load_store_addr_ops.
5865 (ipa_print_node_params): Print used flag.
5866 (ipa_write_node_info): Stream used flag.
5867 (ipa_read_node_info): Likewise.
5868 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
5869 (ipa_is_param_used): New function.
5870 (lto_ipa_fixup_call_notes): Remove unused declaration.
5872 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5875 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
5876 * configure: Regenerate.
5877 * config.in: Regenerate.
5878 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
5879 !HAVE_AS_IX86_REP_LOCK_PREFIX.
5880 Don't emit whitespace.
5881 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
5882 (*rep_movsi): Likewise.
5883 (*rep_movsi_rex64): Likewise.
5884 (*rep_movqi): Likewise.
5885 (*rep_movqi_rex64): Likewise.
5886 (*rep_stosdi_rex64): Likewise.
5887 (*rep_stossi): Likewise.
5888 (*rep_stossi_rex64): Likewise.
5889 (*rep_stosqi): Likewise.
5890 (*rep_stosqi_rex64): Likewise.
5891 (*cmpstrnqi_nz_1): Use {%;} after repz.
5892 (*cmpstrnqi_nz_rex_1): Likewise.
5893 (*cmpstrnqi_1): Likewise.
5894 (*cmpstrnqi_rex_1): Likewise.
5895 (*strlenqi_1): Use {%;} after repnz.
5896 (*strlenqi_rex_1): Likewise.
5897 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
5898 (*sync_compare_and_swap<mode>): Likewise.
5899 (sync_double_compare_and_swap<mode>): Likewise.
5900 (*sync_double_compare_and_swapdi_pic): Likewise.
5901 (sync_old_add<mode>): Likewise.
5902 (sync_add<mode>): Likewise.
5903 (sync_sub<mode>): Likewise.
5904 (sync_<code><mode>): Likewise.
5906 2010-05-17 Martin Jambor <mjambor@suse.cz>
5908 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
5909 otr_token and polymorphic.
5910 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
5911 (cgraph_clone_edge): Copy the above fields.
5912 * tree.c (get_binfo_at_offset): New function.
5913 * tree.h (get_binfo_at_offset): Declare.
5914 * ipa-prop.h (enum jump_func_type): Added known_type jump function
5915 type, reordered items, updated comments.
5916 (union jump_func_value): Added base_type field, reordered fields.
5917 (enum ipa_lattice_type): Moved down in the file.
5918 (struct ipa_param_descriptor): New field polymorphic.
5919 (ipa_is_param_polymorphic): New function.
5920 * ipa-prop.c: Include gimple.h and gimple-fold.h.
5921 (ipa_print_node_jump_functions): Print known type jump functions.
5922 (compute_complex_pass_through): Renamed to...
5923 (compute_complex_assign_jump_func): this.
5924 (compute_complex_ancestor_jump_func): New function.
5925 (compute_known_type_jump_func): Likewise.
5926 (compute_scalar_jump_functions): Create known type and complex ancestor
5928 (ipa_note_param_call): New parameter polymorphic, set the corresponding
5929 flag in the call note accordingly.
5930 (ipa_analyze_call_uses): Renamed to...
5931 (ipa_analyze_indirect_call_uses): this. New parameter target, define
5932 variable var only in the block where it is used.
5933 (ipa_analyze_virtual_call_uses): New function.
5934 (ipa_analyze_call_uses): Likewise.
5935 (combine_known_type_and_ancestor_jfs): Likewise.
5936 (update_jump_functions_after_inlining): Implemented handling of a
5937 number of new jump function types combination.
5938 (print_edge_addition_message): Removed.
5939 (make_edge_direct_to_target): New function.
5940 (try_make_edge_direct_simple_call): Likewise.
5941 (try_make_edge_direct_virtual_call): Likewise.
5942 (update_call_notes_after_inlining): Renamed to...
5943 (update_indirect_edges_after_inlining): this. Moved edge creation for
5944 indirect calls to try_make_edge_direct_simple_call, also calls
5945 try_make_edge_direct_virtual_call for virtual calls.
5946 (ipa_print_node_params): Changed the header message.
5947 (ipa_write_jump_function): Stream also known type jump functions.
5948 (ipa_read_jump_function): Likewise.
5949 (ipa_write_indirect_edge_info): Stream new fields in
5950 cgraph_indirect_call_info.
5951 (ipa_read_indirect_edge_info): Likewise.
5952 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
5955 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5957 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
5959 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
5961 * tree.h (CALL_EXPR_ARGS): Delete.
5962 (call_expr_arglist): Delete.
5963 * tree.c (call_expr_arglist): Delete.
5964 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
5965 targetm.fold_builtin.
5966 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
5967 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
5968 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
5969 arglist parameter. Use CALL_EXPR_ARG.
5970 (picochip_expand_builtin_3op): Likewise.
5971 (picochip_expand_builtin_2opvoid): Likewise.
5972 (picochip_expand_array_get): Likewise.
5973 (picochip_expand_array_put): Likewise.
5974 (picochip_expand_array_testport): Likewise.
5975 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
5976 rather than arglist.
5977 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
5979 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
5980 than TREE_VALUE and TREE_CHAIN.
5981 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
5982 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
5985 2010-05-17 Jakub Jelinek <jakub@redhat.com>
5988 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
5989 to have no fallthru edge.
5992 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
5993 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
5994 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
5995 add BARRIER after previous bb if needed.
5997 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
5999 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6001 2010-05-17 Alan Modra <amodra@gmail.com>
6003 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6004 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6005 with copy_reg rtx param.
6006 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6007 Correct cases where code for ABI_V4 did not initialise the reg
6008 used to access frame. Also leave frame_reg_rtx as sp for large
6009 frames that save no regs.
6011 2010-05-17 Martin Jambor <mjambor@suse.cz>
6014 * tree-sra.c (create_access_replacement): New parameter rename, mark
6015 the replaement for renaming only when it is true.
6016 (get_access_replacement): Pass true in the rename parameter of
6017 create_access_replacement.
6018 (get_unrenamed_access_replacement): New function.
6019 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6020 replacement declaration from it.
6022 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6024 * function.c (try_fit_stack_local, add_frame_space): New static
6026 (assign_stack_local_1): Use them. Look for opportunities to use
6027 space previously wasted on alignment.
6028 * function.h (struct frame_space): New.
6029 (struct rtl_data): Add FRAME_SPACE_LIST member.
6030 * reload1.c (something_was_spilled): New static variable.
6031 (alter_reg): Set it.
6032 (reload): Test it in addition to testing if the frame size changed.
6034 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6036 * config/s390/s390.c: Define sane prefetch settings and activate
6037 flag_prefetch_loop_arrays on -O3.
6038 * config/s390/s390.h: Declare that read can use write prefetch.
6040 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6042 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6045 2010-05-16 Jan Hubicka <jh@suse.cz>
6047 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6048 function body; do not check stdarg field of struct function.
6050 2010-05-16 Jan Hubicka <jh@suse.cz>
6052 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6053 * cgraph.h (cgraph_local_info): Add versionable flag.
6054 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6055 (ipcp_versionable_function_p): Use it.
6056 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6059 2010-05-16 Jan Hubicka <jh@suse.cz>
6061 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6062 clone into hash when it is different from orig.
6063 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6064 * cgraph.h (cgraph_clone_node): Update prototype.
6065 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6066 (lto_cgraph_encoder_delete): Delete body map.
6067 (lto_cgraph_encoder_size): Move to header.
6068 (lto_cgraph_encoder_encode_body_p,
6069 lto_set_cgraph_encoder_encode_body): New.
6070 (lto_output_node): Do not take written_decls argument; output clone_of
6072 (add_node_to): Add include_body_argument; call
6073 lto_set_cgraph_encoder_encode_body on master of the clone.
6074 (add_references): Update use of add_node_to.
6075 (compute_ltrans_boundary): Likewise.
6076 (output_cgraph): Do not create written_decls bitmap.
6077 (input_node): Take nodes argument; stream in clone_of correctly.
6078 (input_cgraph_1): Update use of input_node.
6079 * lto-streamer-out.c (lto_output): Use encoder info to decide
6080 what bodies to output.
6081 * ipa-inline.c (cgraph_clone_inlined_nodes,
6082 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6083 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6084 (lto_cgraph_encoder_size): Define here.
6085 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6088 2010-05-16 Richard Guenther <rguenther@suse.de>
6090 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6092 * ipa-type-escape.c (gate_type_escape_vars): Run when
6093 -fipa-struct-reorg runs.
6094 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6095 * common.opt (fipa-type-escape): Remove.
6097 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6099 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6100 (decode_options): Likewise.
6101 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6103 2010-05-16 Jan Hubicka <jh@suse.cz>
6105 * ipa.c (function_and_variable_visibility): Also bring local all
6108 2010-05-16 Richard Guenther <rguenther@suse.de>
6110 * alias.c (nonoverlapping_memrefs_p): Remove use of
6111 IPA type-escape information.
6113 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6115 * c-common.c (c_common_reswords): Add _Static_assert for C.
6116 * c-parser.c (c_token_starts_declaration,
6117 c_parser_next_token_starts_declaration,
6118 c_parser_static_assert_declaration_no_semi,
6119 c_parser_static_assert_declaration): New.
6120 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6121 Handle static assertions if static_assert_ok.
6122 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6123 c_parser_compound_statement_nostart, c_parser_label,
6124 c_parser_for_statement, c_parser_objc_methodprotolist,
6125 c_parser_omp_for_loop): All callers of
6126 c_parser_declaration_or_fndef changed.
6127 (c_parser_struct_declaration): Handle static assertions.
6128 (c_parser_compound_statement_nostart): Use
6129 c_parser_next_token_starts_declaration and
6130 c_token_starts_declaration to detect start of declarations.
6131 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6134 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6136 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6137 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6138 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6139 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6140 (mmix_function_outgoing_value): Rename to...
6141 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6142 (mmix_function_value_regno_p): Make static.
6143 (mmix_libcall_value): New function.
6144 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6145 mmix_function_value_regno_p): Remove declaration.
6147 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6149 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6150 BUILT_IN_ALLOCA if stack checking is enabled.
6152 2010-05-16 Richard Guenther <rguenther@suse.de>
6154 * var-tracking.c (vars_copy_1): Inline ...
6155 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6156 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6157 (variable_merge_over_cur): Adjust. Merge asserts.
6158 (variable_merge_over_src): Likewise.
6159 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6160 (variable_post_merge_new_vals): Merge asserts.
6161 (variable_post_merge_perm_vals): Likewise.
6162 (find_mem_expr_in_1pdv): Likewise.
6163 (dataflow_set_different_value): Remove.
6164 (onepart_variable_different_p): Merge asserts.
6165 (variable_different_p): Likewise.
6166 (dataflow_set_different_1): Inline ...
6167 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6168 (emit_notes_for_differences_1): Merge asserts.
6170 2010-05-16 Richard Guenther <rguenther@suse.de>
6172 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6173 * optabs.c (libfunc_decl_hash): Likewise.
6174 * varasm.c (emutls_decl): Likewise.
6176 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6178 * c-decl.c: Don't include gimple.h.
6179 (merge_decls): Do not copy gimple_body.
6181 2010-05-15 Jason Merrill <jason@redhat.com>
6183 * c.opt: Add -fnothrow-opt.
6185 2010-05-15 Jan Hubicka <jh@suse.cz>
6187 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6189 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6191 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6193 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6194 * Makefile.in: Add it.
6195 Fix all other Makefile dependencies for changes below.
6196 * tree.h: Include it instead of defining VEC primitives here.
6197 * gimple.h: Likewise.
6199 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6200 * except.h: Include vecir.h, break dependence on tree.h.
6202 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6204 * tree-iterator.c: ...to here.
6205 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6207 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6209 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6210 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6211 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6212 tree-mudflap.h, and target.h.
6213 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6214 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6215 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6216 Add FIXME for why gimple.h is still included (should be unnecessary
6217 since GCC 4.5 gimplification unit-at-a-time).
6218 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6219 * c-pragma.c: Add FIXME for why function.h needs to be included just
6220 for cfun, at front-end level.
6221 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6222 Do not include ggc.h, but include vecprim.h for VEC(char).
6223 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6224 Explain why target.h is included.
6225 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6226 Explain why gimple.h is included.
6227 * c-ppoutput.c: Do not include tm.h.
6228 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6229 * c-parses.c: Explain why rtl.h is included, and that this (and only
6230 this) is also why tm.h must be included.
6231 Do not include except.h.
6232 * c-lang.c: Do not include ggc.h.
6234 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6236 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6238 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6240 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6241 unions by default if those structs and unions have no tags. Do
6242 not condition anonymous struct and unions handling on flag_iso.
6243 Allow anonymous structs and unions for C1X.
6244 (finish_struct): Do not diagnose lack of named fields when
6245 anonymous structs and unions present for C1X. Accept flexible
6246 array members in structure with anonymous structs or unions but no
6247 directly named fields.
6248 * doc/extend.texi (Unnamed Fields): Update.
6250 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6252 * gimple.h (compare_field_offset): Rename into...
6253 (gimple_compare_field_offset): ...this.
6254 * gimple.c (compare_field_offset): Rename into...
6255 (gimple_compare_field_offset): ...this. Compare the full access if
6256 the offset is self-referential.
6257 (gimple_types_compatible_p): Adjust for above renaming.
6258 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6259 DECL_NONADDRESSABLE_P flag of fields before merging them.
6261 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6263 * tree.h (ctor_to_list): Delete.
6264 * tree.c (ctor_to_list): Delete.
6266 2010-05-15 Jan Hubicka <jh@suse.cz>
6268 * ipa-reference.c: Include toplev.h
6269 (is_proper_for_analysis): Only add to all_module_statics
6271 (write_node_summary_p, stream_out_bitmap,
6272 ipa_reference_write_optimization_summary,
6273 ipa_reference_read_optimization_summary): New.
6274 (struct ipa_opt_pass_d pass_ipa_reference): Add
6275 optimization summary streaming.
6276 * lto-cgraph.c (referenced_from_this_partition_p,
6277 reachable_from_this_partition_p): New functions.
6278 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6279 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6280 * opts.c (decode_options): Enable ipa_reference.
6281 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6282 * lto-streamer.h (referenced_from_this_partition_p,
6283 reachable_from_this_partition_p): Declare.
6285 2010-05-15 Richard Guenther <rguenther@suse.de>
6287 PR tree-optimization/44038
6288 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6289 taking the address of a V_C_E of a constant.
6291 2010-05-14 Jan Hubicka <jh@suse.cz>
6293 * tree.h (memory_identifier_string): Remove.
6294 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6295 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6296 statics_not_written.
6297 (ipa_reference_optimization_summary_d): New structure.
6298 (ipa_reference_optimization_summary_t): New type and vector.
6299 (ipa_reference_vars_info_d): Embedd structures instead of using
6301 (reference_vars_to_consider): Remove out of GGC space.
6302 (module_statics_escape): Remove.
6303 (global_info_obstack): Rename to ...
6304 (optimization_summary_obstack): ... this one.
6305 (initialization_status_t): Remove.
6306 (memory_identifier_string): Remove.
6307 (get_reference_vars_info): Fix indenting.
6308 (set_reference_vars_info): Likewise.
6309 (get_reference_optimization_summary): New.
6310 (set_reference_optimization_summary): New.
6311 (get_global_reference_vars_info): Remove.
6312 (ipa_reference_get_read_global): Remove.
6313 (ipa_reference_get_written_global): Remove.
6314 (ipa_reference_get_not_read_global): Update.
6315 (ipa_reference_get_not_written_global): Update.
6316 (is_proper_for_analysis): Outlaw addressable.
6317 (propagate_bits): Update for new datastructures.
6318 (analyze_variable): Remove.
6319 (init_function_info): Update for new datastructures.
6320 (clean_function_local_data): Remove.
6321 (clean_function): Remove.
6322 (copy_global_bitmap): Use optimizations_summary_obstack.
6323 (duplicate_node_data): Duplicate optimization summary only.
6324 (remove_node_data): Remove optimization summary only.
6325 (generate_summary): Do not analyze variables; do not compute
6326 module_statics_escape; do not prune solutions by it.
6327 (read_write_all_from_decl): Fix typos in comments.
6328 (propagate): Doscover readonly and nonaddressable first;
6329 update for new datastructures; share global bitmaps.
6330 * ipa-reference.h (ipa_reference_get_read_global,
6331 ipa_reference_get_written_global): Remove.
6332 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6333 * Makefile.in: Remove ipa-refereference from GT files.
6335 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6338 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6339 for all SYMBOL_REF_DECLs.
6341 2010-05-14 Jan Hubicka <jh@suse.cz>
6343 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6344 (varpool_all_refs_explicit_p): New inline function.
6345 * ipa-reference.c: Update comment.
6346 (module_statics_written): Remove.
6347 (get_static_decl): Remove.
6348 (ipa_init): Do not initialize module_statics_written.
6349 (analyze_function): Likewise.
6350 (generate_summary): Likewise; do not compute module_statics_readonly
6351 and do not update variable flags.
6352 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6353 * ipa.c: Inlucde flags.h
6354 (cgraph_local_node_p): New.
6355 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6356 promote functions to local.
6357 (ipa_discover_readonly_nonaddressable_vars): New function.
6358 (function_and_variable_visibility): Use cgraph_local_node_p.
6359 * varpool.c (varpool_finalize_decl): Set force_output for
6360 DECL_PRESERVE_P vars.
6362 2010-05-14 Jan Hubicka <jh@suse.cz>
6364 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6366 2010-05-14 Richard Guenther <rguenther@suse.de>
6368 PR tree-optimization/44119
6369 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6370 a PHI node necessary.
6372 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6374 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6376 2010-05-14 Jason Merrill <jason@redhat.com>
6379 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6380 (gimple_call_set_nothrow): New.
6381 * gimple.c (gimple_build_call_from_tree): Call it.
6382 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6385 * gimplify.c (gimplify_seq_add_stmt): No longer static.
6386 * gimple.h: Declare it.
6387 * gimple.c (gimple_build_eh_filter): No ops.
6389 2010-05-14 Jan Hubicka <jh@suse.cz>
6391 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6392 nodes already in queue.
6393 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6396 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6399 * cfgexpand.c (expand_debug_expr): If non-memory op0
6400 has BLKmode, return NULL.
6402 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
6404 * config.gcc: Add support for --with-cpu option for bdver1.
6405 * config/i386/i386.h (TARGET_BDVER1): New macro.
6406 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6407 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6408 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6409 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6410 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6411 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6412 (processor_type): Add PROCESSOR_BDVER1.
6413 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6414 processor_type in config/i386/i386.h.
6415 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6416 movaps <reg, reg> instead of movapd <reg, reg> when replacing
6417 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6418 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6419 to emit packed xor instead of packed double/packed integer
6420 xor for SSE and AVX when moving a zero value.
6421 * config/i386/sse.md: Add check for
6422 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6423 movapd/movdqa for SSE and AVX.
6424 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6425 single logical operations i.e and, or and xor instead of packed double
6426 logical operations for SSE and AVX.
6427 * config/i386/i386-c.c (ix86_target_macros_internal):
6428 Add PROCESSOR_BDVER1.
6429 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6430 (has_fma4, has_xop): New.
6431 * config/i386/i386.c (bdver1_cost): New variable.
6432 (m_BDVER1): New macro.
6433 (m_AMD_MULTIPLE): Add m_BDVER1.
6434 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6435 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6436 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6437 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6438 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6439 x86_tune_sse_partial_reg_dependency,
6440 x86_tune_sse_unaligned_load_optimal,
6441 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6442 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6443 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6444 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6445 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6446 Enable/disable for bdver1.
6447 (processor_target_table): Add bdver1_cost.
6448 (cpu_names): Add bdver1.
6449 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6450 processor_alias_table.
6451 (ix86_expand_vector_move_misalign): Change.
6452 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6453 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6454 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6455 of movupd/movdqu for SSE and AVX.
6456 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6457 (ix86_tune_adjust_cost): Add code for bdver1.
6458 (standard_sse_constant_opcode): Add check for
6459 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6460 of packed double xor for SSE and AVX.
6462 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
6464 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6467 2010-05-14 Tristan Gingold <gingold@adacore.com>
6469 * toplev.c (default_debug_hooks): Remove this variable.
6470 (process_options): Remove assignments to default_debug_hooks.
6472 2010-05-14 Martin Jambor <mjambor@suse.cz>
6474 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6475 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6476 * langhooks.h (struct lang_hooks_for_decls): Removed field
6478 * tree.c (free_lang_data): Remove assignment to
6479 lang_hooks.fold_obj_type_ref.
6480 * tree.def (OBJ_TYPE_REF): Update comment.
6482 2010-05-14 Richard Guenther <rguenther@suse.de>
6484 PR tree-optimization/44124
6485 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6487 2010-05-14 Alan Modra <amodra@gmail.com>
6490 * config/rs6000/rs6000.c (struct machine_function): Reorder
6491 fields for better packing. Add lr_save_state.
6492 (rs6000_ra_ever_killed): Return lr_save_state if set.
6493 (rs6000_emit_eh_reg_restore): Set lr_save_state.
6495 2010-05-13 Jan Hubicka <jh@suse.cz>
6497 * varpool.c (decide_is_variable_needed): Drop code checking
6498 TREE_SYMBOL_REFERENCED.
6500 2010-05-13 Jan Hubicka <jh@suse.cz>
6502 * final.c (output_addr_const): Do not call mark_decl_referenced.
6503 * cgraphunit.c (process_function_and_variable_attributes): Use
6504 mark_needed_node dirrectly.
6505 (assemble_thunk): Do not call mark_decl_referenced.
6507 2010-05-13 Anatoly Sokolov <aesok@post.ru>
6509 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6511 2010-05-13 Jeff Law <law@redhat.com>
6513 * ira-conflicts.c (print_allocno_conflicts): New function broken out
6515 (print_conflicts): Call print_allocno_conflicts.
6517 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6520 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6523 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
6525 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6526 t-mingw-w64 or t-mingw-w32 for multilib configuration.
6527 * config/i386/t-mingw-w32: New.
6528 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6530 2010-05-13 Martin Jambor <mjambor@suse.cz>
6532 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6534 * gimple-fold.c (get_base_binfo_for_type): New function.
6535 (gimple_get_relevant_ref_binfo): Likewise.
6536 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6537 (gimple_fold_obj_type_ref): Likewise.
6538 (fold_gimple_call): Simplify condition for folding virtual calls
6539 and call gimple_fold_obj_type_ref.
6540 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
6541 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6543 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6545 * config/rs6000/rs6000-protos.h
6546 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
6547 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
6548 (rs6000_debug_mode_dependent_address)
6549 (rs6000_mode_dependent_address_ptr): Likewise.
6551 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6554 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
6556 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
6557 * tree-sra.c (create_access_replacement): Call unshare_expr before
6558 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
6559 * dwarf2out.c: Include tree-flow.h.
6560 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
6561 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6562 Handle DW_OP_bit_piece.
6563 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
6564 construct_piece_list, adjust_piece_list): New functions.
6565 (add_var_loc_to_decl): Handle SRA optimized variables.
6566 Adjust for var_loc_note to loc field renaming.
6567 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
6568 in VAR_LOCATION note.
6569 (new_loc_descr_op_bit_piece): New function.
6570 (dw_sra_loc_expr): New function.
6571 (dw_loc_list): Use it. Don't handle the last range after the
6572 loop, handle it inside of the loop. Adjust for var_loc_note
6573 to loc field renaming.
6574 (add_location_or_const_value_attribute): Only special case
6575 single entry loc lists if loc is NOTE_P. Adjust for
6576 var_loc_note to loc field renaming.
6577 (dwarf2out_var_location): Don't set newloc->var_loc_note
6578 and newloc->next here.
6580 2010-05-12 Jan Hubicka <jh@suse.cz>
6582 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
6584 * cgraph.h (cgraph_only_called_directly_p,
6585 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
6586 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
6587 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
6589 * ipa.c (cgraph_remove_unreachable_nodes): Use
6590 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
6592 * tree-inline.c (copy_bb): Check address_taken flag.
6593 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
6594 externally_visible flag.
6596 2010-05-12 Jason Merrill <jason@redhat.com>
6600 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
6601 * sdbout.c (plain_type_1): Likewise.
6602 * dwarf2out.c (is_base_type): Likewise.
6603 (gen_type_die_with_usage): Likewise. Generate
6604 DW_TAG_unspecified_type for any LANG_TYPE.
6606 2010-05-12 Jan Hubicka <jh@suse.cz>
6608 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
6610 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
6611 (cgraph_clone_edge): Update.
6612 (cgraph_node_remove_callees): Remove indirect calls too.
6613 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
6614 (cgraph_create_indirect_edge): Update prototype.
6615 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
6616 is_proper_for_analysis.
6617 (add_new_function, visited_nodes, function_insertion_hook_holder,
6618 get_local_reference_vars_info, mark_address_taken, mark_address,
6619 mark_load, mark_store, check_asm_memory_clobber, check_call,
6620 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
6621 (ipa_init): Do not initialize visited_nodes;
6622 function_insertion_hook_holder.
6623 (analyze_variable): Rewrite.
6624 (analyze_function): Rewrite.
6625 (copy_local_bitmap): Remove.
6626 (duplicate_node_dat): Do not duplicate local info.
6627 (generate_summary): Simplify to only walk cgraph.
6628 (write_node_summary_p, ipa_reference_write_summary,
6629 ipa_reference_read_summary): Remove.
6630 (propagate): Do not remove function insertion;
6632 (pass_ipa_reference): NULLify summary handling fields.
6633 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
6634 (input_edge): Input ecf_flags.
6635 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
6636 (update_indirect_edges_after_inlining): Ignore edges with unknown
6639 2010-05-12 Sriraman Tallam <tmsriram@google.com>
6641 * implicit-zee.c: New file.
6642 * tree-pass.h (pass_implicit_zee): Declare.
6643 * passes.c (init_optimization_passes): Add zee pass.
6644 * common.opt (fzee): New flag.
6645 * timevar.def (TV_ZEE): Define.
6646 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
6648 * Makefile.in (implicit-zee.o): Add new build file.
6650 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6651 Nathan Froyd <froydnj@codesourcery.com>
6653 * c-common.c (sync_resolve_params): Remove write-only variable.
6655 2010-05-12 Anatoly Sokolov <aesok@post.ru>
6657 * target.h (struct gcc_target): Add mode_dependent_address_p field.
6658 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6659 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
6660 * targhooks.c (default_mode_dependent_address_p): New function.
6661 * targhooks.h (default_mode_dependent_address_p): Declare function.
6662 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6663 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
6664 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
6665 target hook. Change return type to bool.
6666 * recog.h (mode_dependent_address_p): Change return type to bool.
6668 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6669 Nathan Froyd <froydnj@codesourcery.com>
6671 * tree-mudflap.c (build_function_type_0, build_function_type_1,
6672 build_function_type_2, build_function_type_3): Remove.
6673 (mudflap_init): Use build_function_type_list.
6675 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6676 Nathan Froyd <froydnj@codesourcery.com>
6678 * coverage.c (build_fn_info_value): Call build_constructor instead of
6679 build_constructor_from_list.
6680 (build_ctr_info_value): Likewise.
6681 (build_gcov_info): Likewise.
6683 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
6685 * tree.c (build_constructor): Compute TREE_CONSTANT for the
6686 resultant constructor.
6687 (build_constructor_single): Don't set TREE_CONSTANT.
6688 (build_constructor_from_list): Don't compute TREE_CONSTANT.
6690 2010-05-12 Jan Hubicka <jh@suse.cz>
6692 * cgraph.h (struct varpool_node): Add aux.
6693 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
6694 * varpool.c (varpool_remove_node): Do not remove initializer.
6695 (varpool_reset_queue): Export.
6696 (varpool_finalize_decl): Volatile vars are forced to be output.
6697 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
6699 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
6700 process_references, varpool_can_remove_if_no_refs): New functions.
6701 (cgraph_remove_unreachable_nodes): Handle variables too.
6703 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
6706 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
6708 2010-05-12 Jakub Jelinek <jakub@redhat.com>
6711 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
6712 change value of ORT_TASK.
6713 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
6714 (omp_notice_threadprivate_variable): New function.
6715 (omp_notice_variable): Call it for threadprivate variables.
6716 If enclosing ctx is a task, print enclosing task rather than
6717 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
6718 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
6719 if task has untied clause.
6722 * dwarf2out.c (base_type_die): Don't add name attribute here.
6723 (modified_type_die): Instead of sizetype use
6724 its underlying original type. If a DW_TAG_base_type doesn't
6725 have name added, add __unknown__.
6726 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
6727 always call force_type_die instead.
6729 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
6731 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
6732 for __stack_chk_guard.
6734 2010-05-11 Jakub Jelinek <jakub@redhat.com>
6736 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
6737 don't call start_source_file debug hook here...
6738 (finish_options): ... but here, after outputting predefined and
6739 command line defines and undefs.
6742 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
6744 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
6745 optimizing away empty bb with no successors, move over its
6746 footer chain to fallthru predecessor.
6747 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
6748 (rtl_split_edge): For asm goto call patch_jump_insn even if
6749 splitting fallthru edge.
6752 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
6753 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
6754 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
6755 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
6759 * c-parser.c (c_parser_expression): Mark LHS of a comma
6760 expression as read if it is a decl, handled component or
6761 COMPOUND_EXPR with that on the RHS.
6762 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
6763 if it is a decl or handled component.
6765 2010-05-11 Jan Hubicka <jh@suse.cz>
6767 * lto-symtab.c (lto_symtab_free): New function.
6768 * lto-streamer.h (lto_symtab_free): Declare.
6770 2010-05-11 Jan Hubicka <jh@suse.cz>
6772 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
6773 that if function is needed it is reachable.
6774 (lto_output_node): See if it the function is reachable or referenced.
6775 (output_cgraph): Update call of lto_output_node.
6776 * lto-streamer.h (reachable_from_other_partition_p): Declare.
6778 2010-05-11 Jan Hubicka <jh@suse.cz>
6780 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
6783 2010-05-11 Jan Hubicka <jh@suse.cz>
6785 PR tree-optimize/44063
6786 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
6788 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
6790 (estimate_function_body_sizes): Compute sizes even when disregarding.
6792 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
6794 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
6796 2010-05-11 Jan Hubicka <jh@suse.cz>
6798 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
6799 into every boundary.
6801 2010-05-11 Jan Hubicka <jh@suse.cz>
6803 * matrix-reorg.c (matrix_reorg): Rebuild edges.
6805 2010-05-11 Jan Hubicka <jh@suse.cz>
6807 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
6808 lto_streamer_cache_delete): Put nodes into heap.
6809 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
6812 2010-05-11 Jan Hubicka <jh@suse.cz>
6814 * cgraphbuild.c (cgraph_rebuild_references): New.
6815 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
6817 * cgraph.h (cgraph_rebuild_references): Declare.
6818 * tree-inline.c (tree_function_versioning): Use it.
6819 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
6821 2010-05-11 Jan Hubicka <jh@suse.cz>
6823 * cgraph.c: Include ipa-utils.h
6824 (cgraph_create_virtual_clone): Update references.
6825 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
6827 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
6829 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
6830 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
6833 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
6835 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
6837 2010-05-11 Jakub Jelinek <jakub@redhat.com>
6839 * gcc.c (execute): For -### don't quote arguments that
6840 contain just alphanumerics and _/-. characters.
6841 * doc/invoke.texi: Document that change for -###.
6844 * df-problems.c (struct dead_debug): Add to_rescan field.
6845 (dead_debug_init): Clear to_rescan field.
6846 (dead_debug_finish): Rescan all debug insns in to_rescan
6847 bitmap and free the bitmap.
6848 (dead_debug_insert_before): Instead of rescanning debug insns
6849 immediately queue their rescanning until dead_debug_finish.
6850 (df_note_bb_compute): After dead_debug_add do continue instead
6853 2010-05-10 Jakub Jelinek <jakub@redhat.com>
6856 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
6857 clear also INSN_REG_USE_LIST.
6859 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6861 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
6863 2010-05-10 Jan Hubicka <jh@suse.cz>
6865 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
6868 2010-05-10 Jan Hubicka <jh@suse.cz>
6870 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
6872 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
6873 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
6874 (lto_streamer_cache_create): Init alloc pool.
6875 (lto_streamer_cache_delete): Free alloc pool.
6876 * lto-streamer.h: Include alloc pool.
6877 (lto_streamer_cache_d): Use alloc pool.
6878 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
6880 2010-05-10 Jan Hubicka <jh@suse.cz>
6882 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
6883 * cgraphbuild.c: Include except.h
6884 (record_type_list, record_eh_tables): New function.
6885 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
6887 2010-05-10 Jan Hubicka <jh@suse.cz>
6889 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
6890 __frame_dummy_init_array_entry, force_to_data): Attribute as used
6893 2010-05-10 Michael Matz <matz@suse.de>
6895 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
6896 (can_reassociate_p): Use FLOAT_TYPE_P.
6897 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
6898 (vect_force_simple_reduction): ... this.
6899 * tree-parloops.c (gather_scalar_reductions): Use
6900 vect_force_simple_reduction.
6901 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
6902 vect_is_simple_reduction, add modify argument, if true rewrite
6903 "a-b" into "a+(-b)".
6904 (vect_is_simple_reduction, vect_force_simple_reduction): New
6906 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
6908 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
6909 Vladimir Makarov <vmakarov@redhat.com>
6911 PR rtl-optimization/44012
6912 * ira-build.c (remove_unnecessary_allocnos): Nullify
6913 regno_allocno_map of the removed allocno.
6915 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6917 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
6919 * configure: Regenerate.
6921 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6923 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
6925 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
6926 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
6928 * configure: Regenerate.
6930 2010-05-10 Richard Guenther <rguenther@suse.de>
6932 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
6933 marked if the entry identifier is marked.
6935 2010-05-10 Richard Guenther <rguenther@suse.de>
6937 * c-common.c (struct c_common_attributes): Add fnspec attribute.
6938 (handle_fnspec_attribute): New function.
6939 * gimple.h (gimple_call_return_flags): Declare.
6940 (gimple_call_arg_flags): Likewise.
6941 * gimple.c (gimple_call_arg_flags): New function.
6942 (gimple_call_return_flags): Likewise.
6943 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
6945 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
6947 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
6948 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
6950 (make_heapvar_for): ... this new function.
6951 (handle_rhs_call): Handle fnspec attribute argument specifiers.
6952 (handle_lhs_call): Likewise.
6953 (find_func_aliases): Adjust.
6955 2010-05-10 Richard Guenther <rguenther@suse.de>
6957 PR tree-optimization/44050
6958 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
6960 2010-05-10 Wei Guozhi <carrot@google.com>
6963 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
6965 2010-05-09 Joseph Myers <joseph@codesourcery.com>
6968 * c-typeck.c (lookup_field): Take a type directly. Update
6970 (build_component_ref): Update call to lookup_field.
6971 (set_init_label): Use lookup_field to find initialized field.
6972 Handle returned list of fields like a sequence of designators.
6974 2010-05-09 Richard Guenther <rguenther@suse.de>
6977 * fold-const.c (tree_single_nonzero_warnv_p): Properly
6978 handle &FUNCTION_DECL.
6980 2010-05-09 Joseph Myers <joseph@codesourcery.com>
6983 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
6984 structures and unions recursively.
6985 (detect_field_duplicates): Move duplicate detection with a hash to
6986 detect_field_duplicates_hash. Always use a hash if anonymous
6987 structures or unions are present.
6988 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
6991 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
6994 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
6995 detect Atom, Core 2 and Core i7.
6997 2010-05-09 Richard Guenther <rguenther@suse.de>
6999 * gcc.c (store_arg): Handle temporary file deletion for
7002 2010-05-09 Richard Guenther <rguenther@suse.de>
7005 * ipa-inline.c (estimate_function_body_sizes): Return after
7006 disregarding inline limits.
7008 2010-05-09 Richard Guenther <rguenther@suse.de>
7010 * gcc.c (store_arg): Revert last change.
7012 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7015 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7016 (optimize_ops_list): Call it.
7018 2010-05-08 Richard Guenther <rguenther@suse.de>
7020 PR tree-optimization/44030
7021 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7022 NECESSARY flag if we propagate from a inserted expression.
7024 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7026 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7027 domain types as equal if they are both PLACEHOLDER_EXPRs.
7029 2010-05-08 Richard Guenther <rguenther@suse.de>
7031 * lto-wrapper.c (run_gcc): Remove linker output from
7032 command line for LTRANS invocation.
7034 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7036 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7037 lto-macho as lto_binary_reader.
7038 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7039 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7040 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7041 in lto_start and lto_end calls.
7042 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7044 (scan_prog_file): Update is_elf_or_coff call.
7045 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7047 * collect2.c (main): Fix enum comparison.
7049 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7051 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7052 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7053 and TARGET_ASM_LTO_END.
7054 * darwin.c: Include obstack.h and lto-streamer.h.
7055 (lto_section_names_offset, lto_section_names_obstack,
7056 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7058 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7059 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7060 to a temporary file.
7061 (darwin_asm_lto_end): New function. Restore asm_out_file.
7062 (darwin_asm_named_section): For LTO sections, replace the name with
7063 the offset of the section name in a string table, and build this
7065 (darwin_file_start): Initialize global vars for LTO support.
7066 (darwin_file_end): If output to asm_out_file was redirected, append it
7067 to the proper asm_out_file here. Add the section names section.
7069 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7071 * c-pragma.c (pending_weak_d, pending_weak): New.
7072 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7073 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7074 handle_pragma_weak): Update the uses of pending_weaks.
7076 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7078 PR documentation/44016
7079 * doc/standards.texi (Standards): Link to unversioned
7080 cxx0x_status.html page.
7082 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7085 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7086 in addition to TREE_USED, to avoid "set but unused" warnings.
7088 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7090 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7091 (is_loop_prefetching_profitable): Do not insert prefetches
7092 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7093 times the prefetch ahead distance.
7095 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7097 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7098 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7099 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7102 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7104 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7105 a diagnostic info when the insn-to-mem ratio is too small.
7107 2010-05-07 Richard Guenther <rguenther@suse.de>
7109 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7111 (store_arg): Queue temp_filename for deletion instead of
7114 2010-05-07 Richard Guenther <rguenther@suse.de>
7116 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7117 (run_gcc): Handle LTRANS phase invocation.
7118 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7120 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7122 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7123 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7125 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7127 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7129 2010-05-07 Richard Guenther <rguenther@suse.de>
7131 PR tree-optimization/44020
7132 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7133 code when PRE is not yet initialized.
7135 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7137 * config/mips/dbxmdebug.h: Remove.
7138 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7140 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7142 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7143 with null pointer and also warn about ordered comparison of zero with
7146 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7148 * graphite-blocking.c
7149 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7150 * graphite-clast-to-gimple.c
7151 (clast_to_gcc_expression): Same.
7152 (precision_for_value): Same.
7153 (precision_for_interval): Same.
7154 (gcc_type_for_interval): Same.
7155 (graphite_create_new_guard): Same.
7156 (compute_bounds_for_level): Same.
7157 (graphite_create_new_loop_guard): Same.
7158 * graphite-interchange.c
7159 (build_linearized_memory_access): Same.
7160 (pdr_stride_in_loop): Same.
7161 (memory_strides_in_loop_1): Same.
7162 (memory_strides_in_loop): Same.
7163 (extend_scattering): Same.
7164 (psct_scattering_dim_for_loop_depth): Same.
7165 (pbb_number_of_iterations): Same.
7167 (debug_iteration_domains): Same.
7169 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7170 (ppl_set_inhomogeneous_gmp): Same.
7171 (ppl_strip_loop): Same.
7172 (ppl_lexico_compare_linear_expressions): Same.
7173 (ppl_read_polyhedron_matrix): Same.
7174 (ppl_max_for_le_pointset): Same.
7176 (ppl_read_polyhedron_matrix): Same.
7177 (tree_int_to_gmp): Same.
7178 (gmp_cst_to_tree): Same.
7179 (ppl_set_inhomogeneous): Same.
7180 (ppl_set_inhomogeneous_tree): Same.
7181 (ppl_set_coef): Same.
7182 (ppl_set_coef_tree): Same.
7183 * graphite-sese-to-poly.c
7184 (build_pbb_scattering_polyhedrons): Same.
7185 (build_scop_scattering): Same.
7186 (scan_tree_for_params_right_scev): Same.
7187 (scan_tree_for_params): Same.
7188 (find_params_in_bb): Same.
7189 (find_scop_parameters): Same.
7190 (add_upper_bounds_from_estimated_nit): Same.
7191 (build_loop_iteration_domains): Same.
7192 (add_condition_to_domain): Same.
7193 (pdr_add_memory_accesses): Same.
7195 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7197 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7198 CLooG's value_* macros to their respective mpz_* counterparts.
7199 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7200 (graphite_create_new_loop_guard): Same.
7201 * graphite-interchange.c (build_linearized_memory_access): Same.
7202 (pdr_stride_in_loop): Same.
7203 (memory_strides_in_loop_1): Same.
7204 (1st_interchange_profitable_p): Same.
7205 * graphite-poly.c (extend_scattering): Same.
7206 (psct_scattering_dim_for_loop_depth): Same.
7207 (pbb_number_of_iterations): Same.
7208 (pbb_number_of_iterations_at_time): Same.
7209 * graphite-poly.h (new_1st_loop): Same.
7210 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7211 (oppose_constraint): Same.
7212 (insert_constraint_into_matrix): Same.
7213 (ppl_set_inhomogeneous_gmp): Same.
7214 (ppl_set_coef_gmp): Same.
7215 (ppl_strip_loop): Same.
7216 (ppl_lexico_compare_linear_expressions): Same.
7217 (ppl_max_for_le_pointset): Same.
7218 (ppl_min_for_le_pointset): Same.
7219 (ppl_build_realtion): Same.
7220 * graphite-ppl.h (gmp_cst_to_tree): Same.
7221 (ppl_set_inhomogeneous): Same.
7222 (ppl_set_inhomogeneous_tree): Same.
7223 (ppl_set_coef): Same.
7224 (ppl_set_coef_tree): Same.
7225 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7226 (build_scop_scattering): Same.
7227 (add_value_to_dim): Same.
7228 (scan_tree_for_params_right_scev): Same.
7229 (scan_tree_for_params_int): Same.
7230 (scan_tree_for_params): Same.
7231 (find_params_in_bb): Same.
7232 (find_scop_parameters): Same.
7233 (add_upper_bounds_from_estimated_nit): Same.
7234 (build_loop_iteration_domains): Same.
7235 (create_linear_expr_from_tree): Same.
7236 (add_condition_to_domain): Same.
7237 (pdr_add_memory_accesses): Same.
7239 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7240 Jason Merrill <jason@redhat.com>
7242 * c-common.c (c_common_reswords): Add nullptr.
7243 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7244 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7245 (gen_type_die_with_usage): Likewise.
7246 * dbxout.c (dbxout_type): Likewise.
7247 * sdbout.c (plain_type_1): Likewise.
7249 2010-05-06 Jason Merrill <jason@redhat.com>
7251 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7252 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7254 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7256 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7257 stripping WITH_SIZE_EXPR.
7258 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7261 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7263 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7264 list of obsolete configurations.
7265 Disabled check for obsolete configurations.
7266 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7267 Removed support for previous versions.
7268 * config/mips/iris.h: Removed.
7269 * config/mips/iris5.h: Removed.
7270 * config/mips/iris6.h: Merged old iris.h contents.
7271 (TARGET_IRIX): Removed.
7272 (DRIVER_SELF_SPECS): Removed mabi=32.
7273 (IDENT_ASM_OP): Removed undef.
7274 (STARTFILE_SPEC): Removed mabi=32.
7275 (ENDFILE_SPEC): Likewise.
7276 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7277 (MACHINE_TYPE): Update for IRIX 6.5.
7278 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7279 TARGET_IRIX by TARGET_IRIX6.
7280 (mips_file_start): Likewise.
7281 (mips_output_external): Remove IRIX 5/6 O32 support.
7282 (mips_output_function_prologue): Likewise.
7283 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7285 (TARGET_CPU_CPP_BUILTINS): Likewise.
7286 (TARGET_IRIX): Removed.
7287 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7288 (MULTILIB_DIRNAMES): Removed 32.
7289 (MULTILIB_OSDIRNAMES): Removed ../lib.
7290 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7291 (Specific, mips-sgi-irix5): Document removal.
7292 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7293 Remove references to older IRIX 6 releases and the O32 ABI.
7295 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7298 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7299 instead of DF_REF_REAL_REG.
7301 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7304 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7305 handling to still return true for x64 targets.
7307 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7309 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7311 2010-05-06 Jan Hubicka <jh@suse.cz>
7313 PR tree-optimization/43791
7314 * ipa-inline.c (update_caller_keys): Remove bogus
7315 disregard_inline_limits check.
7317 2010-05-06 Michael Matz <matz@suse.de>
7319 PR tree-optimization/43984
7320 * tree-ssa-pre.c (inserted_phi_names): Remove.
7321 (inserted_exprs): Change to bitmap.
7322 (create_expression_by_pieces): Set bits, don't append to vector.
7323 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7324 (eliminate): Don't look at inserted_phi_names, remove deleted
7325 insns from inserted_exprs.
7326 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7327 (init_pre, fini_pre): Allocate and free bitmaps.
7328 (execute_pre): Insert insns on edges before elimination.
7330 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7332 * tree.c (initializer_zerop): Handle STRING_CST.
7334 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7337 * doc/invoke.texi (Wimplicit): Document as C only.
7338 * opts.c (common_handle_option): Add argument kind.
7339 (handle_option): Rename as read_cmdline_option. Factor out code to...
7340 (handle_option): ... here. New.
7341 (handle_options): Rename as read_cmdline_options.
7342 (decode_options): Update call.
7343 (set_option): Use option index instead of option pointer. Classify
7344 diagnostics correctly.
7345 (enable_warning_as_error): Call handle_option.
7346 * opts.h (set_option): Update declaration.
7347 (handle_option): Declare.
7348 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7349 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7350 * c-opts.c (set_Wimplicit): Delete.
7351 (c_family_lang_mask): New static constant.
7352 (c_common_handle_option): Add argument kind. Use handle_option
7353 instead of set_Wimplicit.
7354 (c_common_post_options): warn_implicit and warn_implicit_int
7355 are disabled by default.
7356 * c-common.c (warn_implicit): Do not define here.
7357 * c-common.h (warn_implicit): Do not declare here.
7358 (c_common_handle_option): Update declaration.
7359 * lto-opts.c (lto_reissue_options): Update call to set_option.
7361 2010-05-06 Richard Guenther <rguenther@suse.de>
7363 PR tree-optimization/43571
7364 * domwalk.c (walk_dominator_tree): Walk the dominator
7365 sons in more optimal order.
7367 2010-05-06 Richard Guenther <rguenther@suse.de>
7369 PR tree-optimization/43934
7370 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7371 (stmt_cost): Likewise.
7372 (extract_true_false_args_from_phi): New helper.
7373 (determine_max_movement): For PHI nodes verify we can hoist them
7374 and compute their cost.
7375 (determine_invariantness_stmt): Handle PHI nodes.
7376 (move_computations_stmt): Likewise. Hoist PHI nodes in
7377 if-converted form using COND_EXPRs.
7378 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7379 (tree_ssa_lim): Likewise.
7380 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7381 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7383 2010-05-06 Richard Guenther <rguenther@suse.de>
7385 PR tree-optimization/43987
7386 * tree-ssa-structalias.c (could_have_pointers): For possibly
7387 address-taken variables force pointers to be recorded.
7388 (create_variable_info_for_1): Likewise.
7389 (push_fields_onto_fieldstack): Pass in wheter all fields
7391 (find_func_aliases): Query types instead of vars whether
7392 they contain pointers where appropriate.
7394 2010-05-06 Jan Hubicka <jh@suse.cz>
7396 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7397 (record_reference, mark_address, mark_load, mark_store): Record
7399 (record_references_in_initializer): Update call of record_references.
7400 (rebuild_cgraph_edges): Remove all references before rebuiding.
7401 * cgraph.c (cgraph_create_node): Clear ref list.
7402 (cgraph_remove_node): Remove references.
7403 (dump_cgraph_node): Dump references.
7404 (cgraph_clone_node): Clone references.
7405 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7406 (struct cgraph_node, varpool_node): Add ref_lst.
7407 * ipa-ref.c: New file.
7408 * ipa-ref.h: New file.
7409 * ipa-ref-inline.h: New file.
7410 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7411 (referenced_from_other_partition_p): New function.
7412 (lto_output_varpool_node): Take set arugment; call
7413 referenced_from_other_partition.
7414 (lto_output_ref): New.
7415 (add_references): New.
7417 (output_cgraph): Compute boundary based on references; output refs.
7418 (output_varpool): Accept cgraph_node_set argument.
7421 (input_cgraph): Call input_refs.
7422 * lto-section-in.c (lto_section_name): Add refs.
7423 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7424 (ipa-ref.o): New file.
7425 * varpool.c (varpool_node): Clear ipa ref list.
7426 (varpool_remove_node): Remove references.
7427 (dump_varpool_node): Dump references.
7428 (varpool_assemble_decl): Only compile finalized ones.
7429 (varpool_extra_name_alias): Initialize ref list.
7430 * lto-streamer.c (lto-get_section_name): Add .refs section.
7431 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7432 (referenced_from_other_partition_p): Declared.
7434 2010-05-06 Ira Rosen <irar@il.ibm.com>
7436 PR tree-optimization/43901
7437 * tree-vect-stmts.c (vectorizable_call): Assert that vector
7438 type is not NULL if it's transformation phase, and return
7439 FALSE if it's analysis.
7440 (vectorizable_conversion, vectorizable_operation,
7441 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7443 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7445 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7447 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7449 * config/mips/mips-protos.h
7450 (mips_small_register_classes_for_mode_p): Delete prototype.
7452 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
7454 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7455 * config/arm/arm.c (multiple_operation_profitable_p,
7456 compute_offset_order): New static functions.
7457 (load_multiple_sequence, store_multiple_sequence): Use them.
7458 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
7459 memory offsets, not register numbers.
7460 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7462 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
7464 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7465 (get_pending_sizes, put_pending_size, put_pending_sizes):
7466 Update the uses of pending_sizes.
7467 * c-decl.c (store_parm_decls): Likewise.
7468 * c-tree.h (struct c_arg_info): Likewise.
7469 * tree.h: Update the prototype for get_pending_sizes and
7472 2010-05-05 Jason Merrill <jason@redhat.com>
7475 * c-common.c (handle_aligned_attribute): Respect
7476 ATTR_FLAG_TYPE_IN_PLACE.
7479 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7480 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7481 (TARGET_INITIALIZER): Use it.
7482 * c-common.c (attribute_takes_identifier_p): Call it.
7483 * c-common.h: Update prototype.
7484 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7485 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7487 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7490 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7491 DW_ID_down_case for Fortran compilation units.
7493 2010-05-05 Jan Hubicka <jh@suse.cz>
7495 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7498 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
7500 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7501 a variable-sized RESULT_DECL.
7503 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
7505 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7507 2010-05-05 Jason Merrill <jason@redhat.com>
7510 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7512 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7514 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
7515 Jakub Jelinek <jakub@redhat.com>
7518 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7519 (dead_debug_init, dead_debug_finish): New functions.
7520 (dead_debug_add, dead_debug_insert_before): Likewise.
7521 (df_note_bb_compute): Initialize a dead_debug object, add dead
7522 debug uses to it, insert debug bind insns before death insns,
7523 reset debug insns that refer to pending uses at the end.
7524 * rtl.h (make_debug_expr_from_rtl): New prototype.
7525 * varasm.c (make_debug_expr_from_rtl): New function.
7527 2010-05-05 Jan Hubicka <jh@suse.cz>
7529 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7530 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7531 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7532 lto_varpool_encoder_deref, lto_varpool_encoder_size,
7533 lto_varpool_encoder_encode_initializer_p,
7534 lto_set_varpool_encoder_encode_initializer): New functions.
7535 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7536 call output_varpool.
7537 (input_varpool_node): Do not always set analyzed.
7538 (input_cgraph_1): Return vector of cgraph nodes.
7539 (input_varpool_1): Return vector of varpools.
7540 (input_cgraph): Free the vectors.
7541 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7542 output only initializers needed.
7543 (lto_output): Only call output_cgraph.
7544 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
7545 * lto-section-out.c (lto_new_out_decl_state): Initialize
7546 state->varpool_node_encoder.
7547 * lto-streamer.h (lto_varpool_encoder_d): New.
7548 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
7549 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
7550 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
7551 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
7552 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
7554 (output_varpool, input_varpool): Remove declarations.
7556 2010-05-05 Jan Hubicka <jh@suse.cz>
7558 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
7559 with body can prevail.
7561 2010-05-05 Jan Hubicka <jh@suse.cz>
7563 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
7566 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7568 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
7570 * gengtype.h (erro_at_line): Constify pos argument.
7572 * gengtype.c: Include hashtab.h.
7573 (enum gc_used): Document GC_MAYBE_POINTED_TO.
7574 (error_at_line): Constify pos argument.
7575 (do_typedef): Initialize p->opt field.
7576 (get_file_gtfilename): Fix comment typo.
7577 (struct walk_type_data): Constify line field.
7578 (get_output_file_for_structure): New function.
7579 (write_local_func_for_structure): Constify orig_s argument.
7580 Use get_output_file_for_structure.
7581 (write_func_for_structure): Use get_output_file_for_structure.
7582 (INDENT): New define.
7583 (dump_pair, dump_type, dump_type_list, dump_typekind)
7584 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
7585 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
7587 (seen_types): New variable.
7588 (main): New variable do_dump. Process "-d" command line option.
7589 Call dump_everything if dump requested.
7591 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7593 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
7594 in a temporary instead of invoking the macro multiple times.
7595 (track_expr_p): Likewise.
7597 2010-05-04 Neil Vachharajani <nvachhar@google.com>
7599 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
7601 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
7602 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
7603 conditions for printing notes.
7604 * common.opt (-Wcoverage-mismatch): Allow negative, default to
7605 true, update documentation.
7606 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
7608 2010-05-04 Jakub Jelinek <jakub@redhat.com>
7611 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
7614 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7617 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
7618 (*sse_prologue_save_insn1): Likewise.
7619 (SSE prologue save splitter): Likewise.
7621 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
7623 * tree.c (free_lang_data_in_one_sizepos): New inline function.
7624 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
7625 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
7626 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
7627 all decls. Call it on DECL_FIELD_OFFSET of fields.
7628 (find_decls_types_r): Follow DECL_VALUE_EXPR.
7629 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
7631 2010-05-04 Martin Jambor <mjambor@suse.cz>
7633 * tree-sra.c (build_access_from_expr_1): The first parameter type
7634 changed to simple tree.
7635 (build_access_from_expr): Likewise, gsi parameter was eliminated.
7636 (scan_assign_result): Renamed to assignment_mod_result, enum elements
7638 (build_accesses_from_assign): Removed all parameters except for a
7639 simple gimple statement. Now returns a simple bool.
7640 (scan_function): All non-analysis parts moved to separate functions
7641 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
7642 parameters and updated both callers.
7643 (sra_modify_expr): Removed parameter data.
7644 (sra_modify_function_body): New function.
7645 (perform_intra_sra): Call sra_modify_function_body to modify the
7647 (replace_removed_params_ssa_names): Parameter data changed into
7649 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
7650 changed the parameter dont_convert to convert with the opposite
7652 (sra_ipa_modify_assign): Parameter data changed into adjustments
7653 vector, return value changed to bool.
7654 (ipa_sra_modify_function_body): New function.
7655 (sra_ipa_reset_debug_stmts): Updated a comment.
7656 (modify_function): Use ipa_sra_modify_function_body to modify function
7659 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7662 * alias.c (true_dependence): Handle the same VALUE in x and mem.
7663 (canon_true_dependence): Likewise.
7664 (write_dependence_p): Likewise.
7666 2010-05-04 Jan Hubicka <jh@suse.cz>
7668 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
7669 * cgraphbuild.c: Include ipa-utils.h
7670 (record_reference_ctx): New struct.
7671 (record_reference): Simplify to work on initializers; not statements.
7672 (mark_address, mark_load, mark_store): New.
7673 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7675 (record_references_in_initializer): Update use of record_reference.
7676 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7679 2010-05-04 Jan Hubicka <jh@suse.cz>
7681 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
7682 node will be removed anyway.
7683 (lto_varpool_replace_node): Allow also unanalyzed nodes;
7684 relink aliases of node into prevailing node.
7685 * varpool.c (varpool_remove_node): Remove aliases properly;
7686 when removing node, remove all its aliases too; remove DECL_INITIAL
7687 of removed node; ggc_free the varpool node.
7689 2010-05-04 Richard Guenther <rguenther@suse.de>
7691 PR tree-optimization/43879
7692 * tree-ssa-structalias.c (alias_get_name): Use
7693 DECL_ASSEMBLER_NAME if available.
7694 (create_function_info_for): Return the varinfo node.
7695 (ipa_pta_execute): Associate same-body aliases and extra names
7696 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
7698 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
7700 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
7702 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
7705 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
7706 only if HONOR_REG_ALLOC_ORDER is not defined.
7708 2010-05-04 Richard Guenther <rguenther@suse.de>
7710 PR tree-optimization/43949
7711 * tree-vrp.c (extract_range_from_binary_expr): Only handle
7714 2010-04-26 Jason Merrill <jason@redhat.com>
7716 * c.opt (-fstrict-enums): New.
7717 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
7719 2010-05-03 David Ung <davidu@mips.com>
7720 James E. Wilson <wilson@codesourcery.com>
7722 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
7723 emit the trap instruction before the divide for TUNE_74K.
7725 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
7727 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
7728 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
7729 based on the above, for new target hook.
7731 * hooks.c (hook_bool_mode_true): New generic hook.
7732 * hooks.h (hook_bool_mode_true): Add prototype.
7734 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
7736 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
7737 target hook, set to hook_bool_mode_false.
7738 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
7739 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
7740 with targetm.small_register_classes_for_mode_p.
7741 (find_reusable_reload): Likewise.
7742 (combine_reloads): Likewise.
7743 * reload1.c (reload_as_needed): Likewise.
7744 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
7745 * ifcvt.c (noce_process_if_block, check_cond_move_block,
7746 dead_or_predicable): Likewise.
7747 * regmove.c (optimize_reg_copy_1): Likewise.
7748 * calls.c (prepare_call_address): Likewise.
7749 (precompute_register_parameters): Likewise.
7751 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
7753 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
7754 implementation of the hook that considers all register classes
7755 small except for SH64.
7756 (sh_override_options): Use the new hook.
7757 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
7760 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
7762 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
7763 implementation of the hook that considers all register classes
7765 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
7768 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
7770 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
7771 implementation of the hook that considers all register classes
7773 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
7776 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
7778 * config/m32c/m32c.h: Likewise.
7779 * config/pdp11/pdp11.h: Likewise.
7780 * config/avr/avr.h: Likewise.
7781 * config/xtensa/xtensa.h: Likewise.
7782 * config/m68hc11/m68hc11.h: Likewise.
7783 * config/mn10300/mn10300.h: Likewise.
7784 * config/mcore/mcore.h: Likewise.
7785 * config/h8300/h8300.h: Likewise.
7786 * config/bfin/bfin.h: Likewise.
7788 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
7789 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
7791 2010-05-03 Anatoly Sokolov <aesok@post.ru>
7793 * double-int.h (tree_to_double_int): Remove macro.
7794 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
7795 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7796 (tree_to_double_int): New function.
7797 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
7799 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7801 2010-05-03 Richard Guenther <rguenther@suse.de>
7803 PR tree-optimization/43971
7804 * tree-ssa-structalias.c (get_constraint_for_1): Fix
7805 constraints in the !flag_delete_null_pointer_checks case.
7807 2010-05-03 Jakub Jelinek <jakub@redhat.com>
7810 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
7811 result mode matches original rtl mode.
7813 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
7816 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
7818 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7820 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
7821 when processing flag options.
7823 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7825 * gcov-iov.c (main): Change format string placeholder
7826 from %#08x to 0x%08x.
7827 * genchecksum.c (dosum): Change format string placeholder
7828 from %#02x to 0x%02x.
7830 2010-05-02 Richard Guenther <rguenther@suse.de>
7832 PR tree-optimization/43879
7833 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
7835 2010-05-02 Bruno Haible <bruno@clisp.org>
7837 * doc/extend.texi (Function Attributes): Fix a typo.
7839 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7842 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
7843 placeholder from 0x%x to %#x.
7844 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
7845 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
7846 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
7847 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
7848 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
7849 * config/i386/i386.c (ix86_target_string): Ditto.
7850 * config/i386/i386.c (output_pic_addr_const): Ditto.
7851 (print_operand): Ditto.
7853 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7855 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
7856 placeholder from 0x%x to %#x.
7857 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
7858 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
7859 (ASM_OUTPUT_DEBUG_DATA): Ditto.
7860 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
7861 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
7862 * optc-gen.awk: Ditto.
7863 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
7864 (HOST_WIDE_INT_PRINT_HEX): Ditto.
7865 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
7866 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
7868 2010-05-01 Anatoly Sokolov <aesok@post.ru>
7870 * target.h (struct calls): Add function_value_regno_p field.
7871 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7872 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
7873 * targhooks.c (default_function_value_regno_p): New function.
7874 * targhooks.h (default_function_value_regno_p): Declare function.
7875 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
7876 * builtins.c. (apply_result_size): (Ditto.).
7877 * combine.c. (likely_spilled_retval_p): (Ditto.).
7878 * mode-switching.c. Include 'target.h'.
7879 (create_pre_exit): Use function_value_regno_p hook.
7880 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
7881 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
7882 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
7884 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
7885 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
7886 (ix86_function_value_regno_p): Declare as static, change argument
7887 type to const unsigned int.
7888 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
7890 2010-05-01 Richard Guenther <rguenther@suse.de>
7892 PR tree-optimization/43949
7893 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
7895 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
7897 2010-05-01 Anatoly Sokolov <aesok@post.ru>
7899 * rtl.h (CONST_DOUBLE_P): Define.
7900 (rtx_to_double_int): Declare.
7901 * emit-rtl.c (rtx_to_double_int): New function.
7902 * dwarf2out.c (insert_double): New function.
7903 (loc_descriptor, add_const_value_attribute): Clean up, use
7904 rtx_to_double_int and insert_double functions.
7906 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
7908 * doc/extend.texi (Inline): Add missing return keyword to examples.
7909 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
7912 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
7914 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
7915 the variable part of the offset as well. Use highest_pow2_factor for
7916 all alignment checks.
7918 2010-04-30 Richard Guenther <rguenther@suse.de>
7920 PR tree-optimization/43879
7921 * tree-ssa-structalias.c (type_could_have_pointers): Functions
7924 2010-04-30 Jan Hubicka <jh@suse.cz>
7926 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
7928 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
7930 2010-04-30 Jan Hubicka <jh@suse.cz>
7932 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
7934 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
7935 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
7936 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
7937 cgraph_node_set_needs_ltrans_p): Remove.
7939 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
7941 * sdbout.c: Include vec.h, do not include varray.h.
7942 (deferred_global_decls, sdbout_global_decl,
7943 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
7944 * toplev.c: Do not include varray.h.
7945 (dump_memory_report): Do not dump VARRAY statistics.
7946 * gengtype.c (open_base_file): Ignore varray.h.
7947 * Makefile.in: Update for abovementioned changes.
7948 Remove all traces of varray.c and varray.h.
7949 * varray.c: Remove file.
7950 * varray.h: Remove file.
7952 2010-04-30 Jan Hubicka <jh@suse.cz>
7954 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
7957 2010-04-30 Jan Hubicka <jh@suse.cz>
7959 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
7962 2010-04-30 Richard Guenther <rguenther@suse.de>
7964 * tree-ssa-structalias.c (get_constraint_for_1): Generate
7965 constraints for CONSTRUCTOR.
7967 2010-04-30 Richard Guenther <rguenther@suse.de>
7970 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
7971 first after all lowering passes.
7973 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
7975 * toplev.c: Include varray.h for statistics dumping.
7976 * tree.h: Do not declare varray_head_tag.
7977 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
7978 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
7979 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
7980 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
7981 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
7982 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
7983 c-common.c, c-common.h, reg-stack.c, basic-block.h,
7984 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
7986 * Makefile.in: Update for abovementioned changes.
7988 2010-04-30 Jakub Jelinek <jakub@redhat.com>
7991 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
7993 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7995 * config/picochip/picochip.c (picochip_legitimize_address): Define.
7996 Use this function to do machine-specific conversion.
7997 (picochip_legitimize_reload_address): Likewise.
7998 (picochip_legitimate_address_p): Check valid base register only if
8000 (picochip_check_conditional_copy): Check for modw only if opnd is
8002 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8003 to call the function in c.
8004 * config/picochip/picochip-protos.h
8005 (picochip_legitimize_reload_address): Define.
8006 * config/picochip/picochip.md (supported_compare1): Define.
8008 2010-04-30 Jan Hubicka <jh@suse.cz>
8010 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8011 (cgraph_global_info): Remove inlined.
8012 (LTO_cgraph_tag_names): Remove.
8013 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8014 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8015 simplify cgraph tags and document.
8016 (lto_output_node): Use only LTO_cgraph_unavail_node and
8017 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8018 for_functions_valid, global info, process and output flags.
8019 (input_overwrite_node): Initialize estimated stack size and
8020 estimated growth. Do not read flags we no longer store.
8021 (input_node): Likewise do not read info no longer stored.
8022 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8025 2010-04-30 Richard Guenther <rguenther@suse.de>
8027 PR tree-optimization/43879
8028 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8029 handle non-zero initializers.
8031 2010-04-30 Richard Guenther <rguenther@suse.de>
8033 * builtins.c (fold_builtin_1): Delete free (0).
8035 2010-04-29 Jan Hubicka <jh@suse.cz>
8037 * gengtype.c (open_base_files): Add lto-streamer.h
8038 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8039 (pass_ipa_cp): GGC collect.
8040 * toplev. (compile_file): Do not output symbols.
8041 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8042 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8043 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8044 * lto-section-in.c: Include ggc.h
8045 (lto_new_in_decl_state): Alloc in GGC.
8046 (lto_delete_in_decl_state): Likewise.
8047 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8050 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8053 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8054 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8055 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8056 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8057 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8058 account only if HONOR_REG_ALLOC_ORDER is not defined.
8059 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8060 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8062 2010-04-29 Jon Grant <04@jguk.org>
8064 * collect2.c (vflag): Change type from int to bool.
8066 (helpflag): New global bool.
8067 (main): Set vflag and debug with boolean, not integer truth values.
8068 Accept new "--help" option and output usage text if found.
8069 * collect2.h (vflag): Update prototype.
8072 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8075 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8077 2010-04-29 Richard Guenther <rguenther@suse.de>
8080 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8081 with ATTRIBUTE_UNUSED.
8083 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8086 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8087 INSN_P with NONDEBUG_INSN_P.
8088 (distance_non_agu_define): Likewise.
8089 (distance_agu_use): Likewise.
8091 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8093 From Dominique d'Humieres <dominiq@lps.ens.fr>
8095 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8098 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8100 * plugin.h (invoke_plugin_callbacks): New inline function.
8101 * plugin.c (flag_plugin_added): New global flag.
8102 (add_new_plugin): Initialize above flag.
8103 (invoke_plugin_callbacks): Rename to ...
8104 (invoke_plugin_callbacks_full): ... this.
8106 2010-04-28 Jan Hubicka <jh@suse.cz>
8108 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8109 (lto_varpool_replace_node): New.
8110 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8111 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8112 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8113 * cgraph.h (varpool_node_ptr): New type.
8114 (varpool_node_ptr): New vector.
8115 (varpool_node_set_def): New structure.
8116 (varpool_node_set): New type.
8117 (varpool_node_set): New vector.
8118 (varpool_node_set_element_def): New structure.
8119 (varpool_node_set_element, const_varpool_node_set_element): New types.
8120 (varpool_node_set_iterator): New type.
8121 (varpool_node): Add prev pointers, add used_from_other_partition,
8123 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8124 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8125 varpool_get_node, varpool_remove_node): Declare.
8126 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8127 varpool_node_set_size): New inlines.
8128 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8129 * tree-pass.h (varpool_node_set_def): Forward declare.
8130 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8131 (ipa_write_optimization_summaries): Update prototype.
8132 * ipa-cp.c (ipcp_write_summary): Update.
8133 * ipa-reference.c (ipa_reference_write_summary): Update.
8134 * lto-cgraph.c (lto_output_varpool_node): New static function.
8135 (output_varpool): New function.
8136 (input_varpool_node): New static function.
8137 (input_varpool_1): New function.
8138 (input_cgraph): Input varpool.
8139 * ipa-pure-const.c (pure_const_write_summary): Update.
8140 * lto-streamer-out.c (lto_output): Update, output varpool too.
8141 (write_global_stream): Kill WPA hack.
8142 (produce_asm_for_decls): Update.
8143 (output_alias_pair_p): Handle variables.
8144 (output_unreferenced_globals): Output only needed partition of varpool.
8145 * ipa-inline.c (inline_write_summary): Update.
8146 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8148 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8149 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8150 varpool_node_set_new, varpool_node_set_add,
8151 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8152 debug_varpool_node_set): New functions.
8153 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8154 (execute_one_pass): Process new decls too.
8155 (ipa_write_summaries_2): Pass around vsets.
8156 (ipa_write_summaries_1): Likewise.
8157 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8159 (ipa_write_optimization_summaries_1): Pass around vsets.
8160 (ipa_write_optimization_summaries): Likewise.
8161 * varpool.c (varpool_get_node): New.
8162 (varpool_node): Update doubly linked lists.
8163 (varpool_remove_node): New.
8164 (dump_varpool_node): More dumping.
8165 (varpool_enqueue_needed_node): Update doubly linked lists.
8166 (decide_is_variable_needed): Kill ltrans hack.
8167 (varpool_finalize_decl): Kill lto hack.
8168 (varpool_assemble_decl): Skip decls in other partitions.
8169 (varpool_assemble_pending_decls): Update doubly linkes lists.
8170 (varpool_empty_needed_queue): Likewise.
8171 (varpool_extra_name_alias): Likewise.
8172 * lto-streamer.c (lto_get_section_name): Add vars section.
8173 * lto-streamer.h (lto_section_type): Update.
8174 (output_varpool, input_varpool): Declare.
8176 2010-04-28 Mike Stump <mikestump@comcast.net>
8178 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8180 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8182 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8183 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8184 (lto_input_ts_type_tree_pointers): Likewise.
8185 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8186 (lto_output_ts_type_tree_pointers): Likewise.
8188 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8190 Uniquization of constants at the Tree level
8191 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8192 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8194 (tree_output_constant_def): Declare.
8195 * gimplify.c (gimplify_init_constructor): When using block copy, first
8196 uniquize the constant constructor on the RHS.
8197 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8198 DECL_IN_CONSTANT_POOL flag.
8199 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8200 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8202 (assemble_variable): Deal with symbols belonging to the tree constant
8204 (get_constant_section): Add ALIGN parameter and simplify.
8205 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8206 (assemble_constant_contents): Use the expression of the VAR_DECL.
8207 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8208 (tree_output_constant_def): New global function.
8209 (mark_constant): Use the expression of the VAR_DECL.
8210 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8212 (output_object_block): Likewise and assemble the expression.
8214 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8216 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8217 hash_tree, eq_tree): New tree hash table.
8218 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8219 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8220 lto_orig_address_remove): Reimplement.
8222 2010-04-28 Xinliang David Li <davidxl@google.com>
8225 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8226 (compute_uninit_opnds_pos): New function.
8227 (is_non_loop_exit_postdominating): New function.
8228 (compute_control_dep_chain): New function.
8229 (find_pdom): New function.
8230 (convert_control_dep_chain_into_preds): New function.
8231 (find_predicates): New function.
8232 (find_control_equiv_block): New function.
8233 (collect_phi_def_edges): New function.
8234 (find_def_preds): New function.
8235 (find_dom): New function.
8236 (dump_predicates): New function.
8237 (get_cmp_code): New function.
8238 (is_value_included_in): New function.
8239 (find_matching_predicate_in_rest_chains): New function.
8240 (use_pred_not_overlap_with_undef_path_pred): New function.
8241 (is_use_properly_guarded): New function.
8242 (normalize_cond_1): New function.
8243 (is_and_or_or): New function.
8244 (normalize_cond): New function.
8245 (is_gcond_subset_of): New function.
8246 (is_subset_of_any): New function.
8247 (is_or_set_subset_of): New function.
8248 (is_and_set_subset_of): New function.
8249 (is_norm_cond_subset_of): New function.
8250 (is_pred_expr_subset_of): New function.
8251 (is_pred_chain_subset_of): New function.
8252 (is_included_in): New function.
8253 (is_superset_of): New function.
8254 (find_uninit_use): New function.
8255 (warn_uninitialized_phi): New function.
8256 (compute_possibly_undefined_names): New function.
8257 (ssa_undefined_value_p): New function.
8258 (execute_late_warn_uninitialized): New function.
8259 * tree-ssa.c (ssa_undefined_value_p): Removed.
8260 (warn_uninit): Changed to extern.
8261 (warn_uninitialized_phi): Removed.
8262 (warn_uninitialized_vars): Changed to extern.
8263 (execute_late_warn_uninitialized): Removed
8264 * tree-flow.h: Add new prototypes.
8265 * timevar.def: Add new time variable.
8266 * Makefile.in: Add new build file.
8268 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8270 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8273 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8276 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8278 2010-04-28 Martin Jambor <mjambor@suse.cz>
8280 * cgraph.h (struct cgraph_node): New field indirect_calls.
8281 (struct cgraph_indirect_call_info): New type.
8282 (struct cgraph_edge): Removed field indirect_call. New fields
8283 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8284 (cgraph_create_indirect_edge): Declare.
8285 (cgraph_make_edge_direct): Likewise.
8286 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8287 * ipa-prop.h (struct ipa_param_call_note): Removed.
8288 (struct ipa_node_params): Removed field param_calls.
8289 (ipa_create_all_structures_for_iinln): Declare.
8290 * cgraph.c: Described indirect edges and uids in initial comment.
8291 (cgraph_add_edge_to_call_site_hash): New function.
8292 (cgraph_edge): Search also among the indirect edges, use
8293 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8294 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8295 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8297 (initialize_inline_failed): Assign a reason to indirect edges.
8298 (cgraph_create_edge_1): New function.
8299 (cgraph_create_edge): Moved some functionality to
8300 cgraph_create_edge_1.
8301 (cgraph_create_indirect_edge): New function.
8302 (cgraph_edge_remove_callee): Add an assert checking for
8304 (cgraph_edge_remove_caller): Special-case indirect edges.
8305 (cgraph_remove_edge): Likewise.
8306 (cgraph_set_edge_callee): New function.
8307 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8308 (cgraph_make_edge_direct): New function.
8309 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8310 the declaration of the call statement matches.
8311 (cgraph_node_remove_callees): Special-case indirect edges.
8312 (cgraph_clone_edge): Likewise.
8313 (cgraph_clone_node): Clone also the indirect edges.
8314 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8315 indirect_call, dump count of indirect_calls edges.
8316 * ipa-prop.c (iinlining_processed_edges): New variable.
8317 (ipa_note_param_call): Create indirect edges instead of
8318 creating notes. New parameter node.
8319 (ipa_analyze_call_uses): New parameter node, pass it on to
8320 ipa_note_param_call.
8321 (ipa_analyze_stmt_uses): Likewise.
8322 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8323 (print_edge_addition_message): Work on edges rather than on notes.
8324 (update_call_notes_after_inlining): Likewise, renamed to
8325 update_indirect_edges_after_inlining.
8326 (ipa_create_all_structures_for_iinln): New function.
8327 (ipa_free_node_params_substructures): Do not free notes.
8328 (ipa_edge_duplication_hook): Propagate bits within
8329 iinlining_processed_edges bitmap.
8330 (ipa_node_duplication_hook): Do not duplicate notes.
8331 (free_all_ipa_structures_after_ipa_cp): Renamed to
8332 ipa_free_all_structures_after_ipa_cp.
8333 (free_all_ipa_structures_after_iinln): Renamed to
8334 ipa_free_all_structures_after_iinln.
8335 (ipa_write_param_call_note): Removed.
8336 (ipa_read_param_call_note): Removed.
8337 (ipa_write_indirect_edge_info): New function.
8338 (ipa_read_indirect_edge_info): Likewise.
8339 (ipa_write_node_info): Do not stream notes, do stream information
8341 (ipa_read_node_info): Likewise.
8342 (lto_ipa_fixup_call_notes): Removed.
8343 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8344 * ipa-inline.c (pass_ipa_inline): Likewise.
8345 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8346 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8347 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8349 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8351 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8352 (output_cgraph): Stream also indirect edges.
8353 (lto_output_edge): Added capability to stream indirect edges.
8354 (input_edge): Likewise.
8355 (input_cgraph_1): Likewise.
8356 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8359 2010-04-28 Richard Guenther <rguenther@suse.de>
8361 PR tree-optimization/43879
8362 PR tree-optimization/43909
8363 * tree-ssa-structalias.c (struct variable_info): Add
8364 only_restrict_pointers flag.
8365 (new_var_info): Initialize it. Increment stats.total_vars here.
8366 (create_function_info_for): Do not increment stats.total_vars here.
8367 (get_function_part_constraint): Fix build with C++.
8368 (insert_into_field_list): Remove.
8369 (push_fields_onto_fieldstack): Properly merge fields.
8370 (create_variable_info_for): Split and simplify.
8371 (create_variable_info_for_1): New piece.
8372 (intra_create_variable_infos): Properly make restrict constraints
8375 2010-04-28 Richard Guenther <rguenther@suse.de>
8378 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8380 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8381 Jan Hubicka <hubicka@ucw.cz>
8383 * doc/invoke.texi (-Wsuggest-attribute=const,
8384 -Wsuggest-attribute=pure): Document.
8385 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8386 (function_always_visible_to_compiler_p,
8387 suggest_attribute, warn_function_pure, warn_function_const):
8389 (check_call): Improve debug info.
8390 (analyze_function): Do not check availability.
8391 (add_new_function): Check availability.
8392 (propagate): Output warnings.
8393 (skip_function_for_local_pure_const): New function.
8394 (local_pure_const): Use it; output warnings.
8395 * common.opt (Wsuggest-attribute=const,
8396 Wsuggest-attribute=pure): New.
8398 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8400 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8401 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8402 or DW_CFA_def_cfa_offset{,_sf}.
8404 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8406 * tree.h: Fix truncated long macros.
8408 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
8410 * collect2.c (TARGET_64BIT): Redefine to target's default.
8411 * tlink.c: Likewise.
8412 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8413 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8414 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8415 for underscoring __USER_LABEL_PREFIX__.
8416 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8417 (SUB_LINK_ENTRY32): New.
8418 (SUB_LINK_ENTRY64): New.
8419 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8420 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8421 (SUB_LINK_ENTRY64): New.
8422 (SUB_LINK_ENTRY): New.
8423 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8424 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8425 x64 target is choosen.
8426 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8427 * configure: Regenerated.
8428 * configure.ac (leading-mingw64-underscores): Option added.
8430 2010-04-27 Jan Hubicka <jh@suse.cz>
8432 * doc/invoke.texi (-fipa-profile): Document.
8433 * opts.c (decode_options): Enable ipa-profile at -O1.
8434 * timevar.def (TV_IPA_PROFILE): Define.
8435 * common.opt (fipa-profile): Add.
8436 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8438 (cgraph_propagate_frequency): Handle only local ones.
8439 * tree-pass.h (pass_ipa_profile): Declare.
8440 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8441 (pass_ipa_profile): Use TV_IPA_PROFILE.
8442 * ipa.c (ipa_profile): New function.
8443 (gate_ipa_profile): Likewise.
8444 (pass_ipa_profile): New global variable.
8445 * passes.c (pass_ipa_profile): New.
8447 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
8449 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8451 2010-04-27 Martin Jambor <mjambor@suse.cz>
8454 * ipa.c (dissolve_same_comdat_group_list): New function.
8455 (function_and_variable_visibility): Call
8456 dissolve_same_comdat_group_list when comdat group contains external or
8458 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8459 lists are circular and that they contain only DECL_ONE_ONLY nodes.
8461 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8463 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8464 (const_hash_1) <VECTOR_CST>: New case.
8465 (compare_constant) <VECTOR_CST>: Likewise.
8466 <ADDR_EXPR>: Deal with LABEL_REFs.
8467 (copy_constant) <VECTOR_CST>: New case.
8469 2010-04-27 Jan Hubicka <jh@suse.cz>
8471 * cgraph.c (cgraph_propagate_frequency): New function.
8472 * cgraph.h (cgraph_propagate_frequency): Declare.
8473 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8474 cgraph_propagate_frequency.
8476 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8478 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8480 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
8483 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8484 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8485 here to determine which regs to push and how much stack to reserve.
8487 2010-04-27 Jie Zhang <jie@codesourcery.com>
8489 * doc/gimple.texi (gimple_statement_with_ops): Remove
8490 addresses_taken field.
8491 (gimple_statement_with_memory_ops): Likewise.
8493 2010-04-27 Jan Hubicka <jh@suse.cz>
8495 * tree-inline.c (eni_inlining_weights): Remove.
8496 (estimate_num_insns): Special case more builtins.
8498 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
8501 * c-typeck.c (build_binary_op): Move forward check for comparison
8502 pointer with null pointer constant and adjust the diagnostic message.
8504 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
8507 * configure.ac (gcc_cv_as_section_has_align): Set if installed
8508 binutils supports extended .section directive needed by LTO, or
8509 warn if older binutils found.
8510 (LTO_BINARY_READER): New AC_SUBST'd variable.
8511 (LTO_USE_LIBELF): Likewise.
8512 * gcc/config.gcc (lto_binary_reader): New target-specific configure
8514 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8515 (LTO_USE_LIBELF): Likewise.
8516 * configure: Regenerate.
8518 * collect2.c (is_elf): Rename from this ...
8519 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8520 object files in addition to ELF-formatted ones.
8521 (scan_prog_file): Caller updated. Also allow for LTO info marker
8522 symbol to be prefixed or not by an extra underscore.
8524 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8525 * config/i386/winnt.c: Also #include lto-streamer.h
8526 (i386_pe_asm_named_section): Specify 1-byte section alignment for
8528 (i386_pe_asm_output_aligned_decl_common): Add comment.
8529 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8531 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
8534 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8535 Add missing earlyclobber for second alternative.
8537 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
8539 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8540 bits for artificial defs at the top of the block.
8541 * fwprop.c (single_def_use_enter_block): Don't call it.
8543 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
8546 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
8547 instead of "$gcc_cv_objdump -T".
8548 Use "-undefined dynamic_lookup" on darwin.
8549 * gcc/configure: Regenerate.
8551 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8554 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
8556 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8558 * c-parser.c (struct c_token): Move location field up.
8559 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
8560 (struct c_declspecs): Convert typespec_word, storage_class, and
8561 default_int_p into bitfields.
8562 (struct c_declarator): Move loc field up.
8564 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8566 * cfgloop.h (struct loop): Move can_be_parallel field up.
8567 * ipa-prop.h (struct ip_node_params): Move bitfields up.
8568 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
8570 (struct iv_cand): Convert pos field into a bitfield.
8571 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
8573 (struct _stmt_vec_info): Shuffle fields for better packing.
8575 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8577 * varasm.c (IN_NAMED_SECTION): Remove guard.
8578 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
8579 (IN_NAMED_SECTION_P): ...this.
8580 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
8581 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8583 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8585 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
8586 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
8587 of shadowing it. Fix comments.
8589 2010-04-26 Jan Hubicka <jh@suse.cz>
8591 * cgraph.c (cgraph_create_node): Set node frequency to normal.
8592 (cgraph_clone_node): Copy function frequency.
8593 * cgraph.h (node_frequency): New enum
8594 (struct cgraph_node): Add.
8595 * final.c (rest_of_clean_state): Update.
8596 * lto-cgraph.c (lto_output_node): Output node frequency.
8597 (input_overwrite_node): Input node frequency.
8598 * tre-ssa-loop-ivopts (computation_cost): Update.
8599 * lto-streamer-out.c (output_function): Do not output function
8601 * predict.c (maybe_hot_frequency_p): Update and handle functions
8603 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
8605 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
8606 (compute_function_frequency): Set noreturn functions to be executed
8608 (choose_function_section): Update.
8609 * lto-streamer-in.c (input_function): Do not input function frequency.
8610 * function.c (allocate_struct_function): Do not initialize function
8612 * function.h (function_frequency): Remove.
8613 (struct function): Remove function frequency.
8614 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
8615 (try_update): Update.
8616 * tree-inline.c (initialize_cfun): Do not update function frequency.
8617 * passes.c (pass_init_dump_file): Update.
8618 * i386.c (ix86_compute_frame_layout): Update.
8619 (ix86_pad_returns): Update.
8621 2010-04-26 Jie Zhang <jie@codesourcery.com>
8623 PR tree-optimization/43833
8624 * tree-vrp.c (range_int_cst_p): New.
8625 (range_int_cst_singleton_p): New.
8626 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
8627 when both operands are constants. Use range_int_cst_p in
8630 2010-04-26 Jan Hubicka <jh@suse.cz>
8632 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
8634 2010-04-26 Richard Guenther <rguenther@suse.de>
8637 * gimple.c (gimple_decl_printable_name): Deal gracefully
8638 with a NULL DECL_NAME.
8640 2010-04-26 Richard Guenther <rguenther@suse.de>
8643 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
8644 if emitting debug information and it is either a function
8645 or a namespace decl.
8647 2010-04-26 Ira Rosen <irar@il.ibm.com>
8649 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
8650 determine if the statement is vectorizable, and a macro to access it.
8651 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8652 Skip statements that can't be vectorized. If the analysis fails,
8653 mark the statement as unvectorizable if vectorizing basic block.
8654 (vect_compute_data_refs_alignment): Likewise.
8655 (vect_verify_datarefs_alignment): Skip statements marked as
8656 unvectorizable. Add print.
8657 (vect_analyze_group_access): Skip statements that can't be
8658 vectorized. If the analysis fails, mark the statement as
8659 unvectorizable if vectorizing basic block.
8660 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
8661 * tree-vect-stmts.c (vectorizable_store): Fix the number of
8662 generated stmts for SLP.
8663 (new_stmt_vec_info): Initialize the new field.
8664 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
8665 statements marked as unvectorizable.
8667 2010-04-25 Joseph Myers <joseph@codesourcery.com>
8669 * c-common.c (flag_isoc1x): New.
8670 (flag_isoc99): Update comment.
8671 * c-common.h (flag_isoc1x): New.
8672 (flag_isoc99): Update comment.
8673 * c-cppbuiltin.c (builtin_define_float_constants): Also define
8674 __<type>_DECIMAL_DIG__.
8675 * c-opts.c (set_std_c1x): New.
8676 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
8677 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
8678 * c.opt (-std=c1x, -std=gnu1x): New options.
8679 * doc/cpp.texi: Mention -std=c1x.
8680 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
8681 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
8682 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
8683 * doc/standards.texi: Mention C1X.
8684 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
8685 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
8686 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
8689 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
8691 * config/i386/gmon-sol2.c (_mcleanup): Change format string
8692 placeholder from 0x%x to %#x.
8693 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8694 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8695 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8696 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8697 * config/i386/i386.c (ix86_target_string): Ditto.
8698 (output_pic_addr_const): Ditto.
8699 (print_operand): Ditto.
8701 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
8703 * combine.c (find_split_point): Add third argument. Use it
8704 to find nested multiply-accumulate instructions. Adjust calls.
8705 (try_combine): Adjust call to find_split_point.
8707 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8709 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
8711 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
8713 PR tree-optimization/41442
8714 * fold-const.c (merge_truthop_with_opposite_arm): New function.
8715 (fold_binary_loc): Call it.
8717 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8719 * toplev.c (general_init): Set default for fdiagnostics-show-option.
8720 * opts.c (common_handle_option): Allow disabling it.
8721 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
8723 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
8725 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
8726 between modes if both types are integral.
8728 2010-04-23 Richard Guenther <rguenther@suse.de>
8730 PR tree-optimization/43572
8731 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
8733 2010-04-23 Richard Guenther <rguenther@suse.de>
8736 * tree-inline.c (tree_can_inline_p): Also check compatibility
8739 2010-04-23 Martin Jambor <mjambor@suse.cz>
8741 PR tree-optimization/43846
8742 * tree-sra.c (struct access): New flag grp_assignment_read.
8743 (build_accesses_from_assign): Set grp_assignment_read.
8744 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
8745 (enum mark_read_status): New type.
8746 (analyze_access_subtree): Propagate grp_assignment_read, create
8747 accesses also if both direct_read and root->grp_assignment_read.
8749 2010-04-23 Martin Jambor <mjambor@suse.cz>
8752 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
8753 function does not have type attributes.
8755 2010-04-23 Richard Guenther <rguenther@suse.de>
8758 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
8761 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8763 * sese.h (create_if_region_on_edge): Remove.
8765 * sese.c (create_if_region_on_edge): Make static.
8767 * tree-inline.c: Do not include ggc.h.
8769 * expr.c: Do not include ggc.h.
8771 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
8774 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
8777 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8778 in the middle of insns for casesi_worker_2.
8780 2010-04-22 David Edelsohn <edelsohn@gnu.org>
8782 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
8784 2010-04-22 Ira Rosen <irar@il.ibm.com>
8786 PR tree-optimization/43842
8787 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
8788 loop unrolling in update of exit phis. Fix comment.
8789 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
8790 least two reduction statements in the loop before starting SLP
8793 2010-04-22 Nick Clifton <nickc@redhat.com>
8795 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
8797 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
8799 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
8802 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8804 * tree-parloops.c (loop_parallel_p): New argument
8805 parloop_obstack. Pass it down.
8806 (parallelize_loops): New variable parloop_obstack. Initialize it,
8807 pass it down, free it.
8809 * tree-loop-linear.c (linear_transform_loops): Pass down
8812 * tree-data-ref.h (lambda_compute_access_matrices): New argument
8813 of type struct obstack *.
8815 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
8816 scratch_obstack. Initialize it, pass down, free it.
8818 * lambda.h (lambda_loop_new): Remove.
8819 (lambda_matrix_new, lambda_matrix_inverse)
8820 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
8821 argument of type struct obstack *.
8823 * lambda-trans.c (lambda_trans_matrix_new): New argument
8824 lambda_obstack. Pass it down, use obstack allocation for ret.
8825 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
8828 * lambda-mat.c (lambda_matrix_get_column)
8829 (lambda_matrix_project_to_null): Remove.
8830 (lambda_matrix_new): New argument lambda_obstack. Use obstack
8832 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
8835 * lambda-code.c (lambda_loop_new): New function.
8836 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
8837 (lambda_compute_auxillary_space, lambda_compute_target_space)
8838 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
8839 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
8840 (build_access_matrix): New argument lambda_obstack. Use obstack
8842 (lambda_compute_step_signs, lambda_compute_access_matrices): New
8843 argument lambda_obstack. Pass it down.
8845 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
8847 * optabs.h (expand_widening_mult): Declare.
8849 2010-04-22 Richard Guenther <rguenther@suse.de>
8851 PR tree-optimization/43845
8852 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
8853 lookup the CALL_EXPR function and arguments.
8855 2010-04-22 Nick Clifton <nickc@redhat.com>
8857 * config/stormy16/stormy16.c
8858 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
8859 * config/stormy16/stormy16.h: Tidy up formatting.
8860 (DONT_USE_BUILTIN_SETJMP): Remove definition.
8861 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
8862 (ineqbranchsi): Delete pattern.
8863 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
8864 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
8865 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
8866 stormy16-lib2-ucmpsi2.c.
8868 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
8870 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
8871 df_simulate_find_noclobber_defs as appropriate. Keep track of an
8872 extra set merge_set_noclobber, and use it to relax the final test
8874 * df.h (df_simulate_find_noclobber_defs): Declare.
8875 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
8877 (df_simulate_find_noclobber_defs): New function.
8879 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
8881 * config/i386/i386.md: Use {} around multi-line preparation statements.
8883 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8885 * c-tree.h (push_init_level, pop_init_level, set_init_index)
8886 (process_init_element): New argument of type struct obstack *.
8888 * c-typeck.c (push_init_level, pop_init_level, set_designator)
8889 (set_init_index, set_init_label, set_nonincremental_init)
8890 (set_nonincremental_init_from_string, find_init_member)
8891 (output_init_element, output_pending_init_elements)
8892 (process_init_element): New argument braced_init_obstack. Pass it
8894 (push_range_stack, add_pending_init): New argument
8895 braced_init_obstack. Use obstack allocation.
8897 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
8898 braced_init_obstack. Pass it down.
8899 (c_parser_braced_init): New variables ret, braced_init_obstack.
8900 Initialize obstack, pass it down and finally free it.
8902 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
8905 * tree-pass.h (pass_optimize_widening_mul): Declare.
8906 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
8907 gate_optimize_widening_mul): New static functions.
8908 (pass_optimize_widening_mul): New.
8909 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
8910 <case MULT_EXPR>: Remove support for widening multiplies.
8911 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
8912 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
8913 simplify_gen_unary rather than directly building extensions.
8914 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
8916 * expmed.c (expand_widening_mult): New function.
8917 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
8919 2010-04-21 Jan Hubicka <jh@suse.cz>
8921 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
8922 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
8923 * lto-wpa-fixup.c: Remove.
8924 * Makefile.in (lto-wpa-fixup.o): Remove.
8925 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
8926 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
8927 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
8929 2010-04-21 Jan Hubicka <jh@suse.cz>
8931 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
8932 add write_optimization_summary, read_optimization_summary.
8933 (ipa_write_summaries_of_cgraph_node_set): Remove.
8934 (ipa_write_optimization_summaries): Declare.
8935 (ipa_read_optimization_summaries): Declare.
8936 * ipa-cp.c (pass_ipa_cp): Update.
8937 * ipa-reference.c (pass_ipa_reference): Update.
8938 * ipa-pure-const.c (pass_ipa_pure_const): Update.
8939 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
8941 * ipa-inline.c (pass_ipa_inline): Update.
8942 * ipa.c (pass_ipa_whole_program): Update.
8943 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
8944 * passes.c (ipa_write_summaries_1): Do not test wpa.
8945 (ipa_write_optimization_summaries_1): New.
8946 (ipa_write_optimization_summaries): New.
8947 (ipa_read_summaries): Do not test ltrans.
8948 (ipa_read_optimization_summaries_1): New.
8949 (ipa_read_optimization_summaries): New.
8951 2010-04-21 Jan Hubicka <jh@suse.cz>
8953 * lto-cgraph.c (lto_output_node): Do not output comdat groups
8955 (output_cgraph): Do not arrange comdat groups for boundary nodes.
8957 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8960 * dwarf2out.c (add_name_and_src_coords_attributes): Add
8961 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
8963 2010-04-21 Jan Hubicka <jh@suse.cz>
8965 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
8967 2010-04-21 Jan Hubicka <jh@suse.cz>
8969 * varpool.c (decide_is_variable_needed): Variable is always needed
8972 2010-04-21 Jan Hubicka <jh@suse.cz>
8974 * opts.c (decode_options): Enable pure-const pass for whopr.
8976 2010-04-21 Jan Hubicka <jh@suse.cz>
8978 * cgraph.c (dump_cgraph_node): Dump also assembler name.
8979 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
8981 (cgraph_decide_inlining): Do not expect callee to be removed in all
8984 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
8986 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
8988 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
8990 * config/i386/i386.md (x86_shrd): Add athlon_decode and
8991 amdfam10_decode attributes.
8993 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8996 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
8997 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
8998 (lower_copyprivate_clauses): Use private var in outer
8999 context instead of original var. Make sure the types
9000 are correct for VLAs.
9002 2010-04-21 Richard Guenther <rguenther@suse.de>
9004 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9005 to non-pointer objects.
9007 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9009 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9010 last chain entry if it starts with the still current label.
9011 (add_location_or_const_value_attribute): Check that
9012 loc_list->first->next is NULL instead of comparing ->first with ->last.
9013 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9014 to add_var_loc_to_decl.
9016 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9017 >= 4 add also address size and segment size fields into CIE header.
9019 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9020 long as address size is the same as sizeof (void *) and
9022 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9023 address size or segment size is unexpected, return DW_EH_PE_omit.
9024 (classify_object_over_fdes): If get_cie_encoding returned
9025 DW_EH_PE_omit, return -1.
9026 (init_object): If classify_object_over_fdes returned -1,
9027 pretend there were no FDEs at all.
9029 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9031 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9032 bswap{si,di}2 using SWI48 mode iterator.
9033 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9034 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9035 set modrm attribute of bswap insn to 0 and remove length attribute.
9036 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9037 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9038 set mode attribute to <MODE> and remove length attribute.
9040 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9042 PR rtl-optimization/43520
9043 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9044 zero available registers.
9046 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9048 * builtins.c (fold_builtin_cproj): Fold more cases.
9050 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9052 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9053 (fold_builtin_1): Fold builtin cproj.
9054 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9055 Use ATTR_CONST_NOTHROW_LIST.
9057 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9059 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9060 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9061 ffsi2_no_cmove for !TARGET_CMOVE.
9062 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9063 (ffssi2): Remove expander.
9064 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9066 (ctz<mode>2): Ditto from ctz{si,di}2.
9067 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9069 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9072 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9074 * dwarf2out.c (AT_linkage_name): Define.
9075 (clone_as_declaration): Handle DW_AT_linkage_name.
9076 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9077 of DW_AT_MIPS_linkage_name.
9078 (move_linkage_attr): Likewise.
9079 (dwarf2out_finish): Likewise.
9081 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9084 * fold-const.c (fold_comparison): New folding rule.
9086 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9088 * double-int.h (double_int_setbit): Declare.
9089 * double-int.c (double_int_setbit): New function.
9090 * rtl.h (immed_double_int_const): Declare.
9091 * emit-rtl.c (immed_double_int_const): New function.
9092 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9093 and immed_double_int_const functions.
9094 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9095 expand_copysign_bit): (Ditto.).
9096 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9097 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9098 * dojump.c (prefer_and_bit_test): (Ditto.).
9099 * expr.c (convert_modes, reduce_to_bit_field_precision,
9100 const_vector_from_tree): (Ditto.).
9101 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9103 2010-04-20 Jan Hubicka <jh@suse.cz>
9105 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9106 (dump_cgraph_node): Dump new flags.
9107 * cgraph.h (struct cgraph_node): Add flags
9108 reachable_from_other_partition and in_other_partition.
9109 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9110 other partition can not be removed.
9111 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9112 the other partition must be output; silence sanity checking on
9113 leaking functions bodies from other paritition.
9114 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9115 (lto_output_node): Output new flags; do not sanity check that inline
9116 clones are output; drop lto_forced_extern_inline_p code; do not mock
9117 visibility flags at partition boundaries.
9118 (add_node_to): New function.
9119 (output_cgraph): Use it to sort functions so masters appear before
9121 (input_overwrite_node): Input new flags.
9122 * passes.c (ipa_write_summaries): Do not call
9123 lto_new_extern_inline_states.
9124 * lto-section-out.c (forced_extern_inline,
9125 lto_new_extern_inline_states lto_delete_extern_inline_states,
9126 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9127 * lto-streamer.h (lto_new_extern_inline_states,
9128 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9129 lto_forced_extern_inline_p): Kill.
9131 2010-04-20 Richard Guenther <rguenther@suse.de>
9133 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9134 from vars that can have pointers.
9135 (process_constraint): Dump useless constraints.
9137 2010-04-20 Richard Guenther <rguenther@suse.de>
9139 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9140 (dump_sa_points_to_info): Remove asserts.
9141 (init_base_vars): nothing_id isn't an escape point nor does it
9144 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9146 * tree.h (TYPE_REF_IS_RVALUE): Define.
9147 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9148 should_move_die_to_comdat, prune_unused_types_walk): Handle
9149 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9150 (modified_type_die, gen_reference_type_die): Emit
9151 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9152 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9154 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9157 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9158 calls for -fpic -m31 if they have been sibcall optimized.
9160 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9162 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9163 ar.lc fixed and call-used.
9165 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9167 2010-04-19 Jan Hubicka <jh@suse.cz>
9169 * opts.c (decode_options): Disable whpr incompatible passes.
9170 * lto/lto.c (lto_1_to_1_map): Skip clones.
9171 (read_cgraph_and_symbols): Do not mark everything as needed.
9172 (do_whole_program_analysis): Do map only after optimizing;
9173 set proper cgraph_state; use passmanager.
9175 2010-04-19 DJ Delorie <dj@redhat.com>
9177 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9178 POINTER_PLUS_EXPR and fix them.
9180 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9182 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9183 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9184 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9185 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9186 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9187 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9188 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9189 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9190 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9191 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9192 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9194 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9196 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9197 (check_cond_move_block): Likewise.
9198 (cond_move_process_if_block): Likewise.
9199 (noce_find_if_block): Improve formatting.
9200 (find_if_header): Pass 0 to memset and tweak conditions.
9201 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9203 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9205 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9209 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9210 with non-local decl doesn't need chain.
9212 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9214 * ira-color.c (allocno_reload_assign): Avoid accumulating
9215 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9217 2010-04-19 Martin Jambor <mjambor@suse.cz>
9219 * gimple.h (create_tmp_reg): Declare.
9220 * gimplify.c (create_tmp_reg): New function.
9221 (gimplify_return_expr): Use create_tmp_reg.
9222 (gimplify_omp_atomic): Likewise.
9223 (gimple_regimplify_operands): Likewise.
9224 * tree-dfa.c (make_rename_temp): Likewise.
9225 * tree-predcom.c (predcom_tmp_var): Likewise.
9226 (reassociate_to_the_same_stmt): Likewise.
9227 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9228 (get_replaced_param_substitute): Likewise.
9229 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9230 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9231 * tree-ssa-pre.c (get_representative_for): Likewise.
9232 (create_expression_by_pieces): Likewise.
9233 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9234 (create_tailcall_accumulator): Likewise.
9236 2010-04-19 Martin Jambor <mjambor@suse.cz>
9238 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9240 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9242 2010-04-19 Richard Guenther <rguenther@suse.de>
9244 PR tree-optimization/43796
9245 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9246 from SCEV in the lattice.
9247 (vrp_visit_phi_node): Dump change.
9249 2010-04-19 Richard Guenther <rguenther@suse.de>
9251 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9252 * configure: Re-generated.
9254 2010-04-19 Richard Guenther <rguenther@suse.de>
9256 PR tree-optimization/43783
9257 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9258 constant ARRAY_REF operands two and three if possible.
9260 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9263 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9265 2010-04-19 Jie Zhang <jie@codesourcery.com>
9268 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9270 2010-04-19 Ira Rosen <irar@il.ibm.com>
9272 PR tree-optimization/37027
9273 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9274 and macro to access it.
9275 (vectorizable_reduction): Add argument.
9276 (vect_get_slp_defs): Likewise.
9277 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9278 statements for possible use in SLP.
9279 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9280 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9281 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9283 (vectorizable_reduction): Likewise.
9284 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9286 (vectorizable_type_demotion, vectorizable_type_promotion,
9287 vectorizable_store): Likewise.
9288 (vect_analyze_stmt): Update call to vectorizable_reduction.
9289 (vect_transform_stmt): Likewise.
9290 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9291 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9292 from different interleaving chains in same node.
9293 (vect_slp_rearrange_stmts): New function.
9294 (vect_supported_load_permutation_p): Allow load permutations for
9295 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9296 inside SLP nodes if necessary.
9297 (vect_analyze_slp_instance): Handle reductions.
9298 (vect_analyze_slp): Try to build SLP instances originating from groups
9300 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9301 (vect_get_constant_vectors): Create initial vectors for reductions
9302 according to reduction code. Add new argument.
9303 (vect_get_slp_defs): Add new argument, pass it to
9304 vect_get_constant_vectors.
9305 (vect_schedule_slp_instance): Remove SLP tree root statements.
9307 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9309 * tree.h (ENUM_IS_SCOPED): Define.
9310 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9311 for ENUM_IS_SCOPED enums.
9313 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9315 * fold-const.c (fold_comparison): Use ssizetype.
9316 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9317 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9318 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9319 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9321 * tree.h (initialize_sizetypes): Remove parameter.
9322 (build_common_tree_nodes): Remove second parameter.
9323 * stor-layout.c (initialize_sizetypes): Remove parameter.
9324 Always create an unsigned type.
9325 (set_sizetype): Assert that the passed type is unsigned and simplify.
9326 * tree.c (build_common_tree_nodes): Remove second parameter.
9327 Adjust call to initialize_sizetypes.
9328 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9329 build_common_tree_nodes.
9331 2010-04-18 Matthias Klose <doko@ubuntu.com>
9333 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9335 2010-04-18 Ira Rosen <irar@il.ibm.com>
9337 PR tree-optimization/43771
9338 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9339 load permutation doesn't have gaps.
9341 2010-04-18 Jan Hubicka <jh@suse.cz>
9343 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9344 (sse_prologue_save_insn expander): Use new pattern.
9345 (sse_prologue_save_insn1): New pattern and splitter.
9346 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9348 * i386.c (setup_incoming_varargs_64): Do not compute jump
9350 (ix86_gimplify_va_arg): Update alignment needed.
9351 (ix86_local_alignment): Do not align all local arrays to 128bit.
9353 2010-04-17 Jan Hubicka <jh@suse.cz>
9355 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9357 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9359 * arm.md (negdi2): Remove redundant code to force values into a
9362 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9364 * arm/bpabi.S: Add EABI alignment attributes to objects.
9365 * arm/bpabi-v6m.S: Likewise.
9366 * arm/crti.asm: Likewise.
9367 * arm/crtn.asm: Likewise.
9368 * arm/lib1funcs.asm: Likewise.
9369 * arm/libunwind.S: Likewise.
9371 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9373 * arm-protos.h (tune_params): New structure.
9374 * arm.c (current_tune): New variable.
9375 (arm_constant_limit): Delete.
9376 (struct processors): Add pointer to the tune parameters.
9377 (arm_slowmul_tune): New tuning option.
9378 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9379 (all_cores): Adjust to pick up the tuning model.
9380 (arm_constant_limit): New function.
9381 (arm_override_options): Select the appropriate tuning model. Delete
9382 initialization of arm_const_limit.
9383 (arm_split_constant): Use the new constant-limit model.
9384 (arm_rtx_costs): Pick up the current tuning model.
9385 * arm.md (is_strongarm, is_xscale): Delete.
9386 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9387 for Xscale variant architectures.
9388 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9390 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9392 * config/arm/arm.c (arm_gen_constant): Remove unused variable
9394 (arm_rtx_costs_1): Remove unused variable extra_cost.
9395 (arm_unwind_emit_set): Use variable offset.
9396 (thumb1_output_casesi): Remove unused variable flags.
9398 2010-04-16 Jeff Law <law@redhat.com>
9400 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9401 needing assignment rather than doing a two-phase assignment. Remove
9402 unused variable 'm'.
9404 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9407 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9409 2010-04-16 Doug Kwan <dougkwan@google.com>
9411 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9412 (next_operand_entry_id): New static variable.
9413 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9414 (add_to_ops_vec): Assigned unique ID to operand entry.
9415 (struct oecount_s): New field ID.
9416 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9417 (undistribute_ops_list): Assign unique IDs to oecounts.
9418 (init_reassoc): reset next_operand_entry_id.
9420 2010-04-16 Doug Kwan <dougkwan@google.com>
9422 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9423 missing left parenthesis.
9425 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
9427 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9428 *btdi_rex64 using SWI48 mode iterator.
9429 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9430 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9431 *jcc_btdi_mask_rex64.
9433 2010-04-16 Anatoly Sokolov <aesok@post.ru>
9435 * double-int.h (tree_to_double_int): Convert to macro.
9436 * double-int.c (tree_to_double_int): Remove.
9438 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9441 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9442 with want_address 2 and in case a single element list might be
9443 possible, call it again with want_address 0.
9445 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9447 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9448 case 'W' print operands for HI mode.
9449 * config/h8300/h8300.h (Y0, Y2) : New constraints.
9450 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9451 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9452 * config/h8300/predicate.md (bit_register_indirect_operand): New.
9454 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9456 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9457 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9458 #xx:3 and #xx:4 mode.
9460 * config/h8300/h8300.md (inverted load with HImode dest): Add
9461 support for H8300SX.
9463 * config/h8300/predicate.md (bit_operand): Allow immediate values that
9464 satisfy 'U' constraint.
9466 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9468 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9469 * configure: Regenerate.
9470 * config.in: Regenerate.
9471 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9474 2010-04-16 Richard Guenther <rguenther@suse.de>
9476 * tree.h (struct tree_decl_minimal): Move pt_uid ...
9477 (struct tree_decl_common): ... here.
9478 (DECL_PT_UID): Adjust.
9479 (SET_DECL_PT_UID): Likewise.
9480 (DECL_PT_UID_SET_P): Likewise.
9482 2010-04-16 Richard Guenther <rguenther@suse.de>
9484 PR tree-optimization/43572
9485 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9486 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9487 * tree-flow.h (is_call_clobbered): Remove.
9488 * tree-flow-inline.h (is_call_clobbered): Likewise.
9489 * tree-dfa.c (dump_variable): Do not dump call clobber state.
9490 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9491 (execute_return_slot_opt): Adjust.
9492 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9493 check for call clobbered vars here.
9494 (find_tail_calls): Move tailcall verification to the
9497 2010-04-16 Diego Novillo <dnovillo@google.com>
9499 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9501 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9504 * config/arm/arm.md (cbranchqi4): New pattern.
9505 * config/arm/predicates.md (const0_operand,
9506 cbranchqi4_comparison_operator): New predicates.
9508 2010-04-16 Richard Guenther <rguenther@suse.de>
9510 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9511 (dump_gimple_stmt): Likewise.
9513 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9515 * recog.h (struct recog_data): New field is_operator.
9516 (struct insn_operand_data): New field is_operator.
9517 * recog.c (extract_insn): Set recog_data.is_operator.
9518 * genoutput.c (output_operand_data): Emit code to set the
9520 * reload.c (find_reloads): Use it rather than testing for an
9521 empty constraint string.
9524 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9525 If the previous insn is a cbranchsi4_insn with the same arguments,
9526 omit the compare instruction.
9528 * config/arm/arm.md (addsi3_cbranch): If destination is a high
9529 register, inputs must be low registers and we need a low register
9530 scratch. Handle alternative 2 like alternative 3.
9532 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9534 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9535 don't call get_addr on both. If one expression is a VALUE and
9536 the other a REG, check VALUE's locs if the REG isn't among them.
9538 2010-04-16 Christian Bruel <christian.bruel@st.com>
9540 * config/sh/sh.h (sh_frame_pointer_required): New function.
9541 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
9542 (flag_omit_frame_pointer) Set.
9543 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
9544 (rounded_frame_size): Adjust size with outgoing_args_size.
9545 (sh_set_return_address): Must return from stack pointer.
9546 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
9547 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
9548 (ACCUMULATE_OUTGOING_ARGS): Define.
9549 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
9550 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
9552 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9555 * config/sh/sh.c (sh_legitimize_reload_address): Use
9556 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
9557 Remove a unneeded check for offset_base.
9559 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
9561 * configure: Regenerated.
9563 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9565 * config/s390/s390.c (s390_call_save_register_used): Switch back
9566 to HARD_REGNO_NREGS.
9568 2010-04-15 Richard Guenther <rguenther@suse.de>
9570 * alias.c (alias_set_subset_of): Handle alias-set zero
9573 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
9574 Julian Brown <julian@codesourcery.com>
9576 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
9577 alternatives according to use of high and low regs.
9578 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9579 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
9580 optimizing for size on Thumb-2.
9582 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
9584 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
9586 2010-04-15 Richard Guenther <rguenther@suse.de>
9588 * tree-ssa-structalias.c (struct variable_info): Add
9590 (new_var_info): Initialize it.
9591 (dump_constraints): Support printing last added constraints.
9592 (debug_constraints): Adjust.
9593 (dump_constraint_graph): Likewise.
9594 (make_heapvar_for): Check for NULL cfun.
9595 (get_function_part_constraint): New function.
9596 (get_fi_for_callee): Likewise.
9597 (find_func_aliases): Properly implement IPA PTA constraints.
9598 (process_ipa_clobber): New function.
9599 (find_func_clobbers): Likewise.
9600 (insert_into_field_list_sorted): Remove.
9601 (create_function_info_for): Properly allocate vars for IPA mode.
9602 Do not use insert_into_field_list_sorted.
9603 (create_variable_info_for): Properly generate constraints for
9604 global vars in IPA mode.
9605 (dump_solution_for_var): Always dump the solution.
9606 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
9607 (find_what_var_points_to): Adjust.
9608 (pt_solution_set): Change.
9609 (pt_solution_ior_into): New function.
9610 (pt_solution_empty_p): Export.
9611 (pt_solution_includes_global): Adjust.
9612 (pt_solution_includes_1): Likewise.
9613 (pt_solutions_intersect_1): Likewise.
9614 (dump_sa_points_to_info): Check some invariants.
9615 (solve_constraints): Move constraint dumping ...
9616 (compute_points_to_sets): ... here.
9617 (ipa_pta_execute): ... and here.
9618 (compute_may_aliases): Do not re-compute points-to info
9619 locally if IPA info is available.
9620 (ipa_escaped_pt): New global var.
9621 (ipa_pta_execute): Properly implement IPA PTA.
9622 * tree-into-ssa.c (dump_decl_set): Support dumping
9623 decls not in referenced-vars.
9624 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
9625 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
9626 (dump_points_to_solution): Likewise.
9627 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
9628 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
9629 (remap_gimple_stmt): Reset call clobber/use information if necessary.
9630 (copy_decl_to_var): Copy DECL_PT_UID.
9631 (copy_result_decl_to_var): Likewise.
9632 * tree.c (make_node_stat): Initialize DECL_PT_UID.
9633 (copy_node_stat): Copy it.
9634 * tree.h (DECL_PT_UID): New macro.
9635 (SET_DECL_PT_UID): Likewise.
9636 (DECL_PT_UID_SET_P): Likewise.
9637 (struct tree_decl_minimal): Add pt_uid member.
9638 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
9639 (pt_solution_empty_p): Declare.
9640 (pt_solution_set): Adjust.
9641 (ipa_escaped_pt): Declare.
9642 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
9643 * gimple-pretty-print.c (pp_points_to_solution): New function.
9644 (dump_gimple_call): Dump call clobber/use information.
9645 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
9646 * tree-pass.h (TDF_ALIAS): New dump option.
9647 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
9648 * doc/invoke.texi (-fipa-pta): Update documentation.
9650 2010-04-15 Richard Guenther <rguenther@suse.de>
9652 * Makefile.in (OBJS-common): Add gimple-fold.o.
9653 (gimple-fold.o): New rule.
9654 * tree.h (maybe_fold_offset_to_reference,
9655 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
9657 * gimple.h: ... here.
9658 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
9659 may_propagate_address_into_dereference): Move prototypes ...
9660 * gimple.h: ... here.
9661 * tree-ssa-ccp.c (get_symbol_constant_value,
9662 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
9663 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
9664 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
9665 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
9666 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
9667 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
9668 gimplify_and_update_call_from_tree): Move ...
9669 * gimple-fold.c: ... here. New file.
9670 (ccp_fold_builtin): Rename to ...
9671 (gimple_fold_builtin): ... this.
9672 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
9674 2010-04-15 Richard Guenther <rguenther@suse.de>
9676 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
9677 fit_double_type, force_fit_type_double, add_double_with_sign,
9678 neg_double, mul_double_with_sign, lshift_double, rshift_double,
9679 lrotate_double, rrotate_double, div_and_round_double): Move ...
9680 * double-int.c: ... here.
9681 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
9682 add_double, neg_double, mul_double_with_sign, mul_double,
9683 lshift_double, rshift_double, lrotate_double, rrotate_double,
9684 div_and_round_double): Move prototypes ...
9685 * double-int.h: ... here.
9687 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
9690 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
9691 matching constraints to ensure inputs match the output.
9693 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9696 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
9697 in an input-only operand.
9699 2010-04-15 Anatoly Sokolov <aesok@post.ru>
9701 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
9702 (double_int_not, double_int_lshift, double_int_rshift): Declare.
9703 (double_int_negative_p): Convert to static inline function.
9704 * double-int.c (double_int_lshift, double_int_lshift): New functions.
9705 (double_int_negative_p): Remove.
9706 * tree.h (lshift_double, rshift_double):
9707 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
9708 * fold-const.c (fold_convert_const_int_from_real,
9709 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
9710 (lshift_double): Change type of arith argument to bool.
9711 (rshift_double): Change type of arith argument to bool. Correct
9713 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9715 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
9718 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
9719 at the start and end of the then/else blocks, and omit them from the
9721 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
9722 argument; all callers changed. Pass zero to old_insns_match_p instead.
9723 (flow_find_head_matching_sequence): New function.
9724 (old_insns_match_p): Check REG_EH_REGION notes for calls.
9725 * basic-block.h (flow_find_cross_jump,
9726 flow_find_head_matching_sequence): Declare functions.
9728 2010-04-14 Jason Merrill <jason@redhat.com>
9731 * c-common.c (attribute_takes_identifier_p): New fn.
9732 * c-common.h: Declare it.
9734 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9736 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
9738 (*udivmod<mode>4): Ditto.
9740 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9742 * config/i386/i386.md (maxmin_int): Rename code attribute from
9743 maxminiprefix and update all users.
9744 (maxmin_float): Ditto from maxminfprefix.
9745 (logic): Ditto from logicprefix.
9746 (absneg_mnemonic): Ditto from absnegprefix.
9747 * config/i386/mmx.md: Update all users of maxminiprefix,
9748 maxminfprefix and logicprefix for rename.
9749 * config/i386/sse.md: Ditto.
9750 * config/i386/sync.md (sync_<code><mode>): Update for
9753 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9756 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
9757 warnings converted to errors.
9759 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9761 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
9762 used insn_type variable.
9763 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
9764 to avoid set-but-not-used warning.
9766 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9768 * df-core.c (df_ref_debug): Change format string placeholder
9770 * dwarf2asm.c (dw2_asm_output_data_raw,
9771 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
9772 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
9773 * dwarf2out.c (output_cfi, output_cfi_directive,
9774 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
9775 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
9777 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
9778 * print-rtl.c (print_rtx): Ditto.
9780 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9783 * builtins.c (expand_builtin_pow_root): New function to expand pow
9784 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
9785 series of sqrt and cbrt calls under -ffast-math.
9786 (expand_builtin_pow): Call it.
9788 2010-04-14 Michael Matz <matz@suse.de>
9790 PR tree-optimization/42963
9791 * tree-cfg.c (touched_switch_bbs): New static variable.
9792 (group_case_labels_stmt): New function broken out from ...
9793 (group_case_labels): ... here, use the above.
9794 (start_recording_case_labels): Allocate touched_switch_bbs.
9795 (end_recording_case_labels): Deallocate it, call
9796 group_case_labels_stmt.
9797 (gimple_redirect_edge_and_branch): Remember index of affected BB.
9799 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9801 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
9804 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9806 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
9808 2010-04-13 Jan Hubicka <jh@suse.cz>
9810 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
9811 of optimized out static functions.
9812 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
9813 cost computation. Also sanity check for overflows.
9814 (update_caller_keys): Update cgraph_edge_badness call; properly
9815 update fibheap and sanity check that it is up to date.
9816 (add_new_edges_to_heap): Update cgraph_edge_badness.
9817 (cgraph_decide_inlining_of_small_function): Likewise;
9818 add sanity checking that badness in heap is up to date;
9819 improve dumping of reason; Update badness of calls to the
9820 offline copy of function currently inlined; dump badness
9821 of functions not inlined because of unit growth limits.
9823 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9826 * c-common.c (pointer_int_sum): Disregard overflow that occured only
9827 because of sign-extension change when converting to sizetype here...
9828 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
9830 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
9831 the folding to constants. Remove redundant final conversion.
9832 (fold_binary) <associate>: Do not associate if the re-association of
9833 constants alone overflows.
9834 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
9835 to the end of the list.
9836 (multiple_of_p) <COND_EXPR>: New case.
9838 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9840 * opt-functions.awk (opt_sanitized_name): New.
9842 * optc-gen.awk: Use it
9843 * opth-gen.awk: Use it.
9845 2010-04-13 Martin Jambor <mjambor@suse.cz>
9847 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
9848 (sra_modify_assign): Delete stmts loading dead data even if racc has no
9849 children. Call replace_uses_with_default_def_ssa_name to handle
9852 2010-04-13 Michael Matz <matz@suse.de>
9855 * builtins.c (expand_builtin_interclass_mathfn): Also create
9856 a register if the predicate doesn't match.
9858 2010-04-13 Diego Novillo <dnovillo@google.com>
9860 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
9861 * c-pch.c: Include timevar.h.
9862 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
9863 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
9864 * ggc-common.c: Include timevar.h.
9865 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
9866 * timevar.def (TV_PCH_SAVE): Define.
9867 (TV_PCH_CPP_SAVE): Define.
9868 (TV_PCH_PTR_REALLOC): Define.
9869 (TV_PCH_PTR_SORT): Define.
9870 (TV_PCH_RESTORE): Define.
9871 (TV_PCH_CPP_RESTORE): Define.
9873 2010-04-13 Michael Matz <matz@suse.de>
9875 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
9877 (can_reassociate_p): New function.
9878 (break_up_subtract_bb, reassociate_bb): Use it.
9880 2010-04-13 Richard Guenther <rguenther@suse.de>
9883 * builtins.c (c_readstr): Fix assert.
9885 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
9887 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
9888 when generating cltd insn.
9890 (*ashl<mode>3_1): Remove special handling for register operand 2.
9891 (*ashlsi3_1_zext): Ditto.
9892 (*ashlhi3_1): Ditto.
9893 (*ashlhi3_1_lea): Ditto.
9894 (*ashlqi3_1): Ditto.
9895 (*ashlqi3_1_lea): Ditto.
9896 (*<shiftrt_insn><mode>3_1): Ditto.
9897 (*<shiftrt_insn>si3_1_zext): Ditto.
9898 (*<shiftrt_insn>qi3_1_slp): Ditto.
9899 (*<rotate_insn><mode>3_1): Ditto.
9900 (*<rotate_insn>si3_1_zext): Ditto.
9901 (*<rotate_insn>qi3_1_slp): Ditto.
9903 2010-04-13 Richard Guenther <rguenther@suse.de>
9905 * tree-ssa-structalias.c (callused_id): Remove.
9906 (call_stmt_vars): New.
9907 (get_call_vi): Likewise.
9908 (lookup_call_use_vi): Likewise.
9909 (lookup_call_clobber_vi): Likewise.
9910 (get_call_use_vi): Likewise.
9911 (get_call_clobber_vi): Likewise.
9912 (make_transitive_closure_constraints): Likewise.
9913 (handle_const_call): Adjust to do per-call call-used handling.
9914 (handle_pure_call): Likewise.
9915 (find_what_var_points_to): Remove general callused handling.
9916 (init_base_vars): Likewise.
9917 (init_alias_vars): Initialize call_stmt_vars.
9918 (compute_points_to_sets): Process call-used and call-clobbered
9919 vars for call statements.
9920 (delete_points_to_sets): Free call_stmt_vars.
9922 2010-04-13 Richard Guenther <rguenther@suse.de>
9924 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9925 Only add RW dependence for dependence distance zero.
9926 Adjust maximal vectorization factor according to dependences.
9927 Move alignment handling ...
9928 (vect_find_same_alignment_drs): ... here. New function.
9929 (vect_analyze_data_ref_dependences): Adjust.
9930 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
9931 (vect_analyze_data_refs): Adjust minimal vectorization factor
9932 according to data references.
9933 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
9934 dependences before determining the vectorization factor.
9935 Analyze alignment after determining the vectorization factor.
9936 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
9937 dependences before alignment.
9938 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
9940 (vect_analyze_data_refs): Likewise.
9941 (MAX_VECTORIZATION_FACTOR): New define.
9943 2010-04-13 Duncan Sands <baldrick@free.fr>
9945 * except.h (lang_eh_type_covers): Remove.
9946 * except.c (lang_eh_type_covers): Likewise.
9948 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9949 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9951 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
9952 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
9953 UNITS_PER_LONG where it is ABI relevant.
9954 (s390_return_addr_rtx): Likewise.
9955 (s390_back_chain_rtx): Likewise.
9956 (s390_frame_area): Likewise.
9957 (s390_frame_info): Likewise.
9958 (s390_initial_elimination_offset): Likewise.
9959 (save_gprs): Likewise.
9960 (s390_emit_prologue): Likewise.
9961 (s390_emit_epilogue): Likewise.
9962 (s390_function_arg_advance): Likewise.
9963 (s390_function_arg): Likewise.
9964 (s390_va_start): Likewise.
9965 (s390_gimplify_va_arg): Likewise.
9966 (s390_function_profiler): Likewise.
9967 (s390_optimize_prologue): Likewise.
9968 (s390_rtx_costs): Likewise.
9969 (s390_secondary_reload): Likewise.
9970 (s390_promote_function_mode): Likewise.
9971 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
9972 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
9973 registers available.
9974 (s390_unwind_word_mode): New function.
9975 (s390_function_value): Split 64 bit values into register pair if
9976 used as return value.
9977 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
9978 function call parameters. Handle parallels.
9979 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
9980 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
9981 (DWARF_CIE_DATA_ALIGNMENT): New macro.
9982 (s390_expand_setmem): Remove unused variable src_addr.
9983 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
9984 deal with 64 bit registers.
9985 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
9986 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
9987 (UNITS_PER_LONG): New macro.
9988 * libjava/include/s390-signal.h: Define extended ucontext
9989 structure containing the upper halfs of the 64 bit registers.
9991 2010-04-13 Simon Baldwin <simonb@google.com>
9993 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
9995 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9997 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
9998 rvalue on the RHS if the LHS is of a non-renamable type.
9999 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10001 2010-04-13 Matthias Klose <doko@ubuntu.com>
10003 * gcc.c (cc1_options): Handle -iplugindir before processing
10004 the cc1 spec. Only add -iplugindir once.
10005 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10007 * common.opt (iplugindir): Remove `Separate' property, initialize.
10008 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10010 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10011 (distclean): Remove plugin dir.
10012 * doc/invoke.texi: Document -iplugindir.
10014 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10016 * doc/plugins.texi (Loading Plugins): Document short
10017 -fplugin=foo option.
10018 (Plugin API): Mention default_plugin_dir_name function.
10020 * gcc.c (find_file_spec_function): Add new declaration.
10021 (static_spec_func): Use it for "find-file".
10022 (find_file_spec_function): Add new function.
10023 (cc1_options): Add -iplugindir option if -fplugin* options found.
10025 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10027 * plugin.c (add_new_plugin): Updated comment, and handle short
10029 (default_plugin_dir_name): Added new function.
10031 * common.opt (iplugindir): New option to set the plugin directory.
10033 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10035 * config/i386/i386.md (any_rotate): New code iterator.
10036 (rotate_insn): New code attribute.
10038 (SWIM124): New mode iterator.
10039 (<rotate_insn>ti3): New expander.
10040 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10041 any_rotate code iterator.
10042 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10043 using any_rotate code iterator and SWIM124 mode iterator.
10044 (ix86_rotlti3): New insn_and_split pattern.
10045 (ix86_rotrti3): Ditto.
10046 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10047 ix86_rotl{di,ti}3 patterns.
10048 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10049 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10050 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10051 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10052 code iterator and SWI mode iterator.
10053 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10054 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10056 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10057 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10058 (bswap rotatert splitter): Add splitter.
10059 (bswap splitter): Macroize splitter using any_rotate code iterator.
10060 Add insn predicate to split only for TARGET_USE_XCHGB or when
10061 optimizing function for size.
10063 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10065 * config/pa/pa.c (emit_move_sequence): Remove use of
10066 deleted variable flag_argument_noalias.
10068 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10070 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10072 Add to unsupported targets list.
10073 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10074 sparc*-sun-solaris2.[567]* from target lists.
10075 * configure: Regenerate.
10076 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10078 Remove Solaris 7 patch references.
10079 (Specific, sparc-sun-solaris2.7): Removed.
10080 (sparc-sun-solaris2*): Update Solaris 7 example.
10081 (sparc64-*-solaris2*): Likewise.
10083 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10085 * config.build (alpha*-dec-osf4*): Remove.
10086 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10087 of obsolete configurations.
10088 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10090 * config/alpha/t-osf4: Renamed to ...
10091 * config/alpha/t-osf5: ... this.
10092 * config/alpha/osf.h: Renamed to ...
10093 * config/alpha/osf5.h: ... this.
10094 Merged old osf5.h contents.
10096 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10097 (EXTRA_SPECS): Removed.
10098 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10099 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10102 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10104 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10106 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10109 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10110 __thiscall convention.
10112 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10114 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10116 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10118 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10120 * function.c (assign_parms_initialize_all): Add unused attribute
10123 2010-04-12 Richard Guenther <rguenther@suse.de>
10125 * gsstruct.def (GSS_CALL): New.
10126 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10127 * gimple.h: Include tree-ssa-alias.h.
10128 (struct gimple_statement_call): New.
10129 (union gimple_statement_struct_d): Add gimple_call member.
10130 (gimple_call_reset_alias_info): Declare.
10131 (gimple_call_use_set): New function.
10132 (gimple_call_clobber_set): Likewise.
10133 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10134 * gimple.c (gimple_call_reset_alias_info): New function.
10135 (gimple_build_call_1): Call it.
10136 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10137 * tree-inline.c (remap_gimple_stmt): Likewise.
10138 (expand_call_inline): Remove callused handling.
10139 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10140 * tree-dfa.c (dump_variable): Likewise.
10141 * tree-parloops.c (parallelize_loops): Likewise.
10142 * tree-ssa.c (init_tree_ssa): Likewise.
10143 (delete_tree_ssa): Likewise.
10144 * tree-flow-inline.h (is_call_used): Remove.
10145 * tree-flow.h (struct gimple_df): Remove callused member.
10146 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10147 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10148 (ref_maybe_used_by_call_p_1): Simplify.
10149 (call_may_clobber_ref_p_1): Likewise.
10150 * tree-ssa-structalias.c (compute_points_to_sets): Set
10151 the call stmt used and clobbered sets.
10152 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10153 (find_tail_calls): Verify the tail call.
10155 2010-04-12 Richard Guenther <rguenther@suse.de>
10157 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10158 single-iteration always-inline inlining.
10159 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10160 (cgraph_decide_inlining): Do not handle always-inline specially.
10161 (try_inline): Remove always-inline cycle detection special case.
10162 Do not recurse on always-inlines.
10163 (cgraph_early_inlining): Do not iterate if not optimizing.
10164 (cgraph_gate_early_inlining): remove.
10165 (pass_early_inline): Run unconditionally.
10166 (gate_cgraph_decide_inlining): New function.
10167 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10168 not inlining or optimizing.
10169 (cgraph_decide_inlining_of_small_functions): Also consider
10170 always-inline functions.
10171 (cgraph_default_inline_p): Return true for nodes which should
10172 disregard inline limits.
10173 (estimate_function_body_sizes): Assume zero size and time for
10174 nodes which are marked as disregarding inline limits.
10175 (cgraph_decide_recursive_inlining): Do not perform recursive
10176 inlining on always-inline nodes.
10178 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10181 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10182 for exprs satisfying handled_component_p.
10184 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10186 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10187 non-constant aggregate elements.
10189 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10190 is a real initialization.
10192 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10195 * c-decl.c (start_function): Move forward check for nested function.
10197 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10199 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10200 * config/sh/sh.c: Include reload.h.
10201 (sh_legitimize_reload_address): New.
10202 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10203 sh_legitimize_reload_address.
10205 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10207 * config/sh/sh.md (*movqi_pop): New insn pattern.
10208 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10210 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10212 * config/i386/i386.md (any_shiftrt): New code iterator.
10213 (shiftrt_insn): New code attribute.
10215 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10216 using any_shiftrt code iterator.
10217 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10218 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10219 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10220 pattern from corresponding peephole2 patterns.
10221 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10222 using any_shiftrt code iterator.
10223 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10224 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10225 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10226 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10227 *{ashr,lshr}<mode>3_cmp_zext.
10228 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10230 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10232 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10234 (*lshr<mode>3_cconly): Ditto.
10236 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10238 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10239 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10240 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10241 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10243 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10244 from corresponding peephole2 patterns.
10245 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10246 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10247 and *lshrdi3_1_rex64 using SWI mode iterator.
10248 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10249 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10250 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10251 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10252 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10253 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10254 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10255 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10256 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10259 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10261 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10262 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10263 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10264 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10266 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10267 from corresponding peephole2 patterns.
10268 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10269 (ashrsi3_cvt): Rename from ashrsi3_31.
10270 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10271 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10272 and x86_64_shift_adj_3 using SWI48 mode iterator.
10273 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10274 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10275 and *ashrdi3_1_rex64 using SWI mode iterator.
10276 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10277 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10278 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10279 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10280 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10281 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10282 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10283 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10284 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10286 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10287 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10288 x86_shift<mode>_adj_3 expanders.
10290 2010-04-10 Wei Guozhi <carrot@google.com>
10293 * config/arm/arm.c (arm_pic_static_addr): New function.
10294 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10296 (arm_output_addr_const_extra): Output expression for new pattern.
10297 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10299 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10301 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10304 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10305 * web.c: Include "insn-config.h" and "recog.h".
10306 (union_match_dups): New function.
10307 (web_main): Call it.
10308 (union_defs): Don't try to recognize match_dups.
10310 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10311 if doing so would replace the entire pattern.
10313 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10317 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10318 and splitter pattern. Change splitter operand 1 predicate to
10321 2010-04-09 Martin Jambor <mjambor@suse.cz>
10323 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10324 lattices are addresses of CONST_DECLs with the same initial value.
10325 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10326 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10328 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10329 Bernd Schmidt <bernds@codesourcery.com>
10331 * loop-invariant.c (replace_uses): New static function.
10332 (move_invariant_reg): Use it to ensure we can replace the uses.
10334 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10336 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10338 (picochip_override_options): Enable section anchors only above -O1.
10339 (picochip_reorg): Fixed a couple of build warnings.
10341 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10343 * configure.ac (plugin -rdynamic test): Log result.
10344 * configure: Regenerate.
10345 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10346 (RDYNAMIC_SPEC): Define.
10347 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10349 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10351 * configure.ac: Determine Sun ld version numbers.
10352 (comdat_group): Restrict GNU ld version checks to gld.
10353 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10354 (enable_comdat): Support --enable-comdat.
10355 * configure: Regenerate.
10356 * doc/install.texi (Configuration): Document --enable-comdat.
10358 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10360 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10361 * config/sol2-gld.h: ... here.
10362 * config.gcc (sparc*-*-solaris2*): Reflect this.
10363 (i[34567]86-*-solaris2*): Use it.
10365 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10367 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10369 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10371 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10374 * diagnostic.c (diagnostic_initialize): Initialize
10375 some_warnings_are_errors.
10376 (diagnostic_finish): New.
10377 (diagnostic_action_after_output): Call it before exiting.
10378 (diagnostic_report_diagnostic): Do not print message here. Set
10379 some_warnings_are_errors.
10380 * diagnostic.h (diagnostic_context): Delete
10381 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10382 (diagnostic_finish): Declare.
10383 * toplev.c (toplev_main): Call it before exit.
10385 2010-04-09 Jason Merrill <jason@redhat.com>
10388 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10389 for incomplete type.
10392 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10393 based on a warning flag.
10395 2010-04-09 Richard Guenther <rguenther@suse.de>
10397 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10399 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
10402 * varasm.c (default_assemble_visibility): Wrap vars that are
10403 set, but unused, by targets without GAS.
10404 * config/rs6000/rs6000.c (paired_emit_vector_compare):
10405 Remove set, but unused, vars.
10406 (rs6000_legitimize_tls_address): Likewise.
10407 (altivec_expand_dst_builtin): Likewise.
10408 * config/darwin.c (machopic_classify_symbol): Likewise.
10409 (machopic_indirection_name): Likewise.
10411 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10413 * config/i386/i386.md (DWI): New mode iterator.
10414 (S): New mode attribute.
10415 (shift_operand): Ditto.
10416 (shift_immediate_operand): Ditto.
10417 (ashl_input_operand): Ditto.
10418 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10419 using SDWIM mode iterator.
10420 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
10421 pattern from *ashl{di,ti}3_1 and corresponding splitters using
10423 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10424 from corresponding peephole2 patterns.
10425 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10426 and x86_64_shift_adj_1 using SWI48 mode iterator.
10427 (x86_shift<mode>_adj_2): Ditto.
10428 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10429 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10430 using SWI48 mode iterator.
10431 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10432 *ashldi3_cmp_rex64 using SWI mode iterator.
10433 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10434 *ashldi3_cconly_rex64 using SWI mode iterator.
10435 * config/i386/i386.c (ix86_split_ashl): Update for renamed
10436 x86_shift<mode>_adj_{1,2}.
10437 (ix86_split_ashr): Ditto.
10438 (ix86_split_lshr): Ditto.
10440 2010-04-09 Richard Guenther <rguenther@suse.de>
10442 * target.h (builtin_conversion): Pass in input and output types.
10443 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10444 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10445 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10446 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10448 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10450 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10452 2010-04-09 Richard Guenther <rguenther@suse.de>
10455 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10457 2010-04-09 Richard Guenther <rguenther@suse.de>
10459 * tree-vectorizer.h (struct _stmt_vec_info): Document
10460 that vectype is the type of the LHS.
10461 (supportable_widening_operation, supportable_narrowing_operation):
10462 Get both input and output vector types as arguments.
10463 (vect_is_simple_use_1): Declare.
10464 (get_same_sized_vectype): Likewise.
10465 * tree-vect-loop.c (vect_determine_vectorization_factor):
10466 Set STMT_VINFO_VECTYPE to the vector type of the def.
10467 (vectorizable_reduction): Adjust.
10468 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10469 Adjust. Specify the output vector type.
10470 (vect_pattern_recog_1): Adjust.
10471 * tree-vect-stmts.c (get_same_sized_vectype): New function.
10472 (vectorizable_call): Adjust.
10473 (vectorizable_conversion): Likewise.
10474 (vectorizable_operation): Likewise.
10475 (vectorizable_type_demotion): Likewise.
10476 (vectorizable_type_promotion): Likewise.
10477 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10479 (vect_is_simple_use_1): New function.
10480 (supportable_widening_operation): Get both input and output
10482 (supportable_narrowing_operation): Likewise.
10483 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10485 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
10487 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10488 __thiscall and _thiscall as predefined macros.
10489 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10490 thiscall attribute handling.
10491 (ix86_comp_type_attributes): Likewise.
10492 (ix86_function_regparm): Likewise.
10493 (ix86_return_pops_args): Likewise.
10494 (init_cumulative_args): Likewise.
10495 (find_drap_reg): Likewise.
10496 (ix86_static_chain): Likewise.
10497 (x86_this_parameter): Likewise.
10498 (x86_output_mi_thunk): Likewise.
10499 (ix86_attribute_table): Add description for thiscall attribute.
10500 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10501 * doc/extend.texi: Add documentation for thiscall.
10503 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10506 * c.opt (Wint-to-pointer-cast): Available in C++.
10507 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10509 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
10511 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10512 * calls.c (expand_call): Pass the function type to aggregate_value_p.
10513 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10514 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
10515 function type instead. Reorder and simplify checks.
10517 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10519 2010-04-08 Jing Yu <jingyu@google.com>
10520 Zdenek Dvorak <ook@ucw.cz>
10522 PR tree-optimization/42720
10523 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10524 loop unswitch conditions here from ...
10525 (tree_unswitch_single_loop): ... here.
10527 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10529 * tree-if-conv.c: Fix comments and simplify logic.
10531 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10533 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10534 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
10535 (main_tree_if_conversion): Update call to tree_if_conversion.
10537 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10540 * doc/invoke.texi (-b,-V): Delete.
10541 * doc/tm.texi: Do not mention -b.
10542 * gcc.c (display_help): Delete -b and -V.
10543 (process_command): Delete -b and -V.
10544 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
10546 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
10547 Wolfgang Gellerich <gellerich@de.ibm.com>
10549 Implement target hook for loop unrolling
10550 * target.h (loop_unroll_adjust): Add a new target hook function.
10551 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
10552 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
10553 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
10554 (s390_loop_unroll_adjust): Implement the new target hook for s390.
10555 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
10557 (decide_unroll_stupid): Likewise.
10559 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10562 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
10564 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10566 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
10567 (Specific, *-*-solaris2*): Likewise.
10568 Don't prefer Sun as over GNU as.
10570 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
10572 * config/s390/s390.c (override_options): Adjust the z10 defaults
10573 for max-unroll-times, max-completely-peeled-insns
10574 and max-completely-peel-times.
10576 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10578 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
10579 instructions for z10.
10580 (s390_expand_setmem): Likewise.
10581 (s390_expand_cmpmem): Likewise.
10583 2010-04-08 Richard Guenther <rguenther@suse.de>
10585 PR tree-optimization/43679
10586 * tree-ssa-pre.c (eliminate): Only propagate copies.
10588 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10591 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
10592 set but not used variable warning.
10594 2010-04-08 Wei Guozhi <carrot@google.com>
10597 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
10598 (arm_size_rtx_costs): Call the new function when optimized for size.
10600 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10603 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
10604 op0 is not a MEM, just return NULL instead of assertion
10606 (discover_nonconstant_array_refs): Don't walk debug stmts.
10608 2010-04-08 Doug Kwan <dougkwan@google.com>
10610 * configure.ac: Recognize gold and do not use its version number
10611 to test ld features.
10612 * configure: Regenerate.
10614 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
10616 PR middle-end/40815
10617 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
10618 (negate_value): Move code to push elements to broken_up_substracts ...
10619 (eliminate_plus_minus_pair): ... here. Push operands that have no
10620 negative pair to plus_negates.
10621 (repropagate_negates, init_reassoc, fini_reassoc): Update.
10623 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10625 * doc/install.texi (Configuration): Move description of
10626 --enable-lto, --with-libelf*, --enable-gold from Java section to
10629 * doc/generic.texi (Working with declarations)
10630 (Function Properties, C and C++ Trees): Fix typos.
10631 * doc/sourcebuild.texi (Top Level): Likewise.
10633 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10636 * tree.h (DECL_READ_P): Define.
10637 (struct tree_decl_common): Add decl_read_flag.
10638 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
10639 a set but not used warning.
10640 (merge_decls): Merge DECL_READ_P flag.
10641 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
10642 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
10643 * c-common.c (handle_used_attribute, handle_unused_attribute):
10645 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
10647 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
10649 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
10650 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
10651 c_parser_binary_expression, c_parser_cast_expression,
10652 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
10653 Call default_function_array_read_conversion instead of
10654 default_function_array_conversion where needed.
10655 (c_parser_unary_expression, c_parser_conditional_expression,
10656 c_parser_postfix_expression_after_primary, c_parser_initelt):
10657 Likewise. Call mark_exp_read where needed.
10658 (c_parser_statement_after_labels, c_parser_asm_operands,
10659 c_parser_typeof_specifier, c_parser_sizeof_expression,
10660 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
10662 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
10664 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
10665 (warn_unused_but_set_parameter): Default to warn_unused
10667 * doc/invoke.texi: Document -Wunused-but-set-variable and
10668 -Wunused-but-set-parameter.
10670 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
10671 used count variable.
10672 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
10673 when operandN variables aren't used in the body of the expander
10675 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
10676 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
10677 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
10678 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
10679 FOR_EACH_IMM_USE_ON_STMT): Likewise.
10680 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
10681 * tree.c (PROCESS_ARG): Likewise.
10683 2010-04-07 Simon Baldwin <simonb@google.com>
10685 * diagnostic.h (diagnostic_override_option_index): New macro to
10686 set a diagnostic's option_index.
10687 * c-tree.h (c_cpp_error): Add warning reason argument.
10688 * opts.c (_warning_as_error_callback): New.
10689 (register_warning_as_error_callback): Store callback for
10690 warnings enabled via enable_warning_as_error.
10691 (enable_warning_as_error): Call callback, minor code tidy.
10692 * opts.h (register_warning_as_error_callback): Declare.
10693 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
10694 response to -Werror=.
10695 (c_common_init_options): Register warning_as_error_callback in opts.c.
10696 * common.opt: Add -Wno-cpp option.
10697 * c-common.c (struct reason_option_codes_t): Map cpp warning
10698 reason codes to gcc option indexes.
10699 * (c_option_controlling_cpp_error): New function, lookup the gcc
10700 option index for a cpp warning reason code.
10701 * (c_cpp_error): Add warning reason argument, call
10702 c_option_controlling_cpp_error for diagnostic_override_option_index.
10703 * doc/invoke.texi: Document -Wno-cpp.
10705 2010-04-07 Richard Guenther <rguenther@suse.de>
10707 * ipa-reference.c (mark_load): Use get_base_address.
10708 (mark_store): Likewise.
10710 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
10711 inserting GIMPLE_NOPs into the IL.
10712 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10713 Explicitly strip handled components and indirect references.
10715 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
10716 folding address expressions.
10717 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
10718 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
10719 operand_equal_p to compare decls.
10720 (ptr_deref_may_alias_decl_p): Likewise.
10721 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
10722 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
10723 Handle reversed comparison ops.
10724 * tree-sra.c (asm_visit_addr): Use get_base_address.
10725 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
10726 * ipa-reference.c (mark_address): Use get_base_address.
10728 2010-04-07 Richard Guenther <rguenther@suse.de>
10730 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
10731 Propagate constants everywhere.
10733 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10736 * tree.c (MAX_INT_CACHED_PREC): Define.
10737 (nonstandard_integer_type_cache): New array.
10738 (build_nonstandard_integer_type): Cache results for precision
10739 <= MAX_INT_CACHED_PREC.
10741 2010-04-07 Richard Guenther <rguenther@suse.de>
10743 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
10744 -fargument-noalias-global, -fargument-noalias-anything): Remove.
10745 * common.opt: Likewise.
10746 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
10747 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
10748 (nonoverlapping_memrefs_p): Likewise.
10749 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10750 * opts.c (common_handle_option): Handle OPT_fargument_alias,
10751 OPT_fargument_noalias, OPT_fargument_noalias_anything and
10752 OPT_fargument_noalias_global for backward compatibility.
10754 2010-04-07 Richard Guenther <rguenther@suse.de>
10756 PR tree-optimization/43270
10757 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
10758 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
10759 * tree-ssa-pre.c (phi_translate_1): Adjust.
10760 (fully_constant_expression): Split out vn_reference handling to ...
10761 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
10762 Fold reads from constant strings.
10763 (vn_reference_lookup): Handle fully constant references.
10764 (vn_reference_lookup_pieces): Likewise.
10765 * Makefile.in (expmed.o-warn): Add -Wno-error.
10767 2010-04-07 Martin Jambor <mjambor@suse.cz>
10769 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
10771 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
10774 * gcc.c: Add -static-libstdc++ to list of recognized options.
10776 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10778 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
10780 2010-04-07 Richard Guenther <rguenther@suse.de>
10782 PR middle-end/42617
10783 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
10784 bases build simple mem attributes to retain points-to information.
10786 2010-04-07 Richard Guenther <rguenther@suse.de>
10788 PR middle-end/42617
10789 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
10790 preserve points-to related information.
10792 2010-04-07 Richard Guenther <rguenther@suse.de>
10794 PR middle-end/42617
10795 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
10796 discard plain indirect references.
10797 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
10798 * tree.c (tree_nop_conversion): Likewise.
10800 2010-04-07 Dodji Seketeli <dodji@redhat.com>
10803 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
10805 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
10807 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
10808 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
10810 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
10812 * tree-if-conv.c: Fix indentation and comments.
10814 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
10816 * tree-if-conv.c: Sort static functions in topological order.
10818 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
10820 * tree-if-conv.c: Fix indentation and comments.
10822 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10824 PR middle-end/43519
10825 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
10826 lang_hooks.types.type_for_size instead of
10827 build_nonstandard_integer_type.
10828 When converting an unsigned type to signed, double its precision.
10829 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
10830 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
10831 (graphite_create_new_loop_guard): When ub + 1 wraps around,
10834 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10836 PR middle-end/43519
10837 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
10838 POINTER_PLUS_EXPR for pointer types.
10840 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10842 PR middle-end/43519
10843 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
10844 * graphite-clast-to-gimple.c: Include langhooks.h.
10845 (max_signed_precision_type): New.
10846 (max_precision_type): Takes two types as arguments.
10847 (precision_for_value): New.
10848 (precision_for_interval): New.
10849 (gcc_type_for_interval): New.
10850 (gcc_type_for_value): New.
10851 (gcc_type_for_clast_term): New.
10852 (gcc_type_for_clast_red): New.
10853 (gcc_type_for_clast_bin): New.
10854 (gcc_type_for_clast_expr): Split up into several functions.
10855 (gcc_type_for_clast_eq): Rewritten.
10856 (compute_bounds_for_level): New.
10857 (compute_type_for_level_1): New.
10858 (compute_type_for_level): New.
10859 (gcc_type_for_cloog_iv): Removed.
10860 (gcc_type_for_iv_of_clast_loop): Rewritten.
10861 (graphite_create_new_loop): Compute the lower and upper bound types
10862 with gcc_type_for_clast_expr.
10863 (graphite_create_new_loop_guard): Same.
10864 (find_cloog_iv_in_expr): Removed.
10865 (compute_cloog_iv_types_1): Removed.
10866 (compute_cloog_iv_types): Removed.
10867 (gloog): Do not call compute_cloog_iv_types.
10868 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
10869 GBB_CLOOG_IV_TYPES.
10870 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
10871 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
10872 (GBB_CLOOG_IV_TYPES): Removed.
10874 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10876 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
10877 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
10878 (detect_commutative_reduction): Same.
10880 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10882 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
10883 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
10885 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
10886 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
10887 (rewrite_commutative_reductions_out_of_ssa): Same.
10888 * passes.c (execute_function_todo): Call verify_ssa for every pass
10889 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
10890 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
10891 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
10892 with an extra argument.
10893 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
10894 verify_ssa only when the extra argument is true.
10895 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
10896 with an extra argument.
10897 (tree_transform_and_unroll_loop): Same.
10899 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10901 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
10902 for all the passes of the LNO having LOOP_CLOSED_SSA.
10903 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
10904 * tree-loop-distribution.c (pass_loop_distribution): Same.
10905 * tree-pass.h (TODO_verify_loops): Removed.
10906 * tree-ssa-loop.c (pass_tree_loop_init): Same.
10908 (pass_tree_unswitch): Same.
10909 (pass_predcom): Same.
10910 (pass_vectorize): Same.
10911 (pass_linear_transform): Same.
10912 (pass_graphite_transforms): Same.
10913 (pass_iv_canon): Same.
10914 (pass_complete_unroll): Same.
10915 (pass_complete_unrolli): Same.
10916 (pass_parallelize_loops): Same.
10917 (pass_loop_prefetch): Same.
10918 (pass_iv_optimize): Same.
10920 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
10922 PR middle-end/32824
10923 * passes.c (init_optimization_passes): Move pass_lim before
10924 pass_copy_prop and pass_dce_loop.
10926 2010-04-06 Jakub Jelinek <jakub@redhat.com>
10929 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
10930 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
10931 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
10932 MULTI_* defines for 4 argument vpermil2p* builtins.
10934 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
10936 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
10937 * config/i386/i386.c (x86_maybe_negate_const_int): New.
10938 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
10939 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
10940 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
10941 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
10942 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
10943 Use x86_maybe_negate_const_int to output insn mnemonic.
10944 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
10945 check from instruction predicate. Update comments.
10946 * config/i386/sync.md (sync_add<mode>): Use
10947 x86_maybe_negate_const_int to output insn mnemonic.
10949 2010-04-06 Jan Hubicka <jh@suse.cz>
10951 PR tree-optimization/42906
10952 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
10953 IGNORE_SELF argument. Set visited_control_parents for fully
10955 (find_obviously_necessary_stmts): Update call of
10956 mark_control_dependent_edges_necessary.
10957 (propagate_necessity): Likewise. Handle PHI edges more curefully.
10959 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
10961 * config/i386/i386.md: Remove comment about 'e' and 'E'
10964 2010-04-06 Richard Guenther <rguenther@suse.de>
10966 PR tree-optimization/43627
10967 * tree-vrp.c (extract_range_from_unary_expr): Widenings
10968 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
10971 2010-04-06 Jakub Jelinek <jakub@redhat.com>
10973 * BASE-VER: Change to 4.6.0.
10976 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
10979 2010-04-06 Richard Guenther <rguenther@suse.de>
10981 PR middle-end/43661
10982 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
10984 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10986 * doc/invoke.texi (Optimize Options): Document that LTO
10987 won't remove object access purely due to incompatible
10990 2010-04-04 Matthias Klose <doko@ubuntu.com>
10992 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
10993 Initialize variable.
10995 2010-04-03 Richard Guenther <rguenther@suse.de>
10997 PR middle-end/42509
10998 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
10999 require a non-NULL MEM_OFFSET.
11001 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11003 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11004 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11005 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11006 config/alpha/predicates.md, config/arm/arm.md,
11007 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11008 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11009 config/darwin9.h, config/darwin.c, config/darwin.h,
11010 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11011 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11012 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11013 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11014 config/mips/mips.md, config/mn10300/mn10300.c,
11015 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11016 config/rs6000/aix.h, config/rs6000/dfp.md,
11017 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11018 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11019 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11020 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11021 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11022 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11023 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11024 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11025 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11026 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11027 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11028 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11029 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11030 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11031 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11032 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11033 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11034 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11035 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11036 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11037 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11038 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11039 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11040 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11041 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11042 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11043 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11044 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11045 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11046 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11047 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11048 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11049 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11050 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11051 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11052 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11054 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11057 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11058 * aclocal.m4: Regenerate.
11060 2010-04-02 Richard Guenther <rguenther@suse.de>
11062 PR tree-optimization/43629
11063 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11064 if we have seen a constant value.
11066 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11068 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11070 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11073 * arm.c (legitimize_tls_address): Adjust call to
11074 gen_tls_load_dot_plus_four.
11075 (arm_note_pic_base): New function.
11076 (arm_cannot_copy_insn_p): Use it.
11077 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11080 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11085 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11087 * Makefile.in ($(out_object_file)): Depend on
11088 gt-$(basename $(notdir $(out_file))).h.
11090 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11092 * config.gcc (lm32-*-rtems*): Add t-lm32.
11094 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11096 * config.gcc: Add lm32-*-rtems*.
11097 * config/lm32/rtems.h: New file.
11099 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11102 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11104 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11106 * dwarf2out.c (output_compilation_unit_header): For
11107 -gdwarf-4 use version 4 instead of version 3.
11108 (output_line_info): For version 4 and above emit additional
11109 maximum ops per insn header field.
11110 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11112 * dwarf2out.c (is_c_family, is_java): Remove.
11113 (lower_bound_default): New function.
11114 (add_bound_info, gen_descr_array_type_die): Use it.
11116 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11119 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11120 re-declaration when it happens in a function.
11122 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11124 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11125 (cgraph_remove_function_insertion_hook): Same.
11126 (cgraph_call_function_insertion_hooks): Same.
11128 2010-04-01 Richard Guenther <rguenther@suse.de>
11130 PR middle-end/43614
11131 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11132 and TREE_THIS_VOLATILE.
11133 (copy_ref_info): Likewise.
11134 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11135 * tree.c (build6_stat): Ignore side-effects of all but arg5
11136 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11139 2010-04-01 Richard Guenther <rguenther@suse.de>
11141 PR tree-optimization/43607
11142 * ipa-type-escape.c (check_call): Do not access non-existing
11145 2010-04-01 Richard Guenther <rguenther@suse.de>
11147 PR middle-end/43602
11149 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11150 Jack Howarth <howarth@bromo.med.uc.edu>
11152 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11155 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11157 * doc/install.texi (Prerequisites): Document libelf usability on
11158 IRIX 5/6 and Solaris 2.
11159 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11160 Update GNU as, GNU ld requirements.
11161 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11162 Document Sun Studio compiler download.
11163 Update and simplify as, ld recommendations.
11164 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11166 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11168 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11169 with_tune_32 to pentium4.
11171 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11173 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11175 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11177 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11178 obsoletion, removal.
11180 Document GNU as requirement.
11181 Update configure requirements.
11182 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11183 Recomment IRIX 6.5.18+.
11184 Document IDF/IDL requirement.
11185 Document GNU as requirement.
11186 Document GNU ld bootstrap failure.
11187 Remove freeware.sgi.com reference.
11189 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11191 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11192 UNIX V4.0, V5.0 obsoletion, removal.
11193 Remove --with-gc=simple reference.
11194 Update VM requirements during bootstrap.
11195 Remove -oldas bootstrap description.
11196 Update binutils reference.
11197 Remove comparison failure note.
11199 2010-03-31 Richard Guenther <rguenther@suse.de>
11200 Zdenek Dvorak <ook@ucw.cz>
11201 Sebastian Pop <sebastian.pop@amd.com>
11203 PR middle-end/43464
11204 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11205 with multiple arguments.
11206 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11208 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11210 * graphite-dependences.c (print_pddr): Call print_pdr with an
11212 * graphite-poly.c (debug_pdr): Add an extra argument for the
11215 (print_pbb_domain): Same.
11217 (print_scop_context): Same.
11218 (print_scop): Same.
11219 (print_cloog): Same.
11220 (debug_pbb_domain): Same.
11222 (print_pdrs): Same.
11223 (debug_pdrs): Same.
11224 (debug_scop_context): Same.
11225 (debug_scop): Same.
11226 (debug_cloog): Same.
11227 (print_scop_params): Same.
11228 (debug_scop_params): Same.
11229 (print_iteration_domain): Same.
11230 (print_iteration_domains): Same.
11231 (debug_iteration_domain): Same.
11232 (debug_iteration_domains): Same.
11233 (print_scattering_function): Same.
11234 (print_scattering_functions): Same.
11235 (debug_scattering_function): Same.
11236 (debug_scattering_functions): Same.
11237 * graphite-poly.h (debug_pdr): Update declaration.
11239 (print_pbb_domain): Same.
11241 (print_scop_context): Same.
11242 (print_scop): Same.
11243 (print_cloog): Same.
11244 (debug_pbb_domain): Same.
11246 (print_pdrs): Same.
11247 (debug_pdrs): Same.
11248 (debug_scop_context): Same.
11249 (debug_scop): Same.
11250 (debug_cloog): Same.
11251 (print_scop_params): Same.
11252 (debug_scop_params): Same.
11253 (print_iteration_domain): Same.
11254 (print_iteration_domains): Same.
11255 (debug_iteration_domain): Same.
11256 (debug_iteration_domains): Same.
11257 (print_scattering_function): Same.
11258 (print_scattering_functions): Same.
11259 (debug_scattering_function): Same.
11260 (debug_scattering_functions): Same.
11262 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11264 * graphite-poly.c (print_scattering_function_1): New.
11265 (print_scattering_function): Call it.
11266 (print_scop_params): Remove spaces at the end of lines.
11267 (print_cloog): New.
11268 (debug_cloog): New.
11269 * graphite-poly.h (print_cloog): Declared.
11270 (debug_cloog): Declared.
11272 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11274 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11276 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11277 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11278 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11279 to switch between adding the IV bump in loop->latch or in loop->header.
11281 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11283 * graphite-poly.c (print_scattering_function): Pretty print following
11284 the scoplib format.
11286 (print_pbb_domain): Same.
11287 (dump_gbb_cases): Same.
11288 (dump_gbb_conditions): Same.
11289 (print_pdrs): Same.
11291 (print_scop_params): Same.
11292 (print_scop_context): Same.
11293 (print_scop): Same.
11294 (print_pbb_body): New.
11295 (lst_indent_to): New.
11296 (print_lst): Start new lines with a #.
11297 * graphite-poly.h (pbb_bb): New.
11298 (pbb_index): Use pbb_bb.
11299 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11301 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11303 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11305 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11306 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11307 and 0 instead of 1 for dw_val_class_flag.
11308 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11309 dw_val_class_range_list, dw_val_class_loc_list,
11310 dw_val_class_lineptr and dw_val_class_macptr, use
11311 DW_FORM_flag_present for dw_val_class_flag and
11312 DW_FORM_exprloc for dw_val_class_loc.
11313 (output_die): For -gdwarf-4 print dw_val_class_loc
11314 size as uleb128 instead of 1 or 2 bytes and don't print
11315 anything for dw_val_class_flag.
11317 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11318 instead of cselib_lookup following by tweaking locs->setting_insn.
11321 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11322 even before returning from label, setjmp call or volatile asm
11325 2010-03-31 Richard Guenther <rguenther@suse.de>
11327 PR middle-end/43600
11328 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11329 temporary data on stack.
11331 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11333 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11334 (PUSHSECTION_ASM_OP): Remove.
11335 (POPSECTION_ASM_OP): Remove.
11336 (PUSHSECTION_FORMAT): Remove.
11337 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11338 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11339 * config/sol2.c (solaris_output_init_fini): Use it.
11341 2010-03-31 Jie Zhang <jie@codesourcery.com>
11344 * opt-functions.awk (var_type_struct): Use signed char type
11345 for simple variables.
11347 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11349 * config/sol2.c: Include output.h.
11350 (solaris_assemble_visibility): New function.
11351 * config/t-sol2 (sol2.o): Add output.h dependency.
11352 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11353 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11356 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11359 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11360 V2SImode or XFmode on PRE_DEC.
11363 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11366 2010-03-31 Jie Zhang <jie@codesourcery.com>
11369 * reload.h (caller_save_initialized_p): Declare.
11370 * toplev.c (backend_init_target): Don't call
11371 init_caller_save but set caller_save_initialized_p to false.
11372 * caller-save.c (caller_save_initialized_p): Define.
11373 (init_caller_save): Check caller_save_initialized_p.
11374 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11376 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11379 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11380 and soft-fp/t-softfp to tmake_file.
11381 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11382 (LIBGCC2_TF_CEXT): Define.
11385 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
11388 * cselib.c (n_useless_values): Document handling of debug locs.
11389 (n_useless_debug_values, n_debug_values): New variables.
11390 (new_elt_loc_list): Don't add to debug values, keep count.
11391 (promote_debug_loc): New.
11392 (cselib_reset_table): Zero new variables.
11393 (entry_and_rtx_equal_p): Promote debug locs.
11394 (discard_useless_locs): Increment n_useless_debug_values for
11396 (remove_useless_values): Adjust n_useless_values and n_debug_values
11397 with n_useless_debug_values.
11398 (add_mem_for_addr): Promote debug locs.
11399 (cselib_lookup_mem): Likewise.
11400 (cselib_lookup_addr): Renamed to...
11401 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
11402 (cselib_log_lookup): ... this. Turn into...
11403 (cselib_lookup_addr): ... new wrapper.
11404 (cselib_lookup_from_insn): New.
11405 (cselib_invalidate_regno): Increment n_useless_debug_values for
11407 (cselib_invalidate_mem): Likewise.
11408 (cselib_process_insn): Take n_deleted and n_debug_values into
11409 account to guard remove_useless_value call.
11410 (cselib_finish): Zero n_useless_debug_values.
11411 * cselib.h (cselib_lookup_from_insn): Declare.
11412 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11413 (sched_analyze_2): Likewise.
11415 2010-03-30 Jakub Jelinek <jakub@redhat.com>
11417 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11419 (adjust_mems): Replace narrowing SUBREG of expression containing
11420 just PLUS, MINUS, MULT and ASHIFT of registers and constants
11421 with operations in the narrower mode.
11424 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11425 regs_invalidated_by_call instead all call_used_reg_set registers.
11427 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
11429 PR middle-end/43430
11430 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11431 pointer comparisons with types_compatible_p.
11432 * tree-vect-stmts.c (vectorizable_call): Same.
11433 (vectorizable_condition): Same.
11435 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11437 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11438 stack check if the mask would be zero.
11440 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11441 Jack Howarth <howarth@bromo.med.uc.edu>
11443 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11446 2010-03-30 Joseph Myers <joseph@codesourcery.com>
11449 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
11451 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11452 Include ___unordxf2 and ___unordtf2.
11453 * config/i386/libgcc-glibc.ver: Do not define inheritance from
11456 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
11458 * config/lm32/t-lm32: New file.
11459 * config.gcc: Use the above file when targetting lm32.
11461 2010-03-28 Duncan Sands <baldrick@free.fr>
11463 * Makefile.in (PLUGIN_HEADERS): Add except.h.
11465 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11467 PR middle-end/43431
11468 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11469 Improve vectorization cost model diagnostic.
11471 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11473 PR middle-end/43436
11474 * tree-vect-data-refs.c (vect_analyze_data_refs): When
11475 compute_data_dependences_for_loop returns false, early exit
11476 and output an extra diagnostic for the failed data reference
11479 2010-03-29 Richard Guenther <rguenther@suse.de>
11481 PR tree-optimization/43560
11482 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11483 (can_sm_ref_p): Treat stores to readonly locations as trapping.
11485 2010-03-29 Jie Zhang <jie@codesourcery.com>
11488 * toplev.c (process_options): Set optimization_default_node
11489 and optimization_current_node.
11490 * opts.c (decode_options): Don't set optimization_default_node
11491 and optimization_current_node.
11493 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
11495 * config/rtems.h: Abandon -qrtems_debug.
11497 2010-03-28 Jan Hubicka <jh@suse.cz>
11499 PR tree-optimization/43505
11500 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11501 map should not be copied.
11503 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11505 PR middle-end/41674
11506 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11507 cdtors, set DECL_PRESERVE_P.
11508 * ipa.c (cgraph_externally_visible_p): Return true if declaration
11509 should be preseved.
11511 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
11513 PR tree-optimization/43528
11514 * stor-layout.c (place_field): Check that constant fits into
11515 unsigned HWI when skipping calculation of MS bitfield layout.
11517 2010-03-27 Jan Hubicka <jh@suse.cz>
11519 PR middle-end/43391
11520 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11521 notice_global_symbol work.
11523 2010-03-27 Jakub Jelinek <jakub@redhat.com>
11525 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11526 instead of dwarf2out_decl.
11527 (struct var_loc_node): Remove section_label field.
11528 (dwarf2out_function_decl): New function.
11529 (dwarf2out_var_location): Don't set section_label field.
11530 (dwarf2out_begin_function): Don't empty decl_loc_table here.
11532 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11534 PR tree-optimization/43544
11535 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11536 First argument for builtin vectorized function hook is now a
11537 tree to be able to distinguish between machine specific and
11539 * targhooks.c (default_builtin_vectorized_function): Ditto.
11540 * targhooks.h (default_builtin_vectorized_function): Ditto.
11541 * target.h (struct gcc_target): Ditto.
11542 * tree-vect-stmts.c (vectorizable_function): Ditto.
11543 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
11544 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11547 2010-03-26 Joseph Myers <joseph@codesourcery.com>
11550 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
11551 nested binding iff it is a FUNCTION_DECL.
11552 (store_parm_decls_newstyle): Pass nested=true to bind for
11553 FUNCTION_DECLs amongst parameters.
11555 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11557 * var-tracking.c (vt_expand_loc_callback): Don't run
11558 cselib_expand_value_rtx_cb in dummy mode if
11559 cselib_dummy_expand_value_rtx_cb returned false.
11561 * var-tracking.c (emit_note_insn_var_location): For one part
11562 notes with offset 0, don't add EXPR_LIST around the location.
11563 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
11564 add_location_or_const_value_attribute): Adjust for that change.
11567 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
11568 into first operand and location into second.
11569 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
11570 dw_cfi_oprnd_loc for DW_CFA_expression.
11571 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
11572 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
11573 assume first argument is regnum and second argument is location.
11575 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11578 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
11579 of scratch register to DImode. Split to DImode comparison operator.
11580 Use SImode subreg of scratch register in the multiplication.
11581 (*cmp_sadd_sidi): Ditto.
11582 (*cmp_ssub_si): Ditto.
11583 (*cmp_ssub_sidi): Ditto.
11585 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11588 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
11589 Remove invalid assert and wrong comment.
11591 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11594 * flags.h (final_insns_dump_p): New extern.
11595 * final.c (final_insns_dump_p): New variable.
11596 (rest_of_clean_state): Set it before -fdump-final-insns=
11597 dumping, clear afterwards.
11598 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
11599 MEM_ALIAS_SET on MEMs.
11601 2010-03-26 David S. Miller <davem@davemloft.net>
11603 * configure.ac: Fix sparc GOTDATA_OP bug check.
11604 * configure: Rebuild.
11606 2010-03-26 Alan Modra <amodra@gmail.com>
11608 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
11610 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11612 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
11613 TLS_SECTION_ASM_FLAG.
11615 2010-03-25 Jakub Jelinek <jakub@redhat.com>
11618 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
11619 Clear first_function_block_is_cold.
11622 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
11623 argument if the argument is truth_value_p.
11625 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11627 * config/rs6000/constraints.md: Update copyright year for my changes.
11630 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
11631 used in reg+reg addressing, swap registers.
11633 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11636 * target.h (struct gcc_target): Add code_end hook.
11637 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
11638 if not yet defined.
11639 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
11640 * toplev.c (compile_file): Call targetm.asm_out.code_end
11641 hook before unwind info/debug info output.
11642 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
11643 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
11644 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11645 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
11646 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11647 * config/i386/i386.c (ix86_file_end): Renamed to...
11648 (ix86_code_end): ... this. Make static. Don't call
11649 file_end_indicate_exec_stack. Emit unwind info using
11650 final_start_function/final_end_function.
11651 (darwin_x86_file_end): Remove.
11652 (TARGET_ASM_CODE_END): Define.
11653 * config/i386/i386.h (TARGET_ASM_FILE_END,
11654 NEED_INDICATE_EXEC_STACK): Don't define.
11655 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
11656 (TARGET_ASM_FILE_END): Define to darwin_file_end.
11657 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
11658 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
11661 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
11662 at the beginning and final_end_function at the end.
11663 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11665 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11667 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
11668 and Sun as TLS syntax.
11669 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
11670 * configure: Regenerate.
11671 * config.in: Regenerate.
11672 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
11673 (default_elf_asm_named_section): Use it.
11674 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
11675 (i386_output_dwarf_dtprel): Likewise.
11676 (output_addr_const_extra): Likewise.
11677 (output_pic_addr_const): Lowercase @GOTTPOFF.
11678 (output_addr_const_extra): Likewise.
11679 (output_pic_addr_const): Lowercase @GOTNTPOFF.
11680 (output_addr_const_extra): Likewise.
11681 (output_pic_addr_const): Lowercase @INDNTPOFF.
11682 (output_addr_const_extra): Likewise.
11683 (output_pic_addr_const): Lowercase @NTPOFF.
11684 (output_addr_const_extra): Likewise.
11685 (output_pic_addr_const): Lowercase @TPOFF.
11686 (output_addr_const_extra): Likewise.
11687 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
11688 (*tls_global_dynamic_64): Likewise.
11689 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
11690 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
11692 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
11693 (ASM_OUTPUT_TLS_COMMON): Use it.
11694 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
11697 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
11698 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
11699 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
11700 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
11701 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11702 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
11704 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11706 * config/i386/i386.c (override_options): Don't accept
11707 -mtls-dialect=sun any longer.
11708 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
11709 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
11710 (*tls_local_dynamic_base_32_sun): Likewise.
11711 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11713 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11716 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11717 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
11720 * ira.c (adjust_cleared_regs): New function.
11721 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
11725 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
11727 * expr.c (expand_expr_real): Restore previous
11728 curr_insn_source_location and curr_insn_block after
11729 expand_expr_real_1 call.
11730 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
11731 instead of expand_expr_real_1.
11733 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
11735 PR rtl-optimization/43413
11736 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
11739 2010-03-22 James E. Wilson <wilson@codesourcery.com>
11742 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
11743 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
11745 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
11747 * config/i386/i386.c (ix86_target_string): Add -mfma.
11748 Fix a typo in comment.
11750 2010-03-22 Mike Stump <mikestump@comcast.net>
11753 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
11754 Don't overly align based upon packed packed fields.
11756 2010-03-22 Jason Merrill <jason@redhat.com>
11758 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
11759 Use () rather than [], and move before the element type.
11761 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11763 * doc/configfiles.texi (Configuration Files): Removed
11764 fixinc/Makefile*, intl/Makefile.*.
11765 * doc/makefile.texi: Fixed markup. Abstract from version
11766 control system used.
11767 (Makefile): Removed obsolete gcc/java/parse.y example.
11768 * doc/sourcebuild.texi: Likewise.
11769 (Top Level): Added config, gnattools, libdecnumber, libgcc,
11770 libgomp, libssp. Removed fastjar.
11771 (Miscellaneous Docs): Clarify location.
11772 Added COPYING3, COPYING3.LIB.
11773 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
11775 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11778 * config/i386/i386.c (x86_function_profiler)
11779 [!NO_PROFILE_COUNTERS]: Fix typo.
11780 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
11783 2010-03-22 Janis Johnson <janis187@us.ibm.com>
11784 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11786 * doc/sourcebuild.texi (Test Directives): Split into six
11787 subsections, with most of the current text in new subsections
11788 Directives, Selectors, and Final Actions.
11789 (Directives): Split list of test directives into multiple
11791 (Selectors): Describe use and syntax of selectors.
11792 (Effective-Target Keywords): Describe all existing keywords.
11793 (Add Options): Describe features for dg-add-options.
11794 (Require Support): Describe variants of dg-require-support.
11795 (Final Actions): Describe commands to use in dg-final.
11797 2010-03-22 Michael Matz <matz@suse.de>
11799 PR middle-end/43475
11800 * recog.c (validate_replace_rtx_group): Replace also in
11801 REG_EQUAL and REG_EQUIV notes.
11803 2010-03-22 Richard Guenther <rguenther@suse.de>
11805 PR tree-optimization/43390
11806 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
11807 sure vector extracts are type correct.
11809 2010-03-22 Richard Guenther <rguenther@suse.de>
11811 PR middle-end/40106
11812 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
11813 x * sqrt (x) even when optimizing for size if the target
11814 has native support for sqrt.
11816 2010-03-22 Jakub Jelinek <jakub@redhat.com>
11818 * varasm.c (make_decl_rtl_for_debug): Also clear
11819 flag_mudflap for the duration of make_decl_rtl call.
11822 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
11823 locs from preserved VALUEs.
11825 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11827 PR middle-end/42718
11828 * pa.md (movmemsi): Set align to one if zero.
11829 (movmemdi): Likewise.
11831 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
11834 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
11835 with their corresponding prologue pushes.
11837 2010-03-20 Andrew Pinski <pinskia@gmail.com>
11840 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
11841 at the begining or end.
11842 (spu_expand_epilogue): Likewise.
11844 2010-03-20 Richard Guenther <rguenther@suse.de>
11846 PR rtl-optimization/43438
11847 * combine.c (make_extraction): Properly zero-/sign-extend an
11848 extraction of the low part of a CONST_INT. Also handle
11851 2010-03-19 Mike Stump <mikestump@comcast.net>
11853 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
11854 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
11855 (override_options): Use SUBTARGET32_DEFAULT_CPU.
11857 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
11860 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
11863 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
11865 PR rtl-optimization/42258
11866 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
11867 use that may match DEF.
11870 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
11871 the cost of loading the constant rather than assuming
11873 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
11874 outer code is AND, do the same tests as the andsi3 expander and
11875 return COSTS_N_INSNS (1) if and is cheap.
11877 * optabs.c (avoid_expensive_constant): Fix formatting.
11879 2010-03-19 Michael Matz <matz@suse.de>
11882 * attribs.c (decl_attributes): When rebuilding a function pointer
11883 type use the same qualifiers as the original pointer type.
11885 2010-03-19 Martin Jambor <mjambor@suse.cz>
11887 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
11888 and is_gimple_ip_invariant_address.
11890 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11893 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11895 * config/arm/arm.c (arm_override_options): Turn off
11896 flag_dwarf2_cfi_asm for AAPCS variants.
11898 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11901 * config/arm/arm.c (emit_multi_reg_push): Update comments.
11902 Use PRE_MODIFY instead of PRE_DEC.
11903 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
11904 (vfp_emit_fstmd): Likewise.
11906 2010-03-19 Michael Matz <matz@suse.de>
11909 * builtins.c (expand_builtin_interclass_mathfn,
11910 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
11913 2010-03-19 Richard Guenther <rguenther@suse.de>
11915 PR tree-optimization/43415
11916 * tree-ssa-pre.c (phi_translate): Split out worker to ...
11917 (phi_translate_1): ... this.
11918 (phi_translate): Move all caching here. Cache all NARY
11919 and REFERENCE translations.
11921 2010-03-19 David S. Miller <davem@davemloft.net>
11923 With help from Eric Botcazou.
11924 * config/sparc/sparc.c: Include dwarf2out.h.
11925 (emit_pic_helper): Delete.
11926 (pic_helper_symbol_name): Delete.
11927 (pic_helper_emitted_p): Delete.
11928 (pic_helper_needed): New.
11929 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
11930 (get_pc_thunk_name): New.
11931 (load_pic_register): Remove 'delay_pic_helper' arg. Use
11932 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
11933 Set pic_helper_needed to true. Don't call emit_pic_helper.
11934 (sparc_expand_prologue): Update load_pic_register call.
11935 (sparc_output_mi_thunk): Likewise.
11936 (sparc_file_end): Emit a hidden comdat symbol for the PIC
11937 thunk if possible. Output CFI information as needed.
11939 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11940 Jack Howarth <howarth@bromo.med.uc.edu>
11943 * config/i386/i386.h: Fix ABI on darwin x86-32.
11945 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
11947 * tree.h: Declare make_decl_rtl_for_debug.
11948 * varasm.c (make_decl_rtl_for_debug): New.
11949 * dwarf2out.c (rtl_for_decl_location): Call it.
11950 * cfgexpand.c (expand_debug_expr): Call it.
11952 2010-03-18 Jakub Jelinek <jakub@redhat.com>
11955 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
11959 * var-tracking.c (vt_init_cfa_base): Do nothing if
11960 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
11962 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
11965 * var-tracking.c (canonicalize_vars_star): New.
11966 (dataflow_post_merge_adjust): Use it.
11968 2010-03-18 Jakub Jelinek <jakub@redhat.com>
11971 * var-tracking.c (non_suitable_const): New function.
11972 (add_uses): For DEBUG_INSNs with constants, don't record any
11973 value, instead just the constant value itself.
11974 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
11975 is not VAR_LOC_UNKNOWN_P, set var to the constant.
11976 (emit_notes_in_bb): Likewise.
11977 (emit_note_insn_var_location): For onepart variables if
11978 cur_loc is a VOIDmode constant, use DECL_MODE.
11980 2010-03-18 Martin Jambor <mjambor@suse.cz>
11982 PR middle-end/42450
11983 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
11984 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
11985 all non-clones. Moved call redirection...
11986 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
11987 (cgraph_materialize_all_clones): Dispose of all
11988 combined_args_to_skip bitmaps.
11989 (verify_cgraph_node): Do not check for edges pointing to wrong
11990 nodes in inline clones.
11991 * tree-inline.c (copy_bb): Call
11992 cgraph_redirect_edge_call_stmt_to_callee.
11993 * ipa.c (cgraph_remove_unreachable_nodes): Call
11994 cgraph_node_remove_callees even when there are used clones.
11996 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
11998 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12000 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12003 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12006 2010-03-18 Michael Matz <matz@suse.de>
12008 PR middle-end/43419
12009 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12010 into sqrt(x) if we need to preserve signed zeros.
12012 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12013 Eric Botcazou <ebotcazou@adacore.com>
12015 PR rtl-optimization/43360
12016 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12017 note if we don't know its invariant status.
12019 2010-03-18 Michael Matz <matz@suse.de>
12021 PR tree-optimization/43402
12022 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12023 PHI chains of ssa names registered for update.
12025 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12028 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12029 non-offsettable and pre_modify update addressing.
12030 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12031 and "2" alternatives "#".
12032 (*movdd_softfloat32): Make all alternatives "#";
12033 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12034 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12035 (*movdf_softfloat32): Make all alternatives "#";
12036 (movdi): Use the new DIFD mode iterator to create a common splitter
12037 for movdi, movdf and movdd patterns.
12039 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12041 * common.opt (dumpdir): Remove redundant tab.
12043 2010-03-17 Martin Jambor <mjambor@suse.cz>
12045 PR tree-optimization/43347
12046 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12047 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12049 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12051 PR rtl-optimization/42216
12052 * regrename.c (create_new_chain): New function, broken out from...
12053 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12054 appending a use to an empty chain.
12055 (build_def_use): Remove previous changes that convert OP_INOUT to
12056 OP_OUT operands; instead detect the case where an OP_INOUT operand
12057 uses a previously untracked register and create an empty chain for it.
12059 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12061 * doc/extend.texi (Function Attributes): Rewrite unfinished
12062 sentence in ms_abi documentation.
12064 2010-03-17 Alan Modra <amodra@gmail.com>
12066 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12067 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12068 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12069 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12071 2010-03-16 Richard Henderson <rth@redhat.com>
12073 PR middle-end/43365
12074 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12075 (lower_try_finally): Save and restore eh_seq around the expansion
12076 of the try-finally.
12078 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12080 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12081 statements before splitting block.
12083 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12085 * doc/sourcebuild.texi (Testsuites): Fix markup.
12086 Use pathnames relative to gcc/testsuite.
12087 (Test Directives): Move description of how timeout is determined.
12088 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12089 (C Tests): Correct gcc.misc-tests directory.
12090 Framework tests now live in gcc.test-framework.
12092 2010-03-16 Richard Guenther <rguenther@suse.de>
12094 PR middle-end/43379
12095 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12096 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12098 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12099 Alexandre Oliva <aoliva@redhat.com>
12101 PR tree-optimization/42917
12102 * lambda-code.c (remove_iv): Skip debug statements.
12103 (lambda_loopnest_to_gcc_loopnest): Likewise.
12104 (not_interesting_stmt): Debug statements are not interesting.
12106 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12110 * cselib.c (cselib_preserve_constants,
12111 cfa_base_preserved_val): New static variables.
12112 (preserve_only_constants): New function.
12113 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12114 clear its REG_VALUES. If cselib_preserve_constants, don't
12115 empty the whole hash table, but preserve there VALUEs with constants,
12116 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12117 (cselib_preserve_cfa_base_value): New function.
12118 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12119 (cselib_init): Change argument to int bitfield. Set
12120 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12122 (cselib_finish): Clear cselib_preserve_constants and
12123 cfa_base_preserved_val.
12124 * cselib.h (enum cselib_record_what): New enum.
12125 (cselib_init): Change argument to int.
12126 (cselib_preserve_cfa_base_value): New prototype.
12127 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12128 * dse.c (dse_step1): Likewise.
12129 * cfgcleanup.c (thread_jump): Likewise.
12130 * sched-deps.c (sched_analyze): Likewise.
12131 * gcse.c (local_cprop_pass): Likewise.
12132 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12133 If FN is non-NULL, call the callback always and whenever it returns
12134 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12135 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12136 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12137 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12138 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12139 * var-tracking.c: Include recog.h.
12140 (bb_stack_adjust_offset): Remove.
12141 (vt_stack_adjustments): Don't call it, instead just gather the
12142 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12143 (adjust_stack_reference): Remove.
12144 (compute_cfa_pointer): New function.
12145 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12146 (struct adjust_mem_data): New type.
12147 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12149 (get_address_mode): New function.
12150 (replace_expr_with_values): Use it.
12151 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12152 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12153 (adjust_sets): Remove.
12154 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12155 Use get_address_mode.
12156 (get_adjusted_src): Remove.
12157 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12158 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12159 (add_with_sets): Don't call adjust_sets.
12160 (fp_setter, vt_init_cfa_base): New functions.
12161 (vt_initialize): Change return type to bool. Move most of pool etc.
12162 initialization to the beginning of the function from end. Pass
12163 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12164 If !frame_pointer_needed, call vt_stack_adjustment before mos
12165 vector is filled, call vt_init_cfa_base if argp/framep has been
12166 eliminated to sp. If frame_pointer_needed and argp/framep has
12167 been eliminated to hard frame pointer, set
12168 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12169 encountering fp setter in the prologue. For MO_ADJUST, call
12170 log_op_type before pusing the op into mos vector, not afterwards.
12171 Call adjust_insn before cselib_process_insn/add_with_sets,
12172 call cancel_changes (0) afterwards.
12173 (variable_tracking_main_1): Adjust for vt_initialize calling
12174 vt_stack_adjustments and returning whether it succeeded or not.
12176 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12178 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12181 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12183 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12185 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12186 drap_reg has not been set.
12188 2010-03-15 Michael Matz <matz@suse.de>
12190 PR middle-end/43300
12191 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12192 use it to expand block copies.
12193 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12194 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12195 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12197 2010-03-15 Richard Guenther <rguenther@suse.de>
12199 PR tree-optimization/43367
12200 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12203 2010-03-15 Richard Guenther <rguenther@suse.de>
12205 PR tree-optimization/43317
12206 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12208 2010-03-15 Martin Jambor <mjambor@suse.cz>
12210 PR tree-optimization/43141
12211 * tree-sra.c (create_abstract_origin): New function.
12212 (modify_function): Call create_abstract_origin.
12214 2010-03-15 Chris Demetriou <cgd@google.com>
12216 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12219 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12221 PR middle-end/43354
12222 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12223 call insert_out_of_ssa_copy for default definitions.
12225 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12227 * graphite-clast-to-gimple.c (my_long_long): Defined.
12228 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12229 * graphite-sese-to-poly.c (my_long_long): Defined.
12230 (scop_ivs_can_be_represented): Use it.
12232 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12234 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12235 graphite-max-bbs-per-function, and loop-block-tile-size.
12236 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12238 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12240 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12242 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12243 forward declaration.
12244 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12245 (add_upper_bounds_from_estimated_nit): New.
12246 (build_loop_iteration_domains): Use it.
12248 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12250 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12252 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12254 PR middle-end/43306
12255 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12256 should be an INTEGER_CST. Also handle CASE_CONVERT.
12258 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12260 * graphite.c (graphite_initialize): To bound the number of bbs per
12261 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12262 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12263 * doc/invoke.texi: Document it.
12265 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12267 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12268 * graphite-sese-to-poly.h (build_poly_scop): Same.
12270 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12272 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12273 the number of parameters in the scop. Use as an upper bound
12274 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12275 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12276 * doc/invoke.texi: Document it.
12278 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12280 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12281 * doc/c-tree.texi: Remove.
12282 * doc/generic.texi: Merge c-tree.texi here.
12283 * doc/gccint.texi (Trees): Remove menu entry.
12284 (c-tree.texi): Remove @include.
12285 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12286 * doc/languages.texi (Reading RTL): Ditto.
12288 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12291 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12293 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12295 PR middle-end/42431
12296 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12297 code added to work around reload clobbering CONST insns.
12299 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12301 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12302 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12303 (cselib_preserve_only_values): Remove retain argument, don't
12304 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12305 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12306 * var-tracking.c (micro_operation): Move insn field before union.
12307 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12308 (struct variable_tracking_info_def): Remove n_mos field, change
12309 mos into a vector of micro_operations.
12310 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12311 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12312 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12313 changing into a vector.
12314 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12315 come before all other uops generated by add_stores.
12316 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12318 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12319 a vector. Run just one pass over the bbs instead of separate counting
12320 and computation phase.
12321 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12324 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12325 into *nonlocalized_list vector.
12326 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12327 even if origin is non-NULL.
12328 (gen_variable_die): Likewise.
12329 (process_scope_var): Don't change origin.
12330 (gen_decl_die): Likewise.
12331 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12332 before adding new edges instead of after it, fix moving over
12335 2010-03-11 David S. Miller <davem@davemloft.net>
12337 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12339 * configure: Rebuild.
12341 2010-03-11 Martin Jambor <mjambor@suse.cz>
12343 PR tree-optimization/43257
12344 * tree.c (assign_assembler_name_if_neeeded): New function.
12345 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12346 above new function.
12347 * tree.h (assign_assembler_name_if_neeeded): Declare.
12348 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12349 the function if needed.
12351 2010-03-11 Chris Demetriou <cgd@google.com>
12353 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12354 include/stdint-gcc.h, and include/stdint.h world-readable.
12356 2010-03-11 Richard Guenther <rguenther@suse.de>
12358 PR tree-optimization/43255
12359 * tree-vrp.c (process_assert_insertions_for): Do not insert
12360 asserts for trivial conditions.
12362 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12364 PR tree-optimization/43280
12365 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12366 generation. Move calculation of size out of the if branch.
12367 (find_bswap): Modify compare number generation.
12369 2010-03-11 Richard Guenther <rguenther@suse.de>
12372 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12373 (input_gimple_stmt): Fixup handled component types during
12374 operand read. Also fix up decls in ADDR_EXPRs.
12376 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12378 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12379 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12381 2010-03-10 Jan Hubicka <jh@suse.cz>
12384 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12385 * varasm.c (get_variable_section): Don't do that here...
12386 (make_decl_rtl): ... and here.
12387 (do_assemble_alias): Produce decl RTL.
12388 (assemble_alias): Likewise.
12390 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12393 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12394 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12396 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12397 (based_loc_descr): Only express drap or vdrap regno based expressions
12398 using DW_OP_fbreg when not optimizing.
12399 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12400 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12401 REG_CFA_SET_VDRAP note.
12403 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
12405 PR tree-optimization/43236
12406 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12407 error in calculation of base address in reverse iteration case.
12408 (generate_builtin): Take number of latch executions if the statement
12411 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
12413 PR middle-end/42859
12414 * tree-eh.c: Include pointer-set.h.
12415 (lower_eh_dispatch): Filter out duplicate case labels and
12416 remove the unneeded edge when the label is unused. Return
12417 true when some edges are removed.
12418 (execute_lower_eh_dispatch): When any lowering resulted in
12419 removing an edge, also delete unreachable blocks.
12421 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12424 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12425 UNSPEC_MACHOPIC_OFFSET.
12427 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
12430 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12431 (m68k_delegitimize_address): New function.
12433 2010-03-09 Jakub Jelinek <jakub@redhat.com>
12436 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12439 * var-tracking.c (adjust_sets): New function.
12440 (count_with_sets, add_with_sets): Use it.
12441 (get_adjusted_src): New inline function.
12442 (add_stores): Use it.
12445 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12446 call cselib_dummy_expand_value_rtx_cb instead of
12447 cselib_expand_value_rtx_cb.
12450 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12451 * config/i386/i386.c: Include debug.h and dwarf2out.h.
12452 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12453 and .cfi_endproc around the pic thunks.
12454 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12455 all queued unwind info register saves are saved before the call.
12456 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12457 considered as sp-=4 for unwind info and the pop as sp+=4 which
12458 also clobbers dest, but doesn't actually restore it.
12461 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12462 RTX_FRAME_RELATED_P.
12464 2010-03-09 Jie Zhang <jie@codesourcery.com>
12466 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12467 whitespaces in output template.
12469 2010-03-09 Jie Zhang <jie@codesourcery.com>
12471 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12472 out array boundary.
12474 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12476 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12477 builtins.exp in a separate job.
12479 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12481 * graphite-sese-to-poly.c (add_param_constraints): Use
12482 lower_bound_in_type and upper_bound_in_type.
12484 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12486 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12487 instead of unsigned_type_node.
12489 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12490 Reza Yazdani <reza.yazdani@amd.com>
12492 PR middle-end/43065
12493 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12494 on pointer type parameters.
12496 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12498 PR middle-end/42644
12499 PR middle-end/42130
12500 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12501 handle conversions from pointer to integers.
12502 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12503 induction variable, to be able to work with code generated by CLooG.
12504 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12505 (build_poly_scop): Bail out if we cannot codegen a loop.
12507 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12509 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12510 code generation with gloog_error.
12512 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12514 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12515 Call fold_convert on all the returned values.
12516 (expand_scalar_variables_expr): Pass to
12517 expand_scalar_variables_ssa_name the type of the resulting expression.
12519 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12521 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12522 ppl_min_for_le_pointset.
12523 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12524 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12526 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12528 * graphite-dependences.c (map_into_dep_poly): Removed.
12529 (dependence_polyhedron_1): Use combine_context_id_scat.
12531 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12533 * graphite-poly.h (struct poly_scattering): Add layout documentation.
12534 (struct poly_bb): Same.
12535 (combine_context_id_scat): New.
12537 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12539 PR middle-end/42326
12540 * sese.c (name_defined_in_loop_p): Return false for default
12543 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12545 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
12546 and clean up the logic.
12548 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12550 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
12553 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12555 * var-tracking.c (remove_cselib_value_chains): Define only for
12557 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
12558 delete_slot_part, emit_notes_for_differences_1): Don't call
12559 remove_cselib_value_chains here.
12560 (set_slot_part, emit_notes_for_differences_2): Don't call
12561 add_cselib_value_chains here.
12562 (preserved_values): New vector.
12563 (preserve_value): New function.
12564 (add_uses, add_stores, vt_add_function_parameters): Use it
12565 instead of cselib_preserve_value.
12566 (changed_values_stack): New vector.
12567 (check_changed_vars_0): New function.
12568 (check_changed_vars_1, check_changed_vars_2): Use it.
12569 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
12570 changed_values_stack VALUEs.
12571 (vt_emit_notes): For all preserved_values call
12572 add_cselib_value_chains. If ENABLE_CHECKING call
12573 remove_cselib_value_chains before verifying value_chains is empty.
12574 Initialize and free changed_values_stack.
12575 (vt_initialize): Initialize preserved_values.
12576 (vt_finalize): Free preserved_values.
12578 2010-03-08 Richard Guenther <rguenther@suse.de>
12580 PR tree-optimization/43269
12581 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
12584 2010-03-08 Martin Jambor <mjambor@suse.cz>
12586 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
12587 (ipa_is_param_called): Removed.
12588 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
12589 (ipa_print_node_params): Do not print the called flag.
12590 (ipa_write_node_info): Do not stream the called flag.
12591 (ipa_read_node_info): Likewise.
12593 2010-03-07 Jakub Jelinek <jakub@redhat.com>
12596 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
12597 * cselib.c (struct expand_value_data): Add dummy field.
12598 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
12600 (cselib_dummy_expand_value_rtx_cb): New function.
12601 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
12603 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
12604 * var-tracking.c: Include pointer-set.h.
12605 (variable): Change n_var_parts to char from int. Add
12606 cur_loc_changed and in_changed_variables fields.
12607 (variable_canonicalize): Remove.
12608 (shared_var_p): New inline function.
12609 (unshare_variable): Maintain cur_loc_changed and
12610 in_changed_variables fields. If var was in changed_variables,
12611 replace it there with new_var. Just copy cur_loc instead of
12612 resetting it to something else.
12613 (variable_union): Don't recompute cur_loc. Use shared_var_p.
12614 (dataflow_set_union): Don't call variable_canonicalize.
12615 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
12616 of their DEBUG_EXPR_TREE_DECLs.
12617 (canonicalize_loc_order_check): Verify that cur_loc is NULL
12618 and in_changed_variables and cur_loc_changed is false.
12619 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
12620 and cur_loc_changed. Don't update cur_loc here.
12621 (variable_merge_over_src): Don't call variable_canonicalize.
12622 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
12623 removing loc that is equal to cur_loc, clear cur_loc,
12624 set cur_loc_changed and ensure variable_was_changed is called.
12625 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
12626 compare pointers in cur_loc check, if it is equal to loc,
12627 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
12628 (variable_different_p): Remove compare_current_location argument,
12629 don't compare cur_loc.
12630 (dataflow_set_different_1): Adjust variable_different_p caller.
12631 (variable_was_changed): If dv had some var in changed_variables
12632 already, reset in_changed_variables flag for it and propagate
12633 cur_loc_changed over to the new variable. On empty var
12634 always set cur_loc_changed. Set in_changed_variables on whatever
12635 var is added to changed_variables.
12636 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
12637 Use shared_var_p. When removing loc that is equal to cur_loc,
12638 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
12639 end, don't set it to something else, just call variable_was_changed.
12640 (delete_slot_part): Use shared_var_p. When cur_loc equals to
12641 loc being removed, clear cur_loc and set cur_loc_changed.
12642 Set cur_loc_changed if all locations have been removed.
12643 (struct expand_loc_callback_data): New type.
12644 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
12645 allocated. Always create SUBREGs if simplify_subreg failed.
12646 Prefer to use cur_loc, when that fails and still in
12647 changed_variables (and seen first time) recompute it. Set
12648 cur_loc_changed of variables which had to change cur_loc and
12649 compute elcd->cur_loc_changed if any of the subexpressions used
12650 had to change cur_loc.
12651 (vt_expand_loc): Adjust to pass arguments in
12652 expand_loc_callback_data structure.
12653 (vt_expand_loc_dummy): New function.
12654 (emitted_notes): New variable.
12655 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
12656 that weren't used for any other decl in current
12657 emit_notes_for_changes call call vt_expand_loc_dummy to update
12658 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
12659 first loc_chain location if NULL before. Always use just
12660 cur_loc instead of first loc_chain location. When cur_loc_changed
12661 is false, when not --enable-checking=rtl just don't emit any note.
12662 When rtl checking, compute the note and assert it is the same
12663 as previous note. Clear cur_loc_changed and in_changed_variables
12664 at the end before removing from changed_variables.
12665 (check_changed_vars_3): New function.
12666 (emit_notes_for_changes): Traverse changed_vars to call
12667 check_changed_vars_3 on each changed var.
12668 (emit_notes_for_differences_1): Clear cur_loc_changed and
12669 in_changed_variables. Recompute cur_loc of new_var.
12670 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
12671 (vt_emit_notes): Initialize and destroy emitted_notes.
12673 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
12675 PR rtl-optimization/42220
12676 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
12677 Use verify_reg_tracked to determine if we should use OP_OUT rather
12679 (build_def_use): If we see an in-out operand for a register that we
12680 know nothing about, treat is an output if possible, fail the block if
12683 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12686 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
12689 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12692 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
12693 uses of relevant DEFs that are dead outside the loop too.
12695 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12697 * var-tracking.c (dataflow_set_merge): Swap src and src2.
12699 2010-01-13 Jakub Jelinek <jakub@redhat.com>
12701 * var-tracking.c (values_to_unmark): New variable.
12702 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12703 values_to_unmark vector. Moved body to...
12704 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
12705 instead queue it into values_to_unmark vector.
12706 (vt_find_locations): Free values_to_unmark vector.
12708 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
12710 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
12711 (site.exp): Export them when plugins are enabled.
12713 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
12715 PR middle-end/42326
12716 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
12717 that contain scevs.
12718 (chrec_fold_multiply): Same.
12720 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12723 * c-decl.c (build_compound_literal): Return early if init is
12724 an error_mark_node.
12726 2010-03-04 Martin Jambor <mjambor@suse.cz>
12728 PR tree-optimization/43164
12729 PR tree-optimization/43191
12730 * tree-sra.c (type_consists_of_records_p): Reject records with
12731 zero-size bit-fields at the end.
12733 2010-03-04 Mike Stump <mikestump@comcast.net>
12735 * Makefile.in (TAGS): Remove *.y.
12737 2010-03-04 Richard Guenther <rguenther@suse.de>
12739 PR tree-optimization/40761
12740 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
12742 (my_rev_post_order_compute): New function.
12743 (init_pre): Call it.
12745 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
12747 PR middle-end/43209
12748 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
12749 decrease the cost of an IV candidate when the cost is infinite.
12751 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12753 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
12754 Use '3DNow!' for the extension of that name, ensure normal space
12756 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
12758 2010-03-03 Jeff Law <law@redhat.com>
12760 * PR middle-end/32693
12761 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
12762 than gen_rtx_SUBREG.
12763 (extract_bit_field_1): Likewise.
12765 2010-03-03 Janis Johnson <janis187@us.ibm.com>
12767 * doc/sourcebuild.texi (Test directives): Document that arguments
12768 include-opts and exclude-opts are now optional for dg-skip-if,
12769 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
12771 2010-03-03 Jason Merrill <jason@redhat.com>
12774 * cgraph.h (varpool_node): Add extra_name field.
12775 * varpool.c (varpool_extra_name_alias): New.
12776 (varpool_assemble_decl): Emit extra name aliases.
12777 (varpool_mark_needed_node): Look past an extra name alias.
12778 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
12779 * lto-streamer-in.c (lto_input_tree): Read it.
12780 * lto-streamer-out.c (output_unreferenced_globals): Write it.
12782 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
12784 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
12785 (sparc*-*-solaris2*): ...this.
12787 2010-03-03 Jakub Jelinek <jakub@redhat.com>
12790 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
12791 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
12792 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
12793 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
12796 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
12797 fallthrough to default handling, just with want_address 0 instead of 2.
12798 For single element lists, add_AT_loc directly, otherwise create an
12799 artificial variable DIE and stick location list to it.
12802 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
12803 (VAL_EXPR_HAS_REVERSE): Define.
12804 (reverse_op): New function.
12805 (add_stores): For reversible operations add an extra MO_VAL_USE.
12807 2010-03-02 Jason Merrill <jason@redhat.com>
12809 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
12811 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
12813 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
12814 (sparc64-*-linux*): Likewise.
12815 (sparc64-*-solaris2*): Include assembler files before linker ones.
12816 (sparc-*-solaris2*): Simplify and reorder to match previous case.
12817 * config/sparc/gas.h: Delete.
12818 * config/sparc/sol2-64.h: Add copyright notice.
12819 * config/sparc/sol2-gas-bi.h: Likewise.
12820 * config/sparc/sol2-gld.h: Likewise.
12821 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
12822 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
12823 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
12824 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
12825 (sparc_elf_asm_named_section): Rename into...
12826 (sparc_solaris_elf_asm_named_section): ...this. Always define.
12828 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
12830 * config/alpha/alpha.c (override_options): Fix -mtune error message.
12832 2010-03-02 Jeff Law <law@redhat.com>
12834 PR middle-end/42431
12835 * reload1.c (rtx_p, substitute_stack): Declare.
12836 (substitute): Record addresses of changed rtxs.
12837 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
12838 Restore the original rtx when complete.
12839 (reload): Free subsitute_stack when complete.
12841 2010-03-02 Janis Johnson <janis187@us.ibm.com>
12843 * doc/gccint.texi (menu): Add Testsuites as a chapter.
12844 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
12846 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
12847 LTO Testing, gcov Testing, profopt Testing, compat Testing,
12848 Torture Tests): Change from subsection to section.
12850 2010-03-02 Jakub Jelinek <jakub@redhat.com>
12851 Steven Bosscher <steven@gcc.gnu.org>
12853 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
12856 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
12858 PR middle-end/42640
12859 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
12860 the assignment from the new induction variable to the assignment
12861 of the value from the original loop PHI function.
12863 2010-03-01 Janis Johnson <janis187@us.ibm.com>
12864 Daniel Jacobowitz <dan@codesourcery.com>
12866 * doc/sourcebuild.texi (Test directives): Clarify options to
12869 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12871 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
12872 Disable cfi directives unless GCC and gas agree on using read-only
12873 .eh_frame sections for 64-bit.
12874 * configure: Regenerate.
12876 2010-03-01 Richard Guenther <rguenther@suse.de>
12878 PR tree-optimization/43220
12879 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
12880 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
12882 2010-03-01 Richard Guenther <rguenther@suse.de>
12883 Martin Jambor <mjambor@suse.cz>
12885 PR middle-end/41250
12886 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
12887 gimplified parameters.
12889 2010-03-01 Christian Bruel <christian.bruel@st.com>
12891 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
12893 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
12895 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
12897 2010-03-01 Richard Guenther <rguenther@suse.de>
12899 PR middle-end/43213
12900 * expr.c (expand_assignment): Use the alias-oracle to tell
12901 if the rhs aliases the result decl.
12903 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12906 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
12907 to sol_gt_pch_get_address.
12908 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
12909 64-bit, SPARC and x86.
12910 (sol_gt_pch_get_address): New function.
12912 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
12914 * toplev.h (inform_n, error_n): Declare.
12915 * diagnostic.c (inform_n, error_n): New function.
12917 2010-03-01 Jakub Jelinek <jakub@redhat.com>
12919 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
12920 has no rtl yet when processing local_decls, queue it and recheck
12921 if deferred stack allocation hasn't assigned it rtl.
12923 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
12925 * config/sh/sh.c (unspec_bbr_uid): New.
12926 (gen_block_redirect): Use it instead of INSN_UID.
12927 (gen_far_branch): Likewise.
12929 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
12931 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
12932 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
12934 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12936 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
12937 (Warning Options): -Wno-conversion-null is valid for
12938 Objective-C++ as well.
12939 * doc/tm.texi (Named Address Spaces): Likewise.
12940 * doc/plugins.texi (Plugins): Replace TABs with spaces.
12941 * doc/tree-ssa.texi (Tree SSA): Likewise.
12943 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
12946 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
12947 by default. Don't set the default arch for
12948 i[34567]86-*-darwin*|x86_64-*-darwin*.
12950 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
12953 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
12954 default. Set the default 32bit/64bit archs with $with_arch
12955 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
12957 2010-02-27 Richard Guenther <rguenther@suse.de>
12959 PR tree-optimization/43186
12960 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
12961 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
12962 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
12963 unroller iterations.
12965 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
12967 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
12968 required and i[34567]86-*-* targets don't support 64bit ISA.
12970 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
12973 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
12974 the same alias set.
12976 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
12978 * config.gcc: Set the default arch at least to Prescott for
12979 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
12980 if SSE math is enabled.
12982 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12984 * diagnostic.c (diagnostic_initialize): Update.
12985 (diagnostic_report_diagnostic): Test inhibit_notes_p for
12987 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
12988 (diagnostic_inhibit_notes): New.
12989 * toplev.c (process_options): inhibit notes with -fcompare-debug.
12991 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12994 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
12995 * doc/standards.texi: Likewise.
12996 * doc/extend.texi: Likewise.
12997 * doc/trouble.texi: Likewise.
12998 * doc/cppopts.texi: Likewise.
12999 * doc/install.texi: Likewise.
13000 * c.opt (std=c90,std=gnu90): New options.
13001 * c-opts.c (c_common_handle_option): Handle them.
13003 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13006 * c-decl.c (undeclared_variable): Use an informative note.
13008 2010-02-26 Richard Guenther <rguenther@suse.de>
13010 PR tree-optimization/43186
13011 * gimple.h (gimple_fold): Remove.
13012 * gimple.c (gimple_fold): Remove. Inline into single user ...
13013 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13014 Try harder for conditions.
13016 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13019 * function.c (used_types_insert): Don't skip through named pointer
13020 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13021 and it is different from the main variant's type.
13023 2010-02-26 Nick Clifton <nickc@redhat.com>
13025 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13027 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13029 * config.gcc: Support --with-fpmath=sse for x86.
13031 * config/i386/ssemath.h: New.
13033 * doc/install.texi (--with-fpmath=sse): Documented.
13035 2010-02-26 Richard Guenther <rguenther@suse.de>
13037 PR tree-optimization/43188
13038 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13039 vector types of over-aligned element type.
13041 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13044 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13045 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13047 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13049 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13051 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13053 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13054 * var-tracking.c: Include diagnostic.h.
13055 (debug_dv): New function.
13056 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13059 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13060 (add_value_chain, add_value_chains, remove_value_chain,
13061 remove_value_chains): Handle DEBUG_EXPRs.
13062 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13065 * regcprop.c (struct queued_debug_insn_change): New type.
13066 (struct value_data_entry): Add debug_insn_changes field.
13067 (struct value_data): Add n_debug_insn_changes field.
13068 (debug_insn_changes_pool): New variable.
13069 (free_debug_insn_changes, apply_debug_insn_changes,
13070 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13071 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13072 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13074 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13076 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13077 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13078 changes, call cprop_find_used_regs via note_stores.
13079 (copyprop_hardreg_forward): When copying vd from predecessor
13080 which has any queued DEBUG_INSN changes, make sure the pointers are
13081 cleared. At the end call df_analyze and then if there are any
13082 DEBUG_INSN changes queued at the end of some basic block for still
13083 live registers, apply them.
13084 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13086 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13088 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13091 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13093 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13094 targets. Set the default with_cpu/with_arch from arch/cpu.
13095 Allow x86-64 and native for with_cpu/with_arch.
13097 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13099 * ebitmap.c: Change calls to verify_popcount with calls to
13100 sbitmap_verify_popcount.
13101 (ebitmap_clear_bit): Fixed map->cacheindex test and
13102 map>cache update when bit clearing results in an empty
13105 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13108 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13109 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13110 and support both V2DF and V2DI modes.
13111 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13112 support both V2DF and V2DI modes.
13113 (general): Delete trailing whitespace from a few patterns.
13115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13116 V2DF/V2DI interleave high/low builtins.
13118 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13121 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13122 interleave high/low functions.
13124 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13126 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13127 #pragma extern_prefix.
13129 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13132 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13133 BLKmode, assert op0 is a MEM and just adjust its mode.
13136 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13137 if bitpos isn't multiple of mode's bitsize.
13139 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13141 * c.opt (-ftemplate-depth=): New.
13142 (-ftemplate-depth-): Deprecate.
13143 * optc-gen.awk: Handle -ftemplate-depth=.
13144 * opth-gen.awk: Likewise.
13145 * c-opts.c (c_common_handle_option): Likewise.
13146 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13148 2010-02-24 Jason Merrill <jason@redhat.com>
13150 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13152 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13154 * cfg.c (alloc_aux_for_block): Remove inline.
13155 (alloc_aux_for_edge): Likewise.
13157 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13159 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13161 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13163 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13164 * config/i386/sol2-gas.h: New file.
13165 * config.gcc (i[34567]86-*-solaris2*): Use it.
13167 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13170 * c-typeck.c (ep_convert_and_check): New.
13171 (build_conditional_expr): Use it.
13172 (build_binary_op): Likewise.
13174 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13176 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13179 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13180 bounds even for -O+.
13181 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13182 expr needs to have DECL_NAME set.
13184 2010-02-24 Nick Clifton <nickc@redhat.com>
13186 * config/mep/mep.c: Include gimple.h.
13187 (mep_function_uses_sp): Delete unused function.
13188 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13189 parameters. Use unsigned integers to count args. Return a
13190 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13192 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13195 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13196 greater or equal to nelt instead of 2 * nelt.
13197 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13200 2010-02-23 Jason Merrill <jason@redhat.com>
13203 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13204 in cfun->local_decls even if they have register types.
13207 * stor-layout.c (place_field): Don't warn about unnecessary
13208 DECL_PACKED if the type is packed.
13210 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13213 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13214 GOTOFF relocs, even when the base reg isn't pic pointer.
13216 2010-02-23 Michael Matz <matz@suse.de>
13219 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13220 (expand_gimple_basic_block): Generate and use debug temps if there
13221 are debug uses left after the last real use of TERed ssa names.
13222 Unlink debug immediate uses when they are expanded.
13224 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13227 * config/i386/i386.c (override_options): Reorganise to provide
13228 better error messages.
13230 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13232 PR middle-end/43083
13233 * graphite-scop-detection.c (create_single_exit_edge): Move
13234 the call to find_single_exit_edge to....
13235 (create_sese_edges): ...here. Don't handle multiple edges
13236 exiting the function.
13237 (build_graphite_scops): Don't handle multiple edges
13238 exiting the function.
13240 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13242 PR middle-end/43097
13243 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13244 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13246 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13248 PR middle-end/43026
13249 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13251 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13254 * c-typeck.c (convert_arguments): Print declaration location.
13255 * c-common.c (validate_nargs): Rename as
13256 builtin_function_validate_nargs.
13257 (check_builtin_function_arguments): Update.
13259 2010-02-22 Richard Guenther <rguenther@suse.de>
13262 * tree-inline.c (declare_return_variable): Use the type of
13263 the call stmt lhs if available.
13265 2010-02-22 Duncan Sands <baldrick@free.fr>
13267 * passes.c (register_pass): Always consider all pass lists when
13268 ref_pass_instance_number is zero.
13270 2010-02-22 Richard Guenther <rguenther@suse.de>
13272 PR tree-optimization/42749
13273 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13274 parameter. Do arithmetic in the original type.
13275 (update_accumulator_with_ops): Likewise.
13276 (adjust_accumulator_values): Adjust.
13278 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13280 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13281 (QI to BLKmode splitter): New splitter.
13283 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13285 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13286 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13288 2010-02-22 Richard Guenther <rguenther@suse.de>
13290 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13292 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13294 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13295 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13296 ($(T)crti.o, $(T)crtn.o): Remove rules.
13298 2010-02-21 Tobias Burnus <burnus@net-b.de>
13301 * doc/invoke.texi (-fassociative-math): Document that this
13302 option is automatically enabled for Fortran.
13304 2010-02-20 David S. Miller <davem@davemloft.net>
13306 * configure.ac: Test if linker and assembler properly support
13307 GOTDATA_OP relocations.
13308 * configure: Rebuild.
13309 * config.in: Likewise.
13310 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13311 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13312 (movsi_high_pic): Likewise.
13313 (movdi_lo_sum_pic): Likewise.
13314 (movdi_high_pic): Likewise.
13315 (movsi_pic_gotdata_op): New pattern.
13316 (movdi_pic_gotdata_op): Likewise.
13317 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13318 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13320 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13323 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13324 attribute to ssemul.
13325 (xop_mulv2div2di3_high): Ditto.
13327 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13330 * c.opt (Wconversion-null): New option.
13331 * doc/invoke.texi (Wconversion-null): Document.
13333 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13335 * common.opt (Wlarger-than-): Add Undocumented.
13337 2010-02-19 Mike Stump <mikestump@comcast.net>
13339 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13341 2010-02-19 Jason Merrill <jason@redhat.com>
13344 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13345 * configure: Likewise.
13347 2010-02-20 Alan Modra <amodra@gmail.com>
13349 PR middle-end/42344
13350 * cgraph.h (cgraph_make_decl_local): Declare.
13351 * cgraph.c (cgraph_make_decl_local): New function.
13352 (cgraph_make_node_local): Use it.
13353 * cgraphunit.c (cgraph_function_versioning): Likewise.
13354 * ipa.c (function_and_variable_visibility): Likewise.
13356 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13359 * except.c (sjlj_emit_function_enter): Don't call
13360 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13362 * rtl.h (add_reg_br_prob_note): Remove prototype.
13364 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13367 * c-common.c (conversion_warning): Remove widening conversions
13368 before checking the conversion of integers to reals.
13370 2010-02-19 Mike Stump <mikestump@comcast.net>
13372 PR middle-end/43125
13373 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13376 * cgraphunit.c (process_function_and_variable_attributes): Check
13377 DECL_PRESERVE_P instead of looking up attribute "used".
13378 * ipa-pure-const.c (check_decl): Likewise.
13379 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13380 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13381 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13382 instead of attribute "used".
13383 * config/sol2-c.c (solaris_pragma_init): Likewise.
13384 (solaris_pragma_fini): Likewise.
13386 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13388 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13389 Use XCNEW instead of xcalloc.
13390 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13391 XNEW instead of xmalloc.
13392 (get_fields): Use XNEWVEC instead of xmalloc.
13395 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13396 populate vars array.
13397 (create_new_general_access): For debug stmts just reset value.
13398 (get_stmt_accesses): For accesses within debug stmts just record them
13399 using add_access_to_acc_sites instead of preventing the peeling or
13400 counting them as accesses.
13402 PR middle-end/42233
13403 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13405 2010-02-19 Richard Guenther <rguenther@suse.de>
13407 PR tree-optimization/42916
13408 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13411 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
13413 * configure.ac: Replace all uses of changequote in macro arguments
13414 with proper quoting.
13416 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13418 PR middle-end/42233
13419 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13421 2010-02-19 Richard Guenther <rguenther@suse.de>
13423 PR tree-optimization/42944
13424 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13425 test for aliasing with errno.
13427 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13429 PR middle-end/42233
13430 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13431 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13432 * dojump.c: Include output.h.
13433 (inv): New inline function.
13434 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13435 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13436 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13437 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13438 argument, pass it down to other calls.
13439 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
13440 add REG_BR_PROB note to the conditional jump.
13441 * cfgexpand.c (add_reg_br_prob_note): Removed.
13442 (expand_gimple_cond): Don't call it, add the probability
13443 as last argument to jumpif_1/jumpifnot_1.
13444 * Makefile.in (dojump.o): Depend on output.h.
13445 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13447 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13448 * stmt.c (do_jump_if_equal): Likewise.
13449 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13450 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13451 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13453 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13454 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13455 jumpifnot_1 callers.
13456 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13458 (store_expr): Adjust jumpifnot caller.
13459 (store_constructor): Adjust jumpif caller.
13461 PR middle-end/42233
13462 * gimplify.c (gimple_boolify): For __builtin_expect call
13463 gimple_boolify also on its first argument.
13465 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
13467 * configure.ac (gnu-unique-object): Wrap regexps using [] in
13469 (__stack_chk_fail): Ditto. Remove quadrigraphs.
13470 * configure: Regenerated.
13472 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13474 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13475 lang_hooks.types_compatible_p instead of comptypes.
13477 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
13479 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13480 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13481 if __prefer_thumb__ is defined.
13483 2010-02-18 Martin Jambor <mjambor@suse.cz>
13485 PR tree-optimization/43066
13486 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13487 array with zero-sized element type.
13489 2010-02-18 Jakub Jelinek <jakub@redhat.com>
13491 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13492 rtx, allocate struct var_loc_node here and return it to the
13493 caller, and only if it is actually needed.
13494 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13495 move it earlier and return immediately if it returns NULL.
13497 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
13499 * config/sparc/gas.h: New file. Restore
13500 TARGET_ASM_NAMED_SECTION to its ELF default.
13501 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13502 check !HAVE_GNU_AS.
13503 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13504 Likewise. Add ATTRIBUTE_UNUSED to prototype.
13505 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13506 after sparc/sysv4.h.
13508 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
13510 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13512 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
13514 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13515 patterns from predicated pattern.
13517 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
13520 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13521 for insn mnemonic suffix.
13523 2010-02-17 Richard Guenther <rguenther@suse.de>
13525 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13528 2010-02-17 Jakub Jelinek <jakub@redhat.com>
13531 * caller-save.c (save_call_clobbered_regs): If BB ends with
13532 a DEBUG_INSN, move any notes in between last real insn and the last
13533 DEBUG_INSN after the last DEBUG_INSN.
13535 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
13537 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13538 Fix return type. Fix argument type. Explain meaning of return value.
13540 2010-02-16 Richard Guenther <rguenther@suse.de>
13542 PR tree-optimization/41043
13543 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
13544 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
13546 (vrp_visit_phi_node): ... but only for loop PHI nodes.
13548 2010-02-16 Ira Rosen <irar@il.ibm.com>
13550 PR tree-optimization/43074
13551 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
13552 * tree-vect-loop.c (vect_analyze_loop_operations): Add
13553 vectorizable cycles in hybrid SLP check.
13554 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
13556 2010-02-16 Richard Guenther <rguenther@suse.de>
13558 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
13559 (true_dependence): If memrefs_conflict_p computes must-alias
13560 trust it. Move TBAA check after offset-based disambiguation.
13561 (canon_true_dependence): Likewise.
13563 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
13565 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
13566 * doc/invoke.texi: Document it.
13567 * var-tracking.c: Include toplev.h and params.h.
13568 (vt_find_locations): Return bool indicating success. Compute
13569 hash sizes unconditionally. Check new parameter, report.
13570 (variable_tracking_main_1): Check vt_find_locations results and
13571 retry. Renamed from...
13572 (variable_tracking_main): ... this. New wrapper to preserve
13573 flag_var_tracking_assignments.
13574 * Makefile.in (var-tracking.o): Adjust dependencies.
13576 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
13577 Jakub Jelinek <jakub@redhat.com>
13580 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
13581 if weak_import attribute is present.
13582 * config/darwin.c (machopic_select_section): Likewise.
13584 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
13586 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
13587 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
13588 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
13589 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
13591 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
13594 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13595 Fix argument types.
13597 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
13598 Rewrite text to refer to the names.
13600 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
13602 * config/i386/i386-builtin-types.def
13603 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
13604 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
13605 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
13606 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
13607 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
13608 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
13609 IX86_BUILTIN_VPERMIL2PS256.
13610 (MULTI_ARG_4_DF2_DI_I): Defined.
13611 (MULTI_ARG_4_DF2_DI_I1): Defined.
13612 (MULTI_ARG_4_SF2_SI_I): Defined.
13613 (MULTI_ARG_4_SF2_SI_I1): Defined.
13614 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
13615 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
13616 __builtin_ia32_vpermil2ps256.
13617 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13618 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13619 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
13620 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13621 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13622 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
13623 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
13624 CODE_FOR_xop_vpermil2v8sf3.
13625 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
13626 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
13627 * config/i386/xopintrin.h (_mm_permute2_pd): New.
13628 (_mm256_permute2_pd): New.
13629 (_mm_permute2_ps): New.
13630 (_mm256_permute2_ps): New.
13632 2010-02-15 Nick Clifton <nickc@redhat.com>
13634 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
13635 boolean parameters. Use emit_jump_insn when emitting a pop
13636 instruction containing a return insn.
13637 (push): Use 'true' rather than '1' as second parameter to F.
13638 (h8300_expand_prologue): Likewise.
13639 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
13640 (h8300_expand_epilogue): Likewise.
13642 2010-02-15 Richard Guenther <rguenther@suse.de>
13644 PR middle-end/43068
13645 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
13648 2010-02-15 Nick Clifton <nickc@redhat.com>
13650 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
13653 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
13655 * intl.c (fake_ngettext): New function.
13656 * intl.h (fake_ngettext): Declare.
13657 (ngettext): Define macro.
13658 * collect2.c (notice_translated): New function.
13659 (main): Use notice_translated and ngettext.
13660 * collect2.h (notice_translated): Declare.
13662 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
13664 * reorg.c (delete_computation): Comment fixes.
13665 * caller-save.c (setup_save_areas): Idem.
13666 * sel-sched-dump.c (dump_lv_set): Idem.
13669 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13671 * config/s390/s390.c (s390_sched_init): New function.
13672 (TARGET_SCHED_INIT): Target hook defined.
13674 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
13675 Jack Howarth <howarth@bromo.med.uc.edu>
13676 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13679 Partial revert of unintended change in fix for PR41605.
13680 * config/darwin.h: Fix typo.
13681 * config/darwin9.h: Same.
13683 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13685 * c-pch.c (pch_init): Clear v.
13687 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13689 PR middle-end/42930
13690 * graphite-scop-detection.c (graphite_can_represent_scev): Call
13691 graphite_can_represent_init for MULT_EXPR.
13693 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13695 PR middle-end/42914
13696 PR middle-end/42530
13697 * graphite-sese-to-poly.c (remove_phi): New.
13698 (translate_scalar_reduction_to_array): Call remove_phi.
13700 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13702 PR middle-end/42771
13703 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
13704 * graphite-clast-to-gimple.h (gloog): Update declaration.
13705 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
13706 * graphite-poly.h (struct poly_bb): Add missing comments.
13707 (struct scop): Add poly_scop_p field.
13708 (POLY_SCOP_P): New.
13709 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
13710 * graphite.c (graphite_transform_loops): Build the polyhedral
13711 representation for each scop before code generation.
13712 * sese.c (rename_variables_in_operand): Removed.
13713 (rename_variables_in_expr): Return the renamed expression.
13714 (rename_sese_parameters): New.
13715 * sese.h (rename_sese_parameters): Declared.
13717 2010-02-11 Richard Guenther <rguenther@suse.de>
13719 PR tree-optimization/42998
13720 * tree-ssa-pre.c (create_expression_by_pieces): Treat
13721 POINTER_PLUS_EXPR properly.
13723 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13724 Changpeng Fang <changpeng.fang@amd.com>
13726 PR middle-end/40886
13727 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
13728 the cost of an IV candidate when the IV is used in a test against zero.
13730 * gcc.dg/tree-ssa/ivopts-3.c: New.
13732 2010-02-11 Richard Guenther <rguenther@suse.de>
13735 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
13736 pointer-vs-decl case by swapping refs. Handle some cases
13737 of pointer-vs-decl disambiguations more conservatively.
13738 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
13739 to false after expanding.
13741 2010-02-11 Richard Guenther <rguenther@suse.de>
13744 * gcc.c (process_command): Handle LTO file@offset case more
13747 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13749 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
13750 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
13752 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
13754 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
13755 if MEM's mode size isn't DWARF2_ADDR_SIZE.
13756 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
13757 Optimize eq/ne comparisons when both arguments are known to be
13759 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
13760 Don't mask operands unnecessarily if they are known to be already
13763 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
13765 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
13768 2010-02-10 Richard Guenther <rguenther@suse.de>
13770 PR tree-optimization/43017
13771 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
13772 for wrapping signed arithmetic.
13774 2010-02-10 Jakub Jelinek <jakub@redhat.com>
13777 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
13778 if no debug info should be emitted for it.
13780 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
13782 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
13783 note when flag_exceptions is set.
13785 2010-02-10 Duncan Sands <baldrick@free.fr>
13787 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
13789 2010-02-10 Richard Guenther <rguenther@suse.de>
13792 * tree.c (get_unwidened): Handle constants.
13793 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
13795 2010-02-10 Martin Jambor <mjambor@suse.cz>
13798 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
13799 check for variable argument counts independently.
13801 2010-02-10 Christian Bruel <christian.bruel@st.com>
13804 * config/sh/sh.c (find_barrier): Increase length for non delayed
13805 conditional branches.
13807 2010-02-10 Christian Bruel <christian.bruel@st.com>
13809 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
13811 2010-02-10 Jakub Jelinek <jakub@redhat.com>
13813 * builtins.c (set_builtin_user_assembler_name): Also handle
13814 ffs if int is smaller than word.
13816 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
13818 PR middle-end/42973
13819 * ira-conflicts.c (get_dup): Remove.
13820 (process_reg_shuffles): Add new parameter. Use it as an
13821 additional guard for copy generation.
13822 (add_insn_allocno_copies): Rewrite.
13824 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
13826 * common.opt (fsched2-use-traces): Preserved for backward
13828 * doc/invoke.texi: Remove the documentation about option
13829 -fsched2-use-traces.
13830 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
13831 flag_sched2_use_traces.
13832 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
13833 the backward compatibility flag section.
13835 2010-02-09 Richard Guenther <rguenther@suse.de>
13837 PR tree-optimization/43008
13838 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
13839 make HEAP variables initialized from global memory if they
13840 are not known builtin functions.
13841 (find_func_aliases): Adjust.
13843 2010-02-09 Richard Guenther <rguenther@suse.de>
13845 PR tree-optimization/43000
13846 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
13847 arithmetic manually.
13849 2010-02-08 Jakub Jelinek <jakub@redhat.com>
13851 PR tree-optimization/42931
13852 * tree-loop-linear.c (try_interchange_loops): Don't call
13853 double_int_mul if estimated_loop_iterations failed.
13855 2010-02-08 Martin Jambor <mjambor@suse.cz>
13857 PR middle-end/42898
13858 * tree-sra.c (build_accesses_from_assign): Do not mark in
13859 should_scalarize_away_bitmap if stmt has volatile ops.
13860 (sra_modify_assign): Do not process assigns piecemeal if if stmt
13863 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
13865 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
13867 2010-02-07 Adam Nemet <adambnmet@gmail.com>
13869 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
13870 before the pattern.
13872 2010-02-07 Andrew Pinski <pinskia@gmail.com>
13874 PR middle-end/42946
13875 * df-core.c (df_finish_pass): Change type of saved_flags to int.
13877 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
13879 PR middle-end/42988
13880 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
13881 to unknown_dependence.
13882 (graphite_legal_transform_dr): Handle the unknown_dependence.
13883 (graphite_carried_dependence_level_k): Same.
13885 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
13887 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
13889 2010-02-07 Richard Guenther <rguenther@suse.de>
13891 PR middle-end/42991
13892 * expr.c (get_inner_reference): Always initialize *pbitsize.
13894 2010-02-07 Richard Guenther <rguenther@suse.de>
13896 PR middle-end/42956
13897 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
13898 new ARRAY_REFs on variable size element or minimal index arrays.
13900 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
13901 gimple_fold_indirect_ref.
13903 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
13906 * arm.c (arm_override_options): Just return if the user has specified
13907 an invalid fpu name.
13909 2010-02-03 Jason Merrill <jason@redhat.com>
13912 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
13913 i386_pe_maybe_record_exported_symbol.
13915 2010-02-05 Steve Ellcey <sje@cup.hp.com>
13918 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
13919 (pa_delegitimize_address): New function.
13921 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
13923 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
13924 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
13926 2010-02-05 Richard Guenther <rguenther@suse.de>
13929 * lto-streamer-in.c (get_resolution): Deal with references
13930 to undefined functions.
13932 2010-02-05 Richard Guenther <rguenther@suse.de>
13934 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
13935 (fold_const_aggregate_ref): Likewise.
13936 (ccp_fold_stmt): Substitute loads.
13937 (maybe_fold_reference): Verify types before substituting.
13939 (fold_gimple_assign): Unshare properly.
13940 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
13942 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
13944 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
13945 for rs6000_gen_cell_microcode.
13947 2010-02-04 Richard Guenther <rguenther@suse.de>
13949 PR rtl-optimization/42952
13950 * dse.c (const_or_frame_p): Remove MEM handling.
13952 2010-02-04 Nick Clifton <nickc@redhat.com>
13954 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
13955 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13956 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
13957 (mn10300_asm_output_mi_thunk): New function.
13958 (mn10300_can_output_mu_thunk): New function.
13959 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
13960 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
13961 (FUNCTION_ARG): Delete incorrect comment.
13963 2010-02-03 Jason Merrill <jason@redhat.com>
13966 * fold-const.c (operand_equal_p): Handle erroneous types.
13968 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13970 * config/h8300/h8300.md (can_delay): Fix attibute condition.
13972 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
13974 PR rtl-optimization/42941
13975 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
13978 2010-02-03 Jason Merrill <jason@redhat.com>
13981 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
13983 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
13986 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
13987 (cselib_reset_table): Renamed from...
13988 (cselib_reset_table_with_next_value): ... this.
13989 (cselib_get_next_uid): Renamed from...
13990 (cselib_get_next_unknown_value): ... this.
13991 * cselib.c (next_uid): Renamed from...
13992 (next_unknown_value): ... this.
13993 (cselib_clear_table): Adjust.
13994 (cselib_reset_table): Adjust. Renamed from...
13995 (cselib_reset_table_with_next_value): ... this.
13996 (cselib_get_next_uid): Adjust. Renamed from...
13997 (cselib_get_next_unknown_value): ... this.
13998 (get_value_hash): Use hash.
13999 (cselib_hash_rtx): Likewise.
14000 (new_cselib_val): Adjust. Set and dump uid.
14001 (cselib_lookup_mem): Pass next_uid as hash.
14002 (cselib_subst_to_values): Likewise.
14003 (cselib_log_lookup): Dump uid.
14004 (cselib_lookup): Pass next_uid as hash. Adjust.
14005 (cselib_process_insn): Adjust.
14006 (cselib_init): Initialize next_uid.
14007 (cselib_finish): Adjust.
14008 (dump_cselib_table): Likewise.
14009 * dse.c (canon_address): Dump value uid.
14010 * print-rtl.c (print_rtx): Print value uid.
14011 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14013 (dv_uid): New function, sort of renamed from...
14014 (dv_htab_hash): ... this, reimplemented in terms of it and...
14015 (dv_uid2hash): ... this. New.
14016 (variable_htab_eq): Drop excess assertions.
14017 (tie_break_pointers): Removed.
14018 (canon_value_cmp): Compare uids.
14019 (variable_post_merge_New_vals): Print uids.
14020 (vt_add_function_parameters): Adjust.
14021 (vt_initialize): Reset table. Adjust.
14023 2010-02-03 Richard Guenther <rguenther@suse.de>
14025 PR tree-optimization/42944
14026 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14027 (call_may_clobber_ref_p_1): Likewise. Properly handle
14028 malloc and calloc clobbering errno.
14030 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14032 * doc/invoke.texi: Fix name of sched1 dump.
14034 * opts.c (decode_options): Set flag_tree_switch_conversion
14035 only conditionally on optimize >= 2.
14037 * gcse.c: Assorted comment fixes in pass description.
14039 2010-02-03 Anthony Green <green@moxielogic.com>
14041 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14042 nop padding in order to maintain alignment of storage location of
14043 target function address.
14044 (moxie_trampoline_init): Store target function address at newly
14046 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14048 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14050 2010-02-03 Richard Guenther <rguenther@suse.de>
14052 PR middle-end/42927
14053 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14055 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14057 * config.gcc: Reenable check for obsolete targets.
14058 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14059 mips-sgi-irix6.[0-4]*.
14061 2010-02-02 Nick Clifton <nickc@redhat.com>
14063 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14064 constant size of 4 as being the same as 0.
14065 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14066 can take values in the range 0..4.
14068 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14071 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14072 as _darwin10_Unwind_FindEnclosingFunction().
14073 * libgcc-libsystem.ver: New.
14075 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14078 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14079 implicitly set registers.
14081 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14083 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14084 (arm_override_options): Allow automatic selection of the thread
14085 pointer register if thumb2.
14086 (legitimize_pic_address): Improve code sequences for Thumb2.
14087 (arm_call_tls_get_addr): Likewise.
14088 (legitimize_tls_address): Likewise.
14089 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14090 (pic_load_addr_32bit): ... this. New named pattern.
14091 * thumb2.md (pic_load_addr_thumb2): Delete.
14092 (pic_load_dot_plus_four): Delete.
14093 (tls_load_dot_plus_four): New named pattern.
14095 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14098 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14099 Document fix for TLS bug.
14101 2010-01-31 Richard Guenther <rguenther@suse.de>
14103 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14104 conservatively correct.
14106 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14110 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14112 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14114 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14116 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14118 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14120 * config.gcc: Adjust order of makefile fragments for mingw targets.
14122 2010-01-31 Richard Guenther <rguenther@suse.de>
14124 PR middle-end/42898
14125 * gimplify.c (gimplify_init_constructor): For volatile LHS
14126 initialize a temporary.
14128 2010-01-31 Matthias Klose <doko@ubuntu.com>
14130 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14132 * configure: Regenerate.
14134 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14136 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14137 the same alias set and their sizes different constantness.
14138 (aliasing_component_refs_p): Revert 2009-10-24 change.
14140 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14142 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14145 2010-01-29 Richard Guenther <rguenther@suse.de>
14147 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14148 Assert we successfully updated the call.
14150 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14152 PR rtl-optimization/42889
14153 * df.h (df_set_bb_dirty_nonlr): New prototype.
14154 * df-core.c (df_set_bb_dirty_nonlr): New function.
14155 * df-scan.c (df_insn_rescan): Call it instead of
14156 df_set_bb_dirty for DEBUG_INSNs.
14158 2010-01-29 Richard Guenther <rguenther@suse.de>
14160 PR middle-end/37448
14161 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14162 quadratic behavior in most cases.
14164 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14167 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14168 in the call to gen_x86_movsicc_0_m1.
14170 2010-01-28 Richard Guenther <rguenther@suse.de>
14172 PR tree-optimization/42871
14173 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14175 2010-01-28 Richard Guenther <rguenther@suse.de>
14177 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14178 into call arguments.
14180 2010-01-28 Richard Guenther <rguenther@suse.de>
14182 PR middle-end/42883
14183 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14184 the forwarder if the destination is an EH landing pad.
14186 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14188 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14189 block list passed to gimple_duplicate_sese_tail.
14190 (parallelize_loops): Avoid parallelization when the function
14191 has_nonlocal_label.
14192 Avoid parallelization when the preheader is IRREDUCIBLE.
14193 Try to optimize when estimated_loop_iterations_int is unresolved.
14194 Add the loop's location to the dump file.
14195 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14196 (gimple_duplicate_sese_tail): Remove the check for the latch.
14197 Redirect nexits to the exit block.
14198 Remove handling of the incoming edges to the latch.
14199 Redirect the backedge from the copied latch to the exit bb.
14201 2010-01-28 Michael Matz <matz@suse.de>
14204 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14205 Wrap force_reg into a sequence, emit it before user.
14207 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14209 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14211 (arm_legacy_rev): Likewise.
14212 (thumb_legacy_rev): Likewise.
14214 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14216 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14217 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14218 on MEM's address failed, try avoid_constant_pool_reference and
14219 recurse if it returned something different.
14220 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14221 address, try avoid_constant_pool_reference and recurse if it
14222 returned something different.
14223 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14224 address and avoid_constant_pool_reference returned something
14225 different, don't set have_address.
14227 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14230 * var-tracking.c (val_store): Add modified argument, obey it.
14232 (count_uses): Move down logging of main.
14233 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14234 don't need resolution.
14235 (emit_notes_in_bb): Likewise.
14237 2010-01-27 Richard Guenther <rguenther@suse.de>
14239 PR middle-end/42878
14240 * tree-inline.c (remap_decl): Delay remapping of SSA name
14241 default definitions until we need them.
14243 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14245 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14246 (rs6000_delegitimize_address): New function.
14248 * config/s390/s390.c (s390_delegitimize_address): Call
14249 delegitimize_mem_from_attrs.
14251 PR middle-end/42874
14252 * tree-inline.c (cannot_copy_type_1): Removed.
14253 (copy_forbidden): Don't forbid copying of functions containing
14254 records/unions with variable length fields.
14256 2010-01-27 Christian Bruel <christian.bruel@st.com>
14260 * config/sh/sh.c (find_barrier): Increase length for non delayed
14261 conditional branches.
14263 2010-01-27 Matthias Klose <doko@ubuntu.com>
14265 * configure.ac (gnu-unique-object): Fix ldd version check.
14266 * configure: Regenerate.
14268 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14270 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14272 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14273 Test for HAVE_GNU_AS value.
14275 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14277 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14278 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14279 INT64_TYPE): Define.
14280 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14281 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14282 INT_LEAST64_TYPE): Define.
14283 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14284 UINT_LEAST64_TYPE): Define.
14285 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14286 INT_FAST64_TYPE): Define.
14287 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14288 UINT_FAST64_TYPE): Define.
14289 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14290 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14291 (SIG_ATOMIC_TYPE): Define.
14293 2010-01-26 Richard Guenther <rguenther@suse.de>
14295 * df-scan.c (df_scan_set_bb_info): Remove assert.
14296 (df_insn_rescan_debug_internal): Merge asserts.
14297 (df_install_ref): Likewise.
14298 (df_mark_reg): Use bitmap_set_range.
14299 (df_hard_reg_used_p): Remove assert.
14300 (df_hard_reg_used_count): Likewise.
14302 2010-01-26 Richard Guenther <rguenther@suse.de>
14304 PR rtl-optimization/42685
14305 * web.c (web_main): Ignore DEBUG_INSNs.
14307 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14309 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14311 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14312 Fix types of fndecl and arglist parameters.
14314 2010-01-26 Richard Guenther <rguenther@suse.de>
14316 PR middle-end/42806
14317 * tree-eh.c (unsplit_eh): Skip debug insns.
14319 2010-01-26 Richard Guenther <rguenther@suse.de>
14321 PR tree-optimization/42250
14322 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14324 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14327 * omp-low.c (expand_omp_sections): Only use single_pred if
14328 l2_bb is single_pred_p.
14330 2010-01-25 Christian Bruel <christian.bruel@st.com>
14333 * config/sh/sh.c (find_barrier): Increase length for non delayed
14334 conditional branches.
14335 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14337 2010-01-24 David S. Miller <davem@davemloft.net>
14339 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14340 define if not using GAS.
14341 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14342 Likewise. Delete SECTION_MERGE code, which is only applicable
14345 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14348 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14349 mangling of va_list in system headers.
14351 2010-01-23 Toon Moene <toon@moene.org>
14353 * tree-predcom.c (combine_chains): Return NULL, not false.
14355 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14357 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14358 initialization of variable res to agree with return type.
14360 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14362 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14363 * tree-sra.c: Add include of expr.h.
14365 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14367 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14368 insert the debug stmt on the single non-EH edge from the stmt.
14370 2010-01-22 Richard Henderson <rth@redhat.com>
14373 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14374 the RHS until after generate_subtree_copies has insertted its
14375 code before the current statement.
14377 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14379 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14381 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14383 2010-01-21 Martin Jambor <mjambor@suse.cz>
14385 PR tree-optimization/42585
14386 * tree-sra.c (struct access): New field grp_total_scalarization.
14387 (dump_access): Dump the new field.
14388 (should_scalarize_away_bitmap): New variable.
14389 (cannot_scalarize_away_bitmap): Likewise.
14390 (sra_initialize): Allocate new bitmaps.
14391 (sra_deinitialize): Free new bitmaps.
14392 (create_access_1): New function.
14393 (create_access): Parts moved to create_access_1.
14394 (type_consists_of_records_p): New function.
14395 (completely_scalarize_record): Likewise.
14396 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14397 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14398 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14400 (analyze_all_variable_accesses): Completely scalarize small eligible
14403 2010-01-21 Martin Jambor <mjambor@suse.cz>
14405 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14407 2010-01-21 Andrew Haley <aph@redhat.com>
14409 * gcc.c (process_command): Move lang_specific_driver before
14410 setting cc_libexec_prefix.
14412 2010-01-21 Richard Guenther <rguenther@suse.de>
14414 PR middle-end/19988
14415 * fold-const.c (negate_expr_p): Pretend only negative
14416 real constants are easily negatable.
14418 2010-01-20 Janis Johnson <janis187@us.ibm.com>
14419 Jason Merrill <jason@redhat.com>
14421 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14422 (TYPE_TRANSPARENT_AGGR): this, for union and record.
14423 * calls.c (initialize argument_information): Handle it.
14424 * c-common.c (handle_transparent_union_attribute): Use new name.
14425 * c-decl.c (finish_struct): Ditto.
14426 * c-typeck.c (type_lists_compatible_p): Ditto.
14427 (convert_for_assignment): Use new name and also handle record.
14428 * function.c (aggregate_value_p): Handle it.
14429 (pass_by_reference): Ditto.
14430 (assign_parm_data_types): Ditto.
14431 * print-tree.c (print_node): Ditto.
14432 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14433 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14434 * tree.c (first_field): New fn.
14436 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
14439 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14440 even when linking statically, for now.
14442 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14445 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14446 without a cselib val.
14447 (count_uses): Accept MO_VAL_SET with no val on stores.
14448 (add_stores): Likewise.
14450 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14452 * var-tracking.c (check_value_val): Add a compile time assertion.
14453 (dv_is_decl_p): Simplify.
14454 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14455 gcc_assert if ENABLE_CHECKING.
14457 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14460 * var-tracking.c: Include tree-flow.h.
14461 (mem_dies_at_call): New.
14462 (dataflow_set_preserve_mem_locs): Use it.
14463 (dataflow_set_remove_mem_locs): Likewise.
14464 (dump_var): Renamed from dump_variable. Adjust all callers.
14465 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
14466 * Makefile.in (var-tracking.o): Adjust deps.
14468 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
14470 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14472 2010-01-20 Richard Guenther <rguenther@suse.de>
14474 PR tree-optimization/42717
14475 * tree-ssa-dce.c (get_live_post_dom): Remove.
14476 (forward_edge_to_pdom): Take an arbitrary edge to copy
14477 degenerate PHI args from.
14478 (remove_dead_stmt): Use the first post-dominator even if it
14479 does not contain live statements as redirection destination.
14481 2010-01-20 Richard Guenther <rguenther@suse.de>
14483 * tree-inline.c (estimate_num_insns): Handle EH builtins.
14485 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14487 * sel-sched.c (create_speculation_check): Remove set but not used
14489 (try_transformation_cache): Remove set but not used variable ds.
14490 (calculate_privileged_insns): Remove set but not used variables
14491 cur_insn and min_spec_insn.
14492 (find_best_expr): Remove set but not used variable avail_n.
14493 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14495 * cgraphunit.c (assemble_thunk): Remove set but not used variable
14497 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14498 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14499 new_scop_exit_edge.
14501 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
14504 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14505 cpu types. Add support for *-sse3 cpu types.
14506 (x86_64-*-*): Ditto.
14508 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14510 PR middle-end/42803
14511 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14512 argument, call initializer_constant_valid_p_1 instead of
14513 initializer_constant_valid_p, pass CACHE to it, return NULL
14514 immediately if first call returns NULL.
14515 (initializer_constant_valid_p_1): New function.
14516 (initializer_constant_valid_p): Use it.
14518 2010-01-20 Thomas Quinot <quinot@adacore.com>
14520 * tree.def (PLACEHOLDER_EXPR): Fix comment.
14522 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14524 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14525 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14526 (loc_list_from_tree): Don't handle unsigned division. Handle
14527 signed modulo using DW_OP_{over,over,div,mul,minus}.
14528 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14529 modulo instead of signed.
14531 2010-01-20 DJ Delorie <dj@redhat.com>
14533 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14535 (h8300_emit_stack_adjustment): Propogate it.
14537 (h8300_expand_prologue): Likewise.
14538 (h8300_expand_epilogue): Likewise.
14540 2010-01-19 Michael Matz <matz@suse.de>
14542 PR tree-optimization/41783
14543 * tree-data-ref.c (toplevel): Include flags.h.
14544 (dump_data_dependence_relation): Also dump the inputs if the
14545 result will be unknown.
14546 (split_constant_offset_1): Look through some conversions.
14547 * tree-predcom.c (determine_roots_comp): Restart a new chain if
14548 the offset from last element is too large.
14549 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
14550 (reassociate_to_the_same_stmt): Handle vector registers.
14551 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
14552 (e.g. conversions).
14553 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
14554 wide_prolog_niters argument, emit widening instructions.
14555 (vect_do_peeling_for_alignment): Adjust caller, use widened
14556 variant of the iteration cound.
14557 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
14559 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14562 * config/arm/neon-testgen.m (emit_automatics): New parameter
14563 features. Adjust for Fixed_return_reg feature.
14564 (test_intrinsic): Call emit_automatics with new feature.
14565 * config/arm/neon.ml: Update copyright years.
14566 (features): New Fixed_return_reg feature.
14567 (ops): Update feature for Vget_low.
14569 2010-01-19 Jakub Jelinek <jakub@redhat.com>
14571 PR tree-optimization/42719
14572 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
14576 * fwprop.c (all_uses_available_at): Return false if def_set dest
14577 is a REG that is used in def_insn.
14579 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
14581 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
14583 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
14584 Add argument names.
14586 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
14588 * target.h (struct gcc_target) <secondary_reload>: Change type
14589 of last argument to secondary_reload_info *.
14591 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
14594 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
14595 memory references with unaligned offsets. Remove CQImode handling.
14596 (unaligned_memory_operand): Return 1 for memory references with
14597 unaligned offsets. Remove CQImode handling.
14599 2010-01-18 Richard Guenther <rguenther@suse.de>
14601 PR middle-end/39954
14602 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
14605 2010-01-18 Richard Guenther <rguenther@suse.de>
14607 PR tree-optimization/42781
14608 * tree-ssa-structalias.c (find_what_var_points_to): Skip
14609 restrict processing only if the original variable was artificial.
14611 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
14613 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
14614 find number of popped argument bytes.
14616 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
14617 Fix the text that describes the return value for invalid insns.
14619 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
14621 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
14622 Clarify what 'cost of the -dependence' is. Fix quoting.
14624 * toplev.c (default_get_pch_validity): Rename argument to "sz".
14625 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
14627 2010-01-17 Jakub Jelinek <jakub@redhat.com>
14629 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14630 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
14632 2010-01-17 Richard Guenther <rguenther@suse.de>
14634 PR middle-end/42248
14635 * function.c (split_complex_args): Take a VEC to modify.
14636 (assign_parms_augmented_arg_list): Build a VEC instead of
14637 a chain of PARM_DECLs.
14638 (assign_parms_unsplit_complex): Take a VEC of arguments.
14639 Do not fixup unmodified parms.
14640 (assign_parms): Deal with the VEC.
14641 (gimplify_parameters): Likewise.
14643 2010-01-17 Richard Guenther <rguenther@suse.de>
14645 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
14646 node existence check.
14647 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
14648 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
14649 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14650 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
14651 (gimple_execute_on_growing_pred): Likewise.
14653 2010-01-17 Richard Guenther <rguenther@suse.de>
14655 PR tree-optimization/42773
14656 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
14657 (compute_antic_aux): Likewise.
14658 (compute_partial_antic_aux): Likewise.
14660 2010-01-17 Jie Zhang <jie.zhang@analog.com>
14663 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
14666 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
14668 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
14671 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
14672 Fix markup for strict argument.
14674 (TARGET_SCHED_REORDER2): Fix argument types.
14676 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
14677 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
14679 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
14680 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
14682 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
14685 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
14686 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
14687 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
14688 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
14689 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
14691 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
14693 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
14695 (TARGET_ASM_RELOC_RW_MASK): Add return type.
14696 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
14698 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
14700 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
14703 (TARGET_ASM_NAMED_SECTION): Fix argument list.
14705 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
14706 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
14708 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
14710 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
14712 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
14713 referring to it. Fix language.
14715 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
14717 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
14719 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
14721 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
14723 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
14724 '@var{stream}. Remove stray 'and'.
14726 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
14728 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
14730 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
14732 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
14733 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
14735 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
14736 Fix description of return value.
14737 Rename argument "sz" to "len."
14739 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
14740 Clarify meaning of 'true' return value.
14742 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
14744 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
14745 rep_mode versus mode_rep.
14747 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
14749 (TARGET_BUILTIN_DECL): Fix name.
14751 (TARGET_COMMUTATIVE_P): Fix type of first argument.
14753 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
14755 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
14757 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
14759 (TARGET_RELAXED_ORDERING): Use @deftypevr.
14761 (TARGET_GET_DRAP_RTX): Note that this is a hook.
14764 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
14765 Rename argument tm_fn to md_fn.
14767 (TARGET_OPTION_PRINT): Fix argument list.
14769 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
14772 * config/i386/i386.c (ix86_fixup_binary_operands):
14773 Revert FMA4 fixup of operands.
14775 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14778 * Makefile.in (write_entries_to_file, install-plugin):
14779 Use \012 instead of \n with tr.
14781 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
14783 * configure.ac (HAVE_AS_REF): New C macro.
14784 * configure: Regenerate.
14785 * config.in: Likewise.
14786 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
14788 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
14791 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
14793 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
14795 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
14797 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
14799 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
14801 (TARGET_IN_SMALL_DATA_P): Fix argument type.
14803 (TARGET_BINDS_LOCAL_P): Fix argument type.
14805 (TARGET_ASM_FILE_END): Use prototype.
14807 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
14809 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
14811 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
14813 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
14815 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
14816 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
14818 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
14819 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
14821 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
14822 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
14823 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
14824 (TARGET_ADDR_SPACE_CONVERT): Likewise.
14826 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
14828 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
14830 (TARGET_INIT_BUILTINS): Use prototype.
14832 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
14833 Put 'const char *' in braces. Fix parameter types.
14834 (TARGET_INVALID_CONVERSION): Fix parameter types.
14835 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
14836 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
14838 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
14841 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
14843 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
14845 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
14847 * doc/tm.texi (TARGET_HELP): Fix return type.
14849 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
14850 in braces. Fix argument types.
14852 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
14854 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
14856 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
14858 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
14859 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
14861 (TARGET_MANGLE_TYPE): Fix argument types.
14863 (TARGET_IRA_COVER_CLASSES): Use prototype.
14865 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
14867 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
14869 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
14871 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
14873 (TARGET_CALLEE_COPIES): Fix argument types.
14875 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
14877 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
14879 (TARGET_FUNCTION_VALUE): Fix argument types.
14881 (TARGET_RETURN_IN_MSB): Fix argument type.
14883 (TARGET_RETURN_IN_MEMORY): Fix argument types.
14885 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
14887 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
14889 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
14890 agree with return type.
14892 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
14894 2010-01-15 Jing Yu <jingyu@google.com>
14896 PR rtl-optimization/42691
14897 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
14898 a pseudo to a constant and are merged, and adjust comments.
14900 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
14902 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
14904 2010-01-15 Richard Guenther <rguenther@suse.de>
14906 PR middle-end/42739
14907 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
14908 labels of computed or non-local gotos to the destination.
14909 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
14910 landing pad label is the first label.
14912 2010-01-15 Richard Guenther <rguenther@suse.de>
14914 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
14916 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14919 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
14920 to allow generation of the xssqrtdp instruction on power7.
14921 (sqrtdf2_fpr): Ditto.
14923 2010-01-14 Jakub Jelinek <jakub@redhat.com>
14925 PR middle-end/42674
14926 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
14927 functions with noreturn attribute.
14930 * varasm.c (declare_weak): Add weak attribute to decl if it
14931 doesn't have one already.
14932 (assemble_external): Only add decls to weak_decls if they also
14933 have weak attribute.
14935 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
14937 * var-tracking.c (var_reg_delete): Don't delete the association
14938 between REGs and values or one-part variables if the register
14941 2010-01-14 Jakub Jelinek <jakub@redhat.com>
14944 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
14945 because its first operand is a non-localized variable.
14947 2010-01-14 Martin Jambor <mjambor@suse.cz>
14949 PR tree-optimization/42706
14950 * tree-sra.c (encountered_recursive_call): New variable.
14951 (encountered_unchangable_recursive_call): Likewise.
14952 (sra_initialize): Initialize both new variables.
14953 (callsite_has_enough_arguments_p): New function.
14954 (scan_function): Call decl and flags check only for IPA-SRA, check
14955 whether there is a recursive call and whether it has enough arguments.
14956 (all_callers_have_enough_arguments_p): New function.
14957 (convert_callers): Look for recursive calls only when
14958 encountered_recursive_call is set.
14959 (ipa_early_sra): Bail out either if
14960 !all_callers_have_enough_arguments_p or
14961 encountered_unchangable_recursive_call.
14963 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14965 * sel-sched.c: Add 2010 to copyright years.
14966 * sel-sched-ir.c: Likewise.
14967 * sel-sched-ir.h: Likewise.
14969 2010-01-14 Martin Jambor <mjambor@suse.cz>
14971 PR tree-optimization/42714
14972 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
14973 constructors specially.
14975 2010-01-14 Andi Kleen <ak@linux.intel.com>
14977 * config/i386/drivers-i386.c (detect_caches_intel):
14978 Add l2sizekb parameter and fill in.
14979 (host_detect_local_cpu): Add l2sizekb, fill in.
14980 Add Atom small cache heuristic.
14982 2010-01-14 Andi Kleen <ak@linux.intel.com>
14984 * config/i386/drivers-i386.c (detect_caches_cpuid4):
14985 Add level3 parameter and fill in.
14986 (detect_caches_intel): Handle level3 cache.
14988 2010-01-14 Andi Kleen <ak@linux.intel.com>
14990 * config/i386/drivers-i386.c (host_detect_local_cpu):
14991 Fix core duo detection.
14993 2010-01-14 Andi Kleen <ak@linux.intel.com>
14995 * config/i386/drivers-i386.c (host_detect_local_cpu):
14996 Fix Atom detection.
14998 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15000 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15001 (rs6000_variable_issue_1): this. Use...
15002 (rs6000_variable_issue): here. Reimplement. Print debug info.
15004 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15006 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15007 sel_restore_notes. Update all callers. Call reemit_notes
15010 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15012 PR rtl-optimization/42246
15013 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15016 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15018 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15019 all successors is the same as number of successors in current region.
15021 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15023 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15024 to rename is not separable. Otherwise check that its LHS is not NULL.
15026 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15028 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15030 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15032 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15033 available registers when failed to discover LHS register class.
15034 Fix indentation. Update comment.
15036 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15037 Alexander Monakov <amonakov@ispras.ru>
15039 PR rtl-optimization/42389
15040 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15042 (advance_state_on_fence): Likewise.
15043 (sel_target_adjust_priority): Print debug output only when
15044 sched_verbose >= 4, not 2.
15045 (get_expr_cost): Do not issue all unique insns on the next cycle.
15046 (fill_insns): Initialize can_issue_more from the value saved
15048 * sel-sched-ir.c (flist_add): New parameter issue_more.
15049 Init FENCE_ISSUE_MORE with it.
15050 (merge_fences): Likewise.
15051 (init_fences): Update call to flist_add.
15052 (add_to_fences, add_clean_fence_to_fences)
15053 (add_dirty_fence_to_fences): Likewise.
15054 (move_fence_to_fences): Update call to merge_fences.
15055 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15057 * sel-sched-ir.h (struct _fence): New field issue_more.
15058 (FENCE_ISSUE_MORE): New accessor macro.
15060 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15062 PR rtl-optimization/42388
15063 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15064 that have no predecessors nor successors. Do not call move_bb_info
15065 for empty blocks outside of current region.
15067 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15069 PR rtl-optimization/42294
15070 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15071 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15072 originators' originators.
15074 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15076 PR rtl-optimization/39453
15077 PR rtl-optimization/42246
15078 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15080 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15082 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15083 Alexander Monakov <amonakov@ispras.ru>
15085 PR middle-end/42245
15086 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15087 (maybe_tidy_empty_bb): ... here. Make static. Add new
15088 argument. Update all callers.
15089 (tidy_control_flow): ... and here. Recompute topological order
15090 of basic blocks in region if necessary.
15091 (sel_redirect_edge_and_branch): Change return type. Return true
15092 if topological order might have been invalidated.
15093 (purge_empty_blocks): Export and move from...
15094 * sel-sched.c (purge_empty_blocks): ... here.
15095 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15096 (maybe_tidy_empty_bb): Delete prototype.
15097 (purge_empty_blocks): Declare.
15099 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15101 PR rtl-optimization/42249
15102 * sel-sched.c (try_replace_dest_reg): When chosen register
15103 and original register is the same, do not bail out early, but
15104 still check all original insns for validity of replacing destination
15105 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15108 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15111 Port from no-undefined-overflow branch:
15112 2009-03-09 Richard Guenther <rguenther@suse.de>
15114 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15116 2010-01-14 Richard Guenther <rguenther@suse.de>
15119 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15121 2010-01-14 Ira Rosen <irar@il.ibm.com>
15123 PR tree-optimization/42709
15124 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15125 as scalar type in creation of constant vector operand.
15127 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15130 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15131 (check-parallel-%): Match `testsuite' directory component only
15134 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15136 PR translation/39521
15137 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15140 2010-01-13 Richard Guenther <rguenther@suse.de>
15142 PR tree-optimization/42730
15143 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15146 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15149 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15150 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15153 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15155 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15156 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15157 ___umulsi3_highpart.
15159 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15160 rather than schedule_insns if the pass is enabled.
15162 2010-01-13 Martin Jambor <mjambor@suse.cz>
15164 PR tree-optimization/42704
15165 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15168 2010-01-13 Martin Jambor <mjambor@suse.cz>
15170 PR tree-optimization/42703
15171 * tree-sra.c (analyze_access_subtree): Check that we can build a
15172 reference to the original data within the aggregate.
15174 2010-01-13 Richard Guenther <rguenther@suse.de>
15176 PR tree-optimization/42705
15177 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15179 2010-01-13 Richard Guenther <rguenther@suse.de>
15181 PR middle-end/42716
15182 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15184 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15187 * var-tracking.c (values_to_unmark): New variable.
15188 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15189 values_to_unmark vector. Moved body to...
15190 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15191 instead queue it into values_to_unmark vector.
15192 (vt_find_locations): Free values_to_unmark vector.
15194 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15196 * config/s390/s390.c (override_options): Set
15197 default of max-pending-list-length to 256
15199 2010-01-13 Richard Guenther <rguenther@suse.de>
15202 * tree-pass.h (PROP_gimple_lcx): New.
15203 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15204 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15205 before the final cleanup_eh.
15206 (dump_properties): Dump PROP_gimple_lcx.
15207 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15208 (tree_lower_complex_O0): Remove.
15209 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15210 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15211 tree_lower_complex, schedule TODO_update_ssa.
15212 * lto-streamer-out.c (output_function): Stream the functions
15214 * lto-streamer-in.c (input_function): Likewise.
15215 (lto_read_body): Do not override them here.
15217 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15220 * c-typeck.c (build_c_cast): Fold value cast to union type before
15221 wrapping it in a CONSTRUCTOR.
15223 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15225 PR rtl-optimization/42699
15226 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15229 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15231 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15232 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15233 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15234 SUBTARGET_WARN_UNUSED_SPEC): ... here
15235 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15237 2010-01-12 Julian Brown <julian@codesourcery.com>
15239 * config/arm/neon-schedgen.ml (Utils): Don't try to
15240 open missing module.
15241 (find_with_result): New.
15243 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15246 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15247 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15249 PR tree-optimization/42645
15250 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15251 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15252 decl_map, set processing_debug_stmt to -1 and return name without
15255 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15257 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15258 binutils version, and reword target configuration description.
15260 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15262 * config/avr/avr.h (LINKER_NAME): Remove.
15264 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15267 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15268 that support VSX, warn for -mno-altivec if vsx is not disabled,
15271 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15272 Shujing Zhao <pearly.zhao@oracle.com>
15274 PR translation/42469
15275 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15276 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15277 character between option name and help text.
15278 * c.opt (imultilib): Likewise.
15280 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15282 * lto-streamer-out.c (output_unreferenced_globals): Output static
15285 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15287 PR rtl-optimization/42621
15288 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15289 optimizing for size.
15290 (duplicate_computed_gotos): Remove now-redundant check.
15292 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15295 * configure.ac: Save and restore LDFLAGS and LIBS
15296 * configure: Regenerate.
15298 2010-01-10 Richard Guenther <rguenther@suse.de>
15300 PR middle-end/42667
15301 * builtins.c (fold_builtin_strlen): Add type argument and
15302 convert the resulting length to it.
15303 (fold_builtin_1): Adjust.
15305 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15307 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15308 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15310 (num_insns_constant_wide): Adjust for that change.
15312 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15315 * web.c (union_defs): Add used argument, to combine uses of
15316 uninitialized regs.
15317 (entry_register): Adjust type and tests of used argument.
15318 (web_main): Widen used for new use. Pass it to union_defs.
15319 * df.h (union_defs): Adjust prototype.
15321 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15324 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15325 uses in new incoming argument. Free body.
15326 (reset_debug_uses_in_loop): New.
15327 (analyze_insn_to_expand_var): Call the latter if the former found
15328 anything. Fix whitespace. Reject invalid dest overlaps before
15329 going through all insns in the loop.
15331 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15334 * haifa-sched.c (dying_use_p): Debug insns don't count.
15336 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15338 PR middle-end/42363
15339 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15340 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15341 (verify_gimple_call): Reject LHS in noreturn calls.
15343 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15347 * tree-vect-loop-manip.c (adjust_info): New type.
15348 (adjust_vec): New pointer to vector.
15349 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15350 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15351 (slpeel_update_phis_for_duplicate_loop): Use them.
15352 (slpeel_update_phi_nodes_for_guard1): Likewise.
15353 (slpeel_update_phi_nodes_for_guard2): Likewise.
15354 (slpeel_tree_peel_loop_to_edge): Likewise.
15355 (vect_update_ivs_after_vectorizer): Likewise.
15357 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15359 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15360 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15362 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15364 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15365 bogus uninitialized warning.
15367 2010-01-09 Richard Guenther <rguenther@suse.de>
15369 PR middle-end/42512
15370 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15371 the evolution is compatible with the initial condition.
15373 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15375 * gcc.c (process_command): Update copyright notice dates.
15376 * gcov.c (print_version): Likewise.
15377 * gcov-dump.c (print_version): Likewise.
15378 * mips-tfile.c (main): Likewise.
15379 * mips-tdump.c (main): Likewise.
15381 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15384 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15386 (rotlhi3_8): Delete.
15388 (rotlsi3_8): Delete.
15389 (rotlsi3_16): Delete.
15390 (rotlsi3_24): Delete.
15391 (rotl<mode>3): New.
15392 (*rotw<mode>3): New.
15393 (*rotb<mode>3): New.
15394 * config/avr/avr.c (avr_rotate_bytes): New function.
15395 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15397 2010-01-08 Steve Ellcey <sje@cup.hp.com>
15400 * configure.ac: Modify -rdynamic check.
15401 * configure: Regenerate.
15403 2010-01-08 DJ Delorie <dj@redhat.com>
15405 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15406 register popping order.
15408 2010-01-08 Richard Guenther <rguenther@suse.de>
15411 * c.opt (fsigned-char): Also let LTO handle this option.
15412 (funsigned-char): Likewise.
15414 2010-01-07 Richard Guenther <rguenther@suse.de>
15416 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15417 (gimple_op): Likewise.
15418 (gimple_op_ptr): Likewise.
15419 (gimple_assign_set_lhs): Remove gcc_assert.
15420 (gimple_assign_set_rhs1): Likewise.
15421 (gimple_assign_set_rhs2): Likewise.
15422 (gimple_call_set_lhs): Likewise.
15423 (gimple_call_set_fn): Likewise.
15424 (gimple_call_set_fndecl): Likewise.
15425 (gimple_call_fndecl): Likewise.
15426 (gimple_call_return_type): Likewise.
15427 (gimple_call_set_chain): Likewise.
15428 (gimple_call_num_args): Likewise.
15429 (gimple_call_set_arg): Likewise.
15430 (gimple_cond_set_code): Likewise.
15431 (gimple_cond_set_lhs): Likewise.
15432 (gimple_cond_set_rhs): Likewise.
15433 (gimple_cond_set_true_label): Likewise.
15434 (gimple_cond_set_false_label): Likewise.
15435 (gimple_label_set_label): Likewise.
15436 (gimple_goto_set_dest): Likewise.
15437 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15438 (gimple_debug_bind_get_value): Likewise.
15439 (gimple_debug_bind_get_value_ptr): Likewise.
15440 (gimple_debug_bind_set_var): Likewise.
15441 (gimple_debug_bind_set_value): Likewise.
15442 (gimple_debug_bind_reset_value): Likewise.
15443 (gimple_debug_bind_has_value_p): Likewise.
15444 (gimple_return_retval_ptr): Remove gcc_assert.
15445 (gimple_return_retval): Likewise.
15446 (gimple_return_set_retval): Likewise.
15447 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15448 (safe_referenced_var_iterator): Remove.
15449 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15450 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15451 (fill_referenced_var_vec): Remove.
15452 (first_readonly_imm_use): Remove redundant gcc_assert.
15453 (phi_arg_index_from_use): Combine gcc_asserts.
15454 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15455 (first_imm_use_stmt): Remove redundant gcc_assert.
15456 * tree-cfg.c (verify_gimple_call): Verify function and chain
15457 operands. Verify arguments.
15458 (verify_types_in_gimple_stmt): Verify condition code and labels.
15460 2010-01-07 Richard Guenther <rguenther@suse.de>
15462 PR tree-optimization/42641
15463 * sese.c (rename_map_elt_info): Use the SSA name version, do
15466 2010-01-07 Jakub Jelinek <jakub@redhat.com>
15468 PR tree-optimization/42625
15469 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15470 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15472 2010-01-07 Duncan Sands <baldrick@free.fr>
15474 * Makefile.in (PLUGIN_HEADERS): Add version.h.
15476 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
15479 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15480 note itself is not function_invariant_p.
15482 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
15484 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15485 Do not add the DF_NOTE problem.
15486 * store-motion.c (execute_rtl_store_motion): Likewise.
15488 2010-01-07 Martin Jambor <mjambor@suse.cz>
15490 PR tree-optimization/42157
15491 * tree-sra.c (compare_access_positions): Stabilize sort if both
15492 accesses have integer types, return zero immediately if they are the
15495 2010-01-06 Richard Henderson <rth@redhat.com>
15497 PR middle-end/41883
15498 * haifa-sched.c (add_to_note_list): Merge into ...
15499 (concat_note_lists): ... here, and ...
15500 (unlink_other_notes, rm_other_notes): Merge into...
15501 (remove_notes): ... here. Create REG_SAVE_NOTEs for
15502 NOTE_INSN_EPILOGUE_BEG.
15504 2010-01-06 Richard Guenther <rguenther@suse.de>
15506 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15507 not inline regular functions into always-inline functions.
15509 2010-01-06 Nick Clifton <nickc@redhat.com>
15511 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15512 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15514 (OVERRIDE_OPTIONS): Delete.
15515 (OPTIMIZATION_OPTIONS): Define.
15516 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15517 * config/rx/rx.c (rx_handle_option): Issue an error message if
15518 -mcpu=rx200 and -fpu are used together.
15519 (rx_set_optimization_options): New function. Issue an error
15520 message if an optimization attribute attempts to reset the FPU/
15521 math optimization pairing.
15522 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15523 * config/rx/rx.opt: Set the default to 32-bit doubles.
15524 * config/rx/t-rx: Add multilibs for -nofpu option.
15525 * doc/invoke.texi: Update documentation of RX options.
15527 2010-01-06 Richard Guenther <rguenther@suse.de>
15529 * tree-ssa-pre.c (name_to_id): New global.
15530 (alloc_expression_id): Simplify SSA name handling.
15531 (lookup_expression_id): Likewise.
15532 (init_pre): Zero name_to_id.
15533 (fini_pre): Free it.
15535 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
15537 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15539 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
15542 * config/i386/sse.md (smaxv2di3): New.
15543 (umaxv2di3): Likewise.
15544 (sminv2di3): Likewise.
15545 (uminv2di3): Likewise.
15547 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
15550 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
15551 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
15552 (legitimize_tls_address): Likewise.
15553 (sparc_tls_referenced_p): Likewise.
15554 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
15555 and adjust calls to legitimize_pic_address.
15556 (legitimate_constant_p) Use sparc_tls_referenced_p.
15557 (legitimate_pic_operand_p): Likewise.
15558 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
15559 (sparc_tls_symbol_ref_1): Delete.
15560 (sparc_tls_referenced_p): Make static, recognize specific patterns.
15561 (legitimize_tls_address): Make static, handle CONST patterns.
15562 (legitimize_pic_address): Make static, remove unused parameter and
15563 adjust recursive calls.
15564 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
15565 and adjust call to legitimize_pic_address.
15566 (sparc_output_mi_thunk): Likewise.
15568 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
15569 H.J. Lu <hongjiu.lu@intel.com>
15572 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
15573 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
15574 operands to make them signed.
15577 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15580 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15581 GTU to GT for V4SI and V2DI.
15583 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15584 (umin<mode>3): Removed.
15586 (uminv4si3): Likewise.
15588 2010-01-05 Martin Jambor <mjambor@suse.cz>
15590 PR tree-optimization/42462
15591 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
15592 current_function_decl to helper functions and macros.
15594 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15597 * flags.h: Don't include real.h.
15598 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
15599 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
15600 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
15601 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
15602 * dominance.c: Update copyright.
15603 * gimple.c (walk_gimple_op): Remove inline.
15604 * tree-ssa-reassoc.c: Include real.h.
15605 * Makefile.in (FLAGS_H): Remove $(REAL_H).
15606 (tree-ssa-reassoc.o): Depend on $(REAL_H).
15608 2010-01-05 Nick Clifton <nickc@redhat.com>
15610 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
15611 register to push into the stack frame when the accumulator has to
15612 be saved during interrupts.
15614 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
15616 * doc/invoke.texi: Remove the documentation about option
15617 -Wunreachable-code.
15618 * common.opt (Wunreachable-code): Preserved for backward
15620 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
15621 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
15622 the backward compatibility flag section.
15624 2010-01-05 Richard Guenther <rguenther@suse.de>
15626 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
15628 2010-01-05 Jakub Jelinek <jakub@redhat.com>
15631 * cfgexpand.c (expand_one_var): Diagnose too large variables.
15633 PR tree-optimization/42508
15634 * tree-sra.c (convert_callers): Check for recursive call
15635 by comparing cgraph nodes instead of decls.
15636 (modify_function): Call ipa_modify_formal_parameters also
15637 on all same_body aliases.
15639 * cgraphunit.c (cgraph_materialize_all_clones): Compare
15640 cgraph nodes when checking for same_body aliases.
15642 2010-01-05 Richard Guenther <rguenther@suse.de>
15644 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
15645 allocation and lookup.
15646 (get_or_alloc_expr_for_constant): Likewise.
15647 (phi_translate): Sink allocation.
15649 2010-01-04 Richard Guenther <rguenther@suse.de>
15651 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
15652 a new entry only if needed.
15653 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
15654 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
15656 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
15658 (phi_translate): Handle CONSTANTs early.
15660 2010-01-04 Martin Jambor <mjambor@suse.cz>
15662 PR tree-optimization/42398
15663 * tree-sra.c (struct access): Removed flag grp_different_types.
15664 (dump_access): Do not dump the removed flag.
15665 (sort_and_splice_var_accesses): Do not set the removed flag.
15666 (sra_modify_expr): Check for type compatibility directly.
15668 2010-01-04 Martin Jambor <mjambor@suse.cz>
15670 PR tree-optimization/42366
15671 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
15672 edges with variable number of parameters.
15673 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
15674 flag instead of asserting it.
15675 (ipa_read_node_info): Read uses_analysis_done flag.
15677 2010-01-04 Richard Guenther <rguenther@suse.de>
15679 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
15680 iterative_hash_* as intended.
15681 (vn_reference_compute_hash): Likewise. Simplify hashing
15683 (vn_reference_lookup_2): Likewise.
15684 (vn_nary_op_compute_hash): Likewise.
15685 (vn_phi_compute_hash): Likewise.
15686 (expressions_equal_p): Remove strange code.
15687 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
15688 (pre_expr_hash): Likewise. Simplify hashing SSA names.
15689 (bitmap_insert_into_set_1): Take value-id as parameter.
15690 (add_to_value): Pass it.
15691 (bitmap_insert_into_set): Likewise.
15692 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
15694 2010-01-04 Jakub Jelinek <jakub@redhat.com>
15697 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
15698 (do_self_spec): For switches with SWITCH_IGNORE set set also
15699 SWITCH_IGNORE_PERMANENTLY.
15700 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
15703 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
15705 * lto-streamer-out.c (output_unreferenced_globals): Output the full
15706 tree of an unreferenced global var.
15708 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15711 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15712 GTU to GT for V4SI and V2DI.
15714 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15715 (umin<mode>3): Removed.
15717 (uminv4si3): Likewise.
15719 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15722 * collect2.c (main): Turn on trace in collect2 if -v is passed
15725 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
15727 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
15728 description of expression operand.
15730 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
15732 * configure.ac: Add install-html to target_list for Make-hooks.
15733 * configure: Regenerate.
15734 * fortran/Make-lang.in (F95_HTMLFILES): New.
15735 (fortran.html): Use it.
15736 (fortran.install-html): New.
15737 * Makefile.in (install-html): Add lang.install-html.
15738 * java/Make-lang.in (JAVA_HTMLFILES): New.
15739 (java.html): Use it.
15740 (java.install-html): New.
15741 * objc/Make-lang.in (objc.install-html): New.
15742 * objcp/Make-lang.in (obj-c++.install-html): New.
15743 * cp/Make-lang.in (c++.install-html): New.
15744 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
15745 * lto/Make-lang.in (lto.install-html): New.
15747 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
15750 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
15752 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
15754 PR rtl-optimization/41862
15755 * store-motion.c (store_killed_in_insn, compute_store_table,
15756 remove_reachable_equiv_notes, replace_store_insn,
15757 build_store_vectors): Ignore all DEBUG_INSNs.
15759 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
15762 * common.opt: Add dumpdir.
15764 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
15766 (option_map): Add --dumpdir.
15768 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
15770 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
15772 * opts.c (decode_options): Try dump_dir_name first if
15773 dump_base_name isn't an absolute path.
15774 (common_handle_option): Handle OPT_dumpdir.
15776 * toplev.c (dump_dir_name): New.
15777 (print_switch_values): Also ignore -dumpdir.
15779 * toplev.h (dump_dir_name): New.
15781 2010-01-03 Richard Guenther <rguenther@suse.de>
15783 PR tree-optimization/42589
15784 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
15785 double-word expansion of bswap32.
15787 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
15789 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
15790 with BLOCK_FOR_INSN.
15791 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
15792 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
15793 noce_process_if_block): Likewise.
15794 * gcse.c (compute_local_properties, insert_expr_in_table,
15795 insert_set_in_table, canon_list_insert, find_avail_set,
15796 pre_insert_copy_insn): Likewise.
15798 * basic-block.h (BLOCK_NUM): Move from here...
15799 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
15801 2010-01-03 Richard Guenther <rguenther@suse.de>
15803 PR tree-optimization/42438
15804 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
15805 contains_may_not_return_call flag.
15806 (BB_MAY_NOTRETURN): New.
15807 (valid_in_sets): Trapping nary operations are not valid
15808 in blocks that may not return.
15809 (insert_into_preds_of_block): Remove check for trapping expressions.
15810 (compute_avail): Compute also BB_MAY_NOTRETURN.
15812 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
15814 * doc/invoke.texi: Add 2010 to copyright years.
15816 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
15818 * config/sparc/sparc.c: Fix formatting nits.
15820 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15821 Alexander Monakov <amonakov@ispras.ru>
15823 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
15825 2010-01-02 Richard Guenther <rguenther@suse.de>
15827 PR middle-end/42577
15828 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
15829 (simplify_switch_using_ranges): Mark to be removed edges
15832 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15834 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
15836 * collect2.c (scan_libraries): Add missing argument in call to
15839 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
15842 * config/alpha/predicates.md (aligned_memory_operand): Return false
15844 (unaligned_memory_operand): Return true for CQImode.
15845 * config/alpha/alpha.c (get_aligned_mem): Assert that location
15846 doesn not cross aligned SImode word boundary.
15848 2010-01-02 Anatoly Sokolov <aesok@post.ru>
15850 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
15852 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
15853 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
15855 2010-01-02 Richard Guenther <rguenther@suse.de>
15858 * toplev.c (compile_file): Emit LTO marker properly. Change
15859 it to __gnu_lto_v1.
15860 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
15862 2010-01-01 Richard Guenther <rguenther@suse.de>
15865 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
15867 2010-01-01 Richard Guenther <rguenther@suse.de>
15870 * c-decl.c (grokdeclarator): For zero-size arrays force
15871 structural equality checks as layout_type does.
15873 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
15875 * builtins.c: Update copyright to 2010.
15877 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
15880 * lto-streamer-out.c (produce_asm): Revert the last change.
15881 (copy_function): Likewise.
15883 * lto-streamer.c (lto_get_section_name): Skip any leading
15886 2010-01-01 Richard Guenther <rguenther@suse.de>
15888 PR middle-end/42559
15889 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
15893 Copyright (C) 2010 Free Software Foundation, Inc.
15895 Copying and distribution of this file, with or without modification,
15896 are permitted in any medium without royalty provided the copyright
15897 notice and this notice are preserved.