OSDN Git Service

* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4         new statement and adjust VDEF only if necessary.  Remove superfluous
5         call to maybe_clean_or_replace_eh_stmt.
6         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
7         copy the flags.
8         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
9         * tree-inline.c (copy_bb): ...and not there.
10
11 2010-06-22  Cary Coutant  <ccoutant@google.com>
12
13         * dwarf2out.c (is_nested_in_subprogram): New function.
14         (should_move_die_to_comdat): Use it.
15         (copy_ancestor_tree): Don't mark DIEs here.
16         (copy_decls_walk): Start walk from root of newly-added tree;
17         mark DIEs here instead.
18
19 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20
21         * config/i386/i386.md (unit): Also check sseishft1.
22
23 2010-06-22  Jan Hubicka  <jh@suse.cz>
24
25         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
26         enabled.
27
28 2010-06-22  Jan Hubicka  <jh@suse.cz>
29
30         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
31         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
32         Return true if something changed.
33         * df.h (df_confluence_function_n): Return bool.
34         * df-core.c (df_worklist_propagate_forward,
35         df_worklist_propagate_backward): Track changes and ages.
36         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
37         track ages.
38         * dse.c (dse_confluence_n): Return always true.
39
40 2010-06-22  Jan Hubicka  <jh@suse.cz>
41
42         * bitmap.c (bitmap_clear_bit): Micro optimize.
43
44 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
45
46         * config/i386/i386.md (SWI1248x): New mode iterator.
47         (SWI48x): Ditto.
48         (SWI12): Ditto.
49         (SWI24): Ditto.
50         
51         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
52         SWI1248x mode iterator.
53         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
54         using SWI124 mode iterator.
55         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
56         mode iterator.
57         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
58         *pushdi2_prologue_rex64 using P mode iterator.
59         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
60         using SWI48 mode iterator.
61         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
62         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
63         using SWI1248x mode iterator.
64         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
65         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
66         SWI48 mode iterator.
67         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
68         iterator.
69         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
70         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
71         SWI12 mode iterator.
72         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
73         SWI12 mode iterator.
74         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
75         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
76         SWI24 mode iterator.
77         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
78         SWI48 mode iterator.
79         (mov<mode>_insn_1): New expander.
80         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
81         using SWI48x mode iterator.
82
83         (*movoi_internal_avx): Rename from *movoi_internal.
84         (*movti_internal_rex64): Rename from *movti_rex64.
85         (*movti_internal_sse): Rename from *movti_sse.
86         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
87         (*movdi_internal): Rename from *movdi_2.
88         (*movsi_internal): Rename from *movsi_1.
89         (*movhi_internal): Rename from *movhi_1.
90         (*movqi_internal): Rename from *movqi_1.
91
92         (insv): Update the call to gen_movsi_insv_1 for rename.
93         * config/i386/i386.c (promote_duplicated_reg): Ditto.
94
95 2010-06-22  Jan Hubicka  <jh@suse.cz>
96
97         * passes.c (execute_function_todo): Move call of statistics_fini_pass
98         to ...
99         (execute_todo) ... this one.
100
101 2010-06-22  Alan Modra  <amodra@gmail.com>
102
103         PR target/44364
104         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
105         * caller-save.c (insert_restore, insert_save): Use non-validate
106         form of adjust_address.
107
108 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
109
110         PR target/39690
111         * config/pa/pa.c (override_options): Disable
112         -freorder-blocks-and-partition.
113
114 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
115
116         PR target/44615
117         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
118
119         * config/i386/i386.md (type): Add sseishft1
120
121         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
122         (ppro_insn_load): Likewise.
123         (ppro_insn_store): Likewise.
124         (ppro_insn_both): Likewise.
125
126         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
127         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
128         for type.
129         (*vec_extractv2di_1_avx): Likewise.
130         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
131         type.  Remove atom_unit.
132         (*vec_extractv2di_1_sse2): Likewise.
133
134 2010-06-21  DJ Delorie  <dj@redhat.com>
135
136         * diagnostic.h (diagnostic_classification_change_t): New.
137         (diagnostic_context): Add history and push/pop list.
138         (diagnostic_push_diagnostics): Declare.
139         (diagnostic_pop_diagnostics): Declare.
140         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
141         from pragmas in a history chain instead of the global table.
142         (diagnostic_push_diagnostics): New.
143         (diagnostic_pop_diagnostics): New.
144         (diagnostic_report_diagnostic): Scan history chain to find state
145         of diagnostics as of the diagnostic location.
146         * opts.c (set_option): Pass UNKNOWN_LOCATION to
147         diagnostic_classify_diagnostic.
148         (enable_warning_as_error): Likewise.
149         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
150         use in the history chain.
151         * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
152         allow these pragmas anywhere.
153         * doc/extend.texi: Document pragma GCC diagnostic changes.
154
155 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
156
157         * dwarf2out.c (add_linkage_name): New function.  Don't add
158         anything to DW_TAG_member DIEs.
159         (add_name_and_src_coords_attributes): Use it.
160         (gen_variable_die): Call it for C++ static data members if
161         specification is DW_TAG_member.
162
163         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
164         C++ char16_t and char32_t.
165
166         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
167         * genattrtab.c: Include vecprim.h.
168         (cached_attrs, cached_attr_count, attrs_seen_once,
169         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
170         attrs_cached_after): New variables.
171         (find_attrs_to_cache): New function.
172         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
173         (write_test_expr): Add attrs_cached argument, return it too,
174         attempt to cache non-const attributes used more than once in
175         a single case handling.
176         (write_attr_get): Use find_attrs_to_cache, for caching candidates
177         emit cached_* variables.  Adjust write_attr_set callers.
178         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
179         to find attributes that should be cached in this block.  Adjust
180         write_test_expr callers.
181         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
182         callers.
183         (make_automaton_attrs): Adjust write_test_expr caller.
184
185         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
186         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
187         (make_automaton_attrs): If find_tune_attr returns non-NULL,
188         write separate internal_dfa_insn_code_* and insn_default_latency_*
189         functions for each attribute's value and emit init_sched_attrs
190         function and function pointers.
191         * genattr.c (const_attrs, reservations): New variables.
192         (gen_attr): Add const attributes to const_attrs vector.
193         (check_tune_attr, find_tune_attr): New functions.
194         (main): Add reservations to reservations vector.  If find_tune_attr
195         returns true, add prototype for init_sched_attrs and make
196         internal_dfa_insn_code and insn_default_latency function pointers,
197         otherwise define init_sched_attrs as dummy macro.
198         * cfgexpand.c: Include insn-attr.h.
199         (gimple_expand_cfg): Call init_sched_attrs.
200
201         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
202
203         PR target/44575
204         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
205         va_arg from a set of register save slots into a temporary,
206         if the container is bigger than type size, do the copying
207         using smaller mode or using memcpy.
208
209         PR bootstrap/44426
210         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
211         prototype.
212         (sel_print_to_dot): Remove macro.
213         (sel_print): Likewise.  New prototype.
214         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
215         (sel_print): New function.
216
217 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
218
219         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
220         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
221
222 2010-06-21  Nick Clifton  <nickc@redhat.com>
223
224         * config/rx/rx.h (PTRDIFF_TYPE): Define.
225         (SMALL_REGISTER_CLASS): Define (to zero).
226         (PRINT_OPERAND): Delete.
227         (PRINT_OPERAND_ADDRESS): Delete.
228         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
229         (rx_print_operand_address): Delete prototype.
230         * config/rx/rx.c (rx_print_operand): Make static.
231         Allow %H and %L to handle CONST_DOUBLEs.
232         (rx_print_operand_address): Make static.
233         (rx_gen_move_template): Rename local variable 'template' to
234         out_template.
235         (rx_function_arg): Do not pass unknown sized objects in registers.
236         (TARGET_PRINT_OPERAND): Define.
237         (TARGET_PRINT_OPERAND_ADDRESS): Define.
238
239 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
240
241         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
242
243 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
244
245         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
246         stack-alignment for simple leaf-functions.
247
248 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
249
250         * doc/install.texi: Document bootstrap-lto.
251
252 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
253
254         PR debug/44248
255         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
256         (input_function): Drop them here, if VTA is disabled.
257
258 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
259
260         PR target/44546
261         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
262         New predicate.
263         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
264         ix86_swapped_fp_comparsion_operator instead of
265         ix86_fp_comparison_operator.
266
267         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
268         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
269         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
270         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
271         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
272         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
273
274 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
275
276         PR other/32998
277         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
278         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
279         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
280         (decode_cmdline_option): Update for this return value.  Set
281         orig_option_with_args_text field.  Set arg field for unknown
282         options.  Make static.
283         (decode_cmdline_options_to_array): New.
284         (prune_options): Update handling of find_opt return value.
285         * opts.c (read_cmdline_option): Take decoded option.  Return void.
286         (read_cmdline_options): Take decoded options.
287         (decode_options): Add parameters for decoded options.  Use
288         decode_cmdline_options_to_array.  Use decoded options for -O
289         scan.  Use integral_argument for -O parameters.  Update call to
290         read_cmdline_options.
291         (enable_warning_as_error): Update handling of find_opt return value.
292         * opts.h: Update comment on unknown options.
293         (struct cl_decoded_option): Update comments on opt_index and arg.
294         Add orig_option_with_args_text.
295         (decode_cmdline_option): Remove.
296         (decode_cmdline_options_to_array): Declare.
297         (decode_options): Update prototype.
298         * toplev.c (save_argv): Remove.
299         (save_decoded_options, save_decoded_options_count): New.
300         (read_integral_parameter): Remove.
301         (print_switch_values): Use decoded options.
302         (toplev_main): Don't set save_argv.  Update call to decode_options.
303         * toplev.h (read_integral_parameter): Remove.
304         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
305
306 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
307
308         PR target/44072
309         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
310         immediate.
311         * constraints.md (Pw, Px): New constraints.
312         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
313
314 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
315
316         * config/i386/sse.md (fma4modesuffixf4): Removed.
317         (ssemodesuffixf2s): Likewise.
318         (ssemodesuffixf4): Likewise.
319         (ssemodesuffixf2c): Likewise.
320         (ssescalarmodesuffix2s): Likewise.
321         (avxmodesuffixf2c): Likewise.
322         (ssemodesuffix): New.
323         (ssescalarmodesuffix): Likewise.
324         Update patterns with ssemodesuffix and ssescalarmodesuffix.
325
326 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
327
328         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
329
330 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
331
332         * stor-layout.c (debug_rli): Remove unused local variables.
333
334 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
335
336         PR rtl-optimization/40900
337         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
338         original expression for later reuse.
339         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
340         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
341
342 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
343
344         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
345         double_int_fits_in_uhwi_p): Implement as static inline.
346         (double_int_xor): New inline function.
347         (double_int_lrotate, double_int_rrotate, double_int_max,
348         double_int_umax, double_int_smax, double_int_min, double_int_umin,
349         double_int_smin): Declare.
350         (lrotate_double, rrotate_double): Remove declaration.
351         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
352         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
353         (double_int_lrotate, double_int_rrotate, double_int_max,
354         double_int_umax, double_int_smax, double_int_min, double_int_umin,
355         double_int_smin): New function.
356         * fold-const.c (int_const_binop): Clean up, use double_int_*
357         functions.
358         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
359         double_int_* and immed_double_int_const functions.
360
361 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
362
363         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
364         * function.c (types_used_by_cur_var_decl): Likewise.
365         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
366
367 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
368
369         * tree.h (record_layout_info): Change type of pending_statics field
370         to a VEC.
371         * stor-layout.c (start_record_layout): Store NULL into
372         pending_statics.
373         (debug_rli): Call debug_vec_tree instead of debug_tree.
374         (place_field): Likewise.
375         (finish_record_layout): Likewise.
376
377 2010-06-18  Alan Modra  <amodra@gmail.com>
378
379         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
380
381 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
382
383         PR target/43740
384         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
385         for SET source operand from SET destination operand.
386
387 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
388
389         PR rtl-optimization/39871
390         * reload1.c (init_eliminable_invariants): For flag_pic, disable
391         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
392         (function_invariant_p): Rule out a plus of frame or arg pointer with
393         a SYMBOL_REF.
394         * ira.c (find_reg_equiv_invariant_const): Likewise.
395
396 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
397
398         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
399         print_operand_address and puts to output the operand for CONST.
400
401 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
402
403         PR debug/44572
404         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
405         hook.
406
407 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
408
409         * v850-protos.h (print_operand): Delete.
410         (print_operand_address): Delete.
411         * v850.h (PRINT_OPERAND): Delete.
412         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
413         (PRINT_OPERAND_ADDRESS): Delete.
414         * v850.c (print_operand_address): Rename to...
415         (v850_print_operand_address): ...this.  Make static. Call
416         v850_print_operand.
417         (print_operand): Rename to...
418         (v850_print_operand): ...this.  Make static.  Call
419         v850_print_operand_address.
420         (v850_print_operand_punct_valid_p): New function.
421         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
422         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
423
424 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
425
426         * config/sh/sh-protos.h (print_operand): Delete.
427         (print_operand_address): Delete.
428         * config/sh/sh.h (PRINT_OPERAND): Delete.
429         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
430         (PRINT_OPERAND_ADDRESS): Delete.
431         * config/sh/sh.c (sh_print_operand_address): Make static.
432         (sh_print_operand): Make static.  Call sh_print_operand_address
433         and sh_print_operand.
434         (sh_print_operand_punct_valid_p): New function.
435         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
436         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
437
438 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
439
440         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
441         (mcore_print_operand_address): Delete.
442         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
443         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
444         (PRINT_OPERAND_ADDRESS): Delete.
445         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
446         (mcore_print_operand): Make static.
447         (mcore_print_operand_punct_valid_p): New function.
448         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
449         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
450
451 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
452
453         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
454         (print_operand_address): Delete.
455         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
456         (PRINT_OPERAND_ADDRESS): Delete.
457         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
458         static.
459         (m68hc11_print_operand): Make static.
460         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
461
462 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
463
464         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
465         (m32r_print_operand_address): Delete.
466         * config/m32r/m32r.h (m32r_punct_chars): Delete.
467         (PRINT_OPERAND): Delete.
468         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
469         (PRINT_OPERAND_ADDRESS): Delete.
470         * config/m32r/m32r.c (m32r_punct_chars): Make static.
471         (m32r_print_operand_address): Make static.
472         (m32r_print_operand): Make static.
473         (m32r_print_operand_punct_valid_p): New function.
474         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
475         (TARGET_PRINT_OPERAND_ADDRESS): Define.
476
477 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
478
479         * config/iq2000/iq2000-protos.h (print_operand): Delete.
480         (print_operand_address): Delete.
481         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
482         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
483         (PRINT_OPERAND_ADDRESS): Delete.
484         (iq2000_print_operand_punct): Delete.
485         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
486         (iq2000_print_operand_address): Make static.
487         (iq2000_print_operand): Make static.
488         (iq2000_print_operand_punct_valid_p): New function.
489         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
490         (TARGET_PRINT_OPERAND_ADDRESS): Define.
491
492 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
493
494         * config/frv/frv-protos.h (frv_print_operand): Delete.
495         (frv_print_operand_address): Delete.
496         * config/frv/frv.h (PRINT_OPERAND): Delete.
497         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
498         (PRINT_OPERAND_ADDRESS): Delete.
499         * config/frv/frv.c (frv_print_operand_address): Make static.
500         (frv_print_operand): Make static.
501         (frv_print_operand_punct_valid_p): New function.
502         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
503         (TARGET_PRINT_OPERAND_ADDRESS): Define.
504
505 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
506
507         * tree.h (vec_member): Declare.
508         * tree.c (vec_member): Define.
509
510 2010-06-17  Richard Guenther  <rguenther@suse.de>
511
512         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
513         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
514
515 2010-06-17  Richard Guenther  <rguenther@suse.de>
516
517         * tree-inline.c (declare_return_variable): Remove bogus code.
518
519 2010-06-17  Richard Guenther  <rguenther@suse.de>
520
521         * gimplify.c (gimplify_bind_expr): Always promote complex
522         and vector variables to registers if possible.
523
524 2010-06-17  Richard Guenther  <rguenther@suse.de>
525
526         * expr.c (get_inner_reference): Use double_int for bit_offset
527         calculation.
528
529 2010-06-16  DJ Delorie  <dj@redhat.com>
530
531         * common.opt (-fstrict-volatile-bitfields): new.
532         * doc/invoke.texi: Document it.
533         * fold-const.c (optimize_bit_field_compare): For volatile
534         bitfields, use the field's type to determine the mode, not the
535         field's size.
536         * expr.c (expand_assignment): Likewise.
537         (get_inner_reference): Likewise.
538         (expand_expr_real_1): Likewise.
539         * expmed.c (store_fixed_bit_field): Likewise.
540         (extract_bit_field_1): Likewise.
541         (extract_fixed_bit_field): Likewise.
542
543 2010-06-16  Richard Guenther  <rguenther@suse.de>
544
545         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
546
547 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
548
549         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
550         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
551         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
552         * debug.c: Likewise.
553         * sdbout.c: Likewise.
554         * vmsdbgout.c: Likewise.
555         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
556         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
557         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
558         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
559         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
560         * dwarf2out.c (dw_fde_struct): New fields
561         dw_fde_vms_{end,begin}_prologue.
562         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
563         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
564         (dwarf2out_vms_end_prologue): New function.
565         (dwarf2out_vms_begin_epilogue): New function.
566         (dw_val_struct): New value dw_val_class_vms_delta.
567         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
568         begin_epilogue for VMS.
569         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
570         new static functions.
571         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
572         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
573         static functions.
574         (print_die): New case dw_val_class_vms_delta.
575         (attr_checksum): Likewise.
576         (same_dw_val_p: Likewise.
577         (size_of_die): Likewise.
578         (value_format): Likewise.
579         (output_die): Likewise.
580         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
581         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
582         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
583         dwarf2out_cfi_begin_epilogue
584         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
585
586 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
587
588         * config/cris/cris-protos.h (cris_print_operand): Delete.
589         (cris_print_operand_address): Delete.
590         * config/cris/cris.h (PRINT_OPERAND): Delete.
591         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
592         (PRINT_OPERAND_ADDRESS): Delete.
593         * config/cris/cris.c (cris_print_operand_address): Make static.
594         (cris_print_operand): Make static.
595         (cris_print_operand_punct_valid_p): New function.
596         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
597         (TARGET_PRINT_OPERAND_ADDRESS): Define.
598
599 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
600
601         * config/arm/arm-protos.h (arm_print_operand): Delete.
602         (arm_print_operand_address): Delete.
603         * config/arm/arm.h (PRINT_OPERAND): Delete.
604         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
605         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
606         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
607         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
608         (arm_print_operand): Make static.
609         (arm_print_operand_punct_valid_p): New function.
610         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
611         (TARGET_PRINT_OPERAND_ADDRESS): Define.
612
613 2010-06-16  Nick Clifton  <nickc@redhat.com>
614
615         * config/rx/constraints.md (NEGint4): New constraint.
616         * config/rx/rx.md (attr cc): Add set_zsc.
617         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
618         initialised.
619         (cmpsf): Likewise.
620         (call_internal): Clobber the cc0 register.
621         (call_value_internal): Likewise.
622         (cstoresi4): Likewise.
623         (movsieq): Likewise.
624         (movsine): Likewise.
625         (addsi3): Add alternative to handle small negative constants.
626         (sunsi3): Likewise.
627         (addsi3): Do not set the O bit in the cc0 register.
628         (adddi3): Likewise.
629         (subsi3): Likewise.
630         (subdi3): Likewise.
631         (andsi3): Reorder alternatives to prefer shorter forms.
632         (mulsi3): Likewise.
633         (iorsi3): Likewise.
634         (negsi2): Note that the cc0 flags are set.
635         (rotlsi3): Note that only the Z and S bits are set in cc0.
636         (lshrsi3): Likewise.
637         (ashlsi3): Likewise.
638         (subsf3): Use %Q for the MEM operand.
639         (fix_truncsfsi2): Likewise.
640         (floatsisf2): Likewise.
641         (bitset): Remove early clobber from destination.
642         (bitset_in_memory): Likewise.
643         (lrintsf2): Clobber the cc0 register.
644         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
645         (rx_print_operand): Handle %N.
646
647 2010-06-16  Jan Hubicka  <jh@suse.cz>
648
649         * df-core.c (df_compact_blocks): Free problem_temps vector.
650
651 2010-06-16  Martin Jambor  <mjambor@suse.cz>
652
653         PR tree-optimization/43905
654         * tree-sra.c: Include tree-inline.h.
655         (create_abstract_origin): Removed.
656         (modify_function): Version the call graph node instead of creating
657         abstract origins and dealing with same_body aliases.
658         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
659         function is versionable.
660         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
661
662 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
663
664         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
665         (CHOOSE_DYNAMIC_LINKER): Update.
666
667 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
668
669         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
670         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
671         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
672         *prefetch_3dnow_rex.
673
674 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
675
676         * target.h (struct asm_out):Add declare_constant_name field.
677         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
678         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
679         * output.h (default_asm_declare_constant_name): Declare.
680         (assemble_label): Update prototype.
681         * varasm.c (assemble_constant_contents): Use
682         targetm.asm_out.declare_constant_name target hook.
683         (assemble_label): Add 'file' argument.
684         (default_asm_declare_constant_name): New function.
685         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
686         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
687         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
688
689         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
690         * config/darwin.c (darwin_asm_declare_constant_name): New function.
691         (machopic_output_indirection): Update assemble_label argument list.
692         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
693         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
694
695 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
696
697         PR middle-end/44391
698         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
699         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
700
701 2010-06-15  Richard Guenther  <rguenther@suse.de>
702
703         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
704
705 2010-06-15  Paul Brook  <paul@codesourcery.com>
706
707         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
708         hard-float ABI.
709
710 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
711
712         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
713         don't get a vector type for output.
714
715 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
716
717         PR fortran/44536
718         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
719         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
720         (LANG_HOOKS_DECLS): Add it.
721         * gimplify.c (omp_notice_variable): Call
722         lang_hooks.decls.omp_report_decl.
723
724 2010-06-15  Martin Jambor  <mjambor@suse.cz>
725
726         PR lto/44464
727         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
728         on the newly dead SSA name.
729
730 2010-06-15  Alan Modra  <amodra@gmail.com>
731
732         * doc/invoke.texi: Add mcmodel to powerpc options.
733         * configure.ac: Add HAVE_LD_LARGE_TOC test.
734         * configure: Regenerate.
735         * config.in: Regenerate.
736         * config/rs6000/linux64.opt (mcmodel): New.
737         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
738         (TARGET_CMODEL, SET_CMODEL): Define.
739         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
740         select CMODEL_MEDIUM default.
741         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
742         (TARGET_CMODEL): Define default.
743         * config/rs6000/rs6000.c (cmodel): New variable.
744         (rs6000_explicit_options): Add cmodel field.
745         (rs6000_handle_option): Handle -mcmodel.
746         (create_TOC_reference): Add largetoc_reg param.  Generate high,
747         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
748         (rs6000_delegitimize_address): Recognise new toc reference rtl
749         and minimal-toc rtl.
750         (rs6000_legitimize_reload_address): Handle new toc references.
751         (print_operand_address): Handle legitimate_constant_pool_address_p
752         match before lo_sum.
753         (rs6000_eliminate_indexed_memrefs): Tidy.
754         (rs6000_emit_move): Tweak threshold for inlining constants.
755         Keep rs6000_emit_allocate_stack large stack frame offsets
756         loaded into r0 inline.
757         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
758         (tocrel_base, tocrel_offset): New variables.
759         (toc_relative_expr_p): Set them here.
760         (print_operand_address): Skip over any offset on constant pool address.
761         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
762         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
763         (offsettable_ok_by_alignment): New function.
764         (rs6000_emit_move): Address suitably aligned local symbol_refs
765         relative to the toc pointer for -mcmodel=medium.
766         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
767         strict param.  Allow lo_sum version of addressing.  Verify reg
768         used for -mminimal-toc and -mcmodel != small.  Update all callers.
769         * config/rs6000/constraints.md: Update for above change.
770         * config/rs6000/predicates.md: Likewise.
771         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
772         code.
773         (tls_gd): Split for -mcmodel=medium/large.
774         (tls_gd_high, tls_gd_low): New.
775         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
776         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
777         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
778         (largetoc_high, largetoc_low): New.
779         (cmptf_internal2): Add clobber.
780         * config/rs6000/rs6000-protos.h: Update.
781
782 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
783
784         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
785         true if no prefetch is going to be generated for a given group.
786         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
787         estimate the prefetch_count.
788         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
789         prefetch count by considering the unroll_factor and prefetch_mod
790         for is_loop_prefetching_profitable.
791
792 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
793
794         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
795         anything if the argument is not a MEM.
796
797 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
798
799         PR debug/43650
800         PR debug/44181
801         PR debug/44247
802         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
803         debug stmts.
804         (canonicalize_loop_ivs): Likewise.
805
806 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
807
808         PR debug/43656
809         * haifa-sched.c (setup_insn_reg_pressure_info,
810         update_register_pressure): Reject debug insns.
811         (ready_sort): Don't setup reg pressure for debug insns.
812         (schedule_insn): Don't update reg pressure for debug insns.
813
814 2010-06-14  Richard Guenther  <rguenther@suse.de>
815
816         * lto-streamer.c (cached_bp): Remove.
817         (bitpack_delete): Likewise.
818         (bitpack_create): Likewise.
819         (bp_get_next_word): Likewise.
820         (bp_pack_value, bp_unpack_value): Move ...
821         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
822         Re-implement.
823         (struct bitpack_d): Likewise.
824         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
825         New inline functions.
826         * lto-streamer-out.c (lto_output_bitpack): Remove.
827         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
828         (pack_value_fields): Adjust.
829         (lto_write_tree): Likewise.
830         (output_gimple_stmt): Likewise.
831         (output_function): Likewise.
832         * lto-streamer-in.c (input_gimple_stmt): Adjust.
833         (input_function): Likewise.
834         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
835         (lto_input_bitpack): Remove.
836         (lto_materialize_tree): Adjust.
837         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
838         * lto-cgraph.c (lto_output_edge): Adjust.
839         (lto_output_node): Likewise.
840         (lto_output_varpool_node): Likewise.
841         (lto_output_ref): Likewise.
842         (input_node): Likewise.
843         (input_varpool_node): Likewise.
844         (input_ref): Likewise.
845         (input_edge): Likewise.
846         (output_node_opt_summary): Likewise.
847         (input_node_opt_summary): Likewise.
848         * ipa-pure-const.c (pure_const_write_summary): Likewise.
849         (pure_const_read_summary): Likewise.
850         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
851         (ipa_read_indirect_edge_info): Likewise.
852         (ipa_write_node_info): Likewise.
853         (ipa_read_node_info): Likewise.
854
855 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
856
857         PR target/44534
858         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
859         (vec_extract_lo_v16hi): Likewise.
860         (vec_extract_lo_v32qi): Likewise.
861
862 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
863
864         PR bootstrap/44426
865         * tree.h (build_call_expr): Don't define as vararg macro, instead
866         add a prototype.
867         * builtins.c (build_call_nofold): Remove.
868         (expand_builtin_int_roundingfn, expand_builtin_pow,
869         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
870         expand_builtin_memset_args, expand_builtin_strcmp,
871         expand_builtin_strncmp, expand_builtin_memory_chk): Use
872         build_call_nofold_loc instead of build_call_nofold.
873         (build_call_expr): New function.
874
875         PR tree-optimization/44508
876         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
877         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
878         don't eliminate trivially dead stmts.
879         * tree-vrp.c (vrp_finalize): Pass false as last argument
880         to substitute_and_fold.
881         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
882         to substitute_and_fold.
883         * tree-ssa-ccp.c (ccp_finalize): Likewise.
884
885         PR bootstrap/44509
886         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
887         * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
888         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
889         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
890         ggc_strdup instead of xstrdup.
891
892 2010-06-14  Ira Rosen  <irar@il.ibm.com>
893
894         PR tree-optimization/44507
895         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
896         to build initial vector for BIT_AND_EXPR.
897         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
898
899 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
900
901         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
902         adjust z10prop set_attr.
903
904 2010-06-13  Jan Hubicka  <jh@suse.cz>
905
906         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
907         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
908         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
909         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
910         datastructure checks into checking asserts.
911         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
912         * tree-ssa-sccvn.c (VN_INFO): Likewise.
913         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
914         df_ref_create_structure): Likewise.
915         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
916         pool_free): Use gcc_checking_assert.
917         * alias.c (get_alias_set): Likewise.
918         * var-tracking.c (variable_htab_free, shared_hash_copy,
919         canonicalize_values_mark, variable_merge_over_cur): Likewise.
920         * lto-streamer.c (bp_unpack_value): Likewise.
921
922 2010-06-13  Richard Guenther  <rguenther@suse.de>
923
924         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
925         Do not stream but initialize TYPE_CANONICAL to NULL.
926         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
927         * gimple.c (gimple_types_compatible_p): Disregard
928         TYPE_STRUCTURAL_EQUALITY_P.
929         (gimple_register_type): Use TYPE_CANONICAL as cache.
930         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
931         before registering common types.
932         * config/i386/i386.c (ix86_function_arg_boundary): Do not
933         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
934         * tree.h (TYPE_CANONICAL): Clarify documentation.
935
936 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
937
938         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
939         LIBCALL_VALUE): Remove macros.
940         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
941         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
942         TARGET_FUNCTION_VALUE_REGNO_P): Define.
943         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
944         (ia64_function_value): Make static. Handle receiving the function
945         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
946
947 2010-06-12  Jan Hubicka  <jh@suse.cz>
948
949         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
950         at correct place.
951
952 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
953
954         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
955
956 2010-06-12  Jan Hubicka  <jh@suse.cz>
957
958         * df-core.c (df_clear_bb_info): New function.
959         (df_set_blocks): bb_info is always allocated.
960         (df_get_bb_info): Use block_info_elt_size.
961         (df_set_bb_info): Likewise.
962         (df_compact_blocks): Update for new block_info.
963         (grow_bb_info): New function.
964         * df-problems.c (df_grow_bb_info): Move to df-core.c
965         (df_rd_set_bb_info): Remove.
966         (df_rd_free_bb_info): Do not free block pool.
967         (df_rd_alloc): Do not create pool, use check for
968         obstack presence instead of NULL pointer for new blocks.
969         (df_rd_free): DO not free alloc pool; clear block_info.
970         (problem_RD): Add size of block info structure.
971         (df_lr_set_bb_info): Remove.
972         (df_lr_free_bb_info): Do not free block pool.
973         (df_lr_alloc): Do not create pool, use check for
974         obstack presence instead of NULL pointer for new blocks.
975         (df_lr_free): DO not free alloc pool; clear block_info.
976         (problem_LR): Add size of block info structure.
977         (df_live_set_bb_info): Remove.
978         (df_live_free_bb_info): Do not free block pool.
979         (df_live_alloc): Do not create pool, use check for
980         obstack presence instead of NULL pointer for new blocks.
981         (df_live_free): DO not free alloc pool; clear block_info.
982         (problem_LIVE): Add size of block info structure.
983         (problem_CHAIN): Add size of block info structure.
984         (df_byte_lr_set_bb_info): Remove.
985         (df_byte_lr_free_bb_info): Do not free block pool.
986         (df_byte_lr_alloc): Do not create pool, use check for
987         obstack presence instead of NULL pointer for new blocks.
988         (df_byte_lr_free): DO not free alloc pool; clear block_info.
989         (problem_BYTE_LR): Add size of block info structure.
990         (problem_NOTE): Add size of block info structure.
991         (df_byte_MD_set_bb_info): Remove.
992         (df_byte_MD_free_bb_info): Do not free block pool.
993         (df_byte_MD_alloc): Do not create pool, use check for
994         obstack presence instead of NULL pointer for new blocks.
995         (df_byte_MD_free): DO not free alloc pool; clear block_info.
996         (problem_BD): Add size of block info structure.
997         * df-scan.c (df_scan_free_internal): Free block pool.
998         (df_scan_set_bb_info): Remove.
999         (df_scan_free_bb_info): Check for artificial_defs instead
1000         of bb_info being non-NULL.
1001         (df_scan_alloc): DO not create df_scan_block pool.
1002         (problem_SCAN): Set size of block info.
1003         (df_bb_refs_record): Do not allocate bb_info.
1004         * df.h (df_problem): Add block_info_elt_size.
1005         (struct dataflow): Change block_info to void *.
1006         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1007         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1008         in-line structures.
1009
1010 2010-06-12  Jan Hubicka  <jh@suse.cz>
1011
1012         PR tree-optimize/44485
1013         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1014         containing use of return value of noreturn function.
1015
1016 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
1017
1018         * targhooks.c (default_function_value): Don't use
1019         FUNCTION_OUTGOING_VALUE.
1020         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1021         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1022
1023 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
1024
1025         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1026         Add crtfastmath.o to extra_parts.
1027         * config/mips/crtfastmath.c: New.
1028         * config/mips/linux.h (ENDFILE_SPEC): New.
1029
1030 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
1031
1032         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1033         old_type in parameter.
1034         (gcc_type_for_value): Update call to gcc_type_for_interval.
1035         (compute_type_for_level_1): Renamed compute_type_for_level.
1036         Update call to gcc_type_for_interval.
1037
1038 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
1039
1040         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1041         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1042
1043 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
1044
1045         * opts-common.c: Include options.h.
1046         (integral_argument): Move from opts.c.
1047         (decode_cmdline_option): New.  Based on read_cmdline_option.
1048         * opts.c (integral_argument): Move to opts-common.c.
1049         (read_cmdline_option): Move most contents to
1050         decode_cmdline_option.  Use %qs in diagnostics.
1051         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1052         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1053         decode_cmdline_option): New.
1054
1055 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
1056
1057         PR target/44481
1058         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1059         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1060         (partiysi2_cmp): Ditto.
1061         (*partiyhi2_cmp): Ditto.
1062         (*parityqi2_cmp): Remove.
1063
1064 2010-06-11  Jan Hubicka  <jh@suse.cz>
1065
1066         * bitmap.h (bmp_iter_next_bit): New.
1067         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1068
1069 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
1070             Eric Botcazou  <ebotcazou@adacore.com>
1071
1072         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1073         computed cost.
1074
1075 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
1076
1077         * config/i386/i386.md (unspec): New define_c_enum.
1078         (unspecv): Ditto.
1079
1080 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
1081
1082         * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1083         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1084         (lazy_hex_fp_value): New function.
1085         (builtin_define_with_hex_fp_value): Provide definitions lazily.
1086         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1087
1088 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
1089
1090         PR middle-end/44483
1091         * tree-if-conv.c (bb_predicate_s): New struct.
1092         (bb_predicate_p): New.
1093         (bb_has_predicate): New.
1094         (bb_predicate): New.
1095         (set_bb_predicate): New.
1096         (bb_predicate_gimplified_stmts): New.
1097         (set_bb_predicate_gimplified_stmts): New.
1098         (add_bb_predicate_gimplified_stmts): New.
1099         (init_bb_predicate): New.
1100         (free_bb_predicate): New.
1101         (is_predicated): Use bb_predicate.
1102         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1103         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
1104         before processing their successors.
1105         (clean_predicate_lists): Removed.
1106         (find_phi_replacement_condition): Use bb_predicate.
1107         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
1108         computations.
1109         (insert_gimplified_predicates): New.
1110         (combine_blocks): Call insert_gimplified_predicates.
1111         (tree_if_conversion): Call free_bb_predicate instead of
1112         clean_predicate_lists.
1113
1114 2010-10-11  Paul Brook  <paul@codesourcery.com>
1115
1116         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1117         * config/arm/arm.c (all_architectures): Change v7e-m default to
1118         cortexm4.
1119         * config/arm/arm-cores.def: Add cortex-m4.
1120         * config/arm/arm-tune.md: Regenerate.
1121
1122 2010-06-11  Jan Hubicka  <jh@suse.cz>
1123
1124         * ipa-pure-const.c (special_builtlin_state): New function.
1125         (check_call): Use it instead of special casign BUILT_IN_RETURN.
1126         (propagate_pure_const): Use it.
1127
1128 2010-06-11  Jan Hubicka  <jh@suse.cz>
1129
1130         * df-problems.c (df_live_scratch): Convert to bitmap_head.
1131         (df_live_alloc): Initialize df_live_scratch when initializing
1132         problem_data.
1133         (df_live_transfer_function): Update uses of df_live_scratch.
1134         (df_live_free): Free problem_data; clear df_live_scratch before
1135         releasing the obstack.
1136         (df_md_free): Free problem data.
1137
1138 2010-06-11  Jan Hubicka  <jh@suse.cz>
1139
1140         * doc/invoke.texi (Wsuggest-attribute): Document.
1141         (Wmissing-noreturn): Remove.
1142         * ipa-pure-const.c (warn_function_noreturn): New function.
1143         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1144         warn_missing_noreturn.
1145         * common.opt (Wsuggest-attribute=noreturn): New.
1146         * tree-flow.h (warn_function_noreturn): Declare.
1147         * tree-cfg.c (execute_warn_function_noreturn): Use
1148         warn_function_noreturn.
1149         (gate_warn_function_noreturn): New.
1150         (pass_warn_function_noreturn): Update.
1151
1152 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1153
1154         * c-typeck.c (handle_warn_cast_qual): Add loc
1155         parameter. Improve warning message.
1156         (build_c_cast): Pass location to handle_warn_cast_qual.
1157
1158 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
1159
1160         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1161         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
1162         insn mnemonic.
1163         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1164
1165 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
1166
1167         Fix bootstap on mips
1168         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1169         be naming typedefs.
1170
1171 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
1172
1173         * system.h (helper_const_non_const_cast): New inline for
1174         gcc version <= 4.0.
1175         (CONST_CAST2): For gcc version <= 4.0 use
1176         new helper to do const/non-const casting.
1177
1178 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1179
1180         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1181         * Makefile.in (OBJS-common): Include insn-enums.o.
1182         (insn-enums.o): New rule.
1183         (simple_generated_c): Add insn-enums.c.
1184         (build/genenums.o): New rule.
1185         (genprogmd): Add "enums".
1186         * genconstants.c (print_enum_type): Declare a C string array
1187         for each enum.
1188         * genenums.c: New file.
1189         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1190         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
1191         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1192
1193 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1194
1195         * doc/md.texi (define_enum_attr): Document.
1196         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1197         * read-md.h (lookup_enum_type): Declare.
1198         * read-md.c (lookup_enum_type): New function.
1199         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1200         * genattrtab.c (attr_desc): Add an enum_name field.
1201         (evaluate_eq_attr): Take the associated attribute as argument.
1202         Get the enum prefix from the enum_name field, if defined.
1203         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
1204         (simplify_test_exp): Pass attr to evaluate_eq_attr.
1205         (add_attr_value): New function, split out from...
1206         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
1207         (write_test_expr): Pass attr to evaluate_eq_attr.
1208         (write_attr_get): Use the enum_name as the enum tag, if defined.
1209         (write_attr_valueq): Use the enum_name as a prefix, if defined.
1210         (find_attr): Initialize enum_name.
1211         (main): Handle DEFINE_ENUM_ATTR.
1212         * gensupport.c (process_rtx): Likewise.
1213         * config/mips/mips.h (mips_tune_attr): Delete.
1214         * config/mips/mips.md (cpu): Use define_attr_enum.
1215
1216 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1217
1218         * doc/md.texi (define_c_enum, define_enum): Document.
1219         * read-md.h (md_constant): Add a parent_enum field.
1220         (enum_value, enum_type): New structures.
1221         (upcase_string, traverse_enum_types): Declare.
1222         * read-md.c (enum_types): New variable.
1223         (upcase_string, add_constant): New functions.
1224         (handle_constants): Don't create the hash table here.
1225         Use add_constant.
1226         (traverse_md_constants): Don't check for a null md_constants.
1227         (decimal_string, handle_enum, traverse_enum_types): New functions.
1228         (read_md_files): Initialize md_constants and md_enums.
1229         * genconstants.c (print_md_constant): Ignore info argument.
1230         Only print constants that belong to no enum.
1231         (print_enum_type): New function.
1232         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
1233         for each defined enum type.
1234         * config/mips/mips.md (processor): New define_enum.
1235         (unspec): New define_c_enum.
1236         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1237         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1238         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1239         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1240         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1241         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1242         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1243         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1244         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1245         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1246         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1247         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1248         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1249         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1250         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1251         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1252         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1253         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1254         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1255         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1256         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1257         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1258         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1259         (UNSPEC_RDDSP): Move to mips-dsp.md.
1260         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1261         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1262         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1263         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1264         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1265         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1266         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1267         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1268         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1269         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1270         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1271         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1272         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1273         Moved to mips-dspr2.md.
1274         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1275         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1276         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1277         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1278         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1279         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1280         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1281         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1282         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1283         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1284         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1285         UNSPEC_LOONGSON_PSADBH)
1286         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1287         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1288         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1289         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1290         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1291         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1292         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1293         (cpu): Update comment.
1294         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1295         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1296         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1297         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1298         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1299         UNSPEC_LOONGSON_PCMPEQ)
1300         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1301         UNSPEC_LOONGSON_PINSR_0)
1302         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1303         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1304         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1305         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1306         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1307         UNSPEC_LOONGSON_PSADBH)
1308         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1309         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1310         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1311         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1312         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1313         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1314         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1315         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1316         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1317         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1318         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1319         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1320         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1321         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1322         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1323         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1324         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1325         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1326         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1327         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1328         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1329         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1330         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1331         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1332         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1333         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1334         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1335         (UNSPEC_RDDSP): Moved from mips.md.
1336         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1337         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1338         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1339         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1340         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1341         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1342         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1343         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1344         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1345         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1346         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1347         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1348         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1349         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1350         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1351         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1352         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1353         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1354         (UNSPEC_SCC): Moved from mips.md.
1355         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1356         "processor_type" to "processor".
1357         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1358         * config/mips/mips.h (processor_type): Delete.
1359         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1360         "processor_type" to "processor".
1361
1362 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1363
1364         * configure.ac (tm_include_list): Add insn-constants.h.
1365         * configure: Regenerate.
1366         * Makefile.in (GTM_H): Move insn-constants.h here from...
1367         (TM_H): ...here.
1368         * mkconfig.sh: Remove special handling for insn-constants.h.
1369
1370 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1371
1372         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1373         (BUILD_MD): ...this new variable.
1374         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1375         that include the old contents of simple_generated_h and
1376         simple_generated_c.
1377         (simple_generated_h, simple_generated_c): Include them.  Add
1378         insn-constants.h.
1379         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1380         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1381         Remove these dependencies from the main rule and include
1382         insn-conditions.md in the command line only if it appears
1383         in the dependency list.
1384         (insn-constants.h, s-constants): Delete.
1385         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1386         or gensupport.h.
1387         (build/genmddeps.o): Likewise.
1388         (genprogrtl): New variable that contains everything from genprogmd
1389         except mddeps and constants.
1390         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
1391         depend on $(BUILD_MD)
1392         (genprog): New variable.  Make these programs depend on
1393         $(BUILD_ERRORS).
1394         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1395         (main): Use read_md_files instead of init_rtx_reader_args.
1396         * genconstants.c: As for genmddeps.c.
1397         * read-md.h (read_skip_construct): Declare.
1398         * read-md.c (read_skip_construct): New function.
1399         (handle_file): Allow a null handle_directive, skipping the
1400         construct if so.
1401         (parse_include): Update the comment accordingly.
1402
1403 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1404
1405         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1406         * genmddeps.c: Include read-md.h.
1407         (main): Call init_rtx_reader_args instead of init_md_reader_args.
1408         * genattr.c (main): Likewise.
1409         * genattrtab.c (main): Likewise.
1410         * genautomata.c (main): Likewise.
1411         * gencodes.c (main): Likewise.
1412         * genconditions.c (main): Likewise.
1413         * genconfig.c (main): Likewise.
1414         * genconstants.c (main): Likewise.
1415         * genemit.c (main): Likewise.
1416         * genextract.c (main): Likewise.
1417         * genflags.c (main): Likewise.
1418         * genopinit.c (main): Likewise.
1419         * genoutput.c (main): Likewise.
1420         * genpeep.c (main): Likewise.
1421         * genrecog.c (main): Likewise.
1422         * genpreds.c (main): Likewise.
1423         * gensupport.h (in_fname): Move to read-md.h.
1424         (init_md_reader_args_cb): Rename to...
1425         (init_rtx_reader_args_cb): ...this and return a bool.
1426         (init_md_reader_args): Rename to...
1427         (init_rtx_reader_args): ...this and return a bool.
1428         (include_callback): Move to read-md.h.
1429         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1430         (file_name_list, first_dir_md_include): Move to read-md.c
1431         (first_bracket_include): Delete unused variable.
1432         (last_dir_md_include): Move to read-md.c.
1433         (process_include): Delete, moving code to read-md.c:handle_include.
1434         (process_rtx): Don't handle INCLUDE.
1435         (save_string): Delete.
1436         (rtx_handle_directive): New function.
1437         (init_md_reader_args_cb): Rename to...
1438         (init_rtx_reader_args_cb): ...this and return a boolean success value.
1439         Use read_md_args.
1440         (init_md_reader_args): Rename to...
1441         (init_rtx_reader_args): ...this and return a boolean success value.
1442         * rtl.def (INCLUDE): Delete.
1443         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
1444         argument.
1445         * read-rtl.c (read_conditions): Don't gobble ')' here.
1446         (read_mapping): Likewise.
1447         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
1448         Handle top-level non-rtx constructs here rather than in read_rtx_1.
1449         Store the whole queue in *X.  Remove call to init_md_reader.
1450         (read_rtx_1): Rename to...
1451         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
1452         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
1453         here.
1454         (read_nested_rtx): New function.  Handle (nil) here rather than
1455         in read_rtx_code.
1456         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
1457         gobble ')' here.
1458         * read-md.h (directive_handler_t): New type.
1459         (in_fname, include_callback): Moved from read-md.h.
1460         (read_constants, init_md_reader): Delete.
1461         (read_md_files): Declare.
1462         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1463         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1464         from gensupport.c.
1465         (read_constants): Rename to...
1466         (handle_constants): ...this.  Don't gobble ')' here.
1467         (handle_include, handle_file, handle_toplevel_file)
1468         (parse_include): New functions, mostly taken from gensupport.c.
1469         (init_md_reader): Subsume into...
1470         (read_md_files): ...this new function.
1471
1472 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1473
1474         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1475         (unread_char): Decrement read_md_lineno after putting back '\n'.
1476         * read-md.c (fatal_with_file_and_line): Push back any characters
1477         that we decide not to add to the context.
1478         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
1479         fatal_expected_char in cases where '/' ends a line (for example).
1480         (read_name): Don't increment read_md_lineno here.
1481         (read_escape): Likewise.
1482         (read_quoted_string): Likewise.
1483         (read_braced_string): Likewise.
1484
1485 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1486
1487         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1488         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1489         * genconstants.c: Include read-md.h.
1490         * read-rtl.c (md_constants): Move to read-md.c.
1491         (md_name): Move to read-md.h.
1492         (initialize_iterators): Use leading_string_hash instead of def_hash
1493         and leading_string_eq_p instead of def_name_eq_p.
1494         (read_name): Move to read-md.c.
1495         (def_hash, def_name_eq_p): Delete.
1496         (read_constants, traverse_md_constants): Move to read-md.c.
1497         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1498         * read-md.h: Include hashtab.h.
1499         (md_name): Moved from read-rtl.c.
1500         (md_constant): Moved from read-md.h.
1501         (leading_string_hash, leading_string_eq_p, read_name)
1502         (read_constants, traverse_md_constants): Declare.
1503         * read-md.c (md_constants): Moved from read-rtl.c.
1504         (leading_string_hash, leading_string_eq_p): New functions.
1505         (read_name, read_constants, traverse_md_constants): Moved from
1506         read-rtl.c.
1507
1508 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1509
1510         * read-rtl.c (md_name): New structure.
1511         (read_name): Take an md_name instead of a buffer pointer.
1512         Use the "string" field instead of strcpy when expanding constants.
1513         (read_constants): Remove the tmp_char argument.  Update the calls
1514         to read_name, using two local name buffers instead of the tmp_char
1515         argument.  Merge the constant-creation code.
1516         (read_conditions): Remove the tmp_char argument.  Update the calls
1517         to read_name, using a local name buffer instead of the tmp_char
1518         argument.
1519         (read_mapping): Replace tmp_char variable with a local name buffer.
1520         Update the calls to read_name.
1521         (read_rtx_1): Likewise.  Update the calls to read_constants and
1522         read_conditions.
1523
1524 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1525
1526         * Makefile.in (build/read-md.o): Depend on errors.h.
1527         * read-md.h (error_with_line): Declare.
1528         * read-md.c: Include errors.h.
1529         (message_with_line_1): New function, extracted from...
1530         (message_with_line): ...here.
1531         (error_with_line): New function.
1532         * genattrtab.c: If a call to message_with_line is followed by
1533         "have_error = 1;", replace both statements with a call to
1534         error_with_line.
1535         * genoutput.c: Likewise.
1536         * genpreds.c: Likewise.
1537         * genrecog.c: If a call to message_with_line is followed by
1538         "error_count++;", replace both statements with a call to
1539         error_with_line.
1540         (errorcount): Delete.
1541         (main): Don't check it.
1542         * gensupport.c: If a call to message_with_line is followed by
1543         "errors = 1;", replace both statements with a call to error_with_line.
1544         (errors): Delete.
1545         (process_define_cond_exec): Check have_error instead of errors.
1546         (init_md_reader_args_cb): Likewise.  Don't set errors.
1547
1548 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1549
1550         * read-md.h (read_md_file): Declare.
1551         (read_char, unread_char): New functions.
1552         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1553         (read_quoted_string, read_string): Remove FILE * argument.
1554         * read-md.c (read_md_file): New variable.
1555         (read_md_filename, read_md_lineno): Update comments and remove
1556         unnecessary initialization.
1557         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1558         (read_escape, read_quoted_string, read_braced_string, read_string):
1559         Remove FILE * argument.  Update calls accordingly, using read_char
1560         and unread_char instead of getc and ungetc.
1561         * rtl.h (read_rtx): Remove FILE * argument.
1562         * read-rtl.c (iterator_group): Remove FILE * argument from
1563         "find_builtin".
1564         (iterator_traverse_data): Remove "infile" field.
1565         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
1566         (add_mapping, read_name, read_constants, read_conditions)
1567         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
1568         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
1569         Remove file arguments from all calls, using read_char and unread_char
1570         instead of getc and ungetc.
1571         * gensupport.c (process_include): Preserve read_md_file around
1572         the include.  Set read_md_file to the handle of the included file.
1573         Update call to read_rtx.
1574         (init_md_reader_args_cb): Set read_md_file to the handle of the file
1575         and remove local FILE *.  Update calls to read_rtx.
1576
1577 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1578
1579         * read-md.h (read_rtx_lineno): Rename to...
1580         (read_md_lineno): ...this.
1581         (read_rtx_filename): Rename to...
1582         (read_md_filename): ...this.
1583         (copy_rtx_ptr_loc): Rename to...
1584         (copy_md_ptr_loc): ...this.
1585         (print_rtx_ptr_loc): Rename to...
1586         (print_md_ptr_loc): ...this.
1587         * read-md.c: Likewise.  Update references after renaming.
1588         (string_obstack): Replace RTL with MD in comment.
1589         (set_rtx_ptr_loc): Rename to...
1590         (set_md_ptr_loc): ...this.
1591         (get_rtx_ptr_loc): Rename to...
1592         (get_md_ptr_loc): ...this.
1593         * genconditions.c: Update references after renaming.
1594         * genemit.c: Likewise.
1595         * genoutput.c: Likewise.
1596         * genpreds.c: Likewise.
1597         * gensupport.c: Likewise.
1598         * read-rtl.c: Likewise.
1599
1600 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
1601
1602         * Makefile.in (READ_MD_H): New variable.
1603         (BUILD_RTL): Add build/read-md.o.
1604         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
1605         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1606         (build/genattrtab.o, build/genconditions.o build/genemit.o)
1607         (build/genextract.o, build/genflags.o, build/genoutput.o)
1608         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
1609         (build/read-md.o): New rule.
1610         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
1611         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
1612         * coretypes.h: ...here.
1613         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
1614         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
1615         * genattr.c: Include read-md.h.
1616         * genattrtab.c: Likewise.
1617         * genconditions.c: Likewise.
1618         * genemit.c: Likewise.
1619         * genextract.c: Likewise.
1620         * genflags.c: Likewise.
1621         * genoutput.c: Likewise.
1622         * genpreds.c: Likewise.
1623         * genrecog.c: Likewise.
1624         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1625         (join_c_conditions, print_c_condition, read_rtx_filename)
1626         (read_rtx_lineno): Move to read-md.h.
1627         * read-rtl.c: Include read-md.h.
1628         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
1629         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
1630         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
1631         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
1632         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1633         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
1634         (read_braced_string, read_string): Move to read-md.c.
1635         (read_rtx): Move some initialization to init_md_reader and call
1636         init_md_reader here.
1637         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
1638         Move to read-md.h.
1639         * gensupport.c: Include read-md.h.
1640         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
1641         * read-md.h, read-md.c: New files.
1642
1643 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
1644
1645         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1646         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1647         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
1648         * config/moxie/moxie.c (moxie_function_value): Make static.
1649         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
1650         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1651
1652 2010-06-10  Martin Jambor  <mjambor@suse.cz>
1653
1654         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
1655         * dbgcnt.def (tree_sra): New counter.
1656         * tree-sra.c: Include dbgcnt.h.
1657         (gate_intra_sra): Check tree_sra debug counter.
1658
1659 2010-06-10  Martin Jambor  <mjambor@suse.cz>
1660
1661         PR tree-optimization/44258
1662         * tree-sra.c (build_access_subtree): Return false iff there is a
1663         partial overlap.
1664         (build_access_trees): Likewise.
1665         (analyze_all_variable_accesses): Disqualify candidates if
1666         build_access_trees returns true for them.
1667
1668 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
1669
1670         PR debug/41371
1671         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
1672         tail-recurse into canonical node.  Fast-forward over
1673         non-canonical VALUEs.
1674
1675 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
1676
1677         PR boostrap/44470
1678         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
1679         (*addsi_1_zext) <TYPE_LEA>: Likewise.
1680         (add lea splitter): Likewise.
1681         (add_zext lea splitter): Likewise.
1682
1683 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
1684
1685         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
1686
1687 2010-06-10  Jan Hubicka  <jh@suse.cz>
1688
1689         * df-problems.c (df_live_problem_data): Add live_bitmaps.
1690         (df_live_alloc): Initialize problem data and live_osbtacks.
1691         (df_live_finalize): Remove obstack, problem data; do not
1692         clear all bitmaps.
1693         (df_live_top_dump, df_live_bottom_dump): Do not dump old
1694         data when not allocated.
1695         (df_live_verify_solution_start): Do not allocate problem data.
1696         (df_live_verify_solution_end): Check if out is allocated.
1697         (struct df_md_problem_data): New structure.
1698         (df_md_alloc): Allocate problem data.
1699         (df_md_free): Free problem data; do not clear bitmaps.
1700
1701 2010-06-10  Jan Beulich  <jbeulich@novell.com>
1702
1703         PR bootstrap/37304
1704         * configure.ac: Replace $() with ${} when intending to expand
1705         variables rather than invoking commands.
1706         * configure: Re-generate.
1707
1708 2010-06-10  Jan Hubicka  <jh@suse.cz>
1709
1710         PR rtl-optimization/44460
1711         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1712         TYPE_NEEDS_CONSTRUCTING sanity check.
1713
1714 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1715
1716         * doc/include/fdl.texi: Move to GFDL version 1.3.
1717
1718         * doc/cpp.texi: Move to GFDL version 1.3.
1719         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
1720         * doc/gccint.texi: Move to GFDL version 1.3.
1721         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
1722         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
1723         * doc/invoke.texi: Move to GFDL version 1.3.
1724
1725 2010-06-09  Jan Hubicka  <jh@suse.cz>
1726
1727         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
1728         Break out from ...
1729         (propagate) ... here; swap the order.
1730
1731 2010-06-09  Jan Hubicka  <jh@suse.cz>
1732
1733         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
1734         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
1735         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
1736         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
1737
1738 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
1739
1740         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
1741         Do not the gather memory reference in the outer loop if the step
1742         is not a constant.
1743
1744 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
1745
1746         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
1747         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
1748         8 to 4.  Minor change of the related comments.
1749
1750 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1751
1752         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1753         the scev analysis when the variable is not used outside the loop
1754         in a close phi node: call compute_overall_effect_of_inner_loop.
1755
1756 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1757
1758         * graphite-sese-to-poly.c (single_pred_cond): Renamed
1759         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
1760         (build_sese_conditions_before): Renamed call to single_pred_cond.
1761         (build_sese_conditions_after): Same.
1762
1763 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1764
1765         * graphite-poly.h: Fix comments and indentation.
1766         * graphite-sese-to-poly.c: Same.
1767         (build_sese_conditions_before): Compute stmt and gbb only when needed.
1768         * tree-chrec.c: Fix comments and indentation.
1769         (tree-ssa-loop-niter.c): Same.
1770
1771 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
1772
1773         PR rtl-optimization/42461
1774         * dce.c (deletable_insn_p): Return true for const or pure calls again.
1775         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
1776
1777 2010-06-09  Jan Hubicka  <jh@suse.cz>
1778
1779         * bitmap.c (bitmap_and): Walk array forward.
1780         (bitmap_and_compl_into): Likewise.
1781         (bitmap_xor): Likewise.
1782         (bitmap_xor_into):  Likewise.
1783         (bitmap_equal_p): Likewise.
1784         (bitmap_intersect_p): Likewise.
1785         (bitmap_intersect_compl_p): Likewise.
1786         (bitmap_ior_and_into): Likewise.
1787         (bitmap_elt_copy): Likewise.
1788         (bitmap_and_compl): Likewise.
1789         (bitmap_elt_ior): Likewise.
1790
1791 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
1792
1793         * opts-common.c (prune_options): Ensure replacement argv array
1794         is correctly terminated by a NULL entry.
1795
1796 2010-06-09  Jan Hubicka  <jh@suse.cz>
1797
1798         * cgraph.h (varpool_first_static_initializer,
1799         varpool_next_static_initializer): Make checking only when
1800         checking enabled.
1801         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
1802         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
1803         gcc_assert to gcc_checking_assert.
1804         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
1805         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
1806         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
1807         op_iter_init_phiuse, op_iter_init_phidef,
1808         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
1809         gcc_checking_assert.
1810         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
1811         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
1812         partition_is_global, live_on_entry, live_on_exit,
1813         live_merge_and_clear): Likewise.
1814         * system.h (gcc_checking_assert): New macro.
1815         * gimple.h (set_bb_seq): Use gcc_checking_assert.
1816
1817 2010-06-09  Jason Merrill  <jason@redhat.com>
1818
1819         * Makefile.in (TAGS): Collect tags info from c-family.
1820
1821 2010-06-09  Jan Hubicka  <jh@suse.cz>
1822
1823         * gimple.h (gcc_gimple_checking_assert): New macro.
1824         (gimple_set_def_ops, gimple_set_use_ops,
1825         gimple_set_vuse, gimple_set_vdef,
1826         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
1827         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
1828         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
1829         gimple_asm_output_op, gimple_asm_output_op_ptr,
1830         gimple_asm_set_output_op, gimple_asm_clobber_op,
1831         gimple_asm_set_clobber_op, gimple_asm_label_op,
1832         gimple_asm_set_label_op, gimple_try_set_kind,
1833         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
1834         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
1835         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
1836         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
1837         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
1838         gimple_omp_for_set_initial, gimple_omp_for_final,
1839         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
1840         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
1841         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
1842         conditional with ENABLE_GIMPLE_CHECKING.
1843         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
1844
1845 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
1846
1847         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
1848         (get_computation_cost_at): Use it.
1849         (determine_use_iv_cost_condition): Likewise.
1850         (determine_iv_cost): Likewise.
1851
1852 2010-06-09  Richard Guenther  <rguenther@suse.de>
1853
1854         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
1855         replace constants.
1856
1857 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
1858
1859         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
1860
1861 2010-06-09  Martin Jambor  <mjambor@suse.cz>
1862
1863         PR tree-optimization/44423
1864         * tree-sra.c (dump_access): Dump also grp_assignment_read.
1865         (analyze_access_subtree): Pass negative allow_replacements to children
1866         if the current type is scalar.
1867
1868 2010-06-09  Joern Rennecke  <amylaar@spamcop.net>
1869
1870         PR testsuite/42843
1871         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
1872         * doc/plugins.texi (Plugin license check): Update information
1873         on type of plugin_is_GPL_compatible.
1874         * Makefile.in (PLUGINCC): Define as $(COMPILER).
1875         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
1876
1877 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
1878
1879         * config/arm/arm.c (thumb2_reorg): New function.
1880         (arm_reorg): Call it.
1881         * config/arm/thumb2.md (define_peephole2 for flag clobbering
1882         arithmetic operations): Delete.
1883
1884 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
1885
1886         PR target/44067
1887         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
1888         e500v2 target.
1889
1890 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
1891
1892         PR plugins/44459
1893         * gcc-plugin.h: Encapsulate all declarations in extern "C".
1894
1895 2010-06-08  Jan Hubicka  <jh@suse.cz>
1896
1897         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
1898         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
1899
1900 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
1901
1902         PR tree-optimization/39874
1903         PR middle-end/28685
1904         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
1905         Declare.
1906         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
1907         same_bool_result_p): New.
1908         (and_var_with_comparison, and_var_with_comparison_1,
1909         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
1910         (or_var_with_comparison, or_var_with_comparison_1,
1911         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
1912         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
1913         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
1914         of combine_comparisons.
1915         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
1916
1917 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
1918
1919         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1920         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1921         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
1922         pdp11_function_value_regno_p): New functions.
1923         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1924         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1925
1926 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
1927
1928         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
1929         Thumb-2 in the MINUS case.
1930
1931 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1932
1933         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
1934
1935         * doc/gty.texi (GTY Options): Document typed GC allocation and
1936         variable_size GTY option.
1937
1938         * ggc-internal.h: New.
1939
1940         * ggc.h: Update copyright year.
1941         (digit_string): Move to stringpool.c.
1942         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
1943         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
1944         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
1945         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
1946         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
1947         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
1948         (ggc_force_collect, ggc_get_size, ggc_statistics)
1949         (ggc_print_common_statistics): Move to ggc-internal.h.
1950         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
1951         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
1952         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
1953         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
1954         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
1955         (ggc_alloc_zone_pass_stat): Remove.
1956         (ggc_internal_alloc_stat, ggc_internal_alloc)
1957         (ggc_internal_cleared_alloc_stat): New.
1958         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
1959         (ggc_internal_vec_alloc_stat)
1960         (ggc_internal_cleared_vec_alloc_stat)
1961         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
1962         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
1963         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
1964         (ggc_cleared_alloc_ptr_array_two_args): New.
1965         (htab_create_ggc, splay_tree_new_ggc): Redefine.
1966         (ggc_splay_alloc): Change the type of the first argument to
1967         enum gt_types_enum.
1968         (ggc_alloc_string): Make macro.
1969         (ggc_alloc_string_stat): New.
1970         (ggc_strdup): Redefine.
1971         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
1972         (ggc_alloc_rtvec_sized): New.
1973         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
1974         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
1975         (ggc_internal_cleared_alloc_zone_stat)
1976         (ggc_internal_zone_alloc_stat)
1977         (ggc_internal_zone_cleared_alloc_stat)
1978         (ggc_internal_zone_vec_alloc_stat)
1979         (ggc_alloc_zone_rtx_def_stat)
1980         (ggc_alloc_zone_tree_node_stat)
1981         (ggc_alloc_zone_cleared_tree_node_stat)
1982         (ggc_alloc_cleared_gimple_statement_d_stat): New.
1983
1984         * ggc-common.c: Include ggc-internal.h.
1985         (ggc_internal_cleared_alloc_stat): Rename from
1986         ggc_alloc_cleared_stat.
1987         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
1988         (ggc_calloc): Remove.
1989         (ggc_cleared_alloc_htab_ignore_args): New.
1990         (ggc_cleared_alloc_ptr_array_two_args): New.
1991         (ggc_splay_alloc): Add obj_type parameter.
1992         (init_ggc_heuristics): Formatting fixes.
1993
1994         * ggc-none.c: Update copyright year.
1995         (ggc_alloc_stat): Rename to ggc_alloc_stat.
1996         (ggc_alloc_cleared_stat): Rename to
1997         ggc_internal_cleared_alloc_stat.
1998         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
1999
2000         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
2001         Remove references to ggc_alloc in comments.
2002         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2003         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2004         (new_ggc_zone, destroy_ggc_zone): Remove.
2005         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2006
2007         * ggc-zone.c: Include ggc-internal.h.  Remove references to
2008         ggc_alloc in comments.
2009         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2010         (ggc_internal_alloc_zone_pass_stat): New.
2011         (ggc_internal_cleared_alloc_zone_stat): New.
2012         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2013         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2014         (new_ggc_zone, destroy_ggc_zone): Remove.
2015
2016         * stringpool.c: Update copyright year.  Include ggc-internal.h
2017         (digit_vector): Make static.
2018         (digit_string): Moved from ggc.h.
2019         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2020         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2021
2022         * Makefile.in (GGC_INTERNAL_H): New.
2023         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2024         $(GGC_INTERNAL_H) to dependencies.
2025
2026         * gentype.c: Update copyright year.
2027         (walk_type): Accept variable_size GTY option.
2028         (USED_BY_TYPED_GC_P): New macro.
2029         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
2030         whitespace at the end of strings.
2031         (get_type_specifier, variable_size_p): New functions.
2032         (alloc_quantity, alloc_zone): New enums.
2033         (write_typed_alloc_def): New function.
2034         (write_typed_struct_alloc_def): Likewise.
2035         (write_typed_typed_typedef_alloc_def): Likewise.
2036         (write_typed_alloc_defns): Likewise.
2037         (output_typename, write_splay_tree_allocator_def): Likewise.
2038         (write_splay_tree_allocators): Likewise.
2039         (main): Call write_typed_alloc_defns and
2040         write_splay_tree_allocators.
2041
2042         * lto-streamer.h (lto_file_decl_data_ptr): New.
2043
2044         * passes.c (order): Define using cgraph_node_ptr.
2045
2046         * strinpool.c (struct string_pool_data): Declare nested_ptr using
2047         ht_identifier_ptr.
2048
2049         * gimple.h (union gimple_statement_d): Likewise.
2050
2051         * rtl.h (struct rtx_def): Likewise.
2052         (struct rtvec_def): Likewise.
2053
2054         * tree.h (union tree_node): Likewise.
2055
2056         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2057
2058         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2059
2060         * tree-scalar-evolution.c (scev_initialize): Likewise.
2061
2062         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2063
2064         * dwarf2asm.c (dw2_force_const_mem): Likewise.
2065
2066         * omp-low.c (lower_omp_critical): Likewise.
2067
2068         * bitmap.h (struct bitmap_head_def): Update comment to not
2069         reference ggc_alloc.
2070
2071         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2072
2073         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2074
2075         * ipa-prop.c (duplicate_ggc_array): Rename to
2076         duplicate_ipa_jump_func_array.  Use typed GC allocation.
2077         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2078
2079         * gimple.c (gimple_alloc_stat): Use
2080         ggc_alloc_cleared_gimple_statement_d_stat.
2081
2082         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2083
2084         * tree.c (make_node_stat): Use
2085         ggc_alloc_zone_cleared_tree_node_stat.
2086         (make_tree_vec_stat): Likewise.
2087         (build_vl_exp_stat): Likewise.
2088         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2089         (make_tree_binfo_stat): Likewise.
2090         (tree_cons_stat): Likewise.
2091
2092         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2093         (shallow_copy_rtx_stat): Likewise.
2094         (make_node_stat): Likewise.
2095
2096         * lto-symtab.c: Fix comment.
2097
2098         * tree-cfg.c (create_bb): Update comment to not reference
2099         ggc_alloc_cleared.
2100         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2101
2102         * varpool.c (varpool_node): Use typed GC allocation.
2103         (varpool_extra_name_alias): Likewise.
2104
2105         * varasm.c (emutls_decl): Likewise.
2106         (get_unnamed_section): Likewise.
2107         (get_noswitch_section): Likewise.
2108         (get_section): Likewise.
2109         (get_block_for_section): Likewise.
2110         (build_constant_desc): Likewise.
2111         (create_constant_pool): Likewise.
2112         (force_const_mem): Likewise.
2113
2114         * tree.c (build_vl_exp_stat): Likewise.
2115         (build_real): Likewise.
2116         (build_string): Likewise.
2117         (decl_debug_expr_insert): Likewise.
2118         (decl_value_expr_insert): Likewise.
2119         (type_hash_add): Likewise.
2120         (build_omp_clause): Likewise.
2121
2122         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2123
2124         * tree-ssa.c (init_tree_ssa): Likewise.
2125
2126         * tree-ssa-structalias.c (heapvar_insert): Likewise.
2127
2128         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2129
2130         * tree-ssa-loop-niter.c (record_estimate): Likewise.
2131
2132         * tree-ssa-alias.c (get_ptr_info): Likewise.
2133
2134         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2135
2136         * tree-phinodes.c (allocate_phi_node): Likewise.
2137
2138         * tree-iterator.c (tsi_link_before): Likewise.
2139         (tsi_link_after): Likewise.
2140
2141         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2142
2143         * tree-dfa.c (create_var_ann): Likewise.
2144
2145         * tree-cfg.c (create_bb): Likewise.
2146
2147         * toplev.c (alloc_for_identifier_to_locale): Likewise.
2148         (general_init): Likewise.
2149
2150         * stringpool.c (stringpool_ggc_alloc): Likewise.
2151         (gt_pch_save_stringpool): Likewise.
2152
2153         * sese.c (if_region_set_false_region): Likewise.
2154
2155         * passes.c (do_per_function_toporder): Likewise.
2156
2157         * optabs.c (set_optab_libfunc): Likewise.
2158         (set_conv_libfunc): Likewise.
2159
2160         * lto-symtab.c (lto_symtab_register_decl): Likewise.
2161
2162         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2163         (input_eh_region): Likewise.
2164         (input_eh_lp): Likewise.
2165         (make_new_block): Likewise.
2166         (unpack_ts_real_cst_value_fields): Likewise.
2167
2168         * lto-section-in.c (lto_new_in_decl_state): Likewise.
2169
2170         * lto-cgraph.c (input_node_opt_summary): Likewise.
2171
2172         * loop-init.c (loop_optimizer_init): Likewise.
2173
2174         * lambda.h (lambda_vector_new): Likewise.
2175
2176         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2177
2178         * ira.c (update_equiv_regs): Likewise.
2179
2180         * ipa.c (cgraph_node_set_new): Likewise.
2181         (cgraph_node_set_add): Likewise.
2182         (varpool_node_set_new): Likewise.
2183         (varpool_node_set_add): Likewise.
2184
2185         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2186         (duplicate_ipa_jump_func_array): Likewise.
2187         (ipa_read_node_info): Likewise.
2188
2189         * ipa-cp.c (ipcp_create_replace_map): Likewise.
2190
2191         * integrate.c (get_hard_reg_initial_val): Likewise.
2192
2193         * gimple.c (gimple_alloc_stat): Likewise.
2194         (gimple_build_omp_for): Likewise.
2195         (gimple_seq_alloc): Likewise.
2196         (gimple_copy): Likewise.
2197
2198         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2199         (gsi_insert_after_without_update): Likewise.
2200
2201         * function.c (add_frame_space): Likewise.
2202         (insert_temp_slot_address): Likewise.
2203         (assign_stack_temp_for_type): Likewise.
2204         (allocate_struct_function): Likewise.
2205         (types_used_by_var_decl_insert): Likewise.
2206
2207         * except.c (init_eh_for_function): Likewise.
2208         (gen_eh_region): Likewise.
2209         (gen_eh_region_catch): Likewise.
2210         (gen_eh_landing_pad): Likewise.
2211         (add_call_site): Likewise.
2212
2213         * emit-rtl.c (get_mem_attrs): Likewise.
2214         (get_reg_attrs): Likewise.
2215         (start_sequence): Likewise.
2216         (init_emit): Likewise.
2217
2218         * dwarf2out.c (new_cfi): Likewise.
2219         (queue_reg_save): Likewise.
2220         (dwarf2out_frame_init): Likewise.
2221         (new_loc_descr): Likewise.
2222         (find_AT_string): Likewise.
2223         (new_die): Likewise.
2224         (add_var_loc_to_decl): Likewise.
2225         (clone_die): Likewise.
2226         (clone_as_declaration): Likewise.
2227         (break_out_comdat_types): Likewise.
2228         (new_loc_list): Likewise.
2229         (loc_descriptor): Likewise.
2230         (add_loc_descr_to_each): Likewise.
2231         (add_const_value_attribute): Likewise.
2232         (tree_add_const_value_attribute): Likewise.
2233         (add_comp_dir_attribute): Likewise.
2234         (add_name_and_src_coords_attributes): Likewise.
2235         (lookup_filename): Likewise.
2236         (store_vcall_insn): Likewise.
2237         (dwarf2out_init): Likewise.
2238
2239         * dbxout.c (dbxout_init): Likewise.
2240
2241         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2242
2243         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2244
2245         * config/score/score7.c (score7_output_external): Likewise.
2246
2247         * config/score/score3.c (score3_output_external): Likewise.
2248
2249         * config/s390/s390.c (s390_init_machine_status): Likewise.
2250
2251         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2252         (rs6000_init_machine_status): Likewise.
2253         (output_toc): Likewise.
2254
2255         * config/pa/pa.c (pa_init_machine_status): Likewise.
2256         (get_deferred_plabel): Likewise.
2257
2258         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2259
2260         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2261
2262         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2263
2264         * config/mep/mep.c (mep_init_machine_status): Likewise.
2265         (mep_note_pragma_flag): Likewise.
2266
2267         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2268
2269         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2270
2271         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2272
2273         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2274         (i386_pe_maybe_record_exported_symbol): Likewise.
2275
2276         * config/i386/i386.c (get_dllimport_decl): Likewise.
2277         (ix86_init_machine_status): Likewise.
2278         (assign_386_stack_local): Likewise.
2279
2280         * config/frv/frv.c (frv_init_machine_status): Likewise.
2281
2282         * config/darwin.c (machopic_indirection_name): Likewise.
2283
2284         * config/cris/cris.c (cris_init_machine_status): Likewise.
2285
2286         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2287
2288         * config/avr/avr.c (avr_init_machine_status): Likewise.
2289
2290         * config/arm/arm.c (arm_init_machine_status): Likewise.
2291
2292         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2293         (alpha_need_linkage): Likewise.
2294         (alpha_use_linkage): Likewise.
2295
2296         * cgraph.c (cgraph_allocate_node): Likewise.
2297         (cgraph_create_edge_1): Likewise.
2298         (cgraph_create_indirect_edge): Likewise.
2299         (cgraph_add_asm_node): Likewise.
2300
2301         * cfgrtl.c (init_rtl_bb_info): Likewise.
2302
2303         * cfgloop.c (alloc_loop): Likewise.
2304         (rescan_loop_exit): Likewise.
2305
2306         * cfg.c (init_flow): Likewise.
2307         (alloc_block): Likewise.
2308         (unchecked_make_edge): Likewise.
2309
2310         * c-parser.c (c_parse_init): Likewise.
2311         (c_parse_file): Likewise.
2312
2313         * c-decl.c (bind): Likewise.
2314         (record_inline_static): Likewise.
2315         (push_scope): Likewise.
2316         (make_label): Likewise.
2317         (lookup_label_for_goto): Likewise.
2318         (finish_struct): Likewise.
2319         (finish_enum): Likewise.
2320         (c_push_function_context): Likewise.
2321
2322         * bitmap.c (bitmap_element_allocate): Likewise.
2323         (bitmap_gc_alloc_stat): Likewise.
2324
2325         * alias.c (record_alias_subset): Likewise.
2326         (init_alias_analysis): Likewise.
2327
2328 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
2329
2330         * fold-const.c (fold_comparison): Remove redundant parenthesis.
2331         * tree-inline.c (expand_call_inline): Pass translated return value of
2332         cgraph_inline_failed_string to diagnostic function.
2333
2334 2010-06-08  Andrew Pinski <pinskia@gmail.com>
2335             Shujing Zhao  <pearly.zhao@oracle.com>
2336
2337         PR c/37724
2338         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2339         implicit bad conversions is initialization.
2340         (error_init): Use gmsgid instead of msgid for argument name and change
2341         the call for error.
2342         (pedwarn_init): Use gmsgid instead of msgid for argument name and
2343         change the call for pedwarn.
2344         (warning_init): Use gmsgid instead of msgid for argument name and
2345         change the call for warning.
2346
2347 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
2348
2349         * config/mips/mips-protos.h (mips_print_operand): Delete.
2350         (mips_print_operand_address): Delete.
2351         * config/mips/mips.h (mips_print_operand_punct): Delete.
2352         (PRINT_OPERAND): Delete.
2353         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2354         (PRINT_OPERAND_ADDRESS): Delete.
2355         * config/mips/mips.c (mips_print_operand_punct): Make static.
2356         (mips_print_operand_address): Make static.
2357         (mips_print_operand): Make static.  Call
2358         mips_print_operand_punct_valid_p.
2359         (mips_print_operand_punct_valid_p): New function.
2360         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2361         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2362
2363 2010-06-07  Jan Hubicka  <jh@suse.cz>
2364
2365         PR middle-end/44454
2366         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2367         are allocated.
2368
2369 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2370
2371         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2372         name of RECORD.
2373
2374 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2375
2376         * doc/sourcebuild.texi (Effective-Target Keywords, Other
2377         attributes): Document gas.
2378
2379 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
2380
2381         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2382         <TYPE_LEA>: Split instruction.
2383         <default>: Remove alternative 2 handling.
2384         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2385         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2386         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2387
2388         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2389         (ashift_zext lea splitter): Use DImode for multiplication.
2390
2391         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2392         to generate addition.
2393
2394 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
2395
2396         * common.opt (fira-verbose): Use Var.
2397         (fpcc-struct-return): Use Init instead of VarExists.
2398         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2399         toplev.c.
2400         * flags.h (flag_signed_char, flag_short_enums,
2401         flag_pcc_struct_return, flag_ira_verbose,
2402         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2403         * toplev.c (flag_detailed_statistics, flag_signed_char,
2404         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2405         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2406         * toplev.h (flag_crossjumping, flag_if_conversion,
2407         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2408         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2409         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2410         flag_cprop_registers, time_report, flag_ira_loop_pressure,
2411         flag_ira_coalesce, flag_ira_move_spills,
2412         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2413
2414 2010-06-07  Jan Hubicka  <jh@suse.cz>
2415
2416         * df-core.c (df_analyze_problem): Do verification after allocation.
2417
2418         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2419         (df_lr_alloc): Initialize problem data; move bitmaps to
2420         lr_bitmaps obstack.
2421         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2422         (df_lr_verify_solution_start): Do not initialize problem data;
2423         allocate bitmaps in lr_bitmaps.
2424         (df_lr_verify_solution_end): Do not free problem data.
2425
2426 2010-06-07  Jan Hubicka  <jh@suse.cz>
2427
2428         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2429         if caller is noreturn.
2430         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2431         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2432         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2433         * ipa-pure-const.c (check_decl): Add IPA parameter.
2434         (state_from_flags): New function.
2435         (better_state, worse_state): New functions.
2436         (check_call): When in IPA mode, do not care about callees.
2437         (check_load, check_store): Update.
2438         (check_ipa_load, check_ipa_store): New.
2439         (check_stmt): When in IPA mode, use IPA checkers.
2440         (analyze_function): Use state_from_flags.
2441         (propagate): Check indirect edges and references.
2442
2443 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
2444
2445         PR rtl-optimization/44404
2446         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2447         of count_occurrences to see if it's safe to modify mem_insn.
2448
2449 2010-06-07  Richard Guenther  <rguenther@suse.de>
2450
2451         * gimplify.c (gimplify_cleanup_point_expr): For empty body
2452         and EH-only cleanup drop the cleanup instead of inserting it
2453         unconditionally.
2454
2455 2010-06-07  Ira Rosen  <irar@il.ibm.com>
2456
2457         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2458         documentation.
2459         * targhooks.c (default_builtin_vectorization_cost): New function.
2460         * targhooks.h (default_builtin_vectorization_cost): Declare.
2461         * target.h (enum vect_cost_for_stmt): Define.
2462         (builtin_vectorization_cost): Change argument and comment.
2463         * tree-vectorizer.h: Remove cost model macros.
2464         * tree-vect-loop.c: Include target.h.
2465         (vect_get_cost): New function.
2466         (vect_estimate_min_profitable_iters): Replace cost model macros with
2467         calls to vect_get_cost.
2468         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2469         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2470         default implementation.
2471         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2472         calls to target hook builtin_vectorization_cost.
2473         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2474         Likewise.
2475         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2476         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2477         implementation to return costs.
2478         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2479         * config/spu/spu.h: Remove vectorizer cost model macros.
2480         * config/i386/i386.h: Likewise.
2481         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2482         a call to target hook builtin_vectorization_cost.
2483
2484 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
2485
2486         PR target/44319
2487         * config/i386/i386.c (override_options): Turn zee pass on for level 2
2488         and above and defer till target is known.
2489         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2490         turn off otherwise.
2491
2492 2010-05-25  Jan Hubicka  <jh@suse.cz>
2493
2494         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2495         (df_compact_blocks): Likewise.
2496         * df.h (struct df): Turn hardware_regs_used,
2497         regular_block_artificial_uses, eh_block_artificial_uses,
2498         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2499         bitmap_head.
2500         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2501         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2502         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2503         df_scan_blocks, df_insn_delete, df_insn_rescan,
2504         df_insn_rescan_debug_internal, df_insn_rescan_all,
2505         df_process_deferred_rescans, df_process_deferred_rescans,
2506         df_notes_rescan, df_get_call_refs, df_get_call_refs,
2507         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2508         df_record_entry_block_defs, df_record_exit_block_uses,
2509         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2510         df_scan_verify): Update.
2511
2512 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
2513
2514         PR c++/44188
2515         * c-common.c (is_typedef_decl): Move this definition ...
2516         * tree.c (is_typedef_decl): ... here.
2517         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2518         * c-common.h (is_typedef_decl): Move this declaration ...
2519         * tree.h (is_typedef_decl): ... here.
2520         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2521         * dwarf2out.c (is_naming_typedef_decl): New function.
2522         (gen_tagged_type_die): Split out of ...
2523         (gen_type_die_with_usage): ... this function. When an anonymous
2524         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2525         is emitted for the typedef.
2526         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2527         anonymous tagged types.
2528
2529 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2530
2531         PR c/20000
2532         * c-decl.c (grokdeclarator): Delete warning.
2533
2534 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
2535
2536         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
2537         newly built CALL_EXPR.
2538         * tree-profile.c (tree_profiling): Don't profile functions produced
2539         for built-in stuff.
2540
2541 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
2542
2543         PR bootstrap/44427
2544         PR bootstrap/44428
2545         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
2546         endianness-independent.
2547
2548 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
2549
2550         * c-common.c: Move to c-family/.
2551         * c-common.def: Likewise.
2552         * c-common.h: Likewise.
2553         * c-cppbuiltin.c: Likewise.
2554         * c-dump.c: Likewise.
2555         * c-format.c: Likewise.
2556         * c-format.h : Likewise.
2557         * c-gimplify.c: Likewise.
2558         * c-lex.c: Likewise.
2559         * c-omp.c: Likewise.
2560         * c.opt: Likewise.
2561         * c-opts.c: Likewise.
2562         * c-pch.c: Likewise.
2563         * c-ppoutput.c: Likewise.
2564         * c-pragma.c: Likewise.
2565         * c-pragma.h: Likewise.
2566         * c-pretty-print.c: Likewise.
2567         * c-pretty-print.h: Likewise.
2568         * c-semantics.c: Likewise.
2569         * stub-objc.c: Likewise.
2570
2571         * gengtype.c (get_file_langdir): Special-case files in c-family/.
2572         (get_output_file_with_visibility): Fix name for c-common.h.
2573         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
2574
2575         * c-tree.h: Update include path for moved files.
2576         * c-lang.c: Likewise.
2577         * c-lang.h: Likewise.
2578         * c-parser.c: Likewise.
2579         * c-convert.c: Likewise.
2580         * c-decl.c: Likewise.
2581         * c-objc-common.c: Likewise.
2582         * configure.ac: Make sure c-family/ exists in the build directory.
2583         * configure: Regenerate.
2584         * Makefile.in: Update paths for moved files.  Regroup files per
2585         location and update dependencies.  Move generated_files down after
2586         ALL_GTFILES_H.
2587
2588         * config/spu/spu-c.c: Update paths for moved files.
2589         * config/mep/mep-pragma.c: Likewise.
2590         * config/darwin-c.c: Likewise.
2591         * config/i386/msformat-c.c: Likewise.
2592         * config/i386/i386-c.c: Likewise.
2593         * config/avr/avr-c.c: Likewise.
2594         * config/sol2-c.c: Likewise.
2595         * config/ia64/ia64-c.c: Likewise.
2596         * config/rs6000/rs6000-c.c: Likewise.
2597         * config/arm/arm.c: Likewise.
2598         * config/arm/arm-c.c: Likewise.
2599         * config/h8300/h8300.c: Likewise.
2600         * config/v850/v850-c.c: Likewise.
2601
2602         * config/t-darwin: Fix dependencies for moved files.
2603         * config/t-sol2: Fix dependencies for moved files.
2604         * config/mep/t-mep: Fix dependencies for moved files.
2605         * config/ia64/t-ia64: Fix dependencies for moved files.
2606         * config/rs6000/t-rs6000: Fix dependencies for moved files.
2607         * config/v850/t-v850: Fix dependencies for moved files.
2608         * config/v850/t-v850e: Fix dependencies for moved files.
2609
2610         * config/m32c/m32c-pragma.c
2611
2612         * po/exgettext: Look in c-family/ also.
2613
2614 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
2615
2616         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
2617         (mark_control_dependent_edges_necessary): Call it instead of marking
2618         the last statement manually.
2619         (propagate_necessity): Likewise.
2620
2621 2010-06-05  Jan Hubicka  <jh@suse.cz>
2622
2623         * basic-block.h (compute_dominance_frontiers): Updated.
2624         (compute_idf): Likewise.
2625
2626         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
2627         for dominance frontiers.
2628         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
2629         (insert_updated_phi_nodes_for): Likewise.
2630         (update_ssa): Likewise.
2631         * cfganal.c (compute_dominance_frontiers_1): Likewise.
2632         (compute_dominance_frontiers): Likewise.
2633         (compute_idf): Likewise.
2634         * df-problems.c (df_md_local_compute): Likewise.
2635
2636 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
2637
2638         * target.h (struct gcc_target): Add memory_move_cost field.
2639         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
2640         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
2641         * targhooks.c (default_memory_move_cost): New function.
2642         * targhooks.h (default_memory_move_cost): Declare function.
2643         * reload.h (memory_move_cost): Declare.
2644         (memory_move_secondary_cost): Change type of 'in' argument to bool.
2645         * reginfo.c (memory_move_cost): New function.
2646         (memory_move_secondary_cost): Change type of 'in' argument to bool.
2647         * ira.h (ira_memory_move_cost): Update comment.
2648         * ira.c: (ira_memory_move_cost): Update comment.
2649         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
2650         with memory_move_cost.
2651         * postreload.c (reload_cse_simplify_set): (Ditto.).
2652         * reload1.c (choose_reload_regs): (Ditto.).
2653         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
2654         (MEMORY_MOVE_COST):  Revise documentation.
2655
2656         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2657         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2658         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
2659         type of 'in' argument to bool.
2660         (TARGET_MEMORY_MOVE_COST): Define.
2661
2662 2010-06-05  Jan Hubicka  <jh@suse.cz>
2663
2664         * ipa-pure-const.c (propagate): Fix typo in handling of functions
2665         that cannot return.  Be more careful when merging the results with
2666         previously known ones.
2667
2668 2010-06-05  Matthias Klose  <doko@ubuntu.com>
2669
2670         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
2671         function to add the -iplugindir option.
2672         (find_plugindir_spec_function): Add new declaration and function.
2673         (static_spec_func): Use it for "find-plugindir".
2674
2675 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
2676
2677         PR c++/44361
2678         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
2679         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
2680         statement expression.
2681
2682 2010-06-05  Jan Hubicka  <jh@suse.cz>
2683
2684         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
2685         (df_rd_problem_data): Convert sparse_invalidated_by_call,
2686         dense_invalidated_by_call to bitmap head.
2687         (df_rd_alloc, df_rd_bb_local_compute_process_def,
2688         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
2689         df_rd_start_dump, df_lr_verify_transfer_functions,
2690         df_live_verify_transfer_functions, df_chain_create_bb,
2691         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
2692         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
2693         df_simulate_one_insn_forwards, df_md_alloc,
2694         df_md_bb_local_compute_process_def,
2695         df_md_bb_local_compute_process_def, df_md_local_compute,
2696         df_md_transfer_function df_md_free): Update.
2697
2698 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
2699
2700         PR c/44322
2701         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
2702         target type for ADDR_EXPR; require no changes to qualifiers except
2703         for function types.
2704         * c-tree.h (c_build_type_variant): Remove.
2705
2706 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
2707
2708         * genautomata.c (get_excl_set): Do work per element, not per char.
2709         (check_presence_pattern_sets): Similar.
2710         (check_absence_pattern_sets): Similar.
2711
2712 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
2713
2714         * genautomata.c (curr_state_pass_num): Delete.
2715         (min_issue_delay_pass_states): Delete.
2716         (min_issue_delay): Delete.
2717         (initiate_min_issue_delay_pass_states): Delete.
2718         (output_min_issue_delay_table): Compute min_issue_delay_vect
2719         using a breadth-first search variant.
2720         (output_tables): Don't call initiate_min_issue_delay_pass_states.
2721
2722 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2723
2724         PR boostrap/44421
2725         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
2726         (df_byte_lr_bb_local_compute): Likewise.
2727
2728 2010-06-03  Jason Merrill  <jason@redhat.com>
2729
2730         Implement noexcept operator (5.3.7)
2731         * c-common.c (c_common_reswords): Add noexcept.
2732         * c-common.h (enum rid): Add RID_NOEXCEPT.
2733
2734 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
2735
2736         * config/darwin-driver.c (darwin_default_min_version): Use
2737         GCC-specific formats in diagnostics.
2738         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
2739         diagnostics.
2740         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
2741         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
2742         eval_spec_function, handle_braces, process_brace_body, main,
2743         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
2744         getenv_spec_function, compare_version_strings,
2745         version_compare_spec_function): Use GCC-specific formats in
2746         diagnostics.
2747
2748 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
2749
2750         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
2751         that operand 0 and operand 1 are equal.
2752         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
2753         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
2754         and operand 1 are equal.
2755         <default>: Ditto.  Remove ??? comment.
2756         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
2757         and operand 1 are equal.
2758         <default>: Ditto.  Remove ??? comment.
2759         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
2760         are equal.
2761         (*add<mode>_4) <default>: Ditto.
2762         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
2763
2764 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
2765
2766         * config/i386/i386-protos.h (ix86_print_operand): Declare.
2767         * config/i386/i386.c (ix86_print_operand): Make non-static.
2768         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
2769         * output.h (output_operand): Declare.
2770         * final.c (output_operand): Make non-static.
2771
2772 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
2773
2774         PR rtl-optimization/44013
2775         * sched-deps.c (add_dependence_list_and_free): Don't free lists
2776         when processing debug insns.
2777
2778         PR debug/41371
2779         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
2780         recursing.  Check that recursion is bounded.  Rename inner var
2781         to avoid hiding incoming argument.
2782
2783 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
2784
2785         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
2786         operands[2] == 255.
2787         (*addqi_3): Ditto.
2788         (*addqi_4): Ditto.
2789         (*addqi_5): Ditto.
2790         (*addqi_ext_1_rex64): Ditto.
2791         (*addqi_ext_1): Ditto.
2792
2793         (*addqi_4): Check for incdec_operand in QImode.
2794
2795         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
2796         using SWI mode iterator.
2797         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
2798         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
2799         mode iterator.
2800         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
2801         using SWI mode iterator.
2802
2803 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2804
2805         PR c/25880
2806         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
2807         * c-format.c (gcc_diag_flag_specs): Add hash.
2808         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
2809         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
2810         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
2811         pp_c_cv_qualifiers. Handle qualifiers spelling here.
2812         (pp_c_type_qualifier_list): Call the function above.
2813         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
2814         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
2815         (WARN_FOR_QUALIFIERS): New macro.
2816         (convert_for_assignment): Use it.
2817
2818 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
2819
2820         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
2821
2822 2010-06-04  Jan Hubicka  <jh@suse.cz>
2823
2824         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
2825         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
2826         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
2827         DF_BYTE_LR_OUT): Update for embedded bitmaps.
2828         * fwprop.c (single_def_use_enter_block): Likewise.
2829         * ddg.c (create_ddg_dep_from_intra_loop_link,
2830         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
2831         * loop-iv.c (latch_dominating_def): Likewise.
2832         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
2833         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
2834         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
2835         df_rd_transfer_function, df_rd_top_dump,
2836         df_rd_bottom_dump): Update.
2837         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
2838         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
2839         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
2840         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
2841         df_lr_verify_solution_start, df_lr_verify_solution_end,
2842         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
2843         df_live_free_bb_info, df_live_alloc, df_live_reset,
2844         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
2845         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
2846         df_live_verify_solution_start, df_live_verify_solution_end,
2847         df_live_verify_transfer_functions, df_chain_create_bb,
2848         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
2849         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2850         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
2851         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
2852         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
2853         df_byte_lr_transfer_function, df_byte_lr_top_dump,
2854         df_byte_lr_bottom_dump, df_create_unused_note,
2855         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
2856         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
2857         df_md_transfer_function, df_md_init, df_md_confluence_0,
2858         df_md_confluence_n,
2859         df_md_top_dump, df_md_bottom_dump): Update.
2860         (struct df_lr_problem_data): Embedd bitmap headers.
2861
2862 2010-06-04  Jan Hubicka  <jh@suse.cz>
2863
2864         * dce.c (dce_process_block): Do not re-scan already marked
2865         instructions.
2866
2867 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
2868
2869         PR rtl-optimization/39871
2870         PR rtl-optimization/40615
2871         PR rtl-optimization/42500
2872         PR rtl-optimization/42502
2873         * ira.c (init_reg_equiv_memory_loc: New function.
2874         (ira): Call it twice.
2875         * reload.h (calculate_elim_costs_all_insns): Declare.
2876         * ira-costs.c: Include "reload.h".
2877         (regno_equiv_gains): New static variable.
2878         (init_costs): Allocate it.
2879         (finish_costs): Free it.
2880         (ira_costs): Call calculate_elim_costs_all_insns.
2881         (find_costs_and_classes): Take estimated elimination costs
2882         into account.
2883         (ira_adjust_equiv_reg_cost): New function.
2884         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
2885         * reload1.c (init_eliminable_invariants, free_reg_equiv,
2886         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
2887         (elim_bb): New static variable.
2888         (reload): Move code out of here into init_eliminable_invariants and
2889         free_reg_equiv.  Call them.
2890         (calculate_elim_costs_all_insns): New function.
2891         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
2892         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
2893         but call note_reg_elim_costly if we turned a valid memory address
2894         into an invalid one.
2895         * Makefile.in (ira-costs.o): Depend on reload.h.
2896
2897 2010-06-04  Julian Brown  <julian@codesourcery.com>
2898
2899         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
2900         for pool ranges.
2901
2902 2010-06-04  Richard Guenther  <rguenther@suse.de>
2903
2904         PR lto/41584
2905         * cgraph.h (struct varpool_node): Add lto_file_data field.
2906         * lto-cgraph.c (input_varpool_node): Initialize it.
2907
2908 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
2909
2910         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
2911         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
2912         predicate in "type" attribute calculation.
2913         (*addsi_1_zext): Ditto.
2914         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
2915         (*addsi_2_zext): Ditto.
2916         (*add<mode>_3): Ditto.
2917         (*addsi_3_zext): Ditto.
2918         (*add<mode>_5): Ditto.
2919
2920 2010-06-03  Jan Hubicka  <jh@suse.cz>
2921
2922         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
2923         of bitmap_bit_p.
2924         * cfganal.c (compute_dominance_frontiers_1): Likewise.
2925
2926 2010-06-03  Jan Hubicka  <jh@suse.cz>
2927
2928         * df-problems.c (df_create_unused_note, df_note_bb_compute):
2929         micro-optimize the checks when to add new note.
2930
2931 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
2932
2933         * final.c (output_asm_insn): Call
2934         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
2935         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
2936         (output_address): Call targetm.asm_out.print_operand_address.
2937         Update comments.
2938         * target.h (struct gcc_target): Add print_operand,
2939         print_operand_address, and print_operand_punct_valid_p fields.
2940         * targhooks.h (default_print_operand): Declare.
2941         (default_print_operand_address): Declare.
2942         (default_print_operand_punct_valid_p): Declare.
2943         * targhooks.c (default_print_operand): Define.
2944         (default_print_operand_address): Define.
2945         (default_print_operand_punct_valid_p): Define.
2946         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
2947         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
2948         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
2949         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
2950         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
2951         * vmsdbgout.c (addr_const_to_string): Update comment.
2952         * config/i386/i386.c (print_operand): Rename to...
2953         (ix86_print_operand): ...this.  Make static.
2954         (print_operand_address): Rename to...
2955         (ix86_print_operand_address): ...this.  Make static.  Call
2956         ix86_print_operand instead of PRINT_OPERAND.
2957         (ix86_print_operand_punct_valid_p): New function.
2958         (TARGET_PRINT_OPERAND): Define.
2959         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2960         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2961         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
2962         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2963         (PRINT_OPERAND): Delete.
2964         (PRINT_OPERAND_ADDRESS): Delete.
2965         * config/i386/i386-protos.h (print_operand): Delete prototype.
2966         (print_operand_address): Delete prototype.
2967
2968 2010-06-03  Richard Guenther  <rguenther@suse.de>
2969
2970         PR tree-optimization/44403
2971         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2972         Preserve pointer qualifiers.
2973         (vect_create_data_ref_ptr): Likewise.
2974
2975 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2976
2977         PR c++/44294
2978         * defaults.h (MAX_FIXED_MODE_SIZE): New.
2979
2980         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
2981
2982 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
2983
2984         PR debug/44375
2985         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
2986         return false if merging the bbs would lead to goto_locus
2987         location being lost from the IL.
2988
2989 2010-06-03  Jan Hubicka  <jh@suse.cz>
2990             Jakub Jelinek  <jakub@redhat.com>
2991
2992         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
2993         set->regs[i] is NULL or has just one entry.
2994
2995 2010-06-03  Jan Hubicka  <jh@suse.cz>
2996
2997         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
2998         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
2999
3000 2010-06-03  Paul Brook  <paul@codesourcery.com>
3001
3002         * config/arm/arm.c (FL_TUNE): Define.
3003         (arm_default_cpu, arm_cpu_select): Remove.
3004         (all_cores): Populate core field.
3005         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3006         (arm_find_cpu): New function.
3007         (arm_handle_option): Lookup cpu/architecture names.
3008         (arm_override_options): Cleanup mcpu/march/mtune handling.
3009         (arm_file_start): Ditto.
3010
3011 2010-06-03  Alan Modra  <amodra@gmail.com>
3012
3013         PR target/44169
3014         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3015         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3016         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
3017         (rs6000_emit_load_toc_table): Likewise.
3018
3019 2010-06-02  Jan Hubicka  <jh@suse.cz>
3020
3021         * passes.c (init_optimization_passes): Put ipa reference
3022         after ipa pure-const.
3023
3024 2010-06-02  Jan Hubicka  <jh@suse.cz>
3025
3026         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3027         calls_read_all and calls_write_all.
3028         (get_reference_optimization_summary): Fix formatting.
3029         (is_proper_for_analysis): Check that decl is not readonly.
3030         (propagate_bits): Check CONST/PURE/noreturn flags.
3031         (ipa_init): Move all_module_statics to optimization_summary_obstack.
3032         (analyze_function): Ignore indirect edges.
3033         (copy_global_bitmap): For all module statics, do nothing.
3034         (generate_summary): Do not print calls_read_all/calls_write_all.
3035         (read_write_all_from_decl): Take node as argument; check
3036         cgraph_node_cannot_return.
3037         (propagate): Reorganize read_all/write_all computation;
3038         check indirect edges; check ecf flags; use all_module_statics
3039         in the results; do not free all_module_statics.
3040         (stream_out_bitmap): Handle all_module_statics.
3041         (ipa_reference_write_optimization_summary): Likewise; use
3042         varpool/cgraph encoders to get boundaries.
3043         (ipa_reference_read_optimization_summary): Read in all_module_statics;
3044         use it when possible.
3045
3046 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3047
3048         PR target/44218
3049         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3050         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3051
3052         * doc/extend.texi (powerpc builtins): Document vec_recip,
3053         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3054
3055         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3056         (rs6000_emit_swrsqrt): Ditto.
3057         (rs6000_emit_swdivsf): Delete.
3058         (rs6000_emit_swdivdf): Ditto.
3059         (rs6000_emit_swrsqrtsf): Ditto.
3060
3061         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3062         describe the reciprocal estimate support for each type.
3063         (recip_options): Map -mrecip=<opt> into option bits.
3064         (gen_2arg_fn_t): New typedef for binary rtx gen function.
3065         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3066         reciprocal estimate instructions.
3067         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3068         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3069         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
3070         cost information if -mdebug=cost or -mdebug=reg.
3071         (rs6000_override_options): Set -mrecip-precision for power6, and
3072         power7 machines.  If -mvsx or -mdfp, enable various options that
3073         came in previous instruction set ISAs, unless the option was
3074         explicitly disabled by the command line option.  Parse
3075         -mrecip=<opt> options.
3076         (rs6000_builtin_vectorized_function): Add support for vectorizing
3077         the reciprocal estimate builtins and expansions.
3078         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3079         (bdesc_2arg): Add reciprocal estimate builtins.
3080         (bdesc_1arg): Add reciprocal square root estimate builtins.
3081         (rs6000_expand_builtin): Rewrite to use a switch statement,
3082         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
3083         (rs6000_init_builtins): Create declarations for reciprocal
3084         estimate builtins.
3085         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3086         sized, prefer traditional floating point registers, if integer
3087         vector types, prefer altivec registers.  Don't actually look at
3088         the memory address any more.
3089         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3090         builtins.
3091         (rs6000_load_constant_and_splat): New helper function to load up
3092         the constant for reciprocal estimate instructions.
3093         (rs6000_emit_madd): New helper function for generating
3094         multiply/add type instructions, based on the current switches.
3095         (rs6000_emit_msub): Ditto.
3096         (rs6000_emit_mnsub): Ditto.
3097         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3098         replace a divide with a reciprocal estimate and fixup, adding
3099         support for machines with high precision and vectors.
3100         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3101         low precision machines.
3102         (rs6000_emit_swdiv): New common function to be called to replace a
3103         division with reciprocal estimate and fixup.
3104         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
3105         for double and vector types.  Add support for high precision machines.
3106
3107         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3108         the reciprocal estimate instructions can be generated.
3109         (TARGET_FRE): Ditto.
3110         (TARGET_FRSQRTES): Ditto.
3111         (TARGET_FRSQRTE): Ditto.
3112         (RS6000_RECIP_*): New macros for reciprocal estimate support.
3113
3114         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3115         square root estimate on vectors.
3116         (re<mode>2): New insn for reciprocal division estimate on vectors.
3117
3118         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3119         New builtin.
3120         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3121         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3122         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3123         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3124         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3125         (RS6000_BUILTIN_RSQRT): Ditto.
3126         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3127         floating point builtin.
3128
3129         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3130         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3131         __RECIP_PRECISION__ based on the command line switches.
3132         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3133
3134         * config/rs6000/rs6000.opt (-mrecip): Document add support for
3135         replacing division instructions with reciprocal estimate and fixup.
3136         (-mrecip=<opt>): New option.
3137         (-mrecip-precision): Ditto.
3138
3139         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3140         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3141         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3142         precision scalar.
3143
3144         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3145         (UNSPEC_VREFP): Ditto.
3146         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3147         conterparts with regard to support of -mno-fused-madd and -ffast-math.
3148         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3149         reciprocal estimate instructions to be generated.
3150         (altivec_vrefp): Ditto.
3151
3152         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3153         estimate support.
3154         (rreg): New mode attribute for reciprocal estimate support.
3155         (recip<mode>3): New insn for division using reciprocal estimate
3156         and fixup builtins.
3157         (divide define_split): New define_split to convert floating point
3158         division to use reciprocal estimate if the user used the
3159         appropriate options and the split is run when we can add new
3160         pseudo registers for the fixup.
3161         (rsqrt<mode>2): New insn for reciprocal square root support.
3162         (recipsf3): Move into recip<mode>3.
3163         (recipdf3): Ditto.
3164         (fres): Use TARGET_FRES.
3165         (rsqrtsf2): Move into rsqrt<mode>2.
3166         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3167         (copysignsf3): Add support for VSX.
3168         (fred): Use TARGET_FRE.
3169         (fred_fpr): Ditto.
3170         (rsqrtdf_internal1): New function for frsqrte instruciton.
3171
3172         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3173         (vec_rsqrt): Ditto.
3174
3175 2010-06-03  Richard Guenther  <rguenther@suse.de>
3176
3177         PR middle-end/44291
3178         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3179         (set_user_assembler_libfunc): Likewise.
3180
3181 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
3182
3183         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3184         defaults.h.
3185         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3186         to defaults.h
3187         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3188         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3189         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3190         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3191         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3192         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3193         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3194         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3195         * defaults.h: Updated for above mentioned changes.
3196
3197 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
3198
3199         * c-common.c: Remove header include of tm_p.h.
3200         * Makefile.in (c-common.o): Remove TM_P_H dependency.
3201
3202 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
3203
3204         * tree.h (struct tree_decl_map): New type.
3205         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3206         (tree_decl_map_hash): New prototype.
3207         (debug_expr_for_decl, value_expr_for_decl): Change into
3208         tree_decl_map hashtab from tree_map.
3209         (init_ttree): Adjust initialization.
3210         (tree_decl_map_hash): New function.
3211         (decl_debug_expr_lookup, decl_debug_expr_insert,
3212         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3213
3214 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3215
3216         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3217         linker emulations.
3218         * configure: Regenerate.
3219         * config.in: Regenerate.
3220
3221         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3222         (X86_64_EMULATION): Define.
3223         (TARGET_LD_EMULATION): Use them.
3224
3225         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3226         (SPARC64_EMULATION): Define.
3227         (LINK_ARCH_SPEC): Use them.
3228
3229 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
3230
3231         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3232         smallest_mode_for_size for computing the precision types of new
3233         graphite IVs.  Do not call lang_hooks.types.type_for_size.
3234
3235 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
3236
3237         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3238         information.
3239         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3240
3241 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
3242
3243         PR middle-end/44363
3244         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3245         return false instead.
3246
3247 2010-06-02  Jan Hubicka  <jh@suse.cz>
3248
3249         PR middle-end/44295
3250         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3251         create new cgraph node to check callee.
3252
3253 2010-06-02  Richard Guenther  <rguenther@suse.de>
3254
3255         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3256
3257 2010-06-02  Richard Guenther  <rguenther@suse.de>
3258
3259         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3260         (lto_wrapper_cleanup): ... this.  Do not exit.
3261         (fatal): Adjust.  Exit here.
3262         (fatal_perror): Likewise.
3263         (fatal_signal): New function.
3264         (main): Set up signal handlers to cleanup temporary files.
3265         * Makefile.in (lto-wrapper.o): Adjust dependencies.
3266
3267 2010-06-02  Richard Guenther  <rguenther@suse.de>
3268
3269         PR tree-optimization/44377
3270         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3271
3272 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3273
3274         * config/s390/2097.md (z10_fhex): Remove insn reservation.
3275         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3276         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3277         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3278         instruction.
3279         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3280
3281 2010-06-02  Jan Hubicka  <jh@suse.cz>
3282
3283         * bitmap.c (bitmap_descriptor): Add search_iter.
3284         (bitmap_find_bit): Increment it.
3285         (print_statistics): Print it.
3286
3287 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
3288
3289         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3290         instead of gimple_build_call_vec.  Delete unnecessary local variable.
3291
3292 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
3293
3294         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3295         change from yesterday.
3296
3297 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
3298
3299         * c-ada-spec.c: Clean up redundant includes.
3300
3301 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
3302
3303         * gimplify.c: Do not include except.h and optabs.h.
3304         (gimplify_body): Do not initialize RTL profiling.
3305         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3306         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3307         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3308         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3309         langhooks.h.
3310
3311         * tree-pretty-print.h: Include pretty-print.h.
3312         * gimple-pretty-print.h: Include pretty-print.h.
3313
3314         * tree-pretty-print.c: Do not include diagnostic.h.
3315         * tree-vrp.c: Likewise.
3316         * tree-tailcall.c: Likewise
3317         * tree-scalar-evolution.c: Likewise
3318         * tree-ssa-dse.c: Likewise
3319         * tree-chrec.c: Likewise
3320         * tree-ssa-sccvn.c: Likewise
3321         * tree-ssa-copyrename.c: Likewise
3322         * tree-nomudflap.c: Likewise
3323         * tree-call-cdce.c: Likewise
3324         * tree-stdarg.c: Likewise
3325         * tree-ssa-math-opts.c: Likewise
3326         * tree-nrv.c: Likewise
3327         * tree-ssa-sink.c: Likewise
3328         * tree-browser.c: Likewise
3329         * tree-ssa-loop-ivcanon.c: Likewise
3330         * tree-ssa-loop.c: Likewise
3331         * tree-parloops.c: Likewise
3332         * tree-ssa-address.c: Likewise
3333         * tree-ssa-ifcombine.c: Likewise
3334         * tree-if-conv.c: Likewise
3335         * tree-data-ref.c: Likewise
3336         * tree-affine.c: Likewise
3337         * tree-ssa-phiopt.c: Likewise
3338         * tree-ssa-coalesce.c: Likewise
3339         * tree-ssa-pre.c: Likewise
3340         * tree-ssa-live.c: Likewise
3341         * tree-predcom.c: Likewise
3342         * tree-ssa-forwprop.c: Likewise
3343         * tree-ssa-dce.c: Likewise
3344         * tree-ssa-ter.c: Likewise
3345         * tree-ssa-loop-prefetch.c: Likewise
3346         * tree-optimize.c: Likewise
3347         * tree-ssa-phiprop.c: Likewise
3348         * tree-object-size.c: Likewise
3349         * tree-outof-ssa.c: Likewise
3350         * tree-ssa-structalias.c: Likewise
3351         * tree-switch-conversion.c: Likewise
3352         * tree-ssa-reassoc.c: Likewise
3353         * tree-ssa-operands.c: Likewise
3354         * tree-vectorizer.c: Likewise
3355         * tree-vect-data-refs.c: Likewise
3356         * tree-vect-generic.c: Likewise
3357         * tree-vect-stmts.c: Likewise
3358         * tree-vect-patterns.c: Likewise
3359         * tree-vect-slp.c: Likewise
3360         * tree-vect-loop.c: Likewise
3361         * tree-ssa-loop-ivopts.c: Likewise
3362         * tree-ssa-loop-im.c: Likewise
3363         * tree-ssa-loop-niter.c: Likewise
3364         * tree-ssa-loop-unswitch.c: Likewise
3365         * tree-ssa-loop-manip.c: Likewise
3366         * tree-ssa-loop-ch.c: Likewise
3367         * tree-dump.c: Likewise
3368         * tree-complex.c: Likewise
3369
3370         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3371         * tree-ssa-uninit.c: Likewise
3372         * tree-ssa-threadupdate.c: Likewise
3373         * tree-ssa-uncprop.c: Likewise
3374         * tree-ssa-ccp.c: Likewise
3375         * tree-ssa-dom.c: Likewise
3376         * tree-ssa-propagate.c: Likewise
3377         * tree-ssa-alias.c: Likewise
3378         * tree-dfa.c: Likewise
3379         * tree-cfgcleanup.c: Likewise
3380         * tree-sra.c: Likewise
3381         * tree-ssa-copy.c: Likewise
3382         * tree-ssa.c: Likewise
3383         * tree-profile.c: Likewise
3384         * tree-cfg.c: Likewise
3385         * tree-ssa-threadedge.c: Likewise
3386         * tree-vect-loop-manip.c: Likewise
3387
3388         * tree-inline.c: Do not include diagnostic.h and expr.h.
3389         Include rtl.h.
3390         (copy_decl_for_dup_finish): Do not use NULL_RTX.
3391
3392         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3393         * tree-loop-distribution.c: Likewise.
3394
3395 2010-06-01  Jan Hubicka  <jh@suse.cz>
3396
3397         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3398
3399 2010-06-01  Jan Hubicka  <jh@suse.cz>
3400
3401         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3402         remove return value.
3403         (split_bbs_on_noreturn_calls) .... here.
3404         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3405         * tree-flow.h (fixup_noreturn_call): New.
3406
3407 2010-06-01  Jan Hubicka  <jh@suse.cz>
3408
3409         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3410
3411 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
3412
3413         * tree.h (build_nt_call_list): Delete.
3414         * tree.c (build_nt_call_list): Delete.
3415
3416 2010-06-01  Jan Hubicka  <jh@suse.cz>
3417
3418         * fwprop.c: Make emit-rtl.h include last.
3419         * rtlanal.c: Include emit-rtl.h.
3420         * genautomata.c: Output emit-rtl include into insn-automata.c
3421         * df-scan.c: Include emit-rtl.h.
3422         * haifa-sched.c: Indlude emit-rtl.h.
3423         * mode-switching.c: Indlude emit-rtl.h.
3424         * graph.c: Indlude emit-rtl.h.
3425         * sel-sched.c: Include emit-rtl.h.
3426         * sel-sched-ir.c: Include emit-rtl.h.
3427         * ira-build.c: Include emit-rtl.h.
3428         * emit-rtl.c: (first_insn, last_insn): Remove defines.
3429         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3430         Move to emit-rtl.h.
3431         (set_new_first_and_last_insn, get_last_insn_anywhere,
3432         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3433         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3434         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3435         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3436         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3437         Use accessor functions.
3438         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3439          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3440         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3441         mem_expr_equal_p): Move here from rtl.h.
3442         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3443         Move here from emit-rtl.c; make inline.
3444         * cfglayout.h: Include emit-rtl.h.
3445         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3446          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3447         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3448         mem_expr_equal_p, get_insns, set_first-insn,
3449         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3450         * reg-stack.c: Include emit-rtl.h.
3451         * dce.c: Likewise.
3452
3453 2010-06-01  Jan Hubicka  <jh@suse.cz>
3454
3455         * cgraph.h (tree_function_versioning): Update prototype.
3456         (cgraph_function_versioning): Update prototype.
3457         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3458         bitmap.
3459         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3460         (cgraph_materialize_clone, save_inline_function_body): Update use of
3461         tree_function_versioning.
3462         * tree-inline.c (copy_bb): Look for previous copied block to link
3463         after; fix debug output.
3464         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3465         (copy_body): Likewise.
3466         (expand_call_inline): Update use of copy_body.
3467         (tree_function_versioning): Update use of copy body; accept
3468         blocks_to_copy and new_entry.
3469
3470 2010-06-01  Jan Hubicka  <jh@suse.cz>
3471
3472         * gegenrtl.c: Remove unnecesary prototypes.
3473         (gendecl): Remove.
3474         (gendef): Produce static inline.
3475         (gencode): Remove.
3476         (main): Do not decode parameters; generate header only.
3477         * Makefile.in (genrtl.c): Remove.
3478
3479 2010-06-01  Jan Hubicka  <jh@suse.cz>
3480
3481         * tree-switch-conversion.c (build_one_array): Make it readonly.
3482
3483 2010-06-01  Richard Guenther  <rguenther@suse.de>
3484
3485         * optabs.c (init_optabs): Guard all accesses to reinit.
3486         * ipa-pure-const.c (propagate): Fix another typo.
3487         * opts.c (common_handle_option): Split assignment to bool.
3488         * c-opts.c (c_common_handle_option): Likewise.
3489
3490 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
3491             Matthew Gingell  <gingell@adacore.com>
3492
3493         * doc/invoke.texi: Mention -fdump-ada-spec.
3494         * tree-dump.c (dump_files): Add ada-spec.
3495         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3496         * tree-pass.h (tree_dump_index): Add TDI_ada.
3497         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3498         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3499         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3500         * c-decl.c: Include c-ada-spec.h.
3501         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3502         functions.
3503         (c_write_global_declarations): Add handling of -fdump-ada-spec.
3504         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3505         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3506         * c-ada-spec.h, c-ada-spec.c: New files.
3507
3508 2010-06-01  Richard Guenther  <rguenther@suse.de>
3509
3510         PR lto/43853
3511         * ipa-pure-const.c (get_function_state): Hand back varying state
3512         if we do not have one.
3513         (has_function_state): New function.
3514         (duplicate_node_data): Adjust.
3515         (remove_node_data): Likewise.
3516         (pure_const_write_summary): Likewise.
3517         (propagate): Likewise.  Fix typo.
3518
3519 2010-06-01  Jan Hubicka  <jh@suse.cz>
3520
3521         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
3522         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
3523         (execute_all_ipa_transforms): Do not play with the states.
3524
3525 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
3526
3527         * config/arm/t-linux-androideabi: New.
3528         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
3529
3530 2010-06-01  Jan Hubicka  <jh@suse.cz>
3531
3532         * tree-inline.c (estimate_num_insns): For stdarg functions look
3533         into call statement to count cost of argument passing.
3534
3535 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
3536
3537         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
3538         argument for fprintf.
3539         (ix86_output_addr_diff_elt): Likewise.
3540         (x86_function_profiler): Likewise.
3541         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
3542         (LPREFIX): Likewise.
3543         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3544
3545 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
3546
3547         PR target/44338
3548         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
3549         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
3550         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
3551         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
3552         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
3553         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
3554         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
3555         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
3556         TARGET_FUSED_MADD.
3557
3558 2010-05-31  Jan Hubicka  <jh@suse.cz>
3559
3560         * tree.h (tree_range_check_failed): Declare noreturn.
3561
3562 2010-05-31  Jan Hubicka  <jh@suse.cz>
3563
3564         * gimple.c (gimple_call_builtin_p): New function.
3565         * gimple.h (gimple_call_builtin_p): Declare.
3566         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
3567         to exit.
3568         (execute_warn_function_return): BUILT_IN_RETURN is return.
3569         (split_critical_edges): Return edges are not critical.
3570         (is_ctrl_altering_stmt): Builtin_in_return is altering.
3571         (gimple_verify_flow_info): Handle built_in_return.
3572         (execute_warn_function_return): Handle built_in_return.
3573         * ipa-pure-const.c (check_call): Ignore builtin_return.
3574
3575 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
3576
3577         PR middle-end/44337
3578         * expr.c (expand_assignment): Don't store anything for out-of-bounds
3579         array accesses with non-MEM.
3580
3581         PR tree-optimization/44182
3582         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
3583         newly needs to end a bb is followed by debug stmts, instead return
3584         true from the function at the end.
3585         (maybe_move_debug_stmts_to_successors): New function.
3586         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
3587
3588 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
3589
3590         PR target/44161
3591         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
3592
3593 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3594
3595         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
3596         for nested functions in non-optimized compilation.
3597
3598 2010-05-31  Richard Guenther  <rguenther@suse.de>
3599
3600         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
3601
3602 2010-05-30  Jan Hubicka  <jh@suse.cz>
3603
3604         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
3605
3606 2010-05-30  Richard Guenther  <rguenther@suse.de>
3607
3608         PR lto/42975
3609         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
3610         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
3611         no longer needed.
3612
3613 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
3614
3615         * config/darwin.c (output_objc_section_asm_op): Add comment.
3616         (name_needs_quotes): Add '_' to list of valid comment chars.
3617         (machopic_output_function_base_name): Remove unneeded quotes.
3618         (darwin_encode_section_info): Adjust asm whitespace.
3619         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
3620         (ASM_OUTPUT_LOCAL): Ditto.
3621         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
3622         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
3623         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
3624
3625 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3626
3627         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
3628         RS6000_OUTPUT_BASENAME unconditionally.
3629         (rs6000_output_function_epilogue): Likewise.
3630
3631 2010-05-30  Jan Hubicka  <jh@suse.cz>
3632
3633         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
3634         nodes.
3635
3636 2010-05-30  Richard Guenther  <rguenther@suse.de>
3637
3638         * tree-cfg.c (verify_gimple_assign_single): Implement
3639         verification for COND_EXPR rhs.
3640
3641 2010-05-30  Jan Hubicka  <jh@suse.cz>
3642
3643         * cgraph.h (cgraph_dump_file): Declare.
3644         * cgraphunit.c (cgraph_dump_file): Export.
3645         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
3646
3647 2010-05-30  Jan Hubicka  <jh@suse.cz>
3648
3649         * dwarf2out.c (reference_to_unused,
3650         premark_types_used_by_global_vars_helper): Avoid creation of new
3651         varpool nodes.
3652
3653 2010-05-30  Jan Hubicka  <jh@suse.cz>
3654
3655         * cgraph.h (cgraph_node_cannot_return,
3656         cgraph_edge_cannot_lead_to_return): New functions.
3657         * cgraph.c (cgraph_node_cannot_return,
3658         cgraph_edge_cannot_lead_to_return): Use them.
3659         * ipa-pure-const.c (pure_const_names): New static var.
3660         (check_call): Handle calls not leading to return.
3661         (pure_const_read_summary): Dump info read.
3662         (propagate): Dump info about propagation process; ignore side effects
3663         of functions not leading to exit; fix handling of pure functions.
3664
3665 2010-05-30  Jan Hubicka  <jh@suse.cz>
3666
3667         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
3668         for tail call epilogues.
3669
3670 2010-05-30  Jan Hubicka  <jh@suse.cz>
3671
3672         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
3673         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
3674         dump files.
3675
3676 2010-05-29  Jan Hubicka  <jh@suse.cz>
3677
3678         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
3679         node; remove references in node we no longer keep in cgrpah but need
3680         body of.
3681
3682 2010-05-29  Jan Hubicka  <jh@suse.cz>
3683
3684         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
3685
3686 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3687
3688         PR target/44165
3689         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
3690
3691 2010-05-29  Jan Hubicka  <jh@suse.cz>
3692
3693         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
3694         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
3695         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
3696         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
3697         debug_names_replaced_by, debug_update_ssa): Likewise.
3698         * sbitmap.c (debug_sbitmap): Likewise.
3699         * genrecog.c (debug_decision, debug_decision_list): Likewise.
3700         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
3701         debug_tree_chain): Likewise.
3702         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
3703         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
3704         * optabs.c  (debug_optab_libfuncs): Likewise.
3705         (verify_loop_closed_ssa): Likewise.
3706         * value-prof.c (verify_histograms): Likewise.
3707         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
3708         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
3709         * cfghooks.c (verify_flow_info): Likewise.
3710         * fold-const.c (debug_fold_checksum): Likewise.
3711         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
3712         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
3713         Likewise.
3714         * omega.c (debug_omega_problem): Likewise.
3715         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
3716         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
3717         * dominance.c (verify_dominators, debug_dominance_info,
3718         debug_dominance_tree): Likewise.
3719         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
3720         * df_regno_debug, df_ref_debug,
3721         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
3722         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
3723         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
3724         * sel-sched.c (debug_state): Likewise.
3725         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
3726         Likewise.
3727         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
3728         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
3729         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
3730         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
3731         Likewise.
3732         * c-pretty-print.c (debug_c_tree): Likewise.
3733         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
3734         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
3735         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
3736         * ebitmap.c (debug_ebitmap): Likewise.
3737         * function.c (debug_find_var_in_block_tree): Likewise.
3738         * print-rtl.c (debug_rtx): Likewise.
3739         (debug_rtx_count): Likewise.
3740         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
3741         * stor-layout.c (debug_rli): Likewise.
3742         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
3743         * tree-data-ref.c (debug_data_references,
3744         debug_data_dependence_relations, debug_data_reference,
3745         debug_data_dependence_relation, debug_rdg_vertex,
3746         debug_rdg_component, debug_rdg): Likewise.
3747         * tree-affine.c (debug_aff): Likewise.
3748         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
3749         Likewise.
3750         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
3751         * emit-rtl.c (verify_rtl_sharing): Likewise.
3752         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
3753         debug_value_expressions): Likewise.
3754         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
3755         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
3756         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
3757         * cfglayout.c (verify_insn_chain): Likewise.
3758         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
3759         debug_clast_stmt, debug_generated_program): Likewise.
3760         * ggc-page.c (debug_print_page_list): Likewise.
3761         * tree-ssa-ter.c (debug_ter): Likewise.
3762         * graphite-dependences.c (debug_pddr): Likewise.
3763         * sched-deps.c (debug_ds): Likewise.
3764         * tree-ssa.c (verify_ssa): Likewise.
3765         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
3766         debug_scattering_functions, debug_iteration_domains, debug_pdr,
3767         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
3768         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
3769         * tree-inline.c (debug_find_tree): Likewise.
3770         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
3771         debug_ppl_powerset_matrix): Likewise.
3772         * var-tracking.c (debug_dv): Likewise.
3773         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
3774         * cfgloop.c (verify_loop_structure): Likewise.
3775         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
3776         * c-common.c (verify_sequence_points): Likewise.
3777         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
3778         debug_candidates, debug_rgn_dependencies): Likewise.
3779         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
3780         * debug_constraint_graph, debug_solution_for_var,
3781         debug_sa_points_to_info): Likewise.
3782         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
3783         Likewie.
3784         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
3785         debug_loops, debug_loop, debug_loop_num): Likewise.
3786         * passes.c (debug_pass): Likewise.
3787         (dump_properties): Likewise; add cfglayout property.
3788         (debug_properties): Likewise.
3789         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
3790         * varpool.c (debug_varpool): Likewise.
3791         * regcprop.c (debug_value_data): Likewise.
3792         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
3793         debug_immediate_uses_for): Likewise.
3794
3795 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3796
3797         PR bootstrap/44315
3798         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
3799         Filter out insn-flags.h.
3800
3801 2010-05-29  Jan Hubicka  <jh@suse.cz>
3802
3803         * cgraph.h (struct varpool_node_set_def,
3804         struct cgraph_node_set_def): Remove unused AUX pointer.
3805         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
3806         VEC_empty macro.
3807
3808 2010-05-29  Jan Hubicka  <jh@suse.cz>
3809
3810         PR middle-end/44324
3811         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
3812
3813 2010-05-29  Richard Guenther  <rguenther@suse.de>
3814
3815         * lto-streamer.c (cached_bp): New global variable.
3816         (bitpack_create): Return the cached bitpack, if available.
3817         (bitpack_delete): Clear and cache the bitpack, if appropriate.
3818         (bp_pack_value): Remove redundant asserts.
3819
3820 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
3821
3822         PR middle-end/44306
3823         * tree-if-conv.c (is_true_predicate): New.
3824         (is_predicated): Use is_true_predicate.
3825         (add_to_predicate_list): Same.  Do not use unshare_expr.
3826         (add_to_dst_predicate_list): Same.
3827
3828 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
3829
3830         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
3831         field on edges.
3832         (predicate_bbs): Same.
3833         (clean_predicate_lists): Same.
3834         (find_phi_replacement_condition): Do not AND the predicate from
3835         edge->aux.
3836
3837 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3838
3839         PR bootstrap/44315
3840         * Makefile.in (build/gencondmd.o): Add a missing `\'.
3841
3842 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3843
3844         PR target/44261
3845         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
3846         (negdf2): Adjust expander pattern and use negdf2_slow.
3847         (negsf2): Likewise.
3848
3849 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
3850
3851         * basic-block.h (struct control_flow_graph): Move last_label_uid field
3852         up.
3853         * df.h (struct df_base_ref): Move regno field up.
3854         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
3855         * expr.h (struct separate_ops): Move location field up.
3856         * optabs.h (struct optab_d): Move libcall_basename field down.
3857         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
3858         * config/i386/i386.h (struct machine_function): Convert call_abi field
3859         into a bitfield.  Move cfa field to the end of the structure.
3860
3861 2010-05-29  Jan Hubicka  <jh@suse.cz>
3862
3863         * varpool.c (varpool_get_node): Fix lookup.
3864
3865 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
3866
3867         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
3868         RTL specific prototypes with #ifdef RTX_CODE.
3869         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
3870         * config/spu/t-spu-elf: Fix dependencies.
3871
3872         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
3873
3874 2010-05-29  Mike Stump  <mikestump@comcast.net>
3875
3876         PR bootstrap/44315
3877         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
3878         TM_H when building to avoid dependency loops.
3879
3880 2010-05-29  Jan Hubicka  <jh@suse.cz>
3881
3882         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
3883         refs and body; not the whole node for masters of materialized clones.
3884
3885 2010-05-29  Mike Stump  <mikestump@comcast.net>
3886
3887         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
3888
3889 2010-05-29  Jan Hubicka  <jh@suse.cz>
3890
3891         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
3892         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
3893         use of clone_function_name.
3894         * cgraph.h (cgraph_create_virtual_clone,
3895         cgraph_function_versioning): update prototypes.
3896         (clone_function_name): Declare.
3897         * ipa-cp.c (ipcp_insert_stage): Update call of
3898         cgraph_create_virtual_clone.
3899         * omp-low.c (create_omp_child_function_name): Use
3900         cgraph_create_virtual_clone.
3901         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
3902         (cgraph_function_versioning): Take SUFFIX argument; produce new name
3903         and make decl local.
3904
3905 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
3906
3907         * vec.h: Include statistics.h
3908         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
3909         with VEC_H.
3910
3911 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
3912
3913         * c-lex.c: Do not include c-tree.h.
3914         * c-pretty-print.c: Likewise.
3915         * c-opts.c: Likewise.
3916         * c-gimplify.c: Likewise.
3917         * c-common.c: Likewise.
3918         * c-dump.c: Likewise.  Include c-common.h.
3919
3920 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
3921
3922         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
3923         before including diagnostic-core.h.
3924         (c_cpp_error): New prototype moved from c-tree.h.
3925         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
3926         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
3927         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
3928         (c_cpp_error): Prototype moved to c-common.h.
3929         * Makefile.in: Update dependency for C_COMMON_H.
3930
3931 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
3932
3933         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
3934         * c-common.c (c_register_addr_space): Remove here.
3935         * c-decl.c (c_register_addr_space): Re-add here.
3936
3937 2010-05-28  Mike Stump  <mikestump@comcast.net>
3938
3939         * config/darwin-c.c: Remove c-tree.h include.
3940
3941 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
3942
3943         * gcc.c: Include diagnostic.h.
3944         (error_count): Remove.  All users changed to use errorcount.
3945         (programname): Remove.  All users changed to use progname.
3946         (fancy_abort, internal_error, fatal_error, error, warning, inform,
3947         fnotice): Remove.
3948         (execute): Don't include "Internal error" and bug reporting
3949         information in argument of internal_error call.
3950         (process_command): Don't increment error_count after calling
3951         perror_with_name.
3952         (input_filename): Rename to gcc_input_filename.  All users
3953         changed.
3954         (main): Call diagnostic_initialize.  Register delete_temp_files
3955         with atexit.  Use seen_error to test for errors.
3956         * gcc.h: Include diagnostic-core.h.
3957         (fatal_error, error, warning): Remove.
3958         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
3959         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
3960         (gcc.o): Update dependencies.
3961
3962 2010-05-28  Jeff Law  <law@redhat.com>
3963
3964         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
3965         functions.
3966         * ira.h (ira_bad_reload_regno): Declare
3967         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
3968
3969         * ira-color.c (update_curr_costs): Free updated hard reg costs.
3970         (ira_reassign_conflict_allocnos): Remove bogus asserts.
3971         (allocno_reload_assign): Likewise.
3972
3973 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
3974
3975         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
3976         build1_stat.
3977
3978 2010-05-28  Richard Guenther  <rguenther@suse.de>
3979
3980         PR lto/44312
3981         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
3982         Stream fixed-point constants mode.
3983         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
3984         and TYPE_PRECISION.
3985         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
3986         Stream fixed-point constants mode.
3987         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
3988         and TYPE_PRECISION.
3989
3990 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
3991
3992         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
3993         only place it was called from.
3994         (number_of_latch_executions): Do not return chrec_dont_know when the
3995         may_be_zero is a runtime condition: instead, return a COND_EXPR
3996         including the may_be_zero condition.
3997         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
3998         of nb_iterations.
3999         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4000         COND_EXPRs.
4001
4002 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
4003
4004         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4005         generate COND_EXPRs for degenerate_phi_result.
4006
4007 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
4008
4009         PR middle-end/44293
4010         * tree-if-conv.c (if_convertible_loop_p): Check the
4011         if-convertibility of phi nodes in non predicated BBs.
4012
4013 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4016
4017 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4018
4019         PR driver/15303
4020         * gcc.c (inform, warning, inform): New functions.
4021         (fatal_ice): Rename to internal_error; change cmsgid parameter to
4022         gmsgid.  All callers changed.
4023         (notice): Rename to fnotice; add parameter fp.  All callers changed.
4024         (fatal_error): Rename to fatal_signal.  All users changed.
4025         (fatal): Rename to fatal_error; change cmsgid parameter to
4026         gmsgid.  All callers changed.
4027         (process_command): Use warning instead of error for warnings.
4028         (end_going_arg): Don't use _() around argument of error.
4029         (do_spec_1): Use inform for message from %n specs.  Use warning
4030         instead of error for warnings.
4031         (main): Use inform for comparison messages.  Use warning for
4032         message about unused linker input.
4033         (error): Increment error_count.  Print "error: ".
4034         * gcc.h (fatal): Change to fatal_error.
4035         (warning): Declare.
4036         * config/darwin-driver.c (darwin_default_min_version): Use warning
4037         instead of fprintf for warnings.
4038         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4039
4040 2010-05-28  Julian Brown  <julian@codesourcery.com>
4041
4042         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4043         (*thumb2_addsi3_compare0_scratch): New.
4044         * config/arm/constraints.md (Pv): New.
4045         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4046         for ARM mode only.
4047         (*addsi3_compare0_scratch): Likewise.
4048
4049 2010-05-28  Jan Hubicka  <jh@suse.cz>
4050
4051         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4052         check.
4053         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4054         only on local statics.
4055
4056 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
4057
4058         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4059
4060 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4061
4062         PR bootstrap/44314
4063         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4064         (OPTION_GLIBC): Define.
4065
4066 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
4067
4068         PR debug/41048
4069         * dwarf2out.c (double_int_type_size_in_bits): New function.
4070         (round_up_to_align): Change first argument and return value to
4071         double_int.
4072         (field_byte_offset): Work internally on double_ints.
4073
4074         PR target/43636
4075         * builtins.c (expand_movstr): Use a temporary pseudo instead
4076         of target even when target is not NULL and not const0_rtx, but
4077         fails movstr predicate.
4078         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4079
4080 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
4081
4082         * final.c (rest_of_clean_state): Use %m in errors instead of
4083         strerror (errno).
4084         * gengtype.c (read_input_list, close_output_files): Use xstrerror
4085         instead of strerror.
4086         * toplev.c (process_options): Use %m in errors instead of strerror
4087         (errno).
4088         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4089         (errno).
4090
4091 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
4092
4093         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4094         (ix86_canonical_va_list_type): Make static.  Add declaration.
4095         (ix86_enum_va_list): Make static.  Reindent.
4096         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4097         (ix86_canonical_va_list_type): Ditto.
4098         (ix86_enum_va_list): Ditto.
4099
4100 2010-05-28  Richard Guenther  <rguenther@suse.de>
4101
4102         * lto-wrapper.c (run_gcc): With -save-temps generate a
4103         user-visible ltrans filename.  Fixup ltrans unit numbering.
4104
4105 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
4106
4107         * c-common.c (c_common_nodes_and_builtins): Replace use
4108         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4109         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4110         to ix86_enum_va_list.
4111         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4112         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4113         (TARGET_ENUM_VA_LIST_P): Add hook description.
4114         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4115         * target.h (gcc_target): Add enum_va_list hook.
4116
4117         PR bootstrap/44299
4118         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4119         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4120         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4121
4122 2010-05-28  Alan Modra  <amodra@gmail.com>
4123
4124         PR target/44266
4125         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4126         emit_library_call machinery to set up __tls_get_addr calls.
4127
4128 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4129
4130         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4131
4132 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
4133
4134         Revert fix for PR c++/44188
4135         * c-common.c (is_typedef_decl): Revert the moving of  this
4136         definition ...
4137         * tree.c (is_typedef_decl): ... here.
4138         (typdef_variant_p): Revert the moving of this  definition
4139         here from gcc/cp/tree.c.
4140         * c-common.h (is_typedef_decl): Revert the moving of this
4141         declaration ...
4142         * tree.h (is_typedef_decl): ... here.
4143         (typedef_variant_p): Revert the moving of this  declaration here
4144         from gcc/cp/cp-tree.h
4145         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4146         (gen_tagged_type_die): Revert the splitting out of ...
4147         (gen_type_die_with_usage): ... this function. Revert the anonymous
4148         tagged type handling.
4149         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
4150         typedefs naming anonymous tagged types.
4151
4152 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
4153
4154         * config/rs6000/rs6000-modes.def (PSImode): Delete.
4155
4156 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
4157
4158         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4159         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4160         throughout.
4161         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4162         "xer" to "ca".
4163         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4164         XER_REGS to CA_REGS throughout.
4165         * config/rs6000/rs6000.h: Same.
4166         (ADDITIONAL_REGISTER_NAMES): Add "xer".
4167         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
4168         that mode_iterator "P" is the size for arithmetic carries as well.
4169         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4170
4171 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
4172
4173         PR bootstrap/44255
4174         * combine.c (struct rtx_subst_pair): Define unconditionally.
4175         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
4176         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4177         Call make_compound_operation on pair->to.
4178         (propagate_for_debug): Don't call make_compound_operation here.
4179         Always use simplify_replace_fn_rtx.
4180
4181 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
4182
4183         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4184         * config/xtensa/xtensa.c (override_options): Check
4185           TARGET_FORCE_NO_PIC and set flag_pic.
4186         * config/xtensa/xtensa.opt: Document -mforce-no-pic
4187
4188 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
4189
4190         PR bootstrap/44299
4191         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4192         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4193
4194 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
4195
4196         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
4197         toplev.h.
4198         * diagnostic.c: Don't include toplev.h.
4199         (progname): Define.  Moved from toplev.c.
4200         (seen_error): New function.
4201         * diagnostic.h: Include diagnostic-core.h.
4202         (diagnostic_t, emit_diagnostic): Don't declare here.
4203         * toplev.c (progname): Move to toplev.c.
4204         (emit_debug_global_declarations, compile_file, finalize,
4205         do_compile, toplev_main): Use seen_error.
4206         * toplev.h: Include diagnostic-core.h.
4207         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4208         internal_error, warning, warning_at, error, error_n, error_at,
4209         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4210         verbatim, fnotice, progname): Move to diagnostic-core.h.
4211         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4212         (expand_builtin_expect): Use seen_error.
4213         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4214         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4215         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4216         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4217         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4218         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4219         errorcount for errors.
4220         * c-opts.c (c_common_finish): Use seen_error.
4221         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4222         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4223         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4224         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4225         (get_coverage_counts): Use seen_error.
4226         * dwarf2out.c (dwarf2out_finish): Use seen_error.
4227         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4228         gimplify_body): Use seen_error.
4229         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4230         * ipa-pure-const.c (gate_pure_const): Use seen_error.
4231         * ipa-reference.c (gate_reference): Use seen_error.
4232         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4233         * lambda-code.c: Include diagnostic-core.h instead of
4234         diagnostic.h.
4235         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4236         * lto-compress.c: Include diagnostic-core.h instead of
4237         diagnostic.h.
4238         * lto-section-in.c: Include diagnostic-core.h instead of
4239         diagnostic.h.
4240         * lto-streamer-out.c: Include diagnostic-core.h instead of
4241         diagnostic.h.
4242         * lto-streamer.c: Include diagnostic-core.h instead of
4243         diagnostic.h.
4244         (gate_lto_out): Use seen_error.
4245         * matrix-reorg.c: Include diagnostic-core.h instead of
4246         diagnostic.h.
4247         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4248         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4249         (gate_expand_omp, lower_omp_1): Use seen_error.
4250         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4251         (rest_of_decl_compilation, rest_of_type_compilation,
4252         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4253         * tree-cfg.c (label_to_block_fn): Use seen_error.
4254         * tree-inline.c (optimize_inline_calls): Use seen_error.
4255         * tree-mudflap.c (mudflap_finish_file): Use
4256         seen_error.
4257         * tree-optimize.c (gate_all_optimizations,
4258         gate_all_early_local_passes, gate_all_early_optimizations): Use
4259         seen_error.
4260         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4261         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4262         (varpool_remove_unreferenced_decls,
4263         varpool_assemble_pending_decls): Use seen_error.
4264         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4265         (TOPLEV_H, DIAGNOSTIC_H): Update.
4266         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4267         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4268         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4269         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4270         coverage.o, lambda-code.o): Update dependencies.
4271
4272 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
4273
4274         PR c++/44188
4275         * c-common.c (is_typedef_decl): Move this definition ...
4276         * tree.c (is_typedef_decl): ... here.
4277         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4278         * c-common.h (is_typedef_decl): Move this declaration ...
4279         * tree.h (is_typedef_decl): ... here.
4280         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4281         * dwarf2out.c (is_naming_typedef_decl): New function.
4282         (gen_tagged_type_die): Split out of ...
4283         (gen_type_die_with_usage): ... this function. When an anonymous
4284         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4285         is emitted for the typedef.
4286         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4287         anonymous tagged types.
4288
4289 2010-05-27  Jason Merrill  <jason@redhat.com>
4290
4291         * print-tree.c (debug_vec_tree): New fn.
4292         (print_vec_tree): New fn.
4293         * tree.h: Declare them.
4294         * gdbinit.in (pvt): New command.
4295
4296         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4297
4298         * gdbinit.in (pdd): New command.
4299
4300 2010-05-27  Jan Hubicka  <jh@suse.cz>
4301
4302         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4303         (update_caller_keys): Return early if there are no callers;
4304         only update fibheap when decresing the key.
4305         (update_callee_keys): Avoid recursion.
4306         (decide_inlining_of_small_functions): When badness does not match;
4307         re-insert into fibheap.
4308
4309 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
4310
4311         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4312         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4313         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4314         (ALL_HOST_OBJS): Now a union of the above two.
4315         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4316         all files in ALL_HOST_FRONTEND_OBJS.
4317         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4318
4319         * c-common.c: Pretend to be a backend file by undefining
4320         IN_GCC_FRONTEND (still need rtl.h here).
4321
4322 2010-05-27  Jan Hubicka  <jh@suse.cz>
4323
4324         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4325         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4326
4327 2010-05-27  Jan Hubicka  <jh@suse.cz>
4328
4329         * sched-ebb.c: Rename struct deps to struct deps_desc.
4330         * ddg.c: Likewise.
4331         * sel-sched-ir.c: Likewise.
4332         * sched-deps.c: Likewise.
4333         * sched-int.h: Likewise.
4334         * sched-rgn.c: Likewise.
4335
4336 2010-05-27  Jon Beniston <jon@beniston.com>
4337
4338         PR 43726
4339         * config/lm32/lm32.h: Remove definition of
4340         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4341
4342 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4343
4344         PR lto/44230
4345         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4346
4347 2010-05-27  Richard Guenther  <rguenther@suse.de>
4348
4349         PR tree-optimization/44284
4350         * tree-vect-stmts.c (vectorizable_assignment): Handle
4351         sign-changing conversions as simple copy.
4352
4353 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4354
4355         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4356         Bionic C library.
4357         (__gthread_active_p): Check for pthread_create if compiling against
4358         Bionic C library.
4359
4360 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4361
4362         Support compilation for Android platform.  Reimplement -mandroid.
4363
4364         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4365         (*android*): Set ANDROID_DEFAULT.
4366         (arm*-*-linux*): Include linux-android.h.
4367         (arm*-*-eabi*): Don't include previous -mandroid implementation.
4368         * config/arm/eabi.h: Remove, move Android-specific parts ...
4369         * config/linux-android.h: ... here.  New file.
4370         * config/arm/eabi.opt: Rename to ...
4371         * config/linux-android.opt: ... this.
4372         (mandroid): Allow -mno-android option.  Initialize based on
4373         ANDROID_DEFAULT.
4374         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4375         Move logic to corresponding LINUX_TARGET_* macros.
4376         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4377         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4378         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4379         Android definitions.
4380         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4381         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4382         Document.
4383
4384 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4385
4386         Add support for Bionic C library
4387
4388         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4389         macro.
4390         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4391         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4392
4393         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4394         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4395         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4396         to support multiple C libraries.  Handle Bionic.
4397         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4398         (BIONIC_DYNAMIC_LINKER64): Define.
4399         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4400         Update.
4401         (TARGET_HAS_SINCOS): Enable for Bionic.
4402
4403         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
4404         the last option specified on command line take effect.
4405         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4406         (mbionic): New.
4407         (mglibc, muclibc): Update.
4408
4409         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4410         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4411         DEFAULT_LIBC.
4412
4413         * doc/invoke.texi (-mglibc, -muclibc): Update.
4414         (-mbionic): Document.
4415
4416 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4417
4418         * c-common.h (c_register_addr_space): Add prototype.
4419         (ADDR_SPACE_KEYWORD): Remove.
4420         * c-common.c (c_register_addr_space): New function.
4421         (c_addr_space_name): Reimplement.
4422         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4423
4424         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4425         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4426
4427         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4428         Remove TARGET_ADDR_SPACE_KEYWORDS.
4429
4430 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
4431
4432         * input.c: New file.
4433         * input.h (main_input_filename): Move declaration to toplev.h.
4434         * toplev.c (input_location, line_table): Move to input.c
4435         * toplev.h (main_input_filename): Move declaration from input.h.
4436         * tree.c (expand_location): Move to input.c.
4437         * Makefile.in (OBJS-common): Add input.o.
4438         (input.o): Add dependencies.
4439
4440 2010-05-27  Richard Guenther  <rguenther@suse.de>
4441
4442         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4443         for non-existant files.
4444         (fork_execute): Mark args_name file as deleted.
4445
4446 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
4447
4448         PR bootstrp/44287
4449         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4450         (narrow_signed_type): Likewise.
4451
4452 2010-05-26  Jan Hubicka  <jh@suse.cz>
4453
4454         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4455         edge only when checking is enabled; check using former_clone_of;
4456         check inline clones too.
4457         (cgraph_materialize_clone): Record former_clone_of pointer.
4458         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4459         combining redirections; dump args_to_skip bitmap
4460         (cgraph_materialize_all_clones): Do no redirection here.
4461         * ipa-inline.c (inline_transform): Do redirection here.
4462         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
4463         cheking only).
4464
4465 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
4466
4467         * config/avr/avr-c.c: Do not include regs.h.
4468         Include cpplib.h for cpp_define and tree.h for c-common.h.
4469         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
4470         * config/avr/t-avr: Fix dependencies for avr-c.o.
4471
4472 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
4473
4474         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
4475         string instead of SYMBOL_REF rtx.
4476         * rtl.h (set_stack_check_libfunc): Move prototype from here...
4477         * libfuncs.h: ...to here.  Adjust for explow.c change.
4478
4479 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
4480
4481         * pretty-print.c: Don't include ggc.h.
4482         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
4483         (identifier_to_locale): Use them for allocation.
4484         * pretty-print.h (identifier_to_locale_alloc,
4485         identifier_to_locale_free): Declare.
4486         * toplev.c (alloc_for_identifier_to_locale): New.
4487         (general_init): Set identifier_to_locale_alloc and
4488         identifier_to_locale_free.
4489         * Makefile.in (pretty-print.o): Update dependencies.
4490
4491 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4492
4493         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
4494         pointer types if they have different alignment or mode.
4495
4496 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
4497
4498         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4499         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4500         * config/sparc/sparc-protos.h (function_value): Remove declaration.
4501         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
4502         sparc_function_value_regno_p): New functions.
4503         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4504         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4505         (function_value): Rename to...
4506         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
4507         argument to 'outgoing'.
4508         (function_arg_record_value, function_arg_union_value,
4509         function_arg_vector_value): Update comment.
4510
4511 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4512
4513         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
4514         (fde_needed_for_eh_p): New predicate.
4515         (output_call_frame_info): Use it throughout to decide whether FDEs
4516         are needed for EH purpose.
4517         (dwarf2out_begin_prologue): Reorder assignments.
4518
4519 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4520
4521         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
4522         special case loop->header.
4523         (is_predicated): New.
4524         (if_convertible_loop_p): Call it.
4525
4526 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4527
4528         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
4529         iterator in parameter.  Do not generate code during the analysis.
4530         (tree_if_convert_cond_stmt): Removed.
4531         (tree_if_convert_stmt): Removed.
4532         (predicate_bbs): New.
4533         (if_convertible_loop_p): Call predicate_bbs.
4534         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
4535         now contains all the analysis part.
4536
4537 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4538
4539         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
4540         statements in the analysis part.
4541         (tree_if_convert_stmt): Update comment.
4542         (remove_conditions_and_labels): New.
4543         (combine_blocks): Call remove_conditions_and_labels.
4544         (tree_if_conversion): Update comment.
4545
4546 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4547
4548         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
4549         than 2 predecessors or more than 2 successors.
4550
4551 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4552
4553         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
4554         of loops in which the data dependence analysis fails.
4555
4556 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4557
4558         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
4559         CDI_POST_DOMINATORS.
4560         (tree_if_conversion): Same.
4561
4562 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4563
4564         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
4565
4566 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
4567
4568         * tree-if-conv.c: Update copyright years.  Fix comments.
4569         Fix indentation.
4570
4571 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
4572
4573         * builtin-types.def (BT_INT128): New primitive type.
4574         (BT_UINT128): Likewise.
4575         * c-common.c (c_common_r): Add __int128 keyword.
4576         (c_common_type_for_size): Handle __int128.
4577         (c_common_type_for_mode): Likewise.
4578         (c_common_signed_or_unsigned_type): Likewise.
4579         (c_common_nodes_and_builtins): Add builtin type
4580         if target supports 128-bit integer scalar.
4581         * c-common.h (enum rid): Add RID_INT128.
4582         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
4583         if target supports 128-bit integer scalar.
4584         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
4585         (finish_declspecs): Likewise.
4586         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
4587         (c_token_starts_declspecs): Likewise.
4588         (c_parser_declspecs): Likewise.
4589         (c_parser_attributes): Likewise.
4590         (c_parser_objc_selector): Likewise.
4591         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
4592         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
4593         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
4594         * tree.c (make_or_reuse_type): Likewise.
4595         (make_unsigned_type): Likewise.
4596         (build_common_tree_nodes_2): Likewise.
4597         * tree.h (enum integer_type_kind): Add itk_int128 and
4598         itk_unsigned_int128.
4599         (int128_integer_type_node): New define.
4600         (int128_unsigned_type_node): New define.
4601         * doc/extend.texi: Add documentation about __int128 type.
4602
4603 2010-05-26  Richard Guenther  <rguenther@suse.de>
4604
4605         * tree-ssa-sccvn.c (copy_nary): Adjust.
4606         (copy_phis): Rename to ...
4607         (copy_phi): ... this.  Adjust.
4608         (copy_references): Rename to ...
4609         (copy_reference): ... this.  Adjust.
4610         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
4611         result into the valid table.
4612
4613 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
4614
4615         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
4616         insn-config.h, insn-codes.h, recog.h, and optabs.h.
4617
4618 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4619
4620         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
4621
4622 2010-05-26  Richard Guenther  <rguenther@suse.de>
4623
4624         * opts.c (common_handle_option): Handle OPT_Ofast.
4625
4626 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
4627
4628         * diagnostic.c: Don't include opts.h.
4629         (permissive_error_option): Define.
4630         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
4631         for classify_diagnostic.  Don't use memset for
4632         classify_diagnostic.  Initialize new and recently added fields.
4633         (diagnostic_classify_diagnostic): Use context->n_opts instead of
4634         N_OPTS.
4635         (diagnostic_report_diagnostic): Pass context parameter to
4636         diagnostic_report_warnings_p.  Use option_enabled and option_name
4637         hooks from context.
4638         (emit_diagnostic): Use permissive_error_option.
4639         (permerror): Likewise.
4640         * diagnostic.h: Don't include options.h.
4641         (struct diagnostic_context): Add n_opts, opt_permissive,
4642         inhibit_warnings, warn_system_headers, option_enabled and
4643         option_name fields.  Change classify_diagnostic to a pointer.
4644         * opts-diagnostic.h: New file.
4645         * opts.c: Include opts-diagnostic.h.
4646         (common_handle_option): Set global_dc fields for -Wfatal-errors,
4647         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
4648         (option_name): New function.
4649         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
4650         (c_common_handle_option): Set global_dc->permissive for
4651         -fpermissive.
4652         * c-common.c (c_cpp_error): Save and restore
4653         global_dc->warn_system_headers, not variable warn_system_headers.
4654         * toplev.c: Include opts-diagnostic.h.
4655         (general_init): Update call to diagnostic_initialize.  Set
4656         global_dc->show_column, global_dc->option_enabled and
4657         global_dc->option_name.
4658         (process_options): Don't set global_dc fields here.
4659         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
4660         (diagnostic.o, opts.o, toplev.o): Update dependencies.
4661
4662 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4663
4664         * config/picochip/picochip.md (movsi): Split a movsi from a
4665         const after reload.
4666
4667 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4668
4669         * ggc-zone.c: Update copyright year.
4670         (poison_region): Mark memory for Valgrind as undefined before
4671         memset () call and inaccessible afterwards.
4672         (ggc_pch_total_size): Change type of i to int.
4673
4674 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4675
4676         * ggc-common.c (ggc_free_overhead): Allow empty slot.
4677
4678 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4679
4680         * ggc-common.c: Update copyright year.
4681         (ggc_rlimit_bound): Remove prototype.  Compile only if
4682         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
4683         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
4684         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
4685         (ggc_min_heapsize_heuristic): Likewise.
4686
4687 2010-05-26  Richard Guenther  <rguenther@suse.de>
4688
4689         PR rtl-optimization/44164
4690         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
4691         no-common access-path disambiguation.
4692         (indirect_ref_may_alias_decl_p): Adjust.
4693         (indirect_refs_may_alias_p): Likewise.
4694         (refs_may_alias_p_1): Likewise.
4695
4696 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
4697
4698         * c-typeck.c: Do not include expr.h.
4699
4700 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
4701
4702         * rtl.h (decl_default_tls_model): Move prototype from here...
4703         * output.h: ...to here.
4704         * c-decl.c: Do not include rtl.h.
4705         * c-pragma.c: Likewise.
4706         * c-parser.c: Likewise.
4707         * c-gimplify.c: Likewise.  And also not hard-reg-set.
4708         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
4709         FIXME note for it.  Add a FIXME note for expr.h.
4710         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
4711         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
4712         defined.
4713
4714 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
4715
4716         PR target/44199
4717         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
4718         or total_size is larger than red zone size for non-V4 ABI, emit a
4719         stack_tie resp. frame_tie insn before stack pointer restore.
4720         * config/rs6000/rs6000.md (frame_tie): New insn.
4721
4722 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4723
4724         * function.h (struct function): Add can_throw_non_call_exceptions bit.
4725         * lto-streamer-in.c (input_function): Stream it in.
4726         * lto-streamer-out.c (output_function): Stream it out.
4727         * function.c (allocate_struct_function): Set it.
4728         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
4729         for flag_non_call_exceptions.
4730         * cfgbuild.c (control_flow_insn_p): Likewise.
4731         (make_edges): Likewise.
4732         * cfgexpand.c (expand_stack_alignment): Likewise.
4733         * combine.c (distribute_notes): Likewise.
4734         * cse.c (cse_extended_basic_block): Likewise.
4735         * except.c (insn_could_throw_p): Likewise.
4736         * gcse.c (simple_mem): Likewise.
4737         * ipa-pure-const.c (check_call): Likewise.
4738         (check_stmt ): Likewise.
4739         * lower-subreg.c (lower-subreg.c): Likewise.
4740         * optabs.c (emit_libcall_block): Likewise.
4741         (prepare_cmp_insn): Likewise.
4742         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
4743         * postreload.c (rest_of_handle_postreload): Likewise.
4744         * reload1.c (reload_as_needed): Likewise.
4745         (emit_input_reload_insns): Likewise.
4746         (emit_output_reload_insns): Likewise.
4747         (fixup_abnormal_edges): Likewise.
4748         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
4749         * store-motion.c (find_moveable_store): Likewise.
4750         * tree-eh.c (stmt_could_throw_p): Likewise.
4751         (tree_could_throw_p): Likewise.
4752         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4753         * config/arm/arm.c (arm_expand_prologue): Likewise.
4754         (thumb1_expand_prologue): Likewise.
4755         * config/rx/rx.md (cbranchsf4): Likewise.
4756         (cmpsf): Likewise.
4757         * config/s390/s390.c (s390_emit_prologue): Likewise.
4758         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
4759         (inline_forbidden_into_p): New predicate.
4760         (expand_call_inline): Use it to forbid inlining.
4761         (tree_can_inline_p): Likewise.
4762
4763 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
4764
4765         * config/i386/i386-c.c: Do not include rtl.h.
4766         * config/i386/t-i386: Update dependencies.
4767
4768 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
4769
4770         * attribs.c: Do not include rtl.h.
4771         * Makefile.in: Update dependencies.
4772
4773 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
4774
4775         * double-int.h (double_int_and): New.
4776         * combine.c (try_combine): Clean up, use double_int_* and
4777         immed_double_int_const functions.
4778
4779 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4780
4781         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
4782         stderr to /dev/null instead of grep -q.
4783         * configure: Regenerate.
4784
4785 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
4786
4787         * Makefile.in (EXCEPT_H): Fix typo.
4788
4789 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
4790
4791         * ira-build.c (update_conflict_hard_reg_costs): New.
4792         (ira_build): Call update_conflict_hard_reg_costs.
4793
4794 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
4795
4796         PR debug/41371
4797         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
4798         ENABLE_CHECKING.
4799         (intersect_loc_chains): Walk the s2var's loc_chain together
4800         with s1node chain as long as the locations are equal, don't
4801         call find_loc_in_1pdv in that case.
4802
4803         PR debug/42801
4804         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
4805         (copy_bind_expr): ... instead of here.
4806         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
4807         if the block hasn't been remapped.
4808         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
4809         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
4810
4811 2010-05-25  Richard Guenther  <rguenther@suse.de>
4812
4813         PR middle-end/44069
4814         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
4815         out-of-bounds array accesses.
4816
4817 2010-05-25  Richard Guenther  <rguenther@suse.de>
4818
4819         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
4820         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
4821         (run_gcc): Re-organize to make cleanup easier.
4822
4823 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4824
4825         * config/s390/s390.c (optimization_options): Fix and move the
4826         flag_prefetch_loop_arrays override ...
4827         (override_options): ... here.
4828
4829 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
4830
4831         * diagnostic.c: Don't include plugin.h.
4832         (diagnostic_report_diagnostic): Don't handle plugins specially
4833         here.  Pass context to internal_error callback.
4834         * diagnostic.h (struct diagnostic_context): Add context parameter
4835         to internal_error callback.
4836         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
4837         * plugin.h (struct diagnostic_context): Declare.
4838         (warn_if_plugins, plugins_internal_error_function): Declare.
4839         * toplev.c (general_init): Set global_dc->internal_error.
4840         * Makefile.in (diagnostic.o): Update dependencies.
4841
4842 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
4843
4844         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
4845         * config/rs6000/t-darwin64: New.
4846         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
4847         build crt2.
4848
4849 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
4850
4851         PR 44203
4852         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
4853         match the original (and intended) behaviour before r159557.  This
4854         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
4855         in two ways.
4856
4857 2010-05-25  Richard Guenther  <rguenther@suse.de>
4858
4859         * doc/invoke.texi: Document -Ofast.
4860         * target.h (struct gcc_target): Add handle_ofast.
4861         * target-def.h (TARGET_HANDLE_OFAST): Add.
4862         (TARGET_INITIALIZER): Adjust.
4863         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
4864         * common.opt (Ofast): Add.
4865
4866 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
4867
4868         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
4869         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
4870
4871 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
4872
4873         PR target/43610
4874         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
4875         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
4876         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
4877         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
4878
4879 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
4880
4881         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
4882         DW_OP_minus with negated offset instead of DW_OP_plus.
4883         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
4884
4885 2010-05-25  Wei Guozhi  <carrot@google.com>
4886
4887         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
4888         tst instruction and a new alternative.
4889         * config/arm/constraints.md (Pu): New constraint.
4890
4891 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
4892
4893         * function.c (assign_stack_local_1): Initialize variable
4894         to avoid warning when bootstrapping at -O3.
4895
4896 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
4897
4898         * configure.ac (all_lang_makefiles): Remove everything related to it.
4899         * configure: Regenerate.
4900         * Makefile.in: Fix reference to ada Make-lang.in.
4901         Remove support for LANG_MAKEFILES.
4902
4903 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
4904             Sandra Loosemore  <sandra@codesourcery.com>
4905
4906         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
4907         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
4908         description.  Add arm_neon_fp16_ok.
4909         (Add Options): Add arm_neon and arm_neon_fp16.
4910
4911 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
4912
4913         * diagnostic.c: Don't include flags.h.
4914         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
4915         context parameters.  Check flags in the context passed as a parameter.
4916         (diagnostic_build_prefix): Add context parameter.  Check
4917         show_column flag in context.
4918         (diagnostic_action_after_output): Check fatal_errors flag in context.
4919         (diagnostic_report_current_module): Check show_column flag in context.
4920         (default_diagnostic_starter): Update call to
4921         diagnostic_build_prefix.
4922         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
4923         (emit_diagnostic): Pass context to permissive_error_kind.
4924         (permerror): Pass context to permissive_error_kind.
4925         * diagnostic.h (struct diagnostic_context): Add show_column,
4926         pedantic_errors, permissive and fatal_errors fields.
4927         (diagnostic_build_prefix): Update prototype.
4928         * langhooks.c
4929         * toplev.c (process_options): Set flags in global_dc from
4930         flag_show_column, flag_pedantic_errors, flag_permissive,
4931         flag_fatal_errors.
4932         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
4933         to diagnostic_build_prefix.
4934         * Makefile.in (diagnostic.o): Update dependencies.
4935
4936 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4937
4938         * config/i386/ia32intrin.h (__crc32q): Define only if
4939         __SSE4_2__ is defined.
4940
4941 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
4942
4943         PR target/44132
4944         PR middle-end/43602
4945         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
4946         DECL_VISIBILITY_SPECIFIED.
4947         (emutls_decl): Set DECL_PRESERVE_P and copy
4948         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
4949         (emutls_finalize_control_var): New callback.
4950         (emutls_finish): Finalize emutls control variables.
4951         * toplev.c (compile_file): Move the call to emutls_finish ()
4952         before varpool_assemble_pending_decls ().
4953
4954 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
4955
4956         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
4957         added to the preprocessor condition.
4958
4959 2010-05-24  Paul Brook  <paul@codesourcery.com>
4960
4961         * gengtype-lex.l: Add HARD_REG_SET.
4962         * expr.c (expand_expr_real_1): Record writes to hard registers.
4963         * function.c (rtl_data): Add asm_clobbers.
4964         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
4965         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
4966         Use crtl->asm_clobbers.
4967
4968 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4969
4970         * doc/makefile.texi (Makefile): Mention stages 'profile'
4971         and 'feedback' for profiledbootstrap.
4972
4973 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4974
4975         PR target/44245
4976         * config/i386/i386.c (def_builtin): Properly check
4977         OPTION_MASK_ISA_64BIT.
4978
4979 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
4980
4981         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
4982         typedefs with different but compatible types.  Allow duplicate
4983         typedefs with the same type except for pedantic non-C1X, but give
4984         warning for variably modified types.
4985         * c-typeck.c (tagged_types_tu_compatible_p,
4986         function_types_compatible_p, type_lists_compatible_p,
4987         comptypes_internal): Add parameter different_types_p; set
4988         *different_types_p for different but compatible types.  All
4989         callers changed.
4990         (comptypes_check_different_types): New.
4991         * c-tree.h (comptypes_check_different_types): Declare.
4992
4993 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
4994
4995         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
4996         * jump.c: Include basic-block.h.
4997         * profile.c: Likewise.
4998         * tree-profile.c: Likewise.
4999         * coverage.c: Likewise.
5000         * basic-block.h (optimize_function_for_size_p): Move to function.h.
5001         (optimize_function_for_speed_p): Likewise.
5002         * function.h (optimize_function_for_size_p,
5003         optimize_function_for_speed_p): Moved here from basic-block.h.
5004         * Makefile.in: Update dependencies.
5005
5006 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5007
5008         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5009         before calling make; allow override through $MAKE.
5010         * doc/invoke.texi (Optimize Options): Document override.
5011
5012 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
5013
5014         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5015         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5016         (rs6000_mode_dependent_address_ptr): Make static.
5017         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5018         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5019         Remove.
5020
5021 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
5022
5023         PR target/43869
5024         * config/i386/i386.c: Make sure that the correct regparm is passed.
5025
5026 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
5027
5028         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5029         * sbitmap.c: ...to here to internalize sbitmap element access.
5030         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5031         Explain why basic-block.h is included.
5032         * function.h: Include tm.h for CUMULATIVE_ARGS.
5033         * Makefile.in: Update dependencies.
5034
5035 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
5036
5037         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5038         New core types.
5039         * sbitmap.h (struct sbitmap_def): Do not typedef here.
5040         * sbitmap.c: Include sbitmap.h.
5041         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5042         hard-reg-set.h.  Split everything related to regsets out from here...
5043         * regset.h: ...to here.  New file.
5044         * df.h: Include regset.h and sbitmap.h.
5045         * tree-flow.h: Likewise.
5046         * cfgloop.h: Likewise.
5047         * except.h: Do not include sbitmap.h.  Include hashtab.h.
5048         * cgraph.h: Include vec.h and function.h.
5049         * reload.h (struct insn_chain): Change types of live_throughout
5050         and dead_or_set from regset_head to bitmap_head.
5051         (compute_use_by_pseudos): Be defined also if regset.h is not included.
5052         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5053         spilled_regs from regset_head to bitmap_head to avoid dependency
5054         in regset.h.
5055         * sel-sched-ir.h: Include regset.h.
5056         * reload.c: Include df.h before reload.h.
5057         * caller-save.c: Likewise.
5058         * reload1.c: Likewise.
5059         * ira.c: Likewise.
5060         (mark_elimination): Update type of r to bitmap, consistent with
5061         DF_LR_IN.
5062         * dominance.c: Include bitmap.h.
5063         * modulo-sched.c: Include df.h.
5064         * cfganal.c: Include bitmap.h and sbitmap.h.
5065         * cfgbuild.c: Include sbitmap.h.
5066         * lcm.c: Include sbitmap.h.
5067         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5068         * domwalk.c: Include sbitmap.h, exclude ggc.h.
5069         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5070         * cselib.c: Include bitmap.h.
5071         * tree-optimize.c: Include regset.h.
5072         * stmt.c: Include bitmap.h.
5073         * Makefile.in: Update dependencies.
5074
5075 2010-05-22  Jan Hubicka  <jh@suse.cz>
5076
5077         * cgraph.h (struct varpool_node): Add same_comdat_group.
5078         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5079         pointer.
5080         (output_varpool): Update call of lto_output_varpool_node.
5081         (input_varpool): Read same_comdat_group pointer.
5082         (input_varpool_1): Fixup same_comdat_group pointer.
5083         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5084         group is needed, all are.
5085         * varpool.c (varpool_remove_node): Remove node from same comdat group
5086         linklist too.
5087         (varpool_analyze_pending_decls): Walk same comdat groups.
5088
5089 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
5090
5091         * rtl.h (union rtunion_def): Remove rt_bit member.
5092         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5093         * print-rtl (print_rtx): Do not print the member.
5094         * gengtype.c (adjust_field_rtx_def): Do not handle it.
5095         * gengenrtl.c (type_from_format): Likewise.
5096         (accessor_from_format): Likewise.
5097
5098 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
5099
5100         * dbgcnt.c: Include toplev.h instead of errors.h.
5101         * ira-emit.c: Don't include errors.h.
5102         * ira.c: Include toplev.h instead of errors.h.
5103         * lto-compress.c: Include toplev.h instead of errors.h.
5104         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5105         ira.o, dbgcnt.o): Update dependencies.
5106
5107 2010-05-22  Richard Guenther  <rguenther@suse.de>
5108
5109         * gimple.c (gimple_types_compatible_p): Check type qualifications
5110         before merging pointer to complete and pointer to incomplete type.
5111         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5112         we use our own resolution algorithm.  The gold linker plugin
5113         doesn't do the job we want it to do here.
5114
5115 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
5116
5117         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5118         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5119         (sparc_mode_dependent_address_p): New function.
5120
5121 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
5122
5123         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5124
5125         * timevar.c: Do not include any core headers.
5126         (timevar_print): De-i18n-ize.
5127         (print_time): Likewise.
5128         * timevar.h (timevar_push, timevar_pop): Make inline functions.
5129
5130 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
5131
5132         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5133         langhooks-def.h.
5134         (diagnostic_initialize): Initialize x_data not last_function.
5135         (diagnostic_report_current_function): Move to tree-diagnostic.c.
5136         (default_diagnostic_starter): Call
5137         diagnostic_report_current_module not
5138         diagnostic_report_current_function.
5139         (diagnostic_report_diagnostic): Initialize x_data not
5140         abstract_origin.
5141         (verbatim): Likewise.
5142         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5143         x_data.
5144         (struct diagnostic_context): Change last_function to x_data.
5145         (diagnostic_auxiliary_data): Replace with
5146         diagnostic_context_auxiliary_data and
5147         diagnostic_info_auxiliary_data.
5148         (diagnostic_last_function_changed, diagnostic_set_last_function,
5149         diagnostic_report_current_function): Move to tree-diagnostic.h.
5150         (print_declaration, dump_generic_node, print_generic_stmt,
5151         print_generic_stmt_indented, print_generic_expr,
5152         print_generic_decl, debug_c_tree, dump_omp_clauses,
5153         print_call_name, debug_generic_expr, debug_generic_stmt,
5154         debug_tree_chain, default_tree_printer): Move to
5155         tree-pretty-print.h.
5156         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5157         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5158         gimple-pretty-print.h.
5159         * pretty-print.c: Don't include tree.h
5160         (pp_base_format): Don't handle %K here.
5161         (pp_base_tree_identifier): Move to tree-pretty-print.c.
5162         * pretty-print.h (text_info): Change abstract_origin to x_data.
5163         (pp_tree_identifier, pp_unsupported_tree,
5164         pp_base_tree_identifier): Move to tree-pretty-print.h.
5165         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5166         tree-pretty-print.h: New files.
5167         * tree-pretty-print.c: Include tree-pretty-print.h.
5168         (percent_K_format): New.  Moved from pretty-print.c.
5169         (pp_base_tree_identifier): Move from pretty-print.c.
5170         * c-objc-common.c: Include tree-pretty-print.h.
5171         (c_tree_printer): Handle %K here.
5172         * langhooks.c: Include tree-diagnostic.h.
5173         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5174         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5175         (default_tree_printer): Handle %K using percent_K_format.
5176         (general_init): Use default_tree_diagnostic_starter.
5177         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5178         (free_lang_data): Use default_tree_diagnostic_starter.
5179         * c-pretty-print.c: Include tree-pretty-print.h.
5180         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5181         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5182         * dwarf2out.c: Include tree-pretty-print.h.
5183         * except.c: Include tree-pretty-print.h.
5184         * gimple-pretty-print.c: Include tree-pretty-print.h and
5185         gimple-pretty-print.h.
5186         * gimplify.c: Include tree-pretty-print.h.
5187         * graphite-poly.c: Include tree-pretty-print.h and
5188         gimple-pretty-print.h.
5189         * ipa-cp.c: Include tree-pretty-print.h.
5190         * ipa-inline.c: Include gimple-pretty-print.h.
5191         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5192         * ipa-pure-const.c: Include gimple-pretty-print.h.
5193         * ipa-struct-reorg.c: Include tree-pretty-print.h and
5194         gimple-pretty-print.h.
5195         * ipa-type-escape.c: Include tree-pretty-print.h.
5196         * print-rtl.c: Include tree-pretty-print.h.
5197         * print-tree.c: Include gimple-pretty-print.h.
5198         * sese.c: Include tree-pretty-print.h.
5199         * tree-affine.c: Include tree-pretty-print.h.
5200         * tree-browser.c: Include tree-pretty-print.h.
5201         * tree-call-cdce.c: Include gimple-pretty-print.h.
5202         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5203         * tree-chrec.c: Include tree-pretty-print.h.
5204         * tree-data-ref.c: Include tree-pretty-print.h and
5205         gimple-pretty-print.h.
5206         * tree-dfa.c: Include tree-pretty-print.h.
5207         * tree-if-conv.c: Include tree-pretty-print.h and
5208         gimple-pretty-print.h.
5209         * tree-inline.c: Include tree-pretty-print.h.
5210         * tree-into-ssa.c: Include tree-pretty-print.h and
5211         gimple-pretty-print.h.
5212         * tree-nrv.c: Include tree-pretty-print.h.
5213         * tree-object-size.c: Include tree-pretty-print.h and
5214         gimple-pretty-print.h.
5215         * tree-outof-ssa.c: Include tree-pretty-print.h and
5216         gimple-pretty-print.h.
5217         * tree-parloops.c: Include tree-pretty-print.h and
5218         gimple-pretty-print.h.
5219         * tree-predcom.c: Include tree-pretty-print.h and
5220         gimple-pretty-print.h.
5221         * tree-scalar-evolution.c: Include tree-pretty-print.h and
5222         gimple-pretty-print.h.
5223         * tree-sra.c: Include tree-pretty-print.h.
5224         * tree-ssa-address.c: Include tree-pretty-print.h.
5225         * tree-ssa-alias.c: Include tree-pretty-print.h.
5226         * tree-ssa-ccp.c: Include tree-pretty-print.h and
5227         gimple-pretty-print.h.
5228         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5229         * tree-ssa-copy.c: Include tree-pretty-print.h and
5230         gimple-pretty-print.h.
5231         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5232         * tree-ssa-dce.c: Include tree-pretty-print.h and
5233         gimple-pretty-print.h.
5234         * tree-ssa-dom.c: Include tree-pretty-print.h and
5235         gimple-pretty-print.h.
5236         * tree-ssa-dse.c: Include gimple-pretty-print.h.
5237         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5238         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5239         * tree-ssa-live.c: Include tree-pretty-print.h and
5240         gimple-pretty-print.h.
5241         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5242         gimple-pretty-print.h.
5243         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5244         gimple-pretty-print.h.
5245         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5246         gimple-pretty-print.h.
5247         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5248         gimple-pretty-print.h.
5249         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5250         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5251         * tree-ssa-operands.c: Include tree-pretty-print.h and
5252         gimple-pretty-print.h.
5253         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5254         gimple-pretty-print.h.
5255         * tree-ssa-pre.c: Include tree-pretty-print.h and
5256         gimple-pretty-print.h.
5257         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5258         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5259         gimple-pretty-print.h.
5260         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5261         gimple-pretty-print.h.
5262         * tree-ssa-sink.c: Include gimple-pretty-print.h.
5263         * tree-ssa-ter.c: Include tree-pretty-print.h and
5264         gimple-pretty-print.h.
5265         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5266         * tree-ssa.c: Include tree-pretty-print.h and
5267         gimple-pretty-print.h.
5268         * tree-stdarg.c: Include gimple-pretty-print.h.
5269         * tree-switch-conversion.c: Include gimple-pretty-print.h.
5270         * tree-tailcall.c: Include tree-pretty-print.h and
5271         gimple-pretty-print.h.
5272         * tree-vect-data-refs.c: Include tree-pretty-print.h and
5273         gimple-pretty-print.h.
5274         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5275         gimple-pretty-print.h.
5276         * tree-vect-loop.c: Include tree-pretty-print.h and
5277         gimple-pretty-print.h.
5278         * tree-vect-patterns.c: Include gimple-pretty-print.h.
5279         * tree-vect-slp.c: Include tree-pretty-print.h and
5280         gimple-pretty-print.h.
5281         * tree-vect-stmts.c: Include tree-pretty-print.h and
5282         gimple-pretty-print.h.
5283         * tree-vectorizer.c: Include tree-pretty-print.h.
5284         * tree-vrp.c: Include tree-pretty-print.h and
5285         gimple-pretty-print.h.
5286         * value-prof.c: Include tree-pretty-print.h and
5287         gimple-pretty-print.h.
5288         * var-tracking.c: Include tree-pretty-print.h.
5289         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5290         (tree-diagnostic.o): New dependencies.
5291         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5292         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5293         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5294         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5295         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5296         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5297         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5298         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5299         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5300         tree-ssa-address.o, tree-ssa-loop-niter.o,
5301         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5302         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5303         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5304         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5305         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5306         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5307         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5308         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5309         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5310         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5311         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5312         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5313         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5314         tree-switch-conversion.o, var-tracking.o, value-prof.o,
5315         cfgexpand.o, pretty-print.o): Update dependencies.
5316
5317 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
5318
5319         * tree-ssa-structalias.c: Remove tm_p.h from include.
5320
5321 2010-05-21  Jeff Law  <law@redhat.com>
5322
5323         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5324
5325 2010-05-21  Jason Merrill  <jason@redhat.com>
5326
5327         * tree-eh.c (cleanup_is_dead_in): New.
5328         (lower_try_finally): Don't generate a dead cleanup region.
5329         (lower_cleanup): Likewise.
5330
5331 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
5332
5333         PR debug/44223
5334         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5335         unchain each use from the cyclic next_regno_use chain first.
5336
5337 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
5338
5339         * real: Do not include gmp.h, mpfr.h, and mpc.h.
5340         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5341         (real_value_negate, real_value_abs): New prototypes.
5342         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5343         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5344         new include file for interface between MPFR and REAL_VALUE_TYPE.
5345         * real.c: Include realmpfr.h.
5346         (real_arithmetic2): Remove legacy function.
5347         (real_value_negate): New.
5348         (real_value_abs): New.
5349         (mfpr_from_real, real_from_mpfr): Move from here...
5350         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5351         * builtins.c: Include realmpfr.h.
5352         * fold-const.c: Include realmpfr.h.
5353         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5354         (fold_negate_const): Likewise.
5355         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5356         * toplev.c: Include realmpfr.h.
5357         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5358         and real_value_negate.
5359         * fixed-value.c (check_real_for_fixed_mode): Likewise.
5360         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5361         (vfp3_const_double_index): Likewise.
5362         (arm_print_operand): Likewise.
5363         * Makefile.in: Update dependencies.
5364
5365 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5366
5367         * config/s390/s390.c (override_options): Increase the default
5368         of max-completely-peel-times.
5369
5370 2010-05-21  Julian Brown  <julian@codesourcery.com>
5371             Mark Mitchell  <mark@codesourcery.com>
5372
5373         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5374         sibling calls for Thumb-1.
5375         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5376         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5377         Thumb-2.
5378         (*call_insn, *call_value_insn): Don't use for Thumb-2.
5379         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5380         for Thumb-2.
5381         (return): New expander.
5382         (*arm_return): New name for ARM return insn.
5383         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5384
5385 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
5386
5387         * config.gcc (sparc64-*-rtems*): New target.
5388
5389 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
5390
5391         * tree.c (build_function_decl_skip_args): Fix grammar.
5392         (build_function_type_list_1): Fix typos, adjust formatting.
5393
5394 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
5395
5396         * tree.h: Include real.h and fixed-value.h as basic datatypes.
5397         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5398         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5399         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5400         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5401         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5402         tree-pretty-print.c, tree-loop-distribution.c,
5403         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5404         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5405         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5406         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5407         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5408         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5409         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5410         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5411         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5412         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5413         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5414         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5415         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5416         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5417         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5418         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5419         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5420         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5421         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5422         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5423         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5424         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5425         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5426         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5427         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5428         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5429         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5430         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5431         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5432         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5433         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5434         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5435         config/score/score7.c, config/score/score.c, config/arm/arm.c,
5436         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5437         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5438         config/bfin/bfin.c: Clean up redundant includes.
5439         * Makefile.in: Update accordingly.
5440
5441 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
5442
5443         PR middle-end/44204
5444         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5445         statement has no arguments.
5446
5447 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
5448
5449         PR/44139
5450         * varasm.c (emutls_decl): Merge attributes to new decl.
5451
5452 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5453
5454         PR middle-end/44101
5455         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5456         around the uniquized constructor if its type requires a conversion.
5457
5458 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
5459
5460         PR debug/44205
5461         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5462         at -O0 goto_locus of any of the incoming edges differs from
5463         goto_locus of outgoing edge, or gimple_location of any of the
5464         labels differs.
5465
5466 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
5467
5468         * ira.c (ira_non_ordered_class_hard_regs): Define.
5469         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
5470         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
5471         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
5472         cost of unaligned hard regs when allocating multi-reg pseudos.
5473
5474 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
5475
5476         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
5477         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
5478         for TARGET_NO_FLOAT.
5479         * config/mips/mips.c (mips_file_start): Expand conditional expression
5480         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
5481         (mips_override_options): Move -mno-float override -msoft-float and
5482         -mhard-float.
5483         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
5484         Condition(TARGET_SUPPORTS_NO_FLOAT).
5485         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
5486         __mips_no_float here.
5487         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
5488         (TARGET_SUPPORTS_NO_FLOAT): Define.
5489         * config/mips/sdemtk.opt: Delete.
5490
5491 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
5492
5493         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
5494
5495 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
5496
5497         PR target/43733
5498         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
5499         * configure: Regenerate.
5500         * config.in: Regenerate.
5501         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
5502         instead of sahf only for 64bit targets.
5503
5504 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
5505
5506         PR debug/44178
5507         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
5508         setup_ref_regs for DEBUG_INSNs.
5509
5510 2010-05-20  Jan Hubicka  <jh@suse.cz>
5511
5512         PR middle-end/44197
5513         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
5514
5515 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
5516
5517         PR bootstrap/43870
5518         * df-scan.c (df_ref_compare): Stabilize sort.
5519
5520 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
5521
5522         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
5523         argument.  Don't use DW_OP_piece if offset is non-zero,
5524         put offset into second DW_OP_bit_piece argument.
5525         (dw_sra_loc_expr): Adjust callers.  For memory expressions
5526         compute offset.
5527
5528 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
5529
5530         PR target/44202
5531         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
5532         settings for 16-bit-constant "addo" alternative.
5533
5534 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
5535
5536         * config/mips/mips-dsp.md (add<DSPV:mode>3,
5537         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
5538
5539         PR target/43764
5540         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
5541         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
5542         Use it.
5543
5544 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
5545
5546         * diagnostic.c (FLOAT, FFS): Don't undefine.
5547         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
5548         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
5549         include ordering.
5550
5551 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
5552
5553         * combine.c (propagate_for_debug): Call make_compound_operation
5554         on the source value.
5555         (try_combine): When implementing a split chosen by find_split_point,
5556         either copy i2src or set it to null.  Assert that i2src is not null
5557         before substituting into CALL_INSN_FUNCTION_USAGE.
5558
5559 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
5560
5561         * double-int.h (double_int_ior): New function.
5562         * tree.h (build_int_cst_wide_type): Remove.
5563         * tree.c (build_int_cst_wide_type): Remove.
5564         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
5565         of build_int_cst_wide_type.
5566         * stor-layout.c (set_sizetype): (Ditto.).
5567         * dojump.c (do_jump): Use build_int_cstu instead of
5568         build_int_cst_wide_type.
5569
5570 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5571
5572         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
5573         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
5574         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
5575         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
5576         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
5577         propagate the 'data' argument to copy_tree_r.
5578         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
5579         Propagate 'data' argument to walk_tree.
5580         (copy_if_shared): New function.
5581         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
5582         (unmark_visited): New function.
5583         (unshare_body): Call copy_if_shared instead of doing it manually.
5584         (unvisit_body): Call unmark_visited instead of doing it manually.
5585
5586 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
5587
5588         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
5589         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
5590         * hooks.c: Likewise.
5591         * target-def.h (TARGET_FOLD_BUILTIN): Define to
5592         hook_tree_tree_int_treep_bool_null.
5593         * target.h (struct gcc_target): Update signature of fold_builtin
5594         field.
5595         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
5596         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
5597         instead of the call expression.
5598         (fold_builtin_call_array): Pass n and argarray directly.
5599         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
5600         consing a list.
5601         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
5602         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
5603         `i' and use it in place of `arity'.
5604         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
5605         Dereference `args' directly.
5606         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
5607
5608 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5609
5610         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5611         3dnow, sse3, sse2.
5612         (Directives): Document optional dg-require-effective-target
5613         selector.
5614
5615 2010-05-19  Richard Guenther  <rguenther@suse.de>
5616
5617         PR lto/44196
5618         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
5619
5620 2010-05-19  Richard Guenther  <rguenther@suse.de>
5621
5622         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
5623         * common.opt (fwhopr=): New.
5624         * opts.c (common_handle_option): Handle OPT_fwhopr.
5625         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
5626         * collect2.c (main): Match -fwhopr*.
5627         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
5628         Execute ltrans stage in parallel when jobs is bigger than 1.
5629
5630 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5631
5632         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5633         pentiumpro on Solaris 8/x86 with Sun as.
5634         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
5635         hidden alias bug.
5636         (gcc_cv_as_ix86_quad): Check for .quad directive.
5637         * configure: Regenerate.
5638         * config.in: Regenerate.
5639         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
5640
5641 2010-05-19  Martin Jambor  <mjambor@suse.cz>
5642
5643         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
5644         also for indirect edges.  Actual printing moved...
5645         (ipa_print_node_jump_functions_for_edge): ...here.
5646         (ipa_compute_jump_functions): Renamed to
5647         ipa_compute_jump_functions_for_edge and made static.
5648         (ipa_compute_jump_functions): New function.
5649         (make_edge_direct_to_target): Check if the number of arguments on
5650         the newly direct edge is the same as the number of parametrs of
5651         the callee.
5652         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
5653         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
5654         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
5655         analysis functions unconditionally, call the new
5656         ipa_analyze_params_uses on the node instead of every edge.
5657
5658 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
5659
5660         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
5661         to tree.
5662         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
5663         also checks for a constant int vs.  non-constant but
5664         loop-invariant steps.
5665         (find_or_create_group): Change the sort algorithm to only consider
5666         steps that are constant ints.
5667         (idx_analyze_ref): Adopt code to handle a tree instead of a
5668         HOST_WIDE_INT for step.
5669         (gather_memory_references_ref): Handle tree instead of int and be
5670         prepared to see a NULL_TREE.
5671         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
5672         prefetches if the step cannot be calculated at compile time.
5673         (issue_prefetch_ref): Issue prefetches for non-constant but
5674         loop-invariant steps.
5675
5676 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
5677
5678         Revert:
5679         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
5680
5681         * tree.h (build_call_list): Remove.
5682         * tree.c (build_call_list): Remove.
5683
5684 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
5685
5686         * tree.h (build_call_list): Remove.
5687         * tree.c (build_call_list): Remove.
5688
5689 2010-05-18  Jan Hubicka  <jh@suse.cz>
5690
5691         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
5692
5693 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
5694
5695         PR rtl-optimization/43332
5696         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
5697
5698 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
5699
5700         * tree.h (build_int_cstu): Implement as static inline.
5701         * tree.c (build_int_cstu): Remove function.
5702         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
5703         sign extended.
5704
5705 2010-05-18  Richard Guenther  <rguenther@suse.de>
5706
5707         PR lto/44143
5708         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
5709         (debug): Initialize from -save-temps.
5710         (collect_execute): Print command-line when verbose.
5711         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
5712         for ltrans invocation.  Produce -dumpbase flag again.
5713         (process_args): Remove.
5714         (main): Simplify.
5715         * collect2.c (maybe_run_lto_and_relink): Only pass object
5716         files to lto-wrapper.
5717         * gcc.c (LINK_COMMAND_SPEC): Likewise.
5718
5719 2010-05-18  Jan Hubicka  <jh@suse.cz>
5720
5721         * opts.c (decode_options): Do not disable whopr at ipa_cp.
5722         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
5723
5724 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
5725
5726         PR lto/44184
5727         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
5728         in a GIMPLE_ASM.
5729         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
5730         in a GIMPLE_ASM.
5731
5732 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
5733
5734         PR debug/41371
5735         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
5736         rtx_equal_p inline.
5737
5738 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
5739
5740         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
5741         lto-macho as lto_binary_reader.
5742
5743         * darwin.c (darwin_asm_named_section): Do not add assembler comment
5744         after .section directive; just print it before the directive instead.
5745
5746 2010-05-17  Jan Hubicka  <jh@suse.cz>
5747
5748         * cgraph.c (cgraph_create_virtual_clone): Only check
5749         versionable_function_p when not in wpa and checking is enabled.
5750         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
5751         there are no more functions to materialize.
5752
5753 2010-05-17  Jan Hubicka  <jh@suse.cz>
5754
5755         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
5756         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
5757         New functions.
5758         (output_cgraph): Call output_cgraph_opt_summary.
5759         (input_cgrpah): Call input_cgraph_opt_summary.
5760         (output_cgraph_opt_summary_p, output_node_opt_summary,
5761         input_node_opt_summary, input_cgraph_opt_section): New functions.
5762         * lto-section-in.c (lto_section_name): Add cgraphopt.
5763         * tree-inline.c (tree_function_versioning): Handle parm_num.
5764         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
5765         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
5766
5767 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
5768
5769         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
5770         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
5771         the insn to prefetch ratio heuristic to loops with known trip count.
5772
5773 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
5774
5775         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
5776         (schedule_prefetches): Do not generate a prefetch if the unroll factor
5777         is far from what is required by the prefetch.
5778
5779 2010-05-17  Jan Hubicka  <jh@suse.cz>
5780
5781         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
5782         (ipcp_estimate_growth): Likewise.
5783         (ipcp_const_param_count): Likewise.
5784         (ipcp_insert_stage): Likewise.
5785         * ipa-prop.c (visit_load_for_mod_analysis): New function.
5786         (visit_store_addr_for_mod_analysis): Set used flag.
5787         (ipa_detect_param_modifications): Set used flag for SSE params;
5788         update use of walk_stmt_load_store_addr_ops.
5789         (ipa_print_node_params): Print used flag.
5790         (ipa_write_node_info): Stream used flag.
5791         (ipa_read_node_info): Likewise.
5792         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
5793         (ipa_is_param_used): New function.
5794         (lto_ipa_fixup_call_notes): Remove unused declaration.
5795
5796 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5797
5798         PR target/44074
5799         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
5800         * configure: Regenerate.
5801         * config.in: Regenerate.
5802         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
5803         !HAVE_AS_IX86_REP_LOCK_PREFIX.
5804         Don't emit whitespace.
5805         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
5806         (*rep_movsi): Likewise.
5807         (*rep_movsi_rex64): Likewise.
5808         (*rep_movqi): Likewise.
5809         (*rep_movqi_rex64): Likewise.
5810         (*rep_stosdi_rex64): Likewise.
5811         (*rep_stossi): Likewise.
5812         (*rep_stossi_rex64): Likewise.
5813         (*rep_stosqi): Likewise.
5814         (*rep_stosqi_rex64): Likewise.
5815         (*cmpstrnqi_nz_1): Use {%;} after repz.
5816         (*cmpstrnqi_nz_rex_1): Likewise.
5817         (*cmpstrnqi_1): Likewise.
5818         (*cmpstrnqi_rex_1): Likewise.
5819         (*strlenqi_1): Use {%;} after repnz.
5820         (*strlenqi_rex_1): Likewise.
5821         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
5822         (*sync_compare_and_swap<mode>): Likewise.
5823         (sync_double_compare_and_swap<mode>): Likewise.
5824         (*sync_double_compare_and_swapdi_pic): Likewise.
5825         (sync_old_add<mode>): Likewise.
5826         (sync_add<mode>): Likewise.
5827         (sync_sub<mode>): Likewise.
5828         (sync_<code><mode>): Likewise.
5829
5830 2010-05-17  Martin Jambor  <mjambor@suse.cz>
5831
5832         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
5833         otr_token and polymorphic.
5834         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
5835         (cgraph_clone_edge): Copy the above fields.
5836         * tree.c (get_binfo_at_offset): New function.
5837         * tree.h (get_binfo_at_offset): Declare.
5838         * ipa-prop.h (enum jump_func_type): Added known_type jump function
5839         type, reordered items, updated comments.
5840         (union jump_func_value): Added base_type field, reordered fields.
5841         (enum ipa_lattice_type): Moved down in the file.
5842         (struct ipa_param_descriptor): New field polymorphic.
5843         (ipa_is_param_polymorphic): New function.
5844         * ipa-prop.c: Include gimple.h and gimple-fold.h.
5845         (ipa_print_node_jump_functions): Print known type jump functions.
5846         (compute_complex_pass_through): Renamed to...
5847         (compute_complex_assign_jump_func): this.
5848         (compute_complex_ancestor_jump_func): New function.
5849         (compute_known_type_jump_func): Likewise.
5850         (compute_scalar_jump_functions): Create known type and complex ancestor
5851         jump functions.
5852         (ipa_note_param_call): New parameter polymorphic, set the corresponding
5853         flag in the call note accordingly.
5854         (ipa_analyze_call_uses): Renamed to...
5855         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
5856         variable var only in the block where it is used.
5857         (ipa_analyze_virtual_call_uses): New function.
5858         (ipa_analyze_call_uses): Likewise.
5859         (combine_known_type_and_ancestor_jfs): Likewise.
5860         (update_jump_functions_after_inlining): Implemented handling of a
5861         number of new jump function types combination.
5862         (print_edge_addition_message): Removed.
5863         (make_edge_direct_to_target): New function.
5864         (try_make_edge_direct_simple_call): Likewise.
5865         (try_make_edge_direct_virtual_call): Likewise.
5866         (update_call_notes_after_inlining): Renamed to...
5867         (update_indirect_edges_after_inlining): this.  Moved edge creation for
5868         indirect calls to try_make_edge_direct_simple_call, also calls
5869         try_make_edge_direct_virtual_call for virtual calls.
5870         (ipa_print_node_params): Changed the header message.
5871         (ipa_write_jump_function): Stream also known type jump functions.
5872         (ipa_read_jump_function): Likewise.
5873         (ipa_write_indirect_edge_info): Stream new fields in
5874         cgraph_indirect_call_info.
5875         (ipa_read_indirect_edge_info): Likewise.
5876         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
5877         GIMPLE_FOLD_H.
5878
5879 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5880
5881         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
5882
5883 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
5884
5885         * tree.h (CALL_EXPR_ARGS): Delete.
5886         (call_expr_arglist): Delete.
5887         * tree.c (call_expr_arglist): Delete.
5888         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
5889         targetm.fold_builtin.
5890         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
5891         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
5892         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
5893         arglist parameter.  Use CALL_EXPR_ARG.
5894         (picochip_expand_builtin_3op): Likewise.
5895         (picochip_expand_builtin_2opvoid): Likewise.
5896         (picochip_expand_array_get): Likewise.
5897         (picochip_expand_array_put): Likewise.
5898         (picochip_expand_array_testport): Likewise.
5899         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
5900         rather than arglist.
5901         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
5902         CALL_EXPR_ARGS.
5903         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
5904         than TREE_VALUE and TREE_CHAIN.
5905         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
5906         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
5907         the arglist.
5908
5909 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
5910
5911         PR bootstrap/42347
5912         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
5913         to have no fallthru edge.
5914
5915         PR middle-end/44102
5916         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
5917         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
5918         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
5919         add BARRIER after previous bb if needed.
5920
5921 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
5922
5923         * tree.c (build_function_type_list_1): Remove bogus assert condition.
5924
5925 2010-05-17  Alan Modra  <amodra@gmail.com>
5926
5927         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
5928         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
5929         with copy_reg rtx param.
5930         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
5931         Correct cases where code for ABI_V4 did not initialise the reg
5932         used to access frame.  Also leave frame_reg_rtx as sp for large
5933         frames that save no regs.
5934
5935 2010-05-17  Martin Jambor  <mjambor@suse.cz>
5936
5937         PR middle-end/44133
5938         * tree-sra.c (create_access_replacement): New parameter rename, mark
5939         the replaement for renaming only when it is true.
5940         (get_access_replacement): Pass true in the rename parameter of
5941         create_access_replacement.
5942         (get_unrenamed_access_replacement): New function.
5943         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
5944         replacement declaration from it.
5945
5946 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
5947
5948         * function.c (try_fit_stack_local, add_frame_space): New static
5949         functions.
5950         (assign_stack_local_1): Use them.  Look for opportunities to use
5951         space previously wasted on alignment.
5952         * function.h (struct frame_space): New.
5953         (struct rtl_data): Add FRAME_SPACE_LIST member.
5954         * reload1.c (something_was_spilled): New static variable.
5955         (alter_reg): Set it.
5956         (reload): Test it in addition to testing if the frame size changed.
5957
5958 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
5959
5960         * config/s390/s390.c: Define sane prefetch settings and activate
5961         flag_prefetch_loop_arrays on -O3.
5962         * config/s390/s390.h: Declare that read can use write prefetch.
5963
5964 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
5965
5966         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
5967         build.
5968
5969 2010-05-16  Jan Hubicka  <jh@suse.cz>
5970
5971         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
5972         function body; do not check stdarg field of struct function.
5973
5974 2010-05-16  Jan Hubicka  <jh@suse.cz>
5975
5976         * cgraph.c (dump_cgraph_node): Dump versionable flag.
5977         * cgraph.h (cgraph_local_info): Add versionable flag.
5978         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
5979         (ipcp_versionable_function_p): Use it.
5980         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5981         versionable flag.
5982
5983 2010-05-16  Jan Hubicka  <jh@suse.cz>
5984
5985         * cgraph.c (cgraph_clone_node): Take decl argument and insert
5986         clone into hash when it is different from orig.
5987         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
5988         * cgraph.h (cgraph_clone_node): Update prototype.
5989         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
5990         (lto_cgraph_encoder_delete): Delete body map.
5991         (lto_cgraph_encoder_size): Move to header.
5992         (lto_cgraph_encoder_encode_body_p,
5993         lto_set_cgraph_encoder_encode_body): New.
5994         (lto_output_node): Do not take written_decls argument; output clone_of
5995         pointer.
5996         (add_node_to): Add include_body_argument; call
5997         lto_set_cgraph_encoder_encode_body on master of the clone.
5998         (add_references): Update use of add_node_to.
5999         (compute_ltrans_boundary): Likewise.
6000         (output_cgraph): Do not create written_decls bitmap.
6001         (input_node): Take nodes argument; stream in clone_of correctly.
6002         (input_cgraph_1): Update use of input_node.
6003         * lto-streamer-out.c (lto_output): Use encoder info to decide
6004         what bodies to output.
6005         * ipa-inline.c (cgraph_clone_inlined_nodes,
6006         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6007         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6008         (lto_cgraph_encoder_size): Define here.
6009         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6010         Declare.
6011
6012 2010-05-16  Richard Guenther  <rguenther@suse.de>
6013
6014         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6015         -fipa-type-escape.
6016         * ipa-type-escape.c (gate_type_escape_vars): Run when
6017         -fipa-struct-reorg runs.
6018         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6019         * common.opt (fipa-type-escape): Remove.
6020
6021 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6022
6023         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6024         (decode_options): Likewise.
6025         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6026
6027 2010-05-16  Jan Hubicka  <jh@suse.cz>
6028
6029         * ipa.c (function_and_variable_visibility): Also bring local all
6030         aliases.
6031
6032 2010-05-16  Richard Guenther  <rguenther@suse.de>
6033
6034         * alias.c (nonoverlapping_memrefs_p): Remove use of
6035         IPA type-escape information.
6036
6037 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
6038
6039         * c-common.c (c_common_reswords): Add _Static_assert for C.
6040         * c-parser.c (c_token_starts_declaration,
6041         c_parser_next_token_starts_declaration,
6042         c_parser_static_assert_declaration_no_semi,
6043         c_parser_static_assert_declaration): New.
6044         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6045         Handle static assertions if static_assert_ok.
6046         (c_parser_external_declaration, c_parser_declaration_or_fndef,
6047         c_parser_compound_statement_nostart, c_parser_label,
6048         c_parser_for_statement, c_parser_objc_methodprotolist,
6049         c_parser_omp_for_loop): All callers of
6050         c_parser_declaration_or_fndef changed.
6051         (c_parser_struct_declaration): Handle static assertions.
6052         (c_parser_compound_statement_nostart): Use
6053         c_parser_next_token_starts_declaration and
6054         c_token_starts_declaration to detect start of declarations.
6055         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6056         Likewise.
6057
6058 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
6059
6060         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6061         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6062         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6063         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6064         (mmix_function_outgoing_value): Rename to...
6065         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6066         (mmix_function_value_regno_p): Make static.
6067         (mmix_libcall_value): New function.
6068         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6069         mmix_function_value_regno_p): Remove declaration.
6070
6071 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
6072
6073         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6074         BUILT_IN_ALLOCA if stack checking is enabled.
6075
6076 2010-05-16  Richard Guenther  <rguenther@suse.de>
6077
6078         * var-tracking.c (vars_copy_1): Inline ...
6079         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
6080         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
6081         (variable_merge_over_cur): Adjust.  Merge asserts.
6082         (variable_merge_over_src): Likewise.
6083         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6084         (variable_post_merge_new_vals): Merge asserts.
6085         (variable_post_merge_perm_vals): Likewise.
6086         (find_mem_expr_in_1pdv): Likewise.
6087         (dataflow_set_different_value): Remove.
6088         (onepart_variable_different_p): Merge asserts.
6089         (variable_different_p): Likewise.
6090         (dataflow_set_different_1): Inline ...
6091         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
6092         (emit_notes_for_differences_1): Merge asserts.
6093
6094 2010-05-16  Richard Guenther  <rguenther@suse.de>
6095
6096         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6097         * optabs.c (libfunc_decl_hash): Likewise.
6098         * varasm.c (emutls_decl): Likewise.
6099
6100 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
6101
6102         * c-decl.c: Don't include gimple.h.
6103         (merge_decls): Do not copy gimple_body.
6104
6105 2010-05-15  Jason Merrill  <jason@redhat.com>
6106
6107         * c.opt: Add -fnothrow-opt.
6108
6109 2010-05-15  Jan Hubicka  <jh@suse.cz>
6110
6111         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6112         analyzed.
6113         * passes.c (ipa_write_summaries): Write all analyzed nodes.
6114
6115 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
6116
6117         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6118         * Makefile.in: Add it.
6119         Fix all other Makefile dependencies for changes below.
6120         * tree.h: Include it instead of defining VEC primitives here.
6121         * gimple.h: Likewise.
6122         * rtl.h: Likewise.
6123         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6124         * except.h: Include vecir.h, break dependence on tree.h.
6125
6126         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6127         Move from here...
6128         * tree-iterator.c: ...to here.
6129         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
6130
6131         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
6132         tm_p.h.
6133         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6134         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6135         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6136         tree-mudflap.h, and target.h.
6137         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6138         predict.h, tree-inline.h, gimple.h, and langhooks.h.
6139         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6140         Add FIXME for why gimple.h is still included (should be unnecessary
6141         since GCC 4.5 gimplification unit-at-a-time).
6142         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6143         * c-pragma.c: Add FIXME for why function.h needs to be included just
6144         for cfun, at front-end level.
6145         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6146         Do not include ggc.h, but include vecprim.h for VEC(char).
6147         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6148         Explain why target.h is included.
6149         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6150         Explain why gimple.h is included.
6151         * c-ppoutput.c: Do not include tm.h.
6152         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
6153         * c-parses.c: Explain why rtl.h is included, and that this (and only
6154         this) is also why tm.h must be included.
6155         Do not include except.h.
6156         * c-lang.c: Do not include ggc.h.
6157
6158 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
6159
6160         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6161
6162 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
6163
6164         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6165         unions by default if those structs and unions have no tags.  Do
6166         not condition anonymous struct and unions handling on flag_iso.
6167         Allow anonymous structs and unions for C1X.
6168         (finish_struct): Do not diagnose lack of named fields when
6169         anonymous structs and unions present for C1X.  Accept flexible
6170         array members in structure with anonymous structs or unions but no
6171         directly named fields.
6172         * doc/extend.texi (Unnamed Fields): Update.
6173
6174 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
6175
6176         * gimple.h (compare_field_offset): Rename into...
6177         (gimple_compare_field_offset): ...this.
6178         * gimple.c (compare_field_offset): Rename into...
6179         (gimple_compare_field_offset): ...this.  Compare the full access if
6180         the offset is self-referential.
6181         (gimple_types_compatible_p): Adjust for above renaming.
6182         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
6183         DECL_NONADDRESSABLE_P flag of fields before merging them.
6184
6185 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
6186
6187         * tree.h (ctor_to_list): Delete.
6188         * tree.c (ctor_to_list): Delete.
6189
6190 2010-05-15  Jan Hubicka  <jh@suse.cz>
6191
6192         * ipa-reference.c: Include toplev.h
6193         (is_proper_for_analysis): Only add to all_module_statics
6194         if it is allocated.
6195         (write_node_summary_p, stream_out_bitmap,
6196         ipa_reference_write_optimization_summary,
6197         ipa_reference_read_optimization_summary): New.
6198         (struct ipa_opt_pass_d pass_ipa_reference): Add
6199         optimization summary streaming.
6200         * lto-cgraph.c (referenced_from_this_partition_p,
6201         reachable_from_this_partition_p): New functions.
6202         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6203         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6204         * opts.c (decode_options): Enable ipa_reference.
6205         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6206         * lto-streamer.h (referenced_from_this_partition_p,
6207         reachable_from_this_partition_p): Declare.
6208
6209 2010-05-15  Richard Guenther  <rguenther@suse.de>
6210
6211         PR tree-optimization/44038
6212         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6213         taking the address of a V_C_E of a constant.
6214
6215 2010-05-14  Jan Hubicka  <jh@suse.cz>
6216
6217         * tree.h (memory_identifier_string): Remove.
6218         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6219         (ipa_reference_global_vars_info_d): Remove statics_not_read and
6220         statics_not_written.
6221         (ipa_reference_optimization_summary_d): New structure.
6222         (ipa_reference_optimization_summary_t): New type and vector.
6223         (ipa_reference_vars_info_d): Embedd structures instead of using
6224         pointers.
6225         (reference_vars_to_consider): Remove out of GGC space.
6226         (module_statics_escape): Remove.
6227         (global_info_obstack): Rename to ...
6228         (optimization_summary_obstack): ... this one.
6229         (initialization_status_t): Remove.
6230         (memory_identifier_string): Remove.
6231         (get_reference_vars_info): Fix indenting.
6232         (set_reference_vars_info): Likewise.
6233         (get_reference_optimization_summary): New.
6234         (set_reference_optimization_summary): New.
6235         (get_global_reference_vars_info): Remove.
6236         (ipa_reference_get_read_global): Remove.
6237         (ipa_reference_get_written_global): Remove.
6238         (ipa_reference_get_not_read_global): Update.
6239         (ipa_reference_get_not_written_global): Update.
6240         (is_proper_for_analysis): Outlaw addressable.
6241         (propagate_bits): Update for new datastructures.
6242         (analyze_variable): Remove.
6243         (init_function_info): Update for new datastructures.
6244         (clean_function_local_data): Remove.
6245         (clean_function): Remove.
6246         (copy_global_bitmap): Use optimizations_summary_obstack.
6247         (duplicate_node_data): Duplicate optimization summary only.
6248         (remove_node_data): Remove optimization summary only.
6249         (generate_summary): Do not analyze variables; do not compute
6250         module_statics_escape; do not prune solutions by it.
6251         (read_write_all_from_decl): Fix typos in comments.
6252         (propagate): Doscover readonly and nonaddressable first;
6253         update for new datastructures; share global bitmaps.
6254         * ipa-reference.h (ipa_reference_get_read_global,
6255         ipa_reference_get_written_global): Remove.
6256         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6257         * Makefile.in: Remove ipa-refereference from GT files.
6258
6259 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
6260
6261         PR debug/44112
6262         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6263         for all SYMBOL_REF_DECLs.
6264
6265 2010-05-14  Jan Hubicka  <jh@suse.cz>
6266
6267         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6268         (varpool_all_refs_explicit_p): New inline function.
6269         * ipa-reference.c: Update comment.
6270         (module_statics_written): Remove.
6271         (get_static_decl): Remove.
6272         (ipa_init): Do not initialize module_statics_written.
6273         (analyze_function): Likewise.
6274         (generate_summary): Likewise; do not compute module_statics_readonly
6275         and do not update variable flags.
6276         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6277         * ipa.c: Inlucde flags.h
6278         (cgraph_local_node_p): New.
6279         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6280         promote functions to local.
6281         (ipa_discover_readonly_nonaddressable_vars): New function.
6282         (function_and_variable_visibility): Use cgraph_local_node_p.
6283         * varpool.c (varpool_finalize_decl): Set force_output for
6284         DECL_PRESERVE_P vars.
6285
6286 2010-05-14  Jan Hubicka  <jh@suse.cz>
6287
6288         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6289
6290 2010-05-14  Richard Guenther  <rguenther@suse.de>
6291
6292         PR tree-optimization/44119
6293         * tree-ssa-pre.c (eliminate): Properly mark replacement of
6294         a PHI node necessary.
6295
6296 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
6297
6298         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6299
6300 2010-05-14  Jason Merrill  <jason@redhat.com>
6301
6302         PR c++/44127
6303         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6304         (gimple_call_set_nothrow): New.
6305         * gimple.c (gimple_build_call_from_tree): Call it.
6306         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6307
6308         PR c++/44127
6309         * gimplify.c (gimplify_seq_add_stmt): No longer static.
6310         * gimple.h: Declare it.
6311         * gimple.c (gimple_build_eh_filter): No ops.
6312
6313 2010-05-14  Jan Hubicka  <jh@suse.cz>
6314
6315         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6316         nodes already in queue.
6317         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6318         re-enqueueing node.
6319
6320 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
6321
6322         PR debug/44136
6323         * cfgexpand.c (expand_debug_expr): If non-memory op0
6324         has BLKmode, return NULL.
6325
6326 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
6327
6328         * config.gcc: Add support for --with-cpu option for bdver1.
6329         * config/i386/i386.h (TARGET_BDVER1): New macro.
6330         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6331         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6332         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6333         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6334         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6335         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6336         (processor_type): Add PROCESSOR_BDVER1.
6337         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6338         processor_type in config/i386/i386.h.
6339         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6340         movaps <reg, reg> instead of movapd <reg, reg> when replacing
6341         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6342         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6343         to emit packed xor instead of packed double/packed integer
6344         xor for SSE and AVX when moving a zero value.
6345         * config/i386/sse.md: Add check for
6346         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6347         movapd/movdqa for SSE and AVX.
6348         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6349         single logical operations i.e and, or and xor instead of packed double
6350         logical operations for SSE and AVX.
6351         * config/i386/i386-c.c (ix86_target_macros_internal):
6352         Add PROCESSOR_BDVER1.
6353         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6354         (has_fma4, has_xop): New.
6355         * config/i386/i386.c (bdver1_cost): New variable.
6356         (m_BDVER1): New macro.
6357         (m_AMD_MULTIPLE): Add m_BDVER1.
6358         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6359         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6360         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6361         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6362         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6363         x86_tune_sse_partial_reg_dependency,
6364         x86_tune_sse_unaligned_load_optimal,
6365         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6366         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6367         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6368         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6369         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6370         Enable/disable for bdver1.
6371         (processor_target_table): Add bdver1_cost.
6372         (cpu_names): Add bdver1.
6373         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6374          processor_alias_table.
6375         (ix86_expand_vector_move_misalign): Change.
6376         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6377         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6378         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6379         of movupd/movdqu for SSE and AVX.
6380         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6381         (ix86_tune_adjust_cost): Add code for bdver1.
6382         (standard_sse_constant_opcode): Add check for
6383         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6384         of packed double xor for SSE and AVX.
6385
6386 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
6387
6388         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6389         result to unsigned.
6390
6391 2010-05-14  Tristan Gingold  <gingold@adacore.com>
6392
6393         * toplev.c (default_debug_hooks): Remove this variable.
6394         (process_options): Remove assignments to default_debug_hooks.
6395
6396 2010-05-14  Martin Jambor  <mjambor@suse.cz>
6397
6398         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6399         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6400         * langhooks.h (struct lang_hooks_for_decls): Removed field
6401         fold_obj_type_ref.
6402         * tree.c (free_lang_data): Remove assignment to
6403         lang_hooks.fold_obj_type_ref.
6404         * tree.def (OBJ_TYPE_REF): Update comment.
6405
6406 2010-05-14  Richard Guenther  <rguenther@suse.de>
6407
6408         PR tree-optimization/44124
6409         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6410
6411 2010-05-14  Alan Modra  <amodra@gmail.com>
6412
6413         PR target/44075
6414         * config/rs6000/rs6000.c (struct machine_function): Reorder
6415         fields for better packing.  Add lr_save_state.
6416         (rs6000_ra_ever_killed): Return lr_save_state if set.
6417         (rs6000_emit_eh_reg_restore): Set lr_save_state.
6418
6419 2010-05-13  Jan Hubicka  <jh@suse.cz>
6420
6421         * varpool.c (decide_is_variable_needed): Drop code checking
6422         TREE_SYMBOL_REFERENCED.
6423
6424 2010-05-13  Jan Hubicka  <jh@suse.cz>
6425
6426         * final.c (output_addr_const): Do not call mark_decl_referenced.
6427         * cgraphunit.c (process_function_and_variable_attributes): Use
6428         mark_needed_node dirrectly.
6429         (assemble_thunk): Do not call mark_decl_referenced.
6430
6431 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
6432
6433         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6434
6435 2010-05-13  Jeff Law  <law@redhat.com>
6436
6437         * ira-conflicts.c (print_allocno_conflicts): New function broken out
6438         from...
6439         (print_conflicts): Call print_allocno_conflicts.
6440
6441 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
6442
6443         PR debug/44104
6444         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6445         if it is NULL.
6446
6447 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
6448
6449         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6450         t-mingw-w64 or t-mingw-w32 for multilib configuration.
6451         * config/i386/t-mingw-w32: New.
6452         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6453
6454 2010-05-13  Martin Jambor  <mjambor@suse.cz>
6455
6456         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6457         gimple-fold.c).
6458         * gimple-fold.c (get_base_binfo_for_type): New function.
6459         (gimple_get_relevant_ref_binfo): Likewise.
6460         (gimple_fold_obj_type_ref_known_binfo): Likewise.
6461         (gimple_fold_obj_type_ref): Likewise.
6462         (fold_gimple_call): Simplify condition for folding virtual calls
6463         and call gimple_fold_obj_type_ref.
6464         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
6465         (gimple_fold_obj_type_ref_known_binfo): Likewise.
6466
6467 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
6468
6469         * config/rs6000/rs6000-protos.h
6470         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
6471         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
6472         (rs6000_debug_mode_dependent_address)
6473         (rs6000_mode_dependent_address_ptr): Likewise.
6474
6475 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
6476
6477         PR debug/43983
6478         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
6479         by SRA.
6480         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
6481         * tree-sra.c (create_access_replacement): Call unshare_expr before
6482         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
6483         * dwarf2out.c: Include tree-flow.h.
6484         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
6485         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6486         Handle DW_OP_bit_piece.
6487         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
6488         construct_piece_list, adjust_piece_list): New functions.
6489         (add_var_loc_to_decl): Handle SRA optimized variables.
6490         Adjust for var_loc_note to loc field renaming.
6491         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
6492         in VAR_LOCATION note.
6493         (new_loc_descr_op_bit_piece): New function.
6494         (dw_sra_loc_expr): New function.
6495         (dw_loc_list): Use it.  Don't handle the last range after the
6496         loop, handle it inside of the loop.  Adjust for var_loc_note
6497         to loc field renaming.
6498         (add_location_or_const_value_attribute): Only special case
6499         single entry loc lists if loc is NOTE_P.  Adjust for
6500         var_loc_note to loc field renaming.
6501         (dwarf2out_var_location): Don't set newloc->var_loc_note
6502         and newloc->next here.
6503
6504 2010-05-12  Jan Hubicka  <jh@suse.cz>
6505
6506         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
6507         flag.
6508         * cgraph.h (cgraph_only_called_directly_p,
6509         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
6510         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
6511         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
6512         (assemble
6513         * ipa.c (cgraph_remove_unreachable_nodes): Use
6514         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
6515         flags.
6516         * tree-inline.c (copy_bb): Check address_taken flag.
6517         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
6518         externally_visible flag.
6519
6520 2010-05-12  Jason Merrill  <jason@redhat.com>
6521
6522         PR bootstrap/44048
6523         PR target/44099
6524         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
6525         * sdbout.c (plain_type_1): Likewise.
6526         * dwarf2out.c (is_base_type): Likewise.
6527         (gen_type_die_with_usage): Likewise.  Generate
6528         DW_TAG_unspecified_type for any LANG_TYPE.
6529
6530 2010-05-12  Jan Hubicka  <jh@suse.cz>
6531
6532         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
6533         indrect edges too.
6534         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
6535         (cgraph_clone_edge): Update.
6536         (cgraph_node_remove_callees): Remove indirect calls too.
6537         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
6538         (cgraph_create_indirect_edge): Update prototype.
6539         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
6540         is_proper_for_analysis.
6541         (add_new_function, visited_nodes, function_insertion_hook_holder,
6542         get_local_reference_vars_info, mark_address_taken, mark_address,
6543         mark_load, mark_store, check_asm_memory_clobber, check_call,
6544         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
6545         (ipa_init): Do not initialize visited_nodes;
6546         function_insertion_hook_holder.
6547         (analyze_variable): Rewrite.
6548         (analyze_function): Rewrite.
6549         (copy_local_bitmap): Remove.
6550         (duplicate_node_dat): Do not duplicate local info.
6551         (generate_summary): Simplify to only walk cgraph.
6552         (write_node_summary_p, ipa_reference_write_summary,
6553         ipa_reference_read_summary): Remove.
6554         (propagate): Do not remove function insertion;
6555         generate summary.
6556         (pass_ipa_reference): NULLify summary handling fields.
6557         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
6558         (input_edge): Input ecf_flags.
6559         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
6560         (update_indirect_edges_after_inlining): Ignore edges with unknown
6561         param.
6562
6563 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
6564
6565         * implicit-zee.c: New file.
6566         * tree-pass.h (pass_implicit_zee): Declare.
6567         * passes.c (init_optimization_passes): Add zee pass.
6568         * common.opt (fzee): New flag.
6569         * timevar.def (TV_ZEE): Define.
6570         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
6571         and beyond.
6572         * Makefile.in (implicit-zee.o): Add new build file.
6573
6574 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
6575             Nathan Froyd  <froydnj@codesourcery.com>
6576
6577         * c-common.c (sync_resolve_params): Remove write-only variable.
6578
6579 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
6580
6581         * target.h (struct gcc_target): Add mode_dependent_address_p field.
6582         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6583         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
6584         * targhooks.c (default_mode_dependent_address_p): New function.
6585         * targhooks.h (default_mode_dependent_address_p): Declare function.
6586         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6587         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
6588         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
6589         target hook. Change return type to bool.
6590         * recog.h (mode_dependent_address_p): Change return type to bool.
6591
6592 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
6593             Nathan Froyd  <froydnj@codesourcery.com>
6594
6595         * tree-mudflap.c (build_function_type_0, build_function_type_1,
6596         build_function_type_2, build_function_type_3): Remove.
6597         (mudflap_init): Use build_function_type_list.
6598
6599 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
6600             Nathan Froyd  <froydnj@codesourcery.com>
6601
6602         * coverage.c (build_fn_info_value): Call build_constructor instead of
6603         build_constructor_from_list.
6604         (build_ctr_info_value): Likewise.
6605         (build_gcov_info): Likewise.
6606
6607 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
6608
6609         * tree.c (build_constructor): Compute TREE_CONSTANT for the
6610         resultant constructor.
6611         (build_constructor_single): Don't set TREE_CONSTANT.
6612         (build_constructor_from_list): Don't compute TREE_CONSTANT.
6613
6614 2010-05-12  Jan Hubicka  <jh@suse.cz>
6615
6616         * cgraph.h (struct varpool_node): Add aux.
6617         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
6618         * varpool.c (varpool_remove_node): Do not remove initializer.
6619         (varpool_reset_queue): Export.
6620         (varpool_finalize_decl): Volatile vars are forced to be output.
6621         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
6622         replaced decl.
6623         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
6624         process_references, varpool_can_remove_if_no_refs): New functions.
6625         (cgraph_remove_unreachable_nodes): Handle variables too.
6626
6627 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         PR target/44088
6630         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
6631
6632 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
6633
6634         PR middle-end/44085
6635         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
6636         change value of ORT_TASK.
6637         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
6638         (omp_notice_threadprivate_variable): New function.
6639         (omp_notice_variable): Call it for threadprivate variables.
6640         If enclosing ctx is a task, print enclosing task rather than
6641         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
6642         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
6643         if task has untied clause.
6644
6645         PR debug/42278
6646         * dwarf2out.c (base_type_die): Don't add name attribute here.
6647         (modified_type_die): Instead of sizetype use
6648         its underlying original type.  If a DW_TAG_base_type doesn't
6649         have name added, add __unknown__.
6650         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
6651         always call force_type_die instead.
6652
6653 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
6654
6655         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
6656         for __stack_chk_guard.
6657
6658 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
6659
6660         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
6661         don't call start_source_file debug hook here...
6662         (finish_options): ... but here, after outputting predefined and
6663         command line defines and undefs.
6664
6665         PR middle-end/44071
6666         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
6667         no fallthru edge.
6668         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
6669         optimizing away empty bb with no successors, move over its
6670         footer chain to fallthru predecessor.
6671         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
6672         (rtl_split_edge): For asm goto call patch_jump_insn even if
6673         splitting fallthru edge.
6674
6675         PR c++/44059
6676         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
6677         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
6678         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
6679         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
6680         on DW.ref.* decls.
6681
6682         PR c++/44062
6683         * c-parser.c (c_parser_expression): Mark LHS of a comma
6684         expression as read if it is a decl, handled component or
6685         COMPOUND_EXPR with that on the RHS.
6686         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
6687         if it is a decl or handled component.
6688
6689 2010-05-11  Jan Hubicka  <jh@suse.cz>
6690
6691         * lto-symtab.c (lto_symtab_free): New function.
6692         * lto-streamer.h (lto_symtab_free): Declare.
6693
6694 2010-05-11  Jan Hubicka  <jh@suse.cz>
6695
6696         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
6697         that if function is needed it is reachable.
6698         (lto_output_node): See if it the function is reachable or referenced.
6699         (output_cgraph): Update call of lto_output_node.
6700         * lto-streamer.h (reachable_from_other_partition_p): Declare.
6701
6702 2010-05-11  Jan Hubicka  <jh@suse.cz>
6703
6704         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
6705         Mark as used.
6706
6707 2010-05-11  Jan Hubicka  <jh@suse.cz>
6708
6709         PR tree-optimize/44063
6710         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
6711         queue.
6712         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
6713         limits.
6714         (estimate_function_body_sizes): Compute sizes even when disregarding.
6715
6716 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
6717
6718         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
6719
6720 2010-05-11  Jan Hubicka  <jh@suse.cz>
6721
6722         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
6723         into every boundary.
6724
6725 2010-05-11  Jan Hubicka  <jh@suse.cz>
6726
6727         * matrix-reorg.c (matrix_reorg): Rebuild edges.
6728
6729 2010-05-11  Jan Hubicka  <jh@suse.cz>
6730
6731         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
6732         lto_streamer_cache_delete): Put nodes into heap.
6733         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
6734         heap.
6735
6736 2010-05-11  Jan Hubicka  <jh@suse.cz>
6737
6738         * cgraphbuild.c (cgraph_rebuild_references): New.
6739         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
6740         out extern inlines.
6741         * cgraph.h (cgraph_rebuild_references): Declare.
6742         * tree-inline.c (tree_function_versioning): Use it.
6743         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
6744
6745 2010-05-11  Jan Hubicka  <jh@suse.cz>
6746
6747         * cgraph.c: Include ipa-utils.h
6748         (cgraph_create_virtual_clone): Update references.
6749         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
6750
6751 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
6752
6753         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
6754         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
6755         cache size.
6756
6757 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
6758
6759         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
6760
6761 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
6762
6763         * gcc.c (execute): For -### don't quote arguments that
6764         contain just alphanumerics and _/-. characters.
6765         * doc/invoke.texi: Document that change for -###.
6766
6767         PR debug/44023
6768         * df-problems.c (struct dead_debug): Add to_rescan field.
6769         (dead_debug_init): Clear to_rescan field.
6770         (dead_debug_finish): Rescan all debug insns in to_rescan
6771         bitmap and free the bitmap.
6772         (dead_debug_insert_before): Instead of rescanning debug insns
6773         immediately queue their rescanning until dead_debug_finish.
6774         (df_note_bb_compute): After dead_debug_add do continue instead
6775         of break.
6776
6777 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
6778
6779         PR debug/44028
6780         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
6781         clear also INSN_REG_USE_LIST.
6782
6783 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6784
6785         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
6786
6787 2010-05-10  Jan Hubicka  <jh@suse.cz>
6788
6789         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
6790         commited change.
6791
6792 2010-05-10  Jan Hubicka  <jh@suse.cz>
6793
6794         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
6795         Allocate encoders.
6796         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
6797         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
6798         (lto_streamer_cache_create): Init alloc pool.
6799         (lto_streamer_cache_delete): Free alloc pool.
6800         * lto-streamer.h: Include alloc pool.
6801         (lto_streamer_cache_d): Use alloc pool.
6802         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
6803
6804 2010-05-10  Jan Hubicka  <jh@suse.cz>
6805
6806         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
6807         * cgraphbuild.c: Include except.h
6808         (record_type_list, record_eh_tables): New function.
6809         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
6810
6811 2010-05-10  Jan Hubicka  <jh@suse.cz>
6812
6813         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
6814         __frame_dummy_init_array_entry, force_to_data): Attribute as used
6815         rather than unused.
6816
6817 2010-05-10  Michael Matz  <matz@suse.de>
6818
6819         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
6820         (can_reassociate_p): Use FLOAT_TYPE_P.
6821         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
6822         (vect_force_simple_reduction): ... this.
6823         * tree-parloops.c (gather_scalar_reductions): Use
6824         vect_force_simple_reduction.
6825         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
6826         vect_is_simple_reduction, add modify argument, if true rewrite
6827         "a-b" into "a+(-b)".
6828         (vect_is_simple_reduction, vect_force_simple_reduction): New
6829         functions.
6830         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
6831
6832 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6833             Vladimir Makarov  <vmakarov@redhat.com>
6834
6835         PR rtl-optimization/44012
6836         * ira-build.c (remove_unnecessary_allocnos): Nullify
6837         regno_allocno_map of the removed allocno.
6838
6839 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6840
6841         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
6842         to /dev/null.
6843         * configure: Regenerate.
6844
6845 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6846
6847         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
6848         unused.
6849         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
6850         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
6851         support in Sun ld.
6852         * configure: Regenerate.
6853
6854 2010-05-10  Richard Guenther  <rguenther@suse.de>
6855
6856         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
6857         marked if the entry identifier is marked.
6858
6859 2010-05-10  Richard Guenther  <rguenther@suse.de>
6860
6861         * c-common.c (struct c_common_attributes): Add fnspec attribute.
6862         (handle_fnspec_attribute): New function.
6863         * gimple.h (gimple_call_return_flags): Declare.
6864         (gimple_call_arg_flags): Likewise.
6865         * gimple.c (gimple_call_arg_flags): New function.
6866         (gimple_call_return_flags): Likewise.
6867         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
6868         New argument flags.
6869         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
6870         return value flags.
6871         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
6872         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
6873         main work to ...
6874         (make_heapvar_for): ... this new function.
6875         (handle_rhs_call): Handle fnspec attribute argument specifiers.
6876         (handle_lhs_call): Likewise.
6877         (find_func_aliases): Adjust.
6878
6879 2010-05-10  Richard Guenther  <rguenther@suse.de>
6880
6881         PR tree-optimization/44050
6882         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
6883
6884 2010-05-10  Wei Guozhi  <carrot@google.com>
6885
6886         PR target/42879
6887         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
6888
6889 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
6890
6891         PR c/10676
6892         * c-typeck.c (lookup_field): Take a type directly.  Update
6893         recursive calls.
6894         (build_component_ref): Update call to lookup_field.
6895         (set_init_label): Use lookup_field to find initialized field.
6896         Handle returned list of fields like a sequence of designators.
6897
6898 2010-05-09  Richard Guenther  <rguenther@suse.de>
6899
6900         PR middle-end/44024
6901         * fold-const.c (tree_single_nonzero_warnv_p): Properly
6902         handle &FUNCTION_DECL.
6903
6904 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
6905
6906         PR c/4784
6907         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
6908         structures and unions recursively.
6909         (detect_field_duplicates): Move duplicate detection with a hash to
6910         detect_field_duplicates_hash.  Always use a hash if anonymous
6911         structures or unions are present.
6912         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
6913         give errors.
6914
6915 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6916
6917         PR target/44046
6918         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
6919         detect Atom, Core 2 and Core i7.
6920
6921 2010-05-09  Richard Guenther  <rguenther@suse.de>
6922
6923         * gcc.c (store_arg): Handle temporary file deletion for
6924         joined arguments.
6925
6926 2010-05-09  Richard Guenther  <rguenther@suse.de>
6927
6928         PR middle-end/44043
6929         * ipa-inline.c (estimate_function_body_sizes): Return after
6930         disregarding inline limits.
6931
6932 2010-05-09  Richard Guenther  <rguenther@suse.de>
6933
6934         * gcc.c (store_arg): Revert last change.
6935
6936 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
6937
6938         PR middle-end/28685
6939         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
6940         (optimize_ops_list): Call it.
6941
6942 2010-05-08  Richard Guenther  <rguenther@suse.de>
6943
6944         PR tree-optimization/44030
6945         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
6946         NECESSARY flag if we propagate from a inserted expression.
6947
6948 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6949
6950         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
6951         domain types as equal if they are both PLACEHOLDER_EXPRs.
6952
6953 2010-05-08  Richard Guenther  <rguenther@suse.de>
6954
6955         * lto-wrapper.c (run_gcc): Remove linker output from
6956         command line for LTRANS invocation.
6957
6958 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6959
6960         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6961         lto-macho as lto_binary_reader.
6962         * target.h (struct gcc_target): New hooks lto_start and lto_end.
6963         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
6964         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
6965         in lto_start and lto_end calls.
6966         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
6967         magic numbers.
6968         (scan_prog_file): Update is_elf_or_coff call.
6969         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
6970
6971         * collect2.c (main): Fix enum comparison.
6972
6973         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
6974         Add prototypes.
6975         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
6976         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
6977         and TARGET_ASM_LTO_END.
6978         * darwin.c: Include obstack.h and lto-streamer.h.
6979         (lto_section_names_offset, lto_section_names_obstack,
6980         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
6981         global variables.
6982         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
6983         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
6984         to a temporary file.
6985         (darwin_asm_lto_end): New function.  Restore asm_out_file.
6986         (darwin_asm_named_section): For LTO sections, replace the name with
6987         the offset of the section name in a string table, and build this
6988         table.
6989         (darwin_file_start): Initialize global vars for LTO support.
6990         (darwin_file_end): If output to asm_out_file was redirected, append it
6991         to the proper asm_out_file here.  Add the section names section.
6992
6993 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
6994
6995         * c-pragma.c (pending_weak_d, pending_weak): New.
6996         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
6997         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
6998         handle_pragma_weak): Update the uses of pending_weaks.
6999
7000 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7001
7002         PR documentation/44016
7003         * doc/standards.texi (Standards): Link to unversioned
7004         cxx0x_status.html page.
7005
7006 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
7007
7008         PR target/43708
7009         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7010         in addition to TREE_USED, to avoid "set but unused" warnings.
7011
7012 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
7013
7014         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7015         (is_loop_prefetching_profitable): Do not insert prefetches
7016         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7017         times the prefetch ahead distance.
7018
7019 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
7020
7021         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7022         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7023         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7024         the unroll_factor.
7025
7026 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
7027
7028         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7029         a diagnostic info when the insn-to-mem ratio is too small.
7030
7031 2010-05-07  Richard Guenther <rguenther@suse.de>
7032
7033         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7034         the linker plugin.
7035         (store_arg): Queue temp_filename for deletion instead of
7036         the whole argument.
7037
7038 2010-05-07  Richard Guenther  <rguenther@suse.de>
7039
7040         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7041         (run_gcc): Handle LTRANS phase invocation.
7042         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7043
7044 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
7045
7046         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7047         this is also meaningful on PARM_DECLs and RESULT_DECLs.
7048
7049 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7050
7051         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7052
7053 2010-05-07  Richard Guenther  <rguenther@suse.de>
7054
7055         PR tree-optimization/44020
7056         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7057         code when PRE is not yet initialized.
7058
7059 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7060
7061         * config/mips/dbxmdebug.h: Remove.
7062         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7063
7064 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
7065
7066         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7067         with null pointer and also warn about ordered comparison of zero with
7068         pointer if -Wextra.
7069
7070 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7071
7072         * graphite-blocking.c
7073         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7074         * graphite-clast-to-gimple.c
7075         (clast_to_gcc_expression): Same.
7076         (precision_for_value): Same.
7077         (precision_for_interval): Same.
7078         (gcc_type_for_interval): Same.
7079         (graphite_create_new_guard): Same.
7080         (compute_bounds_for_level): Same.
7081         (graphite_create_new_loop_guard): Same.
7082         * graphite-interchange.c
7083         (build_linearized_memory_access): Same.
7084         (pdr_stride_in_loop): Same.
7085         (memory_strides_in_loop_1): Same.
7086         (memory_strides_in_loop): Same.
7087         (extend_scattering): Same.
7088         (psct_scattering_dim_for_loop_depth): Same.
7089         (pbb_number_of_iterations): Same.
7090         * graphite-poly.h
7091         (debug_iteration_domains): Same.
7092         * graphite-ppl.c
7093         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7094         (ppl_set_inhomogeneous_gmp): Same.
7095         (ppl_strip_loop): Same.
7096         (ppl_lexico_compare_linear_expressions): Same.
7097         (ppl_read_polyhedron_matrix): Same.
7098         (ppl_max_for_le_pointset): Same.
7099         * graphite-ppl.h
7100         (ppl_read_polyhedron_matrix): Same.
7101         (tree_int_to_gmp): Same.
7102         (gmp_cst_to_tree): Same.
7103         (ppl_set_inhomogeneous): Same.
7104         (ppl_set_inhomogeneous_tree): Same.
7105         (ppl_set_coef): Same.
7106         (ppl_set_coef_tree): Same.
7107         * graphite-sese-to-poly.c
7108         (build_pbb_scattering_polyhedrons): Same.
7109         (build_scop_scattering): Same.
7110         (scan_tree_for_params_right_scev): Same.
7111         (scan_tree_for_params): Same.
7112         (find_params_in_bb): Same.
7113         (find_scop_parameters): Same.
7114         (add_upper_bounds_from_estimated_nit): Same.
7115         (build_loop_iteration_domains): Same.
7116         (add_condition_to_domain): Same.
7117         (pdr_add_memory_accesses): Same.
7118
7119 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7120
7121         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7122         CLooG's value_* macros to their respective mpz_* counterparts.
7123         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7124         (graphite_create_new_loop_guard): Same.
7125         * graphite-interchange.c (build_linearized_memory_access): Same.
7126         (pdr_stride_in_loop): Same.
7127         (memory_strides_in_loop_1): Same.
7128         (1st_interchange_profitable_p): Same.
7129         * graphite-poly.c (extend_scattering): Same.
7130         (psct_scattering_dim_for_loop_depth): Same.
7131         (pbb_number_of_iterations): Same.
7132         (pbb_number_of_iterations_at_time): Same.
7133         * graphite-poly.h (new_1st_loop): Same.
7134         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7135         (oppose_constraint): Same.
7136         (insert_constraint_into_matrix): Same.
7137         (ppl_set_inhomogeneous_gmp): Same.
7138         (ppl_set_coef_gmp): Same.
7139         (ppl_strip_loop): Same.
7140         (ppl_lexico_compare_linear_expressions): Same.
7141         (ppl_max_for_le_pointset): Same.
7142         (ppl_min_for_le_pointset): Same.
7143         (ppl_build_realtion): Same.
7144         * graphite-ppl.h (gmp_cst_to_tree): Same.
7145         (ppl_set_inhomogeneous): Same.
7146         (ppl_set_inhomogeneous_tree): Same.
7147         (ppl_set_coef): Same.
7148         (ppl_set_coef_tree): Same.
7149         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7150         (build_scop_scattering): Same.
7151         (add_value_to_dim): Same.
7152         (scan_tree_for_params_right_scev): Same.
7153         (scan_tree_for_params_int): Same.
7154         (scan_tree_for_params): Same.
7155         (find_params_in_bb): Same.
7156         (find_scop_parameters): Same.
7157         (add_upper_bounds_from_estimated_nit): Same.
7158         (build_loop_iteration_domains): Same.
7159         (create_linear_expr_from_tree): Same.
7160         (add_condition_to_domain): Same.
7161         (pdr_add_memory_accesses): Same.
7162
7163 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
7164             Jason Merrill  <jason@redhat.com>
7165
7166         * c-common.c (c_common_reswords): Add nullptr.
7167         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
7168         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7169         (gen_type_die_with_usage): Likewise.
7170         * dbxout.c (dbxout_type): Likewise.
7171         * sdbout.c (plain_type_1): Likewise.
7172
7173 2010-05-06  Jason Merrill  <jason@redhat.com>
7174
7175         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7176         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
7177         ret appropriately.
7178         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7179
7180         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7181         stripping WITH_SIZE_EXPR.
7182         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7183         change.
7184
7185 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7186
7187         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7188         list of obsolete configurations.
7189         Disabled check for obsolete configurations.
7190         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7191         Removed support for previous versions.
7192         * config/mips/iris.h: Removed.
7193         * config/mips/iris5.h: Removed.
7194         * config/mips/iris6.h: Merged old iris.h contents.
7195         (TARGET_IRIX): Removed.
7196         (DRIVER_SELF_SPECS): Removed mabi=32.
7197         (IDENT_ASM_OP): Removed undef.
7198         (STARTFILE_SPEC): Removed mabi=32.
7199         (ENDFILE_SPEC): Likewise.
7200         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7201         (MACHINE_TYPE): Update for IRIX 6.5.
7202         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7203         TARGET_IRIX by TARGET_IRIX6.
7204         (mips_file_start): Likewise.
7205         (mips_output_external): Remove IRIX 5/6 O32 support.
7206         (mips_output_function_prologue): Likewise.
7207         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7208         TARGET_IRIX6.
7209         (TARGET_CPU_CPP_BUILTINS): Likewise.
7210         (TARGET_IRIX): Removed.
7211         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7212         (MULTILIB_DIRNAMES): Removed 32.
7213         (MULTILIB_OSDIRNAMES): Removed ../lib.
7214         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7215         (Specific, mips-sgi-irix5): Document removal.
7216         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7217         Remove references to older IRIX 6 releases and the O32 ABI.
7218
7219 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
7220
7221         PR bootstrap/43994
7222         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7223         instead of DF_REF_REAL_REG.
7224
7225 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
7226
7227         PR target/43888
7228         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7229         handling to still return true for x64 targets.
7230
7231 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7232
7233         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7234
7235 2010-05-06  Jan Hubicka  <jh@suse.cz>
7236
7237         PR tree-optimization/43791
7238         * ipa-inline.c (update_caller_keys): Remove bogus
7239         disregard_inline_limits check.
7240
7241 2010-05-06  Michael Matz  <matz@suse.de>
7242
7243         PR tree-optimization/43984
7244         * tree-ssa-pre.c (inserted_phi_names): Remove.
7245         (inserted_exprs): Change to bitmap.
7246         (create_expression_by_pieces): Set bits, don't append to vector.
7247         (insert_into_preds_of_block): Don't handle inserted_phi_names.
7248         (eliminate): Don't look at inserted_phi_names, remove deleted
7249         insns from inserted_exprs.
7250         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7251         (init_pre, fini_pre): Allocate and free bitmaps.
7252         (execute_pre): Insert insns on edges before elimination.
7253
7254 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7255
7256         * tree.c (initializer_zerop): Handle STRING_CST.
7257
7258 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7259
7260         PR 40989
7261         * doc/invoke.texi (Wimplicit): Document as C only.
7262         * opts.c (common_handle_option): Add argument kind.
7263         (handle_option): Rename as read_cmdline_option. Factor out code to...
7264         (handle_option): ... here. New.
7265         (handle_options): Rename as read_cmdline_options.
7266         (decode_options): Update call.
7267         (set_option): Use option index instead of option pointer. Classify
7268         diagnostics correctly.
7269         (enable_warning_as_error): Call handle_option.
7270         * opts.h (set_option): Update declaration.
7271         (handle_option): Declare.
7272         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7273         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7274         * c-opts.c (set_Wimplicit): Delete.
7275         (c_family_lang_mask): New static constant.
7276         (c_common_handle_option): Add argument kind. Use handle_option
7277         instead of set_Wimplicit.
7278         (c_common_post_options): warn_implicit and warn_implicit_int
7279         are disabled by default.
7280         * c-common.c (warn_implicit): Do not define here.
7281         * c-common.h (warn_implicit): Do not declare here.
7282         (c_common_handle_option): Update declaration.
7283         * lto-opts.c (lto_reissue_options): Update call to set_option.
7284
7285 2010-05-06  Richard Guenther  <rguenther@suse.de>
7286
7287         PR tree-optimization/43571
7288         * domwalk.c (walk_dominator_tree): Walk the dominator
7289         sons in more optimal order.
7290
7291 2010-05-06  Richard Guenther  <rguenther@suse.de>
7292
7293         PR tree-optimization/43934
7294         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7295         (stmt_cost): Likewise.
7296         (extract_true_false_args_from_phi): New helper.
7297         (determine_max_movement): For PHI nodes verify we can hoist them
7298         and compute their cost.
7299         (determine_invariantness_stmt): Handle PHI nodes.
7300         (move_computations_stmt): Likewise.  Hoist PHI nodes in
7301         if-converted form using COND_EXPRs.
7302         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7303         (tree_ssa_lim): Likewise.
7304         * tree-flow.h (tree_ssa_lim): Adjust prototype.
7305         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7306
7307 2010-05-06  Richard Guenther  <rguenther@suse.de>
7308
7309         PR tree-optimization/43987
7310         * tree-ssa-structalias.c (could_have_pointers): For possibly
7311         address-taken variables force pointers to be recorded.
7312         (create_variable_info_for_1): Likewise.
7313         (push_fields_onto_fieldstack): Pass in wheter all fields
7314         must have pointers.
7315         (find_func_aliases): Query types instead of vars whether
7316         they contain pointers where appropriate.
7317
7318 2010-05-06  Jan Hubicka  <jh@suse.cz>
7319
7320         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7321         (record_reference, mark_address, mark_load, mark_store): Record
7322         references.
7323         (record_references_in_initializer): Update call of record_references.
7324         (rebuild_cgraph_edges): Remove all references before rebuiding.
7325         * cgraph.c (cgraph_create_node): Clear ref list.
7326         (cgraph_remove_node): Remove references.
7327         (dump_cgraph_node): Dump references.
7328         (cgraph_clone_node): Clone references.
7329         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7330         (struct cgraph_node, varpool_node): Add ref_lst.
7331         * ipa-ref.c: New file.
7332         * ipa-ref.h: New file.
7333         * ipa-ref-inline.h: New file.
7334         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7335         (referenced_from_other_partition_p): New function.
7336         (lto_output_varpool_node): Take set arugment; call
7337         referenced_from_other_partition.
7338         (lto_output_ref): New.
7339         (add_references): New.
7340         (output_refs): New.
7341         (output_cgraph): Compute boundary based on references; output refs.
7342         (output_varpool): Accept cgraph_node_set argument.
7343         (input_ref): New.
7344         (input_refs): New.
7345         (input_cgraph): Call input_refs.
7346         * lto-section-in.c (lto_section_name): Add refs.
7347         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7348         (ipa-ref.o): New file.
7349         * varpool.c (varpool_node): Clear ipa ref list.
7350         (varpool_remove_node): Remove references.
7351         (dump_varpool_node): Dump references.
7352         (varpool_assemble_decl): Only compile finalized ones.
7353         (varpool_extra_name_alias): Initialize ref list.
7354         * lto-streamer.c (lto-get_section_name): Add .refs section.
7355         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7356         (referenced_from_other_partition_p): Declared.
7357
7358 2010-05-06  Ira Rosen  <irar@il.ibm.com>
7359
7360         PR tree-optimization/43901
7361         * tree-vect-stmts.c (vectorizable_call): Assert that vector
7362         type is not NULL if it's transformation phase, and return
7363         FALSE if it's analysis.
7364         (vectorizable_conversion, vectorizable_operation,
7365         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7366
7367 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
7368
7369         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7370         Delete.
7371         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7372         New define.
7373         * config/mips/mips-protos.h
7374         (mips_small_register_classes_for_mode_p): Delete prototype.
7375
7376 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
7377
7378         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7379         * config/arm/arm.c (multiple_operation_profitable_p,
7380         compute_offset_order): New static functions.
7381         (load_multiple_sequence, store_multiple_sequence): Use them.
7382         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
7383         memory offsets, not register numbers.
7384         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7385
7386 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
7387
7388         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7389         (get_pending_sizes, put_pending_size, put_pending_sizes):
7390         Update the uses of pending_sizes.
7391         * c-decl.c (store_parm_decls): Likewise.
7392         * c-tree.h (struct c_arg_info): Likewise.
7393         * tree.h: Update the prototype for get_pending_sizes and
7394         put_pending_sizes.
7395
7396 2010-05-05  Jason Merrill  <jason@redhat.com>
7397
7398         PR debug/43370
7399         * c-common.c (handle_aligned_attribute): Respect
7400         ATTR_FLAG_TYPE_IN_PLACE.
7401
7402         PR testsuite/43758
7403         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7404         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7405         (TARGET_INITIALIZER): Use it.
7406         * c-common.c (attribute_takes_identifier_p): Call it.
7407         * c-common.h: Update prototype.
7408         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7409         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7410
7411 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
7412
7413         PR debug/43950
7414         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7415         DW_ID_down_case for Fortran compilation units.
7416
7417 2010-05-05  Jan Hubicka  <jh@suse.cz>
7418
7419         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7420         handle aliases.
7421
7422 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
7423
7424         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7425         a variable-sized RESULT_DECL.
7426
7427 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
7428
7429         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7430
7431 2010-05-05  Jason Merrill  <jason@redhat.com>
7432
7433         PR c++/43787
7434         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7435         returns GS_OK.
7436         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7437
7438 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
7439             Jakub Jelinek  <jakub@redhat.com>
7440
7441         PR debug/43478
7442         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7443         (dead_debug_init, dead_debug_finish): New functions.
7444         (dead_debug_add, dead_debug_insert_before): Likewise.
7445         (df_note_bb_compute): Initialize a dead_debug object, add dead
7446         debug uses to it, insert debug bind insns before death insns,
7447         reset debug insns that refer to pending uses at the end.
7448         * rtl.h (make_debug_expr_from_rtl): New prototype.
7449         * varasm.c (make_debug_expr_from_rtl): New function.
7450
7451 2010-05-05  Jan Hubicka  <jh@suse.cz>
7452
7453         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7454         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7455         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7456         lto_varpool_encoder_deref, lto_varpool_encoder_size,
7457         lto_varpool_encoder_encode_initializer_p,
7458         lto_set_varpool_encoder_encode_initializer): New functions.
7459         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7460         call output_varpool.
7461         (input_varpool_node): Do not always set analyzed.
7462         (input_cgraph_1): Return vector of cgraph nodes.
7463         (input_varpool_1): Return vector of varpools.
7464         (input_cgraph): Free the vectors.
7465         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7466         output only initializers needed.
7467         (lto_output): Only call output_cgraph.
7468         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
7469         * lto-section-out.c (lto_new_out_decl_state): Initialize
7470         state->varpool_node_encoder.
7471         * lto-streamer.h (lto_varpool_encoder_d): New.
7472         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
7473         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
7474         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
7475         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
7476         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
7477         Declare.
7478         (output_varpool, input_varpool): Remove declarations.
7479
7480 2010-05-05  Jan Hubicka  <jh@suse.cz>
7481
7482         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
7483         with body can prevail.
7484
7485 2010-05-05  Jan Hubicka  <jh@suse.cz>
7486
7487         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
7488         size.
7489
7490 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7491
7492         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
7493
7494         * gengtype.h (erro_at_line): Constify pos argument.
7495
7496         * gengtype.c: Include hashtab.h.
7497         (enum gc_used): Document GC_MAYBE_POINTED_TO.
7498         (error_at_line): Constify pos argument.
7499         (do_typedef): Initialize p->opt field.
7500         (get_file_gtfilename): Fix comment typo.
7501         (struct walk_type_data): Constify line field.
7502         (get_output_file_for_structure): New function.
7503         (write_local_func_for_structure): Constify orig_s argument.
7504         Use get_output_file_for_structure.
7505         (write_func_for_structure): Use get_output_file_for_structure.
7506         (INDENT): New define.
7507         (dump_pair, dump_type, dump_type_list, dump_typekind)
7508         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
7509         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
7510         functions.
7511         (seen_types): New variable.
7512         (main): New variable do_dump.  Process "-d" command line option.
7513         Call dump_everything if dump requested.
7514
7515 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
7516
7517         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
7518         in a temporary instead of invoking the macro multiple times.
7519         (track_expr_p): Likewise.
7520
7521 2010-05-04  Neil Vachharajani <nvachhar@google.com>
7522
7523         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
7524         per new semantics.
7525         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
7526         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
7527         conditions for printing notes.
7528         * common.opt (-Wcoverage-mismatch): Allow negative, default to
7529         true, update documentation.
7530         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
7531
7532 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
7533
7534         PR c/43981
7535         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
7536         on dimen.
7537
7538 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7539
7540         PR target/43799
7541         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
7542         (*sse_prologue_save_insn1): Likewise.
7543         (SSE prologue save splitter): Likewise.
7544
7545 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7546
7547         * tree.c (free_lang_data_in_one_sizepos): New inline function.
7548         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
7549         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
7550         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
7551         all decls.  Call it on DECL_FIELD_OFFSET of fields.
7552         (find_decls_types_r): Follow DECL_VALUE_EXPR.
7553         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
7554
7555 2010-05-04  Martin Jambor  <mjambor@suse.cz>
7556
7557         * tree-sra.c (build_access_from_expr_1): The first parameter type
7558         changed to simple tree.
7559         (build_access_from_expr): Likewise, gsi parameter was eliminated.
7560         (scan_assign_result): Renamed to assignment_mod_result, enum elements
7561         renamed as well.
7562         (build_accesses_from_assign): Removed all parameters except for a
7563         simple gimple statement.  Now returns a simple bool.
7564         (scan_function): All non-analysis parts moved to separate functions
7565         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
7566         parameters and updated both callers.
7567         (sra_modify_expr): Removed parameter data.
7568         (sra_modify_function_body): New function.
7569         (perform_intra_sra): Call sra_modify_function_body to modify the
7570         function body.
7571         (replace_removed_params_ssa_names): Parameter data changed into
7572         adjustments vector.
7573         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
7574         changed the parameter dont_convert to convert with the opposite
7575         meaning.
7576         (sra_ipa_modify_assign): Parameter data changed into adjustments
7577         vector, return value changed to bool.
7578         (ipa_sra_modify_function_body): New function.
7579         (sra_ipa_reset_debug_stmts): Updated a comment.
7580         (modify_function): Use ipa_sra_modify_function_body to modify function
7581         body.
7582
7583 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7584
7585         PR middle-end/43671
7586         * alias.c (true_dependence): Handle the same VALUE in x and mem.
7587         (canon_true_dependence): Likewise.
7588         (write_dependence_p): Likewise.
7589
7590 2010-05-04  Jan Hubicka  <jh@suse.cz>
7591
7592         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
7593         * cgraphbuild.c: Include ipa-utils.h
7594         (record_reference_ctx): New struct.
7595         (record_reference): Simplify to work on initializers; not statements.
7596         (mark_address, mark_load, mark_store): New.
7597         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7598         walk PHI nodes too.
7599         (record_references_in_initializer): Update use of record_reference.
7600         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7601         walk PHI nodes too.
7602
7603 2010-05-04  Jan Hubicka  <jh@suse.cz>
7604
7605         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
7606         node will be removed anyway.
7607         (lto_varpool_replace_node): Allow also unanalyzed nodes;
7608         relink aliases of node into prevailing node.
7609         * varpool.c (varpool_remove_node): Remove aliases properly;
7610         when removing node, remove all its aliases too; remove DECL_INITIAL
7611         of removed node; ggc_free the varpool node.
7612
7613 2010-05-04  Richard Guenther  <rguenther@suse.de>
7614
7615         PR tree-optimization/43879
7616         * tree-ssa-structalias.c (alias_get_name): Use
7617         DECL_ASSEMBLER_NAME if available.
7618         (create_function_info_for): Return the varinfo node.
7619         (ipa_pta_execute): Associate same-body aliases and extra names
7620         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
7621
7622 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7623
7624         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
7625
7626 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
7627
7628         PR bootstrap/43964
7629         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
7630         only if HONOR_REG_ALLOC_ORDER is not defined.
7631
7632 2010-05-04  Richard Guenther  <rguenther@suse.de>
7633
7634         PR tree-optimization/43949
7635         * tree-vrp.c (extract_range_from_binary_expr): Only handle
7636         TRUNC_MOD_EXPR.
7637
7638 2010-04-26  Jason Merrill  <jason@redhat.com>
7639
7640         * c.opt (-fstrict-enums): New.
7641         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
7642
7643 2010-05-03  David Ung <davidu@mips.com>
7644             James E. Wilson  <wilson@codesourcery.com>
7645
7646         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
7647         emit the trap instruction before the divide for TUNE_74K.
7648
7649 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
7650
7651         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
7652         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
7653         based on the above, for new target hook.
7654
7655         * hooks.c (hook_bool_mode_true): New generic hook.
7656         * hooks.h (hook_bool_mode_true): Add prototype.
7657
7658         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
7659         target hook.
7660         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
7661         target hook, set to hook_bool_mode_false.
7662         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
7663         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
7664         with targetm.small_register_classes_for_mode_p.
7665         (find_reusable_reload): Likewise.
7666         (combine_reloads): Likewise.
7667         * reload1.c (reload_as_needed): Likewise.
7668         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
7669         * ifcvt.c (noce_process_if_block, check_cond_move_block,
7670         dead_or_predicable): Likewise.
7671         * regmove.c (optimize_reg_copy_1): Likewise.
7672         * calls.c (prepare_call_address): Likewise.
7673         (precompute_register_parameters): Likewise.
7674
7675         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
7676         hook definition.
7677         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
7678         implementation of the hook that considers all register classes
7679         small except for SH64.
7680         (sh_override_options): Use the new hook.
7681         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
7682         Add prototype.
7683
7684         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
7685         hook definition.
7686         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
7687         implementation of the hook that considers all register classes
7688         small for THUMB1.
7689         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
7690         Add prototype.
7691
7692         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
7693         hook definition.
7694         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
7695         implementation of the hook that considers all register classes
7696         small for MIPS16.
7697         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
7698         Add prototype.
7699
7700         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
7701         hook definition.
7702         * config/m32c/m32c.h: Likewise.
7703         * config/pdp11/pdp11.h: Likewise.
7704         * config/avr/avr.h: Likewise.
7705         * config/xtensa/xtensa.h: Likewise.
7706         * config/m68hc11/m68hc11.h: Likewise.
7707         * config/mn10300/mn10300.h: Likewise.
7708         * config/mcore/mcore.h: Likewise.
7709         * config/h8300/h8300.h: Likewise.
7710         * config/bfin/bfin.h: Likewise.
7711
7712         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
7713         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
7714
7715 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
7716
7717         * double-int.h (tree_to_double_int): Remove macro.
7718         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
7719         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7720         (tree_to_double_int): New function.
7721         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
7722         Move ...
7723         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
7724
7725 2010-05-03  Richard Guenther  <rguenther@suse.de>
7726
7727         PR tree-optimization/43971
7728         * tree-ssa-structalias.c (get_constraint_for_1): Fix
7729         constraints in the !flag_delete_null_pointer_checks case.
7730
7731 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
7732
7733         PR debug/43972
7734         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
7735         result mode matches original rtl mode.
7736
7737 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
7738
7739         PR target/43888
7740         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
7741
7742 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
7743
7744         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
7745         when processing flag options.
7746
7747 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
7748
7749         * gcov-iov.c (main): Change format string placeholder
7750         from %#08x to 0x%08x.
7751         * genchecksum.c (dosum): Change format string placeholder
7752         from %#02x to 0x%02x.
7753
7754 2010-05-02  Richard Guenther  <rguenther@suse.de>
7755
7756         PR tree-optimization/43879
7757         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
7758
7759 2010-05-02  Bruno Haible  <bruno@clisp.org>
7760
7761         * doc/extend.texi (Function Attributes): Fix a typo.
7762
7763 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
7764
7765         Revert:
7766         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
7767         placeholder from 0x%x to %#x.
7768         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
7769         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
7770         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
7771         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
7772         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
7773         * config/i386/i386.c (ix86_target_string): Ditto.
7774         * config/i386/i386.c (output_pic_addr_const): Ditto.
7775         (print_operand): Ditto.
7776
7777 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
7778
7779         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
7780         placeholder from 0x%x to %#x.
7781         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
7782         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
7783         (ASM_OUTPUT_DEBUG_DATA): Ditto.
7784         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
7785         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
7786         * optc-gen.awk: Ditto.
7787         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
7788         (HOST_WIDE_INT_PRINT_HEX): Ditto.
7789         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
7790         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
7791
7792 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
7793
7794         * target.h (struct calls): Add function_value_regno_p field.
7795         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7796         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
7797         * targhooks.c (default_function_value_regno_p): New function.
7798         * targhooks.h (default_function_value_regno_p): Declare function.
7799         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
7800         * builtins.c. (apply_result_size): (Ditto.).
7801         * combine.c. (likely_spilled_retval_p): (Ditto.).
7802         * mode-switching.c. Include 'target.h'.
7803         (create_pre_exit): Use function_value_regno_p hook.
7804         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
7805         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
7806         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
7807
7808         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
7809         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
7810         (ix86_function_value_regno_p): Declare as static, change argument
7811         type to const unsigned int.
7812         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
7813
7814 2010-05-01  Richard Guenther  <rguenther@suse.de>
7815
7816         PR tree-optimization/43949
7817         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
7818         types.
7819         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
7820
7821 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
7822
7823         * rtl.h (CONST_DOUBLE_P): Define.
7824         (rtx_to_double_int): Declare.
7825         * emit-rtl.c (rtx_to_double_int): New function.
7826         * dwarf2out.c (insert_double): New function.
7827         (loc_descriptor, add_const_value_attribute): Clean up, use
7828         rtx_to_double_int and insert_double functions.
7829
7830 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
7831
7832         * doc/extend.texi (Inline): Add missing return keyword to examples.
7833         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
7834         "command-line".
7835
7836 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
7837
7838         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
7839         the variable part of the offset as well.  Use highest_pow2_factor for
7840         all alignment checks.
7841
7842 2010-04-30  Richard Guenther  <rguenther@suse.de>
7843
7844         PR tree-optimization/43879
7845         * tree-ssa-structalias.c (type_could_have_pointers): Functions
7846         can have pointers.
7847
7848 2010-04-30  Jan Hubicka  <jh@suse.cz>
7849
7850         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
7851         varpool.
7852         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
7853
7854 2010-04-30  Jan Hubicka  <jh@suse.cz>
7855
7856         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
7857         New.
7858         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
7859         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
7860         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
7861         cgraph_node_set_needs_ltrans_p): Remove.
7862
7863 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
7864
7865         * sdbout.c: Include vec.h, do not include varray.h.
7866         (deferred_global_decls, sdbout_global_decl,
7867         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
7868         * toplev.c: Do not include varray.h.
7869         (dump_memory_report): Do not dump VARRAY statistics.
7870         * gengtype.c (open_base_file): Ignore varray.h.
7871         * Makefile.in: Update for abovementioned changes.
7872         Remove all traces of varray.c and varray.h.
7873         * varray.c: Remove file.
7874         * varray.h: Remove file.
7875
7876 2010-04-30  Jan Hubicka  <jh@suse.cz>
7877
7878         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
7879         references.
7880
7881 2010-04-30  Jan Hubicka  <jh@suse.cz>
7882
7883         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
7884         needed.
7885
7886 2010-04-30  Richard Guenther  <rguenther@suse.de>
7887
7888         * tree-ssa-structalias.c (get_constraint_for_1): Generate
7889         constraints for CONSTRUCTOR.
7890
7891 2010-04-30  Richard Guenther  <rguenther@suse.de>
7892
7893         PR lto/43946
7894         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
7895         first after all lowering passes.
7896
7897 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
7898
7899         * toplev.c: Include varray.h for statistics dumping.
7900         * tree.h: Do not declare varray_head_tag.
7901         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
7902         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
7903         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
7904         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
7905         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
7906         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
7907         c-common.c, c-common.h, reg-stack.c, basic-block.h,
7908         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
7909         include varray.h.
7910         * Makefile.in: Update for abovementioned changes.
7911
7912 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
7913
7914         PR debug/43942
7915         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
7916
7917 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7918
7919         * config/picochip/picochip.c (picochip_legitimize_address): Define.
7920         Use this function to do machine-specific conversion.
7921         (picochip_legitimize_reload_address): Likewise.
7922         (picochip_legitimate_address_p): Check valid base register only if
7923         strict.
7924         (picochip_check_conditional_copy): Check for modw only if opnd is
7925         register.
7926         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
7927         to call the function in c.
7928         * config/picochip/picochip-protos.h
7929         (picochip_legitimize_reload_address): Define.
7930         * config/picochip/picochip.md (supported_compare1): Define.
7931
7932 2010-04-30  Jan Hubicka  <jh@suse.cz>
7933
7934         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
7935         (cgraph_global_info): Remove inlined.
7936         (LTO_cgraph_tag_names): Remove.
7937         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
7938         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
7939         simplify cgraph tags and document.
7940         (lto_output_node): Use only LTO_cgraph_unavail_node and
7941         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
7942         for_functions_valid, global info, process and output flags.
7943         (input_overwrite_node): Initialize estimated stack size and
7944         estimated growth.  Do not read flags we no longer store.
7945         (input_node): Likewise do not read info no longer stored.
7946         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
7947         flag.
7948
7949 2010-04-30  Richard Guenther  <rguenther@suse.de>
7950
7951         PR tree-optimization/43879
7952         * tree-ssa-structalias.c (get_constraint_for_1): Properly
7953         handle non-zero initializers.
7954
7955 2010-04-30  Richard Guenther  <rguenther@suse.de>
7956
7957         * builtins.c (fold_builtin_1): Delete free (0).
7958
7959 2010-04-29  Jan Hubicka  <jh@suse.cz>
7960
7961         * gengtype.c (open_base_files): Add lto-streamer.h
7962         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
7963         (pass_ipa_cp): GGC collect.
7964         * toplev. (compile_file): Do not output symbols.
7965         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
7966         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
7967         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
7968         * lto-section-in.c: Include ggc.h
7969         (lto_new_in_decl_state): Alloc in GGC.
7970         (lto_delete_in_decl_state): Likewise.
7971         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
7972         Collect.
7973
7974 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
7975
7976         PR target/42895
7977         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
7978         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
7979         (HONOR_REG_ALLOC_ORDER): Describe new macro.
7980         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
7981         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
7982         account only if HONOR_REG_ALLOC_ORDER is not defined.
7983         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
7984         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
7985
7986 2010-04-29  Jon Grant  <04@jguk.org>
7987
7988         * collect2.c (vflag): Change type from int to bool.
7989         (debug): Likewise.
7990         (helpflag): New global bool.
7991         (main): Set vflag and debug with boolean, not integer truth values.
7992         Accept new "--help" option and output usage text if found.
7993         * collect2.h (vflag): Update prototype.
7994         (debug): Likewise.
7995
7996 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7997
7998         PR bootstrap/43936
7999         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8000
8001 2010-04-29  Richard Guenther  <rguenther@suse.de>
8002
8003         PR bootstrap/43935
8004         * plugin.h (invoke_plugin_callbacks): Annotate arguments
8005         with ATTRIBUTE_UNUSED.
8006
8007 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8008
8009         PR target/43921
8010         * config/i386/i386.c (get_some_local_dynamic_name): Replace
8011         INSN_P with NONDEBUG_INSN_P.
8012         (distance_non_agu_define): Likewise.
8013         (distance_agu_use): Likewise.
8014
8015 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
8016
8017         From Dominique d'Humieres <dominiq@lps.ens.fr>
8018         PR bootstrap/43858
8019         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8020         test_set.
8021
8022 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
8023
8024         * plugin.h (invoke_plugin_callbacks): New inline function.
8025         * plugin.c (flag_plugin_added): New global flag.
8026         (add_new_plugin): Initialize above flag.
8027         (invoke_plugin_callbacks): Rename to ...
8028         (invoke_plugin_callbacks_full): ... this.
8029
8030 2010-04-28  Jan Hubicka  <jh@suse.cz>
8031
8032         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8033         (lto_varpool_replace_node): New.
8034         (lto_symtab_resolve_symbols): Resolve varpool nodes.
8035         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8036         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8037         * cgraph.h (varpool_node_ptr): New type.
8038         (varpool_node_ptr): New vector.
8039         (varpool_node_set_def): New structure.
8040         (varpool_node_set): New type.
8041         (varpool_node_set): New vector.
8042         (varpool_node_set_element_def): New structure.
8043         (varpool_node_set_element, const_varpool_node_set_element): New types.
8044         (varpool_node_set_iterator): New type.
8045         (varpool_node): Add prev pointers, add used_from_other_partition,
8046         in_other_partition.
8047         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8048         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8049         varpool_get_node, varpool_remove_node): Declare.
8050         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8051         varpool_node_set_size): New inlines.
8052         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8053         * tree-pass.h (varpool_node_set_def): Forward declare.
8054         (ipa_opt_pass_d): Summary writting takes vnode sets too.
8055         (ipa_write_optimization_summaries): Update prototype.
8056         * ipa-cp.c (ipcp_write_summary): Update.
8057         * ipa-reference.c (ipa_reference_write_summary): Update.
8058         * lto-cgraph.c (lto_output_varpool_node): New static function.
8059         (output_varpool): New function.
8060         (input_varpool_node): New static function.
8061         (input_varpool_1): New function.
8062         (input_cgraph): Input varpool.
8063         * ipa-pure-const.c (pure_const_write_summary): Update.
8064         * lto-streamer-out.c (lto_output): Update, output varpool too.
8065         (write_global_stream): Kill WPA hack.
8066         (produce_asm_for_decls): Update.
8067         (output_alias_pair_p): Handle variables.
8068         (output_unreferenced_globals): Output only needed partition of varpool.
8069         * ipa-inline.c (inline_write_summary): Update.
8070         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8071         cgraph.
8072         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8073         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8074         varpool_node_set_new, varpool_node_set_add,
8075         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8076         debug_varpool_node_set): New functions.
8077         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8078         (execute_one_pass): Process new decls too.
8079         (ipa_write_summaries_2): Pass around vsets.
8080         (ipa_write_summaries_1): Likewise.
8081         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8082         to add.
8083         (ipa_write_optimization_summaries_1): Pass around vsets.
8084         (ipa_write_optimization_summaries): Likewise.
8085         * varpool.c (varpool_get_node): New.
8086         (varpool_node): Update doubly linked lists.
8087         (varpool_remove_node): New.
8088         (dump_varpool_node): More dumping.
8089         (varpool_enqueue_needed_node): Update doubly linked lists.
8090         (decide_is_variable_needed): Kill ltrans hack.
8091         (varpool_finalize_decl): Kill lto hack.
8092         (varpool_assemble_decl): Skip decls in other partitions.
8093         (varpool_assemble_pending_decls): Update doubly linkes lists.
8094         (varpool_empty_needed_queue): Likewise.
8095         (varpool_extra_name_alias): Likewise.
8096         * lto-streamer.c (lto_get_section_name): Add vars section.
8097         * lto-streamer.h (lto_section_type): Update.
8098         (output_varpool, input_varpool): Declare.
8099
8100 2010-04-28  Mike Stump  <mikestump@comcast.net>
8101
8102         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8103
8104 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8105
8106         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8107         record or union type with RECORD_OR_UNION_TYPE_P predicate.
8108         (lto_input_ts_type_tree_pointers): Likewise.
8109         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8110         (lto_output_ts_type_tree_pointers): Likewise.
8111
8112 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8113
8114         Uniquization of constants at the Tree level
8115         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8116         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8117         bit to the end.
8118         (tree_output_constant_def): Declare.
8119         * gimplify.c (gimplify_init_constructor): When using block copy, first
8120         uniquize the constant constructor on the RHS.
8121         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8122         DECL_IN_CONSTANT_POOL flag.
8123         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8124         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8125         constant pool.
8126         (assemble_variable): Deal with symbols belonging to the tree constant
8127         pool.
8128         (get_constant_section): Add ALIGN parameter and simplify.
8129         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8130         (assemble_constant_contents): Use the expression of the VAR_DECL.
8131         (output_constant_def_contents): Use the alignment of the VAR_DECL.
8132         (tree_output_constant_def): New global function.
8133         (mark_constant): Use the expression of the VAR_DECL.
8134         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8135         its expression.
8136         (output_object_block): Likewise and assemble the expression.
8137
8138 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8139
8140         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8141         hash_tree, eq_tree): New tree hash table.
8142         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8143         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8144         lto_orig_address_remove): Reimplement.
8145
8146 2010-04-28  Xinliang David Li  <davidxl@google.com>
8147
8148         PR c/42643
8149         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8150         (compute_uninit_opnds_pos): New function.
8151         (is_non_loop_exit_postdominating): New function.
8152         (compute_control_dep_chain): New function.
8153         (find_pdom): New function.
8154         (convert_control_dep_chain_into_preds): New function.
8155         (find_predicates): New function.
8156         (find_control_equiv_block): New function.
8157         (collect_phi_def_edges): New function.
8158         (find_def_preds): New function.
8159         (find_dom): New function.
8160         (dump_predicates): New function.
8161         (get_cmp_code): New function.
8162         (is_value_included_in): New function.
8163         (find_matching_predicate_in_rest_chains): New function.
8164         (use_pred_not_overlap_with_undef_path_pred): New function.
8165         (is_use_properly_guarded): New function.
8166         (normalize_cond_1): New function.
8167         (is_and_or_or): New function.
8168         (normalize_cond): New function.
8169         (is_gcond_subset_of): New function.
8170         (is_subset_of_any): New function.
8171         (is_or_set_subset_of): New function.
8172         (is_and_set_subset_of): New function.
8173         (is_norm_cond_subset_of): New function.
8174         (is_pred_expr_subset_of): New function.
8175         (is_pred_chain_subset_of): New function.
8176         (is_included_in): New function.
8177         (is_superset_of): New function.
8178         (find_uninit_use): New function.
8179         (warn_uninitialized_phi): New function.
8180         (compute_possibly_undefined_names): New function.
8181         (ssa_undefined_value_p): New function.
8182         (execute_late_warn_uninitialized): New function.
8183         * tree-ssa.c (ssa_undefined_value_p): Removed.
8184         (warn_uninit): Changed to extern.
8185         (warn_uninitialized_phi): Removed.
8186         (warn_uninitialized_vars): Changed to extern.
8187         (execute_late_warn_uninitialized): Removed
8188         * tree-flow.h: Add new prototypes.
8189         * timevar.def: Add new time variable.
8190         * Makefile.in: Add new build file.
8191
8192 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
8193
8194         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8195         type if available.
8196
8197 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8198
8199         PR target/22224
8200         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8201
8202 2010-04-28  Martin Jambor  <mjambor@suse.cz>
8203
8204         * cgraph.h (struct cgraph_node): New field indirect_calls.
8205         (struct cgraph_indirect_call_info): New type.
8206         (struct cgraph_edge): Removed field indirect_call. New fields
8207         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8208         (cgraph_create_indirect_edge): Declare.
8209         (cgraph_make_edge_direct): Likewise.
8210         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8211         * ipa-prop.h (struct ipa_param_call_note): Removed.
8212         (struct ipa_node_params): Removed field param_calls.
8213         (ipa_create_all_structures_for_iinln): Declare.
8214         * cgraph.c: Described indirect edges and uids in initial comment.
8215         (cgraph_add_edge_to_call_site_hash): New function.
8216         (cgraph_edge): Search also among the indirect edges, use
8217         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8218         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8219         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8220         site hash.
8221         (initialize_inline_failed): Assign a reason to indirect edges.
8222         (cgraph_create_edge_1): New function.
8223         (cgraph_create_edge): Moved some functionality to
8224         cgraph_create_edge_1.
8225         (cgraph_create_indirect_edge): New function.
8226         (cgraph_edge_remove_callee): Add an assert checking for
8227         non-indirectness.
8228         (cgraph_edge_remove_caller): Special-case indirect edges.
8229         (cgraph_remove_edge): Likewise.
8230         (cgraph_set_edge_callee): New function.
8231         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8232         (cgraph_make_edge_direct): New function.
8233         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8234         the declaration of the call statement matches.
8235         (cgraph_node_remove_callees): Special-case indirect edges.
8236         (cgraph_clone_edge): Likewise.
8237         (cgraph_clone_node): Clone also the indirect edges.
8238         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8239         indirect_call, dump count of indirect_calls edges.
8240         * ipa-prop.c (iinlining_processed_edges): New variable.
8241         (ipa_note_param_call): Create indirect edges instead of
8242         creating notes.  New parameter node.
8243         (ipa_analyze_call_uses): New parameter node, pass it on to
8244         ipa_note_param_call.
8245         (ipa_analyze_stmt_uses): Likewise.
8246         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8247         (print_edge_addition_message): Work on edges rather than on notes.
8248         (update_call_notes_after_inlining): Likewise, renamed to
8249         update_indirect_edges_after_inlining.
8250         (ipa_create_all_structures_for_iinln): New function.
8251         (ipa_free_node_params_substructures): Do not free notes.
8252         (ipa_edge_duplication_hook): Propagate bits within
8253         iinlining_processed_edges bitmap.
8254         (ipa_node_duplication_hook): Do not duplicate notes.
8255         (free_all_ipa_structures_after_ipa_cp): Renamed to
8256         ipa_free_all_structures_after_ipa_cp.
8257         (free_all_ipa_structures_after_iinln): Renamed to
8258         ipa_free_all_structures_after_iinln.
8259         (ipa_write_param_call_note): Removed.
8260         (ipa_read_param_call_note): Removed.
8261         (ipa_write_indirect_edge_info): New function.
8262         (ipa_read_indirect_edge_info): Likewise.
8263         (ipa_write_node_info): Do not stream notes, do stream information
8264         in indirect edges.
8265         (ipa_read_node_info): Likewise.
8266         (lto_ipa_fixup_call_notes): Removed.
8267         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8268         * ipa-inline.c (pass_ipa_inline): Likewise.
8269         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8270         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8271         * tree-inline.c (copy_bb): Removed an unnecessary double check for
8272         is_gimple_call.
8273         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8274         edges.
8275         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8276         (output_cgraph): Stream also indirect edges.
8277         (lto_output_edge): Added capability to stream indirect edges.
8278         (input_edge): Likewise.
8279         (input_cgraph_1): Likewise.
8280         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8281         of indirect edges.
8282
8283 2010-04-28  Richard Guenther  <rguenther@suse.de>
8284
8285         PR tree-optimization/43879
8286         PR tree-optimization/43909
8287         * tree-ssa-structalias.c (struct variable_info): Add
8288         only_restrict_pointers flag.
8289         (new_var_info): Initialize it.  Increment stats.total_vars here.
8290         (create_function_info_for): Do not increment stats.total_vars here.
8291         (get_function_part_constraint): Fix build with C++.
8292         (insert_into_field_list): Remove.
8293         (push_fields_onto_fieldstack): Properly merge fields.
8294         (create_variable_info_for): Split and simplify.
8295         (create_variable_info_for_1): New piece.
8296         (intra_create_variable_infos): Properly make restrict constraints
8297         from parameters.
8298
8299 2010-04-28  Richard Guenther  <rguenther@suse.de>
8300
8301         PR c++/43880
8302         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8303
8304 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8305             Jan Hubicka <hubicka@ucw.cz>
8306
8307         * doc/invoke.texi (-Wsuggest-attribute=const,
8308         -Wsuggest-attribute=pure): Document.
8309         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8310         (function_always_visible_to_compiler_p,
8311         suggest_attribute, warn_function_pure, warn_function_const):
8312         New functions.
8313         (check_call): Improve debug info.
8314         (analyze_function): Do not check availability.
8315         (add_new_function): Check availability.
8316         (propagate): Output warnings.
8317         (skip_function_for_local_pure_const): New function.
8318         (local_pure_const): Use it; output warnings.
8319         * common.opt (Wsuggest-attribute=const,
8320         Wsuggest-attribute=pure): New.
8321
8322 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
8323
8324         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8325         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8326         or DW_CFA_def_cfa_offset{,_sf}.
8327
8328 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8329
8330         * tree.h: Fix truncated long macros.
8331
8332 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
8333
8334         * collect2.c (TARGET_64BIT): Redefine to target's default.
8335         * tlink.c: Likewise.
8336         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8337         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8338         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8339         for underscoring __USER_LABEL_PREFIX__.
8340         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8341         (SUB_LINK_ENTRY32): New.
8342         (SUB_LINK_ENTRY64): New.
8343         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8344         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8345         (SUB_LINK_ENTRY64): New.
8346         (SUB_LINK_ENTRY): New.
8347         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8348         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8349         x64 target is choosen.
8350         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8351         * configure: Regenerated.
8352         * configure.ac (leading-mingw64-underscores): Option added.
8353
8354 2010-04-27  Jan Hubicka  <jh@suse.cz>
8355
8356         * doc/invoke.texi (-fipa-profile): Document.
8357         * opts.c (decode_options): Enable ipa-profile at -O1.
8358         * timevar.def (TV_IPA_PROFILE): Define.
8359         * common.opt (fipa-profile): Add.
8360         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8361         flag for clones.
8362         (cgraph_propagate_frequency): Handle only local ones.
8363         * tree-pass.h (pass_ipa_profile): Declare.
8364         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8365         (pass_ipa_profile): Use TV_IPA_PROFILE.
8366         * ipa.c (ipa_profile): New function.
8367         (gate_ipa_profile): Likewise.
8368         (pass_ipa_profile): New global variable.
8369         * passes.c (pass_ipa_profile): New.
8370
8371 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
8372
8373         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8374
8375 2010-04-27  Martin Jambor  <mjambor@suse.cz>
8376
8377         PR middle-end/43812
8378         * ipa.c (dissolve_same_comdat_group_list): New function.
8379         (function_and_variable_visibility): Call
8380         dissolve_same_comdat_group_list when comdat group contains external or
8381         newly local nodes.
8382         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8383         lists are circular and that they contain only DECL_ONE_ONLY nodes.
8384
8385 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8386
8387         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8388         (const_hash_1) <VECTOR_CST>: New case.
8389         (compare_constant) <VECTOR_CST>: Likewise.
8390         <ADDR_EXPR>: Deal with LABEL_REFs.
8391         (copy_constant) <VECTOR_CST>: New case.
8392
8393 2010-04-27  Jan Hubicka  <jh@suse.cz>
8394
8395         * cgraph.c (cgraph_propagate_frequency): New function.
8396         * cgraph.h (cgraph_propagate_frequency): Declare.
8397         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8398         cgraph_propagate_frequency.
8399
8400 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
8401
8402         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8403
8404 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
8405
8406         PR target/40657
8407         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8408         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8409         here to determine which regs to push and how much stack to reserve.
8410
8411 2010-04-27  Jie Zhang  <jie@codesourcery.com>
8412
8413         * doc/gimple.texi (gimple_statement_with_ops): Remove
8414         addresses_taken field.
8415         (gimple_statement_with_memory_ops): Likewise.
8416
8417 2010-04-27  Jan Hubicka  <jh@suse.cz>
8418
8419         * tree-inline.c (eni_inlining_weights): Remove.
8420         (estimate_num_insns): Special case more builtins.
8421
8422 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
8423
8424         PR c/32207
8425         * c-typeck.c (build_binary_op): Move forward check for comparison
8426         pointer with null pointer constant and adjust the diagnostic message.
8427
8428 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
8429
8430         PR lto/42776
8431         * configure.ac (gcc_cv_as_section_has_align): Set if installed
8432         binutils supports extended .section directive needed by LTO, or
8433         warn if older binutils found.
8434         (LTO_BINARY_READER): New AC_SUBST'd variable.
8435         (LTO_USE_LIBELF): Likewise.
8436         * gcc/config.gcc (lto_binary_reader): New target-specific configure
8437         variable.
8438         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8439         (LTO_USE_LIBELF): Likewise.
8440         * configure: Regenerate.
8441
8442         * collect2.c (is_elf): Rename from this ...
8443         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8444          object files in addition to ELF-formatted ones.
8445         (scan_prog_file): Caller updated.  Also allow for LTO info marker
8446         symbol to be prefixed or not by an extra underscore.
8447
8448         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8449         * config/i386/winnt.c: Also #include lto-streamer.h
8450         (i386_pe_asm_named_section): Specify 1-byte section alignment for
8451         LTO named sections.
8452         (i386_pe_asm_output_aligned_decl_common): Add comment.
8453         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8454
8455 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
8456
8457         PR target/43889
8458         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8459         Add missing earlyclobber for second alternative.
8460
8461 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
8462
8463         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8464         bits for artificial defs at the top of the block.
8465         * fwprop.c (single_def_use_enter_block): Don't call it.
8466
8467 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
8468
8469         PR 43715
8470         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
8471         instead of "$gcc_cv_objdump -T".
8472         Use "-undefined dynamic_lookup" on darwin.
8473         * gcc/configure: Regenerate.
8474
8475 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
8476
8477         PR c/43893
8478         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
8479
8480 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
8481
8482         * c-parser.c (struct c_token): Move location field up.
8483         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
8484         (struct c_declspecs): Convert typespec_word, storage_class, and
8485         default_int_p into bitfields.
8486         (struct c_declarator): Move loc field up.
8487
8488 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
8489
8490         * cfgloop.h (struct loop): Move can_be_parallel field up.
8491         * ipa-prop.h (struct ip_node_params): Move bitfields up.
8492         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
8493         down.
8494         (struct iv_cand): Convert pos field into a bitfield.
8495         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
8496         field up.
8497         (struct _stmt_vec_info): Shuffle fields for better packing.
8498
8499 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
8500
8501         * varasm.c (IN_NAMED_SECTION): Remove guard.
8502         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
8503         (IN_NAMED_SECTION_P): ...this.
8504         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
8505         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8506
8507 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
8508
8509         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
8510         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
8511         of shadowing it.  Fix comments.
8512
8513 2010-04-26  Jan Hubicka  <jh@suse.cz>
8514
8515         * cgraph.c (cgraph_create_node): Set node frequency to normal.
8516         (cgraph_clone_node): Copy function frequency.
8517         * cgraph.h (node_frequency): New enum
8518         (struct cgraph_node): Add.
8519         * final.c (rest_of_clean_state): Update.
8520         * lto-cgraph.c (lto_output_node): Output node frequency.
8521         (input_overwrite_node): Input node frequency.
8522         * tre-ssa-loop-ivopts (computation_cost): Update.
8523         * lto-streamer-out.c (output_function): Do not output function
8524         frequency.
8525         * predict.c (maybe_hot_frequency_p): Update and handle functions
8526         executed once.
8527         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
8528         attribute lookup.
8529         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
8530         (compute_function_frequency): Set noreturn functions to be executed
8531         once.
8532         (choose_function_section): Update.
8533         * lto-streamer-in.c (input_function): Do not input function frequency.
8534         * function.c (allocate_struct_function): Do not initialize function
8535         frequency.
8536         * function.h (function_frequency): Remove.
8537         (struct function): Remove function frequency.
8538         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
8539         (try_update): Update.
8540         * tree-inline.c (initialize_cfun): Do not update function frequency.
8541         * passes.c (pass_init_dump_file): Update.
8542         * i386.c (ix86_compute_frame_layout): Update.
8543         (ix86_pad_returns): Update.
8544
8545 2010-04-26  Jie Zhang  <jie@codesourcery.com>
8546
8547         PR tree-optimization/43833
8548         * tree-vrp.c (range_int_cst_p): New.
8549         (range_int_cst_singleton_p): New.
8550         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
8551         when both operands are constants.  Use range_int_cst_p in
8552         BIT_IOR_EXPR case.
8553
8554 2010-04-26  Jan Hubicka  <jh@suse.cz>
8555
8556         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
8557
8558 2010-04-26  Richard Guenther  <rguenther@suse.de>
8559
8560         PR lto/43080
8561         * gimple.c (gimple_decl_printable_name): Deal gracefully
8562         with a NULL DECL_NAME.
8563
8564 2010-04-26  Richard Guenther  <rguenther@suse.de>
8565
8566         PR lto/42425
8567         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
8568         if emitting debug information and it is either a function
8569         or a namespace decl.
8570
8571 2010-04-26  Ira Rosen  <irar@il.ibm.com>
8572
8573         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
8574         determine if the statement is vectorizable, and a macro to access it.
8575         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8576         Skip statements that can't be vectorized. If the analysis fails,
8577         mark the statement as unvectorizable if vectorizing basic block.
8578         (vect_compute_data_refs_alignment): Likewise.
8579         (vect_verify_datarefs_alignment): Skip statements marked as
8580         unvectorizable. Add print.
8581         (vect_analyze_group_access): Skip statements that can't be
8582         vectorized. If the analysis fails, mark the statement as
8583         unvectorizable if vectorizing basic block.
8584         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
8585         * tree-vect-stmts.c (vectorizable_store): Fix the number of
8586         generated stmts for SLP.
8587         (new_stmt_vec_info): Initialize the new field.
8588         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
8589         statements marked as unvectorizable.
8590
8591 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
8592
8593         * c-common.c (flag_isoc1x): New.
8594         (flag_isoc99): Update comment.
8595         * c-common.h (flag_isoc1x): New.
8596         (flag_isoc99): Update comment.
8597         * c-cppbuiltin.c (builtin_define_float_constants): Also define
8598         __<type>_DECIMAL_DIG__.
8599         * c-opts.c (set_std_c1x): New.
8600         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
8601         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
8602         * c.opt (-std=c1x, -std=gnu1x): New options.
8603         * doc/cpp.texi: Mention -std=c1x.
8604         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
8605         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
8606         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
8607         * doc/standards.texi: Mention C1X.
8608         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
8609         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
8610         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
8611         Define for C1X.
8612
8613 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
8614
8615         * config/i386/gmon-sol2.c (_mcleanup): Change format string
8616         placeholder from 0x%x to %#x.
8617         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8618         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8619         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8620         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8621         * config/i386/i386.c (ix86_target_string): Ditto.
8622         (output_pic_addr_const): Ditto.
8623         (print_operand): Ditto.
8624
8625 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
8626
8627         * combine.c (find_split_point): Add third argument.  Use it
8628         to find nested multiply-accumulate instructions.  Adjust calls.
8629         (try_combine): Adjust call to find_split_point.
8630
8631 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
8632
8633         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
8634
8635 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
8636
8637         PR tree-optimization/41442
8638         * fold-const.c (merge_truthop_with_opposite_arm): New function.
8639         (fold_binary_loc): Call it.
8640
8641 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8642
8643         * toplev.c (general_init): Set default for fdiagnostics-show-option.
8644         * opts.c (common_handle_option): Allow disabling it.
8645         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
8646
8647 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
8648
8649         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
8650         between modes if both types are integral.
8651
8652 2010-04-23  Richard Guenther  <rguenther@suse.de>
8653
8654         PR tree-optimization/43572
8655         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
8656
8657 2010-04-23  Richard Guenther  <rguenther@suse.de>
8658
8659         PR lto/43455
8660         * tree-inline.c (tree_can_inline_p): Also check compatibility
8661         of return types.
8662
8663 2010-04-23  Martin Jambor  <mjambor@suse.cz>
8664
8665         PR tree-optimization/43846
8666         * tree-sra.c (struct access): New flag grp_assignment_read.
8667         (build_accesses_from_assign): Set grp_assignment_read.
8668         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
8669         (enum mark_read_status): New type.
8670         (analyze_access_subtree): Propagate grp_assignment_read, create
8671         accesses also if both direct_read and root->grp_assignment_read.
8672
8673 2010-04-23  Martin Jambor  <mjambor@suse.cz>
8674
8675         PR middle-end/43835
8676         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
8677         function does not have type attributes.
8678
8679 2010-04-23  Richard Guenther  <rguenther@suse.de>
8680
8681         PR lto/42653
8682         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
8683         of FUNCTION_DECLs.
8684
8685 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8686
8687         * sese.h (create_if_region_on_edge): Remove.
8688
8689         * sese.c (create_if_region_on_edge): Make static.
8690
8691         * tree-inline.c: Do not include ggc.h.
8692
8693         * expr.c: Do not include ggc.h.
8694
8695         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
8696         dependencies.
8697
8698 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
8699
8700         PR target/43744
8701         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8702         in the middle of insns for casesi_worker_2.
8703
8704 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
8705
8706         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
8707
8708 2010-04-22  Ira Rosen  <irar@il.ibm.com>
8709
8710         PR tree-optimization/43842
8711         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
8712         loop unrolling in update of exit phis. Fix comment.
8713         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
8714         least two reduction statements in the loop before starting SLP
8715         analysis.
8716
8717 2010-04-22  Nick Clifton  <nickc@redhat.com>
8718
8719         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
8720
8721 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
8722
8723         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
8724         to simplify a + ~a.
8725
8726 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8727
8728         * tree-parloops.c (loop_parallel_p): New argument
8729         parloop_obstack.  Pass it down.
8730         (parallelize_loops): New variable parloop_obstack.  Initialize it,
8731         pass it down, free it.
8732
8733         * tree-loop-linear.c (linear_transform_loops): Pass down
8734         lambda_obstack.
8735
8736         * tree-data-ref.h (lambda_compute_access_matrices): New argument
8737         of type struct obstack *.
8738
8739         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
8740         scratch_obstack.  Initialize it, pass down, free it.
8741
8742         * lambda.h (lambda_loop_new): Remove.
8743         (lambda_matrix_new, lambda_matrix_inverse)
8744         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
8745         argument of type struct obstack *.
8746
8747         * lambda-trans.c (lambda_trans_matrix_new): New argument
8748         lambda_obstack.  Pass it down, use obstack allocation for ret.
8749         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
8750         it down.
8751
8752         * lambda-mat.c (lambda_matrix_get_column)
8753         (lambda_matrix_project_to_null): Remove.
8754         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
8755         allocation for mat.
8756         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
8757         lambda_obstack.
8758
8759         * lambda-code.c (lambda_loop_new): New function.
8760         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
8761         (lambda_compute_auxillary_space, lambda_compute_target_space)
8762         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
8763         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
8764         (build_access_matrix): New argument lambda_obstack.  Use obstack
8765         allocation for am.
8766         (lambda_compute_step_signs, lambda_compute_access_matrices): New
8767         argument lambda_obstack.  Pass it down.
8768
8769 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
8770
8771         * optabs.h (expand_widening_mult): Declare.
8772
8773 2010-04-22  Richard Guenther  <rguenther@suse.de>
8774
8775         PR tree-optimization/43845
8776         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
8777         lookup the CALL_EXPR function and arguments.
8778
8779 2010-04-22  Nick Clifton  <nickc@redhat.com>
8780
8781         * config/stormy16/stormy16.c
8782         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
8783         * config/stormy16/stormy16.h: Tidy up formatting.
8784         (DONT_USE_BUILTIN_SETJMP): Remove definition.
8785         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
8786         (ineqbranchsi): Delete pattern.
8787         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
8788         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
8789         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
8790         stormy16-lib2-ucmpsi2.c.
8791
8792 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
8793
8794         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
8795         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
8796         extra set merge_set_noclobber, and use it to relax the final test
8797         slightly.
8798         * df.h (df_simulate_find_noclobber_defs): Declare.
8799         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
8800         conditional defs.
8801         (df_simulate_find_noclobber_defs): New function.
8802
8803 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
8804
8805         * config/i386/i386.md: Use {} around multi-line preparation statements.
8806
8807 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8808
8809         * c-tree.h (push_init_level, pop_init_level, set_init_index)
8810         (process_init_element): New argument of type struct obstack *.
8811
8812         * c-typeck.c (push_init_level, pop_init_level, set_designator)
8813         (set_init_index, set_init_label, set_nonincremental_init)
8814         (set_nonincremental_init_from_string, find_init_member)
8815         (output_init_element, output_pending_init_elements)
8816         (process_init_element): New argument braced_init_obstack.  Pass it
8817         down.
8818         (push_range_stack, add_pending_init): New argument
8819         braced_init_obstack.  Use obstack allocation.
8820
8821         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
8822         braced_init_obstack.  Pass it down.
8823         (c_parser_braced_init): New variables ret, braced_init_obstack.
8824         Initialize obstack, pass it down and finally free it.
8825
8826 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
8827
8828         PR middle-end/29274
8829         * tree-pass.h (pass_optimize_widening_mul): Declare.
8830         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
8831         gate_optimize_widening_mul): New static functions.
8832         (pass_optimize_widening_mul): New.
8833         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
8834         <case MULT_EXPR>: Remove support for widening multiplies.
8835         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
8836         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
8837         simplify_gen_unary rather than directly building extensions.
8838         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
8839         WIDEN_MULT_EXPR.
8840         * expmed.c (expand_widening_mult): New function.
8841         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
8842
8843 2010-04-21  Jan Hubicka  <jh@suse.cz>
8844
8845         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
8846         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
8847         * lto-wpa-fixup.c: Remove.
8848         * Makefile.in (lto-wpa-fixup.o): Remove.
8849         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
8850         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
8851         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
8852
8853 2010-04-21  Jan Hubicka  <jh@suse.cz>
8854
8855         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
8856         add write_optimization_summary, read_optimization_summary.
8857         (ipa_write_summaries_of_cgraph_node_set): Remove.
8858         (ipa_write_optimization_summaries): Declare.
8859         (ipa_read_optimization_summaries): Declare.
8860         * ipa-cp.c (pass_ipa_cp): Update.
8861         * ipa-reference.c (pass_ipa_reference): Update.
8862         * ipa-pure-const.c (pass_ipa_pure_const): Update.
8863         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
8864         Update.
8865         * ipa-inline.c (pass_ipa_inline): Update.
8866         * ipa.c (pass_ipa_whole_program): Update.
8867         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
8868         * passes.c (ipa_write_summaries_1): Do not test wpa.
8869         (ipa_write_optimization_summaries_1): New.
8870         (ipa_write_optimization_summaries): New.
8871         (ipa_read_summaries): Do not test ltrans.
8872         (ipa_read_optimization_summaries_1): New.
8873         (ipa_read_optimization_summaries): New.
8874
8875 2010-04-21  Jan Hubicka  <jh@suse.cz>
8876
8877         * lto-cgraph.c (lto_output_node): Do not output comdat groups
8878         for boundary nodes.
8879         (output_cgraph): Do not arrange comdat groups for boundary nodes.
8880
8881 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
8882
8883         PR debug/40040
8884         * dwarf2out.c (add_name_and_src_coords_attributes): Add
8885         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
8886
8887 2010-04-21  Jan Hubicka  <jh@suse.cz>
8888
8889         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
8890
8891 2010-04-21  Jan Hubicka  <jh@suse.cz>
8892
8893         * varpool.c (decide_is_variable_needed): Variable is always needed
8894         during ltrans.
8895
8896 2010-04-21  Jan Hubicka  <jh@suse.cz>
8897
8898         * opts.c (decode_options): Enable pure-const pass for whopr.
8899
8900 2010-04-21  Jan Hubicka  <jh@suse.cz>
8901
8902         * cgraph.c (dump_cgraph_node): Dump also assembler name.
8903         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
8904         at WPA dumping.
8905         (cgraph_decide_inlining): Do not expect callee to be removed in all
8906         cases.
8907
8908 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
8909
8910         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
8911
8912 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
8913
8914         * config/i386/i386.md (x86_shrd): Add athlon_decode and
8915         amdfam10_decode attributes.
8916
8917 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
8918
8919         PR middle-end/43570
8920         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
8921         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
8922         (lower_copyprivate_clauses): Use private var in outer
8923         context instead of original var.  Make sure the types
8924         are correct for VLAs.
8925
8926 2010-04-21  Richard Guenther  <rguenther@suse.de>
8927
8928         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
8929         to non-pointer objects.
8930
8931 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
8932
8933         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
8934         last chain entry if it starts with the still current label.
8935         (add_location_or_const_value_attribute): Check that
8936         loc_list->first->next is NULL instead of comparing ->first with ->last.
8937         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
8938         to add_var_loc_to_decl.
8939
8940         * dwarf2out.c (output_call_frame_info): For dw_cie_version
8941         >= 4 add also address size and segment size fields into CIE header.
8942
8943         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
8944         long as address size is the same as sizeof (void *) and
8945         segment size is 0.
8946         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
8947         address size or segment size is unexpected, return DW_EH_PE_omit.
8948         (classify_object_over_fdes): If get_cie_encoding returned
8949         DW_EH_PE_omit, return -1.
8950         (init_object): If classify_object_over_fdes returned -1,
8951         pretend there were no FDEs at all.
8952
8953 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
8954
8955         * config/i386/i386.md (bswap<mode>2): Macroize expander from
8956         bswap{si,di}2 using SWI48 mode iterator.
8957         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
8958         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
8959         set modrm attribute of bswap insn to 0 and remove length attribute.
8960         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
8961         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
8962         set mode attribute to <MODE> and remove length attribute.
8963
8964 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
8965
8966         PR rtl-optimization/43520
8967         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
8968         zero available registers.
8969
8970 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8971
8972         * builtins.c (fold_builtin_cproj): Fold more cases.
8973
8974 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8975
8976         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
8977         (fold_builtin_1): Fold builtin cproj.
8978         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
8979         Use ATTR_CONST_NOTHROW_LIST.
8980
8981 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
8982
8983         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
8984         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
8985         ffsi2_no_cmove for !TARGET_CMOVE.
8986         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
8987         (ffssi2): Remove expander.
8988         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
8989         mode iterator.
8990         (ctz<mode>2): Ditto from ctz{si,di}2.
8991         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
8992         mode iterator.
8993         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
8994         mode iterator.
8995
8996 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
8997
8998         * dwarf2out.c (AT_linkage_name): Define.
8999         (clone_as_declaration): Handle DW_AT_linkage_name.
9000         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9001         of DW_AT_MIPS_linkage_name.
9002         (move_linkage_attr): Likewise.
9003         (dwarf2out_finish): Likewise.
9004
9005 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
9006
9007         PR middle-end/41952
9008         * fold-const.c (fold_comparison): New folding rule.
9009
9010 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
9011
9012         * double-int.h (double_int_setbit): Declare.
9013         * double-int.c (double_int_setbit): New function.
9014         * rtl.h (immed_double_int_const): Declare.
9015         * emit-rtl.c (immed_double_int_const): New function.
9016         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9017         and immed_double_int_const functions.
9018         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9019         expand_copysign_bit):  (Ditto.).
9020         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9021         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9022         * dojump.c (prefer_and_bit_test): (Ditto.).
9023         * expr.c (convert_modes, reduce_to_bit_field_precision,
9024         const_vector_from_tree): (Ditto.).
9025         * expmed.c (mask_rtx, lshift_value): (Ditto.).
9026
9027 2010-04-20  Jan Hubicka  <jh@suse.cz>
9028
9029         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9030         (dump_cgraph_node): Dump new flags.
9031         * cgraph.h (struct cgraph_node): Add flags
9032         reachable_from_other_partition and in_other_partition.
9033         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9034         other partition can not be removed.
9035         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9036         the other partition must be output; silence sanity checking on
9037         leaking functions bodies from other paritition.
9038         * lto-cgraph.c (reachable_from_other_partition_p): New function.
9039         (lto_output_node): Output new flags; do not sanity check that inline
9040         clones are output; drop lto_forced_extern_inline_p code; do not mock
9041         visibility flags at partition boundaries.
9042         (add_node_to): New function.
9043         (output_cgraph): Use it to sort functions so masters appear before
9044         clones.
9045         (input_overwrite_node): Input new flags.
9046         * passes.c (ipa_write_summaries): Do not call
9047         lto_new_extern_inline_states.
9048         * lto-section-out.c (forced_extern_inline,
9049         lto_new_extern_inline_states lto_delete_extern_inline_states,
9050         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9051         * lto-streamer.h (lto_new_extern_inline_states,
9052         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9053         lto_forced_extern_inline_p): Kill.
9054
9055 2010-04-20  Richard Guenther  <rguenther@suse.de>
9056
9057         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9058         from vars that can have pointers.
9059         (process_constraint): Dump useless constraints.
9060
9061 2010-04-20  Richard Guenther  <rguenther@suse.de>
9062
9063         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9064         (dump_sa_points_to_info): Remove asserts.
9065         (init_base_vars): nothing_id isn't an escape point nor does it
9066         have pointers.
9067
9068 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
9069
9070         * tree.h (TYPE_REF_IS_RVALUE): Define.
9071         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9072         should_move_die_to_comdat, prune_unused_types_walk): Handle
9073         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9074         (modified_type_die, gen_reference_type_die): Emit
9075         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9076         if TYPE_REF_IS_RVALUE and -gdwarf-4.
9077
9078 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9079
9080         PR target/43635
9081         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9082         calls for -fpic -m31 if they have been sibcall optimized.
9083
9084 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
9085
9086         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9087         ar.lc fixed and call-used.
9088
9089         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9090
9091 2010-04-19  Jan Hubicka  <jh@suse.cz>
9092
9093         * opts.c (decode_options): Disable whpr incompatible passes.
9094         * lto/lto.c (lto_1_to_1_map): Skip clones.
9095         (read_cgraph_and_symbols): Do not mark everything as needed.
9096         (do_whole_program_analysis): Do map only after optimizing;
9097         set proper cgraph_state; use passmanager.
9098
9099 2010-04-19  DJ Delorie  <dj@redhat.com>
9100
9101         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9102         POINTER_PLUS_EXPR and fix them.
9103
9104 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
9105
9106         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9107         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9108         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9109         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9110         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9111         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9112         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9113         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9114         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9115         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9116         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9117
9118 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9119
9120         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9121         (check_cond_move_block): Likewise.
9122         (cond_move_process_if_block): Likewise.
9123         (noce_find_if_block): Improve formatting.
9124         (find_if_header): Pass 0 to memset and tweak conditions.
9125         (cond_exec_find_if_block): Fix long lines and tweak conditions.
9126
9127 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
9128
9129         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9130         for -gdwarf-4.
9131
9132         PR middle-end/43337
9133         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9134         with non-local decl doesn't need chain.
9135
9136 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
9137
9138         * ira-color.c (allocno_reload_assign): Avoid accumulating
9139         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9140
9141 2010-04-19  Martin Jambor  <mjambor@suse.cz>
9142
9143         * gimple.h (create_tmp_reg): Declare.
9144         * gimplify.c (create_tmp_reg): New function.
9145         (gimplify_return_expr): Use create_tmp_reg.
9146         (gimplify_omp_atomic): Likewise.
9147         (gimple_regimplify_operands): Likewise.
9148         * tree-dfa.c (make_rename_temp): Likewise.
9149         * tree-predcom.c (predcom_tmp_var): Likewise.
9150         (reassociate_to_the_same_stmt): Likewise.
9151         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9152         (get_replaced_param_substitute): Likewise.
9153         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9154         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9155         * tree-ssa-pre.c (get_representative_for): Likewise.
9156         (create_expression_by_pieces): Likewise.
9157         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9158         (create_tailcall_accumulator): Likewise.
9159
9160 2010-04-19  Martin Jambor  <mjambor@suse.cz>
9161
9162         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9163         new_stmt.
9164         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9165
9166 2010-04-19  Richard Guenther  <rguenther@suse.de>
9167
9168         PR tree-optimization/43796
9169         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9170         from SCEV in the lattice.
9171         (vrp_visit_phi_node): Dump change.
9172
9173 2010-04-19  Richard Guenther  <rguenther@suse.de>
9174
9175         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9176         * configure: Re-generated.
9177
9178 2010-04-19  Richard Guenther  <rguenther@suse.de>
9179
9180         PR tree-optimization/43783
9181         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9182         constant ARRAY_REF operands two and three if possible.
9183
9184 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
9185
9186         PR target/43766
9187         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9188
9189 2010-04-19  Jie Zhang  <jie@codesourcery.com>
9190
9191         PR target/43662
9192         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9193
9194 2010-04-19  Ira Rosen  <irar@il.ibm.com>
9195
9196         PR tree-optimization/37027
9197         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9198         and macro to access it.
9199         (vectorizable_reduction): Add argument.
9200         (vect_get_slp_defs): Likewise.
9201         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9202         statements for possible use in SLP.
9203         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9204         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9205         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9206         add new argument.
9207         (vectorizable_reduction): Likewise.
9208         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9209         vect_get_slp_defs.
9210         (vectorizable_type_demotion, vectorizable_type_promotion,
9211         vectorizable_store): Likewise.
9212         (vect_analyze_stmt): Update call to vectorizable_reduction.
9213         (vect_transform_stmt): Likewise.
9214         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9215         (vect_build_slp_tree): Fix indentation. Check that there are no loads
9216         from different interleaving chains in same node.
9217         (vect_slp_rearrange_stmts): New function.
9218         (vect_supported_load_permutation_p): Allow load permutations for
9219         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9220         inside SLP nodes if necessary.
9221         (vect_analyze_slp_instance): Handle reductions.
9222         (vect_analyze_slp): Try to build SLP instances originating from groups
9223         of reductions.
9224         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9225         (vect_get_constant_vectors): Create initial vectors for reductions
9226         according to reduction code. Add new argument.
9227         (vect_get_slp_defs): Add new argument, pass it to
9228         vect_get_constant_vectors.
9229         (vect_schedule_slp_instance): Remove SLP tree root statements.
9230
9231 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
9232
9233         * tree.h (ENUM_IS_SCOPED): Define.
9234         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9235         for ENUM_IS_SCOPED enums.
9236
9237 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9238
9239         * fold-const.c (fold_comparison): Use ssizetype.
9240         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9241         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9242         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9243         * tree-object-size.c (compute_object_sizes): Use size_type_node.
9244
9245         * tree.h (initialize_sizetypes): Remove parameter.
9246         (build_common_tree_nodes): Remove second parameter.
9247         * stor-layout.c (initialize_sizetypes): Remove parameter.
9248         Always create an unsigned type.
9249         (set_sizetype): Assert that the passed type is unsigned and simplify.
9250         * tree.c (build_common_tree_nodes): Remove second parameter.
9251         Adjust call to initialize_sizetypes.
9252         * c-decl.c (c_init_decl_processing): Remove second argument in call to
9253         build_common_tree_nodes.
9254
9255 2010-04-18  Matthias Klose  <doko@ubuntu.com>
9256
9257         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9258
9259 2010-04-18  Ira Rosen  <irar@il.ibm.com>
9260
9261         PR tree-optimization/43771
9262         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9263         load permutation doesn't have gaps.
9264
9265 2010-04-18  Jan Hubicka  <jh@suse.cz>
9266
9267         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9268         (sse_prologue_save_insn expander): Use new pattern.
9269         (sse_prologue_save_insn1): New pattern and splitter.
9270         (sse_prologue_save_insn): Update to deal also with 64bit aligned
9271         blocks.
9272         * i386.c (setup_incoming_varargs_64): Do not compute jump
9273         destination here.
9274         (ix86_gimplify_va_arg): Update alignment needed.
9275         (ix86_local_alignment): Do not align all local arrays to 128bit.
9276
9277 2010-04-17  Jan Hubicka  <jh@suse.cz>
9278
9279         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9280
9281 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
9282
9283         * arm.md (negdi2): Remove redundant code to force values into a
9284         register.
9285
9286 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
9287
9288         * arm/bpabi.S: Add EABI alignment attributes to objects.
9289         * arm/bpabi-v6m.S: Likewise.
9290         * arm/crti.asm: Likewise.
9291         * arm/crtn.asm: Likewise.
9292         * arm/lib1funcs.asm: Likewise.
9293         * arm/libunwind.S: Likewise.
9294
9295 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
9296
9297         * arm-protos.h (tune_params): New structure.
9298         * arm.c (current_tune): New variable.
9299         (arm_constant_limit): Delete.
9300         (struct processors): Add pointer to the tune parameters.
9301         (arm_slowmul_tune): New tuning option.
9302         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9303         (all_cores): Adjust to pick up the tuning model.
9304         (arm_constant_limit): New function.
9305         (arm_override_options): Select the appropriate tuning model.  Delete
9306         initialization of arm_const_limit.
9307         (arm_split_constant): Use the new constant-limit model.
9308         (arm_rtx_costs): Pick up the current tuning model.
9309         * arm.md (is_strongarm, is_xscale): Delete.
9310         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9311         for Xscale variant architectures.
9312         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9313
9314 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9315
9316         * config/arm/arm.c (arm_gen_constant): Remove unused variable
9317         can_shift.
9318         (arm_rtx_costs_1): Remove unused variable extra_cost.
9319         (arm_unwind_emit_set): Use variable offset.
9320         (thumb1_output_casesi): Remove unused variable flags.
9321
9322 2010-04-16  Jeff Law  <law@redhat.com>
9323
9324         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9325         needing assignment rather than doing a two-phase assignment.  Remove
9326         unused variable 'm'.
9327
9328 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
9329
9330         PR bootstrap/43767
9331         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9332
9333 2010-04-16  Doug Kwan  <dougkwan@google.com>
9334
9335         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9336         (next_operand_entry_id): New static variable.
9337         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9338         (add_to_ops_vec): Assigned unique ID to operand entry.
9339         (struct oecount_s): New field ID.
9340         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9341         (undistribute_ops_list): Assign unique IDs to oecounts.
9342         (init_reassoc): reset next_operand_entry_id.
9343
9344 2010-04-16  Doug Kwan  <dougkwan@google.com>
9345
9346         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9347         missing left parenthesis.
9348
9349 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
9350
9351         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9352         *btdi_rex64 using SWI48 mode iterator.
9353         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9354         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9355         *jcc_btdi_mask_rex64.
9356
9357 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
9358
9359         * double-int.h (tree_to_double_int): Convert to macro.
9360         * double-int.c (tree_to_double_int): Remove.
9361
9362 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
9363
9364         PR debug/43762
9365         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9366         with want_address 2 and in case a single element list might be
9367         possible, call it again with want_address 0.
9368
9369 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9370
9371         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9372         case 'W' print operands for HI mode.
9373         * config/h8300/h8300.h (Y0, Y2) : New constraints.
9374         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9375         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9376         * config/h8300/predicate.md (bit_register_indirect_operand): New.
9377
9378         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9379
9380         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9381         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9382         #xx:3 and #xx:4 mode.
9383
9384         * config/h8300/h8300.md (inverted load with HImode dest): Add
9385         support for H8300SX.
9386
9387         * config/h8300/predicate.md (bit_operand): Allow immediate values that
9388         satisfy 'U' constraint.
9389
9390 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9391
9392         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9393         * configure: Regenerate.
9394         * config.in: Regenerate.
9395         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9396         works.
9397
9398 2010-04-16  Richard Guenther  <rguenther@suse.de>
9399
9400         * tree.h (struct tree_decl_minimal): Move pt_uid ...
9401         (struct tree_decl_common): ... here.
9402         (DECL_PT_UID): Adjust.
9403         (SET_DECL_PT_UID): Likewise.
9404         (DECL_PT_UID_SET_P): Likewise.
9405
9406 2010-04-16  Richard Guenther  <rguenther@suse.de>
9407
9408         PR tree-optimization/43572
9409         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9410         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9411         * tree-flow.h (is_call_clobbered): Remove.
9412         * tree-flow-inline.h (is_call_clobbered): Likewise.
9413         * tree-dfa.c (dump_variable): Do not dump call clobber state.
9414         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9415         (execute_return_slot_opt): Adjust.
9416         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9417         check for call clobbered vars here.
9418         (find_tail_calls): Move tailcall verification to the
9419         proper place.
9420
9421 2010-04-16  Diego Novillo  <dnovillo@google.com>
9422
9423         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9424
9425 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9426
9427         PR target/40603
9428         * config/arm/arm.md (cbranchqi4): New pattern.
9429         * config/arm/predicates.md (const0_operand,
9430         cbranchqi4_comparison_operator): New predicates.
9431
9432 2010-04-16  Richard Guenther  <rguenther@suse.de>
9433
9434         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9435         (dump_gimple_stmt): Likewise.
9436
9437 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9438
9439         * recog.h (struct recog_data): New field is_operator.
9440         (struct insn_operand_data): New field is_operator.
9441         * recog.c (extract_insn): Set recog_data.is_operator.
9442         * genoutput.c (output_operand_data): Emit code to set the
9443         is_operator field.
9444         * reload.c (find_reloads): Use it rather than testing for an
9445         empty constraint string.
9446
9447         PR target/41514
9448         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9449         If the previous insn is a cbranchsi4_insn with the same arguments,
9450         omit the compare instruction.
9451
9452         * config/arm/arm.md (addsi3_cbranch): If destination is a high
9453         register, inputs must be low registers and we need a low register
9454         scratch.  Handle alternative 2 like alternative 3.
9455
9456 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
9457
9458         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9459         don't call get_addr on both.  If one expression is a VALUE and
9460         the other a REG, check VALUE's locs if the REG isn't among them.
9461
9462 2010-04-16  Christian Bruel  <christian.bruel@st.com>
9463
9464         * config/sh/sh.h (sh_frame_pointer_required): New function.
9465         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
9466         (flag_omit_frame_pointer) Set.
9467         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
9468         (rounded_frame_size): Adjust size with outgoing_args_size.
9469         (sh_set_return_address): Must return from stack pointer.
9470         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
9471         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
9472         (ACCUMULATE_OUTGOING_ARGS): Define.
9473         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
9474         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
9475
9476 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9477
9478         PR target/43471
9479         * config/sh/sh.c (sh_legitimize_reload_address): Use
9480         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
9481         Remove a unneeded check for offset_base.
9482
9483 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9484
9485         * configure: Regenerated.
9486
9487 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9488
9489         * config/s390/s390.c (s390_call_save_register_used): Switch back
9490         to HARD_REGNO_NREGS.
9491
9492 2010-04-15  Richard Guenther  <rguenther@suse.de>
9493
9494         * alias.c (alias_set_subset_of): Handle alias-set zero
9495         child properly.
9496
9497 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
9498             Julian Brown  <julian@codesourcery.com>
9499
9500         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
9501         alternatives according to use of high and low regs.
9502         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9503         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
9504         optimizing for size on Thumb-2.
9505
9506 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
9507
9508         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
9509
9510 2010-04-15  Richard Guenther  <rguenther@suse.de>
9511
9512         * tree-ssa-structalias.c (struct variable_info): Add
9513         is_fn_info flag.
9514         (new_var_info): Initialize it.
9515         (dump_constraints): Support printing last added constraints.
9516         (debug_constraints): Adjust.
9517         (dump_constraint_graph): Likewise.
9518         (make_heapvar_for): Check for NULL cfun.
9519         (get_function_part_constraint): New function.
9520         (get_fi_for_callee): Likewise.
9521         (find_func_aliases): Properly implement IPA PTA constraints.
9522         (process_ipa_clobber): New function.
9523         (find_func_clobbers): Likewise.
9524         (insert_into_field_list_sorted): Remove.
9525         (create_function_info_for): Properly allocate vars for IPA mode.
9526         Do not use insert_into_field_list_sorted.
9527         (create_variable_info_for): Properly generate constraints for
9528         global vars in IPA mode.
9529         (dump_solution_for_var): Always dump the solution.
9530         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
9531         (find_what_var_points_to): Adjust.
9532         (pt_solution_set): Change.
9533         (pt_solution_ior_into): New function.
9534         (pt_solution_empty_p): Export.
9535         (pt_solution_includes_global): Adjust.
9536         (pt_solution_includes_1): Likewise.
9537         (pt_solutions_intersect_1): Likewise.
9538         (dump_sa_points_to_info): Check some invariants.
9539         (solve_constraints): Move constraint dumping ...
9540         (compute_points_to_sets): ... here.
9541         (ipa_pta_execute): ... and here.
9542         (compute_may_aliases): Do not re-compute points-to info
9543         locally if IPA info is available.
9544         (ipa_escaped_pt): New global var.
9545         (ipa_pta_execute): Properly implement IPA PTA.
9546         * tree-into-ssa.c (dump_decl_set): Support dumping
9547         decls not in referenced-vars.
9548         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
9549         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
9550         (dump_points_to_solution): Likewise.
9551         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
9552         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
9553         (remap_gimple_stmt): Reset call clobber/use information if necessary.
9554         (copy_decl_to_var): Copy DECL_PT_UID.
9555         (copy_result_decl_to_var): Likewise.
9556         * tree.c (make_node_stat): Initialize DECL_PT_UID.
9557         (copy_node_stat): Copy it.
9558         * tree.h (DECL_PT_UID): New macro.
9559         (SET_DECL_PT_UID): Likewise.
9560         (DECL_PT_UID_SET_P): Likewise.
9561         (struct tree_decl_minimal): Add pt_uid member.
9562         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
9563         (pt_solution_empty_p): Declare.
9564         (pt_solution_set): Adjust.
9565         (ipa_escaped_pt): Declare.
9566         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
9567         * gimple-pretty-print.c (pp_points_to_solution): New function.
9568         (dump_gimple_call): Dump call clobber/use information.
9569         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
9570         * tree-pass.h (TDF_ALIAS): New dump option.
9571         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
9572         * doc/invoke.texi (-fipa-pta): Update documentation.
9573
9574 2010-04-15  Richard Guenther  <rguenther@suse.de>
9575
9576         * Makefile.in (OBJS-common): Add gimple-fold.o.
9577         (gimple-fold.o): New rule.
9578         * tree.h (maybe_fold_offset_to_reference,
9579         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
9580         prototypes ...
9581         * gimple.h: ... here.
9582         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
9583         may_propagate_address_into_dereference): Move prototypes ...
9584         * gimple.h: ... here.
9585         * tree-ssa-ccp.c (get_symbol_constant_value,
9586         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
9587         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
9588         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
9589         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
9590         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
9591         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
9592         gimplify_and_update_call_from_tree): Move ...
9593         * gimple-fold.c: ... here.  New file.
9594         (ccp_fold_builtin): Rename to ...
9595         (gimple_fold_builtin): ... this.
9596         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
9597
9598 2010-04-15  Richard Guenther  <rguenther@suse.de>
9599
9600         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
9601         fit_double_type, force_fit_type_double, add_double_with_sign,
9602         neg_double, mul_double_with_sign, lshift_double, rshift_double,
9603         lrotate_double, rrotate_double, div_and_round_double): Move ...
9604         * double-int.c: ... here.
9605         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
9606         add_double, neg_double, mul_double_with_sign, mul_double,
9607         lshift_double, rshift_double, lrotate_double, rrotate_double,
9608         div_and_round_double): Move prototypes ...
9609         * double-int.h: ... here.
9610
9611 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
9612
9613         PR target/43742
9614         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
9615         matching constraints to ensure inputs match the output.
9616
9617 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9618
9619         PR target/43742
9620         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
9621         in an input-only operand.
9622
9623 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
9624
9625         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
9626         (double_int_not, double_int_lshift, double_int_rshift): Declare.
9627         (double_int_negative_p): Convert to static inline function.
9628         * double-int.c (double_int_lshift, double_int_lshift): New functions.
9629         (double_int_negative_p): Remove.
9630         * tree.h (lshift_double, rshift_double):
9631         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
9632         * fold-const.c (fold_convert_const_int_from_real,
9633         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
9634         (lshift_double): Change type of arith argument to bool.
9635         (rshift_double): Change type of arith argument to bool. Correct
9636         comment.
9637         * expmed.c (mask_rtx, lshift_value): (Ditto.).
9638
9639 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
9640
9641         PR target/21803
9642         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
9643         at the start and end of the then/else blocks, and omit them from the
9644         conversion.
9645         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
9646         argument; all callers changed.  Pass zero to old_insns_match_p instead.
9647         (flow_find_head_matching_sequence): New function.
9648         (old_insns_match_p): Check REG_EH_REGION notes for calls.
9649         * basic-block.h (flow_find_cross_jump,
9650         flow_find_head_matching_sequence): Declare functions.
9651
9652 2010-04-14  Jason Merrill  <jason@redhat.com>
9653
9654         PR c++/36625
9655         * c-common.c (attribute_takes_identifier_p): New fn.
9656         * c-common.h: Declare it.
9657
9658 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
9659
9660         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
9661         splitter condition.
9662         (*udivmod<mode>4): Ditto.
9663
9664 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
9665
9666         * config/i386/i386.md (maxmin_int): Rename code attribute from
9667         maxminiprefix and update all users.
9668         (maxmin_float): Ditto from maxminfprefix.
9669         (logic): Ditto from logicprefix.
9670         (absneg_mnemonic): Ditto from absnegprefix.
9671         * config/i386/mmx.md: Update all users of maxminiprefix,
9672         maxminfprefix and logicprefix for rename.
9673         * config/i386/sse.md: Ditto.
9674         * config/i386/sync.md (sync_<code><mode>): Update for
9675         logicprefix rename.
9676
9677 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9678
9679         PR 42966
9680         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
9681         warnings converted to errors.
9682
9683 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
9684
9685         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
9686         used insn_type variable.
9687         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
9688         to avoid set-but-not-used warning.
9689
9690 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
9691
9692         * df-core.c (df_ref_debug): Change format string placeholder
9693         from 0x%x to %#x.
9694         * dwarf2asm.c (dw2_asm_output_data_raw,
9695         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
9696         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
9697         * dwarf2out.c (output_cfi, output_cfi_directive,
9698         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
9699         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
9700         Ditto.
9701         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
9702         * print-rtl.c (print_rtx): Ditto.
9703
9704 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9705
9706         PR middle-end/42694
9707         * builtins.c (expand_builtin_pow_root): New function to expand pow
9708         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
9709         series of sqrt and cbrt calls under -ffast-math.
9710         (expand_builtin_pow): Call it.
9711
9712 2010-04-14  Michael Matz  <matz@suse.de>
9713
9714         PR tree-optimization/42963
9715         * tree-cfg.c (touched_switch_bbs): New static variable.
9716         (group_case_labels_stmt): New function broken out from ...
9717         (group_case_labels): ... here, use the above.
9718         (start_recording_case_labels): Allocate touched_switch_bbs.
9719         (end_recording_case_labels): Deallocate it, call
9720         group_case_labels_stmt.
9721         (gimple_redirect_edge_and_branch): Remember index of affected BB.
9722
9723 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
9724
9725         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
9726         from insn template.
9727
9728 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
9729
9730         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
9731
9732 2010-04-13  Jan Hubicka  <jh@suse.cz>
9733
9734         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
9735         of optimized out static functions.
9736         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
9737         cost computation.  Also sanity check for overflows.
9738         (update_caller_keys): Update cgraph_edge_badness call; properly
9739         update fibheap and sanity check that it is up to date.
9740         (add_new_edges_to_heap): Update cgraph_edge_badness.
9741         (cgraph_decide_inlining_of_small_function): Likewise;
9742         add sanity checking that badness in heap is up to date;
9743         improve dumping of reason; Update badness of calls to the
9744         offline copy of function currently inlined; dump badness
9745         of functions not inlined because of unit growth limits.
9746
9747 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
9748
9749         PR middle-end/32628
9750         * c-common.c (pointer_int_sum): Disregard overflow that occured only
9751         because of sign-extension change when converting to sizetype here...
9752         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
9753
9754         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
9755         the folding to constants.  Remove redundant final conversion.
9756         (fold_binary) <associate>: Do not associate if the re-association of
9757         constants alone overflows.
9758         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
9759         to the end of the list.
9760         (multiple_of_p) <COND_EXPR>: New case.
9761
9762 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9763
9764         * opt-functions.awk (opt_sanitized_name): New.
9765         (opt_enum): New.
9766         * optc-gen.awk: Use it
9767         * opth-gen.awk: Use it.
9768
9769 2010-04-13  Martin Jambor  <mjambor@suse.cz>
9770
9771         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
9772         (sra_modify_assign): Delete stmts loading dead data even if racc has no
9773         children.  Call replace_uses_with_default_def_ssa_name to handle
9774         SSA_NAES on lhs.
9775
9776 2010-04-13  Michael Matz  <matz@suse.de>
9777
9778         PR middle-end/43730
9779         * builtins.c (expand_builtin_interclass_mathfn): Also create
9780         a register if the predicate doesn't match.
9781
9782 2010-04-13  Diego Novillo  <dnovillo@google.com>
9783
9784         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
9785         * c-pch.c: Include timevar.h.
9786         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
9787         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
9788         * ggc-common.c: Include timevar.h.
9789         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
9790         * timevar.def (TV_PCH_SAVE): Define.
9791         (TV_PCH_CPP_SAVE): Define.
9792         (TV_PCH_PTR_REALLOC): Define.
9793         (TV_PCH_PTR_SORT): Define.
9794         (TV_PCH_RESTORE): Define.
9795         (TV_PCH_CPP_RESTORE): Define.
9796
9797 2010-04-13  Michael Matz  <matz@suse.de>
9798
9799         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
9800         into MINUS_EXPRs.
9801         (can_reassociate_p): New function.
9802         (break_up_subtract_bb, reassociate_bb): Use it.
9803
9804 2010-04-13  Richard Guenther  <rguenther@suse.de>
9805
9806         PR bootstrap/43737
9807         * builtins.c (c_readstr): Fix assert.
9808
9809 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
9810
9811         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
9812         when generating cltd insn.
9813
9814         (*ashl<mode>3_1): Remove special handling for register operand 2.
9815         (*ashlsi3_1_zext): Ditto.
9816         (*ashlhi3_1): Ditto.
9817         (*ashlhi3_1_lea): Ditto.
9818         (*ashlqi3_1): Ditto.
9819         (*ashlqi3_1_lea): Ditto.
9820         (*<shiftrt_insn><mode>3_1): Ditto.
9821         (*<shiftrt_insn>si3_1_zext): Ditto.
9822         (*<shiftrt_insn>qi3_1_slp): Ditto.
9823         (*<rotate_insn><mode>3_1): Ditto.
9824         (*<rotate_insn>si3_1_zext): Ditto.
9825         (*<rotate_insn>qi3_1_slp): Ditto.
9826
9827 2010-04-13  Richard Guenther  <rguenther@suse.de>
9828
9829         * tree-ssa-structalias.c (callused_id): Remove.
9830         (call_stmt_vars): New.
9831         (get_call_vi): Likewise.
9832         (lookup_call_use_vi): Likewise.
9833         (lookup_call_clobber_vi): Likewise.
9834         (get_call_use_vi): Likewise.
9835         (get_call_clobber_vi): Likewise.
9836         (make_transitive_closure_constraints): Likewise.
9837         (handle_const_call): Adjust to do per-call call-used handling.
9838         (handle_pure_call): Likewise.
9839         (find_what_var_points_to): Remove general callused handling.
9840         (init_base_vars): Likewise.
9841         (init_alias_vars): Initialize call_stmt_vars.
9842         (compute_points_to_sets): Process call-used and call-clobbered
9843         vars for call statements.
9844         (delete_points_to_sets): Free call_stmt_vars.
9845
9846 2010-04-13  Richard Guenther  <rguenther@suse.de>
9847
9848         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9849         Only add RW dependence for dependence distance zero.
9850         Adjust maximal vectorization factor according to dependences.
9851         Move alignment handling ...
9852         (vect_find_same_alignment_drs): ... here.  New function.
9853         (vect_analyze_data_ref_dependences): Adjust.
9854         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
9855         (vect_analyze_data_refs): Adjust minimal vectorization factor
9856         according to data references.
9857         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
9858         dependences before determining the vectorization factor.
9859         Analyze alignment after determining the vectorization factor.
9860         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
9861         dependences before alignment.
9862         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
9863         Adjust prototype.
9864         (vect_analyze_data_refs): Likewise.
9865         (MAX_VECTORIZATION_FACTOR): New define.
9866
9867 2010-04-13  Duncan Sands  <baldrick@free.fr>
9868
9869         * except.h (lang_eh_type_covers): Remove.
9870         * except.c (lang_eh_type_covers): Likewise.
9871
9872 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9873             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9874
9875         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
9876         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
9877         UNITS_PER_LONG where it is ABI relevant.
9878         (s390_return_addr_rtx): Likewise.
9879         (s390_back_chain_rtx): Likewise.
9880         (s390_frame_area): Likewise.
9881         (s390_frame_info): Likewise.
9882         (s390_initial_elimination_offset): Likewise.
9883         (save_gprs): Likewise.
9884         (s390_emit_prologue): Likewise.
9885         (s390_emit_epilogue): Likewise.
9886         (s390_function_arg_advance): Likewise.
9887         (s390_function_arg): Likewise.
9888         (s390_va_start): Likewise.
9889         (s390_gimplify_va_arg): Likewise.
9890         (s390_function_profiler): Likewise.
9891         (s390_optimize_prologue): Likewise.
9892         (s390_rtx_costs): Likewise.
9893         (s390_secondary_reload): Likewise.
9894         (s390_promote_function_mode): Likewise.
9895         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
9896         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
9897         registers available.
9898         (s390_unwind_word_mode): New function.
9899         (s390_function_value): Split 64 bit values into register pair if
9900         used as return value.
9901         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
9902         function call parameters.  Handle parallels.
9903         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
9904         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
9905         (DWARF_CIE_DATA_ALIGNMENT): New macro.
9906         (s390_expand_setmem): Remove unused variable src_addr.
9907         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
9908         deal with 64 bit registers.
9909         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
9910         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
9911         (UNITS_PER_LONG): New macro.
9912         * libjava/include/s390-signal.h: Define extended ucontext
9913         structure containing the upper halfs of the 64 bit registers.
9914
9915 2010-04-13  Simon Baldwin  <simonb@google.com>
9916
9917         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
9918
9919 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
9920
9921         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
9922         rvalue on the RHS if the LHS is of a non-renamable type.
9923         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
9924
9925 2010-04-13  Matthias Klose  <doko@ubuntu.com>
9926
9927         * gcc.c (cc1_options): Handle -iplugindir before processing
9928         the cc1 spec. Only add -iplugindir once.
9929         (cpp_unique_options): Add -iplugindir option if -fplugin* options
9930         found.
9931         * common.opt (iplugindir): Remove `Separate' property, initialize.
9932         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
9933         option.
9934         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
9935         (distclean): Remove plugin dir.
9936         * doc/invoke.texi: Document -iplugindir.
9937
9938 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
9939
9940         * doc/plugins.texi (Loading Plugins): Document short
9941         -fplugin=foo option.
9942         (Plugin API): Mention default_plugin_dir_name function.
9943
9944         * gcc.c (find_file_spec_function): Add new declaration.
9945         (static_spec_func): Use it for "find-file".
9946         (find_file_spec_function): Add new function.
9947         (cc1_options): Add -iplugindir option if -fplugin* options found.
9948
9949         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
9950
9951         * plugin.c (add_new_plugin): Updated comment, and handle short
9952         plugin name.
9953         (default_plugin_dir_name): Added new function.
9954
9955         * common.opt (iplugindir): New option to set the plugin directory.
9956
9957 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
9958
9959         * config/i386/i386.md (any_rotate): New code iterator.
9960         (rotate_insn): New code attribute.
9961         (rotate): Ditto.
9962         (SWIM124): New mode iterator.
9963         (<rotate_insn>ti3): New expander.
9964         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
9965         any_rotate code iterator.
9966         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
9967         using any_rotate code iterator and SWIM124 mode iterator.
9968         (ix86_rotlti3): New insn_and_split pattern.
9969         (ix86_rotrti3): Ditto.
9970         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
9971         ix86_rotl{di,ti}3 patterns.
9972         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
9973         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
9974         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
9975         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
9976         code iterator and SWI mode iterator.
9977         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
9978         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
9979         code iterator.
9980         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
9981         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
9982         (bswap rotatert splitter): Add splitter.
9983         (bswap splitter): Macroize splitter using any_rotate code iterator.
9984         Add insn predicate to split only for TARGET_USE_XCHGB or when
9985         optimizing function for size.
9986
9987 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
9988
9989         * config/pa/pa.c (emit_move_sequence): Remove use of
9990         deleted variable flag_argument_noalias.
9991
9992 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9993
9994         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
9995         configurations.
9996         Add to unsupported targets list.
9997         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
9998         sparc*-sun-solaris2.[567]* from target lists.
9999         * configure: Regenerate.
10000         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10001         removal.
10002         Remove Solaris 7 patch references.
10003         (Specific, sparc-sun-solaris2.7): Removed.
10004         (sparc-sun-solaris2*): Update Solaris 7 example.
10005         (sparc64-*-solaris2*): Likewise.
10006
10007 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10008
10009         * config.build (alpha*-dec-osf4*): Remove.
10010         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10011         of obsolete configurations.
10012         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10013         support.
10014         * config/alpha/t-osf4: Renamed to ...
10015         * config/alpha/t-osf5: ... this.
10016         * config/alpha/osf.h: Renamed to ...
10017         * config/alpha/osf5.h: ... this.
10018         Merged old osf5.h contents.
10019         Update comments.
10020         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10021         (EXTRA_SPECS): Removed.
10022         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10023         reflect removal of Tru64 UNIX V4.0/V5.0 support.
10024         Document that.
10025
10026 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10027
10028         * doc/contrib.texi (Contributors, Rainer Orth): Update.
10029
10030 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
10031
10032         PR/43702
10033         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10034         __thiscall convention.
10035
10036 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
10037
10038         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10039         orig_base.
10040         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10041
10042 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
10043
10044         * function.c (assign_parms_initialize_all): Add unused attribute
10045         to fntype.
10046
10047 2010-04-12  Richard Guenther  <rguenther@suse.de>
10048
10049         * gsstruct.def (GSS_CALL): New.
10050         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10051         * gimple.h: Include tree-ssa-alias.h.
10052         (struct gimple_statement_call): New.
10053         (union gimple_statement_struct_d): Add gimple_call member.
10054         (gimple_call_reset_alias_info): Declare.
10055         (gimple_call_use_set): New function.
10056         (gimple_call_clobber_set): Likewise.
10057         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10058         * gimple.c (gimple_call_reset_alias_info): New function.
10059         (gimple_build_call_1): Call it.
10060         * lto-streamer-in.c (input_gimple_stmt): Likewise.
10061         * tree-inline.c (remap_gimple_stmt): Likewise.
10062         (expand_call_inline): Remove callused handling.
10063         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10064         * tree-dfa.c (dump_variable): Likewise.
10065         * tree-parloops.c (parallelize_loops): Likewise.
10066         * tree-ssa.c (init_tree_ssa): Likewise.
10067         (delete_tree_ssa): Likewise.
10068         * tree-flow-inline.h (is_call_used): Remove.
10069         * tree-flow.h (struct gimple_df): Remove callused member.
10070         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10071         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10072         (ref_maybe_used_by_call_p_1): Simplify.
10073         (call_may_clobber_ref_p_1): Likewise.
10074         * tree-ssa-structalias.c (compute_points_to_sets): Set
10075         the call stmt used and clobbered sets.
10076         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10077         (find_tail_calls): Verify the tail call.
10078
10079 2010-04-12  Richard Guenther  <rguenther@suse.de>
10080
10081         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10082         single-iteration always-inline inlining.
10083         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10084         (cgraph_decide_inlining): Do not handle always-inline specially.
10085         (try_inline): Remove always-inline cycle detection special case.
10086         Do not recurse on always-inlines.
10087         (cgraph_early_inlining): Do not iterate if not optimizing.
10088         (cgraph_gate_early_inlining): remove.
10089         (pass_early_inline): Run unconditionally.
10090         (gate_cgraph_decide_inlining): New function.
10091         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
10092         not inlining or optimizing.
10093         (cgraph_decide_inlining_of_small_functions): Also consider
10094         always-inline functions.
10095         (cgraph_default_inline_p): Return true for nodes which should
10096         disregard inline limits.
10097         (estimate_function_body_sizes): Assume zero size and time for
10098         nodes which are marked as disregarding inline limits.
10099         (cgraph_decide_recursive_inlining): Do not perform recursive
10100         inlining on always-inline nodes.
10101
10102 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
10103
10104         PR bootstrap/43699
10105         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10106         for exprs satisfying handled_component_p.
10107
10108 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
10109
10110         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10111         non-constant aggregate elements.
10112
10113         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10114         is a real initialization.
10115
10116 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
10117
10118         PR c/36774
10119         * c-decl.c (start_function): Move forward check for nested function.
10120
10121 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10122
10123         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10124         * config/sh/sh.c: Include reload.h.
10125         (sh_legitimize_reload_address): New.
10126         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10127         sh_legitimize_reload_address.
10128
10129 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10130
10131         * config/sh/sh.md (*movqi_pop): New insn pattern.
10132         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10133
10134 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
10135
10136         * config/i386/i386.md (any_shiftrt): New code iterator.
10137         (shiftrt_insn): New code attribute.
10138         (shiftrt): Ditto.
10139         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10140         using any_shiftrt code iterator.
10141         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10142         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10143         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10144         pattern from corresponding peephole2 patterns.
10145         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10146         using any_shiftrt code iterator.
10147         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10148         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10149         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10150         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10151         *{ashr,lshr}<mode>3_cmp_zext.
10152         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10153
10154 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
10155
10156         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10157         scratch register.
10158         (*lshr<mode>3_cconly): Ditto.
10159
10160 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
10161
10162         * config/i386/i386.md (lshr<mode>3): Macroize expander from
10163         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10164         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
10165         pattern from *lshr{di,ti}3_1 and corresponding splitters using
10166         DWI mode iterator.
10167         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10168         from corresponding peephole2 patterns.
10169         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10170         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10171         and *lshrdi3_1_rex64 using SWI mode iterator.
10172         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10173         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10174         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10175         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10176         and *lshrdi3_cmp_rex64 using SWI mode iterator.
10177         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10178         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10179         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10180         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10181         SWI mode iterator.
10182
10183 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
10184
10185         * config/i386/i386.md (ashr<mode>3): Macroize expander from
10186         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10187         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
10188         pattern from *ashr{di,ti}3_1 and corresponding splitters using
10189         DWI mode iterator.
10190         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10191         from corresponding peephole2 patterns.
10192         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10193         (ashrsi3_cvt): Rename from ashrsi3_31.
10194         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10195         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10196         and x86_64_shift_adj_3 using SWI48 mode iterator.
10197         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10198         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10199         and *ashrdi3_1_rex64 using SWI mode iterator.
10200         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10201         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10202         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10203         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10204         and *ashrdi3_cmp_rex64 using SWI mode iterator.
10205         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10206         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10207         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10208         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10209         SWI mode iterator.
10210         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10211         * config/i386/i386.c (ix86_split_ashr): Update for renamed
10212         x86_shift<mode>_adj_3 expanders.
10213
10214 2010-04-10  Wei Guozhi  <carrot@google.com>
10215
10216         PR target/42601
10217         * config/arm/arm.c (arm_pic_static_addr): New function.
10218         (legitimize_pic_address): Call arm_pic_static_addr when it detects
10219         a static symbol.
10220         (arm_output_addr_const_extra): Output expression for new pattern.
10221         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10222
10223 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
10224
10225         * ira-costs.c (record_reg_classes): Ignore alternatives that are
10226         not enabled.
10227
10228         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10229         * web.c: Include "insn-config.h" and "recog.h".
10230         (union_match_dups): New function.
10231         (web_main): Call it.
10232         (union_defs): Don't try to recognize match_dups.
10233
10234         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10235         if doing so would replace the entire pattern.
10236
10237 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
10238
10239         PR target/43707
10240         PR target/43709
10241         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10242         and splitter pattern.  Change splitter operand 1 predicate to
10243         nonmemory_operand.
10244
10245 2010-04-09  Martin Jambor  <mjambor@suse.cz>
10246
10247         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10248         lattices are addresses of CONST_DECLs with the same initial value.
10249         (ipcp_print_all_lattices): Print values of CONST_DECLs.
10250         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10251
10252 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10253             Bernd Schmidt  <bernds@codesourcery.com>
10254
10255         * loop-invariant.c (replace_uses): New static function.
10256         (move_invariant_reg): Use it to ensure we can replace the uses.
10257
10258 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10259
10260         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10261         function template.
10262         (picochip_override_options): Enable section anchors only above -O1.
10263         (picochip_reorg): Fixed a couple of build warnings.
10264
10265 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10266
10267         * configure.ac (plugin -rdynamic test): Log result.
10268         * configure: Regenerate.
10269         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10270         (RDYNAMIC_SPEC): Define.
10271         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10272
10273 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10274
10275         * configure.ac: Determine Sun ld version numbers.
10276         (comdat_group): Restrict GNU ld version checks to gld.
10277         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10278         (enable_comdat): Support --enable-comdat.
10279         * configure: Regenerate.
10280         * doc/install.texi (Configuration): Document --enable-comdat.
10281
10282 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10283
10284         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
10285         * config/sol2-gld.h: ... here.
10286         * config.gcc (sparc*-*-solaris2*): Reflect this.
10287         (i[34567]86-*-solaris2*): Use it.
10288
10289 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
10290
10291         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10292         setup_clocks_p.
10293         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10294
10295 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10296
10297         PR 42965
10298         * diagnostic.c (diagnostic_initialize): Initialize
10299         some_warnings_are_errors.
10300         (diagnostic_finish): New.
10301         (diagnostic_action_after_output): Call it before exiting.
10302         (diagnostic_report_diagnostic): Do not print message here. Set
10303         some_warnings_are_errors.
10304         * diagnostic.h (diagnostic_context): Delete
10305         issue_warnings_are_errors_message. Add some_warnings_are_errors.
10306         (diagnostic_finish): Declare.
10307         * toplev.c (toplev_main): Call it before exit.
10308
10309 2010-04-09  Jason Merrill  <jason@redhat.com>
10310
10311         PR c++/42623
10312         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10313         for incomplete type.
10314
10315         PR c++/41788
10316         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10317         based on a warning flag.
10318
10319 2010-04-09  Richard Guenther  <rguenther@suse.de>
10320
10321         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10322
10323 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
10324
10325         PR bootstrap/43684
10326         * varasm.c (default_assemble_visibility): Wrap vars that are
10327         set, but unused, by targets without GAS.
10328         * config/rs6000/rs6000.c (paired_emit_vector_compare):
10329         Remove set, but unused, vars.
10330         (rs6000_legitimize_tls_address): Likewise.
10331         (altivec_expand_dst_builtin): Likewise.
10332         * config/darwin.c (machopic_classify_symbol): Likewise.
10333         (machopic_indirection_name): Likewise.
10334
10335 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
10336
10337         * config/i386/i386.md (DWI): New mode iterator.
10338         (S): New mode attribute.
10339         (shift_operand): Ditto.
10340         (shift_immediate_operand): Ditto.
10341         (ashl_input_operand): Ditto.
10342         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10343         using SDWIM mode iterator.
10344         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
10345         pattern from *ashl{di,ti}3_1 and corresponding splitters using
10346         DWI mode iterator.
10347         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10348         from corresponding peephole2 patterns.
10349         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10350         and x86_64_shift_adj_1 using SWI48 mode iterator.
10351         (x86_shift<mode>_adj_2): Ditto.
10352         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10353         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10354         using SWI48 mode iterator.
10355         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10356         *ashldi3_cmp_rex64 using SWI mode iterator.
10357         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10358         *ashldi3_cconly_rex64 using SWI mode iterator.
10359         * config/i386/i386.c (ix86_split_ashl): Update for renamed
10360         x86_shift<mode>_adj_{1,2}.
10361         (ix86_split_ashr): Ditto.
10362         (ix86_split_lshr): Ditto.
10363
10364 2010-04-09  Richard Guenther  <rguenther@suse.de>
10365
10366         * target.h (builtin_conversion): Pass in input and output types.
10367         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10368         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10369         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10370         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10371
10372         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10373         Handle AVX modes.
10374         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10375
10376 2010-04-09  Richard Guenther  <rguenther@suse.de>
10377
10378         PR target/43152
10379         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10380
10381 2010-04-09  Richard Guenther  <rguenther@suse.de>
10382
10383         * tree-vectorizer.h (struct _stmt_vec_info): Document
10384         that vectype is the type of the LHS.
10385         (supportable_widening_operation, supportable_narrowing_operation):
10386         Get both input and output vector types as arguments.
10387         (vect_is_simple_use_1): Declare.
10388         (get_same_sized_vectype): Likewise.
10389         * tree-vect-loop.c (vect_determine_vectorization_factor):
10390         Set STMT_VINFO_VECTYPE to the vector type of the def.
10391         (vectorizable_reduction): Adjust.
10392         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10393         Adjust.  Specify the output vector type.
10394         (vect_pattern_recog_1): Adjust.
10395         * tree-vect-stmts.c (get_same_sized_vectype): New function.
10396         (vectorizable_call): Adjust.
10397         (vectorizable_conversion): Likewise.
10398         (vectorizable_operation): Likewise.
10399         (vectorizable_type_demotion): Likewise.
10400         (vectorizable_type_promotion): Likewise.
10401         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10402         the def.
10403         (vect_is_simple_use_1): New function.
10404         (supportable_widening_operation): Get both input and output
10405         vector types.
10406         (supportable_narrowing_operation): Likewise.
10407         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10408
10409 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
10410
10411         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10412         __thiscall and _thiscall as predefined macros.
10413         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10414         thiscall attribute handling.
10415         (ix86_comp_type_attributes): Likewise.
10416         (ix86_function_regparm): Likewise.
10417         (ix86_return_pops_args): Likewise.
10418         (init_cumulative_args): Likewise.
10419         (find_drap_reg): Likewise.
10420         (ix86_static_chain): Likewise.
10421         (x86_this_parameter): Likewise.
10422         (x86_output_mi_thunk): Likewise.
10423         (ix86_attribute_table): Add description for thiscall attribute.
10424         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10425         * doc/extend.texi: Add documentation for thiscall.
10426
10427 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10428
10429         PR c++/28584
10430         * c.opt (Wint-to-pointer-cast): Available in C++.
10431         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10432
10433 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10434
10435         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10436         * calls.c (expand_call): Pass the function type to aggregate_value_p.
10437         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10438         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
10439         function type instead.  Reorder and simplify checks.
10440
10441         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10442
10443 2010-04-08  Jing Yu  <jingyu@google.com>
10444             Zdenek Dvorak  <ook@ucw.cz>
10445
10446         PR tree-optimization/42720
10447         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10448         loop unswitch conditions here from ...
10449         (tree_unswitch_single_loop): ... here.
10450
10451 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
10452
10453         * tree-if-conv.c: Fix comments and simplify logic.
10454
10455 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
10456
10457         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10458         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
10459         (main_tree_if_conversion): Update call to tree_if_conversion.
10460
10461 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10462
10463         PR 42485
10464         * doc/invoke.texi (-b,-V): Delete.
10465         * doc/tm.texi: Do not mention -b.
10466         * gcc.c (display_help): Delete -b and -V.
10467         (process_command): Delete -b and -V.
10468         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
10469
10470 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
10471             Wolfgang Gellerich  <gellerich@de.ibm.com>
10472
10473         Implement target hook for loop unrolling
10474         * target.h (loop_unroll_adjust): Add a new target hook function.
10475         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
10476         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
10477         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
10478         (s390_loop_unroll_adjust): Implement the new target hook for s390.
10479         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
10480         target hook.
10481         (decide_unroll_stupid): Likewise.
10482
10483 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10484
10485         PR target/43643
10486         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
10487
10488 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10489
10490         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
10491         (Specific, *-*-solaris2*): Likewise.
10492         Don't prefer Sun as over GNU as.
10493
10494 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
10495
10496         * config/s390/s390.c (override_options): Adjust the z10 defaults
10497         for max-unroll-times, max-completely-peeled-insns
10498         and max-completely-peel-times.
10499
10500 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10501
10502         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
10503         instructions for z10.
10504         (s390_expand_setmem): Likewise.
10505         (s390_expand_cmpmem): Likewise.
10506
10507 2010-04-08  Richard Guenther  <rguenther@suse.de>
10508
10509         PR tree-optimization/43679
10510         * tree-ssa-pre.c (eliminate): Only propagate copies.
10511
10512 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
10513
10514         PR bootstrap/43681
10515         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
10516         set but not used variable warning.
10517
10518 2010-04-08  Wei Guozhi  <carrot@google.com>
10519
10520         PR target/41653
10521         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
10522         (arm_size_rtx_costs): Call the new function when optimized for size.
10523
10524 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
10525
10526         PR debug/43670
10527         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
10528         op0 is not a MEM, just return NULL instead of assertion
10529         failure.
10530         (discover_nonconstant_array_refs): Don't walk debug stmts.
10531
10532 2010-04-08  Doug Kwan  <dougkwan@google.com>
10533
10534         * configure.ac: Recognize gold and do not use its version number
10535         to test ld features.
10536         * configure: Regenerate.
10537
10538 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
10539
10540         PR middle-end/40815
10541         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
10542         (negate_value): Move code to push elements to broken_up_substracts ...
10543         (eliminate_plus_minus_pair): ... here.  Push operands that have no
10544         negative pair to plus_negates.
10545         (repropagate_negates, init_reassoc, fini_reassoc): Update.
10546
10547 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10548
10549         * doc/install.texi (Configuration): Move description of
10550         --enable-lto, --with-libelf*, --enable-gold from Java section to
10551         general section.
10552
10553         * doc/generic.texi (Working with declarations)
10554         (Function Properties, C and C++ Trees): Fix typos.
10555         * doc/sourcebuild.texi (Top Level): Likewise.
10556
10557 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
10558
10559         PR c/18624
10560         * tree.h (DECL_READ_P): Define.
10561         (struct tree_decl_common): Add decl_read_flag.
10562         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
10563         a set but not used warning.
10564         (merge_decls): Merge DECL_READ_P flag.
10565         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
10566         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
10567         * c-common.c (handle_used_attribute, handle_unused_attribute):
10568         Likewise.
10569         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
10570         New prototypes.
10571         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
10572         New functions.
10573         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
10574         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
10575         c_parser_binary_expression, c_parser_cast_expression,
10576         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
10577         Call default_function_array_read_conversion instead of
10578         default_function_array_conversion where needed.
10579         (c_parser_unary_expression, c_parser_conditional_expression,
10580         c_parser_postfix_expression_after_primary, c_parser_initelt):
10581         Likewise.  Call mark_exp_read where needed.
10582         (c_parser_statement_after_labels, c_parser_asm_operands,
10583         c_parser_typeof_specifier, c_parser_sizeof_expression,
10584         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
10585         where needed.
10586         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
10587         New.
10588         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
10589         (warn_unused_but_set_parameter): Default to warn_unused
10590         && extra_warnings.
10591         * doc/invoke.texi: Document -Wunused-but-set-variable and
10592         -Wunused-but-set-parameter.
10593
10594         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
10595         used count variable.
10596         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
10597         when operandN variables aren't used in the body of the expander
10598         or splitter.
10599         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
10600         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
10601         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
10602         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
10603         FOR_EACH_IMM_USE_ON_STMT): Likewise.
10604         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
10605         * tree.c (PROCESS_ARG): Likewise.
10606
10607 2010-04-07  Simon Baldwin  <simonb@google.com>
10608
10609         * diagnostic.h (diagnostic_override_option_index): New macro to
10610         set a diagnostic's option_index.
10611         * c-tree.h (c_cpp_error): Add warning reason argument.
10612         * opts.c (_warning_as_error_callback): New.
10613         (register_warning_as_error_callback): Store callback for
10614         warnings enabled via enable_warning_as_error.
10615         (enable_warning_as_error): Call callback, minor code tidy.
10616         * opts.h (register_warning_as_error_callback): Declare.
10617         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
10618         response to -Werror=.
10619         (c_common_init_options): Register warning_as_error_callback in opts.c.
10620         * common.opt: Add -Wno-cpp option.
10621         * c-common.c (struct reason_option_codes_t): Map cpp warning
10622         reason codes to gcc option indexes.
10623         * (c_option_controlling_cpp_error): New function, lookup the gcc
10624         option index for a cpp warning reason code.
10625         * (c_cpp_error): Add warning reason argument, call
10626         c_option_controlling_cpp_error for diagnostic_override_option_index.
10627         * doc/invoke.texi: Document -Wno-cpp.
10628
10629 2010-04-07  Richard Guenther  <rguenther@suse.de>
10630
10631         * ipa-reference.c (mark_load): Use get_base_address.
10632         (mark_store): Likewise.
10633
10634         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
10635         inserting GIMPLE_NOPs into the IL.
10636         * tree-ssa-structalias.c (get_constraint_for_component_ref):
10637         Explicitly strip handled components and indirect references.
10638
10639         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
10640         folding address expressions.
10641         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
10642         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
10643         operand_equal_p to compare decls.
10644         (ptr_deref_may_alias_decl_p): Likewise.
10645         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
10646         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
10647         Handle reversed comparison ops.
10648         * tree-sra.c (asm_visit_addr): Use get_base_address.
10649         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
10650         * ipa-reference.c (mark_address): Use get_base_address.
10651
10652 2010-04-07  Richard Guenther  <rguenther@suse.de>
10653
10654         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
10655         Propagate constants everywhere.
10656
10657 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
10658
10659         PR debug/43516
10660         * tree.c (MAX_INT_CACHED_PREC): Define.
10661         (nonstandard_integer_type_cache): New array.
10662         (build_nonstandard_integer_type): Cache results for precision
10663         <= MAX_INT_CACHED_PREC.
10664
10665 2010-04-07  Richard Guenther  <rguenther@suse.de>
10666
10667         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
10668         -fargument-noalias-global, -fargument-noalias-anything): Remove.
10669         * common.opt: Likewise.
10670         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
10671         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
10672         (nonoverlapping_memrefs_p): Likewise.
10673         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10674         * opts.c (common_handle_option): Handle OPT_fargument_alias,
10675         OPT_fargument_noalias, OPT_fargument_noalias_anything and
10676         OPT_fargument_noalias_global for backward compatibility.
10677
10678 2010-04-07  Richard Guenther  <rguenther@suse.de>
10679
10680         PR tree-optimization/43270
10681         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
10682         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
10683         * tree-ssa-pre.c (phi_translate_1): Adjust.
10684         (fully_constant_expression): Split out vn_reference handling to ...
10685         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
10686         Fold reads from constant strings.
10687         (vn_reference_lookup): Handle fully constant references.
10688         (vn_reference_lookup_pieces): Likewise.
10689         * Makefile.in (expmed.o-warn): Add -Wno-error.
10690
10691 2010-04-07  Martin Jambor  <mjambor@suse.cz>
10692
10693         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
10694
10695 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
10696
10697         PR driver/41594
10698         * gcc.c: Add -static-libstdc++ to list of recognized options.
10699
10700 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10701
10702         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
10703
10704 2010-04-07  Richard Guenther  <rguenther@suse.de>
10705
10706         PR middle-end/42617
10707         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
10708         bases build simple mem attributes to retain points-to information.
10709
10710 2010-04-07  Richard Guenther  <rguenther@suse.de>
10711
10712         PR middle-end/42617
10713         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
10714         preserve points-to related information.
10715
10716 2010-04-07  Richard Guenther  <rguenther@suse.de>
10717
10718         PR middle-end/42617
10719         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
10720         discard plain indirect references.
10721         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
10722         * tree.c (tree_nop_conversion): Likewise.
10723
10724 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
10725
10726         PR debug/43628
10727         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
10728
10729 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
10730
10731         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
10732         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
10733
10734 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
10735
10736         * tree-if-conv.c: Fix indentation and comments.
10737
10738 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
10739
10740         * tree-if-conv.c: Sort static functions in topological order.
10741
10742 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
10743
10744         * tree-if-conv.c: Fix indentation and comments.
10745
10746 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
10747
10748         PR middle-end/43519
10749         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
10750         lang_hooks.types.type_for_size instead of
10751         build_nonstandard_integer_type.
10752         When converting an unsigned type to signed, double its precision.
10753         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
10754         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
10755         (graphite_create_new_loop_guard): When ub + 1 wraps around,
10756         use lb <= ub.
10757
10758 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
10759
10760         PR middle-end/43519
10761         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
10762         POINTER_PLUS_EXPR for pointer types.
10763
10764 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
10765
10766         PR middle-end/43519
10767         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
10768         * graphite-clast-to-gimple.c: Include langhooks.h.
10769         (max_signed_precision_type): New.
10770         (max_precision_type): Takes two types as arguments.
10771         (precision_for_value): New.
10772         (precision_for_interval): New.
10773         (gcc_type_for_interval): New.
10774         (gcc_type_for_value): New.
10775         (gcc_type_for_clast_term): New.
10776         (gcc_type_for_clast_red): New.
10777         (gcc_type_for_clast_bin): New.
10778         (gcc_type_for_clast_expr): Split up into several functions.
10779         (gcc_type_for_clast_eq): Rewritten.
10780         (compute_bounds_for_level): New.
10781         (compute_type_for_level_1): New.
10782         (compute_type_for_level): New.
10783         (gcc_type_for_cloog_iv): Removed.
10784         (gcc_type_for_iv_of_clast_loop): Rewritten.
10785         (graphite_create_new_loop): Compute the lower and upper bound types
10786         with gcc_type_for_clast_expr.
10787         (graphite_create_new_loop_guard): Same.
10788         (find_cloog_iv_in_expr): Removed.
10789         (compute_cloog_iv_types_1): Removed.
10790         (compute_cloog_iv_types): Removed.
10791         (gloog): Do not call compute_cloog_iv_types.
10792         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
10793         GBB_CLOOG_IV_TYPES.
10794         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
10795         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
10796         (GBB_CLOOG_IV_TYPES): Removed.
10797
10798 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
10799
10800         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
10801         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
10802         (detect_commutative_reduction): Same.
10803
10804 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
10805
10806         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
10807         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
10808         argument.
10809         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
10810         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
10811         (rewrite_commutative_reductions_out_of_ssa): Same.
10812         * passes.c (execute_function_todo): Call verify_ssa for every pass
10813         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
10814         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
10815         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
10816         with an extra argument.
10817         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
10818         verify_ssa only when the extra argument is true.
10819         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
10820         with an extra argument.
10821         (tree_transform_and_unroll_loop): Same.
10822
10823 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
10824
10825         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
10826         for all the passes of the LNO having LOOP_CLOSED_SSA.
10827         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
10828         * tree-loop-distribution.c (pass_loop_distribution): Same.
10829         * tree-pass.h (TODO_verify_loops): Removed.
10830         * tree-ssa-loop.c (pass_tree_loop_init): Same.
10831         (pass_lim): Same.
10832         (pass_tree_unswitch): Same.
10833         (pass_predcom): Same.
10834         (pass_vectorize): Same.
10835         (pass_linear_transform): Same.
10836         (pass_graphite_transforms): Same.
10837         (pass_iv_canon): Same.
10838         (pass_complete_unroll): Same.
10839         (pass_complete_unrolli): Same.
10840         (pass_parallelize_loops): Same.
10841         (pass_loop_prefetch): Same.
10842         (pass_iv_optimize): Same.
10843
10844 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
10845
10846         PR middle-end/32824
10847         * passes.c (init_optimization_passes): Move pass_lim before
10848         pass_copy_prop and pass_dce_loop.
10849
10850 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
10851
10852         PR target/43667
10853         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
10854         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
10855         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
10856         MULTI_* defines for 4 argument vpermil2p* builtins.
10857
10858 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
10859
10860         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
10861         * config/i386/i386.c (x86_maybe_negate_const_int): New.
10862         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
10863         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
10864         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
10865         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
10866         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
10867         Use x86_maybe_negate_const_int to output insn mnemonic.
10868         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
10869         check from instruction predicate.  Update comments.
10870         * config/i386/sync.md (sync_add<mode>): Use
10871         x86_maybe_negate_const_int to output insn mnemonic.
10872
10873 2010-04-06  Jan Hubicka  <jh@suse.cz>
10874
10875         PR tree-optimization/42906
10876         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
10877         IGNORE_SELF argument.  Set visited_control_parents for fully
10878         processed BBs.
10879         (find_obviously_necessary_stmts): Update call of
10880         mark_control_dependent_edges_necessary.
10881         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
10882
10883 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
10884
10885         * config/i386/i386.md: Remove comment about 'e' and 'E'
10886         operand modifier.
10887
10888 2010-04-06  Richard Guenther  <rguenther@suse.de>
10889
10890         PR tree-optimization/43627
10891         * tree-vrp.c (extract_range_from_unary_expr): Widenings
10892         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
10893         not varying.
10894
10895 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
10896
10897         * BASE-VER: Change to 4.6.0.
10898
10899         PR target/43638
10900         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
10901         handling.
10902
10903 2010-04-06  Richard Guenther  <rguenther@suse.de>
10904
10905         PR middle-end/43661
10906         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
10907
10908 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10909
10910         * doc/invoke.texi (Optimize Options): Document that LTO
10911         won't remove object access purely due to incompatible
10912         declarations.
10913
10914 2010-04-04  Matthias Klose  <doko@ubuntu.com>
10915
10916         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
10917         Initialize variable.
10918
10919 2010-04-03  Richard Guenther  <rguenther@suse.de>
10920
10921         PR middle-end/42509
10922         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
10923         require a non-NULL MEM_OFFSET.
10924
10925 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
10926
10927         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
10928         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
10929         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
10930         config/alpha/predicates.md, config/arm/arm.md,
10931         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
10932         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
10933         config/darwin9.h, config/darwin.c, config/darwin.h,
10934         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
10935         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
10936         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
10937         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
10938         config/mips/mips.md, config/mn10300/mn10300.c,
10939         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
10940         config/rs6000/aix.h, config/rs6000/dfp.md,
10941         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
10942         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
10943         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
10944         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
10945         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
10946         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
10947         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
10948         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
10949         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
10950         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
10951         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
10952         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
10953         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
10954         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
10955         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
10956         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
10957         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
10958         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
10959         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
10960         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
10961         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
10962         opt-functions.awk, opth-gen.awk, params.def, passes.c,
10963         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
10964         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
10965         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
10966         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
10967         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
10968         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10969         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
10970         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
10971         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
10972         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
10973         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
10974         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
10975         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
10976         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
10977
10978 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10979
10980         PR other/43620
10981         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
10982         * aclocal.m4: Regenerate.
10983
10984 2010-04-02  Richard Guenther  <rguenther@suse.de>
10985
10986         PR tree-optimization/43629
10987         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
10988         if we have seen a constant value.
10989
10990 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
10991
10992         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
10993
10994 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
10995
10996         PR target/43469
10997         * arm.c (legitimize_tls_address): Adjust call to
10998         gen_tls_load_dot_plus_four.
10999         (arm_note_pic_base): New function.
11000         (arm_cannot_copy_insn_p): Use it.
11001         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11002         constraint.
11003
11004 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11005
11006         PR bootstrap/43531
11007
11008         Revert:
11009         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11010
11011         * Makefile.in ($(out_object_file)): Depend on
11012         gt-$(basename $(notdir $(out_file))).h.
11013
11014 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
11015
11016         * config.gcc (lm32-*-rtems*): Add t-lm32.
11017
11018 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
11019
11020         * config.gcc: Add lm32-*-rtems*.
11021         * config/lm32/rtems.h: New file.
11022
11023 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
11024
11025         PR target/42609
11026         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11027
11028 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
11029
11030         * dwarf2out.c (output_compilation_unit_header): For
11031         -gdwarf-4 use version 4 instead of version 3.
11032         (output_line_info): For version 4 and above emit additional
11033         maximum ops per insn header field.
11034         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11035
11036         * dwarf2out.c (is_c_family, is_java): Remove.
11037         (lower_bound_default): New function.
11038         (add_bound_info, gen_descr_array_type_die): Use it.
11039
11040 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
11041
11042         PR debug/43325
11043         * dwarf2out.c (gen_variable_die): Allow debug info for variable
11044         re-declaration when it happens in a function.
11045
11046 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
11047
11048         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11049         (cgraph_remove_function_insertion_hook): Same.
11050         (cgraph_call_function_insertion_hooks): Same.
11051
11052 2010-04-01  Richard Guenther  <rguenther@suse.de>
11053
11054         PR middle-end/43614
11055         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11056         and TREE_THIS_VOLATILE.
11057         (copy_ref_info): Likewise.
11058         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11059         * tree.c (build6_stat): Ignore side-effects of all but arg5
11060         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
11061         TARGET_MEM_REF.
11062
11063 2010-04-01  Richard Guenther  <rguenther@suse.de>
11064
11065         PR tree-optimization/43607
11066         * ipa-type-escape.c (check_call): Do not access non-existing
11067         arguments.
11068
11069 2010-04-01  Richard Guenther  <rguenther@suse.de>
11070
11071         PR middle-end/43602
11072         Revert
11073         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
11074                     Jack Howarth <howarth@bromo.med.uc.edu>
11075
11076         * tree-profile.c (tree_init_ic_make_global_vars): Make static
11077         variables TLS.
11078
11079 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11080
11081         * doc/install.texi (Prerequisites): Document libelf usability on
11082         IRIX 5/6 and Solaris 2.
11083         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11084         Update GNU as, GNU ld requirements.
11085         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11086         Document Sun Studio compiler download.
11087         Update and simplify as, ld recommendations.
11088         (Specific, *-*-solaris2.7): Note obsoletion, removal.
11089
11090 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11091
11092         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11093         with_tune_32 to pentium4.
11094
11095 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
11096
11097         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11098
11099 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11100
11101         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11102         obsoletion, removal.
11103         Update IDO URL.
11104         Document GNU as requirement.
11105         Update configure requirements.
11106         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11107         Recomment IRIX 6.5.18+.
11108         Document IDF/IDL requirement.
11109         Document GNU as requirement.
11110         Document GNU ld bootstrap failure.
11111         Remove freeware.sgi.com reference.
11112
11113 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11114
11115         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11116         UNIX V4.0, V5.0 obsoletion, removal.
11117         Remove --with-gc=simple reference.
11118         Update VM requirements during bootstrap.
11119         Remove -oldas bootstrap description.
11120         Update binutils reference.
11121         Remove comparison failure note.
11122
11123 2010-03-31  Richard Guenther  <rguenther@suse.de>
11124             Zdenek Dvorak  <ook@ucw.cz>
11125             Sebastian Pop  <sebastian.pop@amd.com>
11126
11127         PR middle-end/43464
11128         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11129         with multiple arguments.
11130         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11131
11132 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11133
11134         * graphite-dependences.c (print_pddr): Call print_pdr with an
11135         extra argument.
11136         * graphite-poly.c (debug_pdr): Add an extra argument for the
11137         verbosity level.
11138         (print_pdr): Same.
11139         (print_pbb_domain): Same.
11140         (print_pbb): Same.
11141         (print_scop_context): Same.
11142         (print_scop): Same.
11143         (print_cloog): Same.
11144         (debug_pbb_domain): Same.
11145         (debug_pbb): Same.
11146         (print_pdrs): Same.
11147         (debug_pdrs): Same.
11148         (debug_scop_context): Same.
11149         (debug_scop): Same.
11150         (debug_cloog): Same.
11151         (print_scop_params): Same.
11152         (debug_scop_params): Same.
11153         (print_iteration_domain): Same.
11154         (print_iteration_domains): Same.
11155         (debug_iteration_domain): Same.
11156         (debug_iteration_domains): Same.
11157         (print_scattering_function): Same.
11158         (print_scattering_functions): Same.
11159         (debug_scattering_function): Same.
11160         (debug_scattering_functions): Same.
11161         * graphite-poly.h (debug_pdr): Update declaration.
11162         (print_pdr): Same.
11163         (print_pbb_domain): Same.
11164         (print_pbb): Same.
11165         (print_scop_context): Same.
11166         (print_scop): Same.
11167         (print_cloog): Same.
11168         (debug_pbb_domain): Same.
11169         (debug_pbb): Same.
11170         (print_pdrs): Same.
11171         (debug_pdrs): Same.
11172         (debug_scop_context): Same.
11173         (debug_scop): Same.
11174         (debug_cloog): Same.
11175         (print_scop_params): Same.
11176         (debug_scop_params): Same.
11177         (print_iteration_domain): Same.
11178         (print_iteration_domains): Same.
11179         (debug_iteration_domain): Same.
11180         (debug_iteration_domains): Same.
11181         (print_scattering_function): Same.
11182         (print_scattering_functions): Same.
11183         (debug_scattering_function): Same.
11184         (debug_scattering_functions): Same.
11185
11186 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11187
11188         * graphite-poly.c (print_scattering_function_1): New.
11189         (print_scattering_function): Call it.
11190         (print_scop_params): Remove spaces at the end of lines.
11191         (print_cloog): New.
11192         (debug_cloog): New.
11193         * graphite-poly.h (print_cloog): Declared.
11194         (debug_cloog): Declared.
11195
11196 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11197
11198         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11199         in loop->header.
11200         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11201         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11202         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11203         to switch between adding the IV bump in loop->latch or in loop->header.
11204
11205 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
11206
11207         * graphite-poly.c (print_scattering_function): Pretty print following
11208         the scoplib format.
11209         (print_pdr): Same.
11210         (print_pbb_domain): Same.
11211         (dump_gbb_cases): Same.
11212         (dump_gbb_conditions): Same.
11213         (print_pdrs): Same.
11214         (print_pbb): Same.
11215         (print_scop_params): Same.
11216         (print_scop_context): Same.
11217         (print_scop): Same.
11218         (print_pbb_body): New.
11219         (lst_indent_to): New.
11220         (print_lst): Start new lines with a #.
11221         * graphite-poly.h (pbb_bb): New.
11222         (pbb_index): Use pbb_bb.
11223         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11224         disjuncts.
11225         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11226
11227 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
11228
11229         * dwarf2out.c (size_of_die): For -gdwarf-4 use
11230         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11231         and 0 instead of 1 for dw_val_class_flag.
11232         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11233         dw_val_class_range_list, dw_val_class_loc_list,
11234         dw_val_class_lineptr and dw_val_class_macptr, use
11235         DW_FORM_flag_present for dw_val_class_flag and
11236         DW_FORM_exprloc for dw_val_class_loc.
11237         (output_die): For -gdwarf-4 print dw_val_class_loc
11238         size as uleb128 instead of 1 or 2 bytes and don't print
11239         anything for dw_val_class_flag.
11240
11241         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11242         instead of cselib_lookup following by tweaking locs->setting_insn.
11243
11244         PR bootstrap/43596
11245         * cselib.c (cselib_process_insn): Clear cselib_current_insn
11246         even before returning from label, setjmp call or volatile asm
11247         handling.
11248
11249 2010-03-31  Richard Guenther  <rguenther@suse.de>
11250
11251         PR middle-end/43600
11252         * cgraphunit.c (cgraph_output_in_order): Do not allocate
11253         temporary data on stack.
11254
11255 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11256
11257         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11258         (PUSHSECTION_ASM_OP): Remove.
11259         (POPSECTION_ASM_OP): Remove.
11260         (PUSHSECTION_FORMAT): Remove.
11261         * config/sol2.h (PUSHSECTION_FORMAT): Define.
11262         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11263         * config/sol2.c (solaris_output_init_fini): Use it.
11264
11265 2010-03-31  Jie Zhang  <jie@codesourcery.com>
11266
11267         PR 43574
11268         * opt-functions.awk (var_type_struct): Use signed char type
11269         for simple variables.
11270
11271 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11272
11273         * config/sol2.c: Include output.h.
11274         (solaris_assemble_visibility): New function.
11275         * config/t-sol2 (sol2.o): Add output.h dependency.
11276         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11277         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11278         Redefine.
11279
11280 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
11281
11282         PR target/43580
11283         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11284         V2SImode or XFmode on PRE_DEC.
11285
11286         PR debug/43557
11287         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11288         BLKmode.
11289
11290 2010-03-31  Jie Zhang  <jie@codesourcery.com>
11291
11292         PR 43562
11293         * reload.h (caller_save_initialized_p): Declare.
11294         * toplev.c (backend_init_target): Don't call
11295         init_caller_save but set caller_save_initialized_p to false.
11296         * caller-save.c (caller_save_initialized_p): Define.
11297         (init_caller_save): Check caller_save_initialized_p.
11298         * ira.c (ira): Call init_caller_save if flag_caller_saves.
11299
11300 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11301
11302         PR target/39048
11303         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11304         and soft-fp/t-softfp to tmake_file.
11305         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11306         (LIBGCC2_TF_CEXT): Define.
11307         (TF_SIZE): Define.
11308
11309 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
11310
11311         PR debug/42977
11312         * cselib.c (n_useless_values): Document handling of debug locs.
11313         (n_useless_debug_values, n_debug_values): New variables.
11314         (new_elt_loc_list): Don't add to debug values, keep count.
11315         (promote_debug_loc): New.
11316         (cselib_reset_table): Zero new variables.
11317         (entry_and_rtx_equal_p): Promote debug locs.
11318         (discard_useless_locs): Increment n_useless_debug_values for
11319         debug values.
11320         (remove_useless_values): Adjust n_useless_values and n_debug_values
11321         with n_useless_debug_values.
11322         (add_mem_for_addr): Promote debug locs.
11323         (cselib_lookup_mem): Likewise.
11324         (cselib_lookup_addr): Renamed to...
11325         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
11326         (cselib_log_lookup): ... this.  Turn into...
11327         (cselib_lookup_addr): ... new wrapper.
11328         (cselib_lookup_from_insn): New.
11329         (cselib_invalidate_regno): Increment n_useless_debug_values for
11330         debug values.
11331         (cselib_invalidate_mem): Likewise.
11332         (cselib_process_insn): Take n_deleted and n_debug_values into
11333         account to guard remove_useless_value call.
11334         (cselib_finish): Zero n_useless_debug_values.
11335         * cselib.h (cselib_lookup_from_insn): Declare.
11336         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11337         (sched_analyze_2): Likewise.
11338
11339 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
11340
11341         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11342         functions.
11343         (adjust_mems): Replace narrowing SUBREG of expression containing
11344         just PLUS, MINUS, MULT and ASHIFT of registers and constants
11345         with operations in the narrower mode.
11346
11347         PR debug/43593
11348         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11349         regs_invalidated_by_call instead all call_used_reg_set registers.
11350
11351 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
11352
11353         PR middle-end/43430
11354         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11355         pointer comparisons with types_compatible_p.
11356         * tree-vect-stmts.c (vectorizable_call): Same.
11357         (vectorizable_condition): Same.
11358
11359 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11360
11361         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11362         stack check if the mask would be zero.
11363
11364 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
11365             Jack Howarth <howarth@bromo.med.uc.edu>
11366
11367         * tree-profile.c (tree_init_ic_make_global_vars): Make static
11368         variables TLS.
11369
11370 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
11371
11372         PR other/25232
11373         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
11374         and __unordtf2.
11375         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11376         Include ___unordxf2 and ___unordtf2.
11377         * config/i386/libgcc-glibc.ver: Do not define inheritance from
11378         GCC_4.4.0 here.
11379
11380 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
11381
11382         * config/lm32/t-lm32: New file.
11383         * config.gcc: Use the above file when targetting lm32.
11384
11385 2010-03-28  Duncan Sands  <baldrick@free.fr>
11386
11387         * Makefile.in (PLUGIN_HEADERS): Add except.h.
11388
11389 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
11390
11391         PR middle-end/43431
11392         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11393         Improve vectorization cost model diagnostic.
11394
11395 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
11396
11397         PR middle-end/43436
11398         * tree-vect-data-refs.c (vect_analyze_data_refs): When
11399         compute_data_dependences_for_loop returns false, early exit
11400         and output an extra diagnostic for the failed data reference
11401         analysis.
11402
11403 2010-03-29  Richard Guenther  <rguenther@suse.de>
11404
11405         PR tree-optimization/43560
11406         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11407         (can_sm_ref_p): Treat stores to readonly locations as trapping.
11408
11409 2010-03-29  Jie Zhang  <jie@codesourcery.com>
11410
11411         PR 43564
11412         * toplev.c (process_options): Set optimization_default_node
11413         and optimization_current_node.
11414         * opts.c (decode_options): Don't set optimization_default_node
11415         and optimization_current_node.
11416
11417 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
11418
11419         * config/rtems.h: Abandon -qrtems_debug.
11420
11421 2010-03-28  Jan Hubicka  <jh@suse.cz>
11422
11423         PR tree-optimization/43505
11424         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11425         map should not be copied.
11426
11427 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11428
11429         PR middle-end/41674
11430         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11431         cdtors, set DECL_PRESERVE_P.
11432         * ipa.c (cgraph_externally_visible_p): Return true if declaration
11433         should be preseved.
11434
11435 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
11436
11437         PR tree-optimization/43528
11438         * stor-layout.c (place_field): Check that constant fits into
11439         unsigned HWI when skipping calculation of MS bitfield layout.
11440
11441 2010-03-27  Jan Hubicka  <jh@suse.cz>
11442
11443         PR middle-end/43391
11444         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11445         notice_global_symbol work.
11446
11447 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
11448
11449         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11450         instead of dwarf2out_decl.
11451         (struct var_loc_node): Remove section_label field.
11452         (dwarf2out_function_decl): New function.
11453         (dwarf2out_var_location): Don't set section_label field.
11454         (dwarf2out_begin_function): Don't empty decl_loc_table here.
11455
11456 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11457
11458         PR tree-optimization/43544
11459         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11460         First argument for builtin vectorized function hook is now a
11461         tree to be able to distinguish between machine specific and
11462         standard builtins.
11463         * targhooks.c (default_builtin_vectorized_function): Ditto.
11464         * targhooks.h (default_builtin_vectorized_function): Ditto.
11465         * target.h (struct gcc_target): Ditto.
11466         * tree-vect-stmts.c (vectorizable_function): Ditto.
11467         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
11468         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11469         Ditto.
11470
11471 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
11472
11473         PR c/43381
11474         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
11475         nested binding iff it is a FUNCTION_DECL.
11476         (store_parm_decls_newstyle): Pass nested=true to bind for
11477         FUNCTION_DECLs amongst parameters.
11478
11479 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
11480
11481         * var-tracking.c (vt_expand_loc_callback): Don't run
11482         cselib_expand_value_rtx_cb in dummy mode if
11483         cselib_dummy_expand_value_rtx_cb returned false.
11484
11485         * var-tracking.c (emit_note_insn_var_location): For one part
11486         notes with offset 0, don't add EXPR_LIST around the location.
11487         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
11488         add_location_or_const_value_attribute): Adjust for that change.
11489
11490         PR debug/43540
11491         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
11492         into first operand and location into second.
11493         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
11494         dw_cfi_oprnd_loc for DW_CFA_expression.
11495         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
11496         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
11497         assume first argument is regnum and second argument is location.
11498
11499 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
11500
11501         PR target/42113
11502         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
11503         of scratch register to DImode.  Split to DImode comparison operator.
11504         Use SImode subreg of scratch register in the multiplication.
11505         (*cmp_sadd_sidi): Ditto.
11506         (*cmp_ssub_si): Ditto.
11507         (*cmp_ssub_sidi): Ditto.
11508
11509 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
11510
11511         PR target/43524
11512         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
11513         Remove invalid assert and wrong comment.
11514
11515 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
11516
11517         PR debug/43516
11518         * flags.h (final_insns_dump_p): New extern.
11519         * final.c (final_insns_dump_p): New variable.
11520         (rest_of_clean_state): Set it before -fdump-final-insns=
11521         dumping, clear afterwards.
11522         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
11523         MEM_ALIAS_SET on MEMs.
11524
11525 2010-03-26  David S. Miller  <davem@davemloft.net>
11526
11527         * configure.ac: Fix sparc GOTDATA_OP bug check.
11528         * configure: Rebuild.
11529
11530 2010-03-26  Alan Modra  <amodra@gmail.com>
11531
11532         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
11533
11534 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11535
11536         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
11537         TLS_SECTION_ASM_FLAG.
11538
11539 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
11540
11541         PR bootstrap/43511
11542         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
11543         Clear first_function_block_is_cold.
11544
11545         PR c/43385
11546         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
11547         argument if the argument is truth_value_p.
11548
11549 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11550
11551         * config/rs6000/constraints.md: Update copyright year for my changes.
11552
11553         PR target/43484
11554         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
11555         used in reg+reg addressing, swap registers.
11556
11557 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
11558
11559         PR debug/43293
11560         * target.h (struct gcc_target): Add code_end hook.
11561         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
11562         if not yet defined.
11563         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
11564         * toplev.c (compile_file): Call targetm.asm_out.code_end
11565         hook before unwind info/debug info output.
11566         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
11567         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
11568         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11569         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
11570         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11571         * config/i386/i386.c (ix86_file_end): Renamed to...
11572         (ix86_code_end): ... this.  Make static.  Don't call
11573         file_end_indicate_exec_stack.  Emit unwind info using
11574         final_start_function/final_end_function.
11575         (darwin_x86_file_end): Remove.
11576         (TARGET_ASM_CODE_END): Define.
11577         * config/i386/i386.h (TARGET_ASM_FILE_END,
11578         NEED_INDICATE_EXEC_STACK): Don't define.
11579         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
11580         (TARGET_ASM_FILE_END): Define to darwin_file_end.
11581         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
11582         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
11583
11584         PR target/43498
11585         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
11586         at the beginning and final_end_function at the end.
11587         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11588
11589 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11590
11591         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
11592         and Sun as TLS syntax.
11593         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
11594         * configure: Regenerate.
11595         * config.in: Regenerate.
11596         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
11597         (default_elf_asm_named_section): Use it.
11598         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
11599         (i386_output_dwarf_dtprel): Likewise.
11600         (output_addr_const_extra): Likewise.
11601         (output_pic_addr_const): Lowercase @GOTTPOFF.
11602         (output_addr_const_extra): Likewise.
11603         (output_pic_addr_const): Lowercase @GOTNTPOFF.
11604         (output_addr_const_extra): Likewise.
11605         (output_pic_addr_const): Lowercase @INDNTPOFF.
11606         (output_addr_const_extra): Likewise.
11607         (output_pic_addr_const): Lowercase @NTPOFF.
11608         (output_addr_const_extra): Likewise.
11609         (output_pic_addr_const): Lowercase @TPOFF.
11610         (output_addr_const_extra): Likewise.
11611         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
11612         (*tls_global_dynamic_64): Likewise.
11613         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
11614         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
11615
11616         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
11617         (ASM_OUTPUT_TLS_COMMON): Use it.
11618         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
11619
11620         PR target/38118
11621         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
11622         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
11623         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
11624         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
11625         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11626         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
11627
11628 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11629
11630         * config/i386/i386.c (override_options): Don't accept
11631         -mtls-dialect=sun any longer.
11632         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
11633         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
11634         (*tls_local_dynamic_base_32_sun): Likewise.
11635         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
11636
11637 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
11638
11639         PR debug/43508
11640         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11641         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
11642
11643         PR debug/43479
11644         * ira.c (adjust_cleared_regs): New function.
11645         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
11646
11647         PR debug/19192
11648         PR debug/43479
11649         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
11650         from gimple_block.
11651         * expr.c (expand_expr_real): Restore previous
11652         curr_insn_source_location and curr_insn_block after
11653         expand_expr_real_1 call.
11654         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
11655         instead of expand_expr_real_1.
11656
11657 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
11658
11659         PR rtl-optimization/43413
11660         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
11661         hard regs too.
11662
11663 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
11664
11665         PR target/43348
11666         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
11667         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
11668
11669 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11670
11671         * config/i386/i386.c (ix86_target_string): Add -mfma.
11672         Fix a typo in comment.
11673
11674 2010-03-22  Mike Stump  <mikestump@comcast.net>
11675
11676         PR target/23071
11677         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
11678         Don't overly align based upon packed packed fields.
11679
11680 2010-03-22  Jason Merrill  <jason@redhat.com>
11681
11682         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
11683         Use () rather than [], and move before the element type.
11684
11685 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11686
11687         * doc/configfiles.texi (Configuration Files): Removed
11688         fixinc/Makefile*, intl/Makefile.*.
11689         * doc/makefile.texi: Fixed markup. Abstract from version
11690         control system used.
11691         (Makefile): Removed obsolete gcc/java/parse.y example.
11692         * doc/sourcebuild.texi: Likewise.
11693         (Top Level): Added config, gnattools, libdecnumber, libgcc,
11694         libgomp, libssp.  Removed fastjar.
11695         (Miscellaneous Docs): Clarify location.
11696         Added COPYING3, COPYING3.LIB.
11697         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
11698
11699 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11700
11701         PR target/38085
11702         * config/i386/i386.c (x86_function_profiler)
11703         [!NO_PROFILE_COUNTERS]: Fix typo.
11704         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
11705         instead of callq.
11706
11707 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
11708             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11709
11710         * doc/sourcebuild.texi (Test Directives): Split into six
11711         subsections, with most of the current text in new subsections
11712         Directives, Selectors, and Final Actions.
11713         (Directives): Split list of test directives into multiple
11714         subsubsections.
11715         (Selectors): Describe use and syntax of selectors.
11716         (Effective-Target Keywords): Describe all existing keywords.
11717         (Add Options): Describe features for dg-add-options.
11718         (Require Support): Describe variants of dg-require-support.
11719         (Final Actions): Describe commands to use in dg-final.
11720
11721 2010-03-22  Michael Matz  <matz@suse.de>
11722
11723         PR middle-end/43475
11724         * recog.c (validate_replace_rtx_group): Replace also in
11725         REG_EQUAL and REG_EQUIV notes.
11726
11727 2010-03-22  Richard Guenther  <rguenther@suse.de>
11728
11729         PR tree-optimization/43390
11730         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
11731         sure vector extracts are type correct.
11732
11733 2010-03-22  Richard Guenther  <rguenther@suse.de>
11734
11735         PR middle-end/40106
11736         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
11737         x * sqrt (x) even when optimizing for size if the target
11738         has native support for sqrt.
11739
11740 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
11741
11742         * varasm.c (make_decl_rtl_for_debug): Also clear
11743         flag_mudflap for the duration of make_decl_rtl call.
11744
11745         PR debug/43443
11746         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
11747         locs from preserved VALUEs.
11748
11749 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11750
11751         PR middle-end/42718
11752         * pa.md (movmemsi): Set align to one if zero.
11753         (movmemdi): Likewise.
11754
11755 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
11756
11757         PR target/42321
11758         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
11759         with their corresponding prologue pushes.
11760
11761 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
11762
11763         PR target/43156
11764         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
11765         at the begining or end.
11766         (spu_expand_epilogue): Likewise.
11767
11768 2010-03-20  Richard Guenther  <rguenther@suse.de>
11769
11770         PR rtl-optimization/43438
11771         * combine.c (make_extraction): Properly zero-/sign-extend an
11772         extraction of the low part of a CONST_INT.  Also handle
11773         CONST_DOUBLE.
11774
11775 2010-03-19  Mike Stump  <mikestump@comcast.net>
11776
11777         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
11778         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
11779         (override_options): Use SUBTARGET32_DEFAULT_CPU.
11780
11781 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
11782
11783         PR c/43211
11784         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
11785         an error.
11786
11787 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
11788
11789         PR rtl-optimization/42258
11790         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
11791         use that may match DEF.
11792
11793         PR target/40697
11794         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
11795         the cost of loading the constant rather than assuming
11796         COSTS_N_INSNS (1).
11797         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
11798         outer code is AND, do the same tests as the andsi3 expander and
11799         return COSTS_N_INSNS (1) if and is cheap.
11800
11801         * optabs.c (avoid_expensive_constant): Fix formatting.
11802
11803 2010-03-19  Michael Matz  <matz@suse.de>
11804
11805         PR c++/43116
11806         * attribs.c (decl_attributes): When rebuilding a function pointer
11807         type use the same qualifiers as the original pointer type.
11808
11809 2010-03-19  Martin Jambor  <mjambor@suse.cz>
11810
11811         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
11812         and is_gimple_ip_invariant_address.
11813
11814 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11815
11816         Revert
11817         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11818
11819         * config/arm/arm.c (arm_override_options): Turn off
11820         flag_dwarf2_cfi_asm for AAPCS variants.
11821
11822 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11823
11824         PR target/43399
11825         * config/arm/arm.c (emit_multi_reg_push): Update comments.
11826         Use PRE_MODIFY instead of PRE_DEC.
11827         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
11828         (vfp_emit_fstmd): Likewise.
11829
11830 2010-03-19  Michael Matz  <matz@suse.de>
11831
11832         PR target/43305
11833         * builtins.c (expand_builtin_interclass_mathfn,
11834         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
11835         if that fails.
11836
11837 2010-03-19  Richard Guenther  <rguenther@suse.de>
11838
11839         PR tree-optimization/43415
11840         * tree-ssa-pre.c (phi_translate): Split out worker to ...
11841         (phi_translate_1): ... this.
11842         (phi_translate): Move all caching here.  Cache all NARY
11843         and REFERENCE translations.
11844
11845 2010-03-19  David S. Miller  <davem@davemloft.net>
11846
11847         With help from Eric Botcazou.
11848         * config/sparc/sparc.c: Include dwarf2out.h.
11849         (emit_pic_helper): Delete.
11850         (pic_helper_symbol_name): Delete.
11851         (pic_helper_emitted_p): Delete.
11852         (pic_helper_needed): New.
11853         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
11854         (get_pc_thunk_name): New.
11855         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
11856         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
11857         Set pic_helper_needed to true.  Don't call emit_pic_helper.
11858         (sparc_expand_prologue): Update load_pic_register call.
11859         (sparc_output_mi_thunk): Likewise.
11860         (sparc_file_end): Emit a hidden comdat symbol for the PIC
11861         thunk if possible.  Output CFI information as needed.
11862
11863 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11864             Jack Howarth <howarth@bromo.med.uc.edu>
11865
11866         PR target/36399
11867         * config/i386/i386.h: Fix ABI on darwin x86-32.
11868
11869 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
11870
11871         * tree.h: Declare make_decl_rtl_for_debug.
11872         * varasm.c (make_decl_rtl_for_debug): New.
11873         * dwarf2out.c (rtl_for_decl_location): Call it.
11874         * cfgexpand.c (expand_debug_expr): Call it.
11875
11876 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
11877
11878         PR bootstrap/43399
11879         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
11880         mem_mode.
11881
11882         PR bootstrap/43403
11883         * var-tracking.c (vt_init_cfa_base): Do nothing if
11884         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
11885
11886 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
11887
11888         PR debug/42873
11889         * var-tracking.c (canonicalize_vars_star): New.
11890         (dataflow_post_merge_adjust): Use it.
11891
11892 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
11893
11894         PR debug/43058
11895         * var-tracking.c (non_suitable_const): New function.
11896         (add_uses): For DEBUG_INSNs with constants, don't record any
11897         value, instead just the constant value itself.
11898         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
11899         is not VAR_LOC_UNKNOWN_P, set var to the constant.
11900         (emit_notes_in_bb): Likewise.
11901         (emit_note_insn_var_location): For onepart variables if
11902         cur_loc is a VOIDmode constant, use DECL_MODE.
11903
11904 2010-03-18  Martin Jambor  <mjambor@suse.cz>
11905
11906         PR middle-end/42450
11907         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
11908         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
11909         all non-clones.  Moved call redirection...
11910         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
11911         (cgraph_materialize_all_clones): Dispose of all
11912         combined_args_to_skip bitmaps.
11913         (verify_cgraph_node): Do not check for edges pointing to wrong
11914         nodes in inline clones.
11915         * tree-inline.c (copy_bb): Call
11916         cgraph_redirect_edge_call_stmt_to_callee.
11917         * ipa.c (cgraph_remove_unreachable_nodes): Call
11918         cgraph_node_remove_callees even when there are used clones.
11919
11920 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
11921
11922         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
11923
11924 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
11925
11926         PR target/43383
11927         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
11928         for 32bit.
11929
11930 2010-03-18  Michael Matz  <matz@suse.de>
11931
11932         PR middle-end/43419
11933         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
11934         into sqrt(x) if we need to preserve signed zeros.
11935
11936 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
11937             Eric Botcazou  <ebotcazou@adacore.com>
11938
11939         PR rtl-optimization/43360
11940         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
11941         note if we don't know its invariant status.
11942
11943 2010-03-18  Michael Matz  <matz@suse.de>
11944
11945         PR tree-optimization/43402
11946         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
11947         PHI chains of ssa names registered for update.
11948
11949 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
11950
11951         PR target/42427
11952         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
11953         non-offsettable and pre_modify update addressing.
11954         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
11955         and "2" alternatives "#".
11956         (*movdd_softfloat32): Make all alternatives "#";
11957         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
11958         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
11959         (*movdf_softfloat32): Make all alternatives "#";
11960         (movdi): Use the new DIFD mode iterator to create a common splitter
11961         for movdi, movdf and movdd patterns.
11962
11963 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
11964
11965         * common.opt (dumpdir): Remove redundant tab.
11966
11967 2010-03-17  Martin Jambor  <mjambor@suse.cz>
11968
11969         PR tree-optimization/43347
11970         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
11971         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
11972
11973 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
11974
11975         PR rtl-optimization/42216
11976         * regrename.c (create_new_chain): New function, broken out from...
11977         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
11978         appending a use to an empty chain.
11979         (build_def_use): Remove previous changes that convert OP_INOUT to
11980         OP_OUT operands; instead detect the case where an OP_INOUT operand
11981         uses a previously untracked register and create an empty chain for it.
11982
11983 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11984
11985         * doc/extend.texi (Function Attributes): Rewrite unfinished
11986         sentence in ms_abi documentation.
11987
11988 2010-03-17  Alan Modra  <amodra@gmail.com>
11989
11990         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
11991         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
11992         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
11993         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
11994
11995 2010-03-16  Richard Henderson  <rth@redhat.com>
11996
11997         PR middle-end/43365
11998         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
11999         (lower_try_finally): Save and restore eh_seq around the expansion
12000         of the try-finally.
12001
12002 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
12003
12004         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12005         statements before splitting block.
12006
12007 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12008
12009         * doc/sourcebuild.texi (Testsuites): Fix markup.
12010         Use pathnames relative to gcc/testsuite.
12011         (Test Directives): Move description of how timeout is determined.
12012         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12013         (C Tests): Correct gcc.misc-tests directory.
12014         Framework tests now live in gcc.test-framework.
12015
12016 2010-03-16  Richard Guenther  <rguenther@suse.de>
12017
12018         PR middle-end/43379
12019         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12020         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12021
12022 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
12023             Alexandre Oliva  <aoliva@redhat.com>
12024
12025         PR tree-optimization/42917
12026         * lambda-code.c (remove_iv): Skip debug statements.
12027         (lambda_loopnest_to_gcc_loopnest): Likewise.
12028         (not_interesting_stmt): Debug statements are not interesting.
12029
12030 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
12031
12032         PR debug/43051
12033         PR debug/43092
12034         * cselib.c (cselib_preserve_constants,
12035         cfa_base_preserved_val): New static variables.
12036         (preserve_only_constants): New function.
12037         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12038         clear its REG_VALUES.  If cselib_preserve_constants, don't
12039         empty the whole hash table, but preserve there VALUEs with constants,
12040         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12041         (cselib_preserve_cfa_base_value): New function.
12042         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12043         (cselib_init): Change argument to int bitfield.  Set
12044         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12045         is in it.
12046         (cselib_finish): Clear cselib_preserve_constants and
12047         cfa_base_preserved_val.
12048         * cselib.h (enum cselib_record_what): New enum.
12049         (cselib_init): Change argument to int.
12050         (cselib_preserve_cfa_base_value): New prototype.
12051         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12052         * dse.c (dse_step1): Likewise.
12053         * cfgcleanup.c (thread_jump): Likewise.
12054         * sched-deps.c (sched_analyze): Likewise.
12055         * gcse.c (local_cprop_pass): Likewise.
12056         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12057         If FN is non-NULL, call the callback always and whenever it returns
12058         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
12059         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12060         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12061         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12062         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12063         * var-tracking.c: Include recog.h.
12064         (bb_stack_adjust_offset): Remove.
12065         (vt_stack_adjustments): Don't call it, instead just gather the
12066         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12067         (adjust_stack_reference): Remove.
12068         (compute_cfa_pointer): New function.
12069         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12070         (struct adjust_mem_data): New type.
12071         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12072         functions.
12073         (get_address_mode): New function.
12074         (replace_expr_with_values): Use it.
12075         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12076         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
12077         (adjust_sets): Remove.
12078         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12079         Use get_address_mode.
12080         (get_adjusted_src): Remove.
12081         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
12082         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
12083         (add_with_sets): Don't call adjust_sets.
12084         (fp_setter, vt_init_cfa_base): New functions.
12085         (vt_initialize): Change return type to bool.  Move most of pool etc.
12086         initialization to the beginning of the function from end.  Pass
12087         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12088         If !frame_pointer_needed, call vt_stack_adjustment before mos
12089         vector is filled, call vt_init_cfa_base if argp/framep has been
12090         eliminated to sp.  If frame_pointer_needed and argp/framep has
12091         been eliminated to hard frame pointer, set
12092         hard_frame_pointer_adjustment and call vt_init_cfa_base after
12093         encountering fp setter in the prologue.  For MO_ADJUST, call
12094         log_op_type before pusing the op into mos vector, not afterwards.
12095         Call adjust_insn before cselib_process_insn/add_with_sets,
12096         call cancel_changes (0) afterwards.
12097         (variable_tracking_main_1): Adjust for vt_initialize calling
12098         vt_stack_adjustments and returning whether it succeeded or not.
12099
12100 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
12101
12102         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12103         debug statements.
12104
12105 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
12106
12107         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12108         has been set.
12109         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12110         drap_reg has not been set.
12111
12112 2010-03-15  Michael Matz  <matz@suse.de>
12113
12114         PR middle-end/43300
12115         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12116         use it to expand block copies.
12117         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12118         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12119         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12120
12121 2010-03-15  Richard Guenther  <rguenther@suse.de>
12122
12123         PR tree-optimization/43367
12124         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12125         elimination check.
12126
12127 2010-03-15  Richard Guenther  <rguenther@suse.de>
12128
12129         PR tree-optimization/43317
12130         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12131
12132 2010-03-15  Martin Jambor  <mjambor@suse.cz>
12133
12134         PR tree-optimization/43141
12135         * tree-sra.c (create_abstract_origin): New function.
12136         (modify_function): Call create_abstract_origin.
12137
12138 2010-03-15  Chris Demetriou  <cgd@google.com>
12139
12140         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12141         wasn't copied.
12142
12143 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12144
12145         PR middle-end/43354
12146         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12147         call insert_out_of_ssa_copy for default definitions.
12148
12149 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12150
12151         * graphite-clast-to-gimple.c (my_long_long): Defined.
12152         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12153         * graphite-sese-to-poly.c (my_long_long): Defined.
12154         (scop_ivs_can_be_represented): Use it.
12155
12156 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12157
12158         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12159         graphite-max-bbs-per-function, and loop-block-tile-size.
12160         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12161         with "maximum".
12162         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12163
12164 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12165
12166         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12167         forward declaration.
12168         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12169         (add_upper_bounds_from_estimated_nit): New.
12170         (build_loop_iteration_domains): Use it.
12171
12172 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12173
12174         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12175
12176 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12177
12178         PR middle-end/43306
12179         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12180         should be an INTEGER_CST.  Also handle CASE_CONVERT.
12181
12182 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12183
12184         * graphite.c (graphite_initialize): To bound the number of bbs per
12185         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12186         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12187         * doc/invoke.texi: Document it.
12188
12189 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12190
12191         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12192         * graphite-sese-to-poly.h (build_poly_scop): Same.
12193
12194 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
12195
12196         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12197         the number of parameters in the scop.  Use as an upper bound
12198         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12199         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12200         * doc/invoke.texi: Document it.
12201
12202 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
12203
12204         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12205         * doc/c-tree.texi: Remove.
12206         * doc/generic.texi: Merge c-tree.texi here.
12207         * doc/gccint.texi (Trees): Remove menu entry.
12208         (c-tree.texi): Remove @include.
12209         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12210         * doc/languages.texi (Reading RTL): Ditto.
12211
12212 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
12213
12214         PR target/42869
12215         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12216
12217 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12218
12219         PR middle-end/42431
12220         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12221         code added to work around reload clobbering CONST insns.
12222
12223 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
12224
12225         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12226         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12227         (cselib_preserve_only_values): Remove retain argument, don't
12228         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12229         * cselib.h (cselib_preserve_only_values): Remove retain argument.
12230         * var-tracking.c (micro_operation): Move insn field before union.
12231         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12232         (struct variable_tracking_info_def): Remove n_mos field, change
12233         mos into a vector of micro_operations.
12234         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12235         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12236         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12237         changing into a vector.
12238         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
12239         come before all other uops generated by add_stores.
12240         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12241         argument removal.
12242         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
12243         a vector.  Run just one pass over the bbs instead of separate counting
12244         and computation phase.
12245         (vt_finalize): Free VTI (bb)->mos vector instead of array.
12246
12247         PR debug/43329
12248         * tree-inline.c (remap_decls): Put old_var rather than origin_var
12249         into *nonlocalized_list vector.
12250         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12251         even if origin is non-NULL.
12252         (gen_variable_die): Likewise.
12253         (process_scope_var): Don't change origin.
12254         (gen_decl_die): Likewise.
12255         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12256         before adding new edges instead of after it, fix moving over
12257         debug stmts.
12258
12259 2010-03-11  David S. Miller  <davem@davemloft.net>
12260
12261         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12262         of four.
12263         * configure: Rebuild.
12264
12265 2010-03-11  Martin Jambor  <mjambor@suse.cz>
12266
12267         PR tree-optimization/43257
12268         * tree.c (assign_assembler_name_if_neeeded): New function.
12269         (free_lang_data_in_cgraph): Assembler name assignment moved to the
12270         above new function.
12271         * tree.h (assign_assembler_name_if_neeeded): Declare.
12272         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12273         the function if needed.
12274
12275 2010-03-11  Chris Demetriou  <cgd@google.com>
12276
12277         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12278         include/stdint-gcc.h, and include/stdint.h world-readable.
12279
12280 2010-03-11  Richard Guenther  <rguenther@suse.de>
12281
12282         PR tree-optimization/43255
12283         * tree-vrp.c (process_assert_insertions_for): Do not insert
12284         asserts for trivial conditions.
12285
12286 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12287
12288         PR tree-optimization/43280
12289         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12290         generation.  Move calculation of size out of the if branch.
12291         (find_bswap): Modify compare number generation.
12292
12293 2010-03-11  Richard Guenther  <rguenther@suse.de>
12294
12295         PR lto/43200
12296         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12297         (input_gimple_stmt): Fixup handled component types during
12298         operand read.  Also fix up decls in ADDR_EXPRs.
12299
12300 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
12301
12302         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12303         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12304
12305 2010-03-10  Jan Hubicka  <jh@suse.cz>
12306
12307         PR c/43288
12308         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12309         * varasm.c (get_variable_section): Don't do that here...
12310         (make_decl_rtl): ... and here.
12311         (do_assemble_alias): Produce decl RTL.
12312         (assemble_alias): Likewise.
12313
12314 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
12315
12316         PR debug/43290
12317         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12318         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12319         of fde->vdrap_reg.
12320         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12321         (based_loc_descr): Only express drap or vdrap regno based expressions
12322         using DW_OP_fbreg when not optimizing.
12323         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12324         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12325         REG_CFA_SET_VDRAP note.
12326
12327 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
12328
12329         PR tree-optimization/43236
12330         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12331         error in calculation of base address in reverse iteration case.
12332         (generate_builtin): Take number of latch executions if the statement
12333         is in the latch.
12334
12335 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
12336
12337         PR middle-end/42859
12338         * tree-eh.c: Include pointer-set.h.
12339         (lower_eh_dispatch): Filter out duplicate case labels and
12340         remove the unneeded edge when the label is unused.  Return
12341         true when some edges are removed.
12342         (execute_lower_eh_dispatch): When any lowering resulted in
12343         removing an edge, also delete unreachable blocks.
12344
12345 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
12346
12347         PR bootstrap/43287
12348         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12349         UNSPEC_MACHOPIC_OFFSET.
12350
12351 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
12352
12353         PR target/43294
12354         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12355         (m68k_delegitimize_address): New function.
12356
12357 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
12358
12359         PR debug/43299
12360         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12361
12362         PR debug/43299
12363         * var-tracking.c (adjust_sets): New function.
12364         (count_with_sets, add_with_sets): Use it.
12365         (get_adjusted_src): New inline function.
12366         (add_stores): Use it.
12367
12368         PR debug/43304
12369         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12370         call cselib_dummy_expand_value_rtx_cb instead of
12371         cselib_expand_value_rtx_cb.
12372
12373         PR debug/43293
12374         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12375         * config/i386/i386.c: Include debug.h and dwarf2out.h.
12376         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12377         and .cfi_endproc around the pic thunks.
12378         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12379         all queued unwind info register saves are saved before the call.
12380         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12381         considered as sp-=4 for unwind info and the pop as sp+=4 which
12382         also clobbers dest, but doesn't actually restore it.
12383
12384         PR debug/43290
12385         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12386         RTX_FRAME_RELATED_P.
12387
12388 2010-03-09  Jie Zhang  <jie@codesourcery.com>
12389
12390         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12391         whitespaces in output template.
12392
12393 2010-03-09  Jie Zhang  <jie@codesourcery.com>
12394
12395         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12396         out array boundary.
12397
12398 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
12399
12400         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12401         builtins.exp in a separate job.
12402
12403 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12404
12405         * graphite-sese-to-poly.c (add_param_constraints): Use
12406         lower_bound_in_type and upper_bound_in_type.
12407
12408 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12409
12410         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12411         instead of unsigned_type_node.
12412
12413 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12414             Reza Yazdani  <reza.yazdani@amd.com>
12415
12416         PR middle-end/43065
12417         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12418         on pointer type parameters.
12419
12420 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
12421
12422         PR middle-end/42644
12423         PR middle-end/42130
12424         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12425         handle conversions from pointer to integers.
12426         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12427         induction variable, to be able to work with code generated by CLooG.
12428         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12429         (build_poly_scop): Bail out if we cannot codegen a loop.
12430
12431 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
12432
12433         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12434         code generation with gloog_error.
12435
12436 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12437
12438         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12439         Call fold_convert on all the returned values.
12440         (expand_scalar_variables_expr): Pass to
12441         expand_scalar_variables_ssa_name the type of the resulting expression.
12442
12443 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12444
12445         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12446         ppl_min_for_le_pointset.
12447         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12448         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12449
12450 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12451
12452         * graphite-dependences.c (map_into_dep_poly): Removed.
12453         (dependence_polyhedron_1): Use combine_context_id_scat.
12454
12455 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12456
12457         * graphite-poly.h (struct poly_scattering): Add layout documentation.
12458         (struct poly_bb): Same.
12459         (combine_context_id_scat): New.
12460
12461 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12462
12463         PR middle-end/42326
12464         * sese.c (name_defined_in_loop_p): Return false for default
12465         definitions.
12466
12467 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12468
12469         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
12470         and clean up the logic.
12471
12472 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
12473
12474         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
12475         early return.
12476
12477 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
12478
12479         * var-tracking.c (remove_cselib_value_chains): Define only for
12480         ENABLE_CHECKING.
12481         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
12482         delete_slot_part, emit_notes_for_differences_1): Don't call
12483         remove_cselib_value_chains here.
12484         (set_slot_part, emit_notes_for_differences_2): Don't call
12485         add_cselib_value_chains here.
12486         (preserved_values): New vector.
12487         (preserve_value): New function.
12488         (add_uses, add_stores, vt_add_function_parameters): Use it
12489         instead of cselib_preserve_value.
12490         (changed_values_stack): New vector.
12491         (check_changed_vars_0): New function.
12492         (check_changed_vars_1, check_changed_vars_2): Use it.
12493         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
12494         changed_values_stack VALUEs.
12495         (vt_emit_notes): For all preserved_values call
12496         add_cselib_value_chains.  If ENABLE_CHECKING call
12497         remove_cselib_value_chains before verifying value_chains is empty.
12498         Initialize and free changed_values_stack.
12499         (vt_initialize): Initialize preserved_values.
12500         (vt_finalize): Free preserved_values.
12501
12502 2010-03-08  Richard Guenther  <rguenther@suse.de>
12503
12504         PR tree-optimization/43269
12505         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
12506         region detection.
12507
12508 2010-03-08  Martin Jambor  <mjambor@suse.cz>
12509
12510         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
12511         (ipa_is_param_called): Removed.
12512         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
12513         (ipa_print_node_params): Do not print the called flag.
12514         (ipa_write_node_info): Do not stream the called flag.
12515         (ipa_read_node_info): Likewise.
12516
12517 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
12518
12519         PR debug/43176
12520         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
12521         * cselib.c (struct expand_value_data): Add dummy field.
12522         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
12523         dummy to false.
12524         (cselib_dummy_expand_value_rtx_cb): New function.
12525         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
12526         any rtl.
12527         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
12528         * var-tracking.c: Include pointer-set.h.
12529         (variable): Change n_var_parts to char from int.  Add
12530         cur_loc_changed and in_changed_variables fields.
12531         (variable_canonicalize): Remove.
12532         (shared_var_p): New inline function.
12533         (unshare_variable): Maintain cur_loc_changed and
12534         in_changed_variables fields.  If var was in changed_variables,
12535         replace it there with new_var.  Just copy cur_loc instead of
12536         resetting it to something else.
12537         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
12538         (dataflow_set_union): Don't call variable_canonicalize.
12539         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
12540         of their DEBUG_EXPR_TREE_DECLs.
12541         (canonicalize_loc_order_check): Verify that cur_loc is NULL
12542         and in_changed_variables and cur_loc_changed is false.
12543         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
12544         and cur_loc_changed.  Don't update cur_loc here.
12545         (variable_merge_over_src): Don't call variable_canonicalize.
12546         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
12547         removing loc that is equal to cur_loc, clear cur_loc,
12548         set cur_loc_changed and ensure variable_was_changed is called.
12549         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
12550         compare pointers in cur_loc check, if it is equal to loc,
12551         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
12552         (variable_different_p): Remove compare_current_location argument,
12553         don't compare cur_loc.
12554         (dataflow_set_different_1): Adjust variable_different_p caller.
12555         (variable_was_changed): If dv had some var in changed_variables
12556         already, reset in_changed_variables flag for it and propagate
12557         cur_loc_changed over to the new variable.  On empty var
12558         always set cur_loc_changed.  Set in_changed_variables on whatever
12559         var is added to changed_variables.
12560         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
12561         Use shared_var_p.  When removing loc that is equal to cur_loc,
12562         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
12563         end, don't set it to something else, just call variable_was_changed.
12564         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
12565         loc being removed, clear cur_loc and set cur_loc_changed.
12566         Set cur_loc_changed if all locations have been removed.
12567         (struct expand_loc_callback_data): New type.
12568         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
12569         allocated.  Always create SUBREGs if simplify_subreg failed.
12570         Prefer to use cur_loc, when that fails and still in
12571         changed_variables (and seen first time) recompute it.  Set
12572         cur_loc_changed of variables which had to change cur_loc and
12573         compute elcd->cur_loc_changed if any of the subexpressions used
12574         had to change cur_loc.
12575         (vt_expand_loc): Adjust to pass arguments in
12576         expand_loc_callback_data structure.
12577         (vt_expand_loc_dummy): New function.
12578         (emitted_notes): New variable.
12579         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
12580         that weren't used for any other decl in current
12581         emit_notes_for_changes call call vt_expand_loc_dummy to update
12582         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
12583         first loc_chain location if NULL before.  Always use just
12584         cur_loc instead of first loc_chain location.  When cur_loc_changed
12585         is false, when not --enable-checking=rtl just don't emit any note.
12586         When rtl checking, compute the note and assert it is the same
12587         as previous note.  Clear cur_loc_changed and in_changed_variables
12588         at the end before removing from changed_variables.
12589         (check_changed_vars_3): New function.
12590         (emit_notes_for_changes): Traverse changed_vars to call
12591         check_changed_vars_3 on each changed var.
12592         (emit_notes_for_differences_1): Clear cur_loc_changed and
12593         in_changed_variables.  Recompute cur_loc of new_var.
12594         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
12595         (vt_emit_notes): Initialize and destroy emitted_notes.
12596
12597 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
12598
12599         PR rtl-optimization/42220
12600         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
12601         Use verify_reg_tracked to determine if we should use OP_OUT rather
12602         than OP_INOUT.
12603         (build_def_use): If we see an in-out operand for a register that we
12604         know nothing about, treat is an output if possible, fail the block if
12605         not.
12606
12607 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
12608
12609         PR debug/42897
12610         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
12611         permanently.
12612
12613 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
12614
12615         PR debug/42897
12616         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
12617         uses of relevant DEFs that are dead outside the loop too.
12618
12619 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
12620
12621         * var-tracking.c (dataflow_set_merge): Swap src and src2.
12622         Reverted:
12623         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
12624         PR debug/41371
12625         * var-tracking.c (values_to_unmark): New variable.
12626         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12627         values_to_unmark vector.  Moved body to...
12628         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
12629         instead queue it into values_to_unmark vector.
12630         (vt_find_locations): Free values_to_unmark vector.
12631
12632 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
12633
12634         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
12635         (site.exp): Export them when plugins are enabled.
12636
12637 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
12638
12639         PR middle-end/42326
12640         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
12641         that contain scevs.
12642         (chrec_fold_multiply): Same.
12643
12644 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
12645
12646         PR c/43248
12647         * c-decl.c (build_compound_literal): Return early if init is
12648         an error_mark_node.
12649
12650 2010-03-04  Martin Jambor  <mjambor@suse.cz>
12651
12652         PR tree-optimization/43164
12653         PR tree-optimization/43191
12654         * tree-sra.c (type_consists_of_records_p): Reject records with
12655         zero-size bit-fields at the end.
12656
12657 2010-03-04  Mike Stump  <mikestump@comcast.net>
12658
12659         * Makefile.in (TAGS): Remove *.y.
12660
12661 2010-03-04  Richard Guenther  <rguenther@suse.de>
12662
12663         PR tree-optimization/40761
12664         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
12665         in reverse order.
12666         (my_rev_post_order_compute): New function.
12667         (init_pre): Call it.
12668
12669 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
12670
12671         PR middle-end/43209
12672         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
12673         decrease the cost of an IV candidate when the cost is infinite.
12674
12675 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12676
12677         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
12678         Use '3DNow!' for the extension of that name, ensure normal space
12679         after the string.
12680         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
12681
12682 2010-03-03  Jeff Law  <law@redhat.com>
12683
12684         * PR middle-end/32693
12685         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
12686         than gen_rtx_SUBREG.
12687         (extract_bit_field_1): Likewise.
12688
12689 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
12690
12691         * doc/sourcebuild.texi (Test directives): Document that arguments
12692         include-opts and exclude-opts are now optional for dg-skip-if,
12693         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
12694
12695 2010-03-03  Jason Merrill  <jason@redhat.com>
12696
12697         PR c++/12909
12698         * cgraph.h (varpool_node): Add extra_name field.
12699         * varpool.c (varpool_extra_name_alias): New.
12700         (varpool_assemble_decl): Emit extra name aliases.
12701         (varpool_mark_needed_node): Look past an extra name alias.
12702         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
12703         * lto-streamer-in.c (lto_input_tree): Read it.
12704         * lto-streamer-out.c (output_unreferenced_globals): Write it.
12705
12706 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
12707
12708         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
12709         (sparc*-*-solaris2*): ...this.
12710
12711 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
12712
12713         PR debug/43229
12714         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
12715         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
12716         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
12717         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
12718
12719         PR debug/43237
12720         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
12721         fallthrough to default handling, just with want_address 0 instead of 2.
12722         For single element lists, add_AT_loc directly, otherwise create an
12723         artificial variable DIE and stick location list to it.
12724
12725         PR debug/43177
12726         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
12727         (VAL_EXPR_HAS_REVERSE): Define.
12728         (reverse_op): New function.
12729         (add_stores): For reversible operations add an extra MO_VAL_USE.
12730
12731 2010-03-02  Jason Merrill  <jason@redhat.com>
12732
12733         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
12734
12735 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
12736
12737         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
12738         (sparc64-*-linux*): Likewise.
12739         (sparc64-*-solaris2*): Include assembler files before linker ones.
12740         (sparc-*-solaris2*): Simplify and reorder to match previous case.
12741         * config/sparc/gas.h: Delete.
12742         * config/sparc/sol2-64.h: Add copyright notice.
12743         * config/sparc/sol2-gas-bi.h: Likewise.
12744         * config/sparc/sol2-gld.h: Likewise.
12745         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
12746         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
12747         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
12748         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
12749         (sparc_elf_asm_named_section): Rename into...
12750         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
12751
12752 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
12753
12754         * config/alpha/alpha.c (override_options): Fix -mtune error message.
12755
12756 2010-03-02  Jeff Law  <law@redhat.com>
12757
12758         PR middle-end/42431
12759         * reload1.c (rtx_p, substitute_stack): Declare.
12760         (substitute): Record addresses of changed rtxs.
12761         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
12762         Restore the original rtx when complete.
12763         (reload): Free subsitute_stack when complete.
12764
12765 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
12766
12767         * doc/gccint.texi (menu): Add Testsuites as a chapter.
12768         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
12769         new chapter.
12770         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
12771         LTO Testing, gcov Testing, profopt Testing, compat Testing,
12772         Torture Tests): Change from subsection to section.
12773
12774 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
12775             Steven Bosscher  <steven@gcc.gnu.org>
12776
12777         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
12778         instead of bb.
12779
12780 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
12781
12782         PR middle-end/42640
12783         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
12784         the assignment from the new induction variable to the assignment
12785         of the value from the original loop PHI function.
12786
12787 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
12788             Daniel Jacobowitz  <dan@codesourcery.com>
12789
12790         * doc/sourcebuild.texi (Test directives): Clarify options to
12791         dg-skip-if.
12792
12793 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12794
12795         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
12796         Disable cfi directives unless GCC and gas agree on using read-only
12797         .eh_frame sections for 64-bit.
12798         * configure: Regenerate.
12799
12800 2010-03-01  Richard Guenther  <rguenther@suse.de>
12801
12802         PR tree-optimization/43220
12803         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
12804         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
12805
12806 2010-03-01  Richard Guenther  <rguenther@suse.de>
12807             Martin Jambor  <mjambor@suse.cz>
12808
12809         PR middle-end/41250
12810         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
12811         gimplified parameters.
12812
12813 2010-03-01  Christian Bruel  <christian.bruel@st.com>
12814
12815         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
12816
12817 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
12818
12819         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
12820
12821 2010-03-01  Richard Guenther  <rguenther@suse.de>
12822
12823         PR middle-end/43213
12824         * expr.c (expand_assignment): Use the alias-oracle to tell
12825         if the rhs aliases the result decl.
12826
12827 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12828
12829         PR pch/14940
12830         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
12831         to sol_gt_pch_get_address.
12832         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
12833         64-bit, SPARC and x86.
12834         (sol_gt_pch_get_address): New function.
12835
12836 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
12837
12838         * toplev.h (inform_n, error_n): Declare.
12839         * diagnostic.c (inform_n, error_n): New function.
12840
12841 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
12842
12843         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
12844         has no rtl yet when processing local_decls, queue it and recheck
12845         if deferred stack allocation hasn't assigned it rtl.
12846
12847 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
12848
12849         * config/sh/sh.c (unspec_bbr_uid): New.
12850         (gen_block_redirect): Use it instead of INSN_UID.
12851         (gen_far_branch): Likewise.
12852
12853 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
12854
12855         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
12856         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
12857
12858 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12859
12860         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
12861         (Warning Options): -Wno-conversion-null is valid for
12862         Objective-C++ as well.
12863         * doc/tm.texi (Named Address Spaces): Likewise.
12864         * doc/plugins.texi (Plugins): Replace TABs with spaces.
12865         * doc/tree-ssa.texi (Tree SSA): Likewise.
12866
12867 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
12868
12869         PR bootstrap/43202
12870         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
12871         by default.  Don't set the default arch for
12872         i[34567]86-*-darwin*|x86_64-*-darwin*.
12873
12874 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
12875
12876         PR bootstrap/43202
12877         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
12878         default.  Set the default 32bit/64bit archs with $with_arch
12879         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
12880
12881 2010-02-27  Richard Guenther  <rguenther@suse.de>
12882
12883         PR tree-optimization/43186
12884         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
12885         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
12886         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
12887         unroller iterations.
12888
12889 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
12890
12891         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
12892         required and i[34567]86-*-* targets don't support 64bit ISA.
12893
12894 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
12895
12896         PR ada/43096
12897         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
12898         the same alias set.
12899
12900 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
12901
12902         * config.gcc: Set the default arch at least to Prescott for
12903         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
12904         if SSE math is enabled.
12905
12906 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12907
12908         * diagnostic.c (diagnostic_initialize): Update.
12909         (diagnostic_report_diagnostic): Test inhibit_notes_p for
12910         informative notes.
12911         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
12912         (diagnostic_inhibit_notes): New.
12913         * toplev.c (process_options): inhibit notes with -fcompare-debug.
12914
12915 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12916
12917         PR c/20631
12918         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
12919         * doc/standards.texi: Likewise.
12920         * doc/extend.texi: Likewise.
12921         * doc/trouble.texi: Likewise.
12922         * doc/cppopts.texi: Likewise.
12923         * doc/install.texi: Likewise.
12924         * c.opt (std=c90,std=gnu90): New options.
12925         * c-opts.c (c_common_handle_option): Handle them.
12926
12927 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12928
12929         PR c/24577
12930         * c-decl.c (undeclared_variable): Use an informative note.
12931
12932 2010-02-26  Richard Guenther  <rguenther@suse.de>
12933
12934         PR tree-optimization/43186
12935         * gimple.h (gimple_fold): Remove.
12936         * gimple.c (gimple_fold): Remove.  Inline into single user ...
12937         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
12938         Try harder for conditions.
12939
12940 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
12941
12942         PR debug/43190
12943         * function.c (used_types_insert): Don't skip through named pointer
12944         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
12945         and it is different from the main variant's type.
12946
12947 2010-02-26  Nick Clifton  <nickc@redhat.com>
12948
12949         * config/rx/rx.md (sminsi3): Remove bogus alternative.
12950
12951 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
12952
12953         * config.gcc: Support --with-fpmath=sse for x86.
12954
12955         * config/i386/ssemath.h: New.
12956
12957         * doc/install.texi (--with-fpmath=sse): Documented.
12958
12959 2010-02-26  Richard Guenther  <rguenther@suse.de>
12960
12961         PR tree-optimization/43188
12962         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
12963         vector types of over-aligned element type.
12964
12965 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
12966
12967         PR target/43175
12968         * config/i386/i386.c (expand_vec_perm_blend): Use correct
12969         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
12970
12971 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
12972
12973         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
12974
12975 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
12976
12977         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
12978         * var-tracking.c: Include diagnostic.h.
12979         (debug_dv): New function.
12980         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
12981
12982         PR debug/43160
12983         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
12984         (add_value_chain, add_value_chains, remove_value_chain,
12985         remove_value_chains): Handle DEBUG_EXPRs.
12986         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
12987
12988         PR debug/43161
12989         * regcprop.c (struct queued_debug_insn_change): New type.
12990         (struct value_data_entry): Add debug_insn_changes field.
12991         (struct value_data): Add n_debug_insn_changes field.
12992         (debug_insn_changes_pool): New variable.
12993         (free_debug_insn_changes, apply_debug_insn_changes,
12994         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
12995         (kill_value_one_regno): Call free_debug_insn_changes if needed.
12996         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
12997         fields.
12998         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
12999         changes for them.
13000         (copyprop_hardreg_forward_1): Don't call apply_change_group for
13001         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
13002         changes, call cprop_find_used_regs via note_stores.
13003         (copyprop_hardreg_forward): When copying vd from predecessor
13004         which has any queued DEBUG_INSN changes, make sure the pointers are
13005         cleared.  At the end call df_analyze and then if there are any
13006         DEBUG_INSN changes queued at the end of some basic block for still
13007         live registers, apply them.
13008         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13009
13010 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
13011
13012         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13013         (arm*-*-*): Ditto.
13014
13015 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
13016
13017         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13018         targets.  Set the default with_cpu/with_arch from arch/cpu.
13019         Allow x86-64 and native for with_cpu/with_arch.
13020
13021 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
13022
13023         * ebitmap.c: Change calls to verify_popcount with calls to
13024         sbitmap_verify_popcount.
13025         (ebitmap_clear_bit): Fixed map->cacheindex test and
13026         map>cache update when bit clearing results in an empty
13027         element.
13028
13029 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13030
13031         PR target/43154
13032         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13033         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13034         and support both V2DF and V2DI modes.
13035         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13036         support both V2DF and V2DI modes.
13037         (general): Delete trailing whitespace from a few patterns.
13038
13039         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13040         V2DF/V2DI interleave high/low builtins.
13041
13042         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13043         new VSX builtins.
13044
13045         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13046         interleave high/low functions.
13047
13048 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
13049
13050         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13051         #pragma extern_prefix.
13052
13053 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
13054
13055         PR debug/43166
13056         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13057         BLKmode, assert op0 is a MEM and just adjust its mode.
13058
13059         PR debug/43165
13060         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13061         if bitpos isn't multiple of mode's bitsize.
13062
13063 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13064
13065         * c.opt (-ftemplate-depth=): New.
13066         (-ftemplate-depth-): Deprecate.
13067         * optc-gen.awk: Handle -ftemplate-depth=.
13068         * opth-gen.awk: Likewise.
13069         * c-opts.c (c_common_handle_option): Likewise.
13070         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13071
13072 2010-02-24  Jason Merrill  <jason@redhat.com>
13073
13074         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13075
13076 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13077
13078         * cfg.c (alloc_aux_for_block): Remove inline.
13079         (alloc_aux_for_edge): Likewise.
13080
13081 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13082
13083         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13084
13085 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13086
13087         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13088         * config/i386/sol2-gas.h: New file.
13089         * config.gcc (i[34567]86-*-solaris2*): Use it.
13090
13091 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13092
13093         PR c/43128
13094         * c-typeck.c (ep_convert_and_check): New.
13095         (build_conditional_expr): Use it.
13096         (build_binary_op): Likewise.
13097
13098 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
13099
13100         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13101
13102         PR debug/43150
13103         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13104         bounds even for -O+.
13105         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13106         expr needs to have DECL_NAME set.
13107
13108 2010-02-24  Nick Clifton  <nickc@redhat.com>
13109
13110         * config/mep/mep.c: Include gimple.h.
13111         (mep_function_uses_sp): Delete unused function.
13112         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13113         parameters.  Use unsigned integers to count args.  Return a
13114         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
13115
13116 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
13117
13118         PR target/43107
13119         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13120         greater or equal to nelt instead of 2 * nelt.
13121         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13122         with nelt - 1.
13123
13124 2010-02-23  Jason Merrill  <jason@redhat.com>
13125
13126         PR debug/42800
13127         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13128         in cfun->local_decls even if they have register types.
13129
13130         PR c++/42837
13131         * stor-layout.c (place_field): Don't warn about unnecessary
13132         DECL_PACKED if the type is packed.
13133
13134 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
13135
13136         PR target/43139
13137         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13138         GOTOFF relocs, even when the base reg isn't pic pointer.
13139
13140 2010-02-23  Michael Matz  <matz@suse.de>
13141
13142         PR debug/43077
13143         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13144         (expand_gimple_basic_block): Generate and use debug temps if there
13145         are debug uses left after the last real use of TERed ssa names.
13146         Unlink debug immediate uses when they are expanded.
13147
13148 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13149
13150         PR 43123
13151         * config/i386/i386.c (override_options): Reorganise to provide
13152         better error messages.
13153
13154 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13155
13156         PR middle-end/43083
13157         * graphite-scop-detection.c (create_single_exit_edge): Move
13158         the call to find_single_exit_edge to....
13159         (create_sese_edges): ...here.  Don't handle multiple edges
13160         exiting the function.
13161         (build_graphite_scops): Don't handle multiple edges
13162         exiting the function.
13163
13164 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13165
13166         PR middle-end/43097
13167         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13168         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13169
13170 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13171
13172         PR middle-end/43026
13173         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13174
13175 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13176
13177         PR c++/43126
13178         * c-typeck.c (convert_arguments): Print declaration location.
13179         * c-common.c (validate_nargs): Rename as
13180         builtin_function_validate_nargs.
13181         (check_builtin_function_arguments): Update.
13182
13183 2010-02-22  Richard Guenther  <rguenther@suse.de>
13184
13185         PR lto/43045
13186         * tree-inline.c (declare_return_variable): Use the type of
13187         the call stmt lhs if available.
13188
13189 2010-02-22  Duncan Sands  <baldrick@free.fr>
13190
13191         * passes.c (register_pass): Always consider all pass lists when
13192         ref_pass_instance_number is zero.
13193
13194 2010-02-22  Richard Guenther  <rguenther@suse.de>
13195
13196         PR tree-optimization/42749
13197         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13198         parameter.  Do arithmetic in the original type.
13199         (update_accumulator_with_ops): Likewise.
13200         (adjust_accumulator_values): Adjust.
13201
13202 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13203
13204         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13205         (QI to BLKmode splitter): New splitter.
13206
13207 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
13208
13209         * config/i386/i386.c (initial_ix86_tune_features): Turn on
13210         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13211
13212 2010-02-22  Richard Guenther  <rguenther@suse.de>
13213
13214         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13215
13216 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
13217
13218         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13219         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13220         ($(T)crti.o, $(T)crtn.o): Remove rules.
13221
13222 2010-02-21  Tobias Burnus  <burnus@net-b.de>
13223
13224         PR fortran/35259
13225         * doc/invoke.texi (-fassociative-math): Document that this
13226         option is automatically enabled for Fortran.
13227
13228 2010-02-20  David S. Miller  <davem@davemloft.net>
13229
13230         * configure.ac: Test if linker and assembler properly support
13231         GOTDATA_OP relocations.
13232         * configure: Rebuild.
13233         * config.in: Likewise.
13234         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13235         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13236         (movsi_high_pic): Likewise.
13237         (movdi_lo_sum_pic): Likewise.
13238         (movdi_high_pic): Likewise.
13239         (movsi_pic_gotdata_op): New pattern.
13240         (movdi_pic_gotdata_op): Likewise.
13241         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13242         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13243
13244 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
13245
13246         PR target/43067
13247         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13248         attribute to ssemul.
13249         (xop_mulv2div2di3_high): Ditto.
13250
13251 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13252
13253         PR c++/35669
13254         * c.opt (Wconversion-null): New option.
13255         * doc/invoke.texi (Wconversion-null): Document.
13256
13257 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13258
13259         * common.opt (Wlarger-than-): Add Undocumented.
13260
13261 2010-02-19  Mike Stump  <mikestump@comcast.net>
13262
13263         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13264
13265 2010-02-19  Jason Merrill  <jason@redhat.com>
13266
13267         PR target/40332
13268         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13269         * configure: Likewise.
13270
13271 2010-02-20  Alan Modra  <amodra@gmail.com>
13272
13273         PR middle-end/42344
13274         * cgraph.h (cgraph_make_decl_local): Declare.
13275         * cgraph.c (cgraph_make_decl_local): New function.
13276         (cgraph_make_node_local): Use it.
13277         * cgraphunit.c (cgraph_function_versioning): Likewise.
13278         * ipa.c (function_and_variable_visibility): Likewise.
13279
13280 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13281
13282         PR bootstrap/43121
13283         * except.c (sjlj_emit_function_enter): Don't call
13284         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13285         directly.
13286         * rtl.h (add_reg_br_prob_note): Remove prototype.
13287
13288 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13289
13290         PR 41779
13291         * c-common.c (conversion_warning): Remove widening conversions
13292         before checking the conversion of integers to reals.
13293
13294 2010-02-19  Mike Stump  <mikestump@comcast.net>
13295
13296         PR middle-end/43125
13297         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13298
13299         PR objc/43061
13300         * cgraphunit.c (process_function_and_variable_attributes): Check
13301         DECL_PRESERVE_P instead of looking up attribute "used".
13302         * ipa-pure-const.c (check_decl): Likewise.
13303         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13304         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13305         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13306         instead of attribute "used".
13307         * config/sol2-c.c (solaris_pragma_init): Likewise.
13308         (solaris_pragma_fini): Likewise.
13309
13310 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13311
13312         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13313         Use XCNEW instead of xcalloc.
13314         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13315         XNEW instead of xmalloc.
13316         (get_fields): Use XNEWVEC instead of xmalloc.
13317
13318         PR debug/43084
13319         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13320         populate vars array.
13321         (create_new_general_access): For debug stmts just reset value.
13322         (get_stmt_accesses): For accesses within debug stmts just record them
13323         using add_access_to_acc_sites instead of preventing the peeling or
13324         counting them as accesses.
13325
13326         PR middle-end/42233
13327         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13328
13329 2010-02-19  Richard Guenther  <rguenther@suse.de>
13330
13331         PR tree-optimization/42916
13332         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13333         instructions.
13334
13335 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
13336
13337         * configure.ac: Replace all uses of changequote in macro arguments
13338         with proper quoting.
13339
13340 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13341
13342         PR middle-end/42233
13343         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13344
13345 2010-02-19  Richard Guenther  <rguenther@suse.de>
13346
13347         PR tree-optimization/42944
13348         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13349         test for aliasing with errno.
13350
13351 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
13352
13353         PR middle-end/42233
13354         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13355         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13356         * dojump.c: Include output.h.
13357         (inv): New inline function.
13358         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13359         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13360         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13361         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13362         argument, pass it down to other calls.
13363         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
13364         add REG_BR_PROB note to the conditional jump.
13365         * cfgexpand.c (add_reg_br_prob_note): Removed.
13366         (expand_gimple_cond): Don't call it, add the probability
13367         as last argument to jumpif_1/jumpifnot_1.
13368         * Makefile.in (dojump.o): Depend on output.h.
13369         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13370         callers.
13371         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13372         * stmt.c (do_jump_if_equal): Likewise.
13373         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13374         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13375         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13376         Likewise.
13377         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13378         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13379         jumpifnot_1 callers.
13380         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13381         callers.
13382         (store_expr): Adjust jumpifnot caller.
13383         (store_constructor): Adjust jumpif caller.
13384
13385         PR middle-end/42233
13386         * gimplify.c (gimple_boolify): For __builtin_expect call
13387         gimple_boolify also on its first argument.
13388
13389 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
13390
13391         * configure.ac (gnu-unique-object): Wrap regexps using [] in
13392         changequote block.
13393         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
13394         * configure: Regenerated.
13395
13396 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13397
13398         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13399         lang_hooks.types_compatible_p instead of comptypes.
13400
13401 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
13402
13403         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13404         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13405         if __prefer_thumb__ is defined.
13406
13407 2010-02-18  Martin Jambor  <mjambor@suse.cz>
13408
13409         PR tree-optimization/43066
13410         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13411         array with zero-sized element type.
13412
13413 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
13414
13415         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13416         rtx, allocate struct var_loc_node here and return it to the
13417         caller, and only if it is actually needed.
13418         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13419         move it earlier and return immediately if it returns NULL.
13420
13421 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
13422
13423         * config/sparc/gas.h: New file.  Restore
13424         TARGET_ASM_NAMED_SECTION to its ELF default.
13425         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13426         check !HAVE_GNU_AS.
13427         * config/sparc/sparc.c (sparc_elf_asm_named_section):
13428         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
13429         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13430         after sparc/sysv4.h.
13431
13432 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
13433
13434         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13435
13436 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
13437
13438         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13439         patterns from predicated pattern.
13440
13441 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
13442
13443         PR target/43103
13444         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13445         for insn mnemonic suffix.
13446
13447 2010-02-17  Richard Guenther  <rguenther@suse.de>
13448
13449         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13450         to loop PHI nodes.
13451
13452 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
13453
13454         PR debug/42918
13455         * caller-save.c (save_call_clobbered_regs): If BB ends with
13456         a DEBUG_INSN, move any notes in between last real insn and the last
13457         DEBUG_INSN after the last DEBUG_INSN.
13458
13459 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
13460
13461         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13462         Fix return type.  Fix argument type.  Explain meaning of return value.
13463
13464 2010-02-16  Richard Guenther  <rguenther@suse.de>
13465
13466         PR tree-optimization/41043
13467         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
13468         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
13469         statements ...
13470         (vrp_visit_phi_node): ... but only for loop PHI nodes.
13471
13472 2010-02-16  Ira Rosen  <irar@il.ibm.com>
13473
13474         PR tree-optimization/43074
13475         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
13476         * tree-vect-loop.c (vect_analyze_loop_operations): Add
13477         vectorizable cycles in hybrid SLP check.
13478         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
13479
13480 2010-02-16  Richard Guenther  <rguenther@suse.de>
13481
13482         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
13483         (true_dependence): If memrefs_conflict_p computes must-alias
13484         trust it.  Move TBAA check after offset-based disambiguation.
13485         (canon_true_dependence): Likewise.
13486
13487 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
13488
13489         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
13490         * doc/invoke.texi: Document it.
13491         * var-tracking.c: Include toplev.h and params.h.
13492         (vt_find_locations): Return bool indicating success.  Compute
13493         hash sizes unconditionally.  Check new parameter, report.
13494         (variable_tracking_main_1): Check vt_find_locations results and
13495         retry.  Renamed from...
13496         (variable_tracking_main): ... this.  New wrapper to preserve
13497         flag_var_tracking_assignments.
13498         * Makefile.in (var-tracking.o): Adjust dependencies.
13499
13500 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
13501             Jakub Jelinek <jakub@redhat.com>
13502
13503         PR target/42854
13504         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
13505         if weak_import attribute is present.
13506         * config/darwin.c (machopic_select_section): Likewise.
13507
13508 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
13509
13510         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
13511         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
13512         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
13513         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
13514
13515         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
13516         types.
13517
13518         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13519         Fix argument types.
13520
13521         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
13522         Rewrite text to refer to the names.
13523
13524 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
13525
13526         * config/i386/i386-builtin-types.def
13527         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
13528         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
13529         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
13530         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
13531         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
13532         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
13533         IX86_BUILTIN_VPERMIL2PS256.
13534         (MULTI_ARG_4_DF2_DI_I): Defined.
13535         (MULTI_ARG_4_DF2_DI_I1): Defined.
13536         (MULTI_ARG_4_SF2_SI_I): Defined.
13537         (MULTI_ARG_4_SF2_SI_I1): Defined.
13538         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
13539         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
13540         __builtin_ia32_vpermil2ps256.
13541         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13542         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13543         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
13544         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13545         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13546         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
13547         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
13548         CODE_FOR_xop_vpermil2v8sf3.
13549         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
13550         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
13551         * config/i386/xopintrin.h (_mm_permute2_pd): New.
13552         (_mm256_permute2_pd): New.
13553         (_mm_permute2_ps): New.
13554         (_mm256_permute2_ps): New.
13555
13556 2010-02-15  Nick Clifton  <nickc@redhat.com>
13557
13558         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
13559         boolean parameters.  Use emit_jump_insn when emitting a pop
13560         instruction containing a return insn.
13561         (push): Use 'true' rather than '1' as second parameter to F.
13562         (h8300_expand_prologue): Likewise.
13563         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
13564         (h8300_expand_epilogue): Likewise.
13565
13566 2010-02-15  Richard Guenther  <rguenther@suse.de>
13567
13568         PR middle-end/43068
13569         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
13570         if that is zero.
13571
13572 2010-02-15  Nick Clifton  <nickc@redhat.com>
13573
13574         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
13575         delta.
13576
13577 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
13578
13579         * intl.c (fake_ngettext): New function.
13580         * intl.h (fake_ngettext): Declare.
13581         (ngettext): Define macro.
13582         * collect2.c (notice_translated): New function.
13583         (main): Use notice_translated and ngettext.
13584         * collect2.h (notice_translated): Declare.
13585
13586 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
13587
13588         * reorg.c (delete_computation): Comment fixes.
13589         * caller-save.c (setup_save_areas): Idem.
13590         * sel-sched-dump.c (dump_lv_set): Idem.
13591         * rtl.def: Idem.
13592
13593 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13594
13595         * config/s390/s390.c (s390_sched_init): New function.
13596         (TARGET_SCHED_INIT): Target hook defined.
13597
13598 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
13599             Jack Howarth  <howarth@bromo.med.uc.edu>
13600             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13601
13602         PR target/42982
13603         Partial revert of unintended change in fix for PR41605.
13604         * config/darwin.h: Fix typo.
13605         * config/darwin9.h: Same.
13606
13607 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
13608
13609         * c-pch.c (pch_init): Clear v.
13610
13611 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
13612
13613         PR middle-end/42930
13614         * graphite-scop-detection.c (graphite_can_represent_scev): Call
13615         graphite_can_represent_init for MULT_EXPR.
13616
13617 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
13618
13619         PR middle-end/42914
13620         PR middle-end/42530
13621         * graphite-sese-to-poly.c (remove_phi): New.
13622         (translate_scalar_reduction_to_array): Call remove_phi.
13623
13624 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
13625
13626         PR middle-end/42771
13627         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
13628         * graphite-clast-to-gimple.h (gloog): Update declaration.
13629         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
13630         * graphite-poly.h (struct poly_bb): Add missing comments.
13631         (struct scop): Add poly_scop_p field.
13632         (POLY_SCOP_P): New.
13633         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
13634         * graphite.c (graphite_transform_loops): Build the polyhedral
13635         representation for each scop before code generation.
13636         * sese.c (rename_variables_in_operand): Removed.
13637         (rename_variables_in_expr): Return the renamed expression.
13638         (rename_sese_parameters): New.
13639         * sese.h (rename_sese_parameters): Declared.
13640
13641 2010-02-11  Richard Guenther  <rguenther@suse.de>
13642
13643         PR tree-optimization/42998
13644         * tree-ssa-pre.c (create_expression_by_pieces): Treat
13645         POINTER_PLUS_EXPR properly.
13646
13647 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
13648             Changpeng Fang  <changpeng.fang@amd.com>
13649
13650         PR middle-end/40886
13651         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
13652         the cost of an IV candidate when the IV is used in a test against zero.
13653
13654         * gcc.dg/tree-ssa/ivopts-3.c: New.
13655
13656 2010-02-11  Richard Guenther  <rguenther@suse.de>
13657
13658         PR lto/41664
13659         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
13660         pointer-vs-decl case by swapping refs.  Handle some cases
13661         of pointer-vs-decl disambiguations more conservatively.
13662         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
13663         to false after expanding.
13664
13665 2010-02-11  Richard Guenther  <rguenther@suse.de>
13666
13667         PR driver/43021
13668         * gcc.c (process_command): Handle LTO file@offset case more
13669         appropriately.
13670
13671 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
13672
13673         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
13674         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
13675         of DEBUG_INSNs.
13676         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
13677
13678         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
13679         if MEM's mode size isn't DWARF2_ADDR_SIZE.
13680         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
13681         Optimize eq/ne comparisons when both arguments are known to be
13682         zero-extended.
13683         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
13684         Don't mask operands unnecessarily if they are known to be already
13685         zero-extended.
13686
13687 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
13688
13689         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
13690         instead of loop.
13691
13692 2010-02-10  Richard Guenther  <rguenther@suse.de>
13693
13694         PR tree-optimization/43017
13695         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
13696         for wrapping signed arithmetic.
13697
13698 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
13699
13700         PR debug/43010
13701         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
13702         if no debug info should be emitted for it.
13703
13704 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
13705
13706         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
13707         note when flag_exceptions is set.
13708
13709 2010-02-10  Duncan Sands  <baldrick@free.fr>
13710
13711         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
13712
13713 2010-02-10  Richard Guenther  <rguenther@suse.de>
13714
13715         PR c/43007
13716         * tree.c (get_unwidened): Handle constants.
13717         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
13718
13719 2010-02-10  Martin Jambor  <mjambor@suse.cz>
13720
13721         PR lto/42985
13722         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
13723         check for variable argument counts independently.
13724
13725 2010-02-10  Christian Bruel  <christian.bruel@st.com>
13726
13727         PR target/42841
13728         * config/sh/sh.c (find_barrier): Increase length for non delayed
13729         conditional branches.
13730
13731 2010-02-10  Christian Bruel  <christian.bruel@st.com>
13732
13733         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
13734
13735 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
13736
13737         * builtins.c (set_builtin_user_assembler_name): Also handle
13738         ffs if int is smaller than word.
13739
13740 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
13741
13742         PR middle-end/42973
13743         * ira-conflicts.c (get_dup): Remove.
13744         (process_reg_shuffles): Add new parameter.  Use it as an
13745         additional guard for copy generation.
13746         (add_insn_allocno_copies): Rewrite.
13747
13748 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
13749
13750         * common.opt (fsched2-use-traces): Preserved for backward
13751         compatibility.
13752         * doc/invoke.texi: Remove the documentation about option
13753         -fsched2-use-traces.
13754         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
13755         flag_sched2_use_traces.
13756         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
13757         the backward compatibility flag section.
13758
13759 2010-02-09  Richard Guenther  <rguenther@suse.de>
13760
13761         PR tree-optimization/43008
13762         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
13763         make HEAP variables initialized from global memory if they
13764         are not known builtin functions.
13765         (find_func_aliases): Adjust.
13766
13767 2010-02-09  Richard Guenther  <rguenther@suse.de>
13768
13769         PR tree-optimization/43000
13770         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
13771         arithmetic manually.
13772
13773 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
13774
13775         PR tree-optimization/42931
13776         * tree-loop-linear.c (try_interchange_loops): Don't call
13777         double_int_mul if estimated_loop_iterations failed.
13778
13779 2010-02-08  Martin Jambor  <mjambor@suse.cz>
13780
13781         PR middle-end/42898
13782         * tree-sra.c (build_accesses_from_assign): Do not mark in
13783         should_scalarize_away_bitmap if stmt has volatile ops.
13784         (sra_modify_assign): Do not process assigns piecemeal if if stmt
13785         has volatile ops.
13786
13787 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
13788
13789         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
13790
13791 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
13792
13793         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
13794         before the pattern.
13795
13796 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
13797
13798         PR middle-end/42946
13799         * df-core.c (df_finish_pass): Change type of saved_flags to int.
13800
13801 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
13802
13803         PR middle-end/42988
13804         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
13805         to unknown_dependence.
13806         (graphite_legal_transform_dr): Handle the unknown_dependence.
13807         (graphite_carried_dependence_level_k): Same.
13808
13809 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
13810
13811         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
13812
13813 2010-02-07  Richard Guenther  <rguenther@suse.de>
13814
13815         PR middle-end/42991
13816         * expr.c (get_inner_reference): Always initialize *pbitsize.
13817
13818 2010-02-07  Richard Guenther  <rguenther@suse.de>
13819
13820         PR middle-end/42956
13821         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
13822         new ARRAY_REFs on variable size element or minimal index arrays.
13823         Complete.
13824         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
13825         gimple_fold_indirect_ref.
13826
13827 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
13828
13829         PR target/42957
13830         * arm.c (arm_override_options): Just return if the user has specified
13831         an invalid fpu name.
13832
13833 2010-02-03  Jason Merrill  <jason@redhat.com>
13834
13835         PR c++/42870
13836         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
13837         i386_pe_maybe_record_exported_symbol.
13838
13839 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
13840
13841         PR target/42924
13842         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
13843         (pa_delegitimize_address): New function.
13844
13845 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
13846
13847         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
13848         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
13849
13850 2010-02-05  Richard Guenther  <rguenther@suse.de>
13851
13852         PR lto/42762
13853         * lto-streamer-in.c (get_resolution): Deal with references
13854         to undefined functions.
13855
13856 2010-02-05  Richard Guenther  <rguenther@suse.de>
13857
13858         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
13859         (fold_const_aggregate_ref): Likewise.
13860         (ccp_fold_stmt): Substitute loads.
13861         (maybe_fold_reference): Verify types before substituting.
13862         Unshare properly.
13863         (fold_gimple_assign): Unshare properly.
13864         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
13865
13866 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
13867
13868         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
13869         for rs6000_gen_cell_microcode.
13870
13871 2010-02-04  Richard Guenther  <rguenther@suse.de>
13872
13873         PR rtl-optimization/42952
13874         * dse.c (const_or_frame_p): Remove MEM handling.
13875
13876 2010-02-04  Nick Clifton  <nickc@redhat.com>
13877
13878         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
13879         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
13880         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
13881         (mn10300_asm_output_mi_thunk): New function.
13882         (mn10300_can_output_mu_thunk): New function.
13883         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
13884         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
13885         (FUNCTION_ARG): Delete incorrect comment.
13886
13887 2010-02-03  Jason Merrill  <jason@redhat.com>
13888
13889         PR c++/40138
13890         * fold-const.c (operand_equal_p): Handle erroneous types.
13891
13892 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13893
13894         * config/h8300/h8300.md (can_delay): Fix attibute condition.
13895
13896 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
13897
13898         PR rtl-optimization/42941
13899         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
13900         of xmalloc.
13901
13902 2010-02-03  Jason Merrill  <jason@redhat.com>
13903
13904         PR c++/35652
13905         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
13906
13907 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
13908
13909         PR debug/42896
13910         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
13911         (cselib_reset_table): Renamed from...
13912         (cselib_reset_table_with_next_value): ... this.
13913         (cselib_get_next_uid): Renamed from...
13914         (cselib_get_next_unknown_value): ... this.
13915         * cselib.c (next_uid): Renamed from...
13916         (next_unknown_value): ... this.
13917         (cselib_clear_table): Adjust.
13918         (cselib_reset_table): Adjust.  Renamed from...
13919         (cselib_reset_table_with_next_value): ... this.
13920         (cselib_get_next_uid): Adjust.  Renamed from...
13921         (cselib_get_next_unknown_value): ... this.
13922         (get_value_hash): Use hash.
13923         (cselib_hash_rtx): Likewise.
13924         (new_cselib_val): Adjust.  Set and dump uid.
13925         (cselib_lookup_mem): Pass next_uid as hash.
13926         (cselib_subst_to_values): Likewise.
13927         (cselib_log_lookup): Dump uid.
13928         (cselib_lookup): Pass next_uid as hash.  Adjust.
13929         (cselib_process_insn): Adjust.
13930         (cselib_init): Initialize next_uid.
13931         (cselib_finish): Adjust.
13932         (dump_cselib_table): Likewise.
13933         * dse.c (canon_address): Dump value uid.
13934         * print-rtl.c (print_rtx): Print value uid.
13935         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
13936         (dvuid): New type.
13937         (dv_uid): New function, sort of renamed from...
13938         (dv_htab_hash): ... this, reimplemented in terms of it and...
13939         (dv_uid2hash): ... this.  New.
13940         (variable_htab_eq): Drop excess assertions.
13941         (tie_break_pointers): Removed.
13942         (canon_value_cmp): Compare uids.
13943         (variable_post_merge_New_vals): Print uids.
13944         (vt_add_function_parameters): Adjust.
13945         (vt_initialize): Reset table.  Adjust.
13946
13947 2010-02-03  Richard Guenther  <rguenther@suse.de>
13948
13949         PR tree-optimization/42944
13950         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
13951         (call_may_clobber_ref_p_1): Likewise.  Properly handle
13952         malloc and calloc clobbering errno.
13953
13954 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
13955
13956         * doc/invoke.texi: Fix name of sched1 dump.
13957
13958         * opts.c (decode_options): Set flag_tree_switch_conversion
13959         only conditionally on optimize >= 2.
13960
13961         * gcse.c: Assorted comment fixes in pass description.
13962
13963 2010-02-03  Anthony Green  <green@moxielogic.com>
13964
13965         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
13966         nop padding in order to maintain alignment of storage location of
13967         target function address.
13968         (moxie_trampoline_init): Store target function address at newly
13969         aligned location.
13970         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
13971         to 32.
13972         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
13973
13974 2010-02-03  Richard Guenther  <rguenther@suse.de>
13975
13976         PR middle-end/42927
13977         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
13978
13979 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13980
13981         * config.gcc: Reenable check for obsolete targets.
13982         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
13983         mips-sgi-irix6.[0-4]*.
13984
13985 2010-02-02  Nick Clifton  <nickc@redhat.com>
13986
13987         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
13988         constant size of 4 as being the same as 0.
13989         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
13990         can take values in the range 0..4.
13991
13992 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
13993
13994         PR java/41991
13995         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
13996         as _darwin10_Unwind_FindEnclosingFunction().
13997         * libgcc-libsystem.ver: New.
13998
13999 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
14000
14001         PR target/41399
14002         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14003         implicitly set registers.
14004
14005 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
14006
14007         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14008         (arm_override_options): Allow automatic selection of the thread
14009         pointer register if thumb2.
14010         (legitimize_pic_address): Improve code sequences for Thumb2.
14011         (arm_call_tls_get_addr): Likewise.
14012         (legitimize_tls_address): Likewise.
14013         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
14014         (pic_load_addr_32bit): ... this.  New named pattern.
14015         * thumb2.md (pic_load_addr_thumb2): Delete.
14016         (pic_load_dot_plus_four): Delete.
14017         (tls_load_dot_plus_four): New named pattern.
14018
14019 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14020
14021         PR libgomp/29986
14022         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14023         Document fix for TLS bug.
14024
14025 2010-01-31  Richard Guenther  <rguenther@suse.de>
14026
14027         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14028         conservatively correct.
14029
14030 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14031
14032         PR target/42850
14033         Revert:
14034         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14035
14036         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14037
14038 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14039
14040         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14041
14042 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
14043
14044         * config.gcc: Adjust order of makefile fragments for mingw targets.
14045
14046 2010-01-31  Richard Guenther  <rguenther@suse.de>
14047
14048         PR middle-end/42898
14049         * gimplify.c (gimplify_init_constructor): For volatile LHS
14050         initialize a temporary.
14051
14052 2010-01-31  Matthias Klose  <doko@ubuntu.com>
14053
14054         * configure.ac: Fix __stack_chk_fail check for cross builds configured
14055         --with-headers
14056         * configure: Regenerate.
14057
14058 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
14059
14060         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14061         the same alias set and their sizes different constantness.
14062         (aliasing_component_refs_p): Revert 2009-10-24 change.
14063
14064 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14065
14066         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14067         unused.
14068
14069 2010-01-29  Richard Guenther  <rguenther@suse.de>
14070
14071         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14072         Assert we successfully updated the call.
14073
14074 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
14075
14076         PR rtl-optimization/42889
14077         * df.h (df_set_bb_dirty_nonlr): New prototype.
14078         * df-core.c (df_set_bb_dirty_nonlr): New function.
14079         * df-scan.c (df_insn_rescan): Call it instead of
14080         df_set_bb_dirty for DEBUG_INSNs.
14081
14082 2010-01-29  Richard Guenther  <rguenther@suse.de>
14083
14084         PR middle-end/37448
14085         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14086         quadratic behavior in most cases.
14087
14088 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
14089
14090         PR target/42891
14091         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14092         in the call to gen_x86_movsicc_0_m1.
14093
14094 2010-01-28  Richard Guenther  <rguenther@suse.de>
14095
14096         PR tree-optimization/42871
14097         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14098
14099 2010-01-28  Richard Guenther  <rguenther@suse.de>
14100
14101         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14102         into call arguments.
14103
14104 2010-01-28  Richard Guenther  <rguenther@suse.de>
14105
14106         PR middle-end/42883
14107         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14108         the forwarder if the destination is an EH landing pad.
14109
14110 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
14111
14112         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14113         block list passed to gimple_duplicate_sese_tail.
14114         (parallelize_loops): Avoid parallelization when the function
14115         has_nonlocal_label.
14116         Avoid parallelization when the preheader is IRREDUCIBLE.
14117         Try to optimize when estimated_loop_iterations_int is unresolved.
14118         Add the loop's location to the dump file.
14119         * tree-cfg.c (add_phi_args_after_redirect): Remove.
14120         (gimple_duplicate_sese_tail): Remove the check for the latch.
14121         Redirect nexits to the exit block.
14122         Remove handling of the incoming edges to the latch.
14123         Redirect the backedge from the copied latch to the exit bb.
14124
14125 2010-01-28  Michael Matz  <matz@suse.de>
14126
14127         PR target/42881
14128         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14129         Wrap force_reg into a sequence, emit it before user.
14130
14131 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
14132
14133         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14134         (arm_rev): New.
14135         (arm_legacy_rev): Likewise.
14136         (thumb_legacy_rev): Likewise.
14137
14138 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
14139
14140         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14141         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
14142         on MEM's address failed, try avoid_constant_pool_reference and
14143         recurse if it returned something different.
14144         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14145         address, try avoid_constant_pool_reference and recurse if it
14146         returned something different.
14147         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14148         address and avoid_constant_pool_reference returned something
14149         different, don't set have_address.
14150
14151 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
14152
14153         PR debug/42861
14154         * var-tracking.c (val_store): Add modified argument, obey it.
14155         Adjust callers.
14156         (count_uses): Move down logging of main.
14157         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14158         don't need resolution.
14159         (emit_notes_in_bb): Likewise.
14160
14161 2010-01-27  Richard Guenther  <rguenther@suse.de>
14162
14163         PR middle-end/42878
14164         * tree-inline.c (remap_decl): Delay remapping of SSA name
14165         default definitions until we need them.
14166
14167 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
14168
14169         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14170         (rs6000_delegitimize_address): New function.
14171
14172         * config/s390/s390.c (s390_delegitimize_address): Call
14173         delegitimize_mem_from_attrs.
14174
14175         PR middle-end/42874
14176         * tree-inline.c (cannot_copy_type_1): Removed.
14177         (copy_forbidden): Don't forbid copying of functions containing
14178         records/unions with variable length fields.
14179
14180 2010-01-27  Christian Bruel  <christian.bruel@st.com>
14181
14182         Revert:
14183         PR target/42841
14184         * config/sh/sh.c (find_barrier): Increase length for non delayed
14185         conditional branches.
14186
14187 2010-01-27  Matthias Klose  <doko@ubuntu.com>
14188
14189         * configure.ac (gnu-unique-object): Fix ldd version check.
14190         * configure: Regenerate.
14191
14192 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14193
14194         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14195         HAVE_GNU_AS value.
14196         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14197         Test for HAVE_GNU_AS value.
14198
14199 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14200
14201         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14202         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14203         INT64_TYPE): Define.
14204         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14205         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14206         INT_LEAST64_TYPE): Define.
14207         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14208         UINT_LEAST64_TYPE): Define.
14209         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14210         INT_FAST64_TYPE): Define.
14211         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14212         UINT_FAST64_TYPE): Define.
14213         (INTMAX_TYPE, UINTMAX_TYPE): Define.
14214         (INTPTR_TYPE, UINTPTR_TYPE): Define.
14215         (SIG_ATOMIC_TYPE): Define.
14216
14217 2010-01-26  Richard Guenther  <rguenther@suse.de>
14218
14219         * df-scan.c (df_scan_set_bb_info): Remove assert.
14220         (df_insn_rescan_debug_internal): Merge asserts.
14221         (df_install_ref): Likewise.
14222         (df_mark_reg): Use bitmap_set_range.
14223         (df_hard_reg_used_p): Remove assert.
14224         (df_hard_reg_used_count): Likewise.
14225
14226 2010-01-26  Richard Guenther  <rguenther@suse.de>
14227
14228         PR rtl-optimization/42685
14229         * web.c (web_main): Ignore DEBUG_INSNs.
14230
14231 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
14232
14233         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14234
14235         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14236         Fix types of fndecl and arglist parameters.
14237
14238 2010-01-26  Richard Guenther  <rguenther@suse.de>
14239
14240         PR middle-end/42806
14241         * tree-eh.c (unsplit_eh): Skip debug insns.
14242
14243 2010-01-26  Richard Guenther  <rguenther@suse.de>
14244
14245         PR tree-optimization/42250
14246         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14247
14248 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
14249
14250         PR fortran/42866
14251         * omp-low.c (expand_omp_sections): Only use single_pred if
14252         l2_bb is single_pred_p.
14253
14254 2010-01-25  Christian Bruel  <christian.bruel@st.com>
14255
14256         PR target/42841
14257         * config/sh/sh.c (find_barrier): Increase length for non delayed
14258         conditional branches.
14259         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14260
14261 2010-01-24  David S. Miller  <davem@davemloft.net>
14262
14263         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14264         define if not using GAS.
14265         * config/sparc/sparc.c (sparc_elf_asm_named_section):
14266         Likewise.  Delete SECTION_MERGE code, which is only applicable
14267         when using GAS.
14268
14269 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
14270
14271         PR c++/42748
14272         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14273         mangling of va_list in system headers.
14274
14275 2010-01-23  Toon Moene  <toon@moene.org>
14276
14277         * tree-predcom.c (combine_chains): Return NULL, not false.
14278
14279 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
14280
14281         * tree-loop-distribution.c (distribute_loop): Fix declaration and
14282         initialization of variable res to agree with return type.
14283
14284 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
14285
14286         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14287         * tree-sra.c: Add include of expr.h.
14288
14289 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
14290
14291         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14292         insert the debug stmt on the single non-EH edge from the stmt.
14293
14294 2010-01-22  Richard Henderson  <rth@redhat.com>
14295
14296         PR tree-opt/42833
14297         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14298         the RHS until after generate_subtree_copies has insertted its
14299         code before the current statement.
14300
14301 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
14302
14303         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14304
14305         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14306
14307 2010-01-21  Martin Jambor  <mjambor@suse.cz>
14308
14309         PR tree-optimization/42585
14310         * tree-sra.c (struct access): New field grp_total_scalarization.
14311         (dump_access): Dump the new field.
14312         (should_scalarize_away_bitmap): New variable.
14313         (cannot_scalarize_away_bitmap): Likewise.
14314         (sra_initialize): Allocate new bitmaps.
14315         (sra_deinitialize): Free new bitmaps.
14316         (create_access_1): New function.
14317         (create_access): Parts moved to create_access_1.
14318         (type_consists_of_records_p): New function.
14319         (completely_scalarize_record): Likewise.
14320         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14321         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14322         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14323         access.
14324         (analyze_all_variable_accesses): Completely scalarize small eligible
14325         records.
14326
14327 2010-01-21  Martin Jambor  <mjambor@suse.cz>
14328
14329         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14330
14331 2010-01-21  Andrew Haley  <aph@redhat.com>
14332
14333         * gcc.c (process_command): Move lang_specific_driver before
14334         setting cc_libexec_prefix.
14335
14336 2010-01-21  Richard Guenther  <rguenther@suse.de>
14337
14338         PR middle-end/19988
14339         * fold-const.c (negate_expr_p): Pretend only negative
14340         real constants are easily negatable.
14341
14342 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
14343             Jason Merrill  <jason@redhat.com>
14344
14345         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14346         (TYPE_TRANSPARENT_AGGR): this, for union and record.
14347         * calls.c (initialize argument_information): Handle it.
14348         * c-common.c (handle_transparent_union_attribute): Use new name.
14349         * c-decl.c (finish_struct): Ditto.
14350         * c-typeck.c (type_lists_compatible_p): Ditto.
14351         (convert_for_assignment): Use new name and also handle record.
14352         * function.c (aggregate_value_p): Handle it.
14353         (pass_by_reference): Ditto.
14354         (assign_parm_data_types): Ditto.
14355         * print-tree.c (print_node): Ditto.
14356         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14357         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14358         * tree.c (first_field): New fn.
14359
14360 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
14361
14362         PR target/42818
14363         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14364         even when linking statically, for now.
14365
14366 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
14367
14368         PR debug/42715
14369         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14370         without a cselib val.
14371         (count_uses): Accept MO_VAL_SET with no val on stores.
14372         (add_stores): Likewise.
14373
14374 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
14375
14376         * var-tracking.c (check_value_val): Add a compile time assertion.
14377         (dv_is_decl_p): Simplify.
14378         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14379         gcc_assert if ENABLE_CHECKING.
14380
14381 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
14382
14383         PR debug/42782
14384         * var-tracking.c: Include tree-flow.h.
14385         (mem_dies_at_call): New.
14386         (dataflow_set_preserve_mem_locs): Use it.
14387         (dataflow_set_remove_mem_locs): Likewise.
14388         (dump_var): Renamed from dump_variable.  Adjust all callers.
14389         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
14390         * Makefile.in (var-tracking.o): Adjust deps.
14391
14392 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
14393
14394         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14395
14396 2010-01-20  Richard Guenther  <rguenther@suse.de>
14397
14398         PR tree-optimization/42717
14399         * tree-ssa-dce.c (get_live_post_dom): Remove.
14400         (forward_edge_to_pdom): Take an arbitrary edge to copy
14401         degenerate PHI args from.
14402         (remove_dead_stmt): Use the first post-dominator even if it
14403         does not contain live statements as redirection destination.
14404
14405 2010-01-20  Richard Guenther  <rguenther@suse.de>
14406
14407         * tree-inline.c (estimate_num_insns): Handle EH builtins.
14408
14409 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
14410
14411         * sel-sched.c (create_speculation_check): Remove set but not used
14412         variable twin.
14413         (try_transformation_cache): Remove set but not used variable ds.
14414         (calculate_privileged_insns): Remove set but not used variables
14415         cur_insn and min_spec_insn.
14416         (find_best_expr): Remove set but not used variable avail_n.
14417         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14418         variable e.
14419         * cgraphunit.c (assemble_thunk): Remove set but not used variable
14420         false_label.
14421         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14422         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14423         new_scop_exit_edge.
14424
14425 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
14426
14427         PR bootstrap/42786
14428         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14429         cpu types.  Add support for *-sse3 cpu types.
14430         (x86_64-*-*): Ditto.
14431
14432 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
14433
14434         PR middle-end/42803
14435         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14436         argument, call initializer_constant_valid_p_1 instead of
14437         initializer_constant_valid_p, pass CACHE to it, return NULL
14438         immediately if first call returns NULL.
14439         (initializer_constant_valid_p_1): New function.
14440         (initializer_constant_valid_p): Use it.
14441
14442 2010-01-20  Thomas Quinot  <quinot@adacore.com>
14443
14444         * tree.def (PLACEHOLDER_EXPR): Fix comment.
14445
14446 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
14447
14448         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14449         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14450         (loc_list_from_tree): Don't handle unsigned division.  Handle
14451         signed modulo using DW_OP_{over,over,div,mul,minus}.
14452         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14453         modulo instead of signed.
14454
14455 2010-01-20  DJ Delorie  <dj@redhat.com>
14456
14457         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14458         (Fpa): Pass it
14459         (h8300_emit_stack_adjustment): Propogate it.
14460         (push): Pass it.
14461         (h8300_expand_prologue): Likewise.
14462         (h8300_expand_epilogue): Likewise.
14463
14464 2010-01-19  Michael Matz  <matz@suse.de>
14465
14466         PR tree-optimization/41783
14467         * tree-data-ref.c (toplevel): Include flags.h.
14468         (dump_data_dependence_relation):  Also dump the inputs if the
14469         result will be unknown.
14470         (split_constant_offset_1): Look through some conversions.
14471         * tree-predcom.c (determine_roots_comp): Restart a new chain if
14472         the offset from last element is too large.
14473         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
14474         (reassociate_to_the_same_stmt): Handle vector registers.
14475         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
14476         (e.g. conversions).
14477         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
14478         wide_prolog_niters argument, emit widening instructions.
14479         (vect_do_peeling_for_alignment): Adjust caller, use widened
14480         variant of the iteration cound.
14481         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
14482
14483 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14484
14485         PR target/38697
14486         * config/arm/neon-testgen.m (emit_automatics): New parameter
14487         features. Adjust for Fixed_return_reg feature.
14488         (test_intrinsic): Call emit_automatics with new feature.
14489         * config/arm/neon.ml: Update copyright years.
14490         (features): New Fixed_return_reg feature.
14491         (ops): Update feature for Vget_low.
14492
14493 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
14494
14495         PR tree-optimization/42719
14496         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
14497         stmt uses.
14498
14499         PR debug/42728
14500         * fwprop.c (all_uses_available_at): Return false if def_set dest
14501         is a REG that is used in def_insn.
14502
14503 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
14504
14505         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
14506
14507         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
14508         Add argument names.
14509
14510         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
14511
14512         * target.h (struct gcc_target) <secondary_reload>: Change type
14513         of last argument to secondary_reload_info *.
14514
14515 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
14516
14517         PR target/42774
14518         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
14519         memory references with unaligned offsets.  Remove CQImode handling.
14520         (unaligned_memory_operand): Return 1 for memory references with
14521         unaligned offsets.  Remove CQImode handling.
14522
14523 2010-01-18  Richard Guenther  <rguenther@suse.de>
14524
14525         PR middle-end/39954
14526         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
14527         builtin calls.
14528
14529 2010-01-18  Richard Guenther  <rguenther@suse.de>
14530
14531         PR tree-optimization/42781
14532         * tree-ssa-structalias.c (find_what_var_points_to): Skip
14533         restrict processing only if the original variable was artificial.
14534
14535 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
14536
14537         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
14538         find number of popped argument bytes.
14539
14540         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
14541         Fix the text that describes the return value for invalid insns.
14542
14543         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
14544
14545         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
14546         Clarify what 'cost of the -dependence' is.  Fix quoting.
14547
14548         * toplev.c (default_get_pch_validity): Rename argument to "sz".
14549         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
14550
14551 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
14552
14553         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14554         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
14555
14556 2010-01-17  Richard Guenther  <rguenther@suse.de>
14557
14558         PR middle-end/42248
14559         * function.c (split_complex_args): Take a VEC to modify.
14560         (assign_parms_augmented_arg_list): Build a VEC instead of
14561         a chain of PARM_DECLs.
14562         (assign_parms_unsplit_complex): Take a VEC of arguments.
14563         Do not fixup unmodified parms.
14564         (assign_parms): Deal with the VEC.
14565         (gimplify_parameters): Likewise.
14566
14567 2010-01-17  Richard Guenther  <rguenther@suse.de>
14568
14569         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
14570         node existence check.
14571         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
14572         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
14573         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14574         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
14575         (gimple_execute_on_growing_pred): Likewise.
14576
14577 2010-01-17  Richard Guenther  <rguenther@suse.de>
14578
14579         PR tree-optimization/42773
14580         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
14581         (compute_antic_aux): Likewise.
14582         (compute_partial_antic_aux): Likewise.
14583
14584 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
14585
14586         PR debug/42767
14587         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
14588         and US_TRUNCATE.
14589
14590 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
14591
14592         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
14593         appearance.
14594
14595         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
14596         Fix markup for strict argument.
14597
14598         (TARGET_SCHED_REORDER2): Fix argument types.
14599
14600         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
14601         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
14602
14603         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
14604         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
14605
14606         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
14607         Add argument name.
14608
14609         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
14610         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
14611         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
14612         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
14613         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
14614
14615         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
14616
14617         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
14618
14619         (TARGET_ASM_RELOC_RW_MASK): Add return type.
14620         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
14621
14622         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
14623
14624         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
14625         Use prototype.
14626
14627         (TARGET_ASM_NAMED_SECTION): Fix argument list.
14628
14629         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
14630         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
14631
14632         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
14633
14634         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
14635
14636         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
14637         referring to it.  Fix language.
14638
14639         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
14640
14641         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
14642
14643         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
14644
14645         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
14646
14647         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
14648         '@var{stream}.  Remove stray 'and'.
14649
14650         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
14651
14652         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
14653
14654         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
14655
14656         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
14657         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
14658
14659         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
14660         Fix description of return value.
14661         Rename argument "sz" to "len."
14662
14663         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
14664         Clarify meaning of 'true' return value.
14665
14666         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
14667
14668         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
14669         rep_mode versus mode_rep.
14670
14671         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
14672
14673         (TARGET_BUILTIN_DECL): Fix name.
14674
14675         (TARGET_COMMUTATIVE_P): Fix type of first argument.
14676
14677         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
14678
14679         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
14680
14681         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
14682
14683         (TARGET_RELAXED_ORDERING): Use @deftypevr.
14684
14685         (TARGET_GET_DRAP_RTX): Note that this is a hook.
14686         Clarify language.
14687
14688         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
14689         Rename argument tm_fn to md_fn.
14690
14691         (TARGET_OPTION_PRINT): Fix argument list.
14692
14693 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
14694
14695         PR target/42664
14696         * config/i386/i386.c (ix86_fixup_binary_operands):
14697         Revert FMA4 fixup of operands.
14698
14699 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14700
14701         PR gcc/42525
14702         * Makefile.in (write_entries_to_file, install-plugin):
14703         Use \012 instead of \n with tr.
14704
14705 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
14706
14707         * configure.ac (HAVE_AS_REF): New C macro.
14708         * configure: Regenerate.
14709         * config.in: Likewise.
14710         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
14711         if HAVE_AS_REF.
14712         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
14713         if HAVE_AS_REF.
14714
14715 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
14716
14717         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
14718
14719         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
14720
14721         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
14722
14723         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
14724
14725         (TARGET_IN_SMALL_DATA_P): Fix argument type.
14726
14727         (TARGET_BINDS_LOCAL_P): Fix argument type.
14728
14729         (TARGET_ASM_FILE_END): Use prototype.
14730
14731         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
14732
14733         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
14734
14735         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
14736
14737         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
14738
14739         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
14740         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
14741
14742         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
14743         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
14744
14745         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
14746         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
14747         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
14748         (TARGET_ADDR_SPACE_CONVERT): Likewise.
14749
14750         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
14751
14752         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
14753
14754         (TARGET_INIT_BUILTINS): Use prototype.
14755
14756         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
14757         Put 'const char *' in braces.  Fix parameter types.
14758         (TARGET_INVALID_CONVERSION): Fix parameter types.
14759         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
14760         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
14761
14762         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
14763         Fix argument type.
14764
14765         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
14766
14767         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
14768
14769 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
14770
14771         * doc/tm.texi (TARGET_HELP): Fix return type.
14772
14773         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
14774         in braces.  Fix argument types.
14775
14776         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
14777
14778         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
14779
14780         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
14781
14782         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
14783         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
14784
14785         (TARGET_MANGLE_TYPE): Fix argument types.
14786
14787         (TARGET_IRA_COVER_CLASSES): Use prototype.
14788
14789         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
14790
14791         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
14792
14793         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
14794
14795         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
14796
14797         (TARGET_CALLEE_COPIES): Fix argument types.
14798
14799         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
14800
14801         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
14802
14803         (TARGET_FUNCTION_VALUE): Fix argument types.
14804
14805         (TARGET_RETURN_IN_MSB): Fix argument type.
14806
14807         (TARGET_RETURN_IN_MEMORY): Fix argument types.
14808
14809         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
14810
14811         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
14812
14813         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
14814         agree with return type.
14815
14816         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
14817
14818 2010-01-15  Jing Yu  <jingyu@google.com>
14819
14820         PR rtl-optimization/42691
14821         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
14822         a pseudo to a constant and are merged, and adjust comments.
14823
14824 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14825
14826         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
14827
14828 2010-01-15  Richard Guenther  <rguenther@suse.de>
14829
14830         PR middle-end/42739
14831         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
14832         labels of computed or non-local gotos to the destination.
14833         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
14834         landing pad label is the first label.
14835
14836 2010-01-15  Richard Guenther  <rguenther@suse.de>
14837
14838         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
14839
14840 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
14841
14842         PR target/42747
14843         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
14844         to allow generation of the xssqrtdp instruction on power7.
14845         (sqrtdf2_fpr): Ditto.
14846
14847 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
14848
14849         PR middle-end/42674
14850         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
14851         functions with noreturn attribute.
14852
14853         PR c++/42608
14854         * varasm.c (declare_weak): Add weak attribute to decl if it
14855         doesn't have one already.
14856         (assemble_external): Only add decls to weak_decls if they also
14857         have weak attribute.
14858
14859 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
14860
14861         * var-tracking.c (var_reg_delete): Don't delete the association
14862         between REGs and values or one-part variables if the register
14863         isn't clobbered.
14864
14865 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
14866
14867         PR debug/42657
14868         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
14869         because its first operand is a non-localized variable.
14870
14871 2010-01-14  Martin Jambor  <mjambor@suse.cz>
14872
14873         PR tree-optimization/42706
14874         * tree-sra.c (encountered_recursive_call): New variable.
14875         (encountered_unchangable_recursive_call): Likewise.
14876         (sra_initialize): Initialize both new variables.
14877         (callsite_has_enough_arguments_p): New function.
14878         (scan_function): Call decl and flags check only for IPA-SRA, check
14879         whether there is a recursive call and whether it has enough arguments.
14880         (all_callers_have_enough_arguments_p): New function.
14881         (convert_callers): Look for recursive calls only when
14882         encountered_recursive_call is set.
14883         (ipa_early_sra): Bail out either if
14884         !all_callers_have_enough_arguments_p or
14885         encountered_unchangable_recursive_call.
14886
14887 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14888
14889         * sel-sched.c: Add 2010 to copyright years.
14890         * sel-sched-ir.c: Likewise.
14891         * sel-sched-ir.h: Likewise.
14892
14893 2010-01-14  Martin Jambor  <mjambor@suse.cz>
14894
14895         PR tree-optimization/42714
14896         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
14897         constructors specially.
14898
14899 2010-01-14  Andi Kleen  <ak@linux.intel.com>
14900
14901         * config/i386/drivers-i386.c (detect_caches_intel):
14902         Add l2sizekb parameter and fill in.
14903         (host_detect_local_cpu): Add l2sizekb, fill in.
14904         Add Atom small cache heuristic.
14905
14906 2010-01-14  Andi Kleen  <ak@linux.intel.com>
14907
14908         * config/i386/drivers-i386.c (detect_caches_cpuid4):
14909         Add level3 parameter and fill in.
14910         (detect_caches_intel): Handle level3 cache.
14911
14912 2010-01-14  Andi Kleen  <ak@linux.intel.com>
14913
14914         * config/i386/drivers-i386.c (host_detect_local_cpu):
14915         Fix core duo detection.
14916
14917 2010-01-14  Andi Kleen  <ak@linux.intel.com>
14918
14919         * config/i386/drivers-i386.c (host_detect_local_cpu):
14920         Fix Atom detection.
14921
14922 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14923
14924         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
14925         (rs6000_variable_issue_1): this.  Use...
14926         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
14927
14928 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14929
14930         * sel-sched-ir.c (sel_restore_other_notes): Rename to
14931         sel_restore_notes.  Update all callers.  Call reemit_notes
14932         for all insns.
14933
14934 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
14935
14936         PR rtl-optimization/42246
14937         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
14938         loops.
14939
14940 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
14941
14942         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
14943         all successors is the same as number of successors in current region.
14944
14945 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14946
14947         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
14948         to rename is not separable.  Otherwise check that its LHS is not NULL.
14949
14950 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14951
14952         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
14953
14954 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14955
14956         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
14957         available registers when failed to discover LHS register class.
14958         Fix indentation.  Update comment.
14959
14960 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
14961             Alexander Monakov  <amonakov@ispras.ru>
14962
14963         PR rtl-optimization/42389
14964         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
14965         to can_issue_more.
14966         (advance_state_on_fence): Likewise.
14967         (sel_target_adjust_priority): Print debug output only when
14968         sched_verbose >= 4, not 2.
14969         (get_expr_cost): Do not issue all unique insns on the next cycle.
14970         (fill_insns): Initialize can_issue_more from the value saved
14971         with the fence.
14972         * sel-sched-ir.c (flist_add): New parameter issue_more.
14973         Init FENCE_ISSUE_MORE with it.
14974         (merge_fences): Likewise.
14975         (init_fences): Update call to flist_add.
14976         (add_to_fences, add_clean_fence_to_fences)
14977         (add_dirty_fence_to_fences): Likewise.
14978         (move_fence_to_fences): Update call to merge_fences.
14979         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
14980         sched groups.
14981         * sel-sched-ir.h (struct _fence): New field issue_more.
14982         (FENCE_ISSUE_MORE): New accessor macro.
14983
14984 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
14985
14986         PR rtl-optimization/42388
14987         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
14988         that have no predecessors nor successors.  Do not call move_bb_info
14989         for empty blocks outside of current region.
14990
14991 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14992
14993         PR rtl-optimization/42294
14994         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
14995         * sel-sched.c (move_exprs_to_boundary): Transitively add all
14996         originators' originators.
14997
14998 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
14999
15000         PR rtl-optimization/39453
15001         PR rtl-optimization/42246
15002         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15003         for pipelining_p.
15004         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15005
15006 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
15007             Alexander Monakov  <amonakov@ispras.ru>
15008
15009         PR middle-end/42245
15010         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
15011         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
15012         argument.  Update all callers.
15013         (tidy_control_flow): ... and here.  Recompute topological order
15014         of basic blocks in region if necessary.
15015         (sel_redirect_edge_and_branch): Change return type.  Return true
15016         if topological order might have been invalidated.
15017         (purge_empty_blocks): Export and move from...
15018         * sel-sched.c (purge_empty_blocks): ... here.
15019         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15020         (maybe_tidy_empty_bb): Delete prototype.
15021         (purge_empty_blocks): Declare.
15022
15023 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
15024
15025         PR rtl-optimization/42249
15026         * sel-sched.c (try_replace_dest_reg): When chosen register
15027         and original register is the same, do not bail out early, but
15028         still check all original insns for validity of replacing destination
15029         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15030         in this case.
15031
15032 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
15033
15034         PR c/42721
15035         Port from no-undefined-overflow branch:
15036         2009-03-09  Richard Guenther  <rguenther@suse.de>
15037
15038         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15039
15040 2010-01-14  Richard Guenther  <rguenther@suse.de>
15041
15042         PR lto/42665
15043         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15044
15045 2010-01-14  Ira Rosen  <irar@il.ibm.com>
15046
15047         PR tree-optimization/42709
15048         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15049         as scalar type in creation of constant vector operand.
15050
15051 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15052
15053         PR testsuite/42414
15054         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15055         (check-parallel-%): Match `testsuite' directory component only
15056         at the end.
15057
15058 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
15059
15060         PR translation/39521
15061         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15062         strings with _().
15063
15064 2010-01-13  Richard Guenther  <rguenther@suse.de>
15065
15066         PR tree-optimization/42730
15067         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15068         offset zero.
15069
15070 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
15071
15072         PR target/pr42542
15073         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15074         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15075         them signed.
15076
15077 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
15078
15079         * config/bfin/libgcc-bfin.ver: Regenerate based on current
15080         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
15081         ___umulsi3_highpart.
15082
15083         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15084         rather than schedule_insns if the pass is enabled.
15085
15086 2010-01-13  Martin Jambor  <mjambor@suse.cz>
15087
15088         PR tree-optimization/42704
15089         * tree-sra.c (sra_modify_assign): Do not delete assignments to
15090         SSA_NAMEs.
15091
15092 2010-01-13  Martin Jambor  <mjambor@suse.cz>
15093
15094         PR tree-optimization/42703
15095         * tree-sra.c (analyze_access_subtree): Check that we can build a
15096         reference to the original data within the aggregate.
15097
15098 2010-01-13  Richard Guenther  <rguenther@suse.de>
15099
15100         PR tree-optimization/42705
15101         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15102
15103 2010-01-13  Richard Guenther  <rguenther@suse.de>
15104
15105         PR middle-end/42716
15106         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15107
15108 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
15109
15110         PR debug/41371
15111         * var-tracking.c (values_to_unmark): New variable.
15112         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15113         values_to_unmark vector.  Moved body to...
15114         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
15115         instead queue it into values_to_unmark vector.
15116         (vt_find_locations): Free values_to_unmark vector.
15117
15118 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
15119
15120         * config/s390/s390.c (override_options): Set
15121         default of max-pending-list-length to 256
15122
15123 2010-01-13  Richard Guenther  <rguenther@suse.de>
15124
15125         PR lto/42678
15126         * tree-pass.h (PROP_gimple_lcx): New.
15127         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15128         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15129         before the final cleanup_eh.
15130         (dump_properties): Dump PROP_gimple_lcx.
15131         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15132         (tree_lower_complex_O0): Remove.
15133         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15134         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
15135         tree_lower_complex, schedule TODO_update_ssa.
15136         * lto-streamer-out.c (output_function): Stream the functions
15137         properties.
15138         * lto-streamer-in.c (input_function): Likewise.
15139         (lto_read_body): Do not override them here.
15140
15141 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
15142
15143         PR c/42708
15144         * c-typeck.c (build_c_cast): Fold value cast to union type before
15145         wrapping it in a CONSTRUCTOR.
15146
15147 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
15148
15149         PR rtl-optimization/42699
15150         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15151         involved.
15152
15153 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15154
15155         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15156         SUBTARGET_WARN_UNUSED_SPEC): Move ...
15157         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15158         SUBTARGET_WARN_UNUSED_SPEC): ... here
15159         * config/mips/iris5.h (LIBGCC_SPEC): Define.
15160
15161 2010-01-12  Julian Brown  <julian@codesourcery.com>
15162
15163         * config/arm/neon-schedgen.ml (Utils): Don't try to
15164         open missing module.
15165         (find_with_result): New.
15166
15167 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
15168
15169         PR debug/42662
15170         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15171         sharing when canonicalizing ({lt,ge}u (plus a b) b).
15172
15173         PR tree-optimization/42645
15174         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
15175         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15176         decl_map, set processing_debug_stmt to -1 and return name without
15177         any remapping.
15178
15179 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
15180
15181         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15182         binutils version, and reword target configuration description.
15183
15184 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
15185
15186         * config/avr/avr.h (LINKER_NAME): Remove.
15187
15188 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
15189
15190         PR target/42416
15191         * config/rs6000/rs6000.c (rs6000_override_options): On targets
15192         that support VSX, warn for -mno-altivec if vsx is not disabled,
15193         and disable vsx.
15194
15195 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
15196             Shujing Zhao  <pearly.zhao@oracle.com>
15197
15198         PR translation/42469
15199         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15200         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15201         character between option name and help text.
15202         * c.opt (imultilib): Likewise.
15203
15204 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
15205
15206         * lto-streamer-out.c (output_unreferenced_globals): Output static
15207         variables.
15208
15209 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
15210
15211         PR rtl-optimization/42621
15212         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15213         optimizing for size.
15214         (duplicate_computed_gotos): Remove now-redundant check.
15215
15216 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
15217
15218         PR target/37454
15219         * configure.ac: Save and restore LDFLAGS and LIBS
15220         * configure: Regenerate.
15221
15222 2010-01-10  Richard Guenther  <rguenther@suse.de>
15223
15224         PR middle-end/42667
15225         * builtins.c (fold_builtin_strlen): Add type argument and
15226         convert the resulting length to it.
15227         (fold_builtin_1): Adjust.
15228
15229 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
15230
15231         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15232         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15233         1 insn.
15234         (num_insns_constant_wide): Adjust for that change.
15235
15236 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15237
15238         PR debug/42631
15239         * web.c (union_defs): Add used argument, to combine uses of
15240         uninitialized regs.
15241         (entry_register): Adjust type and tests of used argument.
15242         (web_main): Widen used for new use.  Pass it to union_defs.
15243         * df.h (union_defs): Adjust prototype.
15244
15245 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15246
15247         PR debug/42630
15248         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15249         uses in new incoming argument.  Free body.
15250         (reset_debug_uses_in_loop): New.
15251         (analyze_insn_to_expand_var): Call the latter if the former found
15252         anything.  Fix whitespace.  Reject invalid dest overlaps before
15253         going through all insns in the loop.
15254
15255 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15256
15257         PR debug/42629
15258         * haifa-sched.c (dying_use_p): Debug insns don't count.
15259
15260 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15261
15262         PR middle-end/42363
15263         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15264         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15265         (verify_gimple_call): Reject LHS in noreturn calls.
15266
15267 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15268
15269         PR debug/42604
15270         PR debug/42395
15271         * tree-vect-loop-manip.c (adjust_info): New type.
15272         (adjust_vec): New pointer to vector.
15273         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15274         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15275         (slpeel_update_phis_for_duplicate_loop): Use them.
15276         (slpeel_update_phi_nodes_for_guard1): Likewise.
15277         (slpeel_update_phi_nodes_for_guard2): Likewise.
15278         (slpeel_tree_peel_loop_to_edge): Likewise.
15279         (vect_update_ivs_after_vectorizer): Likewise.
15280
15281 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15282
15283         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15284         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15285
15286 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
15287
15288         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15289         bogus uninitialized warning.
15290
15291 2010-01-09  Richard Guenther  <rguenther@suse.de>
15292
15293         PR middle-end/42512
15294         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15295         the evolution is compatible with the initial condition.
15296
15297 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
15298
15299         * gcc.c (process_command): Update copyright notice dates.
15300         * gcov.c (print_version): Likewise.
15301         * gcov-dump.c (print_version): Likewise.
15302         * mips-tfile.c (main): Likewise.
15303         * mips-tdump.c (main): Likewise.
15304
15305 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
15306
15307         PR target/41885
15308         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15309         (rotlhi3): Delete.
15310         (rotlhi3_8): Delete.
15311         (rotlsi3): Delete.
15312         (rotlsi3_8): Delete.
15313         (rotlsi3_16): Delete.
15314         (rotlsi3_24): Delete.
15315         (rotl<mode>3): New.
15316         (*rotw<mode>3): New.
15317         (*rotb<mode>3): New.
15318         * config/avr/avr.c (avr_rotate_bytes): New function.
15319         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15320
15321 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
15322
15323         PR target/37454
15324         * configure.ac: Modify -rdynamic check.
15325         * configure: Regenerate.
15326
15327 2010-01-08  DJ Delorie  <dj@redhat.com>
15328
15329         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15330         register popping order.
15331
15332 2010-01-08  Richard Guenther  <rguenther@suse.de>
15333
15334         PR lto/42528
15335         * c.opt (fsigned-char): Also let LTO handle this option.
15336         (funsigned-char): Likewise.
15337
15338 2010-01-07  Richard Guenther  <rguenther@suse.de>
15339
15340         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15341         (gimple_op): Likewise.
15342         (gimple_op_ptr): Likewise.
15343         (gimple_assign_set_lhs): Remove gcc_assert.
15344         (gimple_assign_set_rhs1): Likewise.
15345         (gimple_assign_set_rhs2): Likewise.
15346         (gimple_call_set_lhs): Likewise.
15347         (gimple_call_set_fn): Likewise.
15348         (gimple_call_set_fndecl): Likewise.
15349         (gimple_call_fndecl): Likewise.
15350         (gimple_call_return_type): Likewise.
15351         (gimple_call_set_chain): Likewise.
15352         (gimple_call_num_args): Likewise.
15353         (gimple_call_set_arg): Likewise.
15354         (gimple_cond_set_code): Likewise.
15355         (gimple_cond_set_lhs): Likewise.
15356         (gimple_cond_set_rhs): Likewise.
15357         (gimple_cond_set_true_label): Likewise.
15358         (gimple_cond_set_false_label): Likewise.
15359         (gimple_label_set_label): Likewise.
15360         (gimple_goto_set_dest): Likewise.
15361         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15362         (gimple_debug_bind_get_value): Likewise.
15363         (gimple_debug_bind_get_value_ptr): Likewise.
15364         (gimple_debug_bind_set_var): Likewise.
15365         (gimple_debug_bind_set_value): Likewise.
15366         (gimple_debug_bind_reset_value): Likewise.
15367         (gimple_debug_bind_has_value_p): Likewise.
15368         (gimple_return_retval_ptr): Remove gcc_assert.
15369         (gimple_return_retval): Likewise.
15370         (gimple_return_set_retval): Likewise.
15371         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15372         (safe_referenced_var_iterator): Remove.
15373         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15374         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15375         (fill_referenced_var_vec): Remove.
15376         (first_readonly_imm_use): Remove redundant gcc_assert.
15377         (phi_arg_index_from_use): Combine gcc_asserts.
15378         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15379         (first_imm_use_stmt): Remove redundant gcc_assert.
15380         * tree-cfg.c (verify_gimple_call): Verify function and chain
15381         operands.  Verify arguments.
15382         (verify_types_in_gimple_stmt): Verify condition code and labels.
15383
15384 2010-01-07  Richard Guenther  <rguenther@suse.de>
15385
15386         PR tree-optimization/42641
15387         * sese.c (rename_map_elt_info): Use the SSA name version, do
15388         not hash pointers.
15389
15390 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
15391
15392         PR tree-optimization/42625
15393         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15394         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15395
15396 2010-01-07  Duncan Sands  <baldrick@free.fr>
15397
15398         * Makefile.in (PLUGIN_HEADERS): Add version.h.
15399
15400 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
15401
15402         PR target/42511
15403         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15404         note itself is not function_invariant_p.
15405
15406 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
15407
15408         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15409         Do not add the DF_NOTE problem.
15410         * store-motion.c (execute_rtl_store_motion): Likewise.
15411
15412 2010-01-07  Martin Jambor  <mjambor@suse.cz>
15413
15414         PR tree-optimization/42157
15415         * tree-sra.c (compare_access_positions): Stabilize sort if both
15416         accesses have integer types, return zero immediately if they are the
15417         same.
15418
15419 2010-01-06  Richard Henderson  <rth@redhat.com>
15420
15421         PR middle-end/41883
15422         * haifa-sched.c (add_to_note_list): Merge into ...
15423         (concat_note_lists): ... here, and ...
15424         (unlink_other_notes, rm_other_notes): Merge into...
15425         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
15426         NOTE_INSN_EPILOGUE_BEG.
15427
15428 2010-01-06  Richard Guenther  <rguenther@suse.de>
15429
15430         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15431         not inline regular functions into always-inline functions.
15432
15433 2010-01-06  Nick Clifton  <nickc@redhat.com>
15434
15435         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15436         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15437         used together.
15438         (OVERRIDE_OPTIONS): Delete.
15439         (OPTIMIZATION_OPTIONS): Define.
15440         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15441         * config/rx/rx.c (rx_handle_option): Issue an error message if
15442         -mcpu=rx200 and -fpu are used together.
15443         (rx_set_optimization_options): New function.  Issue an error
15444         message if an optimization attribute attempts to reset the FPU/
15445         math optimization pairing.
15446         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15447         * config/rx/rx.opt: Set the default to 32-bit doubles.
15448         * config/rx/t-rx: Add multilibs for -nofpu option.
15449         * doc/invoke.texi: Update documentation of RX options.
15450
15451 2010-01-06  Richard Guenther  <rguenther@suse.de>
15452
15453         * tree-ssa-pre.c (name_to_id): New global.
15454         (alloc_expression_id): Simplify SSA name handling.
15455         (lookup_expression_id): Likewise.
15456         (init_pre): Zero name_to_id.
15457         (fini_pre): Free it.
15458
15459 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
15460
15461         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15462
15463 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
15464
15465         PR target/42542
15466         * config/i386/sse.md (smaxv2di3): New.
15467         (umaxv2di3): Likewise.
15468         (sminv2di3): Likewise.
15469         (uminv2di3): Likewise.
15470
15471 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15472
15473         PR target/42564
15474         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
15475         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
15476         (legitimize_tls_address): Likewise.
15477         (sparc_tls_referenced_p): Likewise.
15478         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
15479         and adjust calls to legitimize_pic_address.
15480         (legitimate_constant_p) Use sparc_tls_referenced_p.
15481         (legitimate_pic_operand_p): Likewise.
15482         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
15483         (sparc_tls_symbol_ref_1): Delete.
15484         (sparc_tls_referenced_p): Make static, recognize specific patterns.
15485         (legitimize_tls_address): Make static, handle CONST patterns.
15486         (legitimize_pic_address): Make static, remove unused parameter and
15487         adjust recursive calls.
15488         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
15489         and adjust call to legitimize_pic_address.
15490         (sparc_output_mi_thunk): Likewise.
15491
15492 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
15493             H.J. Lu  <hongjiu.lu@intel.com>
15494
15495         PR target/42542
15496         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
15497         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
15498         operands to make them signed.
15499
15500         Revert:
15501         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15502
15503         PR target/42542
15504         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15505         GTU to GT for V4SI and V2DI.
15506
15507         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15508         (umin<mode>3): Removed.
15509         (uminv8hi3): New.
15510         (uminv4si3): Likewise.
15511
15512 2010-01-05  Martin Jambor  <mjambor@suse.cz>
15513
15514         PR tree-optimization/42462
15515         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
15516         current_function_decl to helper functions and macros.
15517
15518 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15519
15520         PR bootstrap/41771
15521         * flags.h: Don't include real.h.
15522         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
15523         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
15524         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
15525         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
15526         * dominance.c: Update copyright.
15527         * gimple.c (walk_gimple_op): Remove inline.
15528         * tree-ssa-reassoc.c: Include real.h.
15529         * Makefile.in (FLAGS_H): Remove $(REAL_H).
15530         (tree-ssa-reassoc.o): Depend on $(REAL_H).
15531
15532 2010-01-05  Nick Clifton  <nickc@redhat.com>
15533
15534         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
15535         register to push into the stack frame when the accumulator has to
15536         be saved during interrupts.
15537
15538 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
15539
15540         * doc/invoke.texi: Remove the documentation about option
15541         -Wunreachable-code.
15542         * common.opt (Wunreachable-code):  Preserved for backward
15543         compatibility.
15544         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
15545         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
15546         the backward compatibility flag section.
15547
15548 2010-01-05  Richard Guenther  <rguenther@suse.de>
15549
15550         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
15551
15552 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
15553
15554         PR other/42611
15555         * cfgexpand.c (expand_one_var): Diagnose too large variables.
15556
15557         PR tree-optimization/42508
15558         * tree-sra.c (convert_callers): Check for recursive call
15559         by comparing cgraph nodes instead of decls.
15560         (modify_function): Call ipa_modify_formal_parameters also
15561         on all same_body aliases.
15562
15563         * cgraphunit.c (cgraph_materialize_all_clones): Compare
15564         cgraph nodes when checking for same_body aliases.
15565
15566 2010-01-05  Richard Guenther  <rguenther@suse.de>
15567
15568         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
15569         allocation and lookup.
15570         (get_or_alloc_expr_for_constant): Likewise.
15571         (phi_translate): Sink allocation.
15572
15573 2010-01-04  Richard Guenther  <rguenther@suse.de>
15574
15575         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
15576         a new entry only if needed.
15577         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
15578         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
15579         hashtable lookup.
15580         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
15581         the result array.
15582         (phi_translate): Handle CONSTANTs early.
15583
15584 2010-01-04  Martin Jambor  <mjambor@suse.cz>
15585
15586         PR tree-optimization/42398
15587         * tree-sra.c (struct access): Removed flag grp_different_types.
15588         (dump_access): Do not dump the removed flag.
15589         (sort_and_splice_var_accesses): Do not set the removed flag.
15590         (sra_modify_expr): Check for type compatibility directly.
15591
15592 2010-01-04  Martin Jambor  <mjambor@suse.cz>
15593
15594         PR tree-optimization/42366
15595         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
15596         edges with variable number of parameters.
15597         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
15598         flag instead of asserting it.
15599         (ipa_read_node_info): Read uses_analysis_done flag.
15600
15601 2010-01-04  Richard Guenther  <rguenther@suse.de>
15602
15603         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
15604         iterative_hash_* as intended.
15605         (vn_reference_compute_hash): Likewise.  Simplify hashing
15606         SSA names.
15607         (vn_reference_lookup_2): Likewise.
15608         (vn_nary_op_compute_hash): Likewise.
15609         (vn_phi_compute_hash): Likewise.
15610         (expressions_equal_p): Remove strange code.
15611         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
15612         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
15613         (bitmap_insert_into_set_1): Take value-id as parameter.
15614         (add_to_value): Pass it.
15615         (bitmap_insert_into_set): Likewise.
15616         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
15617
15618 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
15619
15620         PR driver/42442
15621         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
15622         (do_self_spec): For switches with SWITCH_IGNORE set set also
15623         SWITCH_IGNORE_PERMANENTLY.
15624         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
15625         of SWITCH_IGNORE.
15626
15627 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
15628
15629         * lto-streamer-out.c (output_unreferenced_globals): Output the full
15630         tree of an unreferenced global var.
15631
15632 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15633
15634         PR target/42542
15635         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15636         GTU to GT for V4SI and V2DI.
15637
15638         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15639         (umin<mode>3): Removed.
15640         (uminv8hi3): New.
15641         (uminv4si3): Likewise.
15642
15643 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
15644
15645         PR lto/42581
15646         * collect2.c (main): Turn on trace in collect2 if -v is passed
15647         to gcc with LTO.
15648
15649 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
15650
15651         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
15652         description of expression operand.
15653
15654 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
15655
15656         * configure.ac: Add install-html to target_list for Make-hooks.
15657         * configure: Regenerate.
15658         * fortran/Make-lang.in (F95_HTMLFILES): New.
15659         (fortran.html): Use it.
15660         (fortran.install-html): New.
15661         * Makefile.in (install-html): Add lang.install-html.
15662         * java/Make-lang.in (JAVA_HTMLFILES): New.
15663         (java.html): Use it.
15664         (java.install-html): New.
15665         * objc/Make-lang.in (objc.install-html): New.
15666         * objcp/Make-lang.in (obj-c++.install-html): New.
15667         * cp/Make-lang.in (c++.install-html): New.
15668         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
15669         * lto/Make-lang.in (lto.install-html): New.
15670
15671 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15672
15673         PR lto/42520
15674         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
15675
15676 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
15677
15678         PR rtl-optimization/41862
15679         * store-motion.c (store_killed_in_insn, compute_store_table,
15680         remove_reachable_equiv_notes, replace_store_insn,
15681         build_store_vectors): Ignore all DEBUG_INSNs.
15682
15683 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15684
15685         PR lto/41564
15686         * common.opt: Add dumpdir.
15687
15688         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
15689         isn't specified.
15690         (option_map): Add --dumpdir.
15691
15692         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
15693
15694         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
15695
15696         * opts.c (decode_options): Try dump_dir_name first if
15697         dump_base_name isn't an absolute path.
15698         (common_handle_option): Handle OPT_dumpdir.
15699
15700         * toplev.c (dump_dir_name): New.
15701         (print_switch_values): Also ignore -dumpdir.
15702
15703         * toplev.h (dump_dir_name): New.
15704
15705 2010-01-03  Richard Guenther  <rguenther@suse.de>
15706
15707         PR tree-optimization/42589
15708         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
15709         double-word expansion of bswap32.
15710
15711 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
15712
15713         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
15714         with BLOCK_FOR_INSN.
15715         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
15716         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
15717         noce_process_if_block): Likewise.
15718         * gcse.c (compute_local_properties, insert_expr_in_table,
15719         insert_set_in_table, canon_list_insert, find_avail_set,
15720         pre_insert_copy_insn): Likewise.
15721
15722         * basic-block.h (BLOCK_NUM): Move from here...
15723         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
15724
15725 2010-01-03  Richard Guenther  <rguenther@suse.de>
15726
15727         PR tree-optimization/42438
15728         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
15729         contains_may_not_return_call flag.
15730         (BB_MAY_NOTRETURN): New.
15731         (valid_in_sets): Trapping nary operations are not valid
15732         in blocks that may not return.
15733         (insert_into_preds_of_block): Remove check for trapping expressions.
15734         (compute_avail): Compute also BB_MAY_NOTRETURN.
15735
15736 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
15737
15738         * doc/invoke.texi: Add 2010 to copyright years.
15739
15740 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15741
15742         * config/sparc/sparc.c: Fix formatting nits.
15743
15744 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
15745             Alexander Monakov  <amonakov@ispras.ru>
15746
15747         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
15748
15749 2010-01-02  Richard Guenther  <rguenther@suse.de>
15750
15751         PR middle-end/42577
15752         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
15753         (simplify_switch_using_ranges): Mark to be removed edges
15754         as non-executable.
15755
15756 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15757
15758         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
15759
15760         * collect2.c (scan_libraries): Add missing argument in call to
15761         scan_prog_file.
15762
15763 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
15764
15765         PR target/42448
15766         * config/alpha/predicates.md (aligned_memory_operand): Return false
15767         for CQImode.
15768         (unaligned_memory_operand): Return true for CQImode.
15769         * config/alpha/alpha.c (get_aligned_mem): Assert that location
15770         doesn not cross aligned SImode word boundary.
15771
15772 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
15773
15774         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
15775         Remove.
15776         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
15777         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
15778
15779 2010-01-02  Richard Guenther  <rguenther@suse.de>
15780
15781         PR lto/41597
15782         * toplev.c (compile_file): Emit LTO marker properly.  Change
15783         it to __gnu_lto_v1.
15784         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
15785
15786 2010-01-01  Richard Guenther  <rguenther@suse.de>
15787
15788         PR debug/42455
15789         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
15790
15791 2010-01-01  Richard Guenther  <rguenther@suse.de>
15792
15793         PR c/42570
15794         * c-decl.c (grokdeclarator): For zero-size arrays force
15795         structural equality checks as layout_type does.
15796
15797 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
15798
15799         * builtins.c: Update copyright to 2010.
15800
15801 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
15802
15803         PR lto/42531
15804         * lto-streamer-out.c (produce_asm): Revert the last change.
15805         (copy_function): Likewise.
15806
15807         * lto-streamer.c (lto_get_section_name): Skip any leading
15808         asterisk in name.
15809
15810 2010-01-01  Richard Guenther  <rguenther@suse.de>
15811
15812         PR middle-end/42559
15813         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
15814         for LABEL_DECLs.
15815
15816 \f
15817 Copyright (C) 2010 Free Software Foundation, Inc.
15818
15819 Copying and distribution of this file, with or without modification,
15820 are permitted in any medium without royalty provided the copyright
15821 notice and this notice are preserved.