1 2010-06-22 Jan Hubicka <jh@suse.cz>
3 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n, df_live_confluence_n,
4 df_byte_lr_confluence_n, df_md_confluence_n): Return true if something changed.
5 * df.h (df_confluence_function_n): Return bool.
6 * df-core.c (df_worklist_propagate_forward, df_worklist_propagate_backward):
7 track changes and ages.
8 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
10 * dse.c (dse_confluence_n): Return always true.
12 2010-06-22 Jan Hubicka <jh@suse.cz>
14 * bitmap.c (bitmap_clear_bit): Micro optimize.
16 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
18 * config/i386/i386.md (SWI1248x): New mode iterator.
23 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
24 SWI1248x mode iterator.
25 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
26 using SWI124 mode iterator.
27 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
29 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
30 *pushdi2_prologue_rex64 using P mode iterator.
31 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
32 using SWI48 mode iterator.
33 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
34 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
35 using SWI1248x mode iterator.
36 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
37 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
39 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
41 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
42 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
44 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
46 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
47 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
49 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
51 (mov<mode>_insn_1): New expander.
52 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
53 using SWI48x mode iterator.
55 (*movoi_internal_avx): Rename from *movoi_internal.
56 (*movti_internal_rex64): Rename from *movti_rex64.
57 (*movti_internal_sse): Rename from *movti_sse.
58 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
59 (*movdi_internal): Rename from *movdi_2.
60 (*movsi_internal): Rename from *movsi_1.
61 (*movhi_internal): Rename from *movhi_1.
62 (*movqi_internal): Rename from *movqi_1.
64 (insv): Update the call to gen_movsi_insv_1 for rename.
65 * config/i386/i386.c (promote_duplicated_reg): Ditto.
67 2010-06-22 Jan Hubicka <jh@suse.cz>
69 * passes.c (execute_function_todo): Move call of statistics_fini_pass
71 (execute_todo) ... this one.
73 2010-06-22 Alan Modra <amodra@gmail.com>
76 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
77 * caller-save.c (insert_restore, insert_save): Use non-validate
78 form of adjust_address.
80 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
83 * config/pa/pa.c (override_options): Disable
84 -freorder-blocks-and-partition.
86 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
89 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
91 * config/i386/i386.md (type): Add sseishft1
93 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
94 (ppro_insn_load): Likewise.
95 (ppro_insn_store): Likewise.
96 (ppro_insn_both): Likewise.
98 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
99 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
101 (*vec_extractv2di_1_avx): Likewise.
102 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
103 type. Remove atom_unit.
104 (*vec_extractv2di_1_sse2): Likewise.
106 2010-06-21 DJ Delorie <dj@redhat.com>
108 * diagnostic.h (diagnostic_classification_change_t): New.
109 (diagnostic_context): Add history and push/pop list.
110 (diagnostic_push_diagnostics): Declare.
111 (diagnostic_pop_diagnostics): Declare.
112 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
113 from pragmas in a history chain instead of the global table.
114 (diagnostic_push_diagnostics): New.
115 (diagnostic_pop_diagnostics): New.
116 (diagnostic_report_diagnostic): Scan history chain to find state
117 of diagnostics as of the diagnostic location.
118 * opts.c (set_option): Pass UNKNOWN_LOCATION to
119 diagnostic_classify_diagnostic.
120 (enable_warning_as_error): Likewise.
121 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
122 use in the history chain.
123 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
124 allow these pragmas anywhere.
125 * doc/extend.texi: Document pragma GCC diagnostic changes.
127 2010-06-21 Jakub Jelinek <jakub@redhat.com>
129 * dwarf2out.c (add_linkage_name): New function. Don't add
130 anything to DW_TAG_member DIEs.
131 (add_name_and_src_coords_attributes): Use it.
132 (gen_variable_die): Call it for C++ static data members if
133 specification is DW_TAG_member.
135 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
136 C++ char16_t and char32_t.
138 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
139 * genattrtab.c: Include vecprim.h.
140 (cached_attrs, cached_attr_count, attrs_seen_once,
141 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
142 attrs_cached_after): New variables.
143 (find_attrs_to_cache): New function.
144 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
145 (write_test_expr): Add attrs_cached argument, return it too,
146 attempt to cache non-const attributes used more than once in
147 a single case handling.
148 (write_attr_get): Use find_attrs_to_cache, for caching candidates
149 emit cached_* variables. Adjust write_attr_set callers.
150 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
151 to find attributes that should be cached in this block. Adjust
152 write_test_expr callers.
153 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
155 (make_automaton_attrs): Adjust write_test_expr caller.
157 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
158 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
159 (make_automaton_attrs): If find_tune_attr returns non-NULL,
160 write separate internal_dfa_insn_code_* and insn_default_latency_*
161 functions for each attribute's value and emit init_sched_attrs
162 function and function pointers.
163 * genattr.c (const_attrs, reservations): New variables.
164 (gen_attr): Add const attributes to const_attrs vector.
165 (check_tune_attr, find_tune_attr): New functions.
166 (main): Add reservations to reservations vector. If find_tune_attr
167 returns true, add prototype for init_sched_attrs and make
168 internal_dfa_insn_code and insn_default_latency function pointers,
169 otherwise define init_sched_attrs as dummy macro.
170 * cfgexpand.c: Include insn-attr.h.
171 (gimple_expand_cfg): Call init_sched_attrs.
173 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
176 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
177 va_arg from a set of register save slots into a temporary,
178 if the container is bigger than type size, do the copying
179 using smaller mode or using memcpy.
182 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
184 (sel_print_to_dot): Remove macro.
185 (sel_print): Likewise. New prototype.
186 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
187 (sel_print): New function.
189 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
191 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
192 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
194 2010-06-21 Nick Clifton <nickc@redhat.com>
196 * config/rx/rx.h (PTRDIFF_TYPE): Define.
197 (SMALL_REGISTER_CLASS): Define (to zero).
198 (PRINT_OPERAND): Delete.
199 (PRINT_OPERAND_ADDRESS): Delete.
200 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
201 (rx_print_operand_address): Delete prototype.
202 * config/rx/rx.c (rx_print_operand): Make static.
203 Allow %H and %L to handle CONST_DOUBLEs.
204 (rx_print_operand_address): Make static.
205 (rx_gen_move_template): Rename local variable 'template' to
207 (rx_function_arg): Do not pass unknown sized objects in registers.
208 (TARGET_PRINT_OPERAND): Define.
209 (TARGET_PRINT_OPERAND_ADDRESS): Define.
211 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
213 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
215 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
217 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
218 stack-alignment for simple leaf-functions.
220 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
222 * doc/install.texi: Document bootstrap-lto.
224 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
227 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
228 (input_function): Drop them here, if VTA is disabled.
230 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
233 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
235 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
236 ix86_swapped_fp_comparsion_operator instead of
237 ix86_fp_comparison_operator.
239 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
240 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
241 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
242 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
243 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
244 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
246 2010-06-20 Joseph Myers <joseph@codesourcery.com>
249 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
250 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
251 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
252 (decode_cmdline_option): Update for this return value. Set
253 orig_option_with_args_text field. Set arg field for unknown
254 options. Make static.
255 (decode_cmdline_options_to_array): New.
256 (prune_options): Update handling of find_opt return value.
257 * opts.c (read_cmdline_option): Take decoded option. Return void.
258 (read_cmdline_options): Take decoded options.
259 (decode_options): Add parameters for decoded options. Use
260 decode_cmdline_options_to_array. Use decoded options for -O
261 scan. Use integral_argument for -O parameters. Update call to
262 read_cmdline_options.
263 (enable_warning_as_error): Update handling of find_opt return value.
264 * opts.h: Update comment on unknown options.
265 (struct cl_decoded_option): Update comments on opt_index and arg.
266 Add orig_option_with_args_text.
267 (decode_cmdline_option): Remove.
268 (decode_cmdline_options_to_array): Declare.
269 (decode_options): Update prototype.
270 * toplev.c (save_argv): Remove.
271 (save_decoded_options, save_decoded_options_count): New.
272 (read_integral_parameter): Remove.
273 (print_switch_values): Use decoded options.
274 (toplev_main): Don't set save_argv. Update call to decode_options.
275 * toplev.h (read_integral_parameter): Remove.
276 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
278 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
281 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
283 * constraints.md (Pw, Px): New constraints.
284 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
286 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
288 * config/i386/sse.md (fma4modesuffixf4): Removed.
289 (ssemodesuffixf2s): Likewise.
290 (ssemodesuffixf4): Likewise.
291 (ssemodesuffixf2c): Likewise.
292 (ssescalarmodesuffix2s): Likewise.
293 (avxmodesuffixf2c): Likewise.
294 (ssemodesuffix): New.
295 (ssescalarmodesuffix): Likewise.
296 Update patterns with ssemodesuffix and ssescalarmodesuffix.
298 2010-06-19 Philip Herron <herron.philip@googlemail.com>
300 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
302 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
304 * stor-layout.c (debug_rli): Remove unused local variables.
306 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
308 PR rtl-optimization/40900
309 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
310 original expression for later reuse.
311 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
312 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
314 2010-06-18 Anatoly Sokolov <aesok@post.ru>
316 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
317 double_int_fits_in_uhwi_p): Implement as static inline.
318 (double_int_xor): New inline function.
319 (double_int_lrotate, double_int_rrotate, double_int_max,
320 double_int_umax, double_int_smax, double_int_min, double_int_umin,
321 double_int_smin): Declare.
322 (lrotate_double, rrotate_double): Remove declaration.
323 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
324 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
325 (double_int_lrotate, double_int_rrotate, double_int_max,
326 double_int_umax, double_int_smax, double_int_min, double_int_umin,
327 double_int_smin): New function.
328 * fold-const.c (int_const_binop): Clean up, use double_int_*
330 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
331 double_int_* and immed_double_int_const functions.
333 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
335 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
336 * function.c (types_used_by_cur_var_decl): Likewise.
337 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
339 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
341 * tree.h (record_layout_info): Change type of pending_statics field
343 * stor-layout.c (start_record_layout): Store NULL into
345 (debug_rli): Call debug_vec_tree instead of debug_tree.
346 (place_field): Likewise.
347 (finish_record_layout): Likewise.
349 2010-06-18 Alan Modra <amodra@gmail.com>
351 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
353 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
356 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
357 for SET source operand from SET destination operand.
359 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
361 PR rtl-optimization/39871
362 * reload1.c (init_eliminable_invariants): For flag_pic, disable
363 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
364 (function_invariant_p): Rule out a plus of frame or arg pointer with
366 * ira.c (find_reg_equiv_invariant_const): Likewise.
368 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
370 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
371 print_operand_address and puts to output the operand for CONST.
373 2010-06-17 Jakub Jelinek <jakub@redhat.com>
376 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
379 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
381 * v850-protos.h (print_operand): Delete.
382 (print_operand_address): Delete.
383 * v850.h (PRINT_OPERAND): Delete.
384 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
385 (PRINT_OPERAND_ADDRESS): Delete.
386 * v850.c (print_operand_address): Rename to...
387 (v850_print_operand_address): ...this. Make static. Call
389 (print_operand): Rename to...
390 (v850_print_operand): ...this. Make static. Call
391 v850_print_operand_address.
392 (v850_print_operand_punct_valid_p): New function.
393 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
394 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
396 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
398 * config/sh/sh-protos.h (print_operand): Delete.
399 (print_operand_address): Delete.
400 * config/sh/sh.h (PRINT_OPERAND): Delete.
401 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
402 (PRINT_OPERAND_ADDRESS): Delete.
403 * config/sh/sh.c (sh_print_operand_address): Make static.
404 (sh_print_operand): Make static. Call sh_print_operand_address
405 and sh_print_operand.
406 (sh_print_operand_punct_valid_p): New function.
407 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
408 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
410 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
412 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
413 (mcore_print_operand_address): Delete.
414 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
415 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
416 (PRINT_OPERAND_ADDRESS): Delete.
417 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
418 (mcore_print_operand): Make static.
419 (mcore_print_operand_punct_valid_p): New function.
420 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
421 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
423 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
425 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
426 (print_operand_address): Delete.
427 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
428 (PRINT_OPERAND_ADDRESS): Delete.
429 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
431 (m68hc11_print_operand): Make static.
432 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
434 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
436 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
437 (m32r_print_operand_address): Delete.
438 * config/m32r/m32r.h (m32r_punct_chars): Delete.
439 (PRINT_OPERAND): Delete.
440 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
441 (PRINT_OPERAND_ADDRESS): Delete.
442 * config/m32r/m32r.c (m32r_punct_chars): Make static.
443 (m32r_print_operand_address): Make static.
444 (m32r_print_operand): Make static.
445 (m32r_print_operand_punct_valid_p): New function.
446 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
447 (TARGET_PRINT_OPERAND_ADDRESS): Define.
449 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
451 * config/iq2000/iq2000-protos.h (print_operand): Delete.
452 (print_operand_address): Delete.
453 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
454 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
455 (PRINT_OPERAND_ADDRESS): Delete.
456 (iq2000_print_operand_punct): Delete.
457 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
458 (iq2000_print_operand_address): Make static.
459 (iq2000_print_operand): Make static.
460 (iq2000_print_operand_punct_valid_p): New function.
461 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
462 (TARGET_PRINT_OPERAND_ADDRESS): Define.
464 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
466 * config/frv/frv-protos.h (frv_print_operand): Delete.
467 (frv_print_operand_address): Delete.
468 * config/frv/frv.h (PRINT_OPERAND): Delete.
469 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
470 (PRINT_OPERAND_ADDRESS): Delete.
471 * config/frv/frv.c (frv_print_operand_address): Make static.
472 (frv_print_operand): Make static.
473 (frv_print_operand_punct_valid_p): New function.
474 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
475 (TARGET_PRINT_OPERAND_ADDRESS): Define.
477 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
479 * tree.h (vec_member): Declare.
480 * tree.c (vec_member): Define.
482 2010-06-17 Richard Guenther <rguenther@suse.de>
484 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
485 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
487 2010-06-17 Richard Guenther <rguenther@suse.de>
489 * tree-inline.c (declare_return_variable): Remove bogus code.
491 2010-06-17 Richard Guenther <rguenther@suse.de>
493 * gimplify.c (gimplify_bind_expr): Always promote complex
494 and vector variables to registers if possible.
496 2010-06-17 Richard Guenther <rguenther@suse.de>
498 * expr.c (get_inner_reference): Use double_int for bit_offset
501 2010-06-16 DJ Delorie <dj@redhat.com>
503 * common.opt (-fstrict-volatile-bitfields): new.
504 * doc/invoke.texi: Document it.
505 * fold-const.c (optimize_bit_field_compare): For volatile
506 bitfields, use the field's type to determine the mode, not the
508 * expr.c (expand_assignment): Likewise.
509 (get_inner_reference): Likewise.
510 (expand_expr_real_1): Likewise.
511 * expmed.c (store_fixed_bit_field): Likewise.
512 (extract_bit_field_1): Likewise.
513 (extract_fixed_bit_field): Likewise.
515 2010-06-16 Richard Guenther <rguenther@suse.de>
517 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
519 2010-06-16 Douglas B Rupp <rupp@gnat.com>
521 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
522 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
523 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
525 * sdbout.c: Likewise.
526 * vmsdbgout.c: Likewise.
527 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
528 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
529 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
530 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
531 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
532 * dwarf2out.c (dw_fde_struct): New fields
533 dw_fde_vms_{end,begin}_prologue.
534 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
535 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
536 (dwarf2out_vms_end_prologue): New function.
537 (dwarf2out_vms_begin_epilogue): New function.
538 (dw_val_struct): New value dw_val_class_vms_delta.
539 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
540 begin_epilogue for VMS.
541 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
542 new static functions.
543 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
544 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
546 (print_die): New case dw_val_class_vms_delta.
547 (attr_checksum): Likewise.
548 (same_dw_val_p: Likewise.
549 (size_of_die): Likewise.
550 (value_format): Likewise.
551 (output_die): Likewise.
552 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
553 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
554 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
555 dwarf2out_cfi_begin_epilogue
556 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
558 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
560 * config/cris/cris-protos.h (cris_print_operand): Delete.
561 (cris_print_operand_address): Delete.
562 * config/cris/cris.h (PRINT_OPERAND): Delete.
563 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
564 (PRINT_OPERAND_ADDRESS): Delete.
565 * config/cris/cris.c (cris_print_operand_address): Make static.
566 (cris_print_operand): Make static.
567 (cris_print_operand_punct_valid_p): New function.
568 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
569 (TARGET_PRINT_OPERAND_ADDRESS): Define.
571 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
573 * config/arm/arm-protos.h (arm_print_operand): Delete.
574 (arm_print_operand_address): Delete.
575 * config/arm/arm.h (PRINT_OPERAND): Delete.
576 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
577 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
578 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
579 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
580 (arm_print_operand): Make static.
581 (arm_print_operand_punct_valid_p): New function.
582 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
583 (TARGET_PRINT_OPERAND_ADDRESS): Define.
585 2010-06-16 Nick Clifton <nickc@redhat.com>
587 * config/rx/constraints.md (NEGint4): New constraint.
588 * config/rx/rx.md (attr cc): Add set_zsc.
589 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
592 (call_internal): Clobber the cc0 register.
593 (call_value_internal): Likewise.
594 (cstoresi4): Likewise.
597 (addsi3): Add alternative to handle small negative constants.
599 (addsi3): Do not set the O bit in the cc0 register.
603 (andsi3): Reorder alternatives to prefer shorter forms.
606 (negsi2): Note that the cc0 flags are set.
607 (rotlsi3): Note that only the Z and S bits are set in cc0.
610 (subsf3): Use %Q for the MEM operand.
611 (fix_truncsfsi2): Likewise.
612 (floatsisf2): Likewise.
613 (bitset): Remove early clobber from destination.
614 (bitset_in_memory): Likewise.
615 (lrintsf2): Clobber the cc0 register.
616 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
617 (rx_print_operand): Handle %N.
619 2010-06-16 Jan Hubicka <jh@suse.cz>
621 * df-core.c (df_compact_blocks): Free problem_temps vector.
623 2010-06-16 Martin Jambor <mjambor@suse.cz>
625 PR tree-optimization/43905
626 * tree-sra.c: Include tree-inline.h.
627 (create_abstract_origin): Removed.
628 (modify_function): Version the call graph node instead of creating
629 abstract origins and dealing with same_body aliases.
630 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
631 function is versionable.
632 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
634 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
636 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
637 (CHOOSE_DYNAMIC_LINKER): Update.
639 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
641 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
642 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
643 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
646 2010-06-15 Anatoly Sokolov <aesok@post.ru>
648 * target.h (struct asm_out):Add declare_constant_name field.
649 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
650 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
651 * output.h (default_asm_declare_constant_name): Declare.
652 (assemble_label): Update prototype.
653 * varasm.c (assemble_constant_contents): Use
654 targetm.asm_out.declare_constant_name target hook.
655 (assemble_label): Add 'file' argument.
656 (default_asm_declare_constant_name): New function.
657 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
658 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
659 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
661 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
662 * config/darwin.c (darwin_asm_declare_constant_name): New function.
663 (machopic_output_indirection): Update assemble_label argument list.
664 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
665 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
667 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
670 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
671 size_one_node for pointer types. Do not call gmp_cst_to_tree.
673 2010-06-15 Richard Guenther <rguenther@suse.de>
675 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
677 2010-06-15 Paul Brook <paul@codesourcery.com>
679 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
682 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
684 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
685 don't get a vector type for output.
687 2010-06-15 Jakub Jelinek <jakub@redhat.com>
690 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
691 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
692 (LANG_HOOKS_DECLS): Add it.
693 * gimplify.c (omp_notice_variable): Call
694 lang_hooks.decls.omp_report_decl.
696 2010-06-15 Martin Jambor <mjambor@suse.cz>
699 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
700 on the newly dead SSA name.
702 2010-06-15 Alan Modra <amodra@gmail.com>
704 * doc/invoke.texi: Add mcmodel to powerpc options.
705 * configure.ac: Add HAVE_LD_LARGE_TOC test.
706 * configure: Regenerate.
707 * config.in: Regenerate.
708 * config/rs6000/linux64.opt (mcmodel): New.
709 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
710 (TARGET_CMODEL, SET_CMODEL): Define.
711 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
712 select CMODEL_MEDIUM default.
713 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
714 (TARGET_CMODEL): Define default.
715 * config/rs6000/rs6000.c (cmodel): New variable.
716 (rs6000_explicit_options): Add cmodel field.
717 (rs6000_handle_option): Handle -mcmodel.
718 (create_TOC_reference): Add largetoc_reg param. Generate high,
719 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
720 (rs6000_delegitimize_address): Recognise new toc reference rtl
722 (rs6000_legitimize_reload_address): Handle new toc references.
723 (print_operand_address): Handle legitimate_constant_pool_address_p
725 (rs6000_eliminate_indexed_memrefs): Tidy.
726 (rs6000_emit_move): Tweak threshold for inlining constants.
727 Keep rs6000_emit_allocate_stack large stack frame offsets
728 loaded into r0 inline.
729 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
730 (tocrel_base, tocrel_offset): New variables.
731 (toc_relative_expr_p): Set them here.
732 (print_operand_address): Skip over any offset on constant pool address.
733 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
734 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
735 (offsettable_ok_by_alignment): New function.
736 (rs6000_emit_move): Address suitably aligned local symbol_refs
737 relative to the toc pointer for -mcmodel=medium.
738 (legitimate_constant_pool_address_p): Make param const_rtx. Add
739 strict param. Allow lo_sum version of addressing. Verify reg
740 used for -mminimal-toc and -mcmodel != small. Update all callers.
741 * config/rs6000/constraints.md: Update for above change.
742 * config/rs6000/predicates.md: Likewise.
743 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
745 (tls_gd): Split for -mcmodel=medium/large.
746 (tls_gd_high, tls_gd_low): New.
747 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
748 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
749 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
750 (largetoc_high, largetoc_low): New.
751 (cmptf_internal2): Add clobber.
752 * config/rs6000/rs6000-protos.h: Update.
754 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
756 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
757 true if no prefetch is going to be generated for a given group.
758 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
759 estimate the prefetch_count.
760 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
761 prefetch count by considering the unroll_factor and prefetch_mod
762 for is_loop_prefetching_profitable.
764 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
766 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
767 anything if the argument is not a MEM.
769 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
774 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
776 (canonicalize_loop_ivs): Likewise.
778 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
781 * haifa-sched.c (setup_insn_reg_pressure_info,
782 update_register_pressure): Reject debug insns.
783 (ready_sort): Don't setup reg pressure for debug insns.
784 (schedule_insn): Don't update reg pressure for debug insns.
786 2010-06-14 Richard Guenther <rguenther@suse.de>
788 * lto-streamer.c (cached_bp): Remove.
789 (bitpack_delete): Likewise.
790 (bitpack_create): Likewise.
791 (bp_get_next_word): Likewise.
792 (bp_pack_value, bp_unpack_value): Move ...
793 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
795 (struct bitpack_d): Likewise.
796 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
797 New inline functions.
798 * lto-streamer-out.c (lto_output_bitpack): Remove.
799 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
800 (pack_value_fields): Adjust.
801 (lto_write_tree): Likewise.
802 (output_gimple_stmt): Likewise.
803 (output_function): Likewise.
804 * lto-streamer-in.c (input_gimple_stmt): Adjust.
805 (input_function): Likewise.
806 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
807 (lto_input_bitpack): Remove.
808 (lto_materialize_tree): Adjust.
809 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
810 * lto-cgraph.c (lto_output_edge): Adjust.
811 (lto_output_node): Likewise.
812 (lto_output_varpool_node): Likewise.
813 (lto_output_ref): Likewise.
814 (input_node): Likewise.
815 (input_varpool_node): Likewise.
816 (input_ref): Likewise.
817 (input_edge): Likewise.
818 (output_node_opt_summary): Likewise.
819 (input_node_opt_summary): Likewise.
820 * ipa-pure-const.c (pure_const_write_summary): Likewise.
821 (pure_const_read_summary): Likewise.
822 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
823 (ipa_read_indirect_edge_info): Likewise.
824 (ipa_write_node_info): Likewise.
825 (ipa_read_node_info): Likewise.
827 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
830 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
831 (vec_extract_lo_v16hi): Likewise.
832 (vec_extract_lo_v32qi): Likewise.
834 2010-06-14 Jakub Jelinek <jakub@redhat.com>
837 * tree.h (build_call_expr): Don't define as vararg macro, instead
839 * builtins.c (build_call_nofold): Remove.
840 (expand_builtin_int_roundingfn, expand_builtin_pow,
841 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
842 expand_builtin_memset_args, expand_builtin_strcmp,
843 expand_builtin_strncmp, expand_builtin_memory_chk): Use
844 build_call_nofold_loc instead of build_call_nofold.
845 (build_call_expr): New function.
847 PR tree-optimization/44508
848 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
849 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
850 don't eliminate trivially dead stmts.
851 * tree-vrp.c (vrp_finalize): Pass false as last argument
852 to substitute_and_fold.
853 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
854 to substitute_and_fold.
855 * tree-ssa-ccp.c (ccp_finalize): Likewise.
858 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
859 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
860 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
861 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
862 ggc_strdup instead of xstrdup.
864 2010-06-14 Ira Rosen <irar@il.ibm.com>
866 PR tree-optimization/44507
867 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
868 to build initial vector for BIT_AND_EXPR.
869 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
871 2010-06-14 Jakub Jelinek <jakub@redhat.com>
873 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
874 adjust z10prop set_attr.
876 2010-06-13 Jan Hubicka <jh@suse.cz>
878 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
879 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
880 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
881 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
882 datastructure checks into checking asserts.
883 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
884 * tree-ssa-sccvn.c (VN_INFO): Likewise.
885 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
886 df_ref_create_structure): Likewise.
887 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
888 pool_free): Use gcc_checking_assert.
889 * alias.c (get_alias_set): Likewise.
890 * var-tracking.c (variable_htab_free, shared_hash_copy,
891 canonicalize_values_mark, variable_merge_over_cur): Likewise.
892 * lto-streamer.c (bp_unpack_value): Likewise.
894 2010-06-13 Richard Guenther <rguenther@suse.de>
896 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
897 Do not stream but initialize TYPE_CANONICAL to NULL.
898 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
899 * gimple.c (gimple_types_compatible_p): Disregard
900 TYPE_STRUCTURAL_EQUALITY_P.
901 (gimple_register_type): Use TYPE_CANONICAL as cache.
902 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
903 before registering common types.
904 * config/i386/i386.c (ix86_function_arg_boundary): Do not
905 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
906 * tree.h (TYPE_CANONICAL): Clarify documentation.
908 2010-06-13 Anatoly Sokolov <aesok@post.ru>
910 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
911 LIBCALL_VALUE): Remove macros.
912 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
913 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
914 TARGET_FUNCTION_VALUE_REGNO_P): Define.
915 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
916 (ia64_function_value): Make static. Handle receiving the function
917 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
919 2010-06-12 Jan Hubicka <jh@suse.cz>
921 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
924 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
926 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
928 2010-06-12 Jan Hubicka <jh@suse.cz>
930 * df-core.c (df_clear_bb_info): New function.
931 (df_set_blocks): bb_info is always allocated.
932 (df_get_bb_info): Use block_info_elt_size.
933 (df_set_bb_info): Likewise.
934 (df_compact_blocks): Update for new block_info.
935 (grow_bb_info): New function.
936 * df-problems.c (df_grow_bb_info): Move to df-core.c
937 (df_rd_set_bb_info): Remove.
938 (df_rd_free_bb_info): Do not free block pool.
939 (df_rd_alloc): Do not create pool, use check for
940 obstack presence instead of NULL pointer for new blocks.
941 (df_rd_free): DO not free alloc pool; clear block_info.
942 (problem_RD): Add size of block info structure.
943 (df_lr_set_bb_info): Remove.
944 (df_lr_free_bb_info): Do not free block pool.
945 (df_lr_alloc): Do not create pool, use check for
946 obstack presence instead of NULL pointer for new blocks.
947 (df_lr_free): DO not free alloc pool; clear block_info.
948 (problem_LR): Add size of block info structure.
949 (df_live_set_bb_info): Remove.
950 (df_live_free_bb_info): Do not free block pool.
951 (df_live_alloc): Do not create pool, use check for
952 obstack presence instead of NULL pointer for new blocks.
953 (df_live_free): DO not free alloc pool; clear block_info.
954 (problem_LIVE): Add size of block info structure.
955 (problem_CHAIN): Add size of block info structure.
956 (df_byte_lr_set_bb_info): Remove.
957 (df_byte_lr_free_bb_info): Do not free block pool.
958 (df_byte_lr_alloc): Do not create pool, use check for
959 obstack presence instead of NULL pointer for new blocks.
960 (df_byte_lr_free): DO not free alloc pool; clear block_info.
961 (problem_BYTE_LR): Add size of block info structure.
962 (problem_NOTE): Add size of block info structure.
963 (df_byte_MD_set_bb_info): Remove.
964 (df_byte_MD_free_bb_info): Do not free block pool.
965 (df_byte_MD_alloc): Do not create pool, use check for
966 obstack presence instead of NULL pointer for new blocks.
967 (df_byte_MD_free): DO not free alloc pool; clear block_info.
968 (problem_BD): Add size of block info structure.
969 * df-scan.c (df_scan_free_internal): Free block pool.
970 (df_scan_set_bb_info): Remove.
971 (df_scan_free_bb_info): Check for artificial_defs instead
972 of bb_info being non-NULL.
973 (df_scan_alloc): DO not create df_scan_block pool.
974 (problem_SCAN): Set size of block info.
975 (df_bb_refs_record): Do not allocate bb_info.
976 * df.h (df_problem): Add block_info_elt_size.
977 (struct dataflow): Change block_info to void *.
978 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
979 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
982 2010-06-12 Jan Hubicka <jh@suse.cz>
984 PR tree-optimize/44485
985 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
986 containing use of return value of noreturn function.
988 2010-06-12 Anatoly Sokolov <aesok@post.ru>
990 * targhooks.c (default_function_value): Don't use
991 FUNCTION_OUTGOING_VALUE.
992 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
993 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
995 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
997 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
998 Add crtfastmath.o to extra_parts.
999 * config/mips/crtfastmath.c: New.
1000 * config/mips/linux.h (ENDFILE_SPEC): New.
1002 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1004 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1005 old_type in parameter.
1006 (gcc_type_for_value): Update call to gcc_type_for_interval.
1007 (compute_type_for_level_1): Renamed compute_type_for_level.
1008 Update call to gcc_type_for_interval.
1010 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1012 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1013 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1015 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1017 * opts-common.c: Include options.h.
1018 (integral_argument): Move from opts.c.
1019 (decode_cmdline_option): New. Based on read_cmdline_option.
1020 * opts.c (integral_argument): Move to opts-common.c.
1021 (read_cmdline_option): Move most contents to
1022 decode_cmdline_option. Use %qs in diagnostics.
1023 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1024 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1025 decode_cmdline_option): New.
1027 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1030 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1031 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1032 (partiysi2_cmp): Ditto.
1033 (*partiyhi2_cmp): Ditto.
1034 (*parityqi2_cmp): Remove.
1036 2010-06-11 Jan Hubicka <jh@suse.cz>
1038 * bitmap.h (bmp_iter_next_bit): New.
1039 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1041 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1042 Eric Botcazou <ebotcazou@adacore.com>
1044 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1047 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1049 * config/i386/i386.md (unspec): New define_c_enum.
1052 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1054 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1055 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1056 (lazy_hex_fp_value): New function.
1057 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1058 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1060 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1063 * tree-if-conv.c (bb_predicate_s): New struct.
1064 (bb_predicate_p): New.
1065 (bb_has_predicate): New.
1066 (bb_predicate): New.
1067 (set_bb_predicate): New.
1068 (bb_predicate_gimplified_stmts): New.
1069 (set_bb_predicate_gimplified_stmts): New.
1070 (add_bb_predicate_gimplified_stmts): New.
1071 (init_bb_predicate): New.
1072 (free_bb_predicate): New.
1073 (is_predicated): Use bb_predicate.
1074 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1075 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1076 before processing their successors.
1077 (clean_predicate_lists): Removed.
1078 (find_phi_replacement_condition): Use bb_predicate.
1079 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1081 (insert_gimplified_predicates): New.
1082 (combine_blocks): Call insert_gimplified_predicates.
1083 (tree_if_conversion): Call free_bb_predicate instead of
1084 clean_predicate_lists.
1086 2010-10-11 Paul Brook <paul@codesourcery.com>
1088 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1089 * config/arm/arm.c (all_architectures): Change v7e-m default to
1091 * config/arm/arm-cores.def: Add cortex-m4.
1092 * config/arm/arm-tune.md: Regenerate.
1094 2010-06-11 Jan Hubicka <jh@suse.cz>
1096 * ipa-pure-const.c (special_builtlin_state): New function.
1097 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1098 (propagate_pure_const): Use it.
1100 2010-06-11 Jan Hubicka <jh@suse.cz>
1102 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1103 (df_live_alloc): Initialize df_live_scratch when initializing
1105 (df_live_transfer_function): Update uses of df_live_scratch.
1106 (df_live_free): Free problem_data; clear df_live_scratch before
1107 releasing the obstack.
1108 (df_md_free): Free problem data.
1110 2010-06-11 Jan Hubicka <jh@suse.cz>
1112 * doc/invoke.texi (Wsuggest-attribute): Document.
1113 (Wmissing-noreturn): Remove.
1114 * ipa-pure-const.c (warn_function_noreturn): New function.
1115 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1116 warn_missing_noreturn.
1117 * common.opt (Wsuggest-attribute=noreturn): New.
1118 * tree-flow.h (warn_function_noreturn): Declare.
1119 * tree-cfg.c (execute_warn_function_noreturn): Use
1120 warn_function_noreturn.
1121 (gate_warn_function_noreturn): New.
1122 (pass_warn_function_noreturn): Update.
1124 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1126 * c-typeck.c (handle_warn_cast_qual): Add loc
1127 parameter. Improve warning message.
1128 (build_c_cast): Pass location to handle_warn_cast_qual.
1130 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1132 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1133 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1135 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1137 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1139 Fix bootstap on mips
1140 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1143 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1145 * system.h (helper_const_non_const_cast): New inline for
1147 (CONST_CAST2): For gcc version <= 4.0 use
1148 new helper to do const/non-const casting.
1150 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1152 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1153 * Makefile.in (OBJS-common): Include insn-enums.o.
1154 (insn-enums.o): New rule.
1155 (simple_generated_c): Add insn-enums.c.
1156 (build/genenums.o): New rule.
1157 (genprogmd): Add "enums".
1158 * genconstants.c (print_enum_type): Declare a C string array
1160 * genenums.c: New file.
1161 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1162 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1163 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1165 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1167 * doc/md.texi (define_enum_attr): Document.
1168 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1169 * read-md.h (lookup_enum_type): Declare.
1170 * read-md.c (lookup_enum_type): New function.
1171 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1172 * genattrtab.c (attr_desc): Add an enum_name field.
1173 (evaluate_eq_attr): Take the associated attribute as argument.
1174 Get the enum prefix from the enum_name field, if defined.
1175 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1176 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1177 (add_attr_value): New function, split out from...
1178 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1179 (write_test_expr): Pass attr to evaluate_eq_attr.
1180 (write_attr_get): Use the enum_name as the enum tag, if defined.
1181 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1182 (find_attr): Initialize enum_name.
1183 (main): Handle DEFINE_ENUM_ATTR.
1184 * gensupport.c (process_rtx): Likewise.
1185 * config/mips/mips.h (mips_tune_attr): Delete.
1186 * config/mips/mips.md (cpu): Use define_attr_enum.
1188 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1190 * doc/md.texi (define_c_enum, define_enum): Document.
1191 * read-md.h (md_constant): Add a parent_enum field.
1192 (enum_value, enum_type): New structures.
1193 (upcase_string, traverse_enum_types): Declare.
1194 * read-md.c (enum_types): New variable.
1195 (upcase_string, add_constant): New functions.
1196 (handle_constants): Don't create the hash table here.
1198 (traverse_md_constants): Don't check for a null md_constants.
1199 (decimal_string, handle_enum, traverse_enum_types): New functions.
1200 (read_md_files): Initialize md_constants and md_enums.
1201 * genconstants.c (print_md_constant): Ignore info argument.
1202 Only print constants that belong to no enum.
1203 (print_enum_type): New function.
1204 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1205 for each defined enum type.
1206 * config/mips/mips.md (processor): New define_enum.
1207 (unspec): New define_c_enum.
1208 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1209 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1210 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1211 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1212 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1213 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1214 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1215 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1216 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1217 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1218 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1219 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1220 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1221 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1222 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1223 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1224 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1225 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1226 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1227 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1228 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1229 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1230 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1231 (UNSPEC_RDDSP): Move to mips-dsp.md.
1232 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1233 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1234 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1235 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1236 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1237 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1238 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1239 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1240 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1241 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1242 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1243 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1244 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1245 Moved to mips-dspr2.md.
1246 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1247 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1248 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1249 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1250 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1251 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1252 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1253 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1254 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1255 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1256 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1257 UNSPEC_LOONGSON_PSADBH)
1258 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1259 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1260 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1261 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1262 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1263 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1264 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1265 (cpu): Update comment.
1266 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1267 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1268 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1269 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1270 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1271 UNSPEC_LOONGSON_PCMPEQ)
1272 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1273 UNSPEC_LOONGSON_PINSR_0)
1274 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1275 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1276 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1277 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1278 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1279 UNSPEC_LOONGSON_PSADBH)
1280 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1281 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1282 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1283 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1284 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1285 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1286 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1287 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1288 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1289 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1290 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1291 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1292 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1293 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1294 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1295 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1296 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1297 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1298 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1299 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1300 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1301 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1302 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1303 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1304 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1305 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1306 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1307 (UNSPEC_RDDSP): Moved from mips.md.
1308 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1309 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1310 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1311 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1312 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1313 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1314 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1315 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1316 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1317 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1318 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1319 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1320 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1321 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1322 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1323 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1324 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1325 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1326 (UNSPEC_SCC): Moved from mips.md.
1327 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1328 "processor_type" to "processor".
1329 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1330 * config/mips/mips.h (processor_type): Delete.
1331 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1332 "processor_type" to "processor".
1334 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1336 * configure.ac (tm_include_list): Add insn-constants.h.
1337 * configure: Regenerate.
1338 * Makefile.in (GTM_H): Move insn-constants.h here from...
1340 * mkconfig.sh: Remove special handling for insn-constants.h.
1342 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1344 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1345 (BUILD_MD): ...this new variable.
1346 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1347 that include the old contents of simple_generated_h and
1349 (simple_generated_h, simple_generated_c): Include them. Add
1351 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1352 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1353 Remove these dependencies from the main rule and include
1354 insn-conditions.md in the command line only if it appears
1355 in the dependency list.
1356 (insn-constants.h, s-constants): Delete.
1357 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1359 (build/genmddeps.o): Likewise.
1360 (genprogrtl): New variable that contains everything from genprogmd
1361 except mddeps and constants.
1362 (genprogmd): Redefine in terms of genprogrtl. Make these programs
1363 depend on $(BUILD_MD)
1364 (genprog): New variable. Make these programs depend on
1366 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1367 (main): Use read_md_files instead of init_rtx_reader_args.
1368 * genconstants.c: As for genmddeps.c.
1369 * read-md.h (read_skip_construct): Declare.
1370 * read-md.c (read_skip_construct): New function.
1371 (handle_file): Allow a null handle_directive, skipping the
1373 (parse_include): Update the comment accordingly.
1375 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1377 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1378 * genmddeps.c: Include read-md.h.
1379 (main): Call init_rtx_reader_args instead of init_md_reader_args.
1380 * genattr.c (main): Likewise.
1381 * genattrtab.c (main): Likewise.
1382 * genautomata.c (main): Likewise.
1383 * gencodes.c (main): Likewise.
1384 * genconditions.c (main): Likewise.
1385 * genconfig.c (main): Likewise.
1386 * genconstants.c (main): Likewise.
1387 * genemit.c (main): Likewise.
1388 * genextract.c (main): Likewise.
1389 * genflags.c (main): Likewise.
1390 * genopinit.c (main): Likewise.
1391 * genoutput.c (main): Likewise.
1392 * genpeep.c (main): Likewise.
1393 * genrecog.c (main): Likewise.
1394 * genpreds.c (main): Likewise.
1395 * gensupport.h (in_fname): Move to read-md.h.
1396 (init_md_reader_args_cb): Rename to...
1397 (init_rtx_reader_args_cb): ...this and return a bool.
1398 (init_md_reader_args): Rename to...
1399 (init_rtx_reader_args): ...this and return a bool.
1400 (include_callback): Move to read-md.h.
1401 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1402 (file_name_list, first_dir_md_include): Move to read-md.c
1403 (first_bracket_include): Delete unused variable.
1404 (last_dir_md_include): Move to read-md.c.
1405 (process_include): Delete, moving code to read-md.c:handle_include.
1406 (process_rtx): Don't handle INCLUDE.
1407 (save_string): Delete.
1408 (rtx_handle_directive): New function.
1409 (init_md_reader_args_cb): Rename to...
1410 (init_rtx_reader_args_cb): ...this and return a boolean success value.
1412 (init_md_reader_args): Rename to...
1413 (init_rtx_reader_args): ...this and return a boolean success value.
1414 * rtl.def (INCLUDE): Delete.
1415 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
1417 * read-rtl.c (read_conditions): Don't gobble ')' here.
1418 (read_mapping): Likewise.
1419 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
1420 Handle top-level non-rtx constructs here rather than in read_rtx_1.
1421 Store the whole queue in *X. Remove call to init_md_reader.
1422 (read_rtx_1): Rename to...
1423 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
1424 Don't handle top-level non-rtx constructs here. Don't handle (nil)
1426 (read_nested_rtx): New function. Handle (nil) here rather than
1428 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
1430 * read-md.h (directive_handler_t): New type.
1431 (in_fname, include_callback): Moved from read-md.h.
1432 (read_constants, init_md_reader): Delete.
1433 (read_md_files): Declare.
1434 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1435 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1437 (read_constants): Rename to...
1438 (handle_constants): ...this. Don't gobble ')' here.
1439 (handle_include, handle_file, handle_toplevel_file)
1440 (parse_include): New functions, mostly taken from gensupport.c.
1441 (init_md_reader): Subsume into...
1442 (read_md_files): ...this new function.
1444 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1446 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1447 (unread_char): Decrement read_md_lineno after putting back '\n'.
1448 * read-md.c (fatal_with_file_and_line): Push back any characters
1449 that we decide not to add to the context.
1450 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
1451 fatal_expected_char in cases where '/' ends a line (for example).
1452 (read_name): Don't increment read_md_lineno here.
1453 (read_escape): Likewise.
1454 (read_quoted_string): Likewise.
1455 (read_braced_string): Likewise.
1457 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1459 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1460 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1461 * genconstants.c: Include read-md.h.
1462 * read-rtl.c (md_constants): Move to read-md.c.
1463 (md_name): Move to read-md.h.
1464 (initialize_iterators): Use leading_string_hash instead of def_hash
1465 and leading_string_eq_p instead of def_name_eq_p.
1466 (read_name): Move to read-md.c.
1467 (def_hash, def_name_eq_p): Delete.
1468 (read_constants, traverse_md_constants): Move to read-md.c.
1469 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1470 * read-md.h: Include hashtab.h.
1471 (md_name): Moved from read-rtl.c.
1472 (md_constant): Moved from read-md.h.
1473 (leading_string_hash, leading_string_eq_p, read_name)
1474 (read_constants, traverse_md_constants): Declare.
1475 * read-md.c (md_constants): Moved from read-rtl.c.
1476 (leading_string_hash, leading_string_eq_p): New functions.
1477 (read_name, read_constants, traverse_md_constants): Moved from
1480 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1482 * read-rtl.c (md_name): New structure.
1483 (read_name): Take an md_name instead of a buffer pointer.
1484 Use the "string" field instead of strcpy when expanding constants.
1485 (read_constants): Remove the tmp_char argument. Update the calls
1486 to read_name, using two local name buffers instead of the tmp_char
1487 argument. Merge the constant-creation code.
1488 (read_conditions): Remove the tmp_char argument. Update the calls
1489 to read_name, using a local name buffer instead of the tmp_char
1491 (read_mapping): Replace tmp_char variable with a local name buffer.
1492 Update the calls to read_name.
1493 (read_rtx_1): Likewise. Update the calls to read_constants and
1496 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1498 * Makefile.in (build/read-md.o): Depend on errors.h.
1499 * read-md.h (error_with_line): Declare.
1500 * read-md.c: Include errors.h.
1501 (message_with_line_1): New function, extracted from...
1502 (message_with_line): ...here.
1503 (error_with_line): New function.
1504 * genattrtab.c: If a call to message_with_line is followed by
1505 "have_error = 1;", replace both statements with a call to
1507 * genoutput.c: Likewise.
1508 * genpreds.c: Likewise.
1509 * genrecog.c: If a call to message_with_line is followed by
1510 "error_count++;", replace both statements with a call to
1512 (errorcount): Delete.
1513 (main): Don't check it.
1514 * gensupport.c: If a call to message_with_line is followed by
1515 "errors = 1;", replace both statements with a call to error_with_line.
1517 (process_define_cond_exec): Check have_error instead of errors.
1518 (init_md_reader_args_cb): Likewise. Don't set errors.
1520 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1522 * read-md.h (read_md_file): Declare.
1523 (read_char, unread_char): New functions.
1524 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1525 (read_quoted_string, read_string): Remove FILE * argument.
1526 * read-md.c (read_md_file): New variable.
1527 (read_md_filename, read_md_lineno): Update comments and remove
1528 unnecessary initialization.
1529 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1530 (read_escape, read_quoted_string, read_braced_string, read_string):
1531 Remove FILE * argument. Update calls accordingly, using read_char
1532 and unread_char instead of getc and ungetc.
1533 * rtl.h (read_rtx): Remove FILE * argument.
1534 * read-rtl.c (iterator_group): Remove FILE * argument from
1536 (iterator_traverse_data): Remove "infile" field.
1537 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
1538 (add_mapping, read_name, read_constants, read_conditions)
1539 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
1540 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
1541 Remove file arguments from all calls, using read_char and unread_char
1542 instead of getc and ungetc.
1543 * gensupport.c (process_include): Preserve read_md_file around
1544 the include. Set read_md_file to the handle of the included file.
1545 Update call to read_rtx.
1546 (init_md_reader_args_cb): Set read_md_file to the handle of the file
1547 and remove local FILE *. Update calls to read_rtx.
1549 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1551 * read-md.h (read_rtx_lineno): Rename to...
1552 (read_md_lineno): ...this.
1553 (read_rtx_filename): Rename to...
1554 (read_md_filename): ...this.
1555 (copy_rtx_ptr_loc): Rename to...
1556 (copy_md_ptr_loc): ...this.
1557 (print_rtx_ptr_loc): Rename to...
1558 (print_md_ptr_loc): ...this.
1559 * read-md.c: Likewise. Update references after renaming.
1560 (string_obstack): Replace RTL with MD in comment.
1561 (set_rtx_ptr_loc): Rename to...
1562 (set_md_ptr_loc): ...this.
1563 (get_rtx_ptr_loc): Rename to...
1564 (get_md_ptr_loc): ...this.
1565 * genconditions.c: Update references after renaming.
1566 * genemit.c: Likewise.
1567 * genoutput.c: Likewise.
1568 * genpreds.c: Likewise.
1569 * gensupport.c: Likewise.
1570 * read-rtl.c: Likewise.
1572 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1574 * Makefile.in (READ_MD_H): New variable.
1575 (BUILD_RTL): Add build/read-md.o.
1576 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
1577 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1578 (build/genattrtab.o, build/genconditions.o build/genemit.o)
1579 (build/genextract.o, build/genflags.o, build/genoutput.o)
1580 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
1581 (build/read-md.o): New rule.
1582 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
1583 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
1584 * coretypes.h: ...here.
1585 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
1586 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
1587 * genattr.c: Include read-md.h.
1588 * genattrtab.c: Likewise.
1589 * genconditions.c: Likewise.
1590 * genemit.c: Likewise.
1591 * genextract.c: Likewise.
1592 * genflags.c: Likewise.
1593 * genoutput.c: Likewise.
1594 * genpreds.c: Likewise.
1595 * genrecog.c: Likewise.
1596 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1597 (join_c_conditions, print_c_condition, read_rtx_filename)
1598 (read_rtx_lineno): Move to read-md.h.
1599 * read-rtl.c: Include read-md.h.
1600 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
1601 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
1602 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
1603 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
1604 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1605 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
1606 (read_braced_string, read_string): Move to read-md.c.
1607 (read_rtx): Move some initialization to init_md_reader and call
1608 init_md_reader here.
1609 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
1611 * gensupport.c: Include read-md.h.
1612 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
1613 * read-md.h, read-md.c: New files.
1615 2010-06-10 Anatoly Sokolov <aesok@post.ru>
1617 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1618 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1619 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
1620 * config/moxie/moxie.c (moxie_function_value): Make static.
1621 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
1622 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1624 2010-06-10 Martin Jambor <mjambor@suse.cz>
1626 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
1627 * dbgcnt.def (tree_sra): New counter.
1628 * tree-sra.c: Include dbgcnt.h.
1629 (gate_intra_sra): Check tree_sra debug counter.
1631 2010-06-10 Martin Jambor <mjambor@suse.cz>
1633 PR tree-optimization/44258
1634 * tree-sra.c (build_access_subtree): Return false iff there is a
1636 (build_access_trees): Likewise.
1637 (analyze_all_variable_accesses): Disqualify candidates if
1638 build_access_trees returns true for them.
1640 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
1643 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
1644 tail-recurse into canonical node. Fast-forward over
1645 non-canonical VALUEs.
1647 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
1650 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
1651 (*addsi_1_zext) <TYPE_LEA>: Likewise.
1652 (add lea splitter): Likewise.
1653 (add_zext lea splitter): Likewise.
1655 2010-06-10 Joseph Myers <joseph@codesourcery.com>
1657 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
1659 2010-06-10 Jan Hubicka <jh@suse.cz>
1661 * df-problems.c (df_live_problem_data): Add live_bitmaps.
1662 (df_live_alloc): Initialize problem data and live_osbtacks.
1663 (df_live_finalize): Remove obstack, problem data; do not
1665 (df_live_top_dump, df_live_bottom_dump): Do not dump old
1666 data when not allocated.
1667 (df_live_verify_solution_start): Do not allocate problem data.
1668 (df_live_verify_solution_end): Check if out is allocated.
1669 (struct df_md_problem_data): New structure.
1670 (df_md_alloc): Allocate problem data.
1671 (df_md_free): Free problem data; do not clear bitmaps.
1673 2010-06-10 Jan Beulich <jbeulich@novell.com>
1676 * configure.ac: Replace $() with ${} when intending to expand
1677 variables rather than invoking commands.
1678 * configure: Re-generate.
1680 2010-06-10 Jan Hubicka <jh@suse.cz>
1682 PR rtl-optimization/44460
1683 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1684 TYPE_NEEDS_CONSTRUCTING sanity check.
1686 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
1688 * doc/include/fdl.texi: Move to GFDL version 1.3.
1690 * doc/cpp.texi: Move to GFDL version 1.3.
1691 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
1692 * doc/gccint.texi: Move to GFDL version 1.3.
1693 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
1694 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
1695 * doc/invoke.texi: Move to GFDL version 1.3.
1697 2010-06-09 Jan Hubicka <jh@suse.cz>
1699 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
1701 (propagate) ... here; swap the order.
1703 2010-06-09 Jan Hubicka <jh@suse.cz>
1705 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
1706 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
1707 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
1708 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
1710 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
1712 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
1713 Do not the gather memory reference in the outer loop if the step
1716 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
1718 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
1719 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
1720 8 to 4. Minor change of the related comments.
1722 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1724 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1725 the scev analysis when the variable is not used outside the loop
1726 in a close phi node: call compute_overall_effect_of_inner_loop.
1728 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1730 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1731 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1732 (build_sese_conditions_before): Renamed call to single_pred_cond.
1733 (build_sese_conditions_after): Same.
1735 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1737 * graphite-poly.h: Fix comments and indentation.
1738 * graphite-sese-to-poly.c: Same.
1739 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1740 * tree-chrec.c: Fix comments and indentation.
1741 (tree-ssa-loop-niter.c): Same.
1743 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
1745 PR rtl-optimization/42461
1746 * dce.c (deletable_insn_p): Return true for const or pure calls again.
1747 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
1749 2010-06-09 Jan Hubicka <jh@suse.cz>
1751 * bitmap.c (bitmap_and): Walk array forward.
1752 (bitmap_and_compl_into): Likewise.
1753 (bitmap_xor): Likewise.
1754 (bitmap_xor_into): Likewise.
1755 (bitmap_equal_p): Likewise.
1756 (bitmap_intersect_p): Likewise.
1757 (bitmap_intersect_compl_p): Likewise.
1758 (bitmap_ior_and_into): Likewise.
1759 (bitmap_elt_copy): Likewise.
1760 (bitmap_and_compl): Likewise.
1761 (bitmap_elt_ior): Likewise.
1763 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
1765 * opts-common.c (prune_options): Ensure replacement argv array
1766 is correctly terminated by a NULL entry.
1768 2010-06-09 Jan Hubicka <jh@suse.cz>
1770 * cgraph.h (varpool_first_static_initializer,
1771 varpool_next_static_initializer): Make checking only when
1773 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
1774 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
1775 gcc_assert to gcc_checking_assert.
1776 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
1777 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
1778 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
1779 op_iter_init_phiuse, op_iter_init_phidef,
1780 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
1781 gcc_checking_assert.
1782 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
1783 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
1784 partition_is_global, live_on_entry, live_on_exit,
1785 live_merge_and_clear): Likewise.
1786 * system.h (gcc_checking_assert): New macro.
1787 * gimple.h (set_bb_seq): Use gcc_checking_assert.
1789 2010-06-09 Jason Merrill <jason@redhat.com>
1791 * Makefile.in (TAGS): Collect tags info from c-family.
1793 2010-06-09 Jan Hubicka <jh@suse.cz>
1795 * gimple.h (gcc_gimple_checking_assert): New macro.
1796 (gimple_set_def_ops, gimple_set_use_ops,
1797 gimple_set_vuse, gimple_set_vdef,
1798 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
1799 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
1800 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
1801 gimple_asm_output_op, gimple_asm_output_op_ptr,
1802 gimple_asm_set_output_op, gimple_asm_clobber_op,
1803 gimple_asm_set_clobber_op, gimple_asm_label_op,
1804 gimple_asm_set_label_op, gimple_try_set_kind,
1805 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
1806 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
1807 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
1808 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
1809 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
1810 gimple_omp_for_set_initial, gimple_omp_for_final,
1811 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
1812 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
1813 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
1814 conditional with ENABLE_GIMPLE_CHECKING.
1815 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
1817 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
1819 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
1820 (get_computation_cost_at): Use it.
1821 (determine_use_iv_cost_condition): Likewise.
1822 (determine_iv_cost): Likewise.
1824 2010-06-09 Richard Guenther <rguenther@suse.de>
1826 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
1829 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
1831 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
1833 2010-06-09 Martin Jambor <mjambor@suse.cz>
1835 PR tree-optimization/44423
1836 * tree-sra.c (dump_access): Dump also grp_assignment_read.
1837 (analyze_access_subtree): Pass negative allow_replacements to children
1838 if the current type is scalar.
1840 2010-06-09 Joern Rennecke <amylaar@spamcop.net>
1843 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
1844 * doc/plugins.texi (Plugin license check): Update information
1845 on type of plugin_is_GPL_compatible.
1846 * Makefile.in (PLUGINCC): Define as $(COMPILER).
1847 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
1849 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
1851 * config/arm/arm.c (thumb2_reorg): New function.
1852 (arm_reorg): Call it.
1853 * config/arm/thumb2.md (define_peephole2 for flag clobbering
1854 arithmetic operations): Delete.
1856 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
1859 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
1862 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
1865 * gcc-plugin.h: Encapsulate all declarations in extern "C".
1867 2010-06-08 Jan Hubicka <jh@suse.cz>
1869 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
1870 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
1872 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
1874 PR tree-optimization/39874
1876 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
1878 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
1879 same_bool_result_p): New.
1880 (and_var_with_comparison, and_var_with_comparison_1,
1881 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
1882 (or_var_with_comparison, or_var_with_comparison_1,
1883 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
1884 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
1885 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
1886 of combine_comparisons.
1887 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
1889 2010-06-08 Anatoly Sokolov <aesok@post.ru>
1891 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1892 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1893 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
1894 pdp11_function_value_regno_p): New functions.
1895 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1896 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1898 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
1900 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
1901 Thumb-2 in the MINUS case.
1903 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1905 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
1907 * doc/gty.texi (GTY Options): Document typed GC allocation and
1908 variable_size GTY option.
1910 * ggc-internal.h: New.
1912 * ggc.h: Update copyright year.
1913 (digit_string): Move to stringpool.c.
1914 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
1915 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
1916 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
1917 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
1918 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
1919 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
1920 (ggc_force_collect, ggc_get_size, ggc_statistics)
1921 (ggc_print_common_statistics): Move to ggc-internal.h.
1922 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
1923 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
1924 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
1925 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
1926 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
1927 (ggc_alloc_zone_pass_stat): Remove.
1928 (ggc_internal_alloc_stat, ggc_internal_alloc)
1929 (ggc_internal_cleared_alloc_stat): New.
1930 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
1931 (ggc_internal_vec_alloc_stat)
1932 (ggc_internal_cleared_vec_alloc_stat)
1933 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
1934 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
1935 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
1936 (ggc_cleared_alloc_ptr_array_two_args): New.
1937 (htab_create_ggc, splay_tree_new_ggc): Redefine.
1938 (ggc_splay_alloc): Change the type of the first argument to
1940 (ggc_alloc_string): Make macro.
1941 (ggc_alloc_string_stat): New.
1942 (ggc_strdup): Redefine.
1943 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
1944 (ggc_alloc_rtvec_sized): New.
1945 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
1946 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
1947 (ggc_internal_cleared_alloc_zone_stat)
1948 (ggc_internal_zone_alloc_stat)
1949 (ggc_internal_zone_cleared_alloc_stat)
1950 (ggc_internal_zone_vec_alloc_stat)
1951 (ggc_alloc_zone_rtx_def_stat)
1952 (ggc_alloc_zone_tree_node_stat)
1953 (ggc_alloc_zone_cleared_tree_node_stat)
1954 (ggc_alloc_cleared_gimple_statement_d_stat): New.
1956 * ggc-common.c: Include ggc-internal.h.
1957 (ggc_internal_cleared_alloc_stat): Rename from
1958 ggc_alloc_cleared_stat.
1959 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
1960 (ggc_calloc): Remove.
1961 (ggc_cleared_alloc_htab_ignore_args): New.
1962 (ggc_cleared_alloc_ptr_array_two_args): New.
1963 (ggc_splay_alloc): Add obj_type parameter.
1964 (init_ggc_heuristics): Formatting fixes.
1966 * ggc-none.c: Update copyright year.
1967 (ggc_alloc_stat): Rename to ggc_alloc_stat.
1968 (ggc_alloc_cleared_stat): Rename to
1969 ggc_internal_cleared_alloc_stat.
1970 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1972 * ggc-page.c: Update copyright year. Include ggc-internal.h.
1973 Remove references to ggc_alloc in comments.
1974 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
1975 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
1976 (new_ggc_zone, destroy_ggc_zone): Remove.
1977 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1979 * ggc-zone.c: Include ggc-internal.h. Remove references to
1980 ggc_alloc in comments.
1981 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
1982 (ggc_internal_alloc_zone_pass_stat): New.
1983 (ggc_internal_cleared_alloc_zone_stat): New.
1984 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
1985 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
1986 (new_ggc_zone, destroy_ggc_zone): Remove.
1988 * stringpool.c: Update copyright year. Include ggc-internal.h
1989 (digit_vector): Make static.
1990 (digit_string): Moved from ggc.h.
1991 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
1992 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
1994 * Makefile.in (GGC_INTERNAL_H): New.
1995 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
1996 $(GGC_INTERNAL_H) to dependencies.
1998 * gentype.c: Update copyright year.
1999 (walk_type): Accept variable_size GTY option.
2000 (USED_BY_TYPED_GC_P): New macro.
2001 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2002 whitespace at the end of strings.
2003 (get_type_specifier, variable_size_p): New functions.
2004 (alloc_quantity, alloc_zone): New enums.
2005 (write_typed_alloc_def): New function.
2006 (write_typed_struct_alloc_def): Likewise.
2007 (write_typed_typed_typedef_alloc_def): Likewise.
2008 (write_typed_alloc_defns): Likewise.
2009 (output_typename, write_splay_tree_allocator_def): Likewise.
2010 (write_splay_tree_allocators): Likewise.
2011 (main): Call write_typed_alloc_defns and
2012 write_splay_tree_allocators.
2014 * lto-streamer.h (lto_file_decl_data_ptr): New.
2016 * passes.c (order): Define using cgraph_node_ptr.
2018 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2021 * gimple.h (union gimple_statement_d): Likewise.
2023 * rtl.h (struct rtx_def): Likewise.
2024 (struct rtvec_def): Likewise.
2026 * tree.h (union tree_node): Likewise.
2028 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2030 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2032 * tree-scalar-evolution.c (scev_initialize): Likewise.
2034 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2036 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2038 * omp-low.c (lower_omp_critical): Likewise.
2040 * bitmap.h (struct bitmap_head_def): Update comment to not
2041 reference ggc_alloc.
2043 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2045 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2047 * ipa-prop.c (duplicate_ggc_array): Rename to
2048 duplicate_ipa_jump_func_array. Use typed GC allocation.
2049 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2051 * gimple.c (gimple_alloc_stat): Use
2052 ggc_alloc_cleared_gimple_statement_d_stat.
2054 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2056 * tree.c (make_node_stat): Use
2057 ggc_alloc_zone_cleared_tree_node_stat.
2058 (make_tree_vec_stat): Likewise.
2059 (build_vl_exp_stat): Likewise.
2060 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2061 (make_tree_binfo_stat): Likewise.
2062 (tree_cons_stat): Likewise.
2064 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2065 (shallow_copy_rtx_stat): Likewise.
2066 (make_node_stat): Likewise.
2068 * lto-symtab.c: Fix comment.
2070 * tree-cfg.c (create_bb): Update comment to not reference
2072 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2074 * varpool.c (varpool_node): Use typed GC allocation.
2075 (varpool_extra_name_alias): Likewise.
2077 * varasm.c (emutls_decl): Likewise.
2078 (get_unnamed_section): Likewise.
2079 (get_noswitch_section): Likewise.
2080 (get_section): Likewise.
2081 (get_block_for_section): Likewise.
2082 (build_constant_desc): Likewise.
2083 (create_constant_pool): Likewise.
2084 (force_const_mem): Likewise.
2086 * tree.c (build_vl_exp_stat): Likewise.
2087 (build_real): Likewise.
2088 (build_string): Likewise.
2089 (decl_debug_expr_insert): Likewise.
2090 (decl_value_expr_insert): Likewise.
2091 (type_hash_add): Likewise.
2092 (build_omp_clause): Likewise.
2094 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2096 * tree-ssa.c (init_tree_ssa): Likewise.
2098 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2100 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2102 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2104 * tree-ssa-alias.c (get_ptr_info): Likewise.
2106 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2108 * tree-phinodes.c (allocate_phi_node): Likewise.
2110 * tree-iterator.c (tsi_link_before): Likewise.
2111 (tsi_link_after): Likewise.
2113 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2115 * tree-dfa.c (create_var_ann): Likewise.
2117 * tree-cfg.c (create_bb): Likewise.
2119 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2120 (general_init): Likewise.
2122 * stringpool.c (stringpool_ggc_alloc): Likewise.
2123 (gt_pch_save_stringpool): Likewise.
2125 * sese.c (if_region_set_false_region): Likewise.
2127 * passes.c (do_per_function_toporder): Likewise.
2129 * optabs.c (set_optab_libfunc): Likewise.
2130 (set_conv_libfunc): Likewise.
2132 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2134 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2135 (input_eh_region): Likewise.
2136 (input_eh_lp): Likewise.
2137 (make_new_block): Likewise.
2138 (unpack_ts_real_cst_value_fields): Likewise.
2140 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2142 * lto-cgraph.c (input_node_opt_summary): Likewise.
2144 * loop-init.c (loop_optimizer_init): Likewise.
2146 * lambda.h (lambda_vector_new): Likewise.
2148 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2150 * ira.c (update_equiv_regs): Likewise.
2152 * ipa.c (cgraph_node_set_new): Likewise.
2153 (cgraph_node_set_add): Likewise.
2154 (varpool_node_set_new): Likewise.
2155 (varpool_node_set_add): Likewise.
2157 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2158 (duplicate_ipa_jump_func_array): Likewise.
2159 (ipa_read_node_info): Likewise.
2161 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2163 * integrate.c (get_hard_reg_initial_val): Likewise.
2165 * gimple.c (gimple_alloc_stat): Likewise.
2166 (gimple_build_omp_for): Likewise.
2167 (gimple_seq_alloc): Likewise.
2168 (gimple_copy): Likewise.
2170 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2171 (gsi_insert_after_without_update): Likewise.
2173 * function.c (add_frame_space): Likewise.
2174 (insert_temp_slot_address): Likewise.
2175 (assign_stack_temp_for_type): Likewise.
2176 (allocate_struct_function): Likewise.
2177 (types_used_by_var_decl_insert): Likewise.
2179 * except.c (init_eh_for_function): Likewise.
2180 (gen_eh_region): Likewise.
2181 (gen_eh_region_catch): Likewise.
2182 (gen_eh_landing_pad): Likewise.
2183 (add_call_site): Likewise.
2185 * emit-rtl.c (get_mem_attrs): Likewise.
2186 (get_reg_attrs): Likewise.
2187 (start_sequence): Likewise.
2188 (init_emit): Likewise.
2190 * dwarf2out.c (new_cfi): Likewise.
2191 (queue_reg_save): Likewise.
2192 (dwarf2out_frame_init): Likewise.
2193 (new_loc_descr): Likewise.
2194 (find_AT_string): Likewise.
2195 (new_die): Likewise.
2196 (add_var_loc_to_decl): Likewise.
2197 (clone_die): Likewise.
2198 (clone_as_declaration): Likewise.
2199 (break_out_comdat_types): Likewise.
2200 (new_loc_list): Likewise.
2201 (loc_descriptor): Likewise.
2202 (add_loc_descr_to_each): Likewise.
2203 (add_const_value_attribute): Likewise.
2204 (tree_add_const_value_attribute): Likewise.
2205 (add_comp_dir_attribute): Likewise.
2206 (add_name_and_src_coords_attributes): Likewise.
2207 (lookup_filename): Likewise.
2208 (store_vcall_insn): Likewise.
2209 (dwarf2out_init): Likewise.
2211 * dbxout.c (dbxout_init): Likewise.
2213 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2215 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2217 * config/score/score7.c (score7_output_external): Likewise.
2219 * config/score/score3.c (score3_output_external): Likewise.
2221 * config/s390/s390.c (s390_init_machine_status): Likewise.
2223 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2224 (rs6000_init_machine_status): Likewise.
2225 (output_toc): Likewise.
2227 * config/pa/pa.c (pa_init_machine_status): Likewise.
2228 (get_deferred_plabel): Likewise.
2230 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2232 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2234 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2236 * config/mep/mep.c (mep_init_machine_status): Likewise.
2237 (mep_note_pragma_flag): Likewise.
2239 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2241 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2243 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2245 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2246 (i386_pe_maybe_record_exported_symbol): Likewise.
2248 * config/i386/i386.c (get_dllimport_decl): Likewise.
2249 (ix86_init_machine_status): Likewise.
2250 (assign_386_stack_local): Likewise.
2252 * config/frv/frv.c (frv_init_machine_status): Likewise.
2254 * config/darwin.c (machopic_indirection_name): Likewise.
2256 * config/cris/cris.c (cris_init_machine_status): Likewise.
2258 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2260 * config/avr/avr.c (avr_init_machine_status): Likewise.
2262 * config/arm/arm.c (arm_init_machine_status): Likewise.
2264 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2265 (alpha_need_linkage): Likewise.
2266 (alpha_use_linkage): Likewise.
2268 * cgraph.c (cgraph_allocate_node): Likewise.
2269 (cgraph_create_edge_1): Likewise.
2270 (cgraph_create_indirect_edge): Likewise.
2271 (cgraph_add_asm_node): Likewise.
2273 * cfgrtl.c (init_rtl_bb_info): Likewise.
2275 * cfgloop.c (alloc_loop): Likewise.
2276 (rescan_loop_exit): Likewise.
2278 * cfg.c (init_flow): Likewise.
2279 (alloc_block): Likewise.
2280 (unchecked_make_edge): Likewise.
2282 * c-parser.c (c_parse_init): Likewise.
2283 (c_parse_file): Likewise.
2285 * c-decl.c (bind): Likewise.
2286 (record_inline_static): Likewise.
2287 (push_scope): Likewise.
2288 (make_label): Likewise.
2289 (lookup_label_for_goto): Likewise.
2290 (finish_struct): Likewise.
2291 (finish_enum): Likewise.
2292 (c_push_function_context): Likewise.
2294 * bitmap.c (bitmap_element_allocate): Likewise.
2295 (bitmap_gc_alloc_stat): Likewise.
2297 * alias.c (record_alias_subset): Likewise.
2298 (init_alias_analysis): Likewise.
2300 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
2302 * fold-const.c (fold_comparison): Remove redundant parenthesis.
2303 * tree-inline.c (expand_call_inline): Pass translated return value of
2304 cgraph_inline_failed_string to diagnostic function.
2306 2010-06-08 Andrew Pinski <pinskia@gmail.com>
2307 Shujing Zhao <pearly.zhao@oracle.com>
2310 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2311 implicit bad conversions is initialization.
2312 (error_init): Use gmsgid instead of msgid for argument name and change
2314 (pedwarn_init): Use gmsgid instead of msgid for argument name and
2315 change the call for pedwarn.
2316 (warning_init): Use gmsgid instead of msgid for argument name and
2317 change the call for warning.
2319 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
2321 * config/mips/mips-protos.h (mips_print_operand): Delete.
2322 (mips_print_operand_address): Delete.
2323 * config/mips/mips.h (mips_print_operand_punct): Delete.
2324 (PRINT_OPERAND): Delete.
2325 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2326 (PRINT_OPERAND_ADDRESS): Delete.
2327 * config/mips/mips.c (mips_print_operand_punct): Make static.
2328 (mips_print_operand_address): Make static.
2329 (mips_print_operand): Make static. Call
2330 mips_print_operand_punct_valid_p.
2331 (mips_print_operand_punct_valid_p): New function.
2332 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2333 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2335 2010-06-07 Jan Hubicka <jh@suse.cz>
2338 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2341 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
2343 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2346 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2348 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2349 attributes): Document gas.
2351 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
2353 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2354 <TYPE_LEA>: Split instruction.
2355 <default>: Remove alternative 2 handling.
2356 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2357 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2358 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2360 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2361 (ashift_zext lea splitter): Use DImode for multiplication.
2363 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2364 to generate addition.
2366 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2368 * common.opt (fira-verbose): Use Var.
2369 (fpcc-struct-return): Use Init instead of VarExists.
2370 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2372 * flags.h (flag_signed_char, flag_short_enums,
2373 flag_pcc_struct_return, flag_ira_verbose,
2374 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2375 * toplev.c (flag_detailed_statistics, flag_signed_char,
2376 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2377 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2378 * toplev.h (flag_crossjumping, flag_if_conversion,
2379 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2380 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2381 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2382 flag_cprop_registers, time_report, flag_ira_loop_pressure,
2383 flag_ira_coalesce, flag_ira_move_spills,
2384 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2386 2010-06-07 Jan Hubicka <jh@suse.cz>
2388 * df-core.c (df_analyze_problem): Do verification after allocation.
2390 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2391 (df_lr_alloc): Initialize problem data; move bitmaps to
2393 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2394 (df_lr_verify_solution_start): Do not initialize problem data;
2395 allocate bitmaps in lr_bitmaps.
2396 (df_lr_verify_solution_end): Do not free problem data.
2398 2010-06-07 Jan Hubicka <jh@suse.cz>
2400 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2401 if caller is noreturn.
2402 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2403 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2404 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2405 * ipa-pure-const.c (check_decl): Add IPA parameter.
2406 (state_from_flags): New function.
2407 (better_state, worse_state): New functions.
2408 (check_call): When in IPA mode, do not care about callees.
2409 (check_load, check_store): Update.
2410 (check_ipa_load, check_ipa_store): New.
2411 (check_stmt): When in IPA mode, use IPA checkers.
2412 (analyze_function): Use state_from_flags.
2413 (propagate): Check indirect edges and references.
2415 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
2417 PR rtl-optimization/44404
2418 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2419 of count_occurrences to see if it's safe to modify mem_insn.
2421 2010-06-07 Richard Guenther <rguenther@suse.de>
2423 * gimplify.c (gimplify_cleanup_point_expr): For empty body
2424 and EH-only cleanup drop the cleanup instead of inserting it
2427 2010-06-07 Ira Rosen <irar@il.ibm.com>
2429 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2431 * targhooks.c (default_builtin_vectorization_cost): New function.
2432 * targhooks.h (default_builtin_vectorization_cost): Declare.
2433 * target.h (enum vect_cost_for_stmt): Define.
2434 (builtin_vectorization_cost): Change argument and comment.
2435 * tree-vectorizer.h: Remove cost model macros.
2436 * tree-vect-loop.c: Include target.h.
2437 (vect_get_cost): New function.
2438 (vect_estimate_min_profitable_iters): Replace cost model macros with
2439 calls to vect_get_cost.
2440 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2441 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2442 default implementation.
2443 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2444 calls to target hook builtin_vectorization_cost.
2445 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2447 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2448 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2449 implementation to return costs.
2450 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2451 * config/spu/spu.h: Remove vectorizer cost model macros.
2452 * config/i386/i386.h: Likewise.
2453 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2454 a call to target hook builtin_vectorization_cost.
2456 2010-06-06 Sriraman Tallam <tmsriram@google.com>
2459 * config/i386/i386.c (override_options): Turn zee pass on for level 2
2460 and above and defer till target is known.
2461 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2464 2010-05-25 Jan Hubicka <jh@suse.cz>
2466 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2467 (df_compact_blocks): Likewise.
2468 * df.h (struct df): Turn hardware_regs_used,
2469 regular_block_artificial_uses, eh_block_artificial_uses,
2470 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2472 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2473 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2474 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2475 df_scan_blocks, df_insn_delete, df_insn_rescan,
2476 df_insn_rescan_debug_internal, df_insn_rescan_all,
2477 df_process_deferred_rescans, df_process_deferred_rescans,
2478 df_notes_rescan, df_get_call_refs, df_get_call_refs,
2479 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2480 df_record_entry_block_defs, df_record_exit_block_uses,
2481 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2482 df_scan_verify): Update.
2484 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2487 * c-common.c (is_typedef_decl): Move this definition ...
2488 * tree.c (is_typedef_decl): ... here.
2489 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2490 * c-common.h (is_typedef_decl): Move this declaration ...
2491 * tree.h (is_typedef_decl): ... here.
2492 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2493 * dwarf2out.c (is_naming_typedef_decl): New function.
2494 (gen_tagged_type_die): Split out of ...
2495 (gen_type_die_with_usage): ... this function. When an anonymous
2496 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2497 is emitted for the typedef.
2498 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2499 anonymous tagged types.
2501 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2504 * c-decl.c (grokdeclarator): Delete warning.
2506 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
2508 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
2509 newly built CALL_EXPR.
2510 * tree-profile.c (tree_profiling): Don't profile functions produced
2513 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
2517 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
2518 endianness-independent.
2520 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2522 * c-common.c: Move to c-family/.
2523 * c-common.def: Likewise.
2524 * c-common.h: Likewise.
2525 * c-cppbuiltin.c: Likewise.
2526 * c-dump.c: Likewise.
2527 * c-format.c: Likewise.
2528 * c-format.h : Likewise.
2529 * c-gimplify.c: Likewise.
2530 * c-lex.c: Likewise.
2531 * c-omp.c: Likewise.
2533 * c-opts.c: Likewise.
2534 * c-pch.c: Likewise.
2535 * c-ppoutput.c: Likewise.
2536 * c-pragma.c: Likewise.
2537 * c-pragma.h: Likewise.
2538 * c-pretty-print.c: Likewise.
2539 * c-pretty-print.h: Likewise.
2540 * c-semantics.c: Likewise.
2541 * stub-objc.c: Likewise.
2543 * gengtype.c (get_file_langdir): Special-case files in c-family/.
2544 (get_output_file_with_visibility): Fix name for c-common.h.
2545 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
2547 * c-tree.h: Update include path for moved files.
2548 * c-lang.c: Likewise.
2549 * c-lang.h: Likewise.
2550 * c-parser.c: Likewise.
2551 * c-convert.c: Likewise.
2552 * c-decl.c: Likewise.
2553 * c-objc-common.c: Likewise.
2554 * configure.ac: Make sure c-family/ exists in the build directory.
2555 * configure: Regenerate.
2556 * Makefile.in: Update paths for moved files. Regroup files per
2557 location and update dependencies. Move generated_files down after
2560 * config/spu/spu-c.c: Update paths for moved files.
2561 * config/mep/mep-pragma.c: Likewise.
2562 * config/darwin-c.c: Likewise.
2563 * config/i386/msformat-c.c: Likewise.
2564 * config/i386/i386-c.c: Likewise.
2565 * config/avr/avr-c.c: Likewise.
2566 * config/sol2-c.c: Likewise.
2567 * config/ia64/ia64-c.c: Likewise.
2568 * config/rs6000/rs6000-c.c: Likewise.
2569 * config/arm/arm.c: Likewise.
2570 * config/arm/arm-c.c: Likewise.
2571 * config/h8300/h8300.c: Likewise.
2572 * config/v850/v850-c.c: Likewise.
2574 * config/t-darwin: Fix dependencies for moved files.
2575 * config/t-sol2: Fix dependencies for moved files.
2576 * config/mep/t-mep: Fix dependencies for moved files.
2577 * config/ia64/t-ia64: Fix dependencies for moved files.
2578 * config/rs6000/t-rs6000: Fix dependencies for moved files.
2579 * config/v850/t-v850: Fix dependencies for moved files.
2580 * config/v850/t-v850e: Fix dependencies for moved files.
2582 * config/m32c/m32c-pragma.c
2584 * po/exgettext: Look in c-family/ also.
2586 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
2588 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
2589 (mark_control_dependent_edges_necessary): Call it instead of marking
2590 the last statement manually.
2591 (propagate_necessity): Likewise.
2593 2010-06-05 Jan Hubicka <jh@suse.cz>
2595 * basic-block.h (compute_dominance_frontiers): Updated.
2596 (compute_idf): Likewise.
2598 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
2599 for dominance frontiers.
2600 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
2601 (insert_updated_phi_nodes_for): Likewise.
2602 (update_ssa): Likewise.
2603 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2604 (compute_dominance_frontiers): Likewise.
2605 (compute_idf): Likewise.
2606 * df-problems.c (df_md_local_compute): Likewise.
2608 2010-06-05 Anatoly Sokolov <aesok@post.ru>
2610 * target.h (struct gcc_target): Add memory_move_cost field.
2611 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
2612 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
2613 * targhooks.c (default_memory_move_cost): New function.
2614 * targhooks.h (default_memory_move_cost): Declare function.
2615 * reload.h (memory_move_cost): Declare.
2616 (memory_move_secondary_cost): Change type of 'in' argument to bool.
2617 * reginfo.c (memory_move_cost): New function.
2618 (memory_move_secondary_cost): Change type of 'in' argument to bool.
2619 * ira.h (ira_memory_move_cost): Update comment.
2620 * ira.c: (ira_memory_move_cost): Update comment.
2621 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
2622 with memory_move_cost.
2623 * postreload.c (reload_cse_simplify_set): (Ditto.).
2624 * reload1.c (choose_reload_regs): (Ditto.).
2625 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
2626 (MEMORY_MOVE_COST): Revise documentation.
2628 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2629 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2630 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
2631 type of 'in' argument to bool.
2632 (TARGET_MEMORY_MOVE_COST): Define.
2634 2010-06-05 Jan Hubicka <jh@suse.cz>
2636 * ipa-pure-const.c (propagate): Fix typo in handling of functions
2637 that cannot return. Be more careful when merging the results with
2638 previously known ones.
2640 2010-06-05 Matthias Klose <doko@ubuntu.com>
2642 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
2643 function to add the -iplugindir option.
2644 (find_plugindir_spec_function): Add new declaration and function.
2645 (static_spec_func): Use it for "find-plugindir".
2647 2010-06-05 Jakub Jelinek <jakub@redhat.com>
2650 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
2651 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
2652 statement expression.
2654 2010-06-05 Jan Hubicka <jh@suse.cz>
2656 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
2657 (df_rd_problem_data): Convert sparse_invalidated_by_call,
2658 dense_invalidated_by_call to bitmap head.
2659 (df_rd_alloc, df_rd_bb_local_compute_process_def,
2660 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
2661 df_rd_start_dump, df_lr_verify_transfer_functions,
2662 df_live_verify_transfer_functions, df_chain_create_bb,
2663 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
2664 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
2665 df_simulate_one_insn_forwards, df_md_alloc,
2666 df_md_bb_local_compute_process_def,
2667 df_md_bb_local_compute_process_def, df_md_local_compute,
2668 df_md_transfer_function df_md_free): Update.
2670 2010-06-05 Joseph Myers <joseph@codesourcery.com>
2673 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
2674 target type for ADDR_EXPR; require no changes to qualifiers except
2676 * c-tree.h (c_build_type_variant): Remove.
2678 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
2680 * genautomata.c (get_excl_set): Do work per element, not per char.
2681 (check_presence_pattern_sets): Similar.
2682 (check_absence_pattern_sets): Similar.
2684 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
2686 * genautomata.c (curr_state_pass_num): Delete.
2687 (min_issue_delay_pass_states): Delete.
2688 (min_issue_delay): Delete.
2689 (initiate_min_issue_delay_pass_states): Delete.
2690 (output_min_issue_delay_table): Compute min_issue_delay_vect
2691 using a breadth-first search variant.
2692 (output_tables): Don't call initiate_min_issue_delay_pass_states.
2694 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
2697 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
2698 (df_byte_lr_bb_local_compute): Likewise.
2700 2010-06-03 Jason Merrill <jason@redhat.com>
2702 Implement noexcept operator (5.3.7)
2703 * c-common.c (c_common_reswords): Add noexcept.
2704 * c-common.h (enum rid): Add RID_NOEXCEPT.
2706 2010-06-04 Joseph Myers <joseph@codesourcery.com>
2708 * config/darwin-driver.c (darwin_default_min_version): Use
2709 GCC-specific formats in diagnostics.
2710 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
2712 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
2713 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
2714 eval_spec_function, handle_braces, process_brace_body, main,
2715 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
2716 getenv_spec_function, compare_version_strings,
2717 version_compare_spec_function): Use GCC-specific formats in
2720 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2722 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
2723 that operand 0 and operand 1 are equal.
2724 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
2725 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
2726 and operand 1 are equal.
2727 <default>: Ditto. Remove ??? comment.
2728 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
2729 and operand 1 are equal.
2730 <default>: Ditto. Remove ??? comment.
2731 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
2733 (*add<mode>_4) <default>: Ditto.
2734 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
2736 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
2738 * config/i386/i386-protos.h (ix86_print_operand): Declare.
2739 * config/i386/i386.c (ix86_print_operand): Make non-static.
2740 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
2741 * output.h (output_operand): Declare.
2742 * final.c (output_operand): Make non-static.
2744 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
2746 PR rtl-optimization/44013
2747 * sched-deps.c (add_dependence_list_and_free): Don't free lists
2748 when processing debug insns.
2751 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
2752 recursing. Check that recursion is bounded. Rename inner var
2753 to avoid hiding incoming argument.
2755 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2757 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
2762 (*addqi_ext_1_rex64): Ditto.
2763 (*addqi_ext_1): Ditto.
2765 (*addqi_4): Check for incdec_operand in QImode.
2767 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
2768 using SWI mode iterator.
2769 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
2770 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
2772 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
2773 using SWI mode iterator.
2775 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2778 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
2779 * c-format.c (gcc_diag_flag_specs): Add hash.
2780 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
2781 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
2782 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
2783 pp_c_cv_qualifiers. Handle qualifiers spelling here.
2784 (pp_c_type_qualifier_list): Call the function above.
2785 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
2786 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
2787 (WARN_FOR_QUALIFIERS): New macro.
2788 (convert_for_assignment): Use it.
2790 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
2792 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
2794 2010-06-04 Jan Hubicka <jh@suse.cz>
2796 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
2797 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
2798 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
2799 DF_BYTE_LR_OUT): Update for embedded bitmaps.
2800 * fwprop.c (single_def_use_enter_block): Likewise.
2801 * ddg.c (create_ddg_dep_from_intra_loop_link,
2802 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
2803 * loop-iv.c (latch_dominating_def): Likewise.
2804 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
2805 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
2806 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
2807 df_rd_transfer_function, df_rd_top_dump,
2808 df_rd_bottom_dump): Update.
2809 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
2810 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
2811 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
2812 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
2813 df_lr_verify_solution_start, df_lr_verify_solution_end,
2814 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
2815 df_live_free_bb_info, df_live_alloc, df_live_reset,
2816 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
2817 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
2818 df_live_verify_solution_start, df_live_verify_solution_end,
2819 df_live_verify_transfer_functions, df_chain_create_bb,
2820 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
2821 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2822 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2823 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
2824 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2825 df_byte_lr_transfer_function, df_byte_lr_top_dump,
2826 df_byte_lr_bottom_dump, df_create_unused_note,
2827 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
2828 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
2829 df_md_transfer_function, df_md_init, df_md_confluence_0,
2831 df_md_top_dump, df_md_bottom_dump): Update.
2832 (struct df_lr_problem_data): Embedd bitmap headers.
2834 2010-06-04 Jan Hubicka <jh@suse.cz>
2836 * dce.c (dce_process_block): Do not re-scan already marked
2839 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
2841 PR rtl-optimization/39871
2842 PR rtl-optimization/40615
2843 PR rtl-optimization/42500
2844 PR rtl-optimization/42502
2845 * ira.c (init_reg_equiv_memory_loc: New function.
2846 (ira): Call it twice.
2847 * reload.h (calculate_elim_costs_all_insns): Declare.
2848 * ira-costs.c: Include "reload.h".
2849 (regno_equiv_gains): New static variable.
2850 (init_costs): Allocate it.
2851 (finish_costs): Free it.
2852 (ira_costs): Call calculate_elim_costs_all_insns.
2853 (find_costs_and_classes): Take estimated elimination costs
2855 (ira_adjust_equiv_reg_cost): New function.
2856 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
2857 * reload1.c (init_eliminable_invariants, free_reg_equiv,
2858 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
2859 (elim_bb): New static variable.
2860 (reload): Move code out of here into init_eliminable_invariants and
2861 free_reg_equiv. Call them.
2862 (calculate_elim_costs_all_insns): New function.
2863 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
2864 all callers changed. If FOR_COSTS is true, don't call alter_reg,
2865 but call note_reg_elim_costly if we turned a valid memory address
2866 into an invalid one.
2867 * Makefile.in (ira-costs.o): Depend on reload.h.
2869 2010-06-04 Julian Brown <julian@codesourcery.com>
2871 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
2874 2010-06-04 Richard Guenther <rguenther@suse.de>
2877 * cgraph.h (struct varpool_node): Add lto_file_data field.
2878 * lto-cgraph.c (input_varpool_node): Initialize it.
2880 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
2882 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
2883 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
2884 predicate in "type" attribute calculation.
2885 (*addsi_1_zext): Ditto.
2886 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
2887 (*addsi_2_zext): Ditto.
2888 (*add<mode>_3): Ditto.
2889 (*addsi_3_zext): Ditto.
2890 (*add<mode>_5): Ditto.
2892 2010-06-03 Jan Hubicka <jh@suse.cz>
2894 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
2896 * cfganal.c (compute_dominance_frontiers_1): Likewise.
2898 2010-06-03 Jan Hubicka <jh@suse.cz>
2900 * df-problems.c (df_create_unused_note, df_note_bb_compute):
2901 micro-optimize the checks when to add new note.
2903 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
2905 * final.c (output_asm_insn): Call
2906 targetm.asm_out.print_operand_punct_valid_p. Update comments.
2907 (output_operand): Call targetm.asm_out.print_operand. Update comments.
2908 (output_address): Call targetm.asm_out.print_operand_address.
2910 * target.h (struct gcc_target): Add print_operand,
2911 print_operand_address, and print_operand_punct_valid_p fields.
2912 * targhooks.h (default_print_operand): Declare.
2913 (default_print_operand_address): Declare.
2914 (default_print_operand_punct_valid_p): Declare.
2915 * targhooks.c (default_print_operand): Define.
2916 (default_print_operand_address): Define.
2917 (default_print_operand_punct_valid_p): Define.
2918 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
2919 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
2920 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2921 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
2922 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
2923 * vmsdbgout.c (addr_const_to_string): Update comment.
2924 * config/i386/i386.c (print_operand): Rename to...
2925 (ix86_print_operand): ...this. Make static.
2926 (print_operand_address): Rename to...
2927 (ix86_print_operand_address): ...this. Make static. Call
2928 ix86_print_operand instead of PRINT_OPERAND.
2929 (ix86_print_operand_punct_valid_p): New function.
2930 (TARGET_PRINT_OPERAND): Define.
2931 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2932 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2933 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
2934 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2935 (PRINT_OPERAND): Delete.
2936 (PRINT_OPERAND_ADDRESS): Delete.
2937 * config/i386/i386-protos.h (print_operand): Delete prototype.
2938 (print_operand_address): Delete prototype.
2940 2010-06-03 Richard Guenther <rguenther@suse.de>
2942 PR tree-optimization/44403
2943 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2944 Preserve pointer qualifiers.
2945 (vect_create_data_ref_ptr): Likewise.
2947 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
2950 * defaults.h (MAX_FIXED_MODE_SIZE): New.
2952 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
2954 2010-06-03 Jakub Jelinek <jakub@redhat.com>
2957 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
2958 return false if merging the bbs would lead to goto_locus
2959 location being lost from the IL.
2961 2010-06-03 Jan Hubicka <jh@suse.cz>
2962 Jakub Jelinek <jakub@redhat.com>
2964 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
2965 set->regs[i] is NULL or has just one entry.
2967 2010-06-03 Jan Hubicka <jh@suse.cz>
2969 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
2970 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
2972 2010-06-03 Paul Brook <paul@codesourcery.com>
2974 * config/arm/arm.c (FL_TUNE): Define.
2975 (arm_default_cpu, arm_cpu_select): Remove.
2976 (all_cores): Populate core field.
2977 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
2978 (arm_find_cpu): New function.
2979 (arm_handle_option): Lookup cpu/architecture names.
2980 (arm_override_options): Cleanup mcpu/march/mtune handling.
2981 (arm_file_start): Ditto.
2983 2010-06-03 Alan Modra <amodra@gmail.com>
2986 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
2987 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
2988 rtx to gen_load_toc_v4_PIC_1b. Tidy.
2989 (rs6000_emit_load_toc_table): Likewise.
2991 2010-06-02 Jan Hubicka <jh@suse.cz>
2993 * passes.c (init_optimization_passes): Put ipa reference
2994 after ipa pure-const.
2996 2010-06-02 Jan Hubicka <jh@suse.cz>
2998 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
2999 calls_read_all and calls_write_all.
3000 (get_reference_optimization_summary): Fix formatting.
3001 (is_proper_for_analysis): Check that decl is not readonly.
3002 (propagate_bits): Check CONST/PURE/noreturn flags.
3003 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3004 (analyze_function): Ignore indirect edges.
3005 (copy_global_bitmap): For all module statics, do nothing.
3006 (generate_summary): Do not print calls_read_all/calls_write_all.
3007 (read_write_all_from_decl): Take node as argument; check
3008 cgraph_node_cannot_return.
3009 (propagate): Reorganize read_all/write_all computation;
3010 check indirect edges; check ecf flags; use all_module_statics
3011 in the results; do not free all_module_statics.
3012 (stream_out_bitmap): Handle all_module_statics.
3013 (ipa_reference_write_optimization_summary): Likewise; use
3014 varpool/cgraph encoders to get boundaries.
3015 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3016 use it when possible.
3018 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3021 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3022 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3024 * doc/extend.texi (powerpc builtins): Document vec_recip,
3025 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3027 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3028 (rs6000_emit_swrsqrt): Ditto.
3029 (rs6000_emit_swdivsf): Delete.
3030 (rs6000_emit_swdivdf): Ditto.
3031 (rs6000_emit_swrsqrtsf): Ditto.
3033 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3034 describe the reciprocal estimate support for each type.
3035 (recip_options): Map -mrecip=<opt> into option bits.
3036 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3037 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3038 reciprocal estimate instructions.
3039 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3040 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3041 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3042 cost information if -mdebug=cost or -mdebug=reg.
3043 (rs6000_override_options): Set -mrecip-precision for power6, and
3044 power7 machines. If -mvsx or -mdfp, enable various options that
3045 came in previous instruction set ISAs, unless the option was
3046 explicitly disabled by the command line option. Parse
3047 -mrecip=<opt> options.
3048 (rs6000_builtin_vectorized_function): Add support for vectorizing
3049 the reciprocal estimate builtins and expansions.
3050 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3051 (bdesc_2arg): Add reciprocal estimate builtins.
3052 (bdesc_1arg): Add reciprocal square root estimate builtins.
3053 (rs6000_expand_builtin): Rewrite to use a switch statement,
3054 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3055 (rs6000_init_builtins): Create declarations for reciprocal
3057 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3058 sized, prefer traditional floating point registers, if integer
3059 vector types, prefer altivec registers. Don't actually look at
3060 the memory address any more.
3061 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3063 (rs6000_load_constant_and_splat): New helper function to load up
3064 the constant for reciprocal estimate instructions.
3065 (rs6000_emit_madd): New helper function for generating
3066 multiply/add type instructions, based on the current switches.
3067 (rs6000_emit_msub): Ditto.
3068 (rs6000_emit_mnsub): Ditto.
3069 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3070 replace a divide with a reciprocal estimate and fixup, adding
3071 support for machines with high precision and vectors.
3072 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3073 low precision machines.
3074 (rs6000_emit_swdiv): New common function to be called to replace a
3075 division with reciprocal estimate and fixup.
3076 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3077 for double and vector types. Add support for high precision machines.
3079 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3080 the reciprocal estimate instructions can be generated.
3081 (TARGET_FRE): Ditto.
3082 (TARGET_FRSQRTES): Ditto.
3083 (TARGET_FRSQRTE): Ditto.
3084 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3086 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3087 square root estimate on vectors.
3088 (re<mode>2): New insn for reciprocal division estimate on vectors.
3090 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3092 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3093 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3094 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3095 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3096 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3097 (RS6000_BUILTIN_RSQRT): Ditto.
3098 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3099 floating point builtin.
3101 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3102 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3103 __RECIP_PRECISION__ based on the command line switches.
3104 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3106 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3107 replacing division instructions with reciprocal estimate and fixup.
3108 (-mrecip=<opt>): New option.
3109 (-mrecip-precision): Ditto.
3111 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3112 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3113 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3116 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3117 (UNSPEC_VREFP): Ditto.
3118 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3119 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3120 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3121 reciprocal estimate instructions to be generated.
3122 (altivec_vrefp): Ditto.
3124 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3126 (rreg): New mode attribute for reciprocal estimate support.
3127 (recip<mode>3): New insn for division using reciprocal estimate
3129 (divide define_split): New define_split to convert floating point
3130 division to use reciprocal estimate if the user used the
3131 appropriate options and the split is run when we can add new
3132 pseudo registers for the fixup.
3133 (rsqrt<mode>2): New insn for reciprocal square root support.
3134 (recipsf3): Move into recip<mode>3.
3136 (fres): Use TARGET_FRES.
3137 (rsqrtsf2): Move into rsqrt<mode>2.
3138 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3139 (copysignsf3): Add support for VSX.
3140 (fred): Use TARGET_FRE.
3142 (rsqrtdf_internal1): New function for frsqrte instruciton.
3144 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3147 2010-06-03 Richard Guenther <rguenther@suse.de>
3150 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3151 (set_user_assembler_libfunc): Likewise.
3153 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3155 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3157 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3159 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3160 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3161 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3162 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3163 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3164 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3165 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3166 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3167 * defaults.h: Updated for above mentioned changes.
3169 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3171 * c-common.c: Remove header include of tm_p.h.
3172 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3174 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3176 * tree.h (struct tree_decl_map): New type.
3177 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3178 (tree_decl_map_hash): New prototype.
3179 (debug_expr_for_decl, value_expr_for_decl): Change into
3180 tree_decl_map hashtab from tree_map.
3181 (init_ttree): Adjust initialization.
3182 (tree_decl_map_hash): New function.
3183 (decl_debug_expr_lookup, decl_debug_expr_insert,
3184 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3186 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3188 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3190 * configure: Regenerate.
3191 * config.in: Regenerate.
3193 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3194 (X86_64_EMULATION): Define.
3195 (TARGET_LD_EMULATION): Use them.
3197 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3198 (SPARC64_EMULATION): Define.
3199 (LINK_ARCH_SPEC): Use them.
3201 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3203 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3204 smallest_mode_for_size for computing the precision types of new
3205 graphite IVs. Do not call lang_hooks.types.type_for_size.
3207 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3209 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3211 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3213 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3216 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3217 return false instead.
3219 2010-06-02 Jan Hubicka <jh@suse.cz>
3222 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3223 create new cgraph node to check callee.
3225 2010-06-02 Richard Guenther <rguenther@suse.de>
3227 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3229 2010-06-02 Richard Guenther <rguenther@suse.de>
3231 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3232 (lto_wrapper_cleanup): ... this. Do not exit.
3233 (fatal): Adjust. Exit here.
3234 (fatal_perror): Likewise.
3235 (fatal_signal): New function.
3236 (main): Set up signal handlers to cleanup temporary files.
3237 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3239 2010-06-02 Richard Guenther <rguenther@suse.de>
3241 PR tree-optimization/44377
3242 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3244 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3246 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3247 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3248 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3249 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3251 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3253 2010-06-02 Jan Hubicka <jh@suse.cz>
3255 * bitmap.c (bitmap_descriptor): Add search_iter.
3256 (bitmap_find_bit): Increment it.
3257 (print_statistics): Print it.
3259 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3261 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3262 instead of gimple_build_call_vec. Delete unnecessary local variable.
3264 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3266 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3267 change from yesterday.
3269 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3271 * c-ada-spec.c: Clean up redundant includes.
3273 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3275 * gimplify.c: Do not include except.h and optabs.h.
3276 (gimplify_body): Do not initialize RTL profiling.
3277 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3278 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3279 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3280 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3283 * tree-pretty-print.h: Include pretty-print.h.
3284 * gimple-pretty-print.h: Include pretty-print.h.
3286 * tree-pretty-print.c: Do not include diagnostic.h.
3287 * tree-vrp.c: Likewise.
3288 * tree-tailcall.c: Likewise
3289 * tree-scalar-evolution.c: Likewise
3290 * tree-ssa-dse.c: Likewise
3291 * tree-chrec.c: Likewise
3292 * tree-ssa-sccvn.c: Likewise
3293 * tree-ssa-copyrename.c: Likewise
3294 * tree-nomudflap.c: Likewise
3295 * tree-call-cdce.c: Likewise
3296 * tree-stdarg.c: Likewise
3297 * tree-ssa-math-opts.c: Likewise
3298 * tree-nrv.c: Likewise
3299 * tree-ssa-sink.c: Likewise
3300 * tree-browser.c: Likewise
3301 * tree-ssa-loop-ivcanon.c: Likewise
3302 * tree-ssa-loop.c: Likewise
3303 * tree-parloops.c: Likewise
3304 * tree-ssa-address.c: Likewise
3305 * tree-ssa-ifcombine.c: Likewise
3306 * tree-if-conv.c: Likewise
3307 * tree-data-ref.c: Likewise
3308 * tree-affine.c: Likewise
3309 * tree-ssa-phiopt.c: Likewise
3310 * tree-ssa-coalesce.c: Likewise
3311 * tree-ssa-pre.c: Likewise
3312 * tree-ssa-live.c: Likewise
3313 * tree-predcom.c: Likewise
3314 * tree-ssa-forwprop.c: Likewise
3315 * tree-ssa-dce.c: Likewise
3316 * tree-ssa-ter.c: Likewise
3317 * tree-ssa-loop-prefetch.c: Likewise
3318 * tree-optimize.c: Likewise
3319 * tree-ssa-phiprop.c: Likewise
3320 * tree-object-size.c: Likewise
3321 * tree-outof-ssa.c: Likewise
3322 * tree-ssa-structalias.c: Likewise
3323 * tree-switch-conversion.c: Likewise
3324 * tree-ssa-reassoc.c: Likewise
3325 * tree-ssa-operands.c: Likewise
3326 * tree-vectorizer.c: Likewise
3327 * tree-vect-data-refs.c: Likewise
3328 * tree-vect-generic.c: Likewise
3329 * tree-vect-stmts.c: Likewise
3330 * tree-vect-patterns.c: Likewise
3331 * tree-vect-slp.c: Likewise
3332 * tree-vect-loop.c: Likewise
3333 * tree-ssa-loop-ivopts.c: Likewise
3334 * tree-ssa-loop-im.c: Likewise
3335 * tree-ssa-loop-niter.c: Likewise
3336 * tree-ssa-loop-unswitch.c: Likewise
3337 * tree-ssa-loop-manip.c: Likewise
3338 * tree-ssa-loop-ch.c: Likewise
3339 * tree-dump.c: Likewise
3340 * tree-complex.c: Likewise
3342 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3343 * tree-ssa-uninit.c: Likewise
3344 * tree-ssa-threadupdate.c: Likewise
3345 * tree-ssa-uncprop.c: Likewise
3346 * tree-ssa-ccp.c: Likewise
3347 * tree-ssa-dom.c: Likewise
3348 * tree-ssa-propagate.c: Likewise
3349 * tree-ssa-alias.c: Likewise
3350 * tree-dfa.c: Likewise
3351 * tree-cfgcleanup.c: Likewise
3352 * tree-sra.c: Likewise
3353 * tree-ssa-copy.c: Likewise
3354 * tree-ssa.c: Likewise
3355 * tree-profile.c: Likewise
3356 * tree-cfg.c: Likewise
3357 * tree-ssa-threadedge.c: Likewise
3358 * tree-vect-loop-manip.c: Likewise
3360 * tree-inline.c: Do not include diagnostic.h and expr.h.
3362 (copy_decl_for_dup_finish): Do not use NULL_RTX.
3364 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3365 * tree-loop-distribution.c: Likewise.
3367 2010-06-01 Jan Hubicka <jh@suse.cz>
3369 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3371 2010-06-01 Jan Hubicka <jh@suse.cz>
3373 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3374 remove return value.
3375 (split_bbs_on_noreturn_calls) .... here.
3376 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3377 * tree-flow.h (fixup_noreturn_call): New.
3379 2010-06-01 Jan Hubicka <jh@suse.cz>
3381 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3383 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
3385 * tree.h (build_nt_call_list): Delete.
3386 * tree.c (build_nt_call_list): Delete.
3388 2010-06-01 Jan Hubicka <jh@suse.cz>
3390 * fwprop.c: Make emit-rtl.h include last.
3391 * rtlanal.c: Include emit-rtl.h.
3392 * genautomata.c: Output emit-rtl include into insn-automata.c
3393 * df-scan.c: Include emit-rtl.h.
3394 * haifa-sched.c: Indlude emit-rtl.h.
3395 * mode-switching.c: Indlude emit-rtl.h.
3396 * graph.c: Indlude emit-rtl.h.
3397 * sel-sched.c: Include emit-rtl.h.
3398 * sel-sched-ir.c: Include emit-rtl.h.
3399 * ira-build.c: Include emit-rtl.h.
3400 * emit-rtl.c: (first_insn, last_insn): Remove defines.
3401 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3403 (set_new_first_and_last_insn, get_last_insn_anywhere,
3404 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3405 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3406 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3407 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3408 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3409 Use accessor functions.
3410 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3411 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3412 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3413 mem_expr_equal_p): Move here from rtl.h.
3414 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3415 Move here from emit-rtl.c; make inline.
3416 * cfglayout.h: Include emit-rtl.h.
3417 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3418 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3419 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3420 mem_expr_equal_p, get_insns, set_first-insn,
3421 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3422 * reg-stack.c: Include emit-rtl.h.
3425 2010-06-01 Jan Hubicka <jh@suse.cz>
3427 * cgraph.h (tree_function_versioning): Update prototype.
3428 (cgraph_function_versioning): Update prototype.
3429 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3431 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3432 (cgraph_materialize_clone, save_inline_function_body): Update use of
3433 tree_function_versioning.
3434 * tree-inline.c (copy_bb): Look for previous copied block to link
3435 after; fix debug output.
3436 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3437 (copy_body): Likewise.
3438 (expand_call_inline): Update use of copy_body.
3439 (tree_function_versioning): Update use of copy body; accept
3440 blocks_to_copy and new_entry.
3442 2010-06-01 Jan Hubicka <jh@suse.cz>
3444 * gegenrtl.c: Remove unnecesary prototypes.
3446 (gendef): Produce static inline.
3448 (main): Do not decode parameters; generate header only.
3449 * Makefile.in (genrtl.c): Remove.
3451 2010-06-01 Jan Hubicka <jh@suse.cz>
3453 * tree-switch-conversion.c (build_one_array): Make it readonly.
3455 2010-06-01 Richard Guenther <rguenther@suse.de>
3457 * optabs.c (init_optabs): Guard all accesses to reinit.
3458 * ipa-pure-const.c (propagate): Fix another typo.
3459 * opts.c (common_handle_option): Split assignment to bool.
3460 * c-opts.c (c_common_handle_option): Likewise.
3462 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3463 Matthew Gingell <gingell@adacore.com>
3465 * doc/invoke.texi: Mention -fdump-ada-spec.
3466 * tree-dump.c (dump_files): Add ada-spec.
3467 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3468 * tree-pass.h (tree_dump_index): Add TDI_ada.
3469 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3470 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3471 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3472 * c-decl.c: Include c-ada-spec.h.
3473 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3475 (c_write_global_declarations): Add handling of -fdump-ada-spec.
3476 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3477 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3478 * c-ada-spec.h, c-ada-spec.c: New files.
3480 2010-06-01 Richard Guenther <rguenther@suse.de>
3483 * ipa-pure-const.c (get_function_state): Hand back varying state
3484 if we do not have one.
3485 (has_function_state): New function.
3486 (duplicate_node_data): Adjust.
3487 (remove_node_data): Likewise.
3488 (pure_const_write_summary): Likewise.
3489 (propagate): Likewise. Fix typo.
3491 2010-06-01 Jan Hubicka <jh@suse.cz>
3493 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
3494 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
3495 (execute_all_ipa_transforms): Do not play with the states.
3497 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3499 * config/arm/t-linux-androideabi: New.
3500 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
3502 2010-06-01 Jan Hubicka <jh@suse.cz>
3504 * tree-inline.c (estimate_num_insns): For stdarg functions look
3505 into call statement to count cost of argument passing.
3507 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
3509 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
3510 argument for fprintf.
3511 (ix86_output_addr_diff_elt): Likewise.
3512 (x86_function_profiler): Likewise.
3513 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
3514 (LPREFIX): Likewise.
3515 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3517 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3520 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
3521 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
3522 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
3523 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
3524 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
3525 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
3526 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
3527 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
3530 2010-05-31 Jan Hubicka <jh@suse.cz>
3532 * tree.h (tree_range_check_failed): Declare noreturn.
3534 2010-05-31 Jan Hubicka <jh@suse.cz>
3536 * gimple.c (gimple_call_builtin_p): New function.
3537 * gimple.h (gimple_call_builtin_p): Declare.
3538 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
3540 (execute_warn_function_return): BUILT_IN_RETURN is return.
3541 (split_critical_edges): Return edges are not critical.
3542 (is_ctrl_altering_stmt): Builtin_in_return is altering.
3543 (gimple_verify_flow_info): Handle built_in_return.
3544 (execute_warn_function_return): Handle built_in_return.
3545 * ipa-pure-const.c (check_call): Ignore builtin_return.
3547 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3550 * expr.c (expand_assignment): Don't store anything for out-of-bounds
3551 array accesses with non-MEM.
3553 PR tree-optimization/44182
3554 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
3555 newly needs to end a bb is followed by debug stmts, instead return
3556 true from the function at the end.
3557 (maybe_move_debug_stmts_to_successors): New function.
3558 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
3560 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
3563 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
3565 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
3567 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
3568 for nested functions in non-optimized compilation.
3570 2010-05-31 Richard Guenther <rguenther@suse.de>
3572 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
3574 2010-05-30 Jan Hubicka <jh@suse.cz>
3576 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
3578 2010-05-30 Richard Guenther <rguenther@suse.de>
3581 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
3582 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
3585 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
3587 * config/darwin.c (output_objc_section_asm_op): Add comment.
3588 (name_needs_quotes): Add '_' to list of valid comment chars.
3589 (machopic_output_function_base_name): Remove unneeded quotes.
3590 (darwin_encode_section_info): Adjust asm whitespace.
3591 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
3592 (ASM_OUTPUT_LOCAL): Ditto.
3593 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
3594 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
3595 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
3597 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
3599 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
3600 RS6000_OUTPUT_BASENAME unconditionally.
3601 (rs6000_output_function_epilogue): Likewise.
3603 2010-05-30 Jan Hubicka <jh@suse.cz>
3605 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
3608 2010-05-30 Richard Guenther <rguenther@suse.de>
3610 * tree-cfg.c (verify_gimple_assign_single): Implement
3611 verification for COND_EXPR rhs.
3613 2010-05-30 Jan Hubicka <jh@suse.cz>
3615 * cgraph.h (cgraph_dump_file): Declare.
3616 * cgraphunit.c (cgraph_dump_file): Export.
3617 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
3619 2010-05-30 Jan Hubicka <jh@suse.cz>
3621 * dwarf2out.c (reference_to_unused,
3622 premark_types_used_by_global_vars_helper): Avoid creation of new
3625 2010-05-30 Jan Hubicka <jh@suse.cz>
3627 * cgraph.h (cgraph_node_cannot_return,
3628 cgraph_edge_cannot_lead_to_return): New functions.
3629 * cgraph.c (cgraph_node_cannot_return,
3630 cgraph_edge_cannot_lead_to_return): Use them.
3631 * ipa-pure-const.c (pure_const_names): New static var.
3632 (check_call): Handle calls not leading to return.
3633 (pure_const_read_summary): Dump info read.
3634 (propagate): Dump info about propagation process; ignore side effects
3635 of functions not leading to exit; fix handling of pure functions.
3637 2010-05-30 Jan Hubicka <jh@suse.cz>
3639 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
3640 for tail call epilogues.
3642 2010-05-30 Jan Hubicka <jh@suse.cz>
3644 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
3645 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
3648 2010-05-29 Jan Hubicka <jh@suse.cz>
3650 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
3651 node; remove references in node we no longer keep in cgrpah but need
3654 2010-05-29 Jan Hubicka <jh@suse.cz>
3656 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
3658 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3661 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
3663 2010-05-29 Jan Hubicka <jh@suse.cz>
3665 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
3666 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
3667 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
3668 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
3669 debug_names_replaced_by, debug_update_ssa): Likewise.
3670 * sbitmap.c (debug_sbitmap): Likewise.
3671 * genrecog.c (debug_decision, debug_decision_list): Likewise.
3672 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
3673 debug_tree_chain): Likewise.
3674 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
3675 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
3676 * optabs.c (debug_optab_libfuncs): Likewise.
3677 (verify_loop_closed_ssa): Likewise.
3678 * value-prof.c (verify_histograms): Likewise.
3679 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
3680 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
3681 * cfghooks.c (verify_flow_info): Likewise.
3682 * fold-const.c (debug_fold_checksum): Likewise.
3683 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
3684 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
3686 * omega.c (debug_omega_problem): Likewise.
3687 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
3688 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
3689 * dominance.c (verify_dominators, debug_dominance_info,
3690 debug_dominance_tree): Likewise.
3691 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
3692 * df_regno_debug, df_ref_debug,
3693 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
3694 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
3695 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
3696 * sel-sched.c (debug_state): Likewise.
3697 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
3699 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
3700 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
3701 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
3702 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
3704 * c-pretty-print.c (debug_c_tree): Likewise.
3705 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
3706 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
3707 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
3708 * ebitmap.c (debug_ebitmap): Likewise.
3709 * function.c (debug_find_var_in_block_tree): Likewise.
3710 * print-rtl.c (debug_rtx): Likewise.
3711 (debug_rtx_count): Likewise.
3712 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
3713 * stor-layout.c (debug_rli): Likewise.
3714 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
3715 * tree-data-ref.c (debug_data_references,
3716 debug_data_dependence_relations, debug_data_reference,
3717 debug_data_dependence_relation, debug_rdg_vertex,
3718 debug_rdg_component, debug_rdg): Likewise.
3719 * tree-affine.c (debug_aff): Likewise.
3720 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
3722 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
3723 * emit-rtl.c (verify_rtl_sharing): Likewise.
3724 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
3725 debug_value_expressions): Likewise.
3726 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
3727 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
3728 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
3729 * cfglayout.c (verify_insn_chain): Likewise.
3730 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
3731 debug_clast_stmt, debug_generated_program): Likewise.
3732 * ggc-page.c (debug_print_page_list): Likewise.
3733 * tree-ssa-ter.c (debug_ter): Likewise.
3734 * graphite-dependences.c (debug_pddr): Likewise.
3735 * sched-deps.c (debug_ds): Likewise.
3736 * tree-ssa.c (verify_ssa): Likewise.
3737 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
3738 debug_scattering_functions, debug_iteration_domains, debug_pdr,
3739 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
3740 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
3741 * tree-inline.c (debug_find_tree): Likewise.
3742 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
3743 debug_ppl_powerset_matrix): Likewise.
3744 * var-tracking.c (debug_dv): Likewise.
3745 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
3746 * cfgloop.c (verify_loop_structure): Likewise.
3747 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
3748 * c-common.c (verify_sequence_points): Likewise.
3749 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
3750 debug_candidates, debug_rgn_dependencies): Likewise.
3751 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
3752 * debug_constraint_graph, debug_solution_for_var,
3753 debug_sa_points_to_info): Likewise.
3754 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
3756 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
3757 debug_loops, debug_loop, debug_loop_num): Likewise.
3758 * passes.c (debug_pass): Likewise.
3759 (dump_properties): Likewise; add cfglayout property.
3760 (debug_properties): Likewise.
3761 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
3762 * varpool.c (debug_varpool): Likewise.
3763 * regcprop.c (debug_value_data): Likewise.
3764 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
3765 debug_immediate_uses_for): Likewise.
3767 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
3770 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
3771 Filter out insn-flags.h.
3773 2010-05-29 Jan Hubicka <jh@suse.cz>
3775 * cgraph.h (struct varpool_node_set_def,
3776 struct cgraph_node_set_def): Remove unused AUX pointer.
3777 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
3780 2010-05-29 Jan Hubicka <jh@suse.cz>
3783 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
3785 2010-05-29 Richard Guenther <rguenther@suse.de>
3787 * lto-streamer.c (cached_bp): New global variable.
3788 (bitpack_create): Return the cached bitpack, if available.
3789 (bitpack_delete): Clear and cache the bitpack, if appropriate.
3790 (bp_pack_value): Remove redundant asserts.
3792 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
3795 * tree-if-conv.c (is_true_predicate): New.
3796 (is_predicated): Use is_true_predicate.
3797 (add_to_predicate_list): Same. Do not use unshare_expr.
3798 (add_to_dst_predicate_list): Same.
3800 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
3802 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
3804 (predicate_bbs): Same.
3805 (clean_predicate_lists): Same.
3806 (find_phi_replacement_condition): Do not AND the predicate from
3809 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
3812 * Makefile.in (build/gencondmd.o): Add a missing `\'.
3814 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3817 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
3818 (negdf2): Adjust expander pattern and use negdf2_slow.
3821 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
3823 * basic-block.h (struct control_flow_graph): Move last_label_uid field
3825 * df.h (struct df_base_ref): Move regno field up.
3826 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
3827 * expr.h (struct separate_ops): Move location field up.
3828 * optabs.h (struct optab_d): Move libcall_basename field down.
3829 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
3830 * config/i386/i386.h (struct machine_function): Convert call_abi field
3831 into a bitfield. Move cfa field to the end of the structure.
3833 2010-05-29 Jan Hubicka <jh@suse.cz>
3835 * varpool.c (varpool_get_node): Fix lookup.
3837 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3839 * config/spu/spu-protos.h: Do not include rtl.h. Protect
3840 RTL specific prototypes with #ifdef RTX_CODE.
3841 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
3842 * config/spu/t-spu-elf: Fix dependencies.
3844 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
3846 2010-05-29 Mike Stump <mikestump@comcast.net>
3849 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
3850 TM_H when building to avoid dependency loops.
3852 2010-05-29 Jan Hubicka <jh@suse.cz>
3854 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
3855 refs and body; not the whole node for masters of materialized clones.
3857 2010-05-29 Mike Stump <mikestump@comcast.net>
3859 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
3861 2010-05-29 Jan Hubicka <jh@suse.cz>
3863 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
3864 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
3865 use of clone_function_name.
3866 * cgraph.h (cgraph_create_virtual_clone,
3867 cgraph_function_versioning): update prototypes.
3868 (clone_function_name): Declare.
3869 * ipa-cp.c (ipcp_insert_stage): Update call of
3870 cgraph_create_virtual_clone.
3871 * omp-low.c (create_omp_child_function_name): Use
3872 cgraph_create_virtual_clone.
3873 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
3874 (cgraph_function_versioning): Take SUFFIX argument; produce new name
3875 and make decl local.
3877 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3879 * vec.h: Include statistics.h
3880 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
3883 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3885 * c-lex.c: Do not include c-tree.h.
3886 * c-pretty-print.c: Likewise.
3887 * c-opts.c: Likewise.
3888 * c-gimplify.c: Likewise.
3889 * c-common.c: Likewise.
3890 * c-dump.c: Likewise. Include c-common.h.
3892 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3894 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
3895 before including diagnostic-core.h.
3896 (c_cpp_error): New prototype moved from c-tree.h.
3897 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
3898 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
3899 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
3900 (c_cpp_error): Prototype moved to c-common.h.
3901 * Makefile.in: Update dependency for C_COMMON_H.
3903 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3905 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
3906 * c-common.c (c_register_addr_space): Remove here.
3907 * c-decl.c (c_register_addr_space): Re-add here.
3909 2010-05-28 Mike Stump <mikestump@comcast.net>
3911 * config/darwin-c.c: Remove c-tree.h include.
3913 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3915 * gcc.c: Include diagnostic.h.
3916 (error_count): Remove. All users changed to use errorcount.
3917 (programname): Remove. All users changed to use progname.
3918 (fancy_abort, internal_error, fatal_error, error, warning, inform,
3920 (execute): Don't include "Internal error" and bug reporting
3921 information in argument of internal_error call.
3922 (process_command): Don't increment error_count after calling
3924 (input_filename): Rename to gcc_input_filename. All users
3926 (main): Call diagnostic_initialize. Register delete_temp_files
3927 with atexit. Use seen_error to test for errors.
3928 * gcc.h: Include diagnostic-core.h.
3929 (fatal_error, error, warning): Remove.
3930 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
3931 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
3932 (gcc.o): Update dependencies.
3934 2010-05-28 Jeff Law <law@redhat.com>
3936 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
3938 * ira.h (ira_bad_reload_regno): Declare
3939 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
3941 * ira-color.c (update_curr_costs): Free updated hard reg costs.
3942 (ira_reassign_conflict_allocnos): Remove bogus asserts.
3943 (allocno_reload_assign): Likewise.
3945 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
3947 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
3950 2010-05-28 Richard Guenther <rguenther@suse.de>
3953 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
3954 Stream fixed-point constants mode.
3955 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
3957 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
3958 Stream fixed-point constants mode.
3959 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
3962 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3964 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
3965 only place it was called from.
3966 (number_of_latch_executions): Do not return chrec_dont_know when the
3967 may_be_zero is a runtime condition: instead, return a COND_EXPR
3968 including the may_be_zero condition.
3969 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
3971 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
3974 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3976 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
3977 generate COND_EXPRs for degenerate_phi_result.
3979 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
3982 * tree-if-conv.c (if_convertible_loop_p): Check the
3983 if-convertibility of phi nodes in non predicated BBs.
3985 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3987 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
3989 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3992 * gcc.c (inform, warning, inform): New functions.
3993 (fatal_ice): Rename to internal_error; change cmsgid parameter to
3994 gmsgid. All callers changed.
3995 (notice): Rename to fnotice; add parameter fp. All callers changed.
3996 (fatal_error): Rename to fatal_signal. All users changed.
3997 (fatal): Rename to fatal_error; change cmsgid parameter to
3998 gmsgid. All callers changed.
3999 (process_command): Use warning instead of error for warnings.
4000 (end_going_arg): Don't use _() around argument of error.
4001 (do_spec_1): Use inform for message from %n specs. Use warning
4002 instead of error for warnings.
4003 (main): Use inform for comparison messages. Use warning for
4004 message about unused linker input.
4005 (error): Increment error_count. Print "error: ".
4006 * gcc.h (fatal): Change to fatal_error.
4008 * config/darwin-driver.c (darwin_default_min_version): Use warning
4009 instead of fprintf for warnings.
4010 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4012 2010-05-28 Julian Brown <julian@codesourcery.com>
4014 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4015 (*thumb2_addsi3_compare0_scratch): New.
4016 * config/arm/constraints.md (Pv): New.
4017 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4019 (*addsi3_compare0_scratch): Likewise.
4021 2010-05-28 Jan Hubicka <jh@suse.cz>
4023 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4025 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4026 only on local statics.
4028 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4030 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4032 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4035 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4036 (OPTION_GLIBC): Define.
4038 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4041 * dwarf2out.c (double_int_type_size_in_bits): New function.
4042 (round_up_to_align): Change first argument and return value to
4044 (field_byte_offset): Work internally on double_ints.
4047 * builtins.c (expand_movstr): Use a temporary pseudo instead
4048 of target even when target is not NULL and not const0_rtx, but
4049 fails movstr predicate.
4050 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4052 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4054 * final.c (rest_of_clean_state): Use %m in errors instead of
4056 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4057 instead of strerror.
4058 * toplev.c (process_options): Use %m in errors instead of strerror
4060 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4063 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4065 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4066 (ix86_canonical_va_list_type): Make static. Add declaration.
4067 (ix86_enum_va_list): Make static. Reindent.
4068 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4069 (ix86_canonical_va_list_type): Ditto.
4070 (ix86_enum_va_list): Ditto.
4072 2010-05-28 Richard Guenther <rguenther@suse.de>
4074 * lto-wrapper.c (run_gcc): With -save-temps generate a
4075 user-visible ltrans filename. Fixup ltrans unit numbering.
4077 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4079 * c-common.c (c_common_nodes_and_builtins): Replace use
4080 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4081 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4082 to ix86_enum_va_list.
4083 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4084 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4085 (TARGET_ENUM_VA_LIST_P): Add hook description.
4086 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4087 * target.h (gcc_target): Add enum_va_list hook.
4090 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4091 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4092 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4094 2010-05-28 Alan Modra <amodra@gmail.com>
4097 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4098 emit_library_call machinery to set up __tls_get_addr calls.
4100 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4102 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4104 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4106 Revert fix for PR c++/44188
4107 * c-common.c (is_typedef_decl): Revert the moving of this
4109 * tree.c (is_typedef_decl): ... here.
4110 (typdef_variant_p): Revert the moving of this definition
4111 here from gcc/cp/tree.c.
4112 * c-common.h (is_typedef_decl): Revert the moving of this
4114 * tree.h (is_typedef_decl): ... here.
4115 (typedef_variant_p): Revert the moving of this declaration here
4116 from gcc/cp/cp-tree.h
4117 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4118 (gen_tagged_type_die): Revert the splitting out of ...
4119 (gen_type_die_with_usage): ... this function. Revert the anonymous
4120 tagged type handling.
4121 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4122 typedefs naming anonymous tagged types.
4124 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4126 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4128 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4130 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4131 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4133 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4135 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4136 XER_REGS to CA_REGS throughout.
4137 * config/rs6000/rs6000.h: Same.
4138 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4139 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4140 that mode_iterator "P" is the size for arithmetic carries as well.
4141 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4143 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4146 * combine.c (struct rtx_subst_pair): Define unconditionally.
4147 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4148 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4149 Call make_compound_operation on pair->to.
4150 (propagate_for_debug): Don't call make_compound_operation here.
4151 Always use simplify_replace_fn_rtx.
4153 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4155 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4156 * config/xtensa/xtensa.c (override_options): Check
4157 TARGET_FORCE_NO_PIC and set flag_pic.
4158 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4160 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4163 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4164 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4166 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4168 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4170 * diagnostic.c: Don't include toplev.h.
4171 (progname): Define. Moved from toplev.c.
4172 (seen_error): New function.
4173 * diagnostic.h: Include diagnostic-core.h.
4174 (diagnostic_t, emit_diagnostic): Don't declare here.
4175 * toplev.c (progname): Move to toplev.c.
4176 (emit_debug_global_declarations, compile_file, finalize,
4177 do_compile, toplev_main): Use seen_error.
4178 * toplev.h: Include diagnostic-core.h.
4179 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4180 internal_error, warning, warning_at, error, error_n, error_at,
4181 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4182 verbatim, fnotice, progname): Move to diagnostic-core.h.
4183 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4184 (expand_builtin_expect): Use seen_error.
4185 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4186 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4187 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4188 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4189 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4190 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4191 errorcount for errors.
4192 * c-opts.c (c_common_finish): Use seen_error.
4193 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4194 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4195 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4196 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4197 (get_coverage_counts): Use seen_error.
4198 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4199 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4200 gimplify_body): Use seen_error.
4201 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4202 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4203 * ipa-reference.c (gate_reference): Use seen_error.
4204 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4205 * lambda-code.c: Include diagnostic-core.h instead of
4207 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4208 * lto-compress.c: Include diagnostic-core.h instead of
4210 * lto-section-in.c: Include diagnostic-core.h instead of
4212 * lto-streamer-out.c: Include diagnostic-core.h instead of
4214 * lto-streamer.c: Include diagnostic-core.h instead of
4216 (gate_lto_out): Use seen_error.
4217 * matrix-reorg.c: Include diagnostic-core.h instead of
4219 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4220 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4221 (gate_expand_omp, lower_omp_1): Use seen_error.
4222 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4223 (rest_of_decl_compilation, rest_of_type_compilation,
4224 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4225 * tree-cfg.c (label_to_block_fn): Use seen_error.
4226 * tree-inline.c (optimize_inline_calls): Use seen_error.
4227 * tree-mudflap.c (mudflap_finish_file): Use
4229 * tree-optimize.c (gate_all_optimizations,
4230 gate_all_early_local_passes, gate_all_early_optimizations): Use
4232 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4233 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4234 (varpool_remove_unreferenced_decls,
4235 varpool_assemble_pending_decls): Use seen_error.
4236 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4237 (TOPLEV_H, DIAGNOSTIC_H): Update.
4238 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4239 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4240 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4241 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4242 coverage.o, lambda-code.o): Update dependencies.
4244 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4247 * c-common.c (is_typedef_decl): Move this definition ...
4248 * tree.c (is_typedef_decl): ... here.
4249 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4250 * c-common.h (is_typedef_decl): Move this declaration ...
4251 * tree.h (is_typedef_decl): ... here.
4252 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4253 * dwarf2out.c (is_naming_typedef_decl): New function.
4254 (gen_tagged_type_die): Split out of ...
4255 (gen_type_die_with_usage): ... this function. When an anonymous
4256 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4257 is emitted for the typedef.
4258 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4259 anonymous tagged types.
4261 2010-05-27 Jason Merrill <jason@redhat.com>
4263 * print-tree.c (debug_vec_tree): New fn.
4264 (print_vec_tree): New fn.
4265 * tree.h: Declare them.
4266 * gdbinit.in (pvt): New command.
4268 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4270 * gdbinit.in (pdd): New command.
4272 2010-05-27 Jan Hubicka <jh@suse.cz>
4274 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4275 (update_caller_keys): Return early if there are no callers;
4276 only update fibheap when decresing the key.
4277 (update_callee_keys): Avoid recursion.
4278 (decide_inlining_of_small_functions): When badness does not match;
4279 re-insert into fibheap.
4281 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4283 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4284 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4285 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4286 (ALL_HOST_OBJS): Now a union of the above two.
4287 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4288 all files in ALL_HOST_FRONTEND_OBJS.
4289 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4291 * c-common.c: Pretend to be a backend file by undefining
4292 IN_GCC_FRONTEND (still need rtl.h here).
4294 2010-05-27 Jan Hubicka <jh@suse.cz>
4296 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4297 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4299 2010-05-27 Jan Hubicka <jh@suse.cz>
4301 * sched-ebb.c: Rename struct deps to struct deps_desc.
4303 * sel-sched-ir.c: Likewise.
4304 * sched-deps.c: Likewise.
4305 * sched-int.h: Likewise.
4306 * sched-rgn.c: Likewise.
4308 2010-05-27 Jon Beniston <jon@beniston.com>
4311 * config/lm32/lm32.h: Remove definition of
4312 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4314 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
4317 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4319 2010-05-27 Richard Guenther <rguenther@suse.de>
4321 PR tree-optimization/44284
4322 * tree-vect-stmts.c (vectorizable_assignment): Handle
4323 sign-changing conversions as simple copy.
4325 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4327 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4329 (__gthread_active_p): Check for pthread_create if compiling against
4332 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4334 Support compilation for Android platform. Reimplement -mandroid.
4336 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4337 (*android*): Set ANDROID_DEFAULT.
4338 (arm*-*-linux*): Include linux-android.h.
4339 (arm*-*-eabi*): Don't include previous -mandroid implementation.
4340 * config/arm/eabi.h: Remove, move Android-specific parts ...
4341 * config/linux-android.h: ... here. New file.
4342 * config/arm/eabi.opt: Rename to ...
4343 * config/linux-android.opt: ... this.
4344 (mandroid): Allow -mno-android option. Initialize based on
4346 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4347 Move logic to corresponding LINUX_TARGET_* macros.
4348 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4349 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4350 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4351 Android definitions.
4352 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4353 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4356 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4358 Add support for Bionic C library
4360 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4362 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4363 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4365 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4366 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4367 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4368 to support multiple C libraries. Handle Bionic.
4369 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4370 (BIONIC_DYNAMIC_LINKER64): Define.
4371 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4373 (TARGET_HAS_SINCOS): Enable for Bionic.
4375 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
4376 the last option specified on command line take effect.
4377 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4379 (mglibc, muclibc): Update.
4381 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4382 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4385 * doc/invoke.texi (-mglibc, -muclibc): Update.
4386 (-mbionic): Document.
4388 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4390 * c-common.h (c_register_addr_space): Add prototype.
4391 (ADDR_SPACE_KEYWORD): Remove.
4392 * c-common.c (c_register_addr_space): New function.
4393 (c_addr_space_name): Reimplement.
4394 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4396 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4397 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4399 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4400 Remove TARGET_ADDR_SPACE_KEYWORDS.
4402 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4404 * input.c: New file.
4405 * input.h (main_input_filename): Move declaration to toplev.h.
4406 * toplev.c (input_location, line_table): Move to input.c
4407 * toplev.h (main_input_filename): Move declaration from input.h.
4408 * tree.c (expand_location): Move to input.c.
4409 * Makefile.in (OBJS-common): Add input.o.
4410 (input.o): Add dependencies.
4412 2010-05-27 Richard Guenther <rguenther@suse.de>
4414 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4415 for non-existant files.
4416 (fork_execute): Mark args_name file as deleted.
4418 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4421 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4422 (narrow_signed_type): Likewise.
4424 2010-05-26 Jan Hubicka <jh@suse.cz>
4426 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4427 edge only when checking is enabled; check using former_clone_of;
4428 check inline clones too.
4429 (cgraph_materialize_clone): Record former_clone_of pointer.
4430 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4431 combining redirections; dump args_to_skip bitmap
4432 (cgraph_materialize_all_clones): Do no redirection here.
4433 * ipa-inline.c (inline_transform): Do redirection here.
4434 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
4437 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4439 * config/avr/avr-c.c: Do not include regs.h.
4440 Include cpplib.h for cpp_define and tree.h for c-common.h.
4441 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
4442 * config/avr/t-avr: Fix dependencies for avr-c.o.
4444 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4446 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
4447 string instead of SYMBOL_REF rtx.
4448 * rtl.h (set_stack_check_libfunc): Move prototype from here...
4449 * libfuncs.h: ...to here. Adjust for explow.c change.
4451 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4453 * pretty-print.c: Don't include ggc.h.
4454 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
4455 (identifier_to_locale): Use them for allocation.
4456 * pretty-print.h (identifier_to_locale_alloc,
4457 identifier_to_locale_free): Declare.
4458 * toplev.c (alloc_for_identifier_to_locale): New.
4459 (general_init): Set identifier_to_locale_alloc and
4460 identifier_to_locale_free.
4461 * Makefile.in (pretty-print.o): Update dependencies.
4463 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4465 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
4466 pointer types if they have different alignment or mode.
4468 2010-05-26 Anatoly Sokolov <aesok@post.ru>
4470 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4471 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4472 * config/sparc/sparc-protos.h (function_value): Remove declaration.
4473 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
4474 sparc_function_value_regno_p): New functions.
4475 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4476 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4477 (function_value): Rename to...
4478 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
4479 argument to 'outgoing'.
4480 (function_arg_record_value, function_arg_union_value,
4481 function_arg_vector_value): Update comment.
4483 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4485 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
4486 (fde_needed_for_eh_p): New predicate.
4487 (output_call_frame_info): Use it throughout to decide whether FDEs
4488 are needed for EH purpose.
4489 (dwarf2out_begin_prologue): Reorder assignments.
4491 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4493 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
4494 special case loop->header.
4495 (is_predicated): New.
4496 (if_convertible_loop_p): Call it.
4498 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4500 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
4501 iterator in parameter. Do not generate code during the analysis.
4502 (tree_if_convert_cond_stmt): Removed.
4503 (tree_if_convert_stmt): Removed.
4504 (predicate_bbs): New.
4505 (if_convertible_loop_p): Call predicate_bbs.
4506 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
4507 now contains all the analysis part.
4509 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4511 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
4512 statements in the analysis part.
4513 (tree_if_convert_stmt): Update comment.
4514 (remove_conditions_and_labels): New.
4515 (combine_blocks): Call remove_conditions_and_labels.
4516 (tree_if_conversion): Update comment.
4518 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4520 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
4521 than 2 predecessors or more than 2 successors.
4523 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4525 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
4526 of loops in which the data dependence analysis fails.
4528 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4530 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
4531 CDI_POST_DOMINATORS.
4532 (tree_if_conversion): Same.
4534 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4536 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
4538 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4540 * tree-if-conv.c: Update copyright years. Fix comments.
4543 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
4545 * builtin-types.def (BT_INT128): New primitive type.
4546 (BT_UINT128): Likewise.
4547 * c-common.c (c_common_r): Add __int128 keyword.
4548 (c_common_type_for_size): Handle __int128.
4549 (c_common_type_for_mode): Likewise.
4550 (c_common_signed_or_unsigned_type): Likewise.
4551 (c_common_nodes_and_builtins): Add builtin type
4552 if target supports 128-bit integer scalar.
4553 * c-common.h (enum rid): Add RID_INT128.
4554 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
4555 if target supports 128-bit integer scalar.
4556 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
4557 (finish_declspecs): Likewise.
4558 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
4559 (c_token_starts_declspecs): Likewise.
4560 (c_parser_declspecs): Likewise.
4561 (c_parser_attributes): Likewise.
4562 (c_parser_objc_selector): Likewise.
4563 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
4564 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
4565 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
4566 * tree.c (make_or_reuse_type): Likewise.
4567 (make_unsigned_type): Likewise.
4568 (build_common_tree_nodes_2): Likewise.
4569 * tree.h (enum integer_type_kind): Add itk_int128 and
4570 itk_unsigned_int128.
4571 (int128_integer_type_node): New define.
4572 (int128_unsigned_type_node): New define.
4573 * doc/extend.texi: Add documentation about __int128 type.
4575 2010-05-26 Richard Guenther <rguenther@suse.de>
4577 * tree-ssa-sccvn.c (copy_nary): Adjust.
4578 (copy_phis): Rename to ...
4579 (copy_phi): ... this. Adjust.
4580 (copy_references): Rename to ...
4581 (copy_reference): ... this. Adjust.
4582 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
4583 result into the valid table.
4585 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4587 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
4588 insn-config.h, insn-codes.h, recog.h, and optabs.h.
4590 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4592 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
4594 2010-05-26 Richard Guenther <rguenther@suse.de>
4596 * opts.c (common_handle_option): Handle OPT_Ofast.
4598 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4600 * diagnostic.c: Don't include opts.h.
4601 (permissive_error_option): Define.
4602 (diagnostic_initialize): Take n_opts parameter. Allocate memory
4603 for classify_diagnostic. Don't use memset for
4604 classify_diagnostic. Initialize new and recently added fields.
4605 (diagnostic_classify_diagnostic): Use context->n_opts instead of
4607 (diagnostic_report_diagnostic): Pass context parameter to
4608 diagnostic_report_warnings_p. Use option_enabled and option_name
4610 (emit_diagnostic): Use permissive_error_option.
4611 (permerror): Likewise.
4612 * diagnostic.h: Don't include options.h.
4613 (struct diagnostic_context): Add n_opts, opt_permissive,
4614 inhibit_warnings, warn_system_headers, option_enabled and
4615 option_name fields. Change classify_diagnostic to a pointer.
4616 * opts-diagnostic.h: New file.
4617 * opts.c: Include opts-diagnostic.h.
4618 (common_handle_option): Set global_dc fields for -Wfatal-errors,
4619 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
4620 (option_name): New function.
4621 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
4622 (c_common_handle_option): Set global_dc->permissive for
4624 * c-common.c (c_cpp_error): Save and restore
4625 global_dc->warn_system_headers, not variable warn_system_headers.
4626 * toplev.c: Include opts-diagnostic.h.
4627 (general_init): Update call to diagnostic_initialize. Set
4628 global_dc->show_column, global_dc->option_enabled and
4629 global_dc->option_name.
4630 (process_options): Don't set global_dc fields here.
4631 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
4632 (diagnostic.o, opts.o, toplev.o): Update dependencies.
4634 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4636 * config/picochip/picochip.md (movsi): Split a movsi from a
4639 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4641 * ggc-zone.c: Update copyright year.
4642 (poison_region): Mark memory for Valgrind as undefined before
4643 memset () call and inaccessible afterwards.
4644 (ggc_pch_total_size): Change type of i to int.
4646 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4648 * ggc-common.c (ggc_free_overhead): Allow empty slot.
4650 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4652 * ggc-common.c: Update copyright year.
4653 (ggc_rlimit_bound): Remove prototype. Compile only if
4654 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
4655 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
4656 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
4657 (ggc_min_heapsize_heuristic): Likewise.
4659 2010-05-26 Richard Guenther <rguenther@suse.de>
4661 PR rtl-optimization/44164
4662 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
4663 no-common access-path disambiguation.
4664 (indirect_ref_may_alias_decl_p): Adjust.
4665 (indirect_refs_may_alias_p): Likewise.
4666 (refs_may_alias_p_1): Likewise.
4668 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4670 * c-typeck.c: Do not include expr.h.
4672 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4674 * rtl.h (decl_default_tls_model): Move prototype from here...
4675 * output.h: ...to here.
4676 * c-decl.c: Do not include rtl.h.
4677 * c-pragma.c: Likewise.
4678 * c-parser.c: Likewise.
4679 * c-gimplify.c: Likewise. And also not hard-reg-set.
4680 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
4681 FIXME note for it. Add a FIXME note for expr.h.
4682 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
4683 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
4686 2010-05-26 Jakub Jelinek <jakub@redhat.com>
4689 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
4690 or total_size is larger than red zone size for non-V4 ABI, emit a
4691 stack_tie resp. frame_tie insn before stack pointer restore.
4692 * config/rs6000/rs6000.md (frame_tie): New insn.
4694 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
4696 * function.h (struct function): Add can_throw_non_call_exceptions bit.
4697 * lto-streamer-in.c (input_function): Stream it in.
4698 * lto-streamer-out.c (output_function): Stream it out.
4699 * function.c (allocate_struct_function): Set it.
4700 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
4701 for flag_non_call_exceptions.
4702 * cfgbuild.c (control_flow_insn_p): Likewise.
4703 (make_edges): Likewise.
4704 * cfgexpand.c (expand_stack_alignment): Likewise.
4705 * combine.c (distribute_notes): Likewise.
4706 * cse.c (cse_extended_basic_block): Likewise.
4707 * except.c (insn_could_throw_p): Likewise.
4708 * gcse.c (simple_mem): Likewise.
4709 * ipa-pure-const.c (check_call): Likewise.
4710 (check_stmt ): Likewise.
4711 * lower-subreg.c (lower-subreg.c): Likewise.
4712 * optabs.c (emit_libcall_block): Likewise.
4713 (prepare_cmp_insn): Likewise.
4714 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
4715 * postreload.c (rest_of_handle_postreload): Likewise.
4716 * reload1.c (reload_as_needed): Likewise.
4717 (emit_input_reload_insns): Likewise.
4718 (emit_output_reload_insns): Likewise.
4719 (fixup_abnormal_edges): Likewise.
4720 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
4721 * store-motion.c (find_moveable_store): Likewise.
4722 * tree-eh.c (stmt_could_throw_p): Likewise.
4723 (tree_could_throw_p): Likewise.
4724 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4725 * config/arm/arm.c (arm_expand_prologue): Likewise.
4726 (thumb1_expand_prologue): Likewise.
4727 * config/rx/rx.md (cbranchsf4): Likewise.
4729 * config/s390/s390.c (s390_emit_prologue): Likewise.
4730 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
4731 (inline_forbidden_into_p): New predicate.
4732 (expand_call_inline): Use it to forbid inlining.
4733 (tree_can_inline_p): Likewise.
4735 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4737 * config/i386/i386-c.c: Do not include rtl.h.
4738 * config/i386/t-i386: Update dependencies.
4740 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4742 * attribs.c: Do not include rtl.h.
4743 * Makefile.in: Update dependencies.
4745 2010-05-25 Anatoly Sokolov <aesok@post.ru>
4747 * double-int.h (double_int_and): New.
4748 * combine.c (try_combine): Clean up, use double_int_* and
4749 immed_double_int_const functions.
4751 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4753 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
4754 stderr to /dev/null instead of grep -q.
4755 * configure: Regenerate.
4757 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4759 * Makefile.in (EXCEPT_H): Fix typo.
4761 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
4763 * ira-build.c (update_conflict_hard_reg_costs): New.
4764 (ira_build): Call update_conflict_hard_reg_costs.
4766 2010-05-25 Jakub Jelinek <jakub@redhat.com>
4769 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
4771 (intersect_loc_chains): Walk the s2var's loc_chain together
4772 with s1node chain as long as the locations are equal, don't
4773 call find_loc_in_1pdv in that case.
4776 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
4777 (copy_bind_expr): ... instead of here.
4778 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
4779 if the block hasn't been remapped.
4780 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
4781 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
4783 2010-05-25 Richard Guenther <rguenther@suse.de>
4786 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
4787 out-of-bounds array accesses.
4789 2010-05-25 Richard Guenther <rguenther@suse.de>
4791 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
4792 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
4793 (run_gcc): Re-organize to make cleanup easier.
4795 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4797 * config/s390/s390.c (optimization_options): Fix and move the
4798 flag_prefetch_loop_arrays override ...
4799 (override_options): ... here.
4801 2010-05-25 Joseph Myers <joseph@codesourcery.com>
4803 * diagnostic.c: Don't include plugin.h.
4804 (diagnostic_report_diagnostic): Don't handle plugins specially
4805 here. Pass context to internal_error callback.
4806 * diagnostic.h (struct diagnostic_context): Add context parameter
4807 to internal_error callback.
4808 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
4809 * plugin.h (struct diagnostic_context): Declare.
4810 (warn_if_plugins, plugins_internal_error_function): Declare.
4811 * toplev.c (general_init): Set global_dc->internal_error.
4812 * Makefile.in (diagnostic.o): Update dependencies.
4814 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
4816 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
4817 * config/rs6000/t-darwin64: New.
4818 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
4821 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
4824 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
4825 match the original (and intended) behaviour before r159557. This
4826 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
4829 2010-05-25 Richard Guenther <rguenther@suse.de>
4831 * doc/invoke.texi: Document -Ofast.
4832 * target.h (struct gcc_target): Add handle_ofast.
4833 * target-def.h (TARGET_HANDLE_OFAST): Add.
4834 (TARGET_INITIALIZER): Adjust.
4835 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
4836 * common.opt (Ofast): Add.
4838 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
4840 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
4841 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
4843 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
4846 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
4847 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
4848 false_rtx. Use false_rtx to compute the correct *ptest for reversed
4849 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
4851 2010-05-25 Jakub Jelinek <jakub@redhat.com>
4853 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
4854 DW_OP_minus with negated offset instead of DW_OP_plus.
4855 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
4857 2010-05-25 Wei Guozhi <carrot@google.com>
4859 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
4860 tst instruction and a new alternative.
4861 * config/arm/constraints.md (Pu): New constraint.
4863 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
4865 * function.c (assign_stack_local_1): Initialize variable
4866 to avoid warning when bootstrapping at -O3.
4868 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
4870 * configure.ac (all_lang_makefiles): Remove everything related to it.
4871 * configure: Regenerate.
4872 * Makefile.in: Fix reference to ada Make-lang.in.
4873 Remove support for LANG_MAKEFILES.
4875 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
4876 Sandra Loosemore <sandra@codesourcery.com>
4878 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
4879 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
4880 description. Add arm_neon_fp16_ok.
4881 (Add Options): Add arm_neon and arm_neon_fp16.
4883 2010-05-24 Joseph Myers <joseph@codesourcery.com>
4885 * diagnostic.c: Don't include flags.h.
4886 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
4887 context parameters. Check flags in the context passed as a parameter.
4888 (diagnostic_build_prefix): Add context parameter. Check
4889 show_column flag in context.
4890 (diagnostic_action_after_output): Check fatal_errors flag in context.
4891 (diagnostic_report_current_module): Check show_column flag in context.
4892 (default_diagnostic_starter): Update call to
4893 diagnostic_build_prefix.
4894 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
4895 (emit_diagnostic): Pass context to permissive_error_kind.
4896 (permerror): Pass context to permissive_error_kind.
4897 * diagnostic.h (struct diagnostic_context): Add show_column,
4898 pedantic_errors, permissive and fatal_errors fields.
4899 (diagnostic_build_prefix): Update prototype.
4901 * toplev.c (process_options): Set flags in global_dc from
4902 flag_show_column, flag_pedantic_errors, flag_permissive,
4904 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
4905 to diagnostic_build_prefix.
4906 * Makefile.in (diagnostic.o): Update dependencies.
4908 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
4910 * config/i386/ia32intrin.h (__crc32q): Define only if
4911 __SSE4_2__ is defined.
4913 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
4917 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
4918 DECL_VISIBILITY_SPECIFIED.
4919 (emutls_decl): Set DECL_PRESERVE_P and copy
4920 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
4921 (emutls_finalize_control_var): New callback.
4922 (emutls_finish): Finalize emutls control variables.
4923 * toplev.c (compile_file): Move the call to emutls_finish ()
4924 before varpool_assemble_pending_decls ().
4926 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
4928 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
4929 added to the preprocessor condition.
4931 2010-05-24 Paul Brook <paul@codesourcery.com>
4933 * gengtype-lex.l: Add HARD_REG_SET.
4934 * expr.c (expand_expr_real_1): Record writes to hard registers.
4935 * function.c (rtl_data): Add asm_clobbers.
4936 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
4937 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
4938 Use crtl->asm_clobbers.
4940 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4942 * doc/makefile.texi (Makefile): Mention stages 'profile'
4943 and 'feedback' for profiledbootstrap.
4945 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
4948 * config/i386/i386.c (def_builtin): Properly check
4949 OPTION_MASK_ISA_64BIT.
4951 2010-05-23 Joseph Myers <joseph@codesourcery.com>
4953 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
4954 typedefs with different but compatible types. Allow duplicate
4955 typedefs with the same type except for pedantic non-C1X, but give
4956 warning for variably modified types.
4957 * c-typeck.c (tagged_types_tu_compatible_p,
4958 function_types_compatible_p, type_lists_compatible_p,
4959 comptypes_internal): Add parameter different_types_p; set
4960 *different_types_p for different but compatible types. All
4962 (comptypes_check_different_types): New.
4963 * c-tree.h (comptypes_check_different_types): Declare.
4965 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
4967 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
4968 * jump.c: Include basic-block.h.
4969 * profile.c: Likewise.
4970 * tree-profile.c: Likewise.
4971 * coverage.c: Likewise.
4972 * basic-block.h (optimize_function_for_size_p): Move to function.h.
4973 (optimize_function_for_speed_p): Likewise.
4974 * function.h (optimize_function_for_size_p,
4975 optimize_function_for_speed_p): Moved here from basic-block.h.
4976 * Makefile.in: Update dependencies.
4978 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4980 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
4981 before calling make; allow override through $MAKE.
4982 * doc/invoke.texi (Optimize Options): Document override.
4984 2010-05-23 Anatoly Sokolov <aesok@post.ru>
4986 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
4987 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4988 (rs6000_mode_dependent_address_ptr): Make static.
4989 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4990 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
4993 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
4996 * config/i386/i386.c: Make sure that the correct regparm is passed.
4998 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5000 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5001 * sbitmap.c: ...to here to internalize sbitmap element access.
5002 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5003 Explain why basic-block.h is included.
5004 * function.h: Include tm.h for CUMULATIVE_ARGS.
5005 * Makefile.in: Update dependencies.
5007 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5009 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5011 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5012 * sbitmap.c: Include sbitmap.h.
5013 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5014 hard-reg-set.h. Split everything related to regsets out from here...
5015 * regset.h: ...to here. New file.
5016 * df.h: Include regset.h and sbitmap.h.
5017 * tree-flow.h: Likewise.
5018 * cfgloop.h: Likewise.
5019 * except.h: Do not include sbitmap.h. Include hashtab.h.
5020 * cgraph.h: Include vec.h and function.h.
5021 * reload.h (struct insn_chain): Change types of live_throughout
5022 and dead_or_set from regset_head to bitmap_head.
5023 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5024 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5025 spilled_regs from regset_head to bitmap_head to avoid dependency
5027 * sel-sched-ir.h: Include regset.h.
5028 * reload.c: Include df.h before reload.h.
5029 * caller-save.c: Likewise.
5030 * reload1.c: Likewise.
5032 (mark_elimination): Update type of r to bitmap, consistent with
5034 * dominance.c: Include bitmap.h.
5035 * modulo-sched.c: Include df.h.
5036 * cfganal.c: Include bitmap.h and sbitmap.h.
5037 * cfgbuild.c: Include sbitmap.h.
5038 * lcm.c: Include sbitmap.h.
5039 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5040 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5041 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5042 * cselib.c: Include bitmap.h.
5043 * tree-optimize.c: Include regset.h.
5044 * stmt.c: Include bitmap.h.
5045 * Makefile.in: Update dependencies.
5047 2010-05-22 Jan Hubicka <jh@suse.cz>
5049 * cgraph.h (struct varpool_node): Add same_comdat_group.
5050 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5052 (output_varpool): Update call of lto_output_varpool_node.
5053 (input_varpool): Read same_comdat_group pointer.
5054 (input_varpool_1): Fixup same_comdat_group pointer.
5055 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5056 group is needed, all are.
5057 * varpool.c (varpool_remove_node): Remove node from same comdat group
5059 (varpool_analyze_pending_decls): Walk same comdat groups.
5061 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5063 * rtl.h (union rtunion_def): Remove rt_bit member.
5064 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5065 * print-rtl (print_rtx): Do not print the member.
5066 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5067 * gengenrtl.c (type_from_format): Likewise.
5068 (accessor_from_format): Likewise.
5070 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5072 * dbgcnt.c: Include toplev.h instead of errors.h.
5073 * ira-emit.c: Don't include errors.h.
5074 * ira.c: Include toplev.h instead of errors.h.
5075 * lto-compress.c: Include toplev.h instead of errors.h.
5076 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5077 ira.o, dbgcnt.o): Update dependencies.
5079 2010-05-22 Richard Guenther <rguenther@suse.de>
5081 * gimple.c (gimple_types_compatible_p): Check type qualifications
5082 before merging pointer to complete and pointer to incomplete type.
5083 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5084 we use our own resolution algorithm. The gold linker plugin
5085 doesn't do the job we want it to do here.
5087 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5089 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5090 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5091 (sparc_mode_dependent_address_p): New function.
5093 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5095 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5097 * timevar.c: Do not include any core headers.
5098 (timevar_print): De-i18n-ize.
5099 (print_time): Likewise.
5100 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5102 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5104 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5106 (diagnostic_initialize): Initialize x_data not last_function.
5107 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5108 (default_diagnostic_starter): Call
5109 diagnostic_report_current_module not
5110 diagnostic_report_current_function.
5111 (diagnostic_report_diagnostic): Initialize x_data not
5113 (verbatim): Likewise.
5114 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5116 (struct diagnostic_context): Change last_function to x_data.
5117 (diagnostic_auxiliary_data): Replace with
5118 diagnostic_context_auxiliary_data and
5119 diagnostic_info_auxiliary_data.
5120 (diagnostic_last_function_changed, diagnostic_set_last_function,
5121 diagnostic_report_current_function): Move to tree-diagnostic.h.
5122 (print_declaration, dump_generic_node, print_generic_stmt,
5123 print_generic_stmt_indented, print_generic_expr,
5124 print_generic_decl, debug_c_tree, dump_omp_clauses,
5125 print_call_name, debug_generic_expr, debug_generic_stmt,
5126 debug_tree_chain, default_tree_printer): Move to
5127 tree-pretty-print.h.
5128 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5129 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5130 gimple-pretty-print.h.
5131 * pretty-print.c: Don't include tree.h
5132 (pp_base_format): Don't handle %K here.
5133 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5134 * pretty-print.h (text_info): Change abstract_origin to x_data.
5135 (pp_tree_identifier, pp_unsupported_tree,
5136 pp_base_tree_identifier): Move to tree-pretty-print.h.
5137 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5138 tree-pretty-print.h: New files.
5139 * tree-pretty-print.c: Include tree-pretty-print.h.
5140 (percent_K_format): New. Moved from pretty-print.c.
5141 (pp_base_tree_identifier): Move from pretty-print.c.
5142 * c-objc-common.c: Include tree-pretty-print.h.
5143 (c_tree_printer): Handle %K here.
5144 * langhooks.c: Include tree-diagnostic.h.
5145 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5146 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5147 (default_tree_printer): Handle %K using percent_K_format.
5148 (general_init): Use default_tree_diagnostic_starter.
5149 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5150 (free_lang_data): Use default_tree_diagnostic_starter.
5151 * c-pretty-print.c: Include tree-pretty-print.h.
5152 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5153 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5154 * dwarf2out.c: Include tree-pretty-print.h.
5155 * except.c: Include tree-pretty-print.h.
5156 * gimple-pretty-print.c: Include tree-pretty-print.h and
5157 gimple-pretty-print.h.
5158 * gimplify.c: Include tree-pretty-print.h.
5159 * graphite-poly.c: Include tree-pretty-print.h and
5160 gimple-pretty-print.h.
5161 * ipa-cp.c: Include tree-pretty-print.h.
5162 * ipa-inline.c: Include gimple-pretty-print.h.
5163 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5164 * ipa-pure-const.c: Include gimple-pretty-print.h.
5165 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5166 gimple-pretty-print.h.
5167 * ipa-type-escape.c: Include tree-pretty-print.h.
5168 * print-rtl.c: Include tree-pretty-print.h.
5169 * print-tree.c: Include gimple-pretty-print.h.
5170 * sese.c: Include tree-pretty-print.h.
5171 * tree-affine.c: Include tree-pretty-print.h.
5172 * tree-browser.c: Include tree-pretty-print.h.
5173 * tree-call-cdce.c: Include gimple-pretty-print.h.
5174 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5175 * tree-chrec.c: Include tree-pretty-print.h.
5176 * tree-data-ref.c: Include tree-pretty-print.h and
5177 gimple-pretty-print.h.
5178 * tree-dfa.c: Include tree-pretty-print.h.
5179 * tree-if-conv.c: Include tree-pretty-print.h and
5180 gimple-pretty-print.h.
5181 * tree-inline.c: Include tree-pretty-print.h.
5182 * tree-into-ssa.c: Include tree-pretty-print.h and
5183 gimple-pretty-print.h.
5184 * tree-nrv.c: Include tree-pretty-print.h.
5185 * tree-object-size.c: Include tree-pretty-print.h and
5186 gimple-pretty-print.h.
5187 * tree-outof-ssa.c: Include tree-pretty-print.h and
5188 gimple-pretty-print.h.
5189 * tree-parloops.c: Include tree-pretty-print.h and
5190 gimple-pretty-print.h.
5191 * tree-predcom.c: Include tree-pretty-print.h and
5192 gimple-pretty-print.h.
5193 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5194 gimple-pretty-print.h.
5195 * tree-sra.c: Include tree-pretty-print.h.
5196 * tree-ssa-address.c: Include tree-pretty-print.h.
5197 * tree-ssa-alias.c: Include tree-pretty-print.h.
5198 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5199 gimple-pretty-print.h.
5200 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5201 * tree-ssa-copy.c: Include tree-pretty-print.h and
5202 gimple-pretty-print.h.
5203 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5204 * tree-ssa-dce.c: Include tree-pretty-print.h and
5205 gimple-pretty-print.h.
5206 * tree-ssa-dom.c: Include tree-pretty-print.h and
5207 gimple-pretty-print.h.
5208 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5209 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5210 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5211 * tree-ssa-live.c: Include tree-pretty-print.h and
5212 gimple-pretty-print.h.
5213 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5214 gimple-pretty-print.h.
5215 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5216 gimple-pretty-print.h.
5217 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5218 gimple-pretty-print.h.
5219 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5220 gimple-pretty-print.h.
5221 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5222 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5223 * tree-ssa-operands.c: Include tree-pretty-print.h and
5224 gimple-pretty-print.h.
5225 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5226 gimple-pretty-print.h.
5227 * tree-ssa-pre.c: Include tree-pretty-print.h and
5228 gimple-pretty-print.h.
5229 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5230 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5231 gimple-pretty-print.h.
5232 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5233 gimple-pretty-print.h.
5234 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5235 * tree-ssa-ter.c: Include tree-pretty-print.h and
5236 gimple-pretty-print.h.
5237 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5238 * tree-ssa.c: Include tree-pretty-print.h and
5239 gimple-pretty-print.h.
5240 * tree-stdarg.c: Include gimple-pretty-print.h.
5241 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5242 * tree-tailcall.c: Include tree-pretty-print.h and
5243 gimple-pretty-print.h.
5244 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5245 gimple-pretty-print.h.
5246 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5247 gimple-pretty-print.h.
5248 * tree-vect-loop.c: Include tree-pretty-print.h and
5249 gimple-pretty-print.h.
5250 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5251 * tree-vect-slp.c: Include tree-pretty-print.h and
5252 gimple-pretty-print.h.
5253 * tree-vect-stmts.c: Include tree-pretty-print.h and
5254 gimple-pretty-print.h.
5255 * tree-vectorizer.c: Include tree-pretty-print.h.
5256 * tree-vrp.c: Include tree-pretty-print.h and
5257 gimple-pretty-print.h.
5258 * value-prof.c: Include tree-pretty-print.h and
5259 gimple-pretty-print.h.
5260 * var-tracking.c: Include tree-pretty-print.h.
5261 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5262 (tree-diagnostic.o): New dependencies.
5263 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5264 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5265 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5266 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5267 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5268 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5269 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5270 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5271 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5272 tree-ssa-address.o, tree-ssa-loop-niter.o,
5273 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5274 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5275 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5276 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5277 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5278 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5279 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5280 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5281 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5282 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5283 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5284 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5285 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5286 tree-switch-conversion.o, var-tracking.o, value-prof.o,
5287 cfgexpand.o, pretty-print.o): Update dependencies.
5289 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
5291 * tree-ssa-structalias.c: Remove tm_p.h from include.
5293 2010-05-21 Jeff Law <law@redhat.com>
5295 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5297 2010-05-21 Jason Merrill <jason@redhat.com>
5299 * tree-eh.c (cleanup_is_dead_in): New.
5300 (lower_try_finally): Don't generate a dead cleanup region.
5301 (lower_cleanup): Likewise.
5303 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5306 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5307 unchain each use from the cyclic next_regno_use chain first.
5309 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5311 * real: Do not include gmp.h, mpfr.h, and mpc.h.
5312 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5313 (real_value_negate, real_value_abs): New prototypes.
5314 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5315 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5316 new include file for interface between MPFR and REAL_VALUE_TYPE.
5317 * real.c: Include realmpfr.h.
5318 (real_arithmetic2): Remove legacy function.
5319 (real_value_negate): New.
5320 (real_value_abs): New.
5321 (mfpr_from_real, real_from_mpfr): Move from here...
5322 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5323 * builtins.c: Include realmpfr.h.
5324 * fold-const.c: Include realmpfr.h.
5325 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5326 (fold_negate_const): Likewise.
5327 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5328 * toplev.c: Include realmpfr.h.
5329 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5330 and real_value_negate.
5331 * fixed-value.c (check_real_for_fixed_mode): Likewise.
5332 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5333 (vfp3_const_double_index): Likewise.
5334 (arm_print_operand): Likewise.
5335 * Makefile.in: Update dependencies.
5337 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5339 * config/s390/s390.c (override_options): Increase the default
5340 of max-completely-peel-times.
5342 2010-05-21 Julian Brown <julian@codesourcery.com>
5343 Mark Mitchell <mark@codesourcery.com>
5345 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5346 sibling calls for Thumb-1.
5347 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5348 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5350 (*call_insn, *call_value_insn): Don't use for Thumb-2.
5351 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5353 (return): New expander.
5354 (*arm_return): New name for ARM return insn.
5355 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5357 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
5359 * config.gcc (sparc64-*-rtems*): New target.
5361 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5363 * tree.c (build_function_decl_skip_args): Fix grammar.
5364 (build_function_type_list_1): Fix typos, adjust formatting.
5366 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5368 * tree.h: Include real.h and fixed-value.h as basic datatypes.
5369 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5370 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5371 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5372 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5373 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5374 tree-pretty-print.c, tree-loop-distribution.c,
5375 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5376 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5377 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5378 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5379 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5380 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5381 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5382 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5383 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5384 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5385 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5386 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5387 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5388 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5389 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5390 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5391 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5392 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5393 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5394 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5395 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5396 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5397 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5398 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5399 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5400 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5401 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5402 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5403 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5404 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5405 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5406 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5407 config/score/score7.c, config/score/score.c, config/arm/arm.c,
5408 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5409 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5410 config/bfin/bfin.c: Clean up redundant includes.
5411 * Makefile.in: Update accordingly.
5413 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5416 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5417 statement has no arguments.
5419 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
5422 * varasm.c (emutls_decl): Merge attributes to new decl.
5424 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
5427 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5428 around the uniquized constructor if its type requires a conversion.
5430 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5433 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5434 at -O0 goto_locus of any of the incoming edges differs from
5435 goto_locus of outgoing edge, or gimple_location of any of the
5438 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
5440 * ira.c (ira_non_ordered_class_hard_regs): Define.
5441 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
5442 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
5443 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
5444 cost of unaligned hard regs when allocating multi-reg pseudos.
5446 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5448 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
5449 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
5450 for TARGET_NO_FLOAT.
5451 * config/mips/mips.c (mips_file_start): Expand conditional expression
5452 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
5453 (mips_override_options): Move -mno-float override -msoft-float and
5455 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
5456 Condition(TARGET_SUPPORTS_NO_FLOAT).
5457 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
5458 __mips_no_float here.
5459 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
5460 (TARGET_SUPPORTS_NO_FLOAT): Define.
5461 * config/mips/sdemtk.opt: Delete.
5463 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
5465 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
5467 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
5470 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
5471 * configure: Regenerate.
5472 * config.in: Regenerate.
5473 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
5474 instead of sahf only for 64bit targets.
5476 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5479 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
5480 setup_ref_regs for DEBUG_INSNs.
5482 2010-05-20 Jan Hubicka <jh@suse.cz>
5485 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
5487 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5490 * df-scan.c (df_ref_compare): Stabilize sort.
5492 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5494 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
5495 argument. Don't use DW_OP_piece if offset is non-zero,
5496 put offset into second DW_OP_bit_piece argument.
5497 (dw_sra_loc_expr): Adjust callers. For memory expressions
5500 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
5503 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
5504 settings for 16-bit-constant "addo" alternative.
5506 2010-05-19 James E. Wilson <wilson@codesourcery.com>
5508 * config/mips/mips-dsp.md (add<DSPV:mode>3,
5509 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
5512 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
5513 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
5516 2010-05-19 Joseph Myers <joseph@codesourcery.com>
5518 * diagnostic.c (FLOAT, FFS): Don't undefine.
5519 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
5520 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
5523 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5525 * combine.c (propagate_for_debug): Call make_compound_operation
5526 on the source value.
5527 (try_combine): When implementing a split chosen by find_split_point,
5528 either copy i2src or set it to null. Assert that i2src is not null
5529 before substituting into CALL_INSN_FUNCTION_USAGE.
5531 2010-05-19 Anatoly Sokolov <aesok@post.ru>
5533 * double-int.h (double_int_ior): New function.
5534 * tree.h (build_int_cst_wide_type): Remove.
5535 * tree.c (build_int_cst_wide_type): Remove.
5536 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
5537 of build_int_cst_wide_type.
5538 * stor-layout.c (set_sizetype): (Ditto.).
5539 * dojump.c (do_jump): Use build_int_cstu instead of
5540 build_int_cst_wide_type.
5542 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
5544 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
5545 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
5546 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
5547 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
5548 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
5549 propagate the 'data' argument to copy_tree_r.
5550 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
5551 Propagate 'data' argument to walk_tree.
5552 (copy_if_shared): New function.
5553 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
5554 (unmark_visited): New function.
5555 (unshare_body): Call copy_if_shared instead of doing it manually.
5556 (unvisit_body): Call unmark_visited instead of doing it manually.
5558 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
5560 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
5561 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
5562 * hooks.c: Likewise.
5563 * target-def.h (TARGET_FOLD_BUILTIN): Define to
5564 hook_tree_tree_int_treep_bool_null.
5565 * target.h (struct gcc_target): Update signature of fold_builtin
5567 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
5568 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
5569 instead of the call expression.
5570 (fold_builtin_call_array): Pass n and argarray directly.
5571 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
5573 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
5574 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
5575 `i' and use it in place of `arity'.
5576 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
5577 Dereference `args' directly.
5578 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
5580 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5582 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5584 (Directives): Document optional dg-require-effective-target
5587 2010-05-19 Richard Guenther <rguenther@suse.de>
5590 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
5592 2010-05-19 Richard Guenther <rguenther@suse.de>
5594 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
5595 * common.opt (fwhopr=): New.
5596 * opts.c (common_handle_option): Handle OPT_fwhopr.
5597 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
5598 * collect2.c (main): Match -fwhopr*.
5599 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
5600 Execute ltrans stage in parallel when jobs is bigger than 1.
5602 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5604 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5605 pentiumpro on Solaris 8/x86 with Sun as.
5606 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
5608 (gcc_cv_as_ix86_quad): Check for .quad directive.
5609 * configure: Regenerate.
5610 * config.in: Regenerate.
5611 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
5613 2010-05-19 Martin Jambor <mjambor@suse.cz>
5615 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
5616 also for indirect edges. Actual printing moved...
5617 (ipa_print_node_jump_functions_for_edge): ...here.
5618 (ipa_compute_jump_functions): Renamed to
5619 ipa_compute_jump_functions_for_edge and made static.
5620 (ipa_compute_jump_functions): New function.
5621 (make_edge_direct_to_target): Check if the number of arguments on
5622 the newly direct edge is the same as the number of parametrs of
5624 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
5625 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
5626 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5627 analysis functions unconditionally, call the new
5628 ipa_analyze_params_uses on the node instead of every edge.
5630 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
5632 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
5634 (dump_mem_ref): Adopt debug code to handle a tree as step. This
5635 also checks for a constant int vs. non-constant but
5636 loop-invariant steps.
5637 (find_or_create_group): Change the sort algorithm to only consider
5638 steps that are constant ints.
5639 (idx_analyze_ref): Adopt code to handle a tree instead of a
5640 HOST_WIDE_INT for step.
5641 (gather_memory_references_ref): Handle tree instead of int and be
5642 prepared to see a NULL_TREE.
5643 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
5644 prefetches if the step cannot be calculated at compile time.
5645 (issue_prefetch_ref): Issue prefetches for non-constant but
5646 loop-invariant steps.
5648 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5651 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5653 * tree.h (build_call_list): Remove.
5654 * tree.c (build_call_list): Remove.
5656 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5658 * tree.h (build_call_list): Remove.
5659 * tree.c (build_call_list): Remove.
5661 2010-05-18 Jan Hubicka <jh@suse.cz>
5663 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
5665 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
5667 PR rtl-optimization/43332
5668 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
5670 2010-05-18 Anatoly Sokolov <aesok@post.ru>
5672 * tree.h (build_int_cstu): Implement as static inline.
5673 * tree.c (build_int_cstu): Remove function.
5674 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
5677 2010-05-18 Richard Guenther <rguenther@suse.de>
5680 * lto-wrapper.c (verbose): New variable. Initialize from -v.
5681 (debug): Initialize from -save-temps.
5682 (collect_execute): Print command-line when verbose.
5683 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
5684 for ltrans invocation. Produce -dumpbase flag again.
5685 (process_args): Remove.
5687 * collect2.c (maybe_run_lto_and_relink): Only pass object
5688 files to lto-wrapper.
5689 * gcc.c (LINK_COMMAND_SPEC): Likewise.
5691 2010-05-18 Jan Hubicka <jh@suse.cz>
5693 * opts.c (decode_options): Do not disable whopr at ipa_cp.
5694 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
5696 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
5699 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
5701 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
5704 2010-05-18 Jakub Jelinek <jakub@redhat.com>
5707 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
5710 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
5712 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
5713 lto-macho as lto_binary_reader.
5715 * darwin.c (darwin_asm_named_section): Do not add assembler comment
5716 after .section directive; just print it before the directive instead.
5718 2010-05-17 Jan Hubicka <jh@suse.cz>
5720 * cgraph.c (cgraph_create_virtual_clone): Only check
5721 versionable_function_p when not in wpa and checking is enabled.
5722 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
5723 there are no more functions to materialize.
5725 2010-05-17 Jan Hubicka <jh@suse.cz>
5727 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
5728 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
5730 (output_cgraph): Call output_cgraph_opt_summary.
5731 (input_cgrpah): Call input_cgraph_opt_summary.
5732 (output_cgraph_opt_summary_p, output_node_opt_summary,
5733 input_node_opt_summary, input_cgraph_opt_section): New functions.
5734 * lto-section-in.c (lto_section_name): Add cgraphopt.
5735 * tree-inline.c (tree_function_versioning): Handle parm_num.
5736 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
5737 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
5739 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
5741 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
5742 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
5743 the insn to prefetch ratio heuristic to loops with known trip count.
5745 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
5747 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
5748 (schedule_prefetches): Do not generate a prefetch if the unroll factor
5749 is far from what is required by the prefetch.
5751 2010-05-17 Jan Hubicka <jh@suse.cz>
5753 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
5754 (ipcp_estimate_growth): Likewise.
5755 (ipcp_const_param_count): Likewise.
5756 (ipcp_insert_stage): Likewise.
5757 * ipa-prop.c (visit_load_for_mod_analysis): New function.
5758 (visit_store_addr_for_mod_analysis): Set used flag.
5759 (ipa_detect_param_modifications): Set used flag for SSE params;
5760 update use of walk_stmt_load_store_addr_ops.
5761 (ipa_print_node_params): Print used flag.
5762 (ipa_write_node_info): Stream used flag.
5763 (ipa_read_node_info): Likewise.
5764 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
5765 (ipa_is_param_used): New function.
5766 (lto_ipa_fixup_call_notes): Remove unused declaration.
5768 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5771 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
5772 * configure: Regenerate.
5773 * config.in: Regenerate.
5774 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
5775 !HAVE_AS_IX86_REP_LOCK_PREFIX.
5776 Don't emit whitespace.
5777 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
5778 (*rep_movsi): Likewise.
5779 (*rep_movsi_rex64): Likewise.
5780 (*rep_movqi): Likewise.
5781 (*rep_movqi_rex64): Likewise.
5782 (*rep_stosdi_rex64): Likewise.
5783 (*rep_stossi): Likewise.
5784 (*rep_stossi_rex64): Likewise.
5785 (*rep_stosqi): Likewise.
5786 (*rep_stosqi_rex64): Likewise.
5787 (*cmpstrnqi_nz_1): Use {%;} after repz.
5788 (*cmpstrnqi_nz_rex_1): Likewise.
5789 (*cmpstrnqi_1): Likewise.
5790 (*cmpstrnqi_rex_1): Likewise.
5791 (*strlenqi_1): Use {%;} after repnz.
5792 (*strlenqi_rex_1): Likewise.
5793 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
5794 (*sync_compare_and_swap<mode>): Likewise.
5795 (sync_double_compare_and_swap<mode>): Likewise.
5796 (*sync_double_compare_and_swapdi_pic): Likewise.
5797 (sync_old_add<mode>): Likewise.
5798 (sync_add<mode>): Likewise.
5799 (sync_sub<mode>): Likewise.
5800 (sync_<code><mode>): Likewise.
5802 2010-05-17 Martin Jambor <mjambor@suse.cz>
5804 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
5805 otr_token and polymorphic.
5806 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
5807 (cgraph_clone_edge): Copy the above fields.
5808 * tree.c (get_binfo_at_offset): New function.
5809 * tree.h (get_binfo_at_offset): Declare.
5810 * ipa-prop.h (enum jump_func_type): Added known_type jump function
5811 type, reordered items, updated comments.
5812 (union jump_func_value): Added base_type field, reordered fields.
5813 (enum ipa_lattice_type): Moved down in the file.
5814 (struct ipa_param_descriptor): New field polymorphic.
5815 (ipa_is_param_polymorphic): New function.
5816 * ipa-prop.c: Include gimple.h and gimple-fold.h.
5817 (ipa_print_node_jump_functions): Print known type jump functions.
5818 (compute_complex_pass_through): Renamed to...
5819 (compute_complex_assign_jump_func): this.
5820 (compute_complex_ancestor_jump_func): New function.
5821 (compute_known_type_jump_func): Likewise.
5822 (compute_scalar_jump_functions): Create known type and complex ancestor
5824 (ipa_note_param_call): New parameter polymorphic, set the corresponding
5825 flag in the call note accordingly.
5826 (ipa_analyze_call_uses): Renamed to...
5827 (ipa_analyze_indirect_call_uses): this. New parameter target, define
5828 variable var only in the block where it is used.
5829 (ipa_analyze_virtual_call_uses): New function.
5830 (ipa_analyze_call_uses): Likewise.
5831 (combine_known_type_and_ancestor_jfs): Likewise.
5832 (update_jump_functions_after_inlining): Implemented handling of a
5833 number of new jump function types combination.
5834 (print_edge_addition_message): Removed.
5835 (make_edge_direct_to_target): New function.
5836 (try_make_edge_direct_simple_call): Likewise.
5837 (try_make_edge_direct_virtual_call): Likewise.
5838 (update_call_notes_after_inlining): Renamed to...
5839 (update_indirect_edges_after_inlining): this. Moved edge creation for
5840 indirect calls to try_make_edge_direct_simple_call, also calls
5841 try_make_edge_direct_virtual_call for virtual calls.
5842 (ipa_print_node_params): Changed the header message.
5843 (ipa_write_jump_function): Stream also known type jump functions.
5844 (ipa_read_jump_function): Likewise.
5845 (ipa_write_indirect_edge_info): Stream new fields in
5846 cgraph_indirect_call_info.
5847 (ipa_read_indirect_edge_info): Likewise.
5848 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
5851 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5853 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
5855 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
5857 * tree.h (CALL_EXPR_ARGS): Delete.
5858 (call_expr_arglist): Delete.
5859 * tree.c (call_expr_arglist): Delete.
5860 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
5861 targetm.fold_builtin.
5862 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
5863 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
5864 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
5865 arglist parameter. Use CALL_EXPR_ARG.
5866 (picochip_expand_builtin_3op): Likewise.
5867 (picochip_expand_builtin_2opvoid): Likewise.
5868 (picochip_expand_array_get): Likewise.
5869 (picochip_expand_array_put): Likewise.
5870 (picochip_expand_array_testport): Likewise.
5871 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
5872 rather than arglist.
5873 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
5875 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
5876 than TREE_VALUE and TREE_CHAIN.
5877 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
5878 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
5881 2010-05-17 Jakub Jelinek <jakub@redhat.com>
5884 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
5885 to have no fallthru edge.
5888 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
5889 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
5890 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
5891 add BARRIER after previous bb if needed.
5893 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
5895 * tree.c (build_function_type_list_1): Remove bogus assert condition.
5897 2010-05-17 Alan Modra <amodra@gmail.com>
5899 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
5900 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
5901 with copy_reg rtx param.
5902 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
5903 Correct cases where code for ABI_V4 did not initialise the reg
5904 used to access frame. Also leave frame_reg_rtx as sp for large
5905 frames that save no regs.
5907 2010-05-17 Martin Jambor <mjambor@suse.cz>
5910 * tree-sra.c (create_access_replacement): New parameter rename, mark
5911 the replaement for renaming only when it is true.
5912 (get_access_replacement): Pass true in the rename parameter of
5913 create_access_replacement.
5914 (get_unrenamed_access_replacement): New function.
5915 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
5916 replacement declaration from it.
5918 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
5920 * function.c (try_fit_stack_local, add_frame_space): New static
5922 (assign_stack_local_1): Use them. Look for opportunities to use
5923 space previously wasted on alignment.
5924 * function.h (struct frame_space): New.
5925 (struct rtl_data): Add FRAME_SPACE_LIST member.
5926 * reload1.c (something_was_spilled): New static variable.
5927 (alter_reg): Set it.
5928 (reload): Test it in addition to testing if the frame size changed.
5930 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
5932 * config/s390/s390.c: Define sane prefetch settings and activate
5933 flag_prefetch_loop_arrays on -O3.
5934 * config/s390/s390.h: Declare that read can use write prefetch.
5936 2010-05-17 Jakub Jelinek <jakub@redhat.com>
5938 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
5941 2010-05-16 Jan Hubicka <jh@suse.cz>
5943 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
5944 function body; do not check stdarg field of struct function.
5946 2010-05-16 Jan Hubicka <jh@suse.cz>
5948 * cgraph.c (dump_cgraph_node): Dump versionable flag.
5949 * cgraph.h (cgraph_local_info): Add versionable flag.
5950 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
5951 (ipcp_versionable_function_p): Use it.
5952 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5955 2010-05-16 Jan Hubicka <jh@suse.cz>
5957 * cgraph.c (cgraph_clone_node): Take decl argument and insert
5958 clone into hash when it is different from orig.
5959 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
5960 * cgraph.h (cgraph_clone_node): Update prototype.
5961 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
5962 (lto_cgraph_encoder_delete): Delete body map.
5963 (lto_cgraph_encoder_size): Move to header.
5964 (lto_cgraph_encoder_encode_body_p,
5965 lto_set_cgraph_encoder_encode_body): New.
5966 (lto_output_node): Do not take written_decls argument; output clone_of
5968 (add_node_to): Add include_body_argument; call
5969 lto_set_cgraph_encoder_encode_body on master of the clone.
5970 (add_references): Update use of add_node_to.
5971 (compute_ltrans_boundary): Likewise.
5972 (output_cgraph): Do not create written_decls bitmap.
5973 (input_node): Take nodes argument; stream in clone_of correctly.
5974 (input_cgraph_1): Update use of input_node.
5975 * lto-streamer-out.c (lto_output): Use encoder info to decide
5976 what bodies to output.
5977 * ipa-inline.c (cgraph_clone_inlined_nodes,
5978 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
5979 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
5980 (lto_cgraph_encoder_size): Define here.
5981 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
5984 2010-05-16 Richard Guenther <rguenther@suse.de>
5986 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
5988 * ipa-type-escape.c (gate_type_escape_vars): Run when
5989 -fipa-struct-reorg runs.
5990 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
5991 * common.opt (fipa-type-escape): Remove.
5993 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
5995 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
5996 (decode_options): Likewise.
5997 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
5999 2010-05-16 Jan Hubicka <jh@suse.cz>
6001 * ipa.c (function_and_variable_visibility): Also bring local all
6004 2010-05-16 Richard Guenther <rguenther@suse.de>
6006 * alias.c (nonoverlapping_memrefs_p): Remove use of
6007 IPA type-escape information.
6009 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6011 * c-common.c (c_common_reswords): Add _Static_assert for C.
6012 * c-parser.c (c_token_starts_declaration,
6013 c_parser_next_token_starts_declaration,
6014 c_parser_static_assert_declaration_no_semi,
6015 c_parser_static_assert_declaration): New.
6016 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6017 Handle static assertions if static_assert_ok.
6018 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6019 c_parser_compound_statement_nostart, c_parser_label,
6020 c_parser_for_statement, c_parser_objc_methodprotolist,
6021 c_parser_omp_for_loop): All callers of
6022 c_parser_declaration_or_fndef changed.
6023 (c_parser_struct_declaration): Handle static assertions.
6024 (c_parser_compound_statement_nostart): Use
6025 c_parser_next_token_starts_declaration and
6026 c_token_starts_declaration to detect start of declarations.
6027 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6030 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6032 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6033 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6034 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6035 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6036 (mmix_function_outgoing_value): Rename to...
6037 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6038 (mmix_function_value_regno_p): Make static.
6039 (mmix_libcall_value): New function.
6040 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6041 mmix_function_value_regno_p): Remove declaration.
6043 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6045 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6046 BUILT_IN_ALLOCA if stack checking is enabled.
6048 2010-05-16 Richard Guenther <rguenther@suse.de>
6050 * var-tracking.c (vars_copy_1): Inline ...
6051 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6052 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6053 (variable_merge_over_cur): Adjust. Merge asserts.
6054 (variable_merge_over_src): Likewise.
6055 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6056 (variable_post_merge_new_vals): Merge asserts.
6057 (variable_post_merge_perm_vals): Likewise.
6058 (find_mem_expr_in_1pdv): Likewise.
6059 (dataflow_set_different_value): Remove.
6060 (onepart_variable_different_p): Merge asserts.
6061 (variable_different_p): Likewise.
6062 (dataflow_set_different_1): Inline ...
6063 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6064 (emit_notes_for_differences_1): Merge asserts.
6066 2010-05-16 Richard Guenther <rguenther@suse.de>
6068 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6069 * optabs.c (libfunc_decl_hash): Likewise.
6070 * varasm.c (emutls_decl): Likewise.
6072 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6074 * c-decl.c: Don't include gimple.h.
6075 (merge_decls): Do not copy gimple_body.
6077 2010-05-15 Jason Merrill <jason@redhat.com>
6079 * c.opt: Add -fnothrow-opt.
6081 2010-05-15 Jan Hubicka <jh@suse.cz>
6083 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6085 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6087 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6089 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6090 * Makefile.in: Add it.
6091 Fix all other Makefile dependencies for changes below.
6092 * tree.h: Include it instead of defining VEC primitives here.
6093 * gimple.h: Likewise.
6095 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6096 * except.h: Include vecir.h, break dependence on tree.h.
6098 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6100 * tree-iterator.c: ...to here.
6101 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6103 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6105 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6106 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6107 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6108 tree-mudflap.h, and target.h.
6109 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6110 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6111 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6112 Add FIXME for why gimple.h is still included (should be unnecessary
6113 since GCC 4.5 gimplification unit-at-a-time).
6114 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6115 * c-pragma.c: Add FIXME for why function.h needs to be included just
6116 for cfun, at front-end level.
6117 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6118 Do not include ggc.h, but include vecprim.h for VEC(char).
6119 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6120 Explain why target.h is included.
6121 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6122 Explain why gimple.h is included.
6123 * c-ppoutput.c: Do not include tm.h.
6124 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6125 * c-parses.c: Explain why rtl.h is included, and that this (and only
6126 this) is also why tm.h must be included.
6127 Do not include except.h.
6128 * c-lang.c: Do not include ggc.h.
6130 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6132 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6134 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6136 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6137 unions by default if those structs and unions have no tags. Do
6138 not condition anonymous struct and unions handling on flag_iso.
6139 Allow anonymous structs and unions for C1X.
6140 (finish_struct): Do not diagnose lack of named fields when
6141 anonymous structs and unions present for C1X. Accept flexible
6142 array members in structure with anonymous structs or unions but no
6143 directly named fields.
6144 * doc/extend.texi (Unnamed Fields): Update.
6146 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6148 * gimple.h (compare_field_offset): Rename into...
6149 (gimple_compare_field_offset): ...this.
6150 * gimple.c (compare_field_offset): Rename into...
6151 (gimple_compare_field_offset): ...this. Compare the full access if
6152 the offset is self-referential.
6153 (gimple_types_compatible_p): Adjust for above renaming.
6154 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6155 DECL_NONADDRESSABLE_P flag of fields before merging them.
6157 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6159 * tree.h (ctor_to_list): Delete.
6160 * tree.c (ctor_to_list): Delete.
6162 2010-05-15 Jan Hubicka <jh@suse.cz>
6164 * ipa-reference.c: Include toplev.h
6165 (is_proper_for_analysis): Only add to all_module_statics
6167 (write_node_summary_p, stream_out_bitmap,
6168 ipa_reference_write_optimization_summary,
6169 ipa_reference_read_optimization_summary): New.
6170 (struct ipa_opt_pass_d pass_ipa_reference): Add
6171 optimization summary streaming.
6172 * lto-cgraph.c (referenced_from_this_partition_p,
6173 reachable_from_this_partition_p): New functions.
6174 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6175 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6176 * opts.c (decode_options): Enable ipa_reference.
6177 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6178 * lto-streamer.h (referenced_from_this_partition_p,
6179 reachable_from_this_partition_p): Declare.
6181 2010-05-15 Richard Guenther <rguenther@suse.de>
6183 PR tree-optimization/44038
6184 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6185 taking the address of a V_C_E of a constant.
6187 2010-05-14 Jan Hubicka <jh@suse.cz>
6189 * tree.h (memory_identifier_string): Remove.
6190 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6191 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6192 statics_not_written.
6193 (ipa_reference_optimization_summary_d): New structure.
6194 (ipa_reference_optimization_summary_t): New type and vector.
6195 (ipa_reference_vars_info_d): Embedd structures instead of using
6197 (reference_vars_to_consider): Remove out of GGC space.
6198 (module_statics_escape): Remove.
6199 (global_info_obstack): Rename to ...
6200 (optimization_summary_obstack): ... this one.
6201 (initialization_status_t): Remove.
6202 (memory_identifier_string): Remove.
6203 (get_reference_vars_info): Fix indenting.
6204 (set_reference_vars_info): Likewise.
6205 (get_reference_optimization_summary): New.
6206 (set_reference_optimization_summary): New.
6207 (get_global_reference_vars_info): Remove.
6208 (ipa_reference_get_read_global): Remove.
6209 (ipa_reference_get_written_global): Remove.
6210 (ipa_reference_get_not_read_global): Update.
6211 (ipa_reference_get_not_written_global): Update.
6212 (is_proper_for_analysis): Outlaw addressable.
6213 (propagate_bits): Update for new datastructures.
6214 (analyze_variable): Remove.
6215 (init_function_info): Update for new datastructures.
6216 (clean_function_local_data): Remove.
6217 (clean_function): Remove.
6218 (copy_global_bitmap): Use optimizations_summary_obstack.
6219 (duplicate_node_data): Duplicate optimization summary only.
6220 (remove_node_data): Remove optimization summary only.
6221 (generate_summary): Do not analyze variables; do not compute
6222 module_statics_escape; do not prune solutions by it.
6223 (read_write_all_from_decl): Fix typos in comments.
6224 (propagate): Doscover readonly and nonaddressable first;
6225 update for new datastructures; share global bitmaps.
6226 * ipa-reference.h (ipa_reference_get_read_global,
6227 ipa_reference_get_written_global): Remove.
6228 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6229 * Makefile.in: Remove ipa-refereference from GT files.
6231 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6234 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6235 for all SYMBOL_REF_DECLs.
6237 2010-05-14 Jan Hubicka <jh@suse.cz>
6239 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6240 (varpool_all_refs_explicit_p): New inline function.
6241 * ipa-reference.c: Update comment.
6242 (module_statics_written): Remove.
6243 (get_static_decl): Remove.
6244 (ipa_init): Do not initialize module_statics_written.
6245 (analyze_function): Likewise.
6246 (generate_summary): Likewise; do not compute module_statics_readonly
6247 and do not update variable flags.
6248 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6249 * ipa.c: Inlucde flags.h
6250 (cgraph_local_node_p): New.
6251 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6252 promote functions to local.
6253 (ipa_discover_readonly_nonaddressable_vars): New function.
6254 (function_and_variable_visibility): Use cgraph_local_node_p.
6255 * varpool.c (varpool_finalize_decl): Set force_output for
6256 DECL_PRESERVE_P vars.
6258 2010-05-14 Jan Hubicka <jh@suse.cz>
6260 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6262 2010-05-14 Richard Guenther <rguenther@suse.de>
6264 PR tree-optimization/44119
6265 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6266 a PHI node necessary.
6268 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6270 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6272 2010-05-14 Jason Merrill <jason@redhat.com>
6275 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6276 (gimple_call_set_nothrow): New.
6277 * gimple.c (gimple_build_call_from_tree): Call it.
6278 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6281 * gimplify.c (gimplify_seq_add_stmt): No longer static.
6282 * gimple.h: Declare it.
6283 * gimple.c (gimple_build_eh_filter): No ops.
6285 2010-05-14 Jan Hubicka <jh@suse.cz>
6287 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6288 nodes already in queue.
6289 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6292 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6295 * cfgexpand.c (expand_debug_expr): If non-memory op0
6296 has BLKmode, return NULL.
6298 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
6300 * config.gcc: Add support for --with-cpu option for bdver1.
6301 * config/i386/i386.h (TARGET_BDVER1): New macro.
6302 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6303 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6304 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6305 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6306 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6307 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6308 (processor_type): Add PROCESSOR_BDVER1.
6309 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6310 processor_type in config/i386/i386.h.
6311 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6312 movaps <reg, reg> instead of movapd <reg, reg> when replacing
6313 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6314 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6315 to emit packed xor instead of packed double/packed integer
6316 xor for SSE and AVX when moving a zero value.
6317 * config/i386/sse.md: Add check for
6318 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6319 movapd/movdqa for SSE and AVX.
6320 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6321 single logical operations i.e and, or and xor instead of packed double
6322 logical operations for SSE and AVX.
6323 * config/i386/i386-c.c (ix86_target_macros_internal):
6324 Add PROCESSOR_BDVER1.
6325 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6326 (has_fma4, has_xop): New.
6327 * config/i386/i386.c (bdver1_cost): New variable.
6328 (m_BDVER1): New macro.
6329 (m_AMD_MULTIPLE): Add m_BDVER1.
6330 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6331 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6332 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6333 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6334 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6335 x86_tune_sse_partial_reg_dependency,
6336 x86_tune_sse_unaligned_load_optimal,
6337 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6338 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6339 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6340 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6341 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6342 Enable/disable for bdver1.
6343 (processor_target_table): Add bdver1_cost.
6344 (cpu_names): Add bdver1.
6345 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6346 processor_alias_table.
6347 (ix86_expand_vector_move_misalign): Change.
6348 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6349 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6350 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6351 of movupd/movdqu for SSE and AVX.
6352 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6353 (ix86_tune_adjust_cost): Add code for bdver1.
6354 (standard_sse_constant_opcode): Add check for
6355 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6356 of packed double xor for SSE and AVX.
6358 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
6360 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6363 2010-05-14 Tristan Gingold <gingold@adacore.com>
6365 * toplev.c (default_debug_hooks): Remove this variable.
6366 (process_options): Remove assignments to default_debug_hooks.
6368 2010-05-14 Martin Jambor <mjambor@suse.cz>
6370 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6371 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6372 * langhooks.h (struct lang_hooks_for_decls): Removed field
6374 * tree.c (free_lang_data): Remove assignment to
6375 lang_hooks.fold_obj_type_ref.
6376 * tree.def (OBJ_TYPE_REF): Update comment.
6378 2010-05-14 Richard Guenther <rguenther@suse.de>
6380 PR tree-optimization/44124
6381 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6383 2010-05-14 Alan Modra <amodra@gmail.com>
6386 * config/rs6000/rs6000.c (struct machine_function): Reorder
6387 fields for better packing. Add lr_save_state.
6388 (rs6000_ra_ever_killed): Return lr_save_state if set.
6389 (rs6000_emit_eh_reg_restore): Set lr_save_state.
6391 2010-05-13 Jan Hubicka <jh@suse.cz>
6393 * varpool.c (decide_is_variable_needed): Drop code checking
6394 TREE_SYMBOL_REFERENCED.
6396 2010-05-13 Jan Hubicka <jh@suse.cz>
6398 * final.c (output_addr_const): Do not call mark_decl_referenced.
6399 * cgraphunit.c (process_function_and_variable_attributes): Use
6400 mark_needed_node dirrectly.
6401 (assemble_thunk): Do not call mark_decl_referenced.
6403 2010-05-13 Anatoly Sokolov <aesok@post.ru>
6405 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6407 2010-05-13 Jeff Law <law@redhat.com>
6409 * ira-conflicts.c (print_allocno_conflicts): New function broken out
6411 (print_conflicts): Call print_allocno_conflicts.
6413 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6416 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6419 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
6421 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6422 t-mingw-w64 or t-mingw-w32 for multilib configuration.
6423 * config/i386/t-mingw-w32: New.
6424 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6426 2010-05-13 Martin Jambor <mjambor@suse.cz>
6428 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6430 * gimple-fold.c (get_base_binfo_for_type): New function.
6431 (gimple_get_relevant_ref_binfo): Likewise.
6432 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6433 (gimple_fold_obj_type_ref): Likewise.
6434 (fold_gimple_call): Simplify condition for folding virtual calls
6435 and call gimple_fold_obj_type_ref.
6436 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
6437 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6439 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6441 * config/rs6000/rs6000-protos.h
6442 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
6443 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
6444 (rs6000_debug_mode_dependent_address)
6445 (rs6000_mode_dependent_address_ptr): Likewise.
6447 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6450 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
6452 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
6453 * tree-sra.c (create_access_replacement): Call unshare_expr before
6454 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
6455 * dwarf2out.c: Include tree-flow.h.
6456 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
6457 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6458 Handle DW_OP_bit_piece.
6459 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
6460 construct_piece_list, adjust_piece_list): New functions.
6461 (add_var_loc_to_decl): Handle SRA optimized variables.
6462 Adjust for var_loc_note to loc field renaming.
6463 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
6464 in VAR_LOCATION note.
6465 (new_loc_descr_op_bit_piece): New function.
6466 (dw_sra_loc_expr): New function.
6467 (dw_loc_list): Use it. Don't handle the last range after the
6468 loop, handle it inside of the loop. Adjust for var_loc_note
6469 to loc field renaming.
6470 (add_location_or_const_value_attribute): Only special case
6471 single entry loc lists if loc is NOTE_P. Adjust for
6472 var_loc_note to loc field renaming.
6473 (dwarf2out_var_location): Don't set newloc->var_loc_note
6474 and newloc->next here.
6476 2010-05-12 Jan Hubicka <jh@suse.cz>
6478 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
6480 * cgraph.h (cgraph_only_called_directly_p,
6481 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
6482 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
6483 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
6485 * ipa.c (cgraph_remove_unreachable_nodes): Use
6486 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
6488 * tree-inline.c (copy_bb): Check address_taken flag.
6489 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
6490 externally_visible flag.
6492 2010-05-12 Jason Merrill <jason@redhat.com>
6496 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
6497 * sdbout.c (plain_type_1): Likewise.
6498 * dwarf2out.c (is_base_type): Likewise.
6499 (gen_type_die_with_usage): Likewise. Generate
6500 DW_TAG_unspecified_type for any LANG_TYPE.
6502 2010-05-12 Jan Hubicka <jh@suse.cz>
6504 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
6506 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
6507 (cgraph_clone_edge): Update.
6508 (cgraph_node_remove_callees): Remove indirect calls too.
6509 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
6510 (cgraph_create_indirect_edge): Update prototype.
6511 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
6512 is_proper_for_analysis.
6513 (add_new_function, visited_nodes, function_insertion_hook_holder,
6514 get_local_reference_vars_info, mark_address_taken, mark_address,
6515 mark_load, mark_store, check_asm_memory_clobber, check_call,
6516 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
6517 (ipa_init): Do not initialize visited_nodes;
6518 function_insertion_hook_holder.
6519 (analyze_variable): Rewrite.
6520 (analyze_function): Rewrite.
6521 (copy_local_bitmap): Remove.
6522 (duplicate_node_dat): Do not duplicate local info.
6523 (generate_summary): Simplify to only walk cgraph.
6524 (write_node_summary_p, ipa_reference_write_summary,
6525 ipa_reference_read_summary): Remove.
6526 (propagate): Do not remove function insertion;
6528 (pass_ipa_reference): NULLify summary handling fields.
6529 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
6530 (input_edge): Input ecf_flags.
6531 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
6532 (update_indirect_edges_after_inlining): Ignore edges with unknown
6535 2010-05-12 Sriraman Tallam <tmsriram@google.com>
6537 * implicit-zee.c: New file.
6538 * tree-pass.h (pass_implicit_zee): Declare.
6539 * passes.c (init_optimization_passes): Add zee pass.
6540 * common.opt (fzee): New flag.
6541 * timevar.def (TV_ZEE): Define.
6542 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
6544 * Makefile.in (implicit-zee.o): Add new build file.
6546 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6547 Nathan Froyd <froydnj@codesourcery.com>
6549 * c-common.c (sync_resolve_params): Remove write-only variable.
6551 2010-05-12 Anatoly Sokolov <aesok@post.ru>
6553 * target.h (struct gcc_target): Add mode_dependent_address_p field.
6554 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6555 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
6556 * targhooks.c (default_mode_dependent_address_p): New function.
6557 * targhooks.h (default_mode_dependent_address_p): Declare function.
6558 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6559 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
6560 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
6561 target hook. Change return type to bool.
6562 * recog.h (mode_dependent_address_p): Change return type to bool.
6564 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6565 Nathan Froyd <froydnj@codesourcery.com>
6567 * tree-mudflap.c (build_function_type_0, build_function_type_1,
6568 build_function_type_2, build_function_type_3): Remove.
6569 (mudflap_init): Use build_function_type_list.
6571 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6572 Nathan Froyd <froydnj@codesourcery.com>
6574 * coverage.c (build_fn_info_value): Call build_constructor instead of
6575 build_constructor_from_list.
6576 (build_ctr_info_value): Likewise.
6577 (build_gcov_info): Likewise.
6579 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
6581 * tree.c (build_constructor): Compute TREE_CONSTANT for the
6582 resultant constructor.
6583 (build_constructor_single): Don't set TREE_CONSTANT.
6584 (build_constructor_from_list): Don't compute TREE_CONSTANT.
6586 2010-05-12 Jan Hubicka <jh@suse.cz>
6588 * cgraph.h (struct varpool_node): Add aux.
6589 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
6590 * varpool.c (varpool_remove_node): Do not remove initializer.
6591 (varpool_reset_queue): Export.
6592 (varpool_finalize_decl): Volatile vars are forced to be output.
6593 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
6595 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
6596 process_references, varpool_can_remove_if_no_refs): New functions.
6597 (cgraph_remove_unreachable_nodes): Handle variables too.
6599 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
6602 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
6604 2010-05-12 Jakub Jelinek <jakub@redhat.com>
6607 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
6608 change value of ORT_TASK.
6609 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
6610 (omp_notice_threadprivate_variable): New function.
6611 (omp_notice_variable): Call it for threadprivate variables.
6612 If enclosing ctx is a task, print enclosing task rather than
6613 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
6614 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
6615 if task has untied clause.
6618 * dwarf2out.c (base_type_die): Don't add name attribute here.
6619 (modified_type_die): Instead of sizetype use
6620 its underlying original type. If a DW_TAG_base_type doesn't
6621 have name added, add __unknown__.
6622 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
6623 always call force_type_die instead.
6625 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
6627 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
6628 for __stack_chk_guard.
6630 2010-05-11 Jakub Jelinek <jakub@redhat.com>
6632 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
6633 don't call start_source_file debug hook here...
6634 (finish_options): ... but here, after outputting predefined and
6635 command line defines and undefs.
6638 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
6640 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
6641 optimizing away empty bb with no successors, move over its
6642 footer chain to fallthru predecessor.
6643 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
6644 (rtl_split_edge): For asm goto call patch_jump_insn even if
6645 splitting fallthru edge.
6648 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
6649 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
6650 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
6651 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
6655 * c-parser.c (c_parser_expression): Mark LHS of a comma
6656 expression as read if it is a decl, handled component or
6657 COMPOUND_EXPR with that on the RHS.
6658 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
6659 if it is a decl or handled component.
6661 2010-05-11 Jan Hubicka <jh@suse.cz>
6663 * lto-symtab.c (lto_symtab_free): New function.
6664 * lto-streamer.h (lto_symtab_free): Declare.
6666 2010-05-11 Jan Hubicka <jh@suse.cz>
6668 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
6669 that if function is needed it is reachable.
6670 (lto_output_node): See if it the function is reachable or referenced.
6671 (output_cgraph): Update call of lto_output_node.
6672 * lto-streamer.h (reachable_from_other_partition_p): Declare.
6674 2010-05-11 Jan Hubicka <jh@suse.cz>
6676 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
6679 2010-05-11 Jan Hubicka <jh@suse.cz>
6681 PR tree-optimize/44063
6682 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
6684 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
6686 (estimate_function_body_sizes): Compute sizes even when disregarding.
6688 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
6690 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
6692 2010-05-11 Jan Hubicka <jh@suse.cz>
6694 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
6695 into every boundary.
6697 2010-05-11 Jan Hubicka <jh@suse.cz>
6699 * matrix-reorg.c (matrix_reorg): Rebuild edges.
6701 2010-05-11 Jan Hubicka <jh@suse.cz>
6703 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
6704 lto_streamer_cache_delete): Put nodes into heap.
6705 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
6708 2010-05-11 Jan Hubicka <jh@suse.cz>
6710 * cgraphbuild.c (cgraph_rebuild_references): New.
6711 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
6713 * cgraph.h (cgraph_rebuild_references): Declare.
6714 * tree-inline.c (tree_function_versioning): Use it.
6715 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
6717 2010-05-11 Jan Hubicka <jh@suse.cz>
6719 * cgraph.c: Include ipa-utils.h
6720 (cgraph_create_virtual_clone): Update references.
6721 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
6723 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
6725 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
6726 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
6729 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
6731 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
6733 2010-05-11 Jakub Jelinek <jakub@redhat.com>
6735 * gcc.c (execute): For -### don't quote arguments that
6736 contain just alphanumerics and _/-. characters.
6737 * doc/invoke.texi: Document that change for -###.
6740 * df-problems.c (struct dead_debug): Add to_rescan field.
6741 (dead_debug_init): Clear to_rescan field.
6742 (dead_debug_finish): Rescan all debug insns in to_rescan
6743 bitmap and free the bitmap.
6744 (dead_debug_insert_before): Instead of rescanning debug insns
6745 immediately queue their rescanning until dead_debug_finish.
6746 (df_note_bb_compute): After dead_debug_add do continue instead
6749 2010-05-10 Jakub Jelinek <jakub@redhat.com>
6752 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
6753 clear also INSN_REG_USE_LIST.
6755 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6757 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
6759 2010-05-10 Jan Hubicka <jh@suse.cz>
6761 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
6764 2010-05-10 Jan Hubicka <jh@suse.cz>
6766 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
6768 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
6769 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
6770 (lto_streamer_cache_create): Init alloc pool.
6771 (lto_streamer_cache_delete): Free alloc pool.
6772 * lto-streamer.h: Include alloc pool.
6773 (lto_streamer_cache_d): Use alloc pool.
6774 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
6776 2010-05-10 Jan Hubicka <jh@suse.cz>
6778 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
6779 * cgraphbuild.c: Include except.h
6780 (record_type_list, record_eh_tables): New function.
6781 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
6783 2010-05-10 Jan Hubicka <jh@suse.cz>
6785 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
6786 __frame_dummy_init_array_entry, force_to_data): Attribute as used
6789 2010-05-10 Michael Matz <matz@suse.de>
6791 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
6792 (can_reassociate_p): Use FLOAT_TYPE_P.
6793 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
6794 (vect_force_simple_reduction): ... this.
6795 * tree-parloops.c (gather_scalar_reductions): Use
6796 vect_force_simple_reduction.
6797 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
6798 vect_is_simple_reduction, add modify argument, if true rewrite
6799 "a-b" into "a+(-b)".
6800 (vect_is_simple_reduction, vect_force_simple_reduction): New
6802 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
6804 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
6805 Vladimir Makarov <vmakarov@redhat.com>
6807 PR rtl-optimization/44012
6808 * ira-build.c (remove_unnecessary_allocnos): Nullify
6809 regno_allocno_map of the removed allocno.
6811 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6813 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
6815 * configure: Regenerate.
6817 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6819 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
6821 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
6822 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
6824 * configure: Regenerate.
6826 2010-05-10 Richard Guenther <rguenther@suse.de>
6828 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
6829 marked if the entry identifier is marked.
6831 2010-05-10 Richard Guenther <rguenther@suse.de>
6833 * c-common.c (struct c_common_attributes): Add fnspec attribute.
6834 (handle_fnspec_attribute): New function.
6835 * gimple.h (gimple_call_return_flags): Declare.
6836 (gimple_call_arg_flags): Likewise.
6837 * gimple.c (gimple_call_arg_flags): New function.
6838 (gimple_call_return_flags): Likewise.
6839 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
6841 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
6843 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
6844 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
6846 (make_heapvar_for): ... this new function.
6847 (handle_rhs_call): Handle fnspec attribute argument specifiers.
6848 (handle_lhs_call): Likewise.
6849 (find_func_aliases): Adjust.
6851 2010-05-10 Richard Guenther <rguenther@suse.de>
6853 PR tree-optimization/44050
6854 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
6856 2010-05-10 Wei Guozhi <carrot@google.com>
6859 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
6861 2010-05-09 Joseph Myers <joseph@codesourcery.com>
6864 * c-typeck.c (lookup_field): Take a type directly. Update
6866 (build_component_ref): Update call to lookup_field.
6867 (set_init_label): Use lookup_field to find initialized field.
6868 Handle returned list of fields like a sequence of designators.
6870 2010-05-09 Richard Guenther <rguenther@suse.de>
6873 * fold-const.c (tree_single_nonzero_warnv_p): Properly
6874 handle &FUNCTION_DECL.
6876 2010-05-09 Joseph Myers <joseph@codesourcery.com>
6879 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
6880 structures and unions recursively.
6881 (detect_field_duplicates): Move duplicate detection with a hash to
6882 detect_field_duplicates_hash. Always use a hash if anonymous
6883 structures or unions are present.
6884 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
6887 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
6890 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
6891 detect Atom, Core 2 and Core i7.
6893 2010-05-09 Richard Guenther <rguenther@suse.de>
6895 * gcc.c (store_arg): Handle temporary file deletion for
6898 2010-05-09 Richard Guenther <rguenther@suse.de>
6901 * ipa-inline.c (estimate_function_body_sizes): Return after
6902 disregarding inline limits.
6904 2010-05-09 Richard Guenther <rguenther@suse.de>
6906 * gcc.c (store_arg): Revert last change.
6908 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
6911 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
6912 (optimize_ops_list): Call it.
6914 2010-05-08 Richard Guenther <rguenther@suse.de>
6916 PR tree-optimization/44030
6917 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
6918 NECESSARY flag if we propagate from a inserted expression.
6920 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
6922 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
6923 domain types as equal if they are both PLACEHOLDER_EXPRs.
6925 2010-05-08 Richard Guenther <rguenther@suse.de>
6927 * lto-wrapper.c (run_gcc): Remove linker output from
6928 command line for LTRANS invocation.
6930 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
6932 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6933 lto-macho as lto_binary_reader.
6934 * target.h (struct gcc_target): New hooks lto_start and lto_end.
6935 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
6936 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
6937 in lto_start and lto_end calls.
6938 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
6940 (scan_prog_file): Update is_elf_or_coff call.
6941 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
6943 * collect2.c (main): Fix enum comparison.
6945 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
6947 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
6948 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
6949 and TARGET_ASM_LTO_END.
6950 * darwin.c: Include obstack.h and lto-streamer.h.
6951 (lto_section_names_offset, lto_section_names_obstack,
6952 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
6954 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
6955 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
6956 to a temporary file.
6957 (darwin_asm_lto_end): New function. Restore asm_out_file.
6958 (darwin_asm_named_section): For LTO sections, replace the name with
6959 the offset of the section name in a string table, and build this
6961 (darwin_file_start): Initialize global vars for LTO support.
6962 (darwin_file_end): If output to asm_out_file was redirected, append it
6963 to the proper asm_out_file here. Add the section names section.
6965 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
6967 * c-pragma.c (pending_weak_d, pending_weak): New.
6968 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
6969 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
6970 handle_pragma_weak): Update the uses of pending_weaks.
6972 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6974 PR documentation/44016
6975 * doc/standards.texi (Standards): Link to unversioned
6976 cxx0x_status.html page.
6978 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
6981 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
6982 in addition to TREE_USED, to avoid "set but unused" warnings.
6984 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
6986 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
6987 (is_loop_prefetching_profitable): Do not insert prefetches
6988 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
6989 times the prefetch ahead distance.
6991 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
6993 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
6994 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
6995 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
6998 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7000 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7001 a diagnostic info when the insn-to-mem ratio is too small.
7003 2010-05-07 Richard Guenther <rguenther@suse.de>
7005 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7007 (store_arg): Queue temp_filename for deletion instead of
7010 2010-05-07 Richard Guenther <rguenther@suse.de>
7012 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7013 (run_gcc): Handle LTRANS phase invocation.
7014 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7016 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7018 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7019 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7021 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7023 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7025 2010-05-07 Richard Guenther <rguenther@suse.de>
7027 PR tree-optimization/44020
7028 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7029 code when PRE is not yet initialized.
7031 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7033 * config/mips/dbxmdebug.h: Remove.
7034 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7036 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7038 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7039 with null pointer and also warn about ordered comparison of zero with
7042 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7044 * graphite-blocking.c
7045 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7046 * graphite-clast-to-gimple.c
7047 (clast_to_gcc_expression): Same.
7048 (precision_for_value): Same.
7049 (precision_for_interval): Same.
7050 (gcc_type_for_interval): Same.
7051 (graphite_create_new_guard): Same.
7052 (compute_bounds_for_level): Same.
7053 (graphite_create_new_loop_guard): Same.
7054 * graphite-interchange.c
7055 (build_linearized_memory_access): Same.
7056 (pdr_stride_in_loop): Same.
7057 (memory_strides_in_loop_1): Same.
7058 (memory_strides_in_loop): Same.
7059 (extend_scattering): Same.
7060 (psct_scattering_dim_for_loop_depth): Same.
7061 (pbb_number_of_iterations): Same.
7063 (debug_iteration_domains): Same.
7065 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7066 (ppl_set_inhomogeneous_gmp): Same.
7067 (ppl_strip_loop): Same.
7068 (ppl_lexico_compare_linear_expressions): Same.
7069 (ppl_read_polyhedron_matrix): Same.
7070 (ppl_max_for_le_pointset): Same.
7072 (ppl_read_polyhedron_matrix): Same.
7073 (tree_int_to_gmp): Same.
7074 (gmp_cst_to_tree): Same.
7075 (ppl_set_inhomogeneous): Same.
7076 (ppl_set_inhomogeneous_tree): Same.
7077 (ppl_set_coef): Same.
7078 (ppl_set_coef_tree): Same.
7079 * graphite-sese-to-poly.c
7080 (build_pbb_scattering_polyhedrons): Same.
7081 (build_scop_scattering): Same.
7082 (scan_tree_for_params_right_scev): Same.
7083 (scan_tree_for_params): Same.
7084 (find_params_in_bb): Same.
7085 (find_scop_parameters): Same.
7086 (add_upper_bounds_from_estimated_nit): Same.
7087 (build_loop_iteration_domains): Same.
7088 (add_condition_to_domain): Same.
7089 (pdr_add_memory_accesses): Same.
7091 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7093 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7094 CLooG's value_* macros to their respective mpz_* counterparts.
7095 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7096 (graphite_create_new_loop_guard): Same.
7097 * graphite-interchange.c (build_linearized_memory_access): Same.
7098 (pdr_stride_in_loop): Same.
7099 (memory_strides_in_loop_1): Same.
7100 (1st_interchange_profitable_p): Same.
7101 * graphite-poly.c (extend_scattering): Same.
7102 (psct_scattering_dim_for_loop_depth): Same.
7103 (pbb_number_of_iterations): Same.
7104 (pbb_number_of_iterations_at_time): Same.
7105 * graphite-poly.h (new_1st_loop): Same.
7106 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7107 (oppose_constraint): Same.
7108 (insert_constraint_into_matrix): Same.
7109 (ppl_set_inhomogeneous_gmp): Same.
7110 (ppl_set_coef_gmp): Same.
7111 (ppl_strip_loop): Same.
7112 (ppl_lexico_compare_linear_expressions): Same.
7113 (ppl_max_for_le_pointset): Same.
7114 (ppl_min_for_le_pointset): Same.
7115 (ppl_build_realtion): Same.
7116 * graphite-ppl.h (gmp_cst_to_tree): Same.
7117 (ppl_set_inhomogeneous): Same.
7118 (ppl_set_inhomogeneous_tree): Same.
7119 (ppl_set_coef): Same.
7120 (ppl_set_coef_tree): Same.
7121 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7122 (build_scop_scattering): Same.
7123 (add_value_to_dim): Same.
7124 (scan_tree_for_params_right_scev): Same.
7125 (scan_tree_for_params_int): Same.
7126 (scan_tree_for_params): Same.
7127 (find_params_in_bb): Same.
7128 (find_scop_parameters): Same.
7129 (add_upper_bounds_from_estimated_nit): Same.
7130 (build_loop_iteration_domains): Same.
7131 (create_linear_expr_from_tree): Same.
7132 (add_condition_to_domain): Same.
7133 (pdr_add_memory_accesses): Same.
7135 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7136 Jason Merrill <jason@redhat.com>
7138 * c-common.c (c_common_reswords): Add nullptr.
7139 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7140 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7141 (gen_type_die_with_usage): Likewise.
7142 * dbxout.c (dbxout_type): Likewise.
7143 * sdbout.c (plain_type_1): Likewise.
7145 2010-05-06 Jason Merrill <jason@redhat.com>
7147 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7148 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7150 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7152 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7153 stripping WITH_SIZE_EXPR.
7154 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7157 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7159 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7160 list of obsolete configurations.
7161 Disabled check for obsolete configurations.
7162 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7163 Removed support for previous versions.
7164 * config/mips/iris.h: Removed.
7165 * config/mips/iris5.h: Removed.
7166 * config/mips/iris6.h: Merged old iris.h contents.
7167 (TARGET_IRIX): Removed.
7168 (DRIVER_SELF_SPECS): Removed mabi=32.
7169 (IDENT_ASM_OP): Removed undef.
7170 (STARTFILE_SPEC): Removed mabi=32.
7171 (ENDFILE_SPEC): Likewise.
7172 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7173 (MACHINE_TYPE): Update for IRIX 6.5.
7174 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7175 TARGET_IRIX by TARGET_IRIX6.
7176 (mips_file_start): Likewise.
7177 (mips_output_external): Remove IRIX 5/6 O32 support.
7178 (mips_output_function_prologue): Likewise.
7179 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7181 (TARGET_CPU_CPP_BUILTINS): Likewise.
7182 (TARGET_IRIX): Removed.
7183 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7184 (MULTILIB_DIRNAMES): Removed 32.
7185 (MULTILIB_OSDIRNAMES): Removed ../lib.
7186 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7187 (Specific, mips-sgi-irix5): Document removal.
7188 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7189 Remove references to older IRIX 6 releases and the O32 ABI.
7191 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7194 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7195 instead of DF_REF_REAL_REG.
7197 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7200 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7201 handling to still return true for x64 targets.
7203 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7205 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7207 2010-05-06 Jan Hubicka <jh@suse.cz>
7209 PR tree-optimization/43791
7210 * ipa-inline.c (update_caller_keys): Remove bogus
7211 disregard_inline_limits check.
7213 2010-05-06 Michael Matz <matz@suse.de>
7215 PR tree-optimization/43984
7216 * tree-ssa-pre.c (inserted_phi_names): Remove.
7217 (inserted_exprs): Change to bitmap.
7218 (create_expression_by_pieces): Set bits, don't append to vector.
7219 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7220 (eliminate): Don't look at inserted_phi_names, remove deleted
7221 insns from inserted_exprs.
7222 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7223 (init_pre, fini_pre): Allocate and free bitmaps.
7224 (execute_pre): Insert insns on edges before elimination.
7226 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7228 * tree.c (initializer_zerop): Handle STRING_CST.
7230 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7233 * doc/invoke.texi (Wimplicit): Document as C only.
7234 * opts.c (common_handle_option): Add argument kind.
7235 (handle_option): Rename as read_cmdline_option. Factor out code to...
7236 (handle_option): ... here. New.
7237 (handle_options): Rename as read_cmdline_options.
7238 (decode_options): Update call.
7239 (set_option): Use option index instead of option pointer. Classify
7240 diagnostics correctly.
7241 (enable_warning_as_error): Call handle_option.
7242 * opts.h (set_option): Update declaration.
7243 (handle_option): Declare.
7244 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7245 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7246 * c-opts.c (set_Wimplicit): Delete.
7247 (c_family_lang_mask): New static constant.
7248 (c_common_handle_option): Add argument kind. Use handle_option
7249 instead of set_Wimplicit.
7250 (c_common_post_options): warn_implicit and warn_implicit_int
7251 are disabled by default.
7252 * c-common.c (warn_implicit): Do not define here.
7253 * c-common.h (warn_implicit): Do not declare here.
7254 (c_common_handle_option): Update declaration.
7255 * lto-opts.c (lto_reissue_options): Update call to set_option.
7257 2010-05-06 Richard Guenther <rguenther@suse.de>
7259 PR tree-optimization/43571
7260 * domwalk.c (walk_dominator_tree): Walk the dominator
7261 sons in more optimal order.
7263 2010-05-06 Richard Guenther <rguenther@suse.de>
7265 PR tree-optimization/43934
7266 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7267 (stmt_cost): Likewise.
7268 (extract_true_false_args_from_phi): New helper.
7269 (determine_max_movement): For PHI nodes verify we can hoist them
7270 and compute their cost.
7271 (determine_invariantness_stmt): Handle PHI nodes.
7272 (move_computations_stmt): Likewise. Hoist PHI nodes in
7273 if-converted form using COND_EXPRs.
7274 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7275 (tree_ssa_lim): Likewise.
7276 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7277 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7279 2010-05-06 Richard Guenther <rguenther@suse.de>
7281 PR tree-optimization/43987
7282 * tree-ssa-structalias.c (could_have_pointers): For possibly
7283 address-taken variables force pointers to be recorded.
7284 (create_variable_info_for_1): Likewise.
7285 (push_fields_onto_fieldstack): Pass in wheter all fields
7287 (find_func_aliases): Query types instead of vars whether
7288 they contain pointers where appropriate.
7290 2010-05-06 Jan Hubicka <jh@suse.cz>
7292 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7293 (record_reference, mark_address, mark_load, mark_store): Record
7295 (record_references_in_initializer): Update call of record_references.
7296 (rebuild_cgraph_edges): Remove all references before rebuiding.
7297 * cgraph.c (cgraph_create_node): Clear ref list.
7298 (cgraph_remove_node): Remove references.
7299 (dump_cgraph_node): Dump references.
7300 (cgraph_clone_node): Clone references.
7301 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7302 (struct cgraph_node, varpool_node): Add ref_lst.
7303 * ipa-ref.c: New file.
7304 * ipa-ref.h: New file.
7305 * ipa-ref-inline.h: New file.
7306 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7307 (referenced_from_other_partition_p): New function.
7308 (lto_output_varpool_node): Take set arugment; call
7309 referenced_from_other_partition.
7310 (lto_output_ref): New.
7311 (add_references): New.
7313 (output_cgraph): Compute boundary based on references; output refs.
7314 (output_varpool): Accept cgraph_node_set argument.
7317 (input_cgraph): Call input_refs.
7318 * lto-section-in.c (lto_section_name): Add refs.
7319 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7320 (ipa-ref.o): New file.
7321 * varpool.c (varpool_node): Clear ipa ref list.
7322 (varpool_remove_node): Remove references.
7323 (dump_varpool_node): Dump references.
7324 (varpool_assemble_decl): Only compile finalized ones.
7325 (varpool_extra_name_alias): Initialize ref list.
7326 * lto-streamer.c (lto-get_section_name): Add .refs section.
7327 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7328 (referenced_from_other_partition_p): Declared.
7330 2010-05-06 Ira Rosen <irar@il.ibm.com>
7332 PR tree-optimization/43901
7333 * tree-vect-stmts.c (vectorizable_call): Assert that vector
7334 type is not NULL if it's transformation phase, and return
7335 FALSE if it's analysis.
7336 (vectorizable_conversion, vectorizable_operation,
7337 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7339 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7341 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7343 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7345 * config/mips/mips-protos.h
7346 (mips_small_register_classes_for_mode_p): Delete prototype.
7348 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
7350 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7351 * config/arm/arm.c (multiple_operation_profitable_p,
7352 compute_offset_order): New static functions.
7353 (load_multiple_sequence, store_multiple_sequence): Use them.
7354 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
7355 memory offsets, not register numbers.
7356 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7358 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
7360 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7361 (get_pending_sizes, put_pending_size, put_pending_sizes):
7362 Update the uses of pending_sizes.
7363 * c-decl.c (store_parm_decls): Likewise.
7364 * c-tree.h (struct c_arg_info): Likewise.
7365 * tree.h: Update the prototype for get_pending_sizes and
7368 2010-05-05 Jason Merrill <jason@redhat.com>
7371 * c-common.c (handle_aligned_attribute): Respect
7372 ATTR_FLAG_TYPE_IN_PLACE.
7375 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7376 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7377 (TARGET_INITIALIZER): Use it.
7378 * c-common.c (attribute_takes_identifier_p): Call it.
7379 * c-common.h: Update prototype.
7380 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7381 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7383 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7386 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7387 DW_ID_down_case for Fortran compilation units.
7389 2010-05-05 Jan Hubicka <jh@suse.cz>
7391 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7394 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
7396 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7397 a variable-sized RESULT_DECL.
7399 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
7401 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7403 2010-05-05 Jason Merrill <jason@redhat.com>
7406 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7408 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7410 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
7411 Jakub Jelinek <jakub@redhat.com>
7414 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7415 (dead_debug_init, dead_debug_finish): New functions.
7416 (dead_debug_add, dead_debug_insert_before): Likewise.
7417 (df_note_bb_compute): Initialize a dead_debug object, add dead
7418 debug uses to it, insert debug bind insns before death insns,
7419 reset debug insns that refer to pending uses at the end.
7420 * rtl.h (make_debug_expr_from_rtl): New prototype.
7421 * varasm.c (make_debug_expr_from_rtl): New function.
7423 2010-05-05 Jan Hubicka <jh@suse.cz>
7425 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7426 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7427 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7428 lto_varpool_encoder_deref, lto_varpool_encoder_size,
7429 lto_varpool_encoder_encode_initializer_p,
7430 lto_set_varpool_encoder_encode_initializer): New functions.
7431 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7432 call output_varpool.
7433 (input_varpool_node): Do not always set analyzed.
7434 (input_cgraph_1): Return vector of cgraph nodes.
7435 (input_varpool_1): Return vector of varpools.
7436 (input_cgraph): Free the vectors.
7437 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7438 output only initializers needed.
7439 (lto_output): Only call output_cgraph.
7440 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
7441 * lto-section-out.c (lto_new_out_decl_state): Initialize
7442 state->varpool_node_encoder.
7443 * lto-streamer.h (lto_varpool_encoder_d): New.
7444 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
7445 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
7446 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
7447 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
7448 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
7450 (output_varpool, input_varpool): Remove declarations.
7452 2010-05-05 Jan Hubicka <jh@suse.cz>
7454 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
7455 with body can prevail.
7457 2010-05-05 Jan Hubicka <jh@suse.cz>
7459 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
7462 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7464 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
7466 * gengtype.h (erro_at_line): Constify pos argument.
7468 * gengtype.c: Include hashtab.h.
7469 (enum gc_used): Document GC_MAYBE_POINTED_TO.
7470 (error_at_line): Constify pos argument.
7471 (do_typedef): Initialize p->opt field.
7472 (get_file_gtfilename): Fix comment typo.
7473 (struct walk_type_data): Constify line field.
7474 (get_output_file_for_structure): New function.
7475 (write_local_func_for_structure): Constify orig_s argument.
7476 Use get_output_file_for_structure.
7477 (write_func_for_structure): Use get_output_file_for_structure.
7478 (INDENT): New define.
7479 (dump_pair, dump_type, dump_type_list, dump_typekind)
7480 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
7481 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
7483 (seen_types): New variable.
7484 (main): New variable do_dump. Process "-d" command line option.
7485 Call dump_everything if dump requested.
7487 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7489 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
7490 in a temporary instead of invoking the macro multiple times.
7491 (track_expr_p): Likewise.
7493 2010-05-04 Neil Vachharajani <nvachhar@google.com>
7495 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
7497 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
7498 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
7499 conditions for printing notes.
7500 * common.opt (-Wcoverage-mismatch): Allow negative, default to
7501 true, update documentation.
7502 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
7504 2010-05-04 Jakub Jelinek <jakub@redhat.com>
7507 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
7510 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7513 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
7514 (*sse_prologue_save_insn1): Likewise.
7515 (SSE prologue save splitter): Likewise.
7517 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
7519 * tree.c (free_lang_data_in_one_sizepos): New inline function.
7520 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
7521 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
7522 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
7523 all decls. Call it on DECL_FIELD_OFFSET of fields.
7524 (find_decls_types_r): Follow DECL_VALUE_EXPR.
7525 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
7527 2010-05-04 Martin Jambor <mjambor@suse.cz>
7529 * tree-sra.c (build_access_from_expr_1): The first parameter type
7530 changed to simple tree.
7531 (build_access_from_expr): Likewise, gsi parameter was eliminated.
7532 (scan_assign_result): Renamed to assignment_mod_result, enum elements
7534 (build_accesses_from_assign): Removed all parameters except for a
7535 simple gimple statement. Now returns a simple bool.
7536 (scan_function): All non-analysis parts moved to separate functions
7537 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
7538 parameters and updated both callers.
7539 (sra_modify_expr): Removed parameter data.
7540 (sra_modify_function_body): New function.
7541 (perform_intra_sra): Call sra_modify_function_body to modify the
7543 (replace_removed_params_ssa_names): Parameter data changed into
7545 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
7546 changed the parameter dont_convert to convert with the opposite
7548 (sra_ipa_modify_assign): Parameter data changed into adjustments
7549 vector, return value changed to bool.
7550 (ipa_sra_modify_function_body): New function.
7551 (sra_ipa_reset_debug_stmts): Updated a comment.
7552 (modify_function): Use ipa_sra_modify_function_body to modify function
7555 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7558 * alias.c (true_dependence): Handle the same VALUE in x and mem.
7559 (canon_true_dependence): Likewise.
7560 (write_dependence_p): Likewise.
7562 2010-05-04 Jan Hubicka <jh@suse.cz>
7564 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
7565 * cgraphbuild.c: Include ipa-utils.h
7566 (record_reference_ctx): New struct.
7567 (record_reference): Simplify to work on initializers; not statements.
7568 (mark_address, mark_load, mark_store): New.
7569 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7571 (record_references_in_initializer): Update use of record_reference.
7572 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7575 2010-05-04 Jan Hubicka <jh@suse.cz>
7577 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
7578 node will be removed anyway.
7579 (lto_varpool_replace_node): Allow also unanalyzed nodes;
7580 relink aliases of node into prevailing node.
7581 * varpool.c (varpool_remove_node): Remove aliases properly;
7582 when removing node, remove all its aliases too; remove DECL_INITIAL
7583 of removed node; ggc_free the varpool node.
7585 2010-05-04 Richard Guenther <rguenther@suse.de>
7587 PR tree-optimization/43879
7588 * tree-ssa-structalias.c (alias_get_name): Use
7589 DECL_ASSEMBLER_NAME if available.
7590 (create_function_info_for): Return the varinfo node.
7591 (ipa_pta_execute): Associate same-body aliases and extra names
7592 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
7594 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
7596 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
7598 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
7601 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
7602 only if HONOR_REG_ALLOC_ORDER is not defined.
7604 2010-05-04 Richard Guenther <rguenther@suse.de>
7606 PR tree-optimization/43949
7607 * tree-vrp.c (extract_range_from_binary_expr): Only handle
7610 2010-04-26 Jason Merrill <jason@redhat.com>
7612 * c.opt (-fstrict-enums): New.
7613 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
7615 2010-05-03 David Ung <davidu@mips.com>
7616 James E. Wilson <wilson@codesourcery.com>
7618 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
7619 emit the trap instruction before the divide for TUNE_74K.
7621 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
7623 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
7624 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
7625 based on the above, for new target hook.
7627 * hooks.c (hook_bool_mode_true): New generic hook.
7628 * hooks.h (hook_bool_mode_true): Add prototype.
7630 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
7632 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
7633 target hook, set to hook_bool_mode_false.
7634 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
7635 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
7636 with targetm.small_register_classes_for_mode_p.
7637 (find_reusable_reload): Likewise.
7638 (combine_reloads): Likewise.
7639 * reload1.c (reload_as_needed): Likewise.
7640 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
7641 * ifcvt.c (noce_process_if_block, check_cond_move_block,
7642 dead_or_predicable): Likewise.
7643 * regmove.c (optimize_reg_copy_1): Likewise.
7644 * calls.c (prepare_call_address): Likewise.
7645 (precompute_register_parameters): Likewise.
7647 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
7649 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
7650 implementation of the hook that considers all register classes
7651 small except for SH64.
7652 (sh_override_options): Use the new hook.
7653 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
7656 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
7658 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
7659 implementation of the hook that considers all register classes
7661 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
7664 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
7666 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
7667 implementation of the hook that considers all register classes
7669 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
7672 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
7674 * config/m32c/m32c.h: Likewise.
7675 * config/pdp11/pdp11.h: Likewise.
7676 * config/avr/avr.h: Likewise.
7677 * config/xtensa/xtensa.h: Likewise.
7678 * config/m68hc11/m68hc11.h: Likewise.
7679 * config/mn10300/mn10300.h: Likewise.
7680 * config/mcore/mcore.h: Likewise.
7681 * config/h8300/h8300.h: Likewise.
7682 * config/bfin/bfin.h: Likewise.
7684 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
7685 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
7687 2010-05-03 Anatoly Sokolov <aesok@post.ru>
7689 * double-int.h (tree_to_double_int): Remove macro.
7690 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
7691 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7692 (tree_to_double_int): New function.
7693 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
7695 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7697 2010-05-03 Richard Guenther <rguenther@suse.de>
7699 PR tree-optimization/43971
7700 * tree-ssa-structalias.c (get_constraint_for_1): Fix
7701 constraints in the !flag_delete_null_pointer_checks case.
7703 2010-05-03 Jakub Jelinek <jakub@redhat.com>
7706 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
7707 result mode matches original rtl mode.
7709 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
7712 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
7714 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7716 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
7717 when processing flag options.
7719 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7721 * gcov-iov.c (main): Change format string placeholder
7722 from %#08x to 0x%08x.
7723 * genchecksum.c (dosum): Change format string placeholder
7724 from %#02x to 0x%02x.
7726 2010-05-02 Richard Guenther <rguenther@suse.de>
7728 PR tree-optimization/43879
7729 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
7731 2010-05-02 Bruno Haible <bruno@clisp.org>
7733 * doc/extend.texi (Function Attributes): Fix a typo.
7735 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7738 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
7739 placeholder from 0x%x to %#x.
7740 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
7741 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
7742 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
7743 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
7744 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
7745 * config/i386/i386.c (ix86_target_string): Ditto.
7746 * config/i386/i386.c (output_pic_addr_const): Ditto.
7747 (print_operand): Ditto.
7749 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
7751 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
7752 placeholder from 0x%x to %#x.
7753 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
7754 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
7755 (ASM_OUTPUT_DEBUG_DATA): Ditto.
7756 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
7757 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
7758 * optc-gen.awk: Ditto.
7759 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
7760 (HOST_WIDE_INT_PRINT_HEX): Ditto.
7761 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
7762 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
7764 2010-05-01 Anatoly Sokolov <aesok@post.ru>
7766 * target.h (struct calls): Add function_value_regno_p field.
7767 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7768 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
7769 * targhooks.c (default_function_value_regno_p): New function.
7770 * targhooks.h (default_function_value_regno_p): Declare function.
7771 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
7772 * builtins.c. (apply_result_size): (Ditto.).
7773 * combine.c. (likely_spilled_retval_p): (Ditto.).
7774 * mode-switching.c. Include 'target.h'.
7775 (create_pre_exit): Use function_value_regno_p hook.
7776 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
7777 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
7778 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
7780 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
7781 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
7782 (ix86_function_value_regno_p): Declare as static, change argument
7783 type to const unsigned int.
7784 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
7786 2010-05-01 Richard Guenther <rguenther@suse.de>
7788 PR tree-optimization/43949
7789 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
7791 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
7793 2010-05-01 Anatoly Sokolov <aesok@post.ru>
7795 * rtl.h (CONST_DOUBLE_P): Define.
7796 (rtx_to_double_int): Declare.
7797 * emit-rtl.c (rtx_to_double_int): New function.
7798 * dwarf2out.c (insert_double): New function.
7799 (loc_descriptor, add_const_value_attribute): Clean up, use
7800 rtx_to_double_int and insert_double functions.
7802 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
7804 * doc/extend.texi (Inline): Add missing return keyword to examples.
7805 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
7808 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
7810 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
7811 the variable part of the offset as well. Use highest_pow2_factor for
7812 all alignment checks.
7814 2010-04-30 Richard Guenther <rguenther@suse.de>
7816 PR tree-optimization/43879
7817 * tree-ssa-structalias.c (type_could_have_pointers): Functions
7820 2010-04-30 Jan Hubicka <jh@suse.cz>
7822 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
7824 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
7826 2010-04-30 Jan Hubicka <jh@suse.cz>
7828 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
7830 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
7831 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
7832 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
7833 cgraph_node_set_needs_ltrans_p): Remove.
7835 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
7837 * sdbout.c: Include vec.h, do not include varray.h.
7838 (deferred_global_decls, sdbout_global_decl,
7839 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
7840 * toplev.c: Do not include varray.h.
7841 (dump_memory_report): Do not dump VARRAY statistics.
7842 * gengtype.c (open_base_file): Ignore varray.h.
7843 * Makefile.in: Update for abovementioned changes.
7844 Remove all traces of varray.c and varray.h.
7845 * varray.c: Remove file.
7846 * varray.h: Remove file.
7848 2010-04-30 Jan Hubicka <jh@suse.cz>
7850 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
7853 2010-04-30 Jan Hubicka <jh@suse.cz>
7855 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
7858 2010-04-30 Richard Guenther <rguenther@suse.de>
7860 * tree-ssa-structalias.c (get_constraint_for_1): Generate
7861 constraints for CONSTRUCTOR.
7863 2010-04-30 Richard Guenther <rguenther@suse.de>
7866 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
7867 first after all lowering passes.
7869 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
7871 * toplev.c: Include varray.h for statistics dumping.
7872 * tree.h: Do not declare varray_head_tag.
7873 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
7874 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
7875 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
7876 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
7877 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
7878 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
7879 c-common.c, c-common.h, reg-stack.c, basic-block.h,
7880 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
7882 * Makefile.in: Update for abovementioned changes.
7884 2010-04-30 Jakub Jelinek <jakub@redhat.com>
7887 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
7889 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7891 * config/picochip/picochip.c (picochip_legitimize_address): Define.
7892 Use this function to do machine-specific conversion.
7893 (picochip_legitimize_reload_address): Likewise.
7894 (picochip_legitimate_address_p): Check valid base register only if
7896 (picochip_check_conditional_copy): Check for modw only if opnd is
7898 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
7899 to call the function in c.
7900 * config/picochip/picochip-protos.h
7901 (picochip_legitimize_reload_address): Define.
7902 * config/picochip/picochip.md (supported_compare1): Define.
7904 2010-04-30 Jan Hubicka <jh@suse.cz>
7906 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
7907 (cgraph_global_info): Remove inlined.
7908 (LTO_cgraph_tag_names): Remove.
7909 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
7910 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
7911 simplify cgraph tags and document.
7912 (lto_output_node): Use only LTO_cgraph_unavail_node and
7913 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
7914 for_functions_valid, global info, process and output flags.
7915 (input_overwrite_node): Initialize estimated stack size and
7916 estimated growth. Do not read flags we no longer store.
7917 (input_node): Likewise do not read info no longer stored.
7918 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
7921 2010-04-30 Richard Guenther <rguenther@suse.de>
7923 PR tree-optimization/43879
7924 * tree-ssa-structalias.c (get_constraint_for_1): Properly
7925 handle non-zero initializers.
7927 2010-04-30 Richard Guenther <rguenther@suse.de>
7929 * builtins.c (fold_builtin_1): Delete free (0).
7931 2010-04-29 Jan Hubicka <jh@suse.cz>
7933 * gengtype.c (open_base_files): Add lto-streamer.h
7934 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
7935 (pass_ipa_cp): GGC collect.
7936 * toplev. (compile_file): Do not output symbols.
7937 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
7938 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
7939 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
7940 * lto-section-in.c: Include ggc.h
7941 (lto_new_in_decl_state): Alloc in GGC.
7942 (lto_delete_in_decl_state): Likewise.
7943 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
7946 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
7949 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
7950 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
7951 (HONOR_REG_ALLOC_ORDER): Describe new macro.
7952 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
7953 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
7954 account only if HONOR_REG_ALLOC_ORDER is not defined.
7955 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
7956 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
7958 2010-04-29 Jon Grant <04@jguk.org>
7960 * collect2.c (vflag): Change type from int to bool.
7962 (helpflag): New global bool.
7963 (main): Set vflag and debug with boolean, not integer truth values.
7964 Accept new "--help" option and output usage text if found.
7965 * collect2.h (vflag): Update prototype.
7968 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
7971 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
7973 2010-04-29 Richard Guenther <rguenther@suse.de>
7976 * plugin.h (invoke_plugin_callbacks): Annotate arguments
7977 with ATTRIBUTE_UNUSED.
7979 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
7982 * config/i386/i386.c (get_some_local_dynamic_name): Replace
7983 INSN_P with NONDEBUG_INSN_P.
7984 (distance_non_agu_define): Likewise.
7985 (distance_agu_use): Likewise.
7987 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
7989 From Dominique d'Humieres <dominiq@lps.ens.fr>
7991 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
7994 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
7996 * plugin.h (invoke_plugin_callbacks): New inline function.
7997 * plugin.c (flag_plugin_added): New global flag.
7998 (add_new_plugin): Initialize above flag.
7999 (invoke_plugin_callbacks): Rename to ...
8000 (invoke_plugin_callbacks_full): ... this.
8002 2010-04-28 Jan Hubicka <jh@suse.cz>
8004 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8005 (lto_varpool_replace_node): New.
8006 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8007 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8008 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8009 * cgraph.h (varpool_node_ptr): New type.
8010 (varpool_node_ptr): New vector.
8011 (varpool_node_set_def): New structure.
8012 (varpool_node_set): New type.
8013 (varpool_node_set): New vector.
8014 (varpool_node_set_element_def): New structure.
8015 (varpool_node_set_element, const_varpool_node_set_element): New types.
8016 (varpool_node_set_iterator): New type.
8017 (varpool_node): Add prev pointers, add used_from_other_partition,
8019 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8020 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8021 varpool_get_node, varpool_remove_node): Declare.
8022 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8023 varpool_node_set_size): New inlines.
8024 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8025 * tree-pass.h (varpool_node_set_def): Forward declare.
8026 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8027 (ipa_write_optimization_summaries): Update prototype.
8028 * ipa-cp.c (ipcp_write_summary): Update.
8029 * ipa-reference.c (ipa_reference_write_summary): Update.
8030 * lto-cgraph.c (lto_output_varpool_node): New static function.
8031 (output_varpool): New function.
8032 (input_varpool_node): New static function.
8033 (input_varpool_1): New function.
8034 (input_cgraph): Input varpool.
8035 * ipa-pure-const.c (pure_const_write_summary): Update.
8036 * lto-streamer-out.c (lto_output): Update, output varpool too.
8037 (write_global_stream): Kill WPA hack.
8038 (produce_asm_for_decls): Update.
8039 (output_alias_pair_p): Handle variables.
8040 (output_unreferenced_globals): Output only needed partition of varpool.
8041 * ipa-inline.c (inline_write_summary): Update.
8042 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8044 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8045 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8046 varpool_node_set_new, varpool_node_set_add,
8047 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8048 debug_varpool_node_set): New functions.
8049 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8050 (execute_one_pass): Process new decls too.
8051 (ipa_write_summaries_2): Pass around vsets.
8052 (ipa_write_summaries_1): Likewise.
8053 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8055 (ipa_write_optimization_summaries_1): Pass around vsets.
8056 (ipa_write_optimization_summaries): Likewise.
8057 * varpool.c (varpool_get_node): New.
8058 (varpool_node): Update doubly linked lists.
8059 (varpool_remove_node): New.
8060 (dump_varpool_node): More dumping.
8061 (varpool_enqueue_needed_node): Update doubly linked lists.
8062 (decide_is_variable_needed): Kill ltrans hack.
8063 (varpool_finalize_decl): Kill lto hack.
8064 (varpool_assemble_decl): Skip decls in other partitions.
8065 (varpool_assemble_pending_decls): Update doubly linkes lists.
8066 (varpool_empty_needed_queue): Likewise.
8067 (varpool_extra_name_alias): Likewise.
8068 * lto-streamer.c (lto_get_section_name): Add vars section.
8069 * lto-streamer.h (lto_section_type): Update.
8070 (output_varpool, input_varpool): Declare.
8072 2010-04-28 Mike Stump <mikestump@comcast.net>
8074 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8076 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8078 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8079 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8080 (lto_input_ts_type_tree_pointers): Likewise.
8081 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8082 (lto_output_ts_type_tree_pointers): Likewise.
8084 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8086 Uniquization of constants at the Tree level
8087 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8088 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8090 (tree_output_constant_def): Declare.
8091 * gimplify.c (gimplify_init_constructor): When using block copy, first
8092 uniquize the constant constructor on the RHS.
8093 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8094 DECL_IN_CONSTANT_POOL flag.
8095 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8096 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8098 (assemble_variable): Deal with symbols belonging to the tree constant
8100 (get_constant_section): Add ALIGN parameter and simplify.
8101 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8102 (assemble_constant_contents): Use the expression of the VAR_DECL.
8103 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8104 (tree_output_constant_def): New global function.
8105 (mark_constant): Use the expression of the VAR_DECL.
8106 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8108 (output_object_block): Likewise and assemble the expression.
8110 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8112 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8113 hash_tree, eq_tree): New tree hash table.
8114 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8115 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8116 lto_orig_address_remove): Reimplement.
8118 2010-04-28 Xinliang David Li <davidxl@google.com>
8121 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8122 (compute_uninit_opnds_pos): New function.
8123 (is_non_loop_exit_postdominating): New function.
8124 (compute_control_dep_chain): New function.
8125 (find_pdom): New function.
8126 (convert_control_dep_chain_into_preds): New function.
8127 (find_predicates): New function.
8128 (find_control_equiv_block): New function.
8129 (collect_phi_def_edges): New function.
8130 (find_def_preds): New function.
8131 (find_dom): New function.
8132 (dump_predicates): New function.
8133 (get_cmp_code): New function.
8134 (is_value_included_in): New function.
8135 (find_matching_predicate_in_rest_chains): New function.
8136 (use_pred_not_overlap_with_undef_path_pred): New function.
8137 (is_use_properly_guarded): New function.
8138 (normalize_cond_1): New function.
8139 (is_and_or_or): New function.
8140 (normalize_cond): New function.
8141 (is_gcond_subset_of): New function.
8142 (is_subset_of_any): New function.
8143 (is_or_set_subset_of): New function.
8144 (is_and_set_subset_of): New function.
8145 (is_norm_cond_subset_of): New function.
8146 (is_pred_expr_subset_of): New function.
8147 (is_pred_chain_subset_of): New function.
8148 (is_included_in): New function.
8149 (is_superset_of): New function.
8150 (find_uninit_use): New function.
8151 (warn_uninitialized_phi): New function.
8152 (compute_possibly_undefined_names): New function.
8153 (ssa_undefined_value_p): New function.
8154 (execute_late_warn_uninitialized): New function.
8155 * tree-ssa.c (ssa_undefined_value_p): Removed.
8156 (warn_uninit): Changed to extern.
8157 (warn_uninitialized_phi): Removed.
8158 (warn_uninitialized_vars): Changed to extern.
8159 (execute_late_warn_uninitialized): Removed
8160 * tree-flow.h: Add new prototypes.
8161 * timevar.def: Add new time variable.
8162 * Makefile.in: Add new build file.
8164 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8166 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8169 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8172 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8174 2010-04-28 Martin Jambor <mjambor@suse.cz>
8176 * cgraph.h (struct cgraph_node): New field indirect_calls.
8177 (struct cgraph_indirect_call_info): New type.
8178 (struct cgraph_edge): Removed field indirect_call. New fields
8179 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8180 (cgraph_create_indirect_edge): Declare.
8181 (cgraph_make_edge_direct): Likewise.
8182 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8183 * ipa-prop.h (struct ipa_param_call_note): Removed.
8184 (struct ipa_node_params): Removed field param_calls.
8185 (ipa_create_all_structures_for_iinln): Declare.
8186 * cgraph.c: Described indirect edges and uids in initial comment.
8187 (cgraph_add_edge_to_call_site_hash): New function.
8188 (cgraph_edge): Search also among the indirect edges, use
8189 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8190 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8191 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8193 (initialize_inline_failed): Assign a reason to indirect edges.
8194 (cgraph_create_edge_1): New function.
8195 (cgraph_create_edge): Moved some functionality to
8196 cgraph_create_edge_1.
8197 (cgraph_create_indirect_edge): New function.
8198 (cgraph_edge_remove_callee): Add an assert checking for
8200 (cgraph_edge_remove_caller): Special-case indirect edges.
8201 (cgraph_remove_edge): Likewise.
8202 (cgraph_set_edge_callee): New function.
8203 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8204 (cgraph_make_edge_direct): New function.
8205 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8206 the declaration of the call statement matches.
8207 (cgraph_node_remove_callees): Special-case indirect edges.
8208 (cgraph_clone_edge): Likewise.
8209 (cgraph_clone_node): Clone also the indirect edges.
8210 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8211 indirect_call, dump count of indirect_calls edges.
8212 * ipa-prop.c (iinlining_processed_edges): New variable.
8213 (ipa_note_param_call): Create indirect edges instead of
8214 creating notes. New parameter node.
8215 (ipa_analyze_call_uses): New parameter node, pass it on to
8216 ipa_note_param_call.
8217 (ipa_analyze_stmt_uses): Likewise.
8218 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8219 (print_edge_addition_message): Work on edges rather than on notes.
8220 (update_call_notes_after_inlining): Likewise, renamed to
8221 update_indirect_edges_after_inlining.
8222 (ipa_create_all_structures_for_iinln): New function.
8223 (ipa_free_node_params_substructures): Do not free notes.
8224 (ipa_edge_duplication_hook): Propagate bits within
8225 iinlining_processed_edges bitmap.
8226 (ipa_node_duplication_hook): Do not duplicate notes.
8227 (free_all_ipa_structures_after_ipa_cp): Renamed to
8228 ipa_free_all_structures_after_ipa_cp.
8229 (free_all_ipa_structures_after_iinln): Renamed to
8230 ipa_free_all_structures_after_iinln.
8231 (ipa_write_param_call_note): Removed.
8232 (ipa_read_param_call_note): Removed.
8233 (ipa_write_indirect_edge_info): New function.
8234 (ipa_read_indirect_edge_info): Likewise.
8235 (ipa_write_node_info): Do not stream notes, do stream information
8237 (ipa_read_node_info): Likewise.
8238 (lto_ipa_fixup_call_notes): Removed.
8239 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8240 * ipa-inline.c (pass_ipa_inline): Likewise.
8241 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8242 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8243 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8245 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8247 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8248 (output_cgraph): Stream also indirect edges.
8249 (lto_output_edge): Added capability to stream indirect edges.
8250 (input_edge): Likewise.
8251 (input_cgraph_1): Likewise.
8252 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8255 2010-04-28 Richard Guenther <rguenther@suse.de>
8257 PR tree-optimization/43879
8258 PR tree-optimization/43909
8259 * tree-ssa-structalias.c (struct variable_info): Add
8260 only_restrict_pointers flag.
8261 (new_var_info): Initialize it. Increment stats.total_vars here.
8262 (create_function_info_for): Do not increment stats.total_vars here.
8263 (get_function_part_constraint): Fix build with C++.
8264 (insert_into_field_list): Remove.
8265 (push_fields_onto_fieldstack): Properly merge fields.
8266 (create_variable_info_for): Split and simplify.
8267 (create_variable_info_for_1): New piece.
8268 (intra_create_variable_infos): Properly make restrict constraints
8271 2010-04-28 Richard Guenther <rguenther@suse.de>
8274 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8276 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8277 Jan Hubicka <hubicka@ucw.cz>
8279 * doc/invoke.texi (-Wsuggest-attribute=const,
8280 -Wsuggest-attribute=pure): Document.
8281 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8282 (function_always_visible_to_compiler_p,
8283 suggest_attribute, warn_function_pure, warn_function_const):
8285 (check_call): Improve debug info.
8286 (analyze_function): Do not check availability.
8287 (add_new_function): Check availability.
8288 (propagate): Output warnings.
8289 (skip_function_for_local_pure_const): New function.
8290 (local_pure_const): Use it; output warnings.
8291 * common.opt (Wsuggest-attribute=const,
8292 Wsuggest-attribute=pure): New.
8294 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8296 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8297 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8298 or DW_CFA_def_cfa_offset{,_sf}.
8300 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8302 * tree.h: Fix truncated long macros.
8304 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
8306 * collect2.c (TARGET_64BIT): Redefine to target's default.
8307 * tlink.c: Likewise.
8308 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8309 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8310 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8311 for underscoring __USER_LABEL_PREFIX__.
8312 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8313 (SUB_LINK_ENTRY32): New.
8314 (SUB_LINK_ENTRY64): New.
8315 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8316 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8317 (SUB_LINK_ENTRY64): New.
8318 (SUB_LINK_ENTRY): New.
8319 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8320 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8321 x64 target is choosen.
8322 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8323 * configure: Regenerated.
8324 * configure.ac (leading-mingw64-underscores): Option added.
8326 2010-04-27 Jan Hubicka <jh@suse.cz>
8328 * doc/invoke.texi (-fipa-profile): Document.
8329 * opts.c (decode_options): Enable ipa-profile at -O1.
8330 * timevar.def (TV_IPA_PROFILE): Define.
8331 * common.opt (fipa-profile): Add.
8332 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8334 (cgraph_propagate_frequency): Handle only local ones.
8335 * tree-pass.h (pass_ipa_profile): Declare.
8336 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8337 (pass_ipa_profile): Use TV_IPA_PROFILE.
8338 * ipa.c (ipa_profile): New function.
8339 (gate_ipa_profile): Likewise.
8340 (pass_ipa_profile): New global variable.
8341 * passes.c (pass_ipa_profile): New.
8343 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
8345 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8347 2010-04-27 Martin Jambor <mjambor@suse.cz>
8350 * ipa.c (dissolve_same_comdat_group_list): New function.
8351 (function_and_variable_visibility): Call
8352 dissolve_same_comdat_group_list when comdat group contains external or
8354 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8355 lists are circular and that they contain only DECL_ONE_ONLY nodes.
8357 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8359 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8360 (const_hash_1) <VECTOR_CST>: New case.
8361 (compare_constant) <VECTOR_CST>: Likewise.
8362 <ADDR_EXPR>: Deal with LABEL_REFs.
8363 (copy_constant) <VECTOR_CST>: New case.
8365 2010-04-27 Jan Hubicka <jh@suse.cz>
8367 * cgraph.c (cgraph_propagate_frequency): New function.
8368 * cgraph.h (cgraph_propagate_frequency): Declare.
8369 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8370 cgraph_propagate_frequency.
8372 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8374 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8376 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
8379 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8380 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8381 here to determine which regs to push and how much stack to reserve.
8383 2010-04-27 Jie Zhang <jie@codesourcery.com>
8385 * doc/gimple.texi (gimple_statement_with_ops): Remove
8386 addresses_taken field.
8387 (gimple_statement_with_memory_ops): Likewise.
8389 2010-04-27 Jan Hubicka <jh@suse.cz>
8391 * tree-inline.c (eni_inlining_weights): Remove.
8392 (estimate_num_insns): Special case more builtins.
8394 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
8397 * c-typeck.c (build_binary_op): Move forward check for comparison
8398 pointer with null pointer constant and adjust the diagnostic message.
8400 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
8403 * configure.ac (gcc_cv_as_section_has_align): Set if installed
8404 binutils supports extended .section directive needed by LTO, or
8405 warn if older binutils found.
8406 (LTO_BINARY_READER): New AC_SUBST'd variable.
8407 (LTO_USE_LIBELF): Likewise.
8408 * gcc/config.gcc (lto_binary_reader): New target-specific configure
8410 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8411 (LTO_USE_LIBELF): Likewise.
8412 * configure: Regenerate.
8414 * collect2.c (is_elf): Rename from this ...
8415 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8416 object files in addition to ELF-formatted ones.
8417 (scan_prog_file): Caller updated. Also allow for LTO info marker
8418 symbol to be prefixed or not by an extra underscore.
8420 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8421 * config/i386/winnt.c: Also #include lto-streamer.h
8422 (i386_pe_asm_named_section): Specify 1-byte section alignment for
8424 (i386_pe_asm_output_aligned_decl_common): Add comment.
8425 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8427 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
8430 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8431 Add missing earlyclobber for second alternative.
8433 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
8435 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8436 bits for artificial defs at the top of the block.
8437 * fwprop.c (single_def_use_enter_block): Don't call it.
8439 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
8442 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
8443 instead of "$gcc_cv_objdump -T".
8444 Use "-undefined dynamic_lookup" on darwin.
8445 * gcc/configure: Regenerate.
8447 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8450 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
8452 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8454 * c-parser.c (struct c_token): Move location field up.
8455 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
8456 (struct c_declspecs): Convert typespec_word, storage_class, and
8457 default_int_p into bitfields.
8458 (struct c_declarator): Move loc field up.
8460 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8462 * cfgloop.h (struct loop): Move can_be_parallel field up.
8463 * ipa-prop.h (struct ip_node_params): Move bitfields up.
8464 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
8466 (struct iv_cand): Convert pos field into a bitfield.
8467 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
8469 (struct _stmt_vec_info): Shuffle fields for better packing.
8471 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8473 * varasm.c (IN_NAMED_SECTION): Remove guard.
8474 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
8475 (IN_NAMED_SECTION_P): ...this.
8476 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
8477 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8479 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8481 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
8482 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
8483 of shadowing it. Fix comments.
8485 2010-04-26 Jan Hubicka <jh@suse.cz>
8487 * cgraph.c (cgraph_create_node): Set node frequency to normal.
8488 (cgraph_clone_node): Copy function frequency.
8489 * cgraph.h (node_frequency): New enum
8490 (struct cgraph_node): Add.
8491 * final.c (rest_of_clean_state): Update.
8492 * lto-cgraph.c (lto_output_node): Output node frequency.
8493 (input_overwrite_node): Input node frequency.
8494 * tre-ssa-loop-ivopts (computation_cost): Update.
8495 * lto-streamer-out.c (output_function): Do not output function
8497 * predict.c (maybe_hot_frequency_p): Update and handle functions
8499 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
8501 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
8502 (compute_function_frequency): Set noreturn functions to be executed
8504 (choose_function_section): Update.
8505 * lto-streamer-in.c (input_function): Do not input function frequency.
8506 * function.c (allocate_struct_function): Do not initialize function
8508 * function.h (function_frequency): Remove.
8509 (struct function): Remove function frequency.
8510 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
8511 (try_update): Update.
8512 * tree-inline.c (initialize_cfun): Do not update function frequency.
8513 * passes.c (pass_init_dump_file): Update.
8514 * i386.c (ix86_compute_frame_layout): Update.
8515 (ix86_pad_returns): Update.
8517 2010-04-26 Jie Zhang <jie@codesourcery.com>
8519 PR tree-optimization/43833
8520 * tree-vrp.c (range_int_cst_p): New.
8521 (range_int_cst_singleton_p): New.
8522 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
8523 when both operands are constants. Use range_int_cst_p in
8526 2010-04-26 Jan Hubicka <jh@suse.cz>
8528 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
8530 2010-04-26 Richard Guenther <rguenther@suse.de>
8533 * gimple.c (gimple_decl_printable_name): Deal gracefully
8534 with a NULL DECL_NAME.
8536 2010-04-26 Richard Guenther <rguenther@suse.de>
8539 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
8540 if emitting debug information and it is either a function
8541 or a namespace decl.
8543 2010-04-26 Ira Rosen <irar@il.ibm.com>
8545 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
8546 determine if the statement is vectorizable, and a macro to access it.
8547 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8548 Skip statements that can't be vectorized. If the analysis fails,
8549 mark the statement as unvectorizable if vectorizing basic block.
8550 (vect_compute_data_refs_alignment): Likewise.
8551 (vect_verify_datarefs_alignment): Skip statements marked as
8552 unvectorizable. Add print.
8553 (vect_analyze_group_access): Skip statements that can't be
8554 vectorized. If the analysis fails, mark the statement as
8555 unvectorizable if vectorizing basic block.
8556 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
8557 * tree-vect-stmts.c (vectorizable_store): Fix the number of
8558 generated stmts for SLP.
8559 (new_stmt_vec_info): Initialize the new field.
8560 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
8561 statements marked as unvectorizable.
8563 2010-04-25 Joseph Myers <joseph@codesourcery.com>
8565 * c-common.c (flag_isoc1x): New.
8566 (flag_isoc99): Update comment.
8567 * c-common.h (flag_isoc1x): New.
8568 (flag_isoc99): Update comment.
8569 * c-cppbuiltin.c (builtin_define_float_constants): Also define
8570 __<type>_DECIMAL_DIG__.
8571 * c-opts.c (set_std_c1x): New.
8572 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
8573 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
8574 * c.opt (-std=c1x, -std=gnu1x): New options.
8575 * doc/cpp.texi: Mention -std=c1x.
8576 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
8577 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
8578 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
8579 * doc/standards.texi: Mention C1X.
8580 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
8581 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
8582 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
8585 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
8587 * config/i386/gmon-sol2.c (_mcleanup): Change format string
8588 placeholder from 0x%x to %#x.
8589 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8590 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8591 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8592 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8593 * config/i386/i386.c (ix86_target_string): Ditto.
8594 (output_pic_addr_const): Ditto.
8595 (print_operand): Ditto.
8597 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
8599 * combine.c (find_split_point): Add third argument. Use it
8600 to find nested multiply-accumulate instructions. Adjust calls.
8601 (try_combine): Adjust call to find_split_point.
8603 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8605 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
8607 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
8609 PR tree-optimization/41442
8610 * fold-const.c (merge_truthop_with_opposite_arm): New function.
8611 (fold_binary_loc): Call it.
8613 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8615 * toplev.c (general_init): Set default for fdiagnostics-show-option.
8616 * opts.c (common_handle_option): Allow disabling it.
8617 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
8619 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
8621 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
8622 between modes if both types are integral.
8624 2010-04-23 Richard Guenther <rguenther@suse.de>
8626 PR tree-optimization/43572
8627 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
8629 2010-04-23 Richard Guenther <rguenther@suse.de>
8632 * tree-inline.c (tree_can_inline_p): Also check compatibility
8635 2010-04-23 Martin Jambor <mjambor@suse.cz>
8637 PR tree-optimization/43846
8638 * tree-sra.c (struct access): New flag grp_assignment_read.
8639 (build_accesses_from_assign): Set grp_assignment_read.
8640 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
8641 (enum mark_read_status): New type.
8642 (analyze_access_subtree): Propagate grp_assignment_read, create
8643 accesses also if both direct_read and root->grp_assignment_read.
8645 2010-04-23 Martin Jambor <mjambor@suse.cz>
8648 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
8649 function does not have type attributes.
8651 2010-04-23 Richard Guenther <rguenther@suse.de>
8654 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
8657 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8659 * sese.h (create_if_region_on_edge): Remove.
8661 * sese.c (create_if_region_on_edge): Make static.
8663 * tree-inline.c: Do not include ggc.h.
8665 * expr.c: Do not include ggc.h.
8667 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
8670 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
8673 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8674 in the middle of insns for casesi_worker_2.
8676 2010-04-22 David Edelsohn <edelsohn@gnu.org>
8678 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
8680 2010-04-22 Ira Rosen <irar@il.ibm.com>
8682 PR tree-optimization/43842
8683 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
8684 loop unrolling in update of exit phis. Fix comment.
8685 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
8686 least two reduction statements in the loop before starting SLP
8689 2010-04-22 Nick Clifton <nickc@redhat.com>
8691 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
8693 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
8695 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
8698 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8700 * tree-parloops.c (loop_parallel_p): New argument
8701 parloop_obstack. Pass it down.
8702 (parallelize_loops): New variable parloop_obstack. Initialize it,
8703 pass it down, free it.
8705 * tree-loop-linear.c (linear_transform_loops): Pass down
8708 * tree-data-ref.h (lambda_compute_access_matrices): New argument
8709 of type struct obstack *.
8711 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
8712 scratch_obstack. Initialize it, pass down, free it.
8714 * lambda.h (lambda_loop_new): Remove.
8715 (lambda_matrix_new, lambda_matrix_inverse)
8716 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
8717 argument of type struct obstack *.
8719 * lambda-trans.c (lambda_trans_matrix_new): New argument
8720 lambda_obstack. Pass it down, use obstack allocation for ret.
8721 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
8724 * lambda-mat.c (lambda_matrix_get_column)
8725 (lambda_matrix_project_to_null): Remove.
8726 (lambda_matrix_new): New argument lambda_obstack. Use obstack
8728 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
8731 * lambda-code.c (lambda_loop_new): New function.
8732 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
8733 (lambda_compute_auxillary_space, lambda_compute_target_space)
8734 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
8735 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
8736 (build_access_matrix): New argument lambda_obstack. Use obstack
8738 (lambda_compute_step_signs, lambda_compute_access_matrices): New
8739 argument lambda_obstack. Pass it down.
8741 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
8743 * optabs.h (expand_widening_mult): Declare.
8745 2010-04-22 Richard Guenther <rguenther@suse.de>
8747 PR tree-optimization/43845
8748 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
8749 lookup the CALL_EXPR function and arguments.
8751 2010-04-22 Nick Clifton <nickc@redhat.com>
8753 * config/stormy16/stormy16.c
8754 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
8755 * config/stormy16/stormy16.h: Tidy up formatting.
8756 (DONT_USE_BUILTIN_SETJMP): Remove definition.
8757 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
8758 (ineqbranchsi): Delete pattern.
8759 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
8760 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
8761 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
8762 stormy16-lib2-ucmpsi2.c.
8764 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
8766 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
8767 df_simulate_find_noclobber_defs as appropriate. Keep track of an
8768 extra set merge_set_noclobber, and use it to relax the final test
8770 * df.h (df_simulate_find_noclobber_defs): Declare.
8771 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
8773 (df_simulate_find_noclobber_defs): New function.
8775 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
8777 * config/i386/i386.md: Use {} around multi-line preparation statements.
8779 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8781 * c-tree.h (push_init_level, pop_init_level, set_init_index)
8782 (process_init_element): New argument of type struct obstack *.
8784 * c-typeck.c (push_init_level, pop_init_level, set_designator)
8785 (set_init_index, set_init_label, set_nonincremental_init)
8786 (set_nonincremental_init_from_string, find_init_member)
8787 (output_init_element, output_pending_init_elements)
8788 (process_init_element): New argument braced_init_obstack. Pass it
8790 (push_range_stack, add_pending_init): New argument
8791 braced_init_obstack. Use obstack allocation.
8793 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
8794 braced_init_obstack. Pass it down.
8795 (c_parser_braced_init): New variables ret, braced_init_obstack.
8796 Initialize obstack, pass it down and finally free it.
8798 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
8801 * tree-pass.h (pass_optimize_widening_mul): Declare.
8802 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
8803 gate_optimize_widening_mul): New static functions.
8804 (pass_optimize_widening_mul): New.
8805 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
8806 <case MULT_EXPR>: Remove support for widening multiplies.
8807 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
8808 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
8809 simplify_gen_unary rather than directly building extensions.
8810 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
8812 * expmed.c (expand_widening_mult): New function.
8813 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
8815 2010-04-21 Jan Hubicka <jh@suse.cz>
8817 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
8818 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
8819 * lto-wpa-fixup.c: Remove.
8820 * Makefile.in (lto-wpa-fixup.o): Remove.
8821 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
8822 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
8823 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
8825 2010-04-21 Jan Hubicka <jh@suse.cz>
8827 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
8828 add write_optimization_summary, read_optimization_summary.
8829 (ipa_write_summaries_of_cgraph_node_set): Remove.
8830 (ipa_write_optimization_summaries): Declare.
8831 (ipa_read_optimization_summaries): Declare.
8832 * ipa-cp.c (pass_ipa_cp): Update.
8833 * ipa-reference.c (pass_ipa_reference): Update.
8834 * ipa-pure-const.c (pass_ipa_pure_const): Update.
8835 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
8837 * ipa-inline.c (pass_ipa_inline): Update.
8838 * ipa.c (pass_ipa_whole_program): Update.
8839 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
8840 * passes.c (ipa_write_summaries_1): Do not test wpa.
8841 (ipa_write_optimization_summaries_1): New.
8842 (ipa_write_optimization_summaries): New.
8843 (ipa_read_summaries): Do not test ltrans.
8844 (ipa_read_optimization_summaries_1): New.
8845 (ipa_read_optimization_summaries): New.
8847 2010-04-21 Jan Hubicka <jh@suse.cz>
8849 * lto-cgraph.c (lto_output_node): Do not output comdat groups
8851 (output_cgraph): Do not arrange comdat groups for boundary nodes.
8853 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8856 * dwarf2out.c (add_name_and_src_coords_attributes): Add
8857 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
8859 2010-04-21 Jan Hubicka <jh@suse.cz>
8861 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
8863 2010-04-21 Jan Hubicka <jh@suse.cz>
8865 * varpool.c (decide_is_variable_needed): Variable is always needed
8868 2010-04-21 Jan Hubicka <jh@suse.cz>
8870 * opts.c (decode_options): Enable pure-const pass for whopr.
8872 2010-04-21 Jan Hubicka <jh@suse.cz>
8874 * cgraph.c (dump_cgraph_node): Dump also assembler name.
8875 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
8877 (cgraph_decide_inlining): Do not expect callee to be removed in all
8880 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
8882 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
8884 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
8886 * config/i386/i386.md (x86_shrd): Add athlon_decode and
8887 amdfam10_decode attributes.
8889 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8892 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
8893 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
8894 (lower_copyprivate_clauses): Use private var in outer
8895 context instead of original var. Make sure the types
8896 are correct for VLAs.
8898 2010-04-21 Richard Guenther <rguenther@suse.de>
8900 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
8901 to non-pointer objects.
8903 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8905 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
8906 last chain entry if it starts with the still current label.
8907 (add_location_or_const_value_attribute): Check that
8908 loc_list->first->next is NULL instead of comparing ->first with ->last.
8909 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
8910 to add_var_loc_to_decl.
8912 * dwarf2out.c (output_call_frame_info): For dw_cie_version
8913 >= 4 add also address size and segment size fields into CIE header.
8915 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
8916 long as address size is the same as sizeof (void *) and
8918 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
8919 address size or segment size is unexpected, return DW_EH_PE_omit.
8920 (classify_object_over_fdes): If get_cie_encoding returned
8921 DW_EH_PE_omit, return -1.
8922 (init_object): If classify_object_over_fdes returned -1,
8923 pretend there were no FDEs at all.
8925 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
8927 * config/i386/i386.md (bswap<mode>2): Macroize expander from
8928 bswap{si,di}2 using SWI48 mode iterator.
8929 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
8930 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
8931 set modrm attribute of bswap insn to 0 and remove length attribute.
8932 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
8933 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
8934 set mode attribute to <MODE> and remove length attribute.
8936 2010-04-20 James E. Wilson <wilson@codesourcery.com>
8938 PR rtl-optimization/43520
8939 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
8940 zero available registers.
8942 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8944 * builtins.c (fold_builtin_cproj): Fold more cases.
8946 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8948 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
8949 (fold_builtin_1): Fold builtin cproj.
8950 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
8951 Use ATTR_CONST_NOTHROW_LIST.
8953 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
8955 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
8956 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
8957 ffsi2_no_cmove for !TARGET_CMOVE.
8958 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
8959 (ffssi2): Remove expander.
8960 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
8962 (ctz<mode>2): Ditto from ctz{si,di}2.
8963 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
8965 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
8968 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8970 * dwarf2out.c (AT_linkage_name): Define.
8971 (clone_as_declaration): Handle DW_AT_linkage_name.
8972 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
8973 of DW_AT_MIPS_linkage_name.
8974 (move_linkage_attr): Likewise.
8975 (dwarf2out_finish): Likewise.
8977 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
8980 * fold-const.c (fold_comparison): New folding rule.
8982 2010-04-20 Anatoly Sokolov <aesok@post.ru>
8984 * double-int.h (double_int_setbit): Declare.
8985 * double-int.c (double_int_setbit): New function.
8986 * rtl.h (immed_double_int_const): Declare.
8987 * emit-rtl.c (immed_double_int_const): New function.
8988 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
8989 and immed_double_int_const functions.
8990 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
8991 expand_copysign_bit): (Ditto.).
8992 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
8993 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
8994 * dojump.c (prefer_and_bit_test): (Ditto.).
8995 * expr.c (convert_modes, reduce_to_bit_field_precision,
8996 const_vector_from_tree): (Ditto.).
8997 * expmed.c (mask_rtx, lshift_value): (Ditto.).
8999 2010-04-20 Jan Hubicka <jh@suse.cz>
9001 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9002 (dump_cgraph_node): Dump new flags.
9003 * cgraph.h (struct cgraph_node): Add flags
9004 reachable_from_other_partition and in_other_partition.
9005 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9006 other partition can not be removed.
9007 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9008 the other partition must be output; silence sanity checking on
9009 leaking functions bodies from other paritition.
9010 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9011 (lto_output_node): Output new flags; do not sanity check that inline
9012 clones are output; drop lto_forced_extern_inline_p code; do not mock
9013 visibility flags at partition boundaries.
9014 (add_node_to): New function.
9015 (output_cgraph): Use it to sort functions so masters appear before
9017 (input_overwrite_node): Input new flags.
9018 * passes.c (ipa_write_summaries): Do not call
9019 lto_new_extern_inline_states.
9020 * lto-section-out.c (forced_extern_inline,
9021 lto_new_extern_inline_states lto_delete_extern_inline_states,
9022 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9023 * lto-streamer.h (lto_new_extern_inline_states,
9024 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9025 lto_forced_extern_inline_p): Kill.
9027 2010-04-20 Richard Guenther <rguenther@suse.de>
9029 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9030 from vars that can have pointers.
9031 (process_constraint): Dump useless constraints.
9033 2010-04-20 Richard Guenther <rguenther@suse.de>
9035 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9036 (dump_sa_points_to_info): Remove asserts.
9037 (init_base_vars): nothing_id isn't an escape point nor does it
9040 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9042 * tree.h (TYPE_REF_IS_RVALUE): Define.
9043 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9044 should_move_die_to_comdat, prune_unused_types_walk): Handle
9045 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9046 (modified_type_die, gen_reference_type_die): Emit
9047 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9048 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9050 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9053 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9054 calls for -fpic -m31 if they have been sibcall optimized.
9056 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9058 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9059 ar.lc fixed and call-used.
9061 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9063 2010-04-19 Jan Hubicka <jh@suse.cz>
9065 * opts.c (decode_options): Disable whpr incompatible passes.
9066 * lto/lto.c (lto_1_to_1_map): Skip clones.
9067 (read_cgraph_and_symbols): Do not mark everything as needed.
9068 (do_whole_program_analysis): Do map only after optimizing;
9069 set proper cgraph_state; use passmanager.
9071 2010-04-19 DJ Delorie <dj@redhat.com>
9073 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9074 POINTER_PLUS_EXPR and fix them.
9076 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9078 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9079 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9080 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9081 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9082 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9083 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9084 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9085 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9086 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9087 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9088 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9090 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9092 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9093 (check_cond_move_block): Likewise.
9094 (cond_move_process_if_block): Likewise.
9095 (noce_find_if_block): Improve formatting.
9096 (find_if_header): Pass 0 to memset and tweak conditions.
9097 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9099 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9101 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9105 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9106 with non-local decl doesn't need chain.
9108 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9110 * ira-color.c (allocno_reload_assign): Avoid accumulating
9111 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9113 2010-04-19 Martin Jambor <mjambor@suse.cz>
9115 * gimple.h (create_tmp_reg): Declare.
9116 * gimplify.c (create_tmp_reg): New function.
9117 (gimplify_return_expr): Use create_tmp_reg.
9118 (gimplify_omp_atomic): Likewise.
9119 (gimple_regimplify_operands): Likewise.
9120 * tree-dfa.c (make_rename_temp): Likewise.
9121 * tree-predcom.c (predcom_tmp_var): Likewise.
9122 (reassociate_to_the_same_stmt): Likewise.
9123 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9124 (get_replaced_param_substitute): Likewise.
9125 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9126 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9127 * tree-ssa-pre.c (get_representative_for): Likewise.
9128 (create_expression_by_pieces): Likewise.
9129 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9130 (create_tailcall_accumulator): Likewise.
9132 2010-04-19 Martin Jambor <mjambor@suse.cz>
9134 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9136 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9138 2010-04-19 Richard Guenther <rguenther@suse.de>
9140 PR tree-optimization/43796
9141 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9142 from SCEV in the lattice.
9143 (vrp_visit_phi_node): Dump change.
9145 2010-04-19 Richard Guenther <rguenther@suse.de>
9147 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9148 * configure: Re-generated.
9150 2010-04-19 Richard Guenther <rguenther@suse.de>
9152 PR tree-optimization/43783
9153 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9154 constant ARRAY_REF operands two and three if possible.
9156 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9159 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9161 2010-04-19 Jie Zhang <jie@codesourcery.com>
9164 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9166 2010-04-19 Ira Rosen <irar@il.ibm.com>
9168 PR tree-optimization/37027
9169 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9170 and macro to access it.
9171 (vectorizable_reduction): Add argument.
9172 (vect_get_slp_defs): Likewise.
9173 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9174 statements for possible use in SLP.
9175 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9176 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9177 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9179 (vectorizable_reduction): Likewise.
9180 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9182 (vectorizable_type_demotion, vectorizable_type_promotion,
9183 vectorizable_store): Likewise.
9184 (vect_analyze_stmt): Update call to vectorizable_reduction.
9185 (vect_transform_stmt): Likewise.
9186 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9187 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9188 from different interleaving chains in same node.
9189 (vect_slp_rearrange_stmts): New function.
9190 (vect_supported_load_permutation_p): Allow load permutations for
9191 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9192 inside SLP nodes if necessary.
9193 (vect_analyze_slp_instance): Handle reductions.
9194 (vect_analyze_slp): Try to build SLP instances originating from groups
9196 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9197 (vect_get_constant_vectors): Create initial vectors for reductions
9198 according to reduction code. Add new argument.
9199 (vect_get_slp_defs): Add new argument, pass it to
9200 vect_get_constant_vectors.
9201 (vect_schedule_slp_instance): Remove SLP tree root statements.
9203 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9205 * tree.h (ENUM_IS_SCOPED): Define.
9206 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9207 for ENUM_IS_SCOPED enums.
9209 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9211 * fold-const.c (fold_comparison): Use ssizetype.
9212 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9213 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9214 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9215 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9217 * tree.h (initialize_sizetypes): Remove parameter.
9218 (build_common_tree_nodes): Remove second parameter.
9219 * stor-layout.c (initialize_sizetypes): Remove parameter.
9220 Always create an unsigned type.
9221 (set_sizetype): Assert that the passed type is unsigned and simplify.
9222 * tree.c (build_common_tree_nodes): Remove second parameter.
9223 Adjust call to initialize_sizetypes.
9224 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9225 build_common_tree_nodes.
9227 2010-04-18 Matthias Klose <doko@ubuntu.com>
9229 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9231 2010-04-18 Ira Rosen <irar@il.ibm.com>
9233 PR tree-optimization/43771
9234 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9235 load permutation doesn't have gaps.
9237 2010-04-18 Jan Hubicka <jh@suse.cz>
9239 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9240 (sse_prologue_save_insn expander): Use new pattern.
9241 (sse_prologue_save_insn1): New pattern and splitter.
9242 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9244 * i386.c (setup_incoming_varargs_64): Do not compute jump
9246 (ix86_gimplify_va_arg): Update alignment needed.
9247 (ix86_local_alignment): Do not align all local arrays to 128bit.
9249 2010-04-17 Jan Hubicka <jh@suse.cz>
9251 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9253 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9255 * arm.md (negdi2): Remove redundant code to force values into a
9258 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9260 * arm/bpabi.S: Add EABI alignment attributes to objects.
9261 * arm/bpabi-v6m.S: Likewise.
9262 * arm/crti.asm: Likewise.
9263 * arm/crtn.asm: Likewise.
9264 * arm/lib1funcs.asm: Likewise.
9265 * arm/libunwind.S: Likewise.
9267 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9269 * arm-protos.h (tune_params): New structure.
9270 * arm.c (current_tune): New variable.
9271 (arm_constant_limit): Delete.
9272 (struct processors): Add pointer to the tune parameters.
9273 (arm_slowmul_tune): New tuning option.
9274 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9275 (all_cores): Adjust to pick up the tuning model.
9276 (arm_constant_limit): New function.
9277 (arm_override_options): Select the appropriate tuning model. Delete
9278 initialization of arm_const_limit.
9279 (arm_split_constant): Use the new constant-limit model.
9280 (arm_rtx_costs): Pick up the current tuning model.
9281 * arm.md (is_strongarm, is_xscale): Delete.
9282 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9283 for Xscale variant architectures.
9284 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9286 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9288 * config/arm/arm.c (arm_gen_constant): Remove unused variable
9290 (arm_rtx_costs_1): Remove unused variable extra_cost.
9291 (arm_unwind_emit_set): Use variable offset.
9292 (thumb1_output_casesi): Remove unused variable flags.
9294 2010-04-16 Jeff Law <law@redhat.com>
9296 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9297 needing assignment rather than doing a two-phase assignment. Remove
9298 unused variable 'm'.
9300 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9303 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9305 2010-04-16 Doug Kwan <dougkwan@google.com>
9307 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9308 (next_operand_entry_id): New static variable.
9309 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9310 (add_to_ops_vec): Assigned unique ID to operand entry.
9311 (struct oecount_s): New field ID.
9312 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9313 (undistribute_ops_list): Assign unique IDs to oecounts.
9314 (init_reassoc): reset next_operand_entry_id.
9316 2010-04-16 Doug Kwan <dougkwan@google.com>
9318 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9319 missing left parenthesis.
9321 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
9323 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9324 *btdi_rex64 using SWI48 mode iterator.
9325 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9326 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9327 *jcc_btdi_mask_rex64.
9329 2010-04-16 Anatoly Sokolov <aesok@post.ru>
9331 * double-int.h (tree_to_double_int): Convert to macro.
9332 * double-int.c (tree_to_double_int): Remove.
9334 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9337 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9338 with want_address 2 and in case a single element list might be
9339 possible, call it again with want_address 0.
9341 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9343 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9344 case 'W' print operands for HI mode.
9345 * config/h8300/h8300.h (Y0, Y2) : New constraints.
9346 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9347 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9348 * config/h8300/predicate.md (bit_register_indirect_operand): New.
9350 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9352 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9353 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9354 #xx:3 and #xx:4 mode.
9356 * config/h8300/h8300.md (inverted load with HImode dest): Add
9357 support for H8300SX.
9359 * config/h8300/predicate.md (bit_operand): Allow immediate values that
9360 satisfy 'U' constraint.
9362 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9364 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9365 * configure: Regenerate.
9366 * config.in: Regenerate.
9367 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9370 2010-04-16 Richard Guenther <rguenther@suse.de>
9372 * tree.h (struct tree_decl_minimal): Move pt_uid ...
9373 (struct tree_decl_common): ... here.
9374 (DECL_PT_UID): Adjust.
9375 (SET_DECL_PT_UID): Likewise.
9376 (DECL_PT_UID_SET_P): Likewise.
9378 2010-04-16 Richard Guenther <rguenther@suse.de>
9380 PR tree-optimization/43572
9381 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9382 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9383 * tree-flow.h (is_call_clobbered): Remove.
9384 * tree-flow-inline.h (is_call_clobbered): Likewise.
9385 * tree-dfa.c (dump_variable): Do not dump call clobber state.
9386 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9387 (execute_return_slot_opt): Adjust.
9388 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9389 check for call clobbered vars here.
9390 (find_tail_calls): Move tailcall verification to the
9393 2010-04-16 Diego Novillo <dnovillo@google.com>
9395 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9397 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9400 * config/arm/arm.md (cbranchqi4): New pattern.
9401 * config/arm/predicates.md (const0_operand,
9402 cbranchqi4_comparison_operator): New predicates.
9404 2010-04-16 Richard Guenther <rguenther@suse.de>
9406 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9407 (dump_gimple_stmt): Likewise.
9409 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9411 * recog.h (struct recog_data): New field is_operator.
9412 (struct insn_operand_data): New field is_operator.
9413 * recog.c (extract_insn): Set recog_data.is_operator.
9414 * genoutput.c (output_operand_data): Emit code to set the
9416 * reload.c (find_reloads): Use it rather than testing for an
9417 empty constraint string.
9420 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9421 If the previous insn is a cbranchsi4_insn with the same arguments,
9422 omit the compare instruction.
9424 * config/arm/arm.md (addsi3_cbranch): If destination is a high
9425 register, inputs must be low registers and we need a low register
9426 scratch. Handle alternative 2 like alternative 3.
9428 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9430 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9431 don't call get_addr on both. If one expression is a VALUE and
9432 the other a REG, check VALUE's locs if the REG isn't among them.
9434 2010-04-16 Christian Bruel <christian.bruel@st.com>
9436 * config/sh/sh.h (sh_frame_pointer_required): New function.
9437 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
9438 (flag_omit_frame_pointer) Set.
9439 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
9440 (rounded_frame_size): Adjust size with outgoing_args_size.
9441 (sh_set_return_address): Must return from stack pointer.
9442 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
9443 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
9444 (ACCUMULATE_OUTGOING_ARGS): Define.
9445 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
9446 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
9448 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9451 * config/sh/sh.c (sh_legitimize_reload_address): Use
9452 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
9453 Remove a unneeded check for offset_base.
9455 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
9457 * configure: Regenerated.
9459 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9461 * config/s390/s390.c (s390_call_save_register_used): Switch back
9462 to HARD_REGNO_NREGS.
9464 2010-04-15 Richard Guenther <rguenther@suse.de>
9466 * alias.c (alias_set_subset_of): Handle alias-set zero
9469 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
9470 Julian Brown <julian@codesourcery.com>
9472 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
9473 alternatives according to use of high and low regs.
9474 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9475 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
9476 optimizing for size on Thumb-2.
9478 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
9480 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
9482 2010-04-15 Richard Guenther <rguenther@suse.de>
9484 * tree-ssa-structalias.c (struct variable_info): Add
9486 (new_var_info): Initialize it.
9487 (dump_constraints): Support printing last added constraints.
9488 (debug_constraints): Adjust.
9489 (dump_constraint_graph): Likewise.
9490 (make_heapvar_for): Check for NULL cfun.
9491 (get_function_part_constraint): New function.
9492 (get_fi_for_callee): Likewise.
9493 (find_func_aliases): Properly implement IPA PTA constraints.
9494 (process_ipa_clobber): New function.
9495 (find_func_clobbers): Likewise.
9496 (insert_into_field_list_sorted): Remove.
9497 (create_function_info_for): Properly allocate vars for IPA mode.
9498 Do not use insert_into_field_list_sorted.
9499 (create_variable_info_for): Properly generate constraints for
9500 global vars in IPA mode.
9501 (dump_solution_for_var): Always dump the solution.
9502 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
9503 (find_what_var_points_to): Adjust.
9504 (pt_solution_set): Change.
9505 (pt_solution_ior_into): New function.
9506 (pt_solution_empty_p): Export.
9507 (pt_solution_includes_global): Adjust.
9508 (pt_solution_includes_1): Likewise.
9509 (pt_solutions_intersect_1): Likewise.
9510 (dump_sa_points_to_info): Check some invariants.
9511 (solve_constraints): Move constraint dumping ...
9512 (compute_points_to_sets): ... here.
9513 (ipa_pta_execute): ... and here.
9514 (compute_may_aliases): Do not re-compute points-to info
9515 locally if IPA info is available.
9516 (ipa_escaped_pt): New global var.
9517 (ipa_pta_execute): Properly implement IPA PTA.
9518 * tree-into-ssa.c (dump_decl_set): Support dumping
9519 decls not in referenced-vars.
9520 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
9521 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
9522 (dump_points_to_solution): Likewise.
9523 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
9524 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
9525 (remap_gimple_stmt): Reset call clobber/use information if necessary.
9526 (copy_decl_to_var): Copy DECL_PT_UID.
9527 (copy_result_decl_to_var): Likewise.
9528 * tree.c (make_node_stat): Initialize DECL_PT_UID.
9529 (copy_node_stat): Copy it.
9530 * tree.h (DECL_PT_UID): New macro.
9531 (SET_DECL_PT_UID): Likewise.
9532 (DECL_PT_UID_SET_P): Likewise.
9533 (struct tree_decl_minimal): Add pt_uid member.
9534 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
9535 (pt_solution_empty_p): Declare.
9536 (pt_solution_set): Adjust.
9537 (ipa_escaped_pt): Declare.
9538 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
9539 * gimple-pretty-print.c (pp_points_to_solution): New function.
9540 (dump_gimple_call): Dump call clobber/use information.
9541 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
9542 * tree-pass.h (TDF_ALIAS): New dump option.
9543 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
9544 * doc/invoke.texi (-fipa-pta): Update documentation.
9546 2010-04-15 Richard Guenther <rguenther@suse.de>
9548 * Makefile.in (OBJS-common): Add gimple-fold.o.
9549 (gimple-fold.o): New rule.
9550 * tree.h (maybe_fold_offset_to_reference,
9551 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
9553 * gimple.h: ... here.
9554 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
9555 may_propagate_address_into_dereference): Move prototypes ...
9556 * gimple.h: ... here.
9557 * tree-ssa-ccp.c (get_symbol_constant_value,
9558 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
9559 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
9560 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
9561 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
9562 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
9563 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
9564 gimplify_and_update_call_from_tree): Move ...
9565 * gimple-fold.c: ... here. New file.
9566 (ccp_fold_builtin): Rename to ...
9567 (gimple_fold_builtin): ... this.
9568 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
9570 2010-04-15 Richard Guenther <rguenther@suse.de>
9572 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
9573 fit_double_type, force_fit_type_double, add_double_with_sign,
9574 neg_double, mul_double_with_sign, lshift_double, rshift_double,
9575 lrotate_double, rrotate_double, div_and_round_double): Move ...
9576 * double-int.c: ... here.
9577 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
9578 add_double, neg_double, mul_double_with_sign, mul_double,
9579 lshift_double, rshift_double, lrotate_double, rrotate_double,
9580 div_and_round_double): Move prototypes ...
9581 * double-int.h: ... here.
9583 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
9586 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
9587 matching constraints to ensure inputs match the output.
9589 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9592 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
9593 in an input-only operand.
9595 2010-04-15 Anatoly Sokolov <aesok@post.ru>
9597 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
9598 (double_int_not, double_int_lshift, double_int_rshift): Declare.
9599 (double_int_negative_p): Convert to static inline function.
9600 * double-int.c (double_int_lshift, double_int_lshift): New functions.
9601 (double_int_negative_p): Remove.
9602 * tree.h (lshift_double, rshift_double):
9603 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
9604 * fold-const.c (fold_convert_const_int_from_real,
9605 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
9606 (lshift_double): Change type of arith argument to bool.
9607 (rshift_double): Change type of arith argument to bool. Correct
9609 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9611 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
9614 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
9615 at the start and end of the then/else blocks, and omit them from the
9617 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
9618 argument; all callers changed. Pass zero to old_insns_match_p instead.
9619 (flow_find_head_matching_sequence): New function.
9620 (old_insns_match_p): Check REG_EH_REGION notes for calls.
9621 * basic-block.h (flow_find_cross_jump,
9622 flow_find_head_matching_sequence): Declare functions.
9624 2010-04-14 Jason Merrill <jason@redhat.com>
9627 * c-common.c (attribute_takes_identifier_p): New fn.
9628 * c-common.h: Declare it.
9630 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9632 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
9634 (*udivmod<mode>4): Ditto.
9636 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9638 * config/i386/i386.md (maxmin_int): Rename code attribute from
9639 maxminiprefix and update all users.
9640 (maxmin_float): Ditto from maxminfprefix.
9641 (logic): Ditto from logicprefix.
9642 (absneg_mnemonic): Ditto from absnegprefix.
9643 * config/i386/mmx.md: Update all users of maxminiprefix,
9644 maxminfprefix and logicprefix for rename.
9645 * config/i386/sse.md: Ditto.
9646 * config/i386/sync.md (sync_<code><mode>): Update for
9649 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9652 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
9653 warnings converted to errors.
9655 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9657 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
9658 used insn_type variable.
9659 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
9660 to avoid set-but-not-used warning.
9662 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9664 * df-core.c (df_ref_debug): Change format string placeholder
9666 * dwarf2asm.c (dw2_asm_output_data_raw,
9667 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
9668 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
9669 * dwarf2out.c (output_cfi, output_cfi_directive,
9670 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
9671 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
9673 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
9674 * print-rtl.c (print_rtx): Ditto.
9676 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9679 * builtins.c (expand_builtin_pow_root): New function to expand pow
9680 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
9681 series of sqrt and cbrt calls under -ffast-math.
9682 (expand_builtin_pow): Call it.
9684 2010-04-14 Michael Matz <matz@suse.de>
9686 PR tree-optimization/42963
9687 * tree-cfg.c (touched_switch_bbs): New static variable.
9688 (group_case_labels_stmt): New function broken out from ...
9689 (group_case_labels): ... here, use the above.
9690 (start_recording_case_labels): Allocate touched_switch_bbs.
9691 (end_recording_case_labels): Deallocate it, call
9692 group_case_labels_stmt.
9693 (gimple_redirect_edge_and_branch): Remember index of affected BB.
9695 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9697 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
9700 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9702 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
9704 2010-04-13 Jan Hubicka <jh@suse.cz>
9706 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
9707 of optimized out static functions.
9708 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
9709 cost computation. Also sanity check for overflows.
9710 (update_caller_keys): Update cgraph_edge_badness call; properly
9711 update fibheap and sanity check that it is up to date.
9712 (add_new_edges_to_heap): Update cgraph_edge_badness.
9713 (cgraph_decide_inlining_of_small_function): Likewise;
9714 add sanity checking that badness in heap is up to date;
9715 improve dumping of reason; Update badness of calls to the
9716 offline copy of function currently inlined; dump badness
9717 of functions not inlined because of unit growth limits.
9719 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9722 * c-common.c (pointer_int_sum): Disregard overflow that occured only
9723 because of sign-extension change when converting to sizetype here...
9724 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
9726 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
9727 the folding to constants. Remove redundant final conversion.
9728 (fold_binary) <associate>: Do not associate if the re-association of
9729 constants alone overflows.
9730 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
9731 to the end of the list.
9732 (multiple_of_p) <COND_EXPR>: New case.
9734 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9736 * opt-functions.awk (opt_sanitized_name): New.
9738 * optc-gen.awk: Use it
9739 * opth-gen.awk: Use it.
9741 2010-04-13 Martin Jambor <mjambor@suse.cz>
9743 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
9744 (sra_modify_assign): Delete stmts loading dead data even if racc has no
9745 children. Call replace_uses_with_default_def_ssa_name to handle
9748 2010-04-13 Michael Matz <matz@suse.de>
9751 * builtins.c (expand_builtin_interclass_mathfn): Also create
9752 a register if the predicate doesn't match.
9754 2010-04-13 Diego Novillo <dnovillo@google.com>
9756 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
9757 * c-pch.c: Include timevar.h.
9758 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
9759 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
9760 * ggc-common.c: Include timevar.h.
9761 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
9762 * timevar.def (TV_PCH_SAVE): Define.
9763 (TV_PCH_CPP_SAVE): Define.
9764 (TV_PCH_PTR_REALLOC): Define.
9765 (TV_PCH_PTR_SORT): Define.
9766 (TV_PCH_RESTORE): Define.
9767 (TV_PCH_CPP_RESTORE): Define.
9769 2010-04-13 Michael Matz <matz@suse.de>
9771 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
9773 (can_reassociate_p): New function.
9774 (break_up_subtract_bb, reassociate_bb): Use it.
9776 2010-04-13 Richard Guenther <rguenther@suse.de>
9779 * builtins.c (c_readstr): Fix assert.
9781 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
9783 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
9784 when generating cltd insn.
9786 (*ashl<mode>3_1): Remove special handling for register operand 2.
9787 (*ashlsi3_1_zext): Ditto.
9788 (*ashlhi3_1): Ditto.
9789 (*ashlhi3_1_lea): Ditto.
9790 (*ashlqi3_1): Ditto.
9791 (*ashlqi3_1_lea): Ditto.
9792 (*<shiftrt_insn><mode>3_1): Ditto.
9793 (*<shiftrt_insn>si3_1_zext): Ditto.
9794 (*<shiftrt_insn>qi3_1_slp): Ditto.
9795 (*<rotate_insn><mode>3_1): Ditto.
9796 (*<rotate_insn>si3_1_zext): Ditto.
9797 (*<rotate_insn>qi3_1_slp): Ditto.
9799 2010-04-13 Richard Guenther <rguenther@suse.de>
9801 * tree-ssa-structalias.c (callused_id): Remove.
9802 (call_stmt_vars): New.
9803 (get_call_vi): Likewise.
9804 (lookup_call_use_vi): Likewise.
9805 (lookup_call_clobber_vi): Likewise.
9806 (get_call_use_vi): Likewise.
9807 (get_call_clobber_vi): Likewise.
9808 (make_transitive_closure_constraints): Likewise.
9809 (handle_const_call): Adjust to do per-call call-used handling.
9810 (handle_pure_call): Likewise.
9811 (find_what_var_points_to): Remove general callused handling.
9812 (init_base_vars): Likewise.
9813 (init_alias_vars): Initialize call_stmt_vars.
9814 (compute_points_to_sets): Process call-used and call-clobbered
9815 vars for call statements.
9816 (delete_points_to_sets): Free call_stmt_vars.
9818 2010-04-13 Richard Guenther <rguenther@suse.de>
9820 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9821 Only add RW dependence for dependence distance zero.
9822 Adjust maximal vectorization factor according to dependences.
9823 Move alignment handling ...
9824 (vect_find_same_alignment_drs): ... here. New function.
9825 (vect_analyze_data_ref_dependences): Adjust.
9826 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
9827 (vect_analyze_data_refs): Adjust minimal vectorization factor
9828 according to data references.
9829 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
9830 dependences before determining the vectorization factor.
9831 Analyze alignment after determining the vectorization factor.
9832 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
9833 dependences before alignment.
9834 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
9836 (vect_analyze_data_refs): Likewise.
9837 (MAX_VECTORIZATION_FACTOR): New define.
9839 2010-04-13 Duncan Sands <baldrick@free.fr>
9841 * except.h (lang_eh_type_covers): Remove.
9842 * except.c (lang_eh_type_covers): Likewise.
9844 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9845 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9847 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
9848 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
9849 UNITS_PER_LONG where it is ABI relevant.
9850 (s390_return_addr_rtx): Likewise.
9851 (s390_back_chain_rtx): Likewise.
9852 (s390_frame_area): Likewise.
9853 (s390_frame_info): Likewise.
9854 (s390_initial_elimination_offset): Likewise.
9855 (save_gprs): Likewise.
9856 (s390_emit_prologue): Likewise.
9857 (s390_emit_epilogue): Likewise.
9858 (s390_function_arg_advance): Likewise.
9859 (s390_function_arg): Likewise.
9860 (s390_va_start): Likewise.
9861 (s390_gimplify_va_arg): Likewise.
9862 (s390_function_profiler): Likewise.
9863 (s390_optimize_prologue): Likewise.
9864 (s390_rtx_costs): Likewise.
9865 (s390_secondary_reload): Likewise.
9866 (s390_promote_function_mode): Likewise.
9867 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
9868 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
9869 registers available.
9870 (s390_unwind_word_mode): New function.
9871 (s390_function_value): Split 64 bit values into register pair if
9872 used as return value.
9873 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
9874 function call parameters. Handle parallels.
9875 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
9876 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
9877 (DWARF_CIE_DATA_ALIGNMENT): New macro.
9878 (s390_expand_setmem): Remove unused variable src_addr.
9879 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
9880 deal with 64 bit registers.
9881 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
9882 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
9883 (UNITS_PER_LONG): New macro.
9884 * libjava/include/s390-signal.h: Define extended ucontext
9885 structure containing the upper halfs of the 64 bit registers.
9887 2010-04-13 Simon Baldwin <simonb@google.com>
9889 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
9891 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9893 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
9894 rvalue on the RHS if the LHS is of a non-renamable type.
9895 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
9897 2010-04-13 Matthias Klose <doko@ubuntu.com>
9899 * gcc.c (cc1_options): Handle -iplugindir before processing
9900 the cc1 spec. Only add -iplugindir once.
9901 (cpp_unique_options): Add -iplugindir option if -fplugin* options
9903 * common.opt (iplugindir): Remove `Separate' property, initialize.
9904 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
9906 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
9907 (distclean): Remove plugin dir.
9908 * doc/invoke.texi: Document -iplugindir.
9910 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
9912 * doc/plugins.texi (Loading Plugins): Document short
9913 -fplugin=foo option.
9914 (Plugin API): Mention default_plugin_dir_name function.
9916 * gcc.c (find_file_spec_function): Add new declaration.
9917 (static_spec_func): Use it for "find-file".
9918 (find_file_spec_function): Add new function.
9919 (cc1_options): Add -iplugindir option if -fplugin* options found.
9921 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
9923 * plugin.c (add_new_plugin): Updated comment, and handle short
9925 (default_plugin_dir_name): Added new function.
9927 * common.opt (iplugindir): New option to set the plugin directory.
9929 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
9931 * config/i386/i386.md (any_rotate): New code iterator.
9932 (rotate_insn): New code attribute.
9934 (SWIM124): New mode iterator.
9935 (<rotate_insn>ti3): New expander.
9936 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
9937 any_rotate code iterator.
9938 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
9939 using any_rotate code iterator and SWIM124 mode iterator.
9940 (ix86_rotlti3): New insn_and_split pattern.
9941 (ix86_rotrti3): Ditto.
9942 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
9943 ix86_rotl{di,ti}3 patterns.
9944 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
9945 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
9946 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
9947 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
9948 code iterator and SWI mode iterator.
9949 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
9950 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
9952 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
9953 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
9954 (bswap rotatert splitter): Add splitter.
9955 (bswap splitter): Macroize splitter using any_rotate code iterator.
9956 Add insn predicate to split only for TARGET_USE_XCHGB or when
9957 optimizing function for size.
9959 2010-04-12 Steve Ellcey <sje@cup.hp.com>
9961 * config/pa/pa.c (emit_move_sequence): Remove use of
9962 deleted variable flag_argument_noalias.
9964 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9966 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
9968 Add to unsupported targets list.
9969 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
9970 sparc*-sun-solaris2.[567]* from target lists.
9971 * configure: Regenerate.
9972 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
9974 Remove Solaris 7 patch references.
9975 (Specific, sparc-sun-solaris2.7): Removed.
9976 (sparc-sun-solaris2*): Update Solaris 7 example.
9977 (sparc64-*-solaris2*): Likewise.
9979 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9981 * config.build (alpha*-dec-osf4*): Remove.
9982 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
9983 of obsolete configurations.
9984 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
9986 * config/alpha/t-osf4: Renamed to ...
9987 * config/alpha/t-osf5: ... this.
9988 * config/alpha/osf.h: Renamed to ...
9989 * config/alpha/osf5.h: ... this.
9990 Merged old osf5.h contents.
9992 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
9993 (EXTRA_SPECS): Removed.
9994 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
9995 reflect removal of Tru64 UNIX V4.0/V5.0 support.
9998 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10000 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10002 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10005 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10006 __thiscall convention.
10008 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10010 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10012 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10014 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10016 * function.c (assign_parms_initialize_all): Add unused attribute
10019 2010-04-12 Richard Guenther <rguenther@suse.de>
10021 * gsstruct.def (GSS_CALL): New.
10022 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10023 * gimple.h: Include tree-ssa-alias.h.
10024 (struct gimple_statement_call): New.
10025 (union gimple_statement_struct_d): Add gimple_call member.
10026 (gimple_call_reset_alias_info): Declare.
10027 (gimple_call_use_set): New function.
10028 (gimple_call_clobber_set): Likewise.
10029 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10030 * gimple.c (gimple_call_reset_alias_info): New function.
10031 (gimple_build_call_1): Call it.
10032 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10033 * tree-inline.c (remap_gimple_stmt): Likewise.
10034 (expand_call_inline): Remove callused handling.
10035 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10036 * tree-dfa.c (dump_variable): Likewise.
10037 * tree-parloops.c (parallelize_loops): Likewise.
10038 * tree-ssa.c (init_tree_ssa): Likewise.
10039 (delete_tree_ssa): Likewise.
10040 * tree-flow-inline.h (is_call_used): Remove.
10041 * tree-flow.h (struct gimple_df): Remove callused member.
10042 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10043 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10044 (ref_maybe_used_by_call_p_1): Simplify.
10045 (call_may_clobber_ref_p_1): Likewise.
10046 * tree-ssa-structalias.c (compute_points_to_sets): Set
10047 the call stmt used and clobbered sets.
10048 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10049 (find_tail_calls): Verify the tail call.
10051 2010-04-12 Richard Guenther <rguenther@suse.de>
10053 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10054 single-iteration always-inline inlining.
10055 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10056 (cgraph_decide_inlining): Do not handle always-inline specially.
10057 (try_inline): Remove always-inline cycle detection special case.
10058 Do not recurse on always-inlines.
10059 (cgraph_early_inlining): Do not iterate if not optimizing.
10060 (cgraph_gate_early_inlining): remove.
10061 (pass_early_inline): Run unconditionally.
10062 (gate_cgraph_decide_inlining): New function.
10063 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10064 not inlining or optimizing.
10065 (cgraph_decide_inlining_of_small_functions): Also consider
10066 always-inline functions.
10067 (cgraph_default_inline_p): Return true for nodes which should
10068 disregard inline limits.
10069 (estimate_function_body_sizes): Assume zero size and time for
10070 nodes which are marked as disregarding inline limits.
10071 (cgraph_decide_recursive_inlining): Do not perform recursive
10072 inlining on always-inline nodes.
10074 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10077 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10078 for exprs satisfying handled_component_p.
10080 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10082 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10083 non-constant aggregate elements.
10085 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10086 is a real initialization.
10088 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10091 * c-decl.c (start_function): Move forward check for nested function.
10093 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10095 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10096 * config/sh/sh.c: Include reload.h.
10097 (sh_legitimize_reload_address): New.
10098 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10099 sh_legitimize_reload_address.
10101 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10103 * config/sh/sh.md (*movqi_pop): New insn pattern.
10104 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10106 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10108 * config/i386/i386.md (any_shiftrt): New code iterator.
10109 (shiftrt_insn): New code attribute.
10111 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10112 using any_shiftrt code iterator.
10113 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10114 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10115 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10116 pattern from corresponding peephole2 patterns.
10117 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10118 using any_shiftrt code iterator.
10119 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10120 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10121 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10122 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10123 *{ashr,lshr}<mode>3_cmp_zext.
10124 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10126 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10128 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10130 (*lshr<mode>3_cconly): Ditto.
10132 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10134 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10135 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10136 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10137 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10139 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10140 from corresponding peephole2 patterns.
10141 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10142 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10143 and *lshrdi3_1_rex64 using SWI mode iterator.
10144 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10145 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10146 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10147 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10148 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10149 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10150 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10151 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10152 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10155 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10157 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10158 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10159 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10160 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10162 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10163 from corresponding peephole2 patterns.
10164 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10165 (ashrsi3_cvt): Rename from ashrsi3_31.
10166 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10167 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10168 and x86_64_shift_adj_3 using SWI48 mode iterator.
10169 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10170 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10171 and *ashrdi3_1_rex64 using SWI mode iterator.
10172 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10173 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10174 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10175 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10176 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10177 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10178 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10179 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10180 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10182 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10183 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10184 x86_shift<mode>_adj_3 expanders.
10186 2010-04-10 Wei Guozhi <carrot@google.com>
10189 * config/arm/arm.c (arm_pic_static_addr): New function.
10190 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10192 (arm_output_addr_const_extra): Output expression for new pattern.
10193 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10195 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10197 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10200 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10201 * web.c: Include "insn-config.h" and "recog.h".
10202 (union_match_dups): New function.
10203 (web_main): Call it.
10204 (union_defs): Don't try to recognize match_dups.
10206 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10207 if doing so would replace the entire pattern.
10209 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10213 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10214 and splitter pattern. Change splitter operand 1 predicate to
10217 2010-04-09 Martin Jambor <mjambor@suse.cz>
10219 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10220 lattices are addresses of CONST_DECLs with the same initial value.
10221 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10222 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10224 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10225 Bernd Schmidt <bernds@codesourcery.com>
10227 * loop-invariant.c (replace_uses): New static function.
10228 (move_invariant_reg): Use it to ensure we can replace the uses.
10230 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10232 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10234 (picochip_override_options): Enable section anchors only above -O1.
10235 (picochip_reorg): Fixed a couple of build warnings.
10237 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10239 * configure.ac (plugin -rdynamic test): Log result.
10240 * configure: Regenerate.
10241 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10242 (RDYNAMIC_SPEC): Define.
10243 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10245 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10247 * configure.ac: Determine Sun ld version numbers.
10248 (comdat_group): Restrict GNU ld version checks to gld.
10249 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10250 (enable_comdat): Support --enable-comdat.
10251 * configure: Regenerate.
10252 * doc/install.texi (Configuration): Document --enable-comdat.
10254 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10256 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10257 * config/sol2-gld.h: ... here.
10258 * config.gcc (sparc*-*-solaris2*): Reflect this.
10259 (i[34567]86-*-solaris2*): Use it.
10261 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10263 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10265 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10267 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10270 * diagnostic.c (diagnostic_initialize): Initialize
10271 some_warnings_are_errors.
10272 (diagnostic_finish): New.
10273 (diagnostic_action_after_output): Call it before exiting.
10274 (diagnostic_report_diagnostic): Do not print message here. Set
10275 some_warnings_are_errors.
10276 * diagnostic.h (diagnostic_context): Delete
10277 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10278 (diagnostic_finish): Declare.
10279 * toplev.c (toplev_main): Call it before exit.
10281 2010-04-09 Jason Merrill <jason@redhat.com>
10284 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10285 for incomplete type.
10288 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10289 based on a warning flag.
10291 2010-04-09 Richard Guenther <rguenther@suse.de>
10293 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10295 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
10298 * varasm.c (default_assemble_visibility): Wrap vars that are
10299 set, but unused, by targets without GAS.
10300 * config/rs6000/rs6000.c (paired_emit_vector_compare):
10301 Remove set, but unused, vars.
10302 (rs6000_legitimize_tls_address): Likewise.
10303 (altivec_expand_dst_builtin): Likewise.
10304 * config/darwin.c (machopic_classify_symbol): Likewise.
10305 (machopic_indirection_name): Likewise.
10307 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10309 * config/i386/i386.md (DWI): New mode iterator.
10310 (S): New mode attribute.
10311 (shift_operand): Ditto.
10312 (shift_immediate_operand): Ditto.
10313 (ashl_input_operand): Ditto.
10314 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10315 using SDWIM mode iterator.
10316 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
10317 pattern from *ashl{di,ti}3_1 and corresponding splitters using
10319 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10320 from corresponding peephole2 patterns.
10321 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10322 and x86_64_shift_adj_1 using SWI48 mode iterator.
10323 (x86_shift<mode>_adj_2): Ditto.
10324 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10325 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10326 using SWI48 mode iterator.
10327 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10328 *ashldi3_cmp_rex64 using SWI mode iterator.
10329 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10330 *ashldi3_cconly_rex64 using SWI mode iterator.
10331 * config/i386/i386.c (ix86_split_ashl): Update for renamed
10332 x86_shift<mode>_adj_{1,2}.
10333 (ix86_split_ashr): Ditto.
10334 (ix86_split_lshr): Ditto.
10336 2010-04-09 Richard Guenther <rguenther@suse.de>
10338 * target.h (builtin_conversion): Pass in input and output types.
10339 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10340 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10341 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10342 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10344 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10346 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10348 2010-04-09 Richard Guenther <rguenther@suse.de>
10351 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10353 2010-04-09 Richard Guenther <rguenther@suse.de>
10355 * tree-vectorizer.h (struct _stmt_vec_info): Document
10356 that vectype is the type of the LHS.
10357 (supportable_widening_operation, supportable_narrowing_operation):
10358 Get both input and output vector types as arguments.
10359 (vect_is_simple_use_1): Declare.
10360 (get_same_sized_vectype): Likewise.
10361 * tree-vect-loop.c (vect_determine_vectorization_factor):
10362 Set STMT_VINFO_VECTYPE to the vector type of the def.
10363 (vectorizable_reduction): Adjust.
10364 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10365 Adjust. Specify the output vector type.
10366 (vect_pattern_recog_1): Adjust.
10367 * tree-vect-stmts.c (get_same_sized_vectype): New function.
10368 (vectorizable_call): Adjust.
10369 (vectorizable_conversion): Likewise.
10370 (vectorizable_operation): Likewise.
10371 (vectorizable_type_demotion): Likewise.
10372 (vectorizable_type_promotion): Likewise.
10373 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10375 (vect_is_simple_use_1): New function.
10376 (supportable_widening_operation): Get both input and output
10378 (supportable_narrowing_operation): Likewise.
10379 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10381 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
10383 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10384 __thiscall and _thiscall as predefined macros.
10385 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10386 thiscall attribute handling.
10387 (ix86_comp_type_attributes): Likewise.
10388 (ix86_function_regparm): Likewise.
10389 (ix86_return_pops_args): Likewise.
10390 (init_cumulative_args): Likewise.
10391 (find_drap_reg): Likewise.
10392 (ix86_static_chain): Likewise.
10393 (x86_this_parameter): Likewise.
10394 (x86_output_mi_thunk): Likewise.
10395 (ix86_attribute_table): Add description for thiscall attribute.
10396 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10397 * doc/extend.texi: Add documentation for thiscall.
10399 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10402 * c.opt (Wint-to-pointer-cast): Available in C++.
10403 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10405 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
10407 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10408 * calls.c (expand_call): Pass the function type to aggregate_value_p.
10409 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10410 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
10411 function type instead. Reorder and simplify checks.
10413 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10415 2010-04-08 Jing Yu <jingyu@google.com>
10416 Zdenek Dvorak <ook@ucw.cz>
10418 PR tree-optimization/42720
10419 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10420 loop unswitch conditions here from ...
10421 (tree_unswitch_single_loop): ... here.
10423 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10425 * tree-if-conv.c: Fix comments and simplify logic.
10427 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10429 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10430 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
10431 (main_tree_if_conversion): Update call to tree_if_conversion.
10433 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10436 * doc/invoke.texi (-b,-V): Delete.
10437 * doc/tm.texi: Do not mention -b.
10438 * gcc.c (display_help): Delete -b and -V.
10439 (process_command): Delete -b and -V.
10440 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
10442 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
10443 Wolfgang Gellerich <gellerich@de.ibm.com>
10445 Implement target hook for loop unrolling
10446 * target.h (loop_unroll_adjust): Add a new target hook function.
10447 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
10448 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
10449 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
10450 (s390_loop_unroll_adjust): Implement the new target hook for s390.
10451 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
10453 (decide_unroll_stupid): Likewise.
10455 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10458 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
10460 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10462 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
10463 (Specific, *-*-solaris2*): Likewise.
10464 Don't prefer Sun as over GNU as.
10466 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
10468 * config/s390/s390.c (override_options): Adjust the z10 defaults
10469 for max-unroll-times, max-completely-peeled-insns
10470 and max-completely-peel-times.
10472 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10474 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
10475 instructions for z10.
10476 (s390_expand_setmem): Likewise.
10477 (s390_expand_cmpmem): Likewise.
10479 2010-04-08 Richard Guenther <rguenther@suse.de>
10481 PR tree-optimization/43679
10482 * tree-ssa-pre.c (eliminate): Only propagate copies.
10484 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10487 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
10488 set but not used variable warning.
10490 2010-04-08 Wei Guozhi <carrot@google.com>
10493 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
10494 (arm_size_rtx_costs): Call the new function when optimized for size.
10496 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10499 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
10500 op0 is not a MEM, just return NULL instead of assertion
10502 (discover_nonconstant_array_refs): Don't walk debug stmts.
10504 2010-04-08 Doug Kwan <dougkwan@google.com>
10506 * configure.ac: Recognize gold and do not use its version number
10507 to test ld features.
10508 * configure: Regenerate.
10510 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
10512 PR middle-end/40815
10513 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
10514 (negate_value): Move code to push elements to broken_up_substracts ...
10515 (eliminate_plus_minus_pair): ... here. Push operands that have no
10516 negative pair to plus_negates.
10517 (repropagate_negates, init_reassoc, fini_reassoc): Update.
10519 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10521 * doc/install.texi (Configuration): Move description of
10522 --enable-lto, --with-libelf*, --enable-gold from Java section to
10525 * doc/generic.texi (Working with declarations)
10526 (Function Properties, C and C++ Trees): Fix typos.
10527 * doc/sourcebuild.texi (Top Level): Likewise.
10529 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10532 * tree.h (DECL_READ_P): Define.
10533 (struct tree_decl_common): Add decl_read_flag.
10534 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
10535 a set but not used warning.
10536 (merge_decls): Merge DECL_READ_P flag.
10537 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
10538 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
10539 * c-common.c (handle_used_attribute, handle_unused_attribute):
10541 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
10543 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
10545 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
10546 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
10547 c_parser_binary_expression, c_parser_cast_expression,
10548 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
10549 Call default_function_array_read_conversion instead of
10550 default_function_array_conversion where needed.
10551 (c_parser_unary_expression, c_parser_conditional_expression,
10552 c_parser_postfix_expression_after_primary, c_parser_initelt):
10553 Likewise. Call mark_exp_read where needed.
10554 (c_parser_statement_after_labels, c_parser_asm_operands,
10555 c_parser_typeof_specifier, c_parser_sizeof_expression,
10556 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
10558 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
10560 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
10561 (warn_unused_but_set_parameter): Default to warn_unused
10563 * doc/invoke.texi: Document -Wunused-but-set-variable and
10564 -Wunused-but-set-parameter.
10566 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
10567 used count variable.
10568 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
10569 when operandN variables aren't used in the body of the expander
10571 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
10572 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
10573 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
10574 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
10575 FOR_EACH_IMM_USE_ON_STMT): Likewise.
10576 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
10577 * tree.c (PROCESS_ARG): Likewise.
10579 2010-04-07 Simon Baldwin <simonb@google.com>
10581 * diagnostic.h (diagnostic_override_option_index): New macro to
10582 set a diagnostic's option_index.
10583 * c-tree.h (c_cpp_error): Add warning reason argument.
10584 * opts.c (_warning_as_error_callback): New.
10585 (register_warning_as_error_callback): Store callback for
10586 warnings enabled via enable_warning_as_error.
10587 (enable_warning_as_error): Call callback, minor code tidy.
10588 * opts.h (register_warning_as_error_callback): Declare.
10589 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
10590 response to -Werror=.
10591 (c_common_init_options): Register warning_as_error_callback in opts.c.
10592 * common.opt: Add -Wno-cpp option.
10593 * c-common.c (struct reason_option_codes_t): Map cpp warning
10594 reason codes to gcc option indexes.
10595 * (c_option_controlling_cpp_error): New function, lookup the gcc
10596 option index for a cpp warning reason code.
10597 * (c_cpp_error): Add warning reason argument, call
10598 c_option_controlling_cpp_error for diagnostic_override_option_index.
10599 * doc/invoke.texi: Document -Wno-cpp.
10601 2010-04-07 Richard Guenther <rguenther@suse.de>
10603 * ipa-reference.c (mark_load): Use get_base_address.
10604 (mark_store): Likewise.
10606 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
10607 inserting GIMPLE_NOPs into the IL.
10608 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10609 Explicitly strip handled components and indirect references.
10611 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
10612 folding address expressions.
10613 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
10614 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
10615 operand_equal_p to compare decls.
10616 (ptr_deref_may_alias_decl_p): Likewise.
10617 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
10618 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
10619 Handle reversed comparison ops.
10620 * tree-sra.c (asm_visit_addr): Use get_base_address.
10621 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
10622 * ipa-reference.c (mark_address): Use get_base_address.
10624 2010-04-07 Richard Guenther <rguenther@suse.de>
10626 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
10627 Propagate constants everywhere.
10629 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10632 * tree.c (MAX_INT_CACHED_PREC): Define.
10633 (nonstandard_integer_type_cache): New array.
10634 (build_nonstandard_integer_type): Cache results for precision
10635 <= MAX_INT_CACHED_PREC.
10637 2010-04-07 Richard Guenther <rguenther@suse.de>
10639 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
10640 -fargument-noalias-global, -fargument-noalias-anything): Remove.
10641 * common.opt: Likewise.
10642 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
10643 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
10644 (nonoverlapping_memrefs_p): Likewise.
10645 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10646 * opts.c (common_handle_option): Handle OPT_fargument_alias,
10647 OPT_fargument_noalias, OPT_fargument_noalias_anything and
10648 OPT_fargument_noalias_global for backward compatibility.
10650 2010-04-07 Richard Guenther <rguenther@suse.de>
10652 PR tree-optimization/43270
10653 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
10654 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
10655 * tree-ssa-pre.c (phi_translate_1): Adjust.
10656 (fully_constant_expression): Split out vn_reference handling to ...
10657 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
10658 Fold reads from constant strings.
10659 (vn_reference_lookup): Handle fully constant references.
10660 (vn_reference_lookup_pieces): Likewise.
10661 * Makefile.in (expmed.o-warn): Add -Wno-error.
10663 2010-04-07 Martin Jambor <mjambor@suse.cz>
10665 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
10667 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
10670 * gcc.c: Add -static-libstdc++ to list of recognized options.
10672 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10674 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
10676 2010-04-07 Richard Guenther <rguenther@suse.de>
10678 PR middle-end/42617
10679 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
10680 bases build simple mem attributes to retain points-to information.
10682 2010-04-07 Richard Guenther <rguenther@suse.de>
10684 PR middle-end/42617
10685 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
10686 preserve points-to related information.
10688 2010-04-07 Richard Guenther <rguenther@suse.de>
10690 PR middle-end/42617
10691 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
10692 discard plain indirect references.
10693 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
10694 * tree.c (tree_nop_conversion): Likewise.
10696 2010-04-07 Dodji Seketeli <dodji@redhat.com>
10699 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
10701 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
10703 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
10704 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
10706 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
10708 * tree-if-conv.c: Fix indentation and comments.
10710 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
10712 * tree-if-conv.c: Sort static functions in topological order.
10714 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
10716 * tree-if-conv.c: Fix indentation and comments.
10718 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10720 PR middle-end/43519
10721 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
10722 lang_hooks.types.type_for_size instead of
10723 build_nonstandard_integer_type.
10724 When converting an unsigned type to signed, double its precision.
10725 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
10726 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
10727 (graphite_create_new_loop_guard): When ub + 1 wraps around,
10730 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10732 PR middle-end/43519
10733 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
10734 POINTER_PLUS_EXPR for pointer types.
10736 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10738 PR middle-end/43519
10739 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
10740 * graphite-clast-to-gimple.c: Include langhooks.h.
10741 (max_signed_precision_type): New.
10742 (max_precision_type): Takes two types as arguments.
10743 (precision_for_value): New.
10744 (precision_for_interval): New.
10745 (gcc_type_for_interval): New.
10746 (gcc_type_for_value): New.
10747 (gcc_type_for_clast_term): New.
10748 (gcc_type_for_clast_red): New.
10749 (gcc_type_for_clast_bin): New.
10750 (gcc_type_for_clast_expr): Split up into several functions.
10751 (gcc_type_for_clast_eq): Rewritten.
10752 (compute_bounds_for_level): New.
10753 (compute_type_for_level_1): New.
10754 (compute_type_for_level): New.
10755 (gcc_type_for_cloog_iv): Removed.
10756 (gcc_type_for_iv_of_clast_loop): Rewritten.
10757 (graphite_create_new_loop): Compute the lower and upper bound types
10758 with gcc_type_for_clast_expr.
10759 (graphite_create_new_loop_guard): Same.
10760 (find_cloog_iv_in_expr): Removed.
10761 (compute_cloog_iv_types_1): Removed.
10762 (compute_cloog_iv_types): Removed.
10763 (gloog): Do not call compute_cloog_iv_types.
10764 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
10765 GBB_CLOOG_IV_TYPES.
10766 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
10767 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
10768 (GBB_CLOOG_IV_TYPES): Removed.
10770 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10772 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
10773 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
10774 (detect_commutative_reduction): Same.
10776 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10778 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
10779 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
10781 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
10782 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
10783 (rewrite_commutative_reductions_out_of_ssa): Same.
10784 * passes.c (execute_function_todo): Call verify_ssa for every pass
10785 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
10786 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
10787 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
10788 with an extra argument.
10789 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
10790 verify_ssa only when the extra argument is true.
10791 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
10792 with an extra argument.
10793 (tree_transform_and_unroll_loop): Same.
10795 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
10797 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
10798 for all the passes of the LNO having LOOP_CLOSED_SSA.
10799 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
10800 * tree-loop-distribution.c (pass_loop_distribution): Same.
10801 * tree-pass.h (TODO_verify_loops): Removed.
10802 * tree-ssa-loop.c (pass_tree_loop_init): Same.
10804 (pass_tree_unswitch): Same.
10805 (pass_predcom): Same.
10806 (pass_vectorize): Same.
10807 (pass_linear_transform): Same.
10808 (pass_graphite_transforms): Same.
10809 (pass_iv_canon): Same.
10810 (pass_complete_unroll): Same.
10811 (pass_complete_unrolli): Same.
10812 (pass_parallelize_loops): Same.
10813 (pass_loop_prefetch): Same.
10814 (pass_iv_optimize): Same.
10816 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
10818 PR middle-end/32824
10819 * passes.c (init_optimization_passes): Move pass_lim before
10820 pass_copy_prop and pass_dce_loop.
10822 2010-04-06 Jakub Jelinek <jakub@redhat.com>
10825 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
10826 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
10827 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
10828 MULTI_* defines for 4 argument vpermil2p* builtins.
10830 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
10832 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
10833 * config/i386/i386.c (x86_maybe_negate_const_int): New.
10834 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
10835 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
10836 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
10837 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
10838 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
10839 Use x86_maybe_negate_const_int to output insn mnemonic.
10840 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
10841 check from instruction predicate. Update comments.
10842 * config/i386/sync.md (sync_add<mode>): Use
10843 x86_maybe_negate_const_int to output insn mnemonic.
10845 2010-04-06 Jan Hubicka <jh@suse.cz>
10847 PR tree-optimization/42906
10848 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
10849 IGNORE_SELF argument. Set visited_control_parents for fully
10851 (find_obviously_necessary_stmts): Update call of
10852 mark_control_dependent_edges_necessary.
10853 (propagate_necessity): Likewise. Handle PHI edges more curefully.
10855 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
10857 * config/i386/i386.md: Remove comment about 'e' and 'E'
10860 2010-04-06 Richard Guenther <rguenther@suse.de>
10862 PR tree-optimization/43627
10863 * tree-vrp.c (extract_range_from_unary_expr): Widenings
10864 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
10867 2010-04-06 Jakub Jelinek <jakub@redhat.com>
10869 * BASE-VER: Change to 4.6.0.
10872 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
10875 2010-04-06 Richard Guenther <rguenther@suse.de>
10877 PR middle-end/43661
10878 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
10880 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10882 * doc/invoke.texi (Optimize Options): Document that LTO
10883 won't remove object access purely due to incompatible
10886 2010-04-04 Matthias Klose <doko@ubuntu.com>
10888 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
10889 Initialize variable.
10891 2010-04-03 Richard Guenther <rguenther@suse.de>
10893 PR middle-end/42509
10894 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
10895 require a non-NULL MEM_OFFSET.
10897 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
10899 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
10900 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
10901 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
10902 config/alpha/predicates.md, config/arm/arm.md,
10903 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
10904 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
10905 config/darwin9.h, config/darwin.c, config/darwin.h,
10906 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
10907 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
10908 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
10909 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
10910 config/mips/mips.md, config/mn10300/mn10300.c,
10911 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
10912 config/rs6000/aix.h, config/rs6000/dfp.md,
10913 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
10914 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
10915 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
10916 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
10917 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
10918 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
10919 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
10920 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
10921 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
10922 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
10923 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
10924 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
10925 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
10926 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
10927 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
10928 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
10929 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
10930 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
10931 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
10932 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
10933 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
10934 opt-functions.awk, opth-gen.awk, params.def, passes.c,
10935 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
10936 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
10937 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
10938 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
10939 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
10940 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10941 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
10942 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
10943 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
10944 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
10945 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
10946 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
10947 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
10948 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
10950 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10953 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
10954 * aclocal.m4: Regenerate.
10956 2010-04-02 Richard Guenther <rguenther@suse.de>
10958 PR tree-optimization/43629
10959 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
10960 if we have seen a constant value.
10962 2010-04-02 Joseph Myers <joseph@codesourcery.com>
10964 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
10966 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
10969 * arm.c (legitimize_tls_address): Adjust call to
10970 gen_tls_load_dot_plus_four.
10971 (arm_note_pic_base): New function.
10972 (arm_cannot_copy_insn_p): Use it.
10973 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
10976 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10981 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10983 * Makefile.in ($(out_object_file)): Depend on
10984 gt-$(basename $(notdir $(out_file))).h.
10986 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
10988 * config.gcc (lm32-*-rtems*): Add t-lm32.
10990 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
10992 * config.gcc: Add lm32-*-rtems*.
10993 * config/lm32/rtems.h: New file.
10995 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
10998 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11000 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11002 * dwarf2out.c (output_compilation_unit_header): For
11003 -gdwarf-4 use version 4 instead of version 3.
11004 (output_line_info): For version 4 and above emit additional
11005 maximum ops per insn header field.
11006 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11008 * dwarf2out.c (is_c_family, is_java): Remove.
11009 (lower_bound_default): New function.
11010 (add_bound_info, gen_descr_array_type_die): Use it.
11012 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11015 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11016 re-declaration when it happens in a function.
11018 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11020 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11021 (cgraph_remove_function_insertion_hook): Same.
11022 (cgraph_call_function_insertion_hooks): Same.
11024 2010-04-01 Richard Guenther <rguenther@suse.de>
11026 PR middle-end/43614
11027 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11028 and TREE_THIS_VOLATILE.
11029 (copy_ref_info): Likewise.
11030 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11031 * tree.c (build6_stat): Ignore side-effects of all but arg5
11032 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11035 2010-04-01 Richard Guenther <rguenther@suse.de>
11037 PR tree-optimization/43607
11038 * ipa-type-escape.c (check_call): Do not access non-existing
11041 2010-04-01 Richard Guenther <rguenther@suse.de>
11043 PR middle-end/43602
11045 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11046 Jack Howarth <howarth@bromo.med.uc.edu>
11048 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11051 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11053 * doc/install.texi (Prerequisites): Document libelf usability on
11054 IRIX 5/6 and Solaris 2.
11055 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11056 Update GNU as, GNU ld requirements.
11057 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11058 Document Sun Studio compiler download.
11059 Update and simplify as, ld recommendations.
11060 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11062 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11064 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11065 with_tune_32 to pentium4.
11067 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11069 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11071 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11073 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11074 obsoletion, removal.
11076 Document GNU as requirement.
11077 Update configure requirements.
11078 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11079 Recomment IRIX 6.5.18+.
11080 Document IDF/IDL requirement.
11081 Document GNU as requirement.
11082 Document GNU ld bootstrap failure.
11083 Remove freeware.sgi.com reference.
11085 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11087 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11088 UNIX V4.0, V5.0 obsoletion, removal.
11089 Remove --with-gc=simple reference.
11090 Update VM requirements during bootstrap.
11091 Remove -oldas bootstrap description.
11092 Update binutils reference.
11093 Remove comparison failure note.
11095 2010-03-31 Richard Guenther <rguenther@suse.de>
11096 Zdenek Dvorak <ook@ucw.cz>
11097 Sebastian Pop <sebastian.pop@amd.com>
11099 PR middle-end/43464
11100 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11101 with multiple arguments.
11102 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11104 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11106 * graphite-dependences.c (print_pddr): Call print_pdr with an
11108 * graphite-poly.c (debug_pdr): Add an extra argument for the
11111 (print_pbb_domain): Same.
11113 (print_scop_context): Same.
11114 (print_scop): Same.
11115 (print_cloog): Same.
11116 (debug_pbb_domain): Same.
11118 (print_pdrs): Same.
11119 (debug_pdrs): Same.
11120 (debug_scop_context): Same.
11121 (debug_scop): Same.
11122 (debug_cloog): Same.
11123 (print_scop_params): Same.
11124 (debug_scop_params): Same.
11125 (print_iteration_domain): Same.
11126 (print_iteration_domains): Same.
11127 (debug_iteration_domain): Same.
11128 (debug_iteration_domains): Same.
11129 (print_scattering_function): Same.
11130 (print_scattering_functions): Same.
11131 (debug_scattering_function): Same.
11132 (debug_scattering_functions): Same.
11133 * graphite-poly.h (debug_pdr): Update declaration.
11135 (print_pbb_domain): Same.
11137 (print_scop_context): Same.
11138 (print_scop): Same.
11139 (print_cloog): Same.
11140 (debug_pbb_domain): Same.
11142 (print_pdrs): Same.
11143 (debug_pdrs): Same.
11144 (debug_scop_context): Same.
11145 (debug_scop): Same.
11146 (debug_cloog): Same.
11147 (print_scop_params): Same.
11148 (debug_scop_params): Same.
11149 (print_iteration_domain): Same.
11150 (print_iteration_domains): Same.
11151 (debug_iteration_domain): Same.
11152 (debug_iteration_domains): Same.
11153 (print_scattering_function): Same.
11154 (print_scattering_functions): Same.
11155 (debug_scattering_function): Same.
11156 (debug_scattering_functions): Same.
11158 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11160 * graphite-poly.c (print_scattering_function_1): New.
11161 (print_scattering_function): Call it.
11162 (print_scop_params): Remove spaces at the end of lines.
11163 (print_cloog): New.
11164 (debug_cloog): New.
11165 * graphite-poly.h (print_cloog): Declared.
11166 (debug_cloog): Declared.
11168 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11170 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11172 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11173 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11174 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11175 to switch between adding the IV bump in loop->latch or in loop->header.
11177 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11179 * graphite-poly.c (print_scattering_function): Pretty print following
11180 the scoplib format.
11182 (print_pbb_domain): Same.
11183 (dump_gbb_cases): Same.
11184 (dump_gbb_conditions): Same.
11185 (print_pdrs): Same.
11187 (print_scop_params): Same.
11188 (print_scop_context): Same.
11189 (print_scop): Same.
11190 (print_pbb_body): New.
11191 (lst_indent_to): New.
11192 (print_lst): Start new lines with a #.
11193 * graphite-poly.h (pbb_bb): New.
11194 (pbb_index): Use pbb_bb.
11195 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11197 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11199 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11201 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11202 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11203 and 0 instead of 1 for dw_val_class_flag.
11204 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11205 dw_val_class_range_list, dw_val_class_loc_list,
11206 dw_val_class_lineptr and dw_val_class_macptr, use
11207 DW_FORM_flag_present for dw_val_class_flag and
11208 DW_FORM_exprloc for dw_val_class_loc.
11209 (output_die): For -gdwarf-4 print dw_val_class_loc
11210 size as uleb128 instead of 1 or 2 bytes and don't print
11211 anything for dw_val_class_flag.
11213 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11214 instead of cselib_lookup following by tweaking locs->setting_insn.
11217 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11218 even before returning from label, setjmp call or volatile asm
11221 2010-03-31 Richard Guenther <rguenther@suse.de>
11223 PR middle-end/43600
11224 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11225 temporary data on stack.
11227 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11229 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11230 (PUSHSECTION_ASM_OP): Remove.
11231 (POPSECTION_ASM_OP): Remove.
11232 (PUSHSECTION_FORMAT): Remove.
11233 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11234 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11235 * config/sol2.c (solaris_output_init_fini): Use it.
11237 2010-03-31 Jie Zhang <jie@codesourcery.com>
11240 * opt-functions.awk (var_type_struct): Use signed char type
11241 for simple variables.
11243 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11245 * config/sol2.c: Include output.h.
11246 (solaris_assemble_visibility): New function.
11247 * config/t-sol2 (sol2.o): Add output.h dependency.
11248 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11249 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11252 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11255 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11256 V2SImode or XFmode on PRE_DEC.
11259 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11262 2010-03-31 Jie Zhang <jie@codesourcery.com>
11265 * reload.h (caller_save_initialized_p): Declare.
11266 * toplev.c (backend_init_target): Don't call
11267 init_caller_save but set caller_save_initialized_p to false.
11268 * caller-save.c (caller_save_initialized_p): Define.
11269 (init_caller_save): Check caller_save_initialized_p.
11270 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11272 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11275 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11276 and soft-fp/t-softfp to tmake_file.
11277 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11278 (LIBGCC2_TF_CEXT): Define.
11281 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
11284 * cselib.c (n_useless_values): Document handling of debug locs.
11285 (n_useless_debug_values, n_debug_values): New variables.
11286 (new_elt_loc_list): Don't add to debug values, keep count.
11287 (promote_debug_loc): New.
11288 (cselib_reset_table): Zero new variables.
11289 (entry_and_rtx_equal_p): Promote debug locs.
11290 (discard_useless_locs): Increment n_useless_debug_values for
11292 (remove_useless_values): Adjust n_useless_values and n_debug_values
11293 with n_useless_debug_values.
11294 (add_mem_for_addr): Promote debug locs.
11295 (cselib_lookup_mem): Likewise.
11296 (cselib_lookup_addr): Renamed to...
11297 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
11298 (cselib_log_lookup): ... this. Turn into...
11299 (cselib_lookup_addr): ... new wrapper.
11300 (cselib_lookup_from_insn): New.
11301 (cselib_invalidate_regno): Increment n_useless_debug_values for
11303 (cselib_invalidate_mem): Likewise.
11304 (cselib_process_insn): Take n_deleted and n_debug_values into
11305 account to guard remove_useless_value call.
11306 (cselib_finish): Zero n_useless_debug_values.
11307 * cselib.h (cselib_lookup_from_insn): Declare.
11308 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11309 (sched_analyze_2): Likewise.
11311 2010-03-30 Jakub Jelinek <jakub@redhat.com>
11313 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11315 (adjust_mems): Replace narrowing SUBREG of expression containing
11316 just PLUS, MINUS, MULT and ASHIFT of registers and constants
11317 with operations in the narrower mode.
11320 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11321 regs_invalidated_by_call instead all call_used_reg_set registers.
11323 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
11325 PR middle-end/43430
11326 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11327 pointer comparisons with types_compatible_p.
11328 * tree-vect-stmts.c (vectorizable_call): Same.
11329 (vectorizable_condition): Same.
11331 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11333 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11334 stack check if the mask would be zero.
11336 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11337 Jack Howarth <howarth@bromo.med.uc.edu>
11339 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11342 2010-03-30 Joseph Myers <joseph@codesourcery.com>
11345 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
11347 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11348 Include ___unordxf2 and ___unordtf2.
11349 * config/i386/libgcc-glibc.ver: Do not define inheritance from
11352 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
11354 * config/lm32/t-lm32: New file.
11355 * config.gcc: Use the above file when targetting lm32.
11357 2010-03-28 Duncan Sands <baldrick@free.fr>
11359 * Makefile.in (PLUGIN_HEADERS): Add except.h.
11361 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11363 PR middle-end/43431
11364 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11365 Improve vectorization cost model diagnostic.
11367 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11369 PR middle-end/43436
11370 * tree-vect-data-refs.c (vect_analyze_data_refs): When
11371 compute_data_dependences_for_loop returns false, early exit
11372 and output an extra diagnostic for the failed data reference
11375 2010-03-29 Richard Guenther <rguenther@suse.de>
11377 PR tree-optimization/43560
11378 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11379 (can_sm_ref_p): Treat stores to readonly locations as trapping.
11381 2010-03-29 Jie Zhang <jie@codesourcery.com>
11384 * toplev.c (process_options): Set optimization_default_node
11385 and optimization_current_node.
11386 * opts.c (decode_options): Don't set optimization_default_node
11387 and optimization_current_node.
11389 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
11391 * config/rtems.h: Abandon -qrtems_debug.
11393 2010-03-28 Jan Hubicka <jh@suse.cz>
11395 PR tree-optimization/43505
11396 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11397 map should not be copied.
11399 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11401 PR middle-end/41674
11402 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11403 cdtors, set DECL_PRESERVE_P.
11404 * ipa.c (cgraph_externally_visible_p): Return true if declaration
11405 should be preseved.
11407 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
11409 PR tree-optimization/43528
11410 * stor-layout.c (place_field): Check that constant fits into
11411 unsigned HWI when skipping calculation of MS bitfield layout.
11413 2010-03-27 Jan Hubicka <jh@suse.cz>
11415 PR middle-end/43391
11416 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11417 notice_global_symbol work.
11419 2010-03-27 Jakub Jelinek <jakub@redhat.com>
11421 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11422 instead of dwarf2out_decl.
11423 (struct var_loc_node): Remove section_label field.
11424 (dwarf2out_function_decl): New function.
11425 (dwarf2out_var_location): Don't set section_label field.
11426 (dwarf2out_begin_function): Don't empty decl_loc_table here.
11428 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11430 PR tree-optimization/43544
11431 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11432 First argument for builtin vectorized function hook is now a
11433 tree to be able to distinguish between machine specific and
11435 * targhooks.c (default_builtin_vectorized_function): Ditto.
11436 * targhooks.h (default_builtin_vectorized_function): Ditto.
11437 * target.h (struct gcc_target): Ditto.
11438 * tree-vect-stmts.c (vectorizable_function): Ditto.
11439 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
11440 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11443 2010-03-26 Joseph Myers <joseph@codesourcery.com>
11446 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
11447 nested binding iff it is a FUNCTION_DECL.
11448 (store_parm_decls_newstyle): Pass nested=true to bind for
11449 FUNCTION_DECLs amongst parameters.
11451 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11453 * var-tracking.c (vt_expand_loc_callback): Don't run
11454 cselib_expand_value_rtx_cb in dummy mode if
11455 cselib_dummy_expand_value_rtx_cb returned false.
11457 * var-tracking.c (emit_note_insn_var_location): For one part
11458 notes with offset 0, don't add EXPR_LIST around the location.
11459 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
11460 add_location_or_const_value_attribute): Adjust for that change.
11463 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
11464 into first operand and location into second.
11465 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
11466 dw_cfi_oprnd_loc for DW_CFA_expression.
11467 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
11468 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
11469 assume first argument is regnum and second argument is location.
11471 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11474 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
11475 of scratch register to DImode. Split to DImode comparison operator.
11476 Use SImode subreg of scratch register in the multiplication.
11477 (*cmp_sadd_sidi): Ditto.
11478 (*cmp_ssub_si): Ditto.
11479 (*cmp_ssub_sidi): Ditto.
11481 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11484 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
11485 Remove invalid assert and wrong comment.
11487 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11490 * flags.h (final_insns_dump_p): New extern.
11491 * final.c (final_insns_dump_p): New variable.
11492 (rest_of_clean_state): Set it before -fdump-final-insns=
11493 dumping, clear afterwards.
11494 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
11495 MEM_ALIAS_SET on MEMs.
11497 2010-03-26 David S. Miller <davem@davemloft.net>
11499 * configure.ac: Fix sparc GOTDATA_OP bug check.
11500 * configure: Rebuild.
11502 2010-03-26 Alan Modra <amodra@gmail.com>
11504 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
11506 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11508 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
11509 TLS_SECTION_ASM_FLAG.
11511 2010-03-25 Jakub Jelinek <jakub@redhat.com>
11514 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
11515 Clear first_function_block_is_cold.
11518 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
11519 argument if the argument is truth_value_p.
11521 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11523 * config/rs6000/constraints.md: Update copyright year for my changes.
11526 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
11527 used in reg+reg addressing, swap registers.
11529 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11532 * target.h (struct gcc_target): Add code_end hook.
11533 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
11534 if not yet defined.
11535 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
11536 * toplev.c (compile_file): Call targetm.asm_out.code_end
11537 hook before unwind info/debug info output.
11538 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
11539 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
11540 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11541 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
11542 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11543 * config/i386/i386.c (ix86_file_end): Renamed to...
11544 (ix86_code_end): ... this. Make static. Don't call
11545 file_end_indicate_exec_stack. Emit unwind info using
11546 final_start_function/final_end_function.
11547 (darwin_x86_file_end): Remove.
11548 (TARGET_ASM_CODE_END): Define.
11549 * config/i386/i386.h (TARGET_ASM_FILE_END,
11550 NEED_INDICATE_EXEC_STACK): Don't define.
11551 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
11552 (TARGET_ASM_FILE_END): Define to darwin_file_end.
11553 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
11554 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
11557 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
11558 at the beginning and final_end_function at the end.
11559 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11561 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11563 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
11564 and Sun as TLS syntax.
11565 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
11566 * configure: Regenerate.
11567 * config.in: Regenerate.
11568 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
11569 (default_elf_asm_named_section): Use it.
11570 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
11571 (i386_output_dwarf_dtprel): Likewise.
11572 (output_addr_const_extra): Likewise.
11573 (output_pic_addr_const): Lowercase @GOTTPOFF.
11574 (output_addr_const_extra): Likewise.
11575 (output_pic_addr_const): Lowercase @GOTNTPOFF.
11576 (output_addr_const_extra): Likewise.
11577 (output_pic_addr_const): Lowercase @INDNTPOFF.
11578 (output_addr_const_extra): Likewise.
11579 (output_pic_addr_const): Lowercase @NTPOFF.
11580 (output_addr_const_extra): Likewise.
11581 (output_pic_addr_const): Lowercase @TPOFF.
11582 (output_addr_const_extra): Likewise.
11583 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
11584 (*tls_global_dynamic_64): Likewise.
11585 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
11586 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
11588 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
11589 (ASM_OUTPUT_TLS_COMMON): Use it.
11590 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
11593 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
11594 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
11595 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
11596 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
11597 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11598 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
11600 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11602 * config/i386/i386.c (override_options): Don't accept
11603 -mtls-dialect=sun any longer.
11604 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
11605 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
11606 (*tls_local_dynamic_base_32_sun): Likewise.
11607 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11609 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11612 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11613 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
11616 * ira.c (adjust_cleared_regs): New function.
11617 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
11621 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
11623 * expr.c (expand_expr_real): Restore previous
11624 curr_insn_source_location and curr_insn_block after
11625 expand_expr_real_1 call.
11626 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
11627 instead of expand_expr_real_1.
11629 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
11631 PR rtl-optimization/43413
11632 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
11635 2010-03-22 James E. Wilson <wilson@codesourcery.com>
11638 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
11639 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
11641 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
11643 * config/i386/i386.c (ix86_target_string): Add -mfma.
11644 Fix a typo in comment.
11646 2010-03-22 Mike Stump <mikestump@comcast.net>
11649 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
11650 Don't overly align based upon packed packed fields.
11652 2010-03-22 Jason Merrill <jason@redhat.com>
11654 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
11655 Use () rather than [], and move before the element type.
11657 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11659 * doc/configfiles.texi (Configuration Files): Removed
11660 fixinc/Makefile*, intl/Makefile.*.
11661 * doc/makefile.texi: Fixed markup. Abstract from version
11662 control system used.
11663 (Makefile): Removed obsolete gcc/java/parse.y example.
11664 * doc/sourcebuild.texi: Likewise.
11665 (Top Level): Added config, gnattools, libdecnumber, libgcc,
11666 libgomp, libssp. Removed fastjar.
11667 (Miscellaneous Docs): Clarify location.
11668 Added COPYING3, COPYING3.LIB.
11669 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
11671 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11674 * config/i386/i386.c (x86_function_profiler)
11675 [!NO_PROFILE_COUNTERS]: Fix typo.
11676 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
11679 2010-03-22 Janis Johnson <janis187@us.ibm.com>
11680 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11682 * doc/sourcebuild.texi (Test Directives): Split into six
11683 subsections, with most of the current text in new subsections
11684 Directives, Selectors, and Final Actions.
11685 (Directives): Split list of test directives into multiple
11687 (Selectors): Describe use and syntax of selectors.
11688 (Effective-Target Keywords): Describe all existing keywords.
11689 (Add Options): Describe features for dg-add-options.
11690 (Require Support): Describe variants of dg-require-support.
11691 (Final Actions): Describe commands to use in dg-final.
11693 2010-03-22 Michael Matz <matz@suse.de>
11695 PR middle-end/43475
11696 * recog.c (validate_replace_rtx_group): Replace also in
11697 REG_EQUAL and REG_EQUIV notes.
11699 2010-03-22 Richard Guenther <rguenther@suse.de>
11701 PR tree-optimization/43390
11702 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
11703 sure vector extracts are type correct.
11705 2010-03-22 Richard Guenther <rguenther@suse.de>
11707 PR middle-end/40106
11708 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
11709 x * sqrt (x) even when optimizing for size if the target
11710 has native support for sqrt.
11712 2010-03-22 Jakub Jelinek <jakub@redhat.com>
11714 * varasm.c (make_decl_rtl_for_debug): Also clear
11715 flag_mudflap for the duration of make_decl_rtl call.
11718 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
11719 locs from preserved VALUEs.
11721 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11723 PR middle-end/42718
11724 * pa.md (movmemsi): Set align to one if zero.
11725 (movmemdi): Likewise.
11727 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
11730 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
11731 with their corresponding prologue pushes.
11733 2010-03-20 Andrew Pinski <pinskia@gmail.com>
11736 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
11737 at the begining or end.
11738 (spu_expand_epilogue): Likewise.
11740 2010-03-20 Richard Guenther <rguenther@suse.de>
11742 PR rtl-optimization/43438
11743 * combine.c (make_extraction): Properly zero-/sign-extend an
11744 extraction of the low part of a CONST_INT. Also handle
11747 2010-03-19 Mike Stump <mikestump@comcast.net>
11749 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
11750 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
11751 (override_options): Use SUBTARGET32_DEFAULT_CPU.
11753 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
11756 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
11759 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
11761 PR rtl-optimization/42258
11762 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
11763 use that may match DEF.
11766 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
11767 the cost of loading the constant rather than assuming
11769 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
11770 outer code is AND, do the same tests as the andsi3 expander and
11771 return COSTS_N_INSNS (1) if and is cheap.
11773 * optabs.c (avoid_expensive_constant): Fix formatting.
11775 2010-03-19 Michael Matz <matz@suse.de>
11778 * attribs.c (decl_attributes): When rebuilding a function pointer
11779 type use the same qualifiers as the original pointer type.
11781 2010-03-19 Martin Jambor <mjambor@suse.cz>
11783 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
11784 and is_gimple_ip_invariant_address.
11786 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11789 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11791 * config/arm/arm.c (arm_override_options): Turn off
11792 flag_dwarf2_cfi_asm for AAPCS variants.
11794 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11797 * config/arm/arm.c (emit_multi_reg_push): Update comments.
11798 Use PRE_MODIFY instead of PRE_DEC.
11799 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
11800 (vfp_emit_fstmd): Likewise.
11802 2010-03-19 Michael Matz <matz@suse.de>
11805 * builtins.c (expand_builtin_interclass_mathfn,
11806 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
11809 2010-03-19 Richard Guenther <rguenther@suse.de>
11811 PR tree-optimization/43415
11812 * tree-ssa-pre.c (phi_translate): Split out worker to ...
11813 (phi_translate_1): ... this.
11814 (phi_translate): Move all caching here. Cache all NARY
11815 and REFERENCE translations.
11817 2010-03-19 David S. Miller <davem@davemloft.net>
11819 With help from Eric Botcazou.
11820 * config/sparc/sparc.c: Include dwarf2out.h.
11821 (emit_pic_helper): Delete.
11822 (pic_helper_symbol_name): Delete.
11823 (pic_helper_emitted_p): Delete.
11824 (pic_helper_needed): New.
11825 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
11826 (get_pc_thunk_name): New.
11827 (load_pic_register): Remove 'delay_pic_helper' arg. Use
11828 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
11829 Set pic_helper_needed to true. Don't call emit_pic_helper.
11830 (sparc_expand_prologue): Update load_pic_register call.
11831 (sparc_output_mi_thunk): Likewise.
11832 (sparc_file_end): Emit a hidden comdat symbol for the PIC
11833 thunk if possible. Output CFI information as needed.
11835 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11836 Jack Howarth <howarth@bromo.med.uc.edu>
11839 * config/i386/i386.h: Fix ABI on darwin x86-32.
11841 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
11843 * tree.h: Declare make_decl_rtl_for_debug.
11844 * varasm.c (make_decl_rtl_for_debug): New.
11845 * dwarf2out.c (rtl_for_decl_location): Call it.
11846 * cfgexpand.c (expand_debug_expr): Call it.
11848 2010-03-18 Jakub Jelinek <jakub@redhat.com>
11851 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
11855 * var-tracking.c (vt_init_cfa_base): Do nothing if
11856 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
11858 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
11861 * var-tracking.c (canonicalize_vars_star): New.
11862 (dataflow_post_merge_adjust): Use it.
11864 2010-03-18 Jakub Jelinek <jakub@redhat.com>
11867 * var-tracking.c (non_suitable_const): New function.
11868 (add_uses): For DEBUG_INSNs with constants, don't record any
11869 value, instead just the constant value itself.
11870 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
11871 is not VAR_LOC_UNKNOWN_P, set var to the constant.
11872 (emit_notes_in_bb): Likewise.
11873 (emit_note_insn_var_location): For onepart variables if
11874 cur_loc is a VOIDmode constant, use DECL_MODE.
11876 2010-03-18 Martin Jambor <mjambor@suse.cz>
11878 PR middle-end/42450
11879 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
11880 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
11881 all non-clones. Moved call redirection...
11882 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
11883 (cgraph_materialize_all_clones): Dispose of all
11884 combined_args_to_skip bitmaps.
11885 (verify_cgraph_node): Do not check for edges pointing to wrong
11886 nodes in inline clones.
11887 * tree-inline.c (copy_bb): Call
11888 cgraph_redirect_edge_call_stmt_to_callee.
11889 * ipa.c (cgraph_remove_unreachable_nodes): Call
11890 cgraph_node_remove_callees even when there are used clones.
11892 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
11894 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
11896 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
11899 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
11902 2010-03-18 Michael Matz <matz@suse.de>
11904 PR middle-end/43419
11905 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
11906 into sqrt(x) if we need to preserve signed zeros.
11908 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
11909 Eric Botcazou <ebotcazou@adacore.com>
11911 PR rtl-optimization/43360
11912 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
11913 note if we don't know its invariant status.
11915 2010-03-18 Michael Matz <matz@suse.de>
11917 PR tree-optimization/43402
11918 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
11919 PHI chains of ssa names registered for update.
11921 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
11924 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
11925 non-offsettable and pre_modify update addressing.
11926 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
11927 and "2" alternatives "#".
11928 (*movdd_softfloat32): Make all alternatives "#";
11929 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
11930 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
11931 (*movdf_softfloat32): Make all alternatives "#";
11932 (movdi): Use the new DIFD mode iterator to create a common splitter
11933 for movdi, movdf and movdd patterns.
11935 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
11937 * common.opt (dumpdir): Remove redundant tab.
11939 2010-03-17 Martin Jambor <mjambor@suse.cz>
11941 PR tree-optimization/43347
11942 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
11943 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
11945 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
11947 PR rtl-optimization/42216
11948 * regrename.c (create_new_chain): New function, broken out from...
11949 (scan_rtx_reg): ... here. Call it. Handle the case where we are
11950 appending a use to an empty chain.
11951 (build_def_use): Remove previous changes that convert OP_INOUT to
11952 OP_OUT operands; instead detect the case where an OP_INOUT operand
11953 uses a previously untracked register and create an empty chain for it.
11955 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11957 * doc/extend.texi (Function Attributes): Rewrite unfinished
11958 sentence in ms_abi documentation.
11960 2010-03-17 Alan Modra <amodra@gmail.com>
11962 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
11963 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
11964 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
11965 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
11967 2010-03-16 Richard Henderson <rth@redhat.com>
11969 PR middle-end/43365
11970 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
11971 (lower_try_finally): Save and restore eh_seq around the expansion
11972 of the try-finally.
11974 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
11976 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
11977 statements before splitting block.
11979 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11981 * doc/sourcebuild.texi (Testsuites): Fix markup.
11982 Use pathnames relative to gcc/testsuite.
11983 (Test Directives): Move description of how timeout is determined.
11984 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
11985 (C Tests): Correct gcc.misc-tests directory.
11986 Framework tests now live in gcc.test-framework.
11988 2010-03-16 Richard Guenther <rguenther@suse.de>
11990 PR middle-end/43379
11991 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
11992 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
11994 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
11995 Alexandre Oliva <aoliva@redhat.com>
11997 PR tree-optimization/42917
11998 * lambda-code.c (remove_iv): Skip debug statements.
11999 (lambda_loopnest_to_gcc_loopnest): Likewise.
12000 (not_interesting_stmt): Debug statements are not interesting.
12002 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12006 * cselib.c (cselib_preserve_constants,
12007 cfa_base_preserved_val): New static variables.
12008 (preserve_only_constants): New function.
12009 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12010 clear its REG_VALUES. If cselib_preserve_constants, don't
12011 empty the whole hash table, but preserve there VALUEs with constants,
12012 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12013 (cselib_preserve_cfa_base_value): New function.
12014 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12015 (cselib_init): Change argument to int bitfield. Set
12016 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12018 (cselib_finish): Clear cselib_preserve_constants and
12019 cfa_base_preserved_val.
12020 * cselib.h (enum cselib_record_what): New enum.
12021 (cselib_init): Change argument to int.
12022 (cselib_preserve_cfa_base_value): New prototype.
12023 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12024 * dse.c (dse_step1): Likewise.
12025 * cfgcleanup.c (thread_jump): Likewise.
12026 * sched-deps.c (sched_analyze): Likewise.
12027 * gcse.c (local_cprop_pass): Likewise.
12028 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12029 If FN is non-NULL, call the callback always and whenever it returns
12030 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12031 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12032 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12033 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12034 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12035 * var-tracking.c: Include recog.h.
12036 (bb_stack_adjust_offset): Remove.
12037 (vt_stack_adjustments): Don't call it, instead just gather the
12038 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12039 (adjust_stack_reference): Remove.
12040 (compute_cfa_pointer): New function.
12041 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12042 (struct adjust_mem_data): New type.
12043 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12045 (get_address_mode): New function.
12046 (replace_expr_with_values): Use it.
12047 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12048 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12049 (adjust_sets): Remove.
12050 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12051 Use get_address_mode.
12052 (get_adjusted_src): Remove.
12053 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12054 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12055 (add_with_sets): Don't call adjust_sets.
12056 (fp_setter, vt_init_cfa_base): New functions.
12057 (vt_initialize): Change return type to bool. Move most of pool etc.
12058 initialization to the beginning of the function from end. Pass
12059 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12060 If !frame_pointer_needed, call vt_stack_adjustment before mos
12061 vector is filled, call vt_init_cfa_base if argp/framep has been
12062 eliminated to sp. If frame_pointer_needed and argp/framep has
12063 been eliminated to hard frame pointer, set
12064 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12065 encountering fp setter in the prologue. For MO_ADJUST, call
12066 log_op_type before pusing the op into mos vector, not afterwards.
12067 Call adjust_insn before cselib_process_insn/add_with_sets,
12068 call cancel_changes (0) afterwards.
12069 (variable_tracking_main_1): Adjust for vt_initialize calling
12070 vt_stack_adjustments and returning whether it succeeded or not.
12072 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12074 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12077 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12079 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12081 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12082 drap_reg has not been set.
12084 2010-03-15 Michael Matz <matz@suse.de>
12086 PR middle-end/43300
12087 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12088 use it to expand block copies.
12089 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12090 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12091 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12093 2010-03-15 Richard Guenther <rguenther@suse.de>
12095 PR tree-optimization/43367
12096 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12099 2010-03-15 Richard Guenther <rguenther@suse.de>
12101 PR tree-optimization/43317
12102 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12104 2010-03-15 Martin Jambor <mjambor@suse.cz>
12106 PR tree-optimization/43141
12107 * tree-sra.c (create_abstract_origin): New function.
12108 (modify_function): Call create_abstract_origin.
12110 2010-03-15 Chris Demetriou <cgd@google.com>
12112 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12115 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12117 PR middle-end/43354
12118 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12119 call insert_out_of_ssa_copy for default definitions.
12121 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12123 * graphite-clast-to-gimple.c (my_long_long): Defined.
12124 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12125 * graphite-sese-to-poly.c (my_long_long): Defined.
12126 (scop_ivs_can_be_represented): Use it.
12128 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12130 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12131 graphite-max-bbs-per-function, and loop-block-tile-size.
12132 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12134 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12136 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12138 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12139 forward declaration.
12140 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12141 (add_upper_bounds_from_estimated_nit): New.
12142 (build_loop_iteration_domains): Use it.
12144 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12146 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12148 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12150 PR middle-end/43306
12151 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12152 should be an INTEGER_CST. Also handle CASE_CONVERT.
12154 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12156 * graphite.c (graphite_initialize): To bound the number of bbs per
12157 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12158 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12159 * doc/invoke.texi: Document it.
12161 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12163 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12164 * graphite-sese-to-poly.h (build_poly_scop): Same.
12166 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12168 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12169 the number of parameters in the scop. Use as an upper bound
12170 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12171 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12172 * doc/invoke.texi: Document it.
12174 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12176 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12177 * doc/c-tree.texi: Remove.
12178 * doc/generic.texi: Merge c-tree.texi here.
12179 * doc/gccint.texi (Trees): Remove menu entry.
12180 (c-tree.texi): Remove @include.
12181 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12182 * doc/languages.texi (Reading RTL): Ditto.
12184 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12187 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12189 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12191 PR middle-end/42431
12192 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12193 code added to work around reload clobbering CONST insns.
12195 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12197 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12198 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12199 (cselib_preserve_only_values): Remove retain argument, don't
12200 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12201 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12202 * var-tracking.c (micro_operation): Move insn field before union.
12203 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12204 (struct variable_tracking_info_def): Remove n_mos field, change
12205 mos into a vector of micro_operations.
12206 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12207 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12208 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12209 changing into a vector.
12210 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12211 come before all other uops generated by add_stores.
12212 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12214 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12215 a vector. Run just one pass over the bbs instead of separate counting
12216 and computation phase.
12217 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12220 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12221 into *nonlocalized_list vector.
12222 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12223 even if origin is non-NULL.
12224 (gen_variable_die): Likewise.
12225 (process_scope_var): Don't change origin.
12226 (gen_decl_die): Likewise.
12227 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12228 before adding new edges instead of after it, fix moving over
12231 2010-03-11 David S. Miller <davem@davemloft.net>
12233 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12235 * configure: Rebuild.
12237 2010-03-11 Martin Jambor <mjambor@suse.cz>
12239 PR tree-optimization/43257
12240 * tree.c (assign_assembler_name_if_neeeded): New function.
12241 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12242 above new function.
12243 * tree.h (assign_assembler_name_if_neeeded): Declare.
12244 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12245 the function if needed.
12247 2010-03-11 Chris Demetriou <cgd@google.com>
12249 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12250 include/stdint-gcc.h, and include/stdint.h world-readable.
12252 2010-03-11 Richard Guenther <rguenther@suse.de>
12254 PR tree-optimization/43255
12255 * tree-vrp.c (process_assert_insertions_for): Do not insert
12256 asserts for trivial conditions.
12258 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12260 PR tree-optimization/43280
12261 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12262 generation. Move calculation of size out of the if branch.
12263 (find_bswap): Modify compare number generation.
12265 2010-03-11 Richard Guenther <rguenther@suse.de>
12268 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12269 (input_gimple_stmt): Fixup handled component types during
12270 operand read. Also fix up decls in ADDR_EXPRs.
12272 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12274 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12275 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12277 2010-03-10 Jan Hubicka <jh@suse.cz>
12280 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12281 * varasm.c (get_variable_section): Don't do that here...
12282 (make_decl_rtl): ... and here.
12283 (do_assemble_alias): Produce decl RTL.
12284 (assemble_alias): Likewise.
12286 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12289 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12290 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12292 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12293 (based_loc_descr): Only express drap or vdrap regno based expressions
12294 using DW_OP_fbreg when not optimizing.
12295 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12296 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12297 REG_CFA_SET_VDRAP note.
12299 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
12301 PR tree-optimization/43236
12302 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12303 error in calculation of base address in reverse iteration case.
12304 (generate_builtin): Take number of latch executions if the statement
12307 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
12309 PR middle-end/42859
12310 * tree-eh.c: Include pointer-set.h.
12311 (lower_eh_dispatch): Filter out duplicate case labels and
12312 remove the unneeded edge when the label is unused. Return
12313 true when some edges are removed.
12314 (execute_lower_eh_dispatch): When any lowering resulted in
12315 removing an edge, also delete unreachable blocks.
12317 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12320 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12321 UNSPEC_MACHOPIC_OFFSET.
12323 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
12326 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12327 (m68k_delegitimize_address): New function.
12329 2010-03-09 Jakub Jelinek <jakub@redhat.com>
12332 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12335 * var-tracking.c (adjust_sets): New function.
12336 (count_with_sets, add_with_sets): Use it.
12337 (get_adjusted_src): New inline function.
12338 (add_stores): Use it.
12341 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12342 call cselib_dummy_expand_value_rtx_cb instead of
12343 cselib_expand_value_rtx_cb.
12346 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12347 * config/i386/i386.c: Include debug.h and dwarf2out.h.
12348 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12349 and .cfi_endproc around the pic thunks.
12350 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12351 all queued unwind info register saves are saved before the call.
12352 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12353 considered as sp-=4 for unwind info and the pop as sp+=4 which
12354 also clobbers dest, but doesn't actually restore it.
12357 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12358 RTX_FRAME_RELATED_P.
12360 2010-03-09 Jie Zhang <jie@codesourcery.com>
12362 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12363 whitespaces in output template.
12365 2010-03-09 Jie Zhang <jie@codesourcery.com>
12367 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12368 out array boundary.
12370 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12372 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12373 builtins.exp in a separate job.
12375 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12377 * graphite-sese-to-poly.c (add_param_constraints): Use
12378 lower_bound_in_type and upper_bound_in_type.
12380 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12382 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12383 instead of unsigned_type_node.
12385 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12386 Reza Yazdani <reza.yazdani@amd.com>
12388 PR middle-end/43065
12389 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12390 on pointer type parameters.
12392 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12394 PR middle-end/42644
12395 PR middle-end/42130
12396 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12397 handle conversions from pointer to integers.
12398 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12399 induction variable, to be able to work with code generated by CLooG.
12400 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12401 (build_poly_scop): Bail out if we cannot codegen a loop.
12403 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12405 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12406 code generation with gloog_error.
12408 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12410 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12411 Call fold_convert on all the returned values.
12412 (expand_scalar_variables_expr): Pass to
12413 expand_scalar_variables_ssa_name the type of the resulting expression.
12415 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12417 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12418 ppl_min_for_le_pointset.
12419 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12420 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12422 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12424 * graphite-dependences.c (map_into_dep_poly): Removed.
12425 (dependence_polyhedron_1): Use combine_context_id_scat.
12427 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12429 * graphite-poly.h (struct poly_scattering): Add layout documentation.
12430 (struct poly_bb): Same.
12431 (combine_context_id_scat): New.
12433 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12435 PR middle-end/42326
12436 * sese.c (name_defined_in_loop_p): Return false for default
12439 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12441 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
12442 and clean up the logic.
12444 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12446 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
12449 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12451 * var-tracking.c (remove_cselib_value_chains): Define only for
12453 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
12454 delete_slot_part, emit_notes_for_differences_1): Don't call
12455 remove_cselib_value_chains here.
12456 (set_slot_part, emit_notes_for_differences_2): Don't call
12457 add_cselib_value_chains here.
12458 (preserved_values): New vector.
12459 (preserve_value): New function.
12460 (add_uses, add_stores, vt_add_function_parameters): Use it
12461 instead of cselib_preserve_value.
12462 (changed_values_stack): New vector.
12463 (check_changed_vars_0): New function.
12464 (check_changed_vars_1, check_changed_vars_2): Use it.
12465 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
12466 changed_values_stack VALUEs.
12467 (vt_emit_notes): For all preserved_values call
12468 add_cselib_value_chains. If ENABLE_CHECKING call
12469 remove_cselib_value_chains before verifying value_chains is empty.
12470 Initialize and free changed_values_stack.
12471 (vt_initialize): Initialize preserved_values.
12472 (vt_finalize): Free preserved_values.
12474 2010-03-08 Richard Guenther <rguenther@suse.de>
12476 PR tree-optimization/43269
12477 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
12480 2010-03-08 Martin Jambor <mjambor@suse.cz>
12482 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
12483 (ipa_is_param_called): Removed.
12484 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
12485 (ipa_print_node_params): Do not print the called flag.
12486 (ipa_write_node_info): Do not stream the called flag.
12487 (ipa_read_node_info): Likewise.
12489 2010-03-07 Jakub Jelinek <jakub@redhat.com>
12492 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
12493 * cselib.c (struct expand_value_data): Add dummy field.
12494 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
12496 (cselib_dummy_expand_value_rtx_cb): New function.
12497 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
12499 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
12500 * var-tracking.c: Include pointer-set.h.
12501 (variable): Change n_var_parts to char from int. Add
12502 cur_loc_changed and in_changed_variables fields.
12503 (variable_canonicalize): Remove.
12504 (shared_var_p): New inline function.
12505 (unshare_variable): Maintain cur_loc_changed and
12506 in_changed_variables fields. If var was in changed_variables,
12507 replace it there with new_var. Just copy cur_loc instead of
12508 resetting it to something else.
12509 (variable_union): Don't recompute cur_loc. Use shared_var_p.
12510 (dataflow_set_union): Don't call variable_canonicalize.
12511 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
12512 of their DEBUG_EXPR_TREE_DECLs.
12513 (canonicalize_loc_order_check): Verify that cur_loc is NULL
12514 and in_changed_variables and cur_loc_changed is false.
12515 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
12516 and cur_loc_changed. Don't update cur_loc here.
12517 (variable_merge_over_src): Don't call variable_canonicalize.
12518 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
12519 removing loc that is equal to cur_loc, clear cur_loc,
12520 set cur_loc_changed and ensure variable_was_changed is called.
12521 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
12522 compare pointers in cur_loc check, if it is equal to loc,
12523 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
12524 (variable_different_p): Remove compare_current_location argument,
12525 don't compare cur_loc.
12526 (dataflow_set_different_1): Adjust variable_different_p caller.
12527 (variable_was_changed): If dv had some var in changed_variables
12528 already, reset in_changed_variables flag for it and propagate
12529 cur_loc_changed over to the new variable. On empty var
12530 always set cur_loc_changed. Set in_changed_variables on whatever
12531 var is added to changed_variables.
12532 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
12533 Use shared_var_p. When removing loc that is equal to cur_loc,
12534 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
12535 end, don't set it to something else, just call variable_was_changed.
12536 (delete_slot_part): Use shared_var_p. When cur_loc equals to
12537 loc being removed, clear cur_loc and set cur_loc_changed.
12538 Set cur_loc_changed if all locations have been removed.
12539 (struct expand_loc_callback_data): New type.
12540 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
12541 allocated. Always create SUBREGs if simplify_subreg failed.
12542 Prefer to use cur_loc, when that fails and still in
12543 changed_variables (and seen first time) recompute it. Set
12544 cur_loc_changed of variables which had to change cur_loc and
12545 compute elcd->cur_loc_changed if any of the subexpressions used
12546 had to change cur_loc.
12547 (vt_expand_loc): Adjust to pass arguments in
12548 expand_loc_callback_data structure.
12549 (vt_expand_loc_dummy): New function.
12550 (emitted_notes): New variable.
12551 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
12552 that weren't used for any other decl in current
12553 emit_notes_for_changes call call vt_expand_loc_dummy to update
12554 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
12555 first loc_chain location if NULL before. Always use just
12556 cur_loc instead of first loc_chain location. When cur_loc_changed
12557 is false, when not --enable-checking=rtl just don't emit any note.
12558 When rtl checking, compute the note and assert it is the same
12559 as previous note. Clear cur_loc_changed and in_changed_variables
12560 at the end before removing from changed_variables.
12561 (check_changed_vars_3): New function.
12562 (emit_notes_for_changes): Traverse changed_vars to call
12563 check_changed_vars_3 on each changed var.
12564 (emit_notes_for_differences_1): Clear cur_loc_changed and
12565 in_changed_variables. Recompute cur_loc of new_var.
12566 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
12567 (vt_emit_notes): Initialize and destroy emitted_notes.
12569 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
12571 PR rtl-optimization/42220
12572 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
12573 Use verify_reg_tracked to determine if we should use OP_OUT rather
12575 (build_def_use): If we see an in-out operand for a register that we
12576 know nothing about, treat is an output if possible, fail the block if
12579 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12582 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
12585 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12588 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
12589 uses of relevant DEFs that are dead outside the loop too.
12591 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12593 * var-tracking.c (dataflow_set_merge): Swap src and src2.
12595 2010-01-13 Jakub Jelinek <jakub@redhat.com>
12597 * var-tracking.c (values_to_unmark): New variable.
12598 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12599 values_to_unmark vector. Moved body to...
12600 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
12601 instead queue it into values_to_unmark vector.
12602 (vt_find_locations): Free values_to_unmark vector.
12604 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
12606 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
12607 (site.exp): Export them when plugins are enabled.
12609 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
12611 PR middle-end/42326
12612 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
12613 that contain scevs.
12614 (chrec_fold_multiply): Same.
12616 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12619 * c-decl.c (build_compound_literal): Return early if init is
12620 an error_mark_node.
12622 2010-03-04 Martin Jambor <mjambor@suse.cz>
12624 PR tree-optimization/43164
12625 PR tree-optimization/43191
12626 * tree-sra.c (type_consists_of_records_p): Reject records with
12627 zero-size bit-fields at the end.
12629 2010-03-04 Mike Stump <mikestump@comcast.net>
12631 * Makefile.in (TAGS): Remove *.y.
12633 2010-03-04 Richard Guenther <rguenther@suse.de>
12635 PR tree-optimization/40761
12636 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
12638 (my_rev_post_order_compute): New function.
12639 (init_pre): Call it.
12641 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
12643 PR middle-end/43209
12644 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
12645 decrease the cost of an IV candidate when the cost is infinite.
12647 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12649 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
12650 Use '3DNow!' for the extension of that name, ensure normal space
12652 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
12654 2010-03-03 Jeff Law <law@redhat.com>
12656 * PR middle-end/32693
12657 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
12658 than gen_rtx_SUBREG.
12659 (extract_bit_field_1): Likewise.
12661 2010-03-03 Janis Johnson <janis187@us.ibm.com>
12663 * doc/sourcebuild.texi (Test directives): Document that arguments
12664 include-opts and exclude-opts are now optional for dg-skip-if,
12665 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
12667 2010-03-03 Jason Merrill <jason@redhat.com>
12670 * cgraph.h (varpool_node): Add extra_name field.
12671 * varpool.c (varpool_extra_name_alias): New.
12672 (varpool_assemble_decl): Emit extra name aliases.
12673 (varpool_mark_needed_node): Look past an extra name alias.
12674 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
12675 * lto-streamer-in.c (lto_input_tree): Read it.
12676 * lto-streamer-out.c (output_unreferenced_globals): Write it.
12678 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
12680 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
12681 (sparc*-*-solaris2*): ...this.
12683 2010-03-03 Jakub Jelinek <jakub@redhat.com>
12686 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
12687 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
12688 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
12689 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
12692 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
12693 fallthrough to default handling, just with want_address 0 instead of 2.
12694 For single element lists, add_AT_loc directly, otherwise create an
12695 artificial variable DIE and stick location list to it.
12698 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
12699 (VAL_EXPR_HAS_REVERSE): Define.
12700 (reverse_op): New function.
12701 (add_stores): For reversible operations add an extra MO_VAL_USE.
12703 2010-03-02 Jason Merrill <jason@redhat.com>
12705 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
12707 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
12709 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
12710 (sparc64-*-linux*): Likewise.
12711 (sparc64-*-solaris2*): Include assembler files before linker ones.
12712 (sparc-*-solaris2*): Simplify and reorder to match previous case.
12713 * config/sparc/gas.h: Delete.
12714 * config/sparc/sol2-64.h: Add copyright notice.
12715 * config/sparc/sol2-gas-bi.h: Likewise.
12716 * config/sparc/sol2-gld.h: Likewise.
12717 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
12718 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
12719 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
12720 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
12721 (sparc_elf_asm_named_section): Rename into...
12722 (sparc_solaris_elf_asm_named_section): ...this. Always define.
12724 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
12726 * config/alpha/alpha.c (override_options): Fix -mtune error message.
12728 2010-03-02 Jeff Law <law@redhat.com>
12730 PR middle-end/42431
12731 * reload1.c (rtx_p, substitute_stack): Declare.
12732 (substitute): Record addresses of changed rtxs.
12733 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
12734 Restore the original rtx when complete.
12735 (reload): Free subsitute_stack when complete.
12737 2010-03-02 Janis Johnson <janis187@us.ibm.com>
12739 * doc/gccint.texi (menu): Add Testsuites as a chapter.
12740 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
12742 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
12743 LTO Testing, gcov Testing, profopt Testing, compat Testing,
12744 Torture Tests): Change from subsection to section.
12746 2010-03-02 Jakub Jelinek <jakub@redhat.com>
12747 Steven Bosscher <steven@gcc.gnu.org>
12749 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
12752 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
12754 PR middle-end/42640
12755 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
12756 the assignment from the new induction variable to the assignment
12757 of the value from the original loop PHI function.
12759 2010-03-01 Janis Johnson <janis187@us.ibm.com>
12760 Daniel Jacobowitz <dan@codesourcery.com>
12762 * doc/sourcebuild.texi (Test directives): Clarify options to
12765 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12767 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
12768 Disable cfi directives unless GCC and gas agree on using read-only
12769 .eh_frame sections for 64-bit.
12770 * configure: Regenerate.
12772 2010-03-01 Richard Guenther <rguenther@suse.de>
12774 PR tree-optimization/43220
12775 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
12776 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
12778 2010-03-01 Richard Guenther <rguenther@suse.de>
12779 Martin Jambor <mjambor@suse.cz>
12781 PR middle-end/41250
12782 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
12783 gimplified parameters.
12785 2010-03-01 Christian Bruel <christian.bruel@st.com>
12787 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
12789 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
12791 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
12793 2010-03-01 Richard Guenther <rguenther@suse.de>
12795 PR middle-end/43213
12796 * expr.c (expand_assignment): Use the alias-oracle to tell
12797 if the rhs aliases the result decl.
12799 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12802 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
12803 to sol_gt_pch_get_address.
12804 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
12805 64-bit, SPARC and x86.
12806 (sol_gt_pch_get_address): New function.
12808 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
12810 * toplev.h (inform_n, error_n): Declare.
12811 * diagnostic.c (inform_n, error_n): New function.
12813 2010-03-01 Jakub Jelinek <jakub@redhat.com>
12815 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
12816 has no rtl yet when processing local_decls, queue it and recheck
12817 if deferred stack allocation hasn't assigned it rtl.
12819 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
12821 * config/sh/sh.c (unspec_bbr_uid): New.
12822 (gen_block_redirect): Use it instead of INSN_UID.
12823 (gen_far_branch): Likewise.
12825 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
12827 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
12828 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
12830 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12832 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
12833 (Warning Options): -Wno-conversion-null is valid for
12834 Objective-C++ as well.
12835 * doc/tm.texi (Named Address Spaces): Likewise.
12836 * doc/plugins.texi (Plugins): Replace TABs with spaces.
12837 * doc/tree-ssa.texi (Tree SSA): Likewise.
12839 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
12842 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
12843 by default. Don't set the default arch for
12844 i[34567]86-*-darwin*|x86_64-*-darwin*.
12846 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
12849 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
12850 default. Set the default 32bit/64bit archs with $with_arch
12851 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
12853 2010-02-27 Richard Guenther <rguenther@suse.de>
12855 PR tree-optimization/43186
12856 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
12857 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
12858 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
12859 unroller iterations.
12861 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
12863 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
12864 required and i[34567]86-*-* targets don't support 64bit ISA.
12866 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
12869 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
12870 the same alias set.
12872 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
12874 * config.gcc: Set the default arch at least to Prescott for
12875 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
12876 if SSE math is enabled.
12878 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12880 * diagnostic.c (diagnostic_initialize): Update.
12881 (diagnostic_report_diagnostic): Test inhibit_notes_p for
12883 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
12884 (diagnostic_inhibit_notes): New.
12885 * toplev.c (process_options): inhibit notes with -fcompare-debug.
12887 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12890 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
12891 * doc/standards.texi: Likewise.
12892 * doc/extend.texi: Likewise.
12893 * doc/trouble.texi: Likewise.
12894 * doc/cppopts.texi: Likewise.
12895 * doc/install.texi: Likewise.
12896 * c.opt (std=c90,std=gnu90): New options.
12897 * c-opts.c (c_common_handle_option): Handle them.
12899 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12902 * c-decl.c (undeclared_variable): Use an informative note.
12904 2010-02-26 Richard Guenther <rguenther@suse.de>
12906 PR tree-optimization/43186
12907 * gimple.h (gimple_fold): Remove.
12908 * gimple.c (gimple_fold): Remove. Inline into single user ...
12909 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
12910 Try harder for conditions.
12912 2010-02-26 Jakub Jelinek <jakub@redhat.com>
12915 * function.c (used_types_insert): Don't skip through named pointer
12916 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
12917 and it is different from the main variant's type.
12919 2010-02-26 Nick Clifton <nickc@redhat.com>
12921 * config/rx/rx.md (sminsi3): Remove bogus alternative.
12923 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
12925 * config.gcc: Support --with-fpmath=sse for x86.
12927 * config/i386/ssemath.h: New.
12929 * doc/install.texi (--with-fpmath=sse): Documented.
12931 2010-02-26 Richard Guenther <rguenther@suse.de>
12933 PR tree-optimization/43188
12934 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
12935 vector types of over-aligned element type.
12937 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
12940 * config/i386/i386.c (expand_vec_perm_blend): Use correct
12941 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
12943 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12945 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
12947 2010-02-26 Jakub Jelinek <jakub@redhat.com>
12949 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
12950 * var-tracking.c: Include diagnostic.h.
12951 (debug_dv): New function.
12952 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
12955 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
12956 (add_value_chain, add_value_chains, remove_value_chain,
12957 remove_value_chains): Handle DEBUG_EXPRs.
12958 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
12961 * regcprop.c (struct queued_debug_insn_change): New type.
12962 (struct value_data_entry): Add debug_insn_changes field.
12963 (struct value_data): Add n_debug_insn_changes field.
12964 (debug_insn_changes_pool): New variable.
12965 (free_debug_insn_changes, apply_debug_insn_changes,
12966 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
12967 (kill_value_one_regno): Call free_debug_insn_changes if needed.
12968 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
12970 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
12972 (copyprop_hardreg_forward_1): Don't call apply_change_group for
12973 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
12974 changes, call cprop_find_used_regs via note_stores.
12975 (copyprop_hardreg_forward): When copying vd from predecessor
12976 which has any queued DEBUG_INSN changes, make sure the pointers are
12977 cleared. At the end call df_analyze and then if there are any
12978 DEBUG_INSN changes queued at the end of some basic block for still
12979 live registers, apply them.
12980 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
12982 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
12984 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
12987 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
12989 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
12990 targets. Set the default with_cpu/with_arch from arch/cpu.
12991 Allow x86-64 and native for with_cpu/with_arch.
12993 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
12995 * ebitmap.c: Change calls to verify_popcount with calls to
12996 sbitmap_verify_popcount.
12997 (ebitmap_clear_bit): Fixed map->cacheindex test and
12998 map>cache update when bit clearing results in an empty
13001 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13004 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13005 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13006 and support both V2DF and V2DI modes.
13007 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13008 support both V2DF and V2DI modes.
13009 (general): Delete trailing whitespace from a few patterns.
13011 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13012 V2DF/V2DI interleave high/low builtins.
13014 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13017 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13018 interleave high/low functions.
13020 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13022 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13023 #pragma extern_prefix.
13025 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13028 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13029 BLKmode, assert op0 is a MEM and just adjust its mode.
13032 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13033 if bitpos isn't multiple of mode's bitsize.
13035 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13037 * c.opt (-ftemplate-depth=): New.
13038 (-ftemplate-depth-): Deprecate.
13039 * optc-gen.awk: Handle -ftemplate-depth=.
13040 * opth-gen.awk: Likewise.
13041 * c-opts.c (c_common_handle_option): Likewise.
13042 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13044 2010-02-24 Jason Merrill <jason@redhat.com>
13046 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13048 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13050 * cfg.c (alloc_aux_for_block): Remove inline.
13051 (alloc_aux_for_edge): Likewise.
13053 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13055 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13057 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13059 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13060 * config/i386/sol2-gas.h: New file.
13061 * config.gcc (i[34567]86-*-solaris2*): Use it.
13063 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13066 * c-typeck.c (ep_convert_and_check): New.
13067 (build_conditional_expr): Use it.
13068 (build_binary_op): Likewise.
13070 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13072 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13075 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13076 bounds even for -O+.
13077 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13078 expr needs to have DECL_NAME set.
13080 2010-02-24 Nick Clifton <nickc@redhat.com>
13082 * config/mep/mep.c: Include gimple.h.
13083 (mep_function_uses_sp): Delete unused function.
13084 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13085 parameters. Use unsigned integers to count args. Return a
13086 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13088 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13091 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13092 greater or equal to nelt instead of 2 * nelt.
13093 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13096 2010-02-23 Jason Merrill <jason@redhat.com>
13099 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13100 in cfun->local_decls even if they have register types.
13103 * stor-layout.c (place_field): Don't warn about unnecessary
13104 DECL_PACKED if the type is packed.
13106 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13109 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13110 GOTOFF relocs, even when the base reg isn't pic pointer.
13112 2010-02-23 Michael Matz <matz@suse.de>
13115 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13116 (expand_gimple_basic_block): Generate and use debug temps if there
13117 are debug uses left after the last real use of TERed ssa names.
13118 Unlink debug immediate uses when they are expanded.
13120 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13123 * config/i386/i386.c (override_options): Reorganise to provide
13124 better error messages.
13126 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13128 PR middle-end/43083
13129 * graphite-scop-detection.c (create_single_exit_edge): Move
13130 the call to find_single_exit_edge to....
13131 (create_sese_edges): ...here. Don't handle multiple edges
13132 exiting the function.
13133 (build_graphite_scops): Don't handle multiple edges
13134 exiting the function.
13136 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13138 PR middle-end/43097
13139 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13140 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13142 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13144 PR middle-end/43026
13145 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13147 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13150 * c-typeck.c (convert_arguments): Print declaration location.
13151 * c-common.c (validate_nargs): Rename as
13152 builtin_function_validate_nargs.
13153 (check_builtin_function_arguments): Update.
13155 2010-02-22 Richard Guenther <rguenther@suse.de>
13158 * tree-inline.c (declare_return_variable): Use the type of
13159 the call stmt lhs if available.
13161 2010-02-22 Duncan Sands <baldrick@free.fr>
13163 * passes.c (register_pass): Always consider all pass lists when
13164 ref_pass_instance_number is zero.
13166 2010-02-22 Richard Guenther <rguenther@suse.de>
13168 PR tree-optimization/42749
13169 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13170 parameter. Do arithmetic in the original type.
13171 (update_accumulator_with_ops): Likewise.
13172 (adjust_accumulator_values): Adjust.
13174 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13176 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13177 (QI to BLKmode splitter): New splitter.
13179 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13181 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13182 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13184 2010-02-22 Richard Guenther <rguenther@suse.de>
13186 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13188 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13190 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13191 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13192 ($(T)crti.o, $(T)crtn.o): Remove rules.
13194 2010-02-21 Tobias Burnus <burnus@net-b.de>
13197 * doc/invoke.texi (-fassociative-math): Document that this
13198 option is automatically enabled for Fortran.
13200 2010-02-20 David S. Miller <davem@davemloft.net>
13202 * configure.ac: Test if linker and assembler properly support
13203 GOTDATA_OP relocations.
13204 * configure: Rebuild.
13205 * config.in: Likewise.
13206 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13207 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13208 (movsi_high_pic): Likewise.
13209 (movdi_lo_sum_pic): Likewise.
13210 (movdi_high_pic): Likewise.
13211 (movsi_pic_gotdata_op): New pattern.
13212 (movdi_pic_gotdata_op): Likewise.
13213 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13214 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13216 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13219 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13220 attribute to ssemul.
13221 (xop_mulv2div2di3_high): Ditto.
13223 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13226 * c.opt (Wconversion-null): New option.
13227 * doc/invoke.texi (Wconversion-null): Document.
13229 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13231 * common.opt (Wlarger-than-): Add Undocumented.
13233 2010-02-19 Mike Stump <mikestump@comcast.net>
13235 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13237 2010-02-19 Jason Merrill <jason@redhat.com>
13240 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13241 * configure: Likewise.
13243 2010-02-20 Alan Modra <amodra@gmail.com>
13245 PR middle-end/42344
13246 * cgraph.h (cgraph_make_decl_local): Declare.
13247 * cgraph.c (cgraph_make_decl_local): New function.
13248 (cgraph_make_node_local): Use it.
13249 * cgraphunit.c (cgraph_function_versioning): Likewise.
13250 * ipa.c (function_and_variable_visibility): Likewise.
13252 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13255 * except.c (sjlj_emit_function_enter): Don't call
13256 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13258 * rtl.h (add_reg_br_prob_note): Remove prototype.
13260 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13263 * c-common.c (conversion_warning): Remove widening conversions
13264 before checking the conversion of integers to reals.
13266 2010-02-19 Mike Stump <mikestump@comcast.net>
13268 PR middle-end/43125
13269 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13272 * cgraphunit.c (process_function_and_variable_attributes): Check
13273 DECL_PRESERVE_P instead of looking up attribute "used".
13274 * ipa-pure-const.c (check_decl): Likewise.
13275 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13276 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13277 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13278 instead of attribute "used".
13279 * config/sol2-c.c (solaris_pragma_init): Likewise.
13280 (solaris_pragma_fini): Likewise.
13282 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13284 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13285 Use XCNEW instead of xcalloc.
13286 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13287 XNEW instead of xmalloc.
13288 (get_fields): Use XNEWVEC instead of xmalloc.
13291 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13292 populate vars array.
13293 (create_new_general_access): For debug stmts just reset value.
13294 (get_stmt_accesses): For accesses within debug stmts just record them
13295 using add_access_to_acc_sites instead of preventing the peeling or
13296 counting them as accesses.
13298 PR middle-end/42233
13299 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13301 2010-02-19 Richard Guenther <rguenther@suse.de>
13303 PR tree-optimization/42916
13304 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13307 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
13309 * configure.ac: Replace all uses of changequote in macro arguments
13310 with proper quoting.
13312 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13314 PR middle-end/42233
13315 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13317 2010-02-19 Richard Guenther <rguenther@suse.de>
13319 PR tree-optimization/42944
13320 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13321 test for aliasing with errno.
13323 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13325 PR middle-end/42233
13326 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13327 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13328 * dojump.c: Include output.h.
13329 (inv): New inline function.
13330 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13331 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13332 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13333 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13334 argument, pass it down to other calls.
13335 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
13336 add REG_BR_PROB note to the conditional jump.
13337 * cfgexpand.c (add_reg_br_prob_note): Removed.
13338 (expand_gimple_cond): Don't call it, add the probability
13339 as last argument to jumpif_1/jumpifnot_1.
13340 * Makefile.in (dojump.o): Depend on output.h.
13341 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13343 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13344 * stmt.c (do_jump_if_equal): Likewise.
13345 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13346 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13347 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13349 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13350 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13351 jumpifnot_1 callers.
13352 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13354 (store_expr): Adjust jumpifnot caller.
13355 (store_constructor): Adjust jumpif caller.
13357 PR middle-end/42233
13358 * gimplify.c (gimple_boolify): For __builtin_expect call
13359 gimple_boolify also on its first argument.
13361 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
13363 * configure.ac (gnu-unique-object): Wrap regexps using [] in
13365 (__stack_chk_fail): Ditto. Remove quadrigraphs.
13366 * configure: Regenerated.
13368 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13370 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13371 lang_hooks.types_compatible_p instead of comptypes.
13373 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
13375 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13376 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13377 if __prefer_thumb__ is defined.
13379 2010-02-18 Martin Jambor <mjambor@suse.cz>
13381 PR tree-optimization/43066
13382 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13383 array with zero-sized element type.
13385 2010-02-18 Jakub Jelinek <jakub@redhat.com>
13387 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13388 rtx, allocate struct var_loc_node here and return it to the
13389 caller, and only if it is actually needed.
13390 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13391 move it earlier and return immediately if it returns NULL.
13393 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
13395 * config/sparc/gas.h: New file. Restore
13396 TARGET_ASM_NAMED_SECTION to its ELF default.
13397 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13398 check !HAVE_GNU_AS.
13399 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13400 Likewise. Add ATTRIBUTE_UNUSED to prototype.
13401 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13402 after sparc/sysv4.h.
13404 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
13406 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13408 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
13410 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13411 patterns from predicated pattern.
13413 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
13416 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13417 for insn mnemonic suffix.
13419 2010-02-17 Richard Guenther <rguenther@suse.de>
13421 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13424 2010-02-17 Jakub Jelinek <jakub@redhat.com>
13427 * caller-save.c (save_call_clobbered_regs): If BB ends with
13428 a DEBUG_INSN, move any notes in between last real insn and the last
13429 DEBUG_INSN after the last DEBUG_INSN.
13431 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
13433 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13434 Fix return type. Fix argument type. Explain meaning of return value.
13436 2010-02-16 Richard Guenther <rguenther@suse.de>
13438 PR tree-optimization/41043
13439 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
13440 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
13442 (vrp_visit_phi_node): ... but only for loop PHI nodes.
13444 2010-02-16 Ira Rosen <irar@il.ibm.com>
13446 PR tree-optimization/43074
13447 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
13448 * tree-vect-loop.c (vect_analyze_loop_operations): Add
13449 vectorizable cycles in hybrid SLP check.
13450 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
13452 2010-02-16 Richard Guenther <rguenther@suse.de>
13454 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
13455 (true_dependence): If memrefs_conflict_p computes must-alias
13456 trust it. Move TBAA check after offset-based disambiguation.
13457 (canon_true_dependence): Likewise.
13459 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
13461 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
13462 * doc/invoke.texi: Document it.
13463 * var-tracking.c: Include toplev.h and params.h.
13464 (vt_find_locations): Return bool indicating success. Compute
13465 hash sizes unconditionally. Check new parameter, report.
13466 (variable_tracking_main_1): Check vt_find_locations results and
13467 retry. Renamed from...
13468 (variable_tracking_main): ... this. New wrapper to preserve
13469 flag_var_tracking_assignments.
13470 * Makefile.in (var-tracking.o): Adjust dependencies.
13472 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
13473 Jakub Jelinek <jakub@redhat.com>
13476 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
13477 if weak_import attribute is present.
13478 * config/darwin.c (machopic_select_section): Likewise.
13480 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
13482 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
13483 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
13484 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
13485 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
13487 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
13490 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13491 Fix argument types.
13493 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
13494 Rewrite text to refer to the names.
13496 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
13498 * config/i386/i386-builtin-types.def
13499 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
13500 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
13501 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
13502 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
13503 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
13504 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
13505 IX86_BUILTIN_VPERMIL2PS256.
13506 (MULTI_ARG_4_DF2_DI_I): Defined.
13507 (MULTI_ARG_4_DF2_DI_I1): Defined.
13508 (MULTI_ARG_4_SF2_SI_I): Defined.
13509 (MULTI_ARG_4_SF2_SI_I1): Defined.
13510 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
13511 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
13512 __builtin_ia32_vpermil2ps256.
13513 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13514 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13515 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
13516 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13517 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13518 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
13519 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
13520 CODE_FOR_xop_vpermil2v8sf3.
13521 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
13522 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
13523 * config/i386/xopintrin.h (_mm_permute2_pd): New.
13524 (_mm256_permute2_pd): New.
13525 (_mm_permute2_ps): New.
13526 (_mm256_permute2_ps): New.
13528 2010-02-15 Nick Clifton <nickc@redhat.com>
13530 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
13531 boolean parameters. Use emit_jump_insn when emitting a pop
13532 instruction containing a return insn.
13533 (push): Use 'true' rather than '1' as second parameter to F.
13534 (h8300_expand_prologue): Likewise.
13535 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
13536 (h8300_expand_epilogue): Likewise.
13538 2010-02-15 Richard Guenther <rguenther@suse.de>
13540 PR middle-end/43068
13541 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
13544 2010-02-15 Nick Clifton <nickc@redhat.com>
13546 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
13549 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
13551 * intl.c (fake_ngettext): New function.
13552 * intl.h (fake_ngettext): Declare.
13553 (ngettext): Define macro.
13554 * collect2.c (notice_translated): New function.
13555 (main): Use notice_translated and ngettext.
13556 * collect2.h (notice_translated): Declare.
13558 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
13560 * reorg.c (delete_computation): Comment fixes.
13561 * caller-save.c (setup_save_areas): Idem.
13562 * sel-sched-dump.c (dump_lv_set): Idem.
13565 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13567 * config/s390/s390.c (s390_sched_init): New function.
13568 (TARGET_SCHED_INIT): Target hook defined.
13570 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
13571 Jack Howarth <howarth@bromo.med.uc.edu>
13572 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13575 Partial revert of unintended change in fix for PR41605.
13576 * config/darwin.h: Fix typo.
13577 * config/darwin9.h: Same.
13579 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13581 * c-pch.c (pch_init): Clear v.
13583 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13585 PR middle-end/42930
13586 * graphite-scop-detection.c (graphite_can_represent_scev): Call
13587 graphite_can_represent_init for MULT_EXPR.
13589 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13591 PR middle-end/42914
13592 PR middle-end/42530
13593 * graphite-sese-to-poly.c (remove_phi): New.
13594 (translate_scalar_reduction_to_array): Call remove_phi.
13596 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13598 PR middle-end/42771
13599 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
13600 * graphite-clast-to-gimple.h (gloog): Update declaration.
13601 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
13602 * graphite-poly.h (struct poly_bb): Add missing comments.
13603 (struct scop): Add poly_scop_p field.
13604 (POLY_SCOP_P): New.
13605 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
13606 * graphite.c (graphite_transform_loops): Build the polyhedral
13607 representation for each scop before code generation.
13608 * sese.c (rename_variables_in_operand): Removed.
13609 (rename_variables_in_expr): Return the renamed expression.
13610 (rename_sese_parameters): New.
13611 * sese.h (rename_sese_parameters): Declared.
13613 2010-02-11 Richard Guenther <rguenther@suse.de>
13615 PR tree-optimization/42998
13616 * tree-ssa-pre.c (create_expression_by_pieces): Treat
13617 POINTER_PLUS_EXPR properly.
13619 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13620 Changpeng Fang <changpeng.fang@amd.com>
13622 PR middle-end/40886
13623 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
13624 the cost of an IV candidate when the IV is used in a test against zero.
13626 * gcc.dg/tree-ssa/ivopts-3.c: New.
13628 2010-02-11 Richard Guenther <rguenther@suse.de>
13631 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
13632 pointer-vs-decl case by swapping refs. Handle some cases
13633 of pointer-vs-decl disambiguations more conservatively.
13634 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
13635 to false after expanding.
13637 2010-02-11 Richard Guenther <rguenther@suse.de>
13640 * gcc.c (process_command): Handle LTO file@offset case more
13643 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13645 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
13646 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
13648 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
13650 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
13651 if MEM's mode size isn't DWARF2_ADDR_SIZE.
13652 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
13653 Optimize eq/ne comparisons when both arguments are known to be
13655 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
13656 Don't mask operands unnecessarily if they are known to be already
13659 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
13661 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
13664 2010-02-10 Richard Guenther <rguenther@suse.de>
13666 PR tree-optimization/43017
13667 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
13668 for wrapping signed arithmetic.
13670 2010-02-10 Jakub Jelinek <jakub@redhat.com>
13673 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
13674 if no debug info should be emitted for it.
13676 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
13678 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
13679 note when flag_exceptions is set.
13681 2010-02-10 Duncan Sands <baldrick@free.fr>
13683 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
13685 2010-02-10 Richard Guenther <rguenther@suse.de>
13688 * tree.c (get_unwidened): Handle constants.
13689 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
13691 2010-02-10 Martin Jambor <mjambor@suse.cz>
13694 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
13695 check for variable argument counts independently.
13697 2010-02-10 Christian Bruel <christian.bruel@st.com>
13700 * config/sh/sh.c (find_barrier): Increase length for non delayed
13701 conditional branches.
13703 2010-02-10 Christian Bruel <christian.bruel@st.com>
13705 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
13707 2010-02-10 Jakub Jelinek <jakub@redhat.com>
13709 * builtins.c (set_builtin_user_assembler_name): Also handle
13710 ffs if int is smaller than word.
13712 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
13714 PR middle-end/42973
13715 * ira-conflicts.c (get_dup): Remove.
13716 (process_reg_shuffles): Add new parameter. Use it as an
13717 additional guard for copy generation.
13718 (add_insn_allocno_copies): Rewrite.
13720 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
13722 * common.opt (fsched2-use-traces): Preserved for backward
13724 * doc/invoke.texi: Remove the documentation about option
13725 -fsched2-use-traces.
13726 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
13727 flag_sched2_use_traces.
13728 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
13729 the backward compatibility flag section.
13731 2010-02-09 Richard Guenther <rguenther@suse.de>
13733 PR tree-optimization/43008
13734 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
13735 make HEAP variables initialized from global memory if they
13736 are not known builtin functions.
13737 (find_func_aliases): Adjust.
13739 2010-02-09 Richard Guenther <rguenther@suse.de>
13741 PR tree-optimization/43000
13742 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
13743 arithmetic manually.
13745 2010-02-08 Jakub Jelinek <jakub@redhat.com>
13747 PR tree-optimization/42931
13748 * tree-loop-linear.c (try_interchange_loops): Don't call
13749 double_int_mul if estimated_loop_iterations failed.
13751 2010-02-08 Martin Jambor <mjambor@suse.cz>
13753 PR middle-end/42898
13754 * tree-sra.c (build_accesses_from_assign): Do not mark in
13755 should_scalarize_away_bitmap if stmt has volatile ops.
13756 (sra_modify_assign): Do not process assigns piecemeal if if stmt
13759 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
13761 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
13763 2010-02-07 Adam Nemet <adambnmet@gmail.com>
13765 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
13766 before the pattern.
13768 2010-02-07 Andrew Pinski <pinskia@gmail.com>
13770 PR middle-end/42946
13771 * df-core.c (df_finish_pass): Change type of saved_flags to int.
13773 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
13775 PR middle-end/42988
13776 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
13777 to unknown_dependence.
13778 (graphite_legal_transform_dr): Handle the unknown_dependence.
13779 (graphite_carried_dependence_level_k): Same.
13781 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
13783 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
13785 2010-02-07 Richard Guenther <rguenther@suse.de>
13787 PR middle-end/42991
13788 * expr.c (get_inner_reference): Always initialize *pbitsize.
13790 2010-02-07 Richard Guenther <rguenther@suse.de>
13792 PR middle-end/42956
13793 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
13794 new ARRAY_REFs on variable size element or minimal index arrays.
13796 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
13797 gimple_fold_indirect_ref.
13799 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
13802 * arm.c (arm_override_options): Just return if the user has specified
13803 an invalid fpu name.
13805 2010-02-03 Jason Merrill <jason@redhat.com>
13808 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
13809 i386_pe_maybe_record_exported_symbol.
13811 2010-02-05 Steve Ellcey <sje@cup.hp.com>
13814 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
13815 (pa_delegitimize_address): New function.
13817 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
13819 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
13820 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
13822 2010-02-05 Richard Guenther <rguenther@suse.de>
13825 * lto-streamer-in.c (get_resolution): Deal with references
13826 to undefined functions.
13828 2010-02-05 Richard Guenther <rguenther@suse.de>
13830 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
13831 (fold_const_aggregate_ref): Likewise.
13832 (ccp_fold_stmt): Substitute loads.
13833 (maybe_fold_reference): Verify types before substituting.
13835 (fold_gimple_assign): Unshare properly.
13836 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
13838 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
13840 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
13841 for rs6000_gen_cell_microcode.
13843 2010-02-04 Richard Guenther <rguenther@suse.de>
13845 PR rtl-optimization/42952
13846 * dse.c (const_or_frame_p): Remove MEM handling.
13848 2010-02-04 Nick Clifton <nickc@redhat.com>
13850 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
13851 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13852 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
13853 (mn10300_asm_output_mi_thunk): New function.
13854 (mn10300_can_output_mu_thunk): New function.
13855 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
13856 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
13857 (FUNCTION_ARG): Delete incorrect comment.
13859 2010-02-03 Jason Merrill <jason@redhat.com>
13862 * fold-const.c (operand_equal_p): Handle erroneous types.
13864 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13866 * config/h8300/h8300.md (can_delay): Fix attibute condition.
13868 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
13870 PR rtl-optimization/42941
13871 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
13874 2010-02-03 Jason Merrill <jason@redhat.com>
13877 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
13879 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
13882 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
13883 (cselib_reset_table): Renamed from...
13884 (cselib_reset_table_with_next_value): ... this.
13885 (cselib_get_next_uid): Renamed from...
13886 (cselib_get_next_unknown_value): ... this.
13887 * cselib.c (next_uid): Renamed from...
13888 (next_unknown_value): ... this.
13889 (cselib_clear_table): Adjust.
13890 (cselib_reset_table): Adjust. Renamed from...
13891 (cselib_reset_table_with_next_value): ... this.
13892 (cselib_get_next_uid): Adjust. Renamed from...
13893 (cselib_get_next_unknown_value): ... this.
13894 (get_value_hash): Use hash.
13895 (cselib_hash_rtx): Likewise.
13896 (new_cselib_val): Adjust. Set and dump uid.
13897 (cselib_lookup_mem): Pass next_uid as hash.
13898 (cselib_subst_to_values): Likewise.
13899 (cselib_log_lookup): Dump uid.
13900 (cselib_lookup): Pass next_uid as hash. Adjust.
13901 (cselib_process_insn): Adjust.
13902 (cselib_init): Initialize next_uid.
13903 (cselib_finish): Adjust.
13904 (dump_cselib_table): Likewise.
13905 * dse.c (canon_address): Dump value uid.
13906 * print-rtl.c (print_rtx): Print value uid.
13907 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
13909 (dv_uid): New function, sort of renamed from...
13910 (dv_htab_hash): ... this, reimplemented in terms of it and...
13911 (dv_uid2hash): ... this. New.
13912 (variable_htab_eq): Drop excess assertions.
13913 (tie_break_pointers): Removed.
13914 (canon_value_cmp): Compare uids.
13915 (variable_post_merge_New_vals): Print uids.
13916 (vt_add_function_parameters): Adjust.
13917 (vt_initialize): Reset table. Adjust.
13919 2010-02-03 Richard Guenther <rguenther@suse.de>
13921 PR tree-optimization/42944
13922 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
13923 (call_may_clobber_ref_p_1): Likewise. Properly handle
13924 malloc and calloc clobbering errno.
13926 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
13928 * doc/invoke.texi: Fix name of sched1 dump.
13930 * opts.c (decode_options): Set flag_tree_switch_conversion
13931 only conditionally on optimize >= 2.
13933 * gcse.c: Assorted comment fixes in pass description.
13935 2010-02-03 Anthony Green <green@moxielogic.com>
13937 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
13938 nop padding in order to maintain alignment of storage location of
13939 target function address.
13940 (moxie_trampoline_init): Store target function address at newly
13942 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
13944 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
13946 2010-02-03 Richard Guenther <rguenther@suse.de>
13948 PR middle-end/42927
13949 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
13951 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13953 * config.gcc: Reenable check for obsolete targets.
13954 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
13955 mips-sgi-irix6.[0-4]*.
13957 2010-02-02 Nick Clifton <nickc@redhat.com>
13959 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
13960 constant size of 4 as being the same as 0.
13961 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
13962 can take values in the range 0..4.
13964 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
13967 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
13968 as _darwin10_Unwind_FindEnclosingFunction().
13969 * libgcc-libsystem.ver: New.
13971 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
13974 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
13975 implicitly set registers.
13977 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
13979 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
13980 (arm_override_options): Allow automatic selection of the thread
13981 pointer register if thumb2.
13982 (legitimize_pic_address): Improve code sequences for Thumb2.
13983 (arm_call_tls_get_addr): Likewise.
13984 (legitimize_tls_address): Likewise.
13985 * arm.md (pic_load_addr_arm): Delete. Replace with ...
13986 (pic_load_addr_32bit): ... this. New named pattern.
13987 * thumb2.md (pic_load_addr_thumb2): Delete.
13988 (pic_load_dot_plus_four): Delete.
13989 (tls_load_dot_plus_four): New named pattern.
13991 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13994 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
13995 Document fix for TLS bug.
13997 2010-01-31 Richard Guenther <rguenther@suse.de>
13999 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14000 conservatively correct.
14002 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14006 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14008 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14010 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14012 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14014 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14016 * config.gcc: Adjust order of makefile fragments for mingw targets.
14018 2010-01-31 Richard Guenther <rguenther@suse.de>
14020 PR middle-end/42898
14021 * gimplify.c (gimplify_init_constructor): For volatile LHS
14022 initialize a temporary.
14024 2010-01-31 Matthias Klose <doko@ubuntu.com>
14026 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14028 * configure: Regenerate.
14030 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14032 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14033 the same alias set and their sizes different constantness.
14034 (aliasing_component_refs_p): Revert 2009-10-24 change.
14036 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14038 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14041 2010-01-29 Richard Guenther <rguenther@suse.de>
14043 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14044 Assert we successfully updated the call.
14046 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14048 PR rtl-optimization/42889
14049 * df.h (df_set_bb_dirty_nonlr): New prototype.
14050 * df-core.c (df_set_bb_dirty_nonlr): New function.
14051 * df-scan.c (df_insn_rescan): Call it instead of
14052 df_set_bb_dirty for DEBUG_INSNs.
14054 2010-01-29 Richard Guenther <rguenther@suse.de>
14056 PR middle-end/37448
14057 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14058 quadratic behavior in most cases.
14060 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14063 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14064 in the call to gen_x86_movsicc_0_m1.
14066 2010-01-28 Richard Guenther <rguenther@suse.de>
14068 PR tree-optimization/42871
14069 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14071 2010-01-28 Richard Guenther <rguenther@suse.de>
14073 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14074 into call arguments.
14076 2010-01-28 Richard Guenther <rguenther@suse.de>
14078 PR middle-end/42883
14079 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14080 the forwarder if the destination is an EH landing pad.
14082 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14084 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14085 block list passed to gimple_duplicate_sese_tail.
14086 (parallelize_loops): Avoid parallelization when the function
14087 has_nonlocal_label.
14088 Avoid parallelization when the preheader is IRREDUCIBLE.
14089 Try to optimize when estimated_loop_iterations_int is unresolved.
14090 Add the loop's location to the dump file.
14091 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14092 (gimple_duplicate_sese_tail): Remove the check for the latch.
14093 Redirect nexits to the exit block.
14094 Remove handling of the incoming edges to the latch.
14095 Redirect the backedge from the copied latch to the exit bb.
14097 2010-01-28 Michael Matz <matz@suse.de>
14100 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14101 Wrap force_reg into a sequence, emit it before user.
14103 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14105 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14107 (arm_legacy_rev): Likewise.
14108 (thumb_legacy_rev): Likewise.
14110 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14112 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14113 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14114 on MEM's address failed, try avoid_constant_pool_reference and
14115 recurse if it returned something different.
14116 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14117 address, try avoid_constant_pool_reference and recurse if it
14118 returned something different.
14119 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14120 address and avoid_constant_pool_reference returned something
14121 different, don't set have_address.
14123 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14126 * var-tracking.c (val_store): Add modified argument, obey it.
14128 (count_uses): Move down logging of main.
14129 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14130 don't need resolution.
14131 (emit_notes_in_bb): Likewise.
14133 2010-01-27 Richard Guenther <rguenther@suse.de>
14135 PR middle-end/42878
14136 * tree-inline.c (remap_decl): Delay remapping of SSA name
14137 default definitions until we need them.
14139 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14141 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14142 (rs6000_delegitimize_address): New function.
14144 * config/s390/s390.c (s390_delegitimize_address): Call
14145 delegitimize_mem_from_attrs.
14147 PR middle-end/42874
14148 * tree-inline.c (cannot_copy_type_1): Removed.
14149 (copy_forbidden): Don't forbid copying of functions containing
14150 records/unions with variable length fields.
14152 2010-01-27 Christian Bruel <christian.bruel@st.com>
14156 * config/sh/sh.c (find_barrier): Increase length for non delayed
14157 conditional branches.
14159 2010-01-27 Matthias Klose <doko@ubuntu.com>
14161 * configure.ac (gnu-unique-object): Fix ldd version check.
14162 * configure: Regenerate.
14164 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14166 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14168 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14169 Test for HAVE_GNU_AS value.
14171 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14173 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14174 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14175 INT64_TYPE): Define.
14176 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14177 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14178 INT_LEAST64_TYPE): Define.
14179 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14180 UINT_LEAST64_TYPE): Define.
14181 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14182 INT_FAST64_TYPE): Define.
14183 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14184 UINT_FAST64_TYPE): Define.
14185 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14186 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14187 (SIG_ATOMIC_TYPE): Define.
14189 2010-01-26 Richard Guenther <rguenther@suse.de>
14191 * df-scan.c (df_scan_set_bb_info): Remove assert.
14192 (df_insn_rescan_debug_internal): Merge asserts.
14193 (df_install_ref): Likewise.
14194 (df_mark_reg): Use bitmap_set_range.
14195 (df_hard_reg_used_p): Remove assert.
14196 (df_hard_reg_used_count): Likewise.
14198 2010-01-26 Richard Guenther <rguenther@suse.de>
14200 PR rtl-optimization/42685
14201 * web.c (web_main): Ignore DEBUG_INSNs.
14203 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14205 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14207 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14208 Fix types of fndecl and arglist parameters.
14210 2010-01-26 Richard Guenther <rguenther@suse.de>
14212 PR middle-end/42806
14213 * tree-eh.c (unsplit_eh): Skip debug insns.
14215 2010-01-26 Richard Guenther <rguenther@suse.de>
14217 PR tree-optimization/42250
14218 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14220 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14223 * omp-low.c (expand_omp_sections): Only use single_pred if
14224 l2_bb is single_pred_p.
14226 2010-01-25 Christian Bruel <christian.bruel@st.com>
14229 * config/sh/sh.c (find_barrier): Increase length for non delayed
14230 conditional branches.
14231 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14233 2010-01-24 David S. Miller <davem@davemloft.net>
14235 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14236 define if not using GAS.
14237 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14238 Likewise. Delete SECTION_MERGE code, which is only applicable
14241 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14244 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14245 mangling of va_list in system headers.
14247 2010-01-23 Toon Moene <toon@moene.org>
14249 * tree-predcom.c (combine_chains): Return NULL, not false.
14251 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14253 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14254 initialization of variable res to agree with return type.
14256 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14258 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14259 * tree-sra.c: Add include of expr.h.
14261 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14263 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14264 insert the debug stmt on the single non-EH edge from the stmt.
14266 2010-01-22 Richard Henderson <rth@redhat.com>
14269 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14270 the RHS until after generate_subtree_copies has insertted its
14271 code before the current statement.
14273 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14275 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14277 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14279 2010-01-21 Martin Jambor <mjambor@suse.cz>
14281 PR tree-optimization/42585
14282 * tree-sra.c (struct access): New field grp_total_scalarization.
14283 (dump_access): Dump the new field.
14284 (should_scalarize_away_bitmap): New variable.
14285 (cannot_scalarize_away_bitmap): Likewise.
14286 (sra_initialize): Allocate new bitmaps.
14287 (sra_deinitialize): Free new bitmaps.
14288 (create_access_1): New function.
14289 (create_access): Parts moved to create_access_1.
14290 (type_consists_of_records_p): New function.
14291 (completely_scalarize_record): Likewise.
14292 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14293 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14294 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14296 (analyze_all_variable_accesses): Completely scalarize small eligible
14299 2010-01-21 Martin Jambor <mjambor@suse.cz>
14301 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14303 2010-01-21 Andrew Haley <aph@redhat.com>
14305 * gcc.c (process_command): Move lang_specific_driver before
14306 setting cc_libexec_prefix.
14308 2010-01-21 Richard Guenther <rguenther@suse.de>
14310 PR middle-end/19988
14311 * fold-const.c (negate_expr_p): Pretend only negative
14312 real constants are easily negatable.
14314 2010-01-20 Janis Johnson <janis187@us.ibm.com>
14315 Jason Merrill <jason@redhat.com>
14317 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14318 (TYPE_TRANSPARENT_AGGR): this, for union and record.
14319 * calls.c (initialize argument_information): Handle it.
14320 * c-common.c (handle_transparent_union_attribute): Use new name.
14321 * c-decl.c (finish_struct): Ditto.
14322 * c-typeck.c (type_lists_compatible_p): Ditto.
14323 (convert_for_assignment): Use new name and also handle record.
14324 * function.c (aggregate_value_p): Handle it.
14325 (pass_by_reference): Ditto.
14326 (assign_parm_data_types): Ditto.
14327 * print-tree.c (print_node): Ditto.
14328 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14329 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14330 * tree.c (first_field): New fn.
14332 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
14335 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14336 even when linking statically, for now.
14338 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14341 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14342 without a cselib val.
14343 (count_uses): Accept MO_VAL_SET with no val on stores.
14344 (add_stores): Likewise.
14346 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14348 * var-tracking.c (check_value_val): Add a compile time assertion.
14349 (dv_is_decl_p): Simplify.
14350 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14351 gcc_assert if ENABLE_CHECKING.
14353 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14356 * var-tracking.c: Include tree-flow.h.
14357 (mem_dies_at_call): New.
14358 (dataflow_set_preserve_mem_locs): Use it.
14359 (dataflow_set_remove_mem_locs): Likewise.
14360 (dump_var): Renamed from dump_variable. Adjust all callers.
14361 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
14362 * Makefile.in (var-tracking.o): Adjust deps.
14364 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
14366 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14368 2010-01-20 Richard Guenther <rguenther@suse.de>
14370 PR tree-optimization/42717
14371 * tree-ssa-dce.c (get_live_post_dom): Remove.
14372 (forward_edge_to_pdom): Take an arbitrary edge to copy
14373 degenerate PHI args from.
14374 (remove_dead_stmt): Use the first post-dominator even if it
14375 does not contain live statements as redirection destination.
14377 2010-01-20 Richard Guenther <rguenther@suse.de>
14379 * tree-inline.c (estimate_num_insns): Handle EH builtins.
14381 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14383 * sel-sched.c (create_speculation_check): Remove set but not used
14385 (try_transformation_cache): Remove set but not used variable ds.
14386 (calculate_privileged_insns): Remove set but not used variables
14387 cur_insn and min_spec_insn.
14388 (find_best_expr): Remove set but not used variable avail_n.
14389 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14391 * cgraphunit.c (assemble_thunk): Remove set but not used variable
14393 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14394 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14395 new_scop_exit_edge.
14397 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
14400 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14401 cpu types. Add support for *-sse3 cpu types.
14402 (x86_64-*-*): Ditto.
14404 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14406 PR middle-end/42803
14407 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14408 argument, call initializer_constant_valid_p_1 instead of
14409 initializer_constant_valid_p, pass CACHE to it, return NULL
14410 immediately if first call returns NULL.
14411 (initializer_constant_valid_p_1): New function.
14412 (initializer_constant_valid_p): Use it.
14414 2010-01-20 Thomas Quinot <quinot@adacore.com>
14416 * tree.def (PLACEHOLDER_EXPR): Fix comment.
14418 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14420 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14421 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14422 (loc_list_from_tree): Don't handle unsigned division. Handle
14423 signed modulo using DW_OP_{over,over,div,mul,minus}.
14424 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14425 modulo instead of signed.
14427 2010-01-20 DJ Delorie <dj@redhat.com>
14429 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14431 (h8300_emit_stack_adjustment): Propogate it.
14433 (h8300_expand_prologue): Likewise.
14434 (h8300_expand_epilogue): Likewise.
14436 2010-01-19 Michael Matz <matz@suse.de>
14438 PR tree-optimization/41783
14439 * tree-data-ref.c (toplevel): Include flags.h.
14440 (dump_data_dependence_relation): Also dump the inputs if the
14441 result will be unknown.
14442 (split_constant_offset_1): Look through some conversions.
14443 * tree-predcom.c (determine_roots_comp): Restart a new chain if
14444 the offset from last element is too large.
14445 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
14446 (reassociate_to_the_same_stmt): Handle vector registers.
14447 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
14448 (e.g. conversions).
14449 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
14450 wide_prolog_niters argument, emit widening instructions.
14451 (vect_do_peeling_for_alignment): Adjust caller, use widened
14452 variant of the iteration cound.
14453 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
14455 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14458 * config/arm/neon-testgen.m (emit_automatics): New parameter
14459 features. Adjust for Fixed_return_reg feature.
14460 (test_intrinsic): Call emit_automatics with new feature.
14461 * config/arm/neon.ml: Update copyright years.
14462 (features): New Fixed_return_reg feature.
14463 (ops): Update feature for Vget_low.
14465 2010-01-19 Jakub Jelinek <jakub@redhat.com>
14467 PR tree-optimization/42719
14468 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
14472 * fwprop.c (all_uses_available_at): Return false if def_set dest
14473 is a REG that is used in def_insn.
14475 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
14477 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
14479 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
14480 Add argument names.
14482 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
14484 * target.h (struct gcc_target) <secondary_reload>: Change type
14485 of last argument to secondary_reload_info *.
14487 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
14490 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
14491 memory references with unaligned offsets. Remove CQImode handling.
14492 (unaligned_memory_operand): Return 1 for memory references with
14493 unaligned offsets. Remove CQImode handling.
14495 2010-01-18 Richard Guenther <rguenther@suse.de>
14497 PR middle-end/39954
14498 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
14501 2010-01-18 Richard Guenther <rguenther@suse.de>
14503 PR tree-optimization/42781
14504 * tree-ssa-structalias.c (find_what_var_points_to): Skip
14505 restrict processing only if the original variable was artificial.
14507 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
14509 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
14510 find number of popped argument bytes.
14512 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
14513 Fix the text that describes the return value for invalid insns.
14515 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
14517 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
14518 Clarify what 'cost of the -dependence' is. Fix quoting.
14520 * toplev.c (default_get_pch_validity): Rename argument to "sz".
14521 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
14523 2010-01-17 Jakub Jelinek <jakub@redhat.com>
14525 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14526 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
14528 2010-01-17 Richard Guenther <rguenther@suse.de>
14530 PR middle-end/42248
14531 * function.c (split_complex_args): Take a VEC to modify.
14532 (assign_parms_augmented_arg_list): Build a VEC instead of
14533 a chain of PARM_DECLs.
14534 (assign_parms_unsplit_complex): Take a VEC of arguments.
14535 Do not fixup unmodified parms.
14536 (assign_parms): Deal with the VEC.
14537 (gimplify_parameters): Likewise.
14539 2010-01-17 Richard Guenther <rguenther@suse.de>
14541 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
14542 node existence check.
14543 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
14544 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
14545 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14546 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
14547 (gimple_execute_on_growing_pred): Likewise.
14549 2010-01-17 Richard Guenther <rguenther@suse.de>
14551 PR tree-optimization/42773
14552 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
14553 (compute_antic_aux): Likewise.
14554 (compute_partial_antic_aux): Likewise.
14556 2010-01-17 Jie Zhang <jie.zhang@analog.com>
14559 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
14562 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
14564 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
14567 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
14568 Fix markup for strict argument.
14570 (TARGET_SCHED_REORDER2): Fix argument types.
14572 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
14573 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
14575 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
14576 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
14578 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
14581 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
14582 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
14583 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
14584 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
14585 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
14587 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
14589 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
14591 (TARGET_ASM_RELOC_RW_MASK): Add return type.
14592 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
14594 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
14596 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
14599 (TARGET_ASM_NAMED_SECTION): Fix argument list.
14601 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
14602 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
14604 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
14606 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
14608 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
14609 referring to it. Fix language.
14611 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
14613 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
14615 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
14617 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
14619 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
14620 '@var{stream}. Remove stray 'and'.
14622 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
14624 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
14626 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
14628 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
14629 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
14631 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
14632 Fix description of return value.
14633 Rename argument "sz" to "len."
14635 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
14636 Clarify meaning of 'true' return value.
14638 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
14640 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
14641 rep_mode versus mode_rep.
14643 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
14645 (TARGET_BUILTIN_DECL): Fix name.
14647 (TARGET_COMMUTATIVE_P): Fix type of first argument.
14649 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
14651 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
14653 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
14655 (TARGET_RELAXED_ORDERING): Use @deftypevr.
14657 (TARGET_GET_DRAP_RTX): Note that this is a hook.
14660 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
14661 Rename argument tm_fn to md_fn.
14663 (TARGET_OPTION_PRINT): Fix argument list.
14665 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
14668 * config/i386/i386.c (ix86_fixup_binary_operands):
14669 Revert FMA4 fixup of operands.
14671 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14674 * Makefile.in (write_entries_to_file, install-plugin):
14675 Use \012 instead of \n with tr.
14677 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
14679 * configure.ac (HAVE_AS_REF): New C macro.
14680 * configure: Regenerate.
14681 * config.in: Likewise.
14682 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
14684 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
14687 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
14689 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
14691 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
14693 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
14695 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
14697 (TARGET_IN_SMALL_DATA_P): Fix argument type.
14699 (TARGET_BINDS_LOCAL_P): Fix argument type.
14701 (TARGET_ASM_FILE_END): Use prototype.
14703 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
14705 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
14707 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
14709 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
14711 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
14712 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
14714 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
14715 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
14717 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
14718 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
14719 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
14720 (TARGET_ADDR_SPACE_CONVERT): Likewise.
14722 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
14724 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
14726 (TARGET_INIT_BUILTINS): Use prototype.
14728 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
14729 Put 'const char *' in braces. Fix parameter types.
14730 (TARGET_INVALID_CONVERSION): Fix parameter types.
14731 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
14732 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
14734 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
14737 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
14739 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
14741 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
14743 * doc/tm.texi (TARGET_HELP): Fix return type.
14745 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
14746 in braces. Fix argument types.
14748 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
14750 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
14752 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
14754 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
14755 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
14757 (TARGET_MANGLE_TYPE): Fix argument types.
14759 (TARGET_IRA_COVER_CLASSES): Use prototype.
14761 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
14763 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
14765 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
14767 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
14769 (TARGET_CALLEE_COPIES): Fix argument types.
14771 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
14773 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
14775 (TARGET_FUNCTION_VALUE): Fix argument types.
14777 (TARGET_RETURN_IN_MSB): Fix argument type.
14779 (TARGET_RETURN_IN_MEMORY): Fix argument types.
14781 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
14783 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
14785 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
14786 agree with return type.
14788 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
14790 2010-01-15 Jing Yu <jingyu@google.com>
14792 PR rtl-optimization/42691
14793 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
14794 a pseudo to a constant and are merged, and adjust comments.
14796 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
14798 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
14800 2010-01-15 Richard Guenther <rguenther@suse.de>
14802 PR middle-end/42739
14803 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
14804 labels of computed or non-local gotos to the destination.
14805 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
14806 landing pad label is the first label.
14808 2010-01-15 Richard Guenther <rguenther@suse.de>
14810 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
14812 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14815 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
14816 to allow generation of the xssqrtdp instruction on power7.
14817 (sqrtdf2_fpr): Ditto.
14819 2010-01-14 Jakub Jelinek <jakub@redhat.com>
14821 PR middle-end/42674
14822 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
14823 functions with noreturn attribute.
14826 * varasm.c (declare_weak): Add weak attribute to decl if it
14827 doesn't have one already.
14828 (assemble_external): Only add decls to weak_decls if they also
14829 have weak attribute.
14831 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
14833 * var-tracking.c (var_reg_delete): Don't delete the association
14834 between REGs and values or one-part variables if the register
14837 2010-01-14 Jakub Jelinek <jakub@redhat.com>
14840 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
14841 because its first operand is a non-localized variable.
14843 2010-01-14 Martin Jambor <mjambor@suse.cz>
14845 PR tree-optimization/42706
14846 * tree-sra.c (encountered_recursive_call): New variable.
14847 (encountered_unchangable_recursive_call): Likewise.
14848 (sra_initialize): Initialize both new variables.
14849 (callsite_has_enough_arguments_p): New function.
14850 (scan_function): Call decl and flags check only for IPA-SRA, check
14851 whether there is a recursive call and whether it has enough arguments.
14852 (all_callers_have_enough_arguments_p): New function.
14853 (convert_callers): Look for recursive calls only when
14854 encountered_recursive_call is set.
14855 (ipa_early_sra): Bail out either if
14856 !all_callers_have_enough_arguments_p or
14857 encountered_unchangable_recursive_call.
14859 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14861 * sel-sched.c: Add 2010 to copyright years.
14862 * sel-sched-ir.c: Likewise.
14863 * sel-sched-ir.h: Likewise.
14865 2010-01-14 Martin Jambor <mjambor@suse.cz>
14867 PR tree-optimization/42714
14868 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
14869 constructors specially.
14871 2010-01-14 Andi Kleen <ak@linux.intel.com>
14873 * config/i386/drivers-i386.c (detect_caches_intel):
14874 Add l2sizekb parameter and fill in.
14875 (host_detect_local_cpu): Add l2sizekb, fill in.
14876 Add Atom small cache heuristic.
14878 2010-01-14 Andi Kleen <ak@linux.intel.com>
14880 * config/i386/drivers-i386.c (detect_caches_cpuid4):
14881 Add level3 parameter and fill in.
14882 (detect_caches_intel): Handle level3 cache.
14884 2010-01-14 Andi Kleen <ak@linux.intel.com>
14886 * config/i386/drivers-i386.c (host_detect_local_cpu):
14887 Fix core duo detection.
14889 2010-01-14 Andi Kleen <ak@linux.intel.com>
14891 * config/i386/drivers-i386.c (host_detect_local_cpu):
14892 Fix Atom detection.
14894 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14896 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
14897 (rs6000_variable_issue_1): this. Use...
14898 (rs6000_variable_issue): here. Reimplement. Print debug info.
14900 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14902 * sel-sched-ir.c (sel_restore_other_notes): Rename to
14903 sel_restore_notes. Update all callers. Call reemit_notes
14906 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14908 PR rtl-optimization/42246
14909 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
14912 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14914 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
14915 all successors is the same as number of successors in current region.
14917 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14919 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
14920 to rename is not separable. Otherwise check that its LHS is not NULL.
14922 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14924 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
14926 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14928 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
14929 available registers when failed to discover LHS register class.
14930 Fix indentation. Update comment.
14932 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14933 Alexander Monakov <amonakov@ispras.ru>
14935 PR rtl-optimization/42389
14936 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
14938 (advance_state_on_fence): Likewise.
14939 (sel_target_adjust_priority): Print debug output only when
14940 sched_verbose >= 4, not 2.
14941 (get_expr_cost): Do not issue all unique insns on the next cycle.
14942 (fill_insns): Initialize can_issue_more from the value saved
14944 * sel-sched-ir.c (flist_add): New parameter issue_more.
14945 Init FENCE_ISSUE_MORE with it.
14946 (merge_fences): Likewise.
14947 (init_fences): Update call to flist_add.
14948 (add_to_fences, add_clean_fence_to_fences)
14949 (add_dirty_fence_to_fences): Likewise.
14950 (move_fence_to_fences): Update call to merge_fences.
14951 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
14953 * sel-sched-ir.h (struct _fence): New field issue_more.
14954 (FENCE_ISSUE_MORE): New accessor macro.
14956 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14958 PR rtl-optimization/42388
14959 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
14960 that have no predecessors nor successors. Do not call move_bb_info
14961 for empty blocks outside of current region.
14963 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14965 PR rtl-optimization/42294
14966 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
14967 * sel-sched.c (move_exprs_to_boundary): Transitively add all
14968 originators' originators.
14970 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
14972 PR rtl-optimization/39453
14973 PR rtl-optimization/42246
14974 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
14976 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
14978 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14979 Alexander Monakov <amonakov@ispras.ru>
14981 PR middle-end/42245
14982 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
14983 (maybe_tidy_empty_bb): ... here. Make static. Add new
14984 argument. Update all callers.
14985 (tidy_control_flow): ... and here. Recompute topological order
14986 of basic blocks in region if necessary.
14987 (sel_redirect_edge_and_branch): Change return type. Return true
14988 if topological order might have been invalidated.
14989 (purge_empty_blocks): Export and move from...
14990 * sel-sched.c (purge_empty_blocks): ... here.
14991 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
14992 (maybe_tidy_empty_bb): Delete prototype.
14993 (purge_empty_blocks): Declare.
14995 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
14997 PR rtl-optimization/42249
14998 * sel-sched.c (try_replace_dest_reg): When chosen register
14999 and original register is the same, do not bail out early, but
15000 still check all original insns for validity of replacing destination
15001 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15004 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15007 Port from no-undefined-overflow branch:
15008 2009-03-09 Richard Guenther <rguenther@suse.de>
15010 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15012 2010-01-14 Richard Guenther <rguenther@suse.de>
15015 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15017 2010-01-14 Ira Rosen <irar@il.ibm.com>
15019 PR tree-optimization/42709
15020 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15021 as scalar type in creation of constant vector operand.
15023 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15026 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15027 (check-parallel-%): Match `testsuite' directory component only
15030 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15032 PR translation/39521
15033 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15036 2010-01-13 Richard Guenther <rguenther@suse.de>
15038 PR tree-optimization/42730
15039 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15042 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15045 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15046 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15049 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15051 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15052 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15053 ___umulsi3_highpart.
15055 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15056 rather than schedule_insns if the pass is enabled.
15058 2010-01-13 Martin Jambor <mjambor@suse.cz>
15060 PR tree-optimization/42704
15061 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15064 2010-01-13 Martin Jambor <mjambor@suse.cz>
15066 PR tree-optimization/42703
15067 * tree-sra.c (analyze_access_subtree): Check that we can build a
15068 reference to the original data within the aggregate.
15070 2010-01-13 Richard Guenther <rguenther@suse.de>
15072 PR tree-optimization/42705
15073 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15075 2010-01-13 Richard Guenther <rguenther@suse.de>
15077 PR middle-end/42716
15078 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15080 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15083 * var-tracking.c (values_to_unmark): New variable.
15084 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15085 values_to_unmark vector. Moved body to...
15086 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15087 instead queue it into values_to_unmark vector.
15088 (vt_find_locations): Free values_to_unmark vector.
15090 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15092 * config/s390/s390.c (override_options): Set
15093 default of max-pending-list-length to 256
15095 2010-01-13 Richard Guenther <rguenther@suse.de>
15098 * tree-pass.h (PROP_gimple_lcx): New.
15099 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15100 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15101 before the final cleanup_eh.
15102 (dump_properties): Dump PROP_gimple_lcx.
15103 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15104 (tree_lower_complex_O0): Remove.
15105 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15106 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15107 tree_lower_complex, schedule TODO_update_ssa.
15108 * lto-streamer-out.c (output_function): Stream the functions
15110 * lto-streamer-in.c (input_function): Likewise.
15111 (lto_read_body): Do not override them here.
15113 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15116 * c-typeck.c (build_c_cast): Fold value cast to union type before
15117 wrapping it in a CONSTRUCTOR.
15119 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15121 PR rtl-optimization/42699
15122 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15125 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15127 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15128 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15129 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15130 SUBTARGET_WARN_UNUSED_SPEC): ... here
15131 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15133 2010-01-12 Julian Brown <julian@codesourcery.com>
15135 * config/arm/neon-schedgen.ml (Utils): Don't try to
15136 open missing module.
15137 (find_with_result): New.
15139 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15142 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15143 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15145 PR tree-optimization/42645
15146 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15147 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15148 decl_map, set processing_debug_stmt to -1 and return name without
15151 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15153 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15154 binutils version, and reword target configuration description.
15156 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15158 * config/avr/avr.h (LINKER_NAME): Remove.
15160 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15163 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15164 that support VSX, warn for -mno-altivec if vsx is not disabled,
15167 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15168 Shujing Zhao <pearly.zhao@oracle.com>
15170 PR translation/42469
15171 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15172 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15173 character between option name and help text.
15174 * c.opt (imultilib): Likewise.
15176 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15178 * lto-streamer-out.c (output_unreferenced_globals): Output static
15181 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15183 PR rtl-optimization/42621
15184 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15185 optimizing for size.
15186 (duplicate_computed_gotos): Remove now-redundant check.
15188 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15191 * configure.ac: Save and restore LDFLAGS and LIBS
15192 * configure: Regenerate.
15194 2010-01-10 Richard Guenther <rguenther@suse.de>
15196 PR middle-end/42667
15197 * builtins.c (fold_builtin_strlen): Add type argument and
15198 convert the resulting length to it.
15199 (fold_builtin_1): Adjust.
15201 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15203 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15204 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15206 (num_insns_constant_wide): Adjust for that change.
15208 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15211 * web.c (union_defs): Add used argument, to combine uses of
15212 uninitialized regs.
15213 (entry_register): Adjust type and tests of used argument.
15214 (web_main): Widen used for new use. Pass it to union_defs.
15215 * df.h (union_defs): Adjust prototype.
15217 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15220 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15221 uses in new incoming argument. Free body.
15222 (reset_debug_uses_in_loop): New.
15223 (analyze_insn_to_expand_var): Call the latter if the former found
15224 anything. Fix whitespace. Reject invalid dest overlaps before
15225 going through all insns in the loop.
15227 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15230 * haifa-sched.c (dying_use_p): Debug insns don't count.
15232 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15234 PR middle-end/42363
15235 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15236 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15237 (verify_gimple_call): Reject LHS in noreturn calls.
15239 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15243 * tree-vect-loop-manip.c (adjust_info): New type.
15244 (adjust_vec): New pointer to vector.
15245 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15246 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15247 (slpeel_update_phis_for_duplicate_loop): Use them.
15248 (slpeel_update_phi_nodes_for_guard1): Likewise.
15249 (slpeel_update_phi_nodes_for_guard2): Likewise.
15250 (slpeel_tree_peel_loop_to_edge): Likewise.
15251 (vect_update_ivs_after_vectorizer): Likewise.
15253 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15255 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15256 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15258 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15260 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15261 bogus uninitialized warning.
15263 2010-01-09 Richard Guenther <rguenther@suse.de>
15265 PR middle-end/42512
15266 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15267 the evolution is compatible with the initial condition.
15269 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15271 * gcc.c (process_command): Update copyright notice dates.
15272 * gcov.c (print_version): Likewise.
15273 * gcov-dump.c (print_version): Likewise.
15274 * mips-tfile.c (main): Likewise.
15275 * mips-tdump.c (main): Likewise.
15277 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15280 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15282 (rotlhi3_8): Delete.
15284 (rotlsi3_8): Delete.
15285 (rotlsi3_16): Delete.
15286 (rotlsi3_24): Delete.
15287 (rotl<mode>3): New.
15288 (*rotw<mode>3): New.
15289 (*rotb<mode>3): New.
15290 * config/avr/avr.c (avr_rotate_bytes): New function.
15291 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15293 2010-01-08 Steve Ellcey <sje@cup.hp.com>
15296 * configure.ac: Modify -rdynamic check.
15297 * configure: Regenerate.
15299 2010-01-08 DJ Delorie <dj@redhat.com>
15301 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15302 register popping order.
15304 2010-01-08 Richard Guenther <rguenther@suse.de>
15307 * c.opt (fsigned-char): Also let LTO handle this option.
15308 (funsigned-char): Likewise.
15310 2010-01-07 Richard Guenther <rguenther@suse.de>
15312 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15313 (gimple_op): Likewise.
15314 (gimple_op_ptr): Likewise.
15315 (gimple_assign_set_lhs): Remove gcc_assert.
15316 (gimple_assign_set_rhs1): Likewise.
15317 (gimple_assign_set_rhs2): Likewise.
15318 (gimple_call_set_lhs): Likewise.
15319 (gimple_call_set_fn): Likewise.
15320 (gimple_call_set_fndecl): Likewise.
15321 (gimple_call_fndecl): Likewise.
15322 (gimple_call_return_type): Likewise.
15323 (gimple_call_set_chain): Likewise.
15324 (gimple_call_num_args): Likewise.
15325 (gimple_call_set_arg): Likewise.
15326 (gimple_cond_set_code): Likewise.
15327 (gimple_cond_set_lhs): Likewise.
15328 (gimple_cond_set_rhs): Likewise.
15329 (gimple_cond_set_true_label): Likewise.
15330 (gimple_cond_set_false_label): Likewise.
15331 (gimple_label_set_label): Likewise.
15332 (gimple_goto_set_dest): Likewise.
15333 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15334 (gimple_debug_bind_get_value): Likewise.
15335 (gimple_debug_bind_get_value_ptr): Likewise.
15336 (gimple_debug_bind_set_var): Likewise.
15337 (gimple_debug_bind_set_value): Likewise.
15338 (gimple_debug_bind_reset_value): Likewise.
15339 (gimple_debug_bind_has_value_p): Likewise.
15340 (gimple_return_retval_ptr): Remove gcc_assert.
15341 (gimple_return_retval): Likewise.
15342 (gimple_return_set_retval): Likewise.
15343 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15344 (safe_referenced_var_iterator): Remove.
15345 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15346 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15347 (fill_referenced_var_vec): Remove.
15348 (first_readonly_imm_use): Remove redundant gcc_assert.
15349 (phi_arg_index_from_use): Combine gcc_asserts.
15350 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15351 (first_imm_use_stmt): Remove redundant gcc_assert.
15352 * tree-cfg.c (verify_gimple_call): Verify function and chain
15353 operands. Verify arguments.
15354 (verify_types_in_gimple_stmt): Verify condition code and labels.
15356 2010-01-07 Richard Guenther <rguenther@suse.de>
15358 PR tree-optimization/42641
15359 * sese.c (rename_map_elt_info): Use the SSA name version, do
15362 2010-01-07 Jakub Jelinek <jakub@redhat.com>
15364 PR tree-optimization/42625
15365 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15366 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15368 2010-01-07 Duncan Sands <baldrick@free.fr>
15370 * Makefile.in (PLUGIN_HEADERS): Add version.h.
15372 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
15375 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15376 note itself is not function_invariant_p.
15378 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
15380 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15381 Do not add the DF_NOTE problem.
15382 * store-motion.c (execute_rtl_store_motion): Likewise.
15384 2010-01-07 Martin Jambor <mjambor@suse.cz>
15386 PR tree-optimization/42157
15387 * tree-sra.c (compare_access_positions): Stabilize sort if both
15388 accesses have integer types, return zero immediately if they are the
15391 2010-01-06 Richard Henderson <rth@redhat.com>
15393 PR middle-end/41883
15394 * haifa-sched.c (add_to_note_list): Merge into ...
15395 (concat_note_lists): ... here, and ...
15396 (unlink_other_notes, rm_other_notes): Merge into...
15397 (remove_notes): ... here. Create REG_SAVE_NOTEs for
15398 NOTE_INSN_EPILOGUE_BEG.
15400 2010-01-06 Richard Guenther <rguenther@suse.de>
15402 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15403 not inline regular functions into always-inline functions.
15405 2010-01-06 Nick Clifton <nickc@redhat.com>
15407 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15408 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15410 (OVERRIDE_OPTIONS): Delete.
15411 (OPTIMIZATION_OPTIONS): Define.
15412 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15413 * config/rx/rx.c (rx_handle_option): Issue an error message if
15414 -mcpu=rx200 and -fpu are used together.
15415 (rx_set_optimization_options): New function. Issue an error
15416 message if an optimization attribute attempts to reset the FPU/
15417 math optimization pairing.
15418 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15419 * config/rx/rx.opt: Set the default to 32-bit doubles.
15420 * config/rx/t-rx: Add multilibs for -nofpu option.
15421 * doc/invoke.texi: Update documentation of RX options.
15423 2010-01-06 Richard Guenther <rguenther@suse.de>
15425 * tree-ssa-pre.c (name_to_id): New global.
15426 (alloc_expression_id): Simplify SSA name handling.
15427 (lookup_expression_id): Likewise.
15428 (init_pre): Zero name_to_id.
15429 (fini_pre): Free it.
15431 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
15433 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15435 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
15438 * config/i386/sse.md (smaxv2di3): New.
15439 (umaxv2di3): Likewise.
15440 (sminv2di3): Likewise.
15441 (uminv2di3): Likewise.
15443 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
15446 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
15447 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
15448 (legitimize_tls_address): Likewise.
15449 (sparc_tls_referenced_p): Likewise.
15450 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
15451 and adjust calls to legitimize_pic_address.
15452 (legitimate_constant_p) Use sparc_tls_referenced_p.
15453 (legitimate_pic_operand_p): Likewise.
15454 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
15455 (sparc_tls_symbol_ref_1): Delete.
15456 (sparc_tls_referenced_p): Make static, recognize specific patterns.
15457 (legitimize_tls_address): Make static, handle CONST patterns.
15458 (legitimize_pic_address): Make static, remove unused parameter and
15459 adjust recursive calls.
15460 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
15461 and adjust call to legitimize_pic_address.
15462 (sparc_output_mi_thunk): Likewise.
15464 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
15465 H.J. Lu <hongjiu.lu@intel.com>
15468 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
15469 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
15470 operands to make them signed.
15473 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15476 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15477 GTU to GT for V4SI and V2DI.
15479 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15480 (umin<mode>3): Removed.
15482 (uminv4si3): Likewise.
15484 2010-01-05 Martin Jambor <mjambor@suse.cz>
15486 PR tree-optimization/42462
15487 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
15488 current_function_decl to helper functions and macros.
15490 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15493 * flags.h: Don't include real.h.
15494 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
15495 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
15496 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
15497 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
15498 * dominance.c: Update copyright.
15499 * gimple.c (walk_gimple_op): Remove inline.
15500 * tree-ssa-reassoc.c: Include real.h.
15501 * Makefile.in (FLAGS_H): Remove $(REAL_H).
15502 (tree-ssa-reassoc.o): Depend on $(REAL_H).
15504 2010-01-05 Nick Clifton <nickc@redhat.com>
15506 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
15507 register to push into the stack frame when the accumulator has to
15508 be saved during interrupts.
15510 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
15512 * doc/invoke.texi: Remove the documentation about option
15513 -Wunreachable-code.
15514 * common.opt (Wunreachable-code): Preserved for backward
15516 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
15517 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
15518 the backward compatibility flag section.
15520 2010-01-05 Richard Guenther <rguenther@suse.de>
15522 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
15524 2010-01-05 Jakub Jelinek <jakub@redhat.com>
15527 * cfgexpand.c (expand_one_var): Diagnose too large variables.
15529 PR tree-optimization/42508
15530 * tree-sra.c (convert_callers): Check for recursive call
15531 by comparing cgraph nodes instead of decls.
15532 (modify_function): Call ipa_modify_formal_parameters also
15533 on all same_body aliases.
15535 * cgraphunit.c (cgraph_materialize_all_clones): Compare
15536 cgraph nodes when checking for same_body aliases.
15538 2010-01-05 Richard Guenther <rguenther@suse.de>
15540 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
15541 allocation and lookup.
15542 (get_or_alloc_expr_for_constant): Likewise.
15543 (phi_translate): Sink allocation.
15545 2010-01-04 Richard Guenther <rguenther@suse.de>
15547 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
15548 a new entry only if needed.
15549 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
15550 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
15552 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
15554 (phi_translate): Handle CONSTANTs early.
15556 2010-01-04 Martin Jambor <mjambor@suse.cz>
15558 PR tree-optimization/42398
15559 * tree-sra.c (struct access): Removed flag grp_different_types.
15560 (dump_access): Do not dump the removed flag.
15561 (sort_and_splice_var_accesses): Do not set the removed flag.
15562 (sra_modify_expr): Check for type compatibility directly.
15564 2010-01-04 Martin Jambor <mjambor@suse.cz>
15566 PR tree-optimization/42366
15567 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
15568 edges with variable number of parameters.
15569 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
15570 flag instead of asserting it.
15571 (ipa_read_node_info): Read uses_analysis_done flag.
15573 2010-01-04 Richard Guenther <rguenther@suse.de>
15575 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
15576 iterative_hash_* as intended.
15577 (vn_reference_compute_hash): Likewise. Simplify hashing
15579 (vn_reference_lookup_2): Likewise.
15580 (vn_nary_op_compute_hash): Likewise.
15581 (vn_phi_compute_hash): Likewise.
15582 (expressions_equal_p): Remove strange code.
15583 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
15584 (pre_expr_hash): Likewise. Simplify hashing SSA names.
15585 (bitmap_insert_into_set_1): Take value-id as parameter.
15586 (add_to_value): Pass it.
15587 (bitmap_insert_into_set): Likewise.
15588 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
15590 2010-01-04 Jakub Jelinek <jakub@redhat.com>
15593 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
15594 (do_self_spec): For switches with SWITCH_IGNORE set set also
15595 SWITCH_IGNORE_PERMANENTLY.
15596 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
15599 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
15601 * lto-streamer-out.c (output_unreferenced_globals): Output the full
15602 tree of an unreferenced global var.
15604 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15607 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15608 GTU to GT for V4SI and V2DI.
15610 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15611 (umin<mode>3): Removed.
15613 (uminv4si3): Likewise.
15615 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15618 * collect2.c (main): Turn on trace in collect2 if -v is passed
15621 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
15623 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
15624 description of expression operand.
15626 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
15628 * configure.ac: Add install-html to target_list for Make-hooks.
15629 * configure: Regenerate.
15630 * fortran/Make-lang.in (F95_HTMLFILES): New.
15631 (fortran.html): Use it.
15632 (fortran.install-html): New.
15633 * Makefile.in (install-html): Add lang.install-html.
15634 * java/Make-lang.in (JAVA_HTMLFILES): New.
15635 (java.html): Use it.
15636 (java.install-html): New.
15637 * objc/Make-lang.in (objc.install-html): New.
15638 * objcp/Make-lang.in (obj-c++.install-html): New.
15639 * cp/Make-lang.in (c++.install-html): New.
15640 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
15641 * lto/Make-lang.in (lto.install-html): New.
15643 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
15646 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
15648 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
15650 PR rtl-optimization/41862
15651 * store-motion.c (store_killed_in_insn, compute_store_table,
15652 remove_reachable_equiv_notes, replace_store_insn,
15653 build_store_vectors): Ignore all DEBUG_INSNs.
15655 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
15658 * common.opt: Add dumpdir.
15660 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
15662 (option_map): Add --dumpdir.
15664 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
15666 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
15668 * opts.c (decode_options): Try dump_dir_name first if
15669 dump_base_name isn't an absolute path.
15670 (common_handle_option): Handle OPT_dumpdir.
15672 * toplev.c (dump_dir_name): New.
15673 (print_switch_values): Also ignore -dumpdir.
15675 * toplev.h (dump_dir_name): New.
15677 2010-01-03 Richard Guenther <rguenther@suse.de>
15679 PR tree-optimization/42589
15680 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
15681 double-word expansion of bswap32.
15683 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
15685 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
15686 with BLOCK_FOR_INSN.
15687 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
15688 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
15689 noce_process_if_block): Likewise.
15690 * gcse.c (compute_local_properties, insert_expr_in_table,
15691 insert_set_in_table, canon_list_insert, find_avail_set,
15692 pre_insert_copy_insn): Likewise.
15694 * basic-block.h (BLOCK_NUM): Move from here...
15695 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
15697 2010-01-03 Richard Guenther <rguenther@suse.de>
15699 PR tree-optimization/42438
15700 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
15701 contains_may_not_return_call flag.
15702 (BB_MAY_NOTRETURN): New.
15703 (valid_in_sets): Trapping nary operations are not valid
15704 in blocks that may not return.
15705 (insert_into_preds_of_block): Remove check for trapping expressions.
15706 (compute_avail): Compute also BB_MAY_NOTRETURN.
15708 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
15710 * doc/invoke.texi: Add 2010 to copyright years.
15712 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
15714 * config/sparc/sparc.c: Fix formatting nits.
15716 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15717 Alexander Monakov <amonakov@ispras.ru>
15719 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
15721 2010-01-02 Richard Guenther <rguenther@suse.de>
15723 PR middle-end/42577
15724 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
15725 (simplify_switch_using_ranges): Mark to be removed edges
15728 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15730 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
15732 * collect2.c (scan_libraries): Add missing argument in call to
15735 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
15738 * config/alpha/predicates.md (aligned_memory_operand): Return false
15740 (unaligned_memory_operand): Return true for CQImode.
15741 * config/alpha/alpha.c (get_aligned_mem): Assert that location
15742 doesn not cross aligned SImode word boundary.
15744 2010-01-02 Anatoly Sokolov <aesok@post.ru>
15746 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
15748 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
15749 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
15751 2010-01-02 Richard Guenther <rguenther@suse.de>
15754 * toplev.c (compile_file): Emit LTO marker properly. Change
15755 it to __gnu_lto_v1.
15756 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
15758 2010-01-01 Richard Guenther <rguenther@suse.de>
15761 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
15763 2010-01-01 Richard Guenther <rguenther@suse.de>
15766 * c-decl.c (grokdeclarator): For zero-size arrays force
15767 structural equality checks as layout_type does.
15769 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
15771 * builtins.c: Update copyright to 2010.
15773 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
15776 * lto-streamer-out.c (produce_asm): Revert the last change.
15777 (copy_function): Likewise.
15779 * lto-streamer.c (lto_get_section_name): Skip any leading
15782 2010-01-01 Richard Guenther <rguenther@suse.de>
15784 PR middle-end/42559
15785 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
15789 Copyright (C) 2010 Free Software Foundation, Inc.
15791 Copying and distribution of this file, with or without modification,
15792 are permitted in any medium without royalty provided the copyright
15793 notice and this notice are preserved.